@undefineds.co/xpod 0.3.58 → 0.3.62

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 (806) hide show
  1. package/README.md +3 -0
  2. package/config/cli.json +88 -0
  3. package/config/cloud.json +32 -1
  4. package/config/components-ignore.json +3 -0
  5. package/config/extensions.local.initializer.json +44 -0
  6. package/config/resolver.json +86 -0
  7. package/config/xpod.base.json +4 -0
  8. package/dist/agents/AgentExecutorFactory.d.ts +3 -3
  9. package/dist/agents/AgentExecutorFactory.js +28 -15
  10. package/dist/agents/AgentExecutorFactory.js.map +1 -1
  11. package/dist/agents/BaseAgentExecutor.d.ts +2 -1
  12. package/dist/agents/BaseAgentExecutor.js +1 -0
  13. package/dist/agents/BaseAgentExecutor.js.map +1 -1
  14. package/dist/agents/ClaudeExecutor.d.ts +3 -1
  15. package/dist/agents/ClaudeExecutor.js +18 -12
  16. package/dist/agents/ClaudeExecutor.js.map +1 -1
  17. package/dist/agents/config/resolve.js +0 -21
  18. package/dist/agents/config/resolve.js.map +1 -1
  19. package/dist/agents/config/types.d.ts +2 -7
  20. package/dist/agents/config/types.js +2 -1
  21. package/dist/agents/config/types.js.map +1 -1
  22. package/dist/agents/types.d.ts +18 -0
  23. package/dist/agents/types.js.map +1 -1
  24. package/dist/ai/schema/types.d.ts +2 -1
  25. package/dist/ai/schema/types.js +1 -0
  26. package/dist/ai/schema/types.js.map +1 -1
  27. package/dist/ai/service/CredentialReader.d.ts +3 -1
  28. package/dist/ai/service/CredentialReader.js.map +1 -1
  29. package/dist/ai/service/CredentialReaderImpl.d.ts +3 -1
  30. package/dist/ai/service/CredentialReaderImpl.js +24 -2
  31. package/dist/ai/service/CredentialReaderImpl.js.map +1 -1
  32. package/dist/ai/service/EmbeddingServiceImpl.js +13 -2
  33. package/dist/ai/service/EmbeddingServiceImpl.js.map +1 -1
  34. package/dist/ai/service/ProviderRegistry.d.ts +4 -0
  35. package/dist/ai/service/ProviderRegistry.js.map +1 -1
  36. package/dist/ai/service/ProviderRegistry.jsonld +4 -0
  37. package/dist/ai/service/ProviderRegistryImpl.d.ts +4 -1
  38. package/dist/ai/service/ProviderRegistryImpl.js +26 -4
  39. package/dist/ai/service/ProviderRegistryImpl.js.map +1 -1
  40. package/dist/ai/service/ProviderRegistryImpl.jsonld +12 -0
  41. package/dist/ai/service/defaultEmbeddingProfile.d.ts +5 -0
  42. package/dist/ai/service/defaultEmbeddingProfile.js +31 -0
  43. package/dist/ai/service/defaultEmbeddingProfile.js.map +1 -0
  44. package/dist/ai/service/index.d.ts +1 -0
  45. package/dist/ai/service/index.js +1 -0
  46. package/dist/ai/service/index.js.map +1 -1
  47. package/dist/ai/service/types.d.ts +1 -0
  48. package/dist/ai/service/types.js.map +1 -1
  49. package/dist/api/ApiServer.js +17 -2
  50. package/dist/api/ApiServer.js.map +1 -1
  51. package/dist/api/ai-gateway/AiGatewayService.d.ts +106 -0
  52. package/dist/api/ai-gateway/AiGatewayService.js +527 -0
  53. package/dist/api/ai-gateway/AiGatewayService.js.map +1 -0
  54. package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.d.ts +38 -0
  55. package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js +128 -0
  56. package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js.map +1 -0
  57. package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.d.ts +25 -0
  58. package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js +91 -0
  59. package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js.map +1 -0
  60. package/dist/api/ai-gateway/auth/GatewayApiKey.d.ts +28 -0
  61. package/dist/api/ai-gateway/auth/GatewayApiKey.js +162 -0
  62. package/dist/api/ai-gateway/auth/GatewayApiKey.js.map +1 -0
  63. package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.d.ts +56 -0
  64. package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js +143 -0
  65. package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js.map +1 -0
  66. package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.d.ts +26 -0
  67. package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js +97 -0
  68. package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js.map +1 -0
  69. package/dist/api/ai-gateway/auth/GatewayPrincipal.d.ts +20 -0
  70. package/dist/api/ai-gateway/auth/GatewayPrincipal.js +37 -0
  71. package/dist/api/ai-gateway/auth/GatewayPrincipal.js.map +1 -0
  72. package/dist/api/ai-gateway/auth/InvocationTokenCodec.d.ts +41 -0
  73. package/dist/api/ai-gateway/auth/InvocationTokenCodec.js +221 -0
  74. package/dist/api/ai-gateway/auth/InvocationTokenCodec.js.map +1 -0
  75. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.d.ts +54 -0
  76. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js +152 -0
  77. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js.map +1 -0
  78. package/dist/api/ai-gateway/connect/index.d.ts +367 -0
  79. package/dist/api/ai-gateway/connect/index.js +1061 -0
  80. package/dist/api/ai-gateway/connect/index.js.map +1 -0
  81. package/dist/api/ai-gateway/credentials/CloudKmsWrapper.d.ts +40 -0
  82. package/dist/api/ai-gateway/credentials/CloudKmsWrapper.js +59 -0
  83. package/dist/api/ai-gateway/credentials/CloudKmsWrapper.js.map +1 -0
  84. package/dist/api/ai-gateway/credentials/CredentialVault.d.ts +14 -0
  85. package/dist/api/ai-gateway/credentials/CredentialVault.js +11 -0
  86. package/dist/api/ai-gateway/credentials/CredentialVault.js.map +1 -0
  87. package/dist/api/ai-gateway/credentials/KeyWrapper.d.ts +27 -0
  88. package/dist/api/ai-gateway/credentials/KeyWrapper.js +3 -0
  89. package/dist/api/ai-gateway/credentials/KeyWrapper.js.map +1 -0
  90. package/dist/api/ai-gateway/credentials/LocalKeychainWrapper.d.ts +27 -0
  91. package/dist/api/ai-gateway/credentials/LocalKeychainWrapper.js +145 -0
  92. package/dist/api/ai-gateway/credentials/LocalKeychainWrapper.js.map +1 -0
  93. package/dist/api/ai-gateway/credentials/SecretCellCredentialVault.d.ts +13 -0
  94. package/dist/api/ai-gateway/credentials/SecretCellCredentialVault.js +133 -0
  95. package/dist/api/ai-gateway/credentials/SecretCellCredentialVault.js.map +1 -0
  96. package/dist/api/ai-gateway/credentials/SecretCellKeyWrapper.d.ts +23 -0
  97. package/dist/api/ai-gateway/credentials/SecretCellKeyWrapper.js +62 -0
  98. package/dist/api/ai-gateway/credentials/SecretCellKeyWrapper.js.map +1 -0
  99. package/dist/api/ai-gateway/credentials/WebCryptoCredentialVault.d.ts +23 -0
  100. package/dist/api/ai-gateway/credentials/WebCryptoCredentialVault.js +173 -0
  101. package/dist/api/ai-gateway/credentials/WebCryptoCredentialVault.js.map +1 -0
  102. package/dist/api/ai-gateway/errors.d.ts +21 -0
  103. package/dist/api/ai-gateway/errors.js +50 -0
  104. package/dist/api/ai-gateway/errors.js.map +1 -0
  105. package/dist/api/ai-gateway/protocol/ChatCompletionsFrontend.d.ts +6 -0
  106. package/dist/api/ai-gateway/protocol/ChatCompletionsFrontend.js +111 -0
  107. package/dist/api/ai-gateway/protocol/ChatCompletionsFrontend.js.map +1 -0
  108. package/dist/api/ai-gateway/protocol/MessagesFrontend.d.ts +6 -0
  109. package/dist/api/ai-gateway/protocol/MessagesFrontend.js +99 -0
  110. package/dist/api/ai-gateway/protocol/MessagesFrontend.js.map +1 -0
  111. package/dist/api/ai-gateway/protocol/ResponsesFrontend.d.ts +6 -0
  112. package/dist/api/ai-gateway/protocol/ResponsesFrontend.js +232 -0
  113. package/dist/api/ai-gateway/protocol/ResponsesFrontend.js.map +1 -0
  114. package/dist/api/ai-gateway/protocol/index.d.ts +3 -0
  115. package/dist/api/ai-gateway/protocol/index.js +10 -0
  116. package/dist/api/ai-gateway/protocol/index.js.map +1 -0
  117. package/dist/api/ai-gateway/providers/AnthropicRuntimeAdapter.d.ts +7 -0
  118. package/dist/api/ai-gateway/providers/AnthropicRuntimeAdapter.js +37 -0
  119. package/dist/api/ai-gateway/providers/AnthropicRuntimeAdapter.js.map +1 -0
  120. package/dist/api/ai-gateway/providers/BailianRuntimeAdapter.d.ts +9 -0
  121. package/dist/api/ai-gateway/providers/BailianRuntimeAdapter.js +127 -0
  122. package/dist/api/ai-gateway/providers/BailianRuntimeAdapter.js.map +1 -0
  123. package/dist/api/ai-gateway/providers/DeepSeekRuntimeAdapter.d.ts +8 -0
  124. package/dist/api/ai-gateway/providers/DeepSeekRuntimeAdapter.js +47 -0
  125. package/dist/api/ai-gateway/providers/DeepSeekRuntimeAdapter.js.map +1 -0
  126. package/dist/api/ai-gateway/providers/KimiRuntimeAdapter.d.ts +8 -0
  127. package/dist/api/ai-gateway/providers/KimiRuntimeAdapter.js +57 -0
  128. package/dist/api/ai-gateway/providers/KimiRuntimeAdapter.js.map +1 -0
  129. package/dist/api/ai-gateway/providers/OpenAiCompatibleRuntimeAdapter.d.ts +1 -0
  130. package/dist/api/ai-gateway/providers/OpenAiCompatibleRuntimeAdapter.js +6 -0
  131. package/dist/api/ai-gateway/providers/OpenAiCompatibleRuntimeAdapter.js.map +1 -0
  132. package/dist/api/ai-gateway/providers/OpenAiRuntimeAdapter.d.ts +13 -0
  133. package/dist/api/ai-gateway/providers/OpenAiRuntimeAdapter.js +34 -0
  134. package/dist/api/ai-gateway/providers/OpenAiRuntimeAdapter.js.map +1 -0
  135. package/dist/api/ai-gateway/providers/ProviderRegistry.d.ts +68 -0
  136. package/dist/api/ai-gateway/providers/ProviderRegistry.js +288 -0
  137. package/dist/api/ai-gateway/providers/ProviderRegistry.js.map +1 -0
  138. package/dist/api/ai-gateway/providers/ProviderRuntimeAdapter.d.ts +88 -0
  139. package/dist/api/ai-gateway/providers/ProviderRuntimeAdapter.js +645 -0
  140. package/dist/api/ai-gateway/providers/ProviderRuntimeAdapter.js.map +1 -0
  141. package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.d.ts +13 -0
  142. package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.js +48 -0
  143. package/dist/api/ai-gateway/providers/ProviderRuntimeRegistry.js.map +1 -0
  144. package/dist/api/ai-gateway/providers/index.d.ts +9 -0
  145. package/dist/api/ai-gateway/providers/index.js +26 -0
  146. package/dist/api/ai-gateway/providers/index.js.map +1 -0
  147. package/dist/api/ai-gateway/quota/AnthropicQuotaAdapter.d.ts +5 -0
  148. package/dist/api/ai-gateway/quota/AnthropicQuotaAdapter.js +21 -0
  149. package/dist/api/ai-gateway/quota/AnthropicQuotaAdapter.js.map +1 -0
  150. package/dist/api/ai-gateway/quota/BailianQuotaAdapter.d.ts +5 -0
  151. package/dist/api/ai-gateway/quota/BailianQuotaAdapter.js +21 -0
  152. package/dist/api/ai-gateway/quota/BailianQuotaAdapter.js.map +1 -0
  153. package/dist/api/ai-gateway/quota/DeepSeekQuotaAdapter.d.ts +10 -0
  154. package/dist/api/ai-gateway/quota/DeepSeekQuotaAdapter.js +83 -0
  155. package/dist/api/ai-gateway/quota/DeepSeekQuotaAdapter.js.map +1 -0
  156. package/dist/api/ai-gateway/quota/KimiQuotaAdapter.d.ts +10 -0
  157. package/dist/api/ai-gateway/quota/KimiQuotaAdapter.js +70 -0
  158. package/dist/api/ai-gateway/quota/KimiQuotaAdapter.js.map +1 -0
  159. package/dist/api/ai-gateway/quota/OpenAiQuotaAdapter.d.ts +5 -0
  160. package/dist/api/ai-gateway/quota/OpenAiQuotaAdapter.js +21 -0
  161. package/dist/api/ai-gateway/quota/OpenAiQuotaAdapter.js.map +1 -0
  162. package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.d.ts +214 -0
  163. package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js +511 -0
  164. package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js.map +1 -0
  165. package/dist/api/ai-gateway/quota/index.d.ts +6 -0
  166. package/dist/api/ai-gateway/quota/index.js +23 -0
  167. package/dist/api/ai-gateway/quota/index.js.map +1 -0
  168. package/dist/api/ai-gateway/routing/InMemorySessionAffinityStore.d.ts +26 -0
  169. package/dist/api/ai-gateway/routing/InMemorySessionAffinityStore.js +67 -0
  170. package/dist/api/ai-gateway/routing/InMemorySessionAffinityStore.js.map +1 -0
  171. package/dist/api/ai-gateway/routing/ModelRouter.d.ts +84 -0
  172. package/dist/api/ai-gateway/routing/ModelRouter.js +274 -0
  173. package/dist/api/ai-gateway/routing/ModelRouter.js.map +1 -0
  174. package/dist/api/ai-gateway/routing/RedisSessionAffinityStore.d.ts +39 -0
  175. package/dist/api/ai-gateway/routing/RedisSessionAffinityStore.js +122 -0
  176. package/dist/api/ai-gateway/routing/RedisSessionAffinityStore.js.map +1 -0
  177. package/dist/api/ai-gateway/routing/SessionAffinityStore.d.ts +49 -0
  178. package/dist/api/ai-gateway/routing/SessionAffinityStore.js +66 -0
  179. package/dist/api/ai-gateway/routing/SessionAffinityStore.js.map +1 -0
  180. package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.d.ts +25 -0
  181. package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js +50 -0
  182. package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js.map +1 -0
  183. package/dist/api/ai-gateway/types.d.ts +112 -0
  184. package/dist/api/ai-gateway/types.js +305 -0
  185. package/dist/api/ai-gateway/types.js.map +1 -0
  186. package/dist/api/auth/AuthContext.d.ts +18 -3
  187. package/dist/api/auth/AuthContext.js +13 -2
  188. package/dist/api/auth/AuthContext.js.map +1 -1
  189. package/dist/api/auth/Authenticator.d.ts +3 -0
  190. package/dist/api/auth/Authenticator.js.map +1 -1
  191. package/dist/api/auth/ClientCredentialsAuthenticator.d.ts +2 -6
  192. package/dist/api/auth/ClientCredentialsAuthenticator.js +12 -30
  193. package/dist/api/auth/ClientCredentialsAuthenticator.js.map +1 -1
  194. package/dist/api/auth/SolidTokenAuthenticator.d.ts +2 -0
  195. package/dist/api/auth/SolidTokenAuthenticator.js +88 -2
  196. package/dist/api/auth/SolidTokenAuthenticator.js.map +1 -1
  197. package/dist/api/auth/TokenIdentity.d.ts +6 -0
  198. package/dist/api/auth/TokenIdentity.js +31 -0
  199. package/dist/api/auth/TokenIdentity.js.map +1 -0
  200. package/dist/api/chatkit/ai-provider.d.ts +9 -23
  201. package/dist/api/chatkit/ai-provider.js +30 -153
  202. package/dist/api/chatkit/ai-provider.js.map +1 -1
  203. package/dist/api/chatkit/default-agent.d.ts +24 -15
  204. package/dist/api/chatkit/default-agent.js +24 -83
  205. package/dist/api/chatkit/default-agent.js.map +1 -1
  206. package/dist/api/chatkit/index.d.ts +2 -1
  207. package/dist/api/chatkit/index.js +3 -1
  208. package/dist/api/chatkit/index.js.map +1 -1
  209. package/dist/api/chatkit/pod-store.d.ts +13 -1
  210. package/dist/api/chatkit/pod-store.js +127 -7
  211. package/dist/api/chatkit/pod-store.js.map +1 -1
  212. package/dist/api/chatkit/runtime/AcpAgentRuntime.d.ts +0 -1
  213. package/dist/api/chatkit/runtime/AcpAgentRuntime.js +14 -51
  214. package/dist/api/chatkit/runtime/AcpAgentRuntime.js.map +1 -1
  215. package/dist/api/chatkit/runtime/AcpRunner.js +2 -1
  216. package/dist/api/chatkit/runtime/AcpRunner.js.map +1 -1
  217. package/dist/api/chatkit/runtime/CodexRuntimeProjector.d.ts +15 -1
  218. package/dist/api/chatkit/runtime/CodexRuntimeProjector.js +52 -34
  219. package/dist/api/chatkit/runtime/CodexRuntimeProjector.js.map +1 -1
  220. package/dist/api/chatkit/service.d.ts +8 -1
  221. package/dist/api/chatkit/service.js +46 -5
  222. package/dist/api/chatkit/service.js.map +1 -1
  223. package/dist/api/chatkit/store.d.ts +23 -1
  224. package/dist/api/chatkit/store.js +56 -0
  225. package/dist/api/chatkit/store.js.map +1 -1
  226. package/dist/api/chatkit/types.d.ts +1 -0
  227. package/dist/api/chatkit/types.js.map +1 -1
  228. package/dist/api/container/common.js +286 -13
  229. package/dist/api/container/common.js.map +1 -1
  230. package/dist/api/container/index.js +126 -6
  231. package/dist/api/container/index.js.map +1 -1
  232. package/dist/api/container/local.js +50 -6
  233. package/dist/api/container/local.js.map +1 -1
  234. package/dist/api/container/rdf.d.ts +15 -0
  235. package/dist/api/container/rdf.js +90 -0
  236. package/dist/api/container/rdf.js.map +1 -0
  237. package/dist/api/container/routes.js +151 -11
  238. package/dist/api/container/routes.js.map +1 -1
  239. package/dist/api/container/types.d.ts +96 -0
  240. package/dist/api/container/types.js.map +1 -1
  241. package/dist/api/handlers/AdminHandler.d.ts +25 -2
  242. package/dist/api/handlers/AdminHandler.js +60 -10
  243. package/dist/api/handlers/AdminHandler.js.map +1 -1
  244. package/dist/api/handlers/AiClientConfigurationHandler.d.ts +7 -0
  245. package/dist/api/handlers/AiClientConfigurationHandler.js +202 -0
  246. package/dist/api/handlers/AiClientConfigurationHandler.js.map +1 -0
  247. package/dist/api/handlers/AiGatewayHandler.d.ts +23 -0
  248. package/dist/api/handlers/AiGatewayHandler.js +231 -0
  249. package/dist/api/handlers/AiGatewayHandler.js.map +1 -0
  250. package/dist/api/handlers/AiGatewayManagementHandler.d.ts +24 -0
  251. package/dist/api/handlers/AiGatewayManagementHandler.js +503 -0
  252. package/dist/api/handlers/AiGatewayManagementHandler.js.map +1 -0
  253. package/dist/api/handlers/ChatHandler.d.ts +11 -12
  254. package/dist/api/handlers/ChatHandler.js +12 -219
  255. package/dist/api/handlers/ChatHandler.js.map +1 -1
  256. package/dist/api/handlers/DashboardHandler.js +22 -116
  257. package/dist/api/handlers/DashboardHandler.js.map +1 -1
  258. package/dist/api/handlers/NetworkSettingsHandler.d.ts +97 -0
  259. package/dist/api/handlers/NetworkSettingsHandler.js +511 -0
  260. package/dist/api/handlers/NetworkSettingsHandler.js.map +1 -0
  261. package/dist/api/handlers/PodSettingsHandler.d.ts +79 -0
  262. package/dist/api/handlers/PodSettingsHandler.js +162 -0
  263. package/dist/api/handlers/PodSettingsHandler.js.map +1 -0
  264. package/dist/api/handlers/ProvisionHandler.d.ts +3 -1
  265. package/dist/api/handlers/ProvisionHandler.js +22 -87
  266. package/dist/api/handlers/ProvisionHandler.js.map +1 -1
  267. package/dist/api/handlers/RdfStatsHandler.d.ts +6 -0
  268. package/dist/api/handlers/RdfStatsHandler.js +85 -0
  269. package/dist/api/handlers/RdfStatsHandler.js.map +1 -0
  270. package/dist/api/handlers/SettingsHandler.d.ts +5 -0
  271. package/dist/api/handlers/SettingsHandler.js +13 -0
  272. package/dist/api/handlers/SettingsHandler.js.map +1 -0
  273. package/dist/api/handlers/StaticSpaHandler.d.ts +8 -0
  274. package/dist/api/handlers/StaticSpaHandler.js +102 -0
  275. package/dist/api/handlers/StaticSpaHandler.js.map +1 -0
  276. package/dist/api/handlers/index.d.ts +1 -0
  277. package/dist/api/handlers/index.js +1 -0
  278. package/dist/api/handlers/index.js.map +1 -1
  279. package/dist/api/http/readBoundedJsonBody.d.ts +14 -0
  280. package/dist/api/http/readBoundedJsonBody.js +58 -0
  281. package/dist/api/http/readBoundedJsonBody.js.map +1 -0
  282. package/dist/api/middleware/AuthMiddleware.d.ts +1 -0
  283. package/dist/api/middleware/AuthMiddleware.js +33 -4
  284. package/dist/api/middleware/AuthMiddleware.js.map +1 -1
  285. package/dist/api/runs/AgentRuntimeTypes.d.ts +18 -3
  286. package/dist/api/runs/AgentRuntimeTypes.js +61 -0
  287. package/dist/api/runs/AgentRuntimeTypes.js.map +1 -1
  288. package/dist/api/runs/InngestRunExecutionBackend.d.ts +28 -3
  289. package/dist/api/runs/InngestRunExecutionBackend.js +26 -3
  290. package/dist/api/runs/InngestRunExecutionBackend.js.map +1 -1
  291. package/dist/api/runs/ManagedRunWorker.d.ts +4 -1
  292. package/dist/api/runs/ManagedRunWorker.js +39 -8
  293. package/dist/api/runs/ManagedRunWorker.js.map +1 -1
  294. package/dist/api/runs/PiAgentRuntimeDriver.d.ts +5 -1
  295. package/dist/api/runs/PiAgentRuntimeDriver.js +94 -57
  296. package/dist/api/runs/PiAgentRuntimeDriver.js.map +1 -1
  297. package/dist/api/runs/RdfRunContextRetriever.d.ts +46 -0
  298. package/dist/api/runs/RdfRunContextRetriever.js +277 -0
  299. package/dist/api/runs/RdfRunContextRetriever.js.map +1 -0
  300. package/dist/api/runs/RunExecutionBackend.d.ts +38 -0
  301. package/dist/api/runs/RunExecutionBackend.js.map +1 -1
  302. package/dist/api/runs/RunStateCenter.d.ts +18 -3
  303. package/dist/api/runs/RunStateCenter.js +85 -24
  304. package/dist/api/runs/RunStateCenter.js.map +1 -1
  305. package/dist/api/runtime.js +163 -3
  306. package/dist/api/runtime.js.map +1 -1
  307. package/dist/api/service/AiClientConfigurationService.d.ts +97 -0
  308. package/dist/api/service/AiClientConfigurationService.js +379 -0
  309. package/dist/api/service/AiClientConfigurationService.js.map +1 -0
  310. package/dist/api/service/RdfBenchmarkReportCatalog.d.ts +86 -0
  311. package/dist/api/service/RdfBenchmarkReportCatalog.js +349 -0
  312. package/dist/api/service/RdfBenchmarkReportCatalog.js.map +1 -0
  313. package/dist/api/service/RdfBenchmarkReportGate.d.ts +78 -0
  314. package/dist/api/service/RdfBenchmarkReportGate.js +197 -0
  315. package/dist/api/service/RdfBenchmarkReportGate.js.map +1 -0
  316. package/dist/api/service/RdfSearchIndexingService.d.ts +113 -0
  317. package/dist/api/service/RdfSearchIndexingService.js +272 -0
  318. package/dist/api/service/RdfSearchIndexingService.js.map +1 -0
  319. package/dist/api/service/RdfSearchIndexingSolidFsSyncer.d.ts +27 -0
  320. package/dist/api/service/RdfSearchIndexingSolidFsSyncer.js +90 -0
  321. package/dist/api/service/RdfSearchIndexingSolidFsSyncer.js.map +1 -0
  322. package/dist/api/service/RdfStorageStatsService.d.ts +31 -0
  323. package/dist/api/service/RdfStorageStatsService.js +97 -0
  324. package/dist/api/service/RdfStorageStatsService.js.map +1 -0
  325. package/dist/api/service/VectorStoreService.d.ts +2 -0
  326. package/dist/api/service/VectorStoreService.js +70 -2
  327. package/dist/api/service/VectorStoreService.js.map +1 -1
  328. package/dist/api/service/VercelChatService.d.ts +27 -38
  329. package/dist/api/service/VercelChatService.js +153 -505
  330. package/dist/api/service/VercelChatService.js.map +1 -1
  331. package/dist/api/service/provider-http-transport.d.ts +21 -0
  332. package/dist/api/service/provider-http-transport.js +108 -2
  333. package/dist/api/service/provider-http-transport.js.map +1 -1
  334. package/dist/api/service/provider-registry.d.ts +5 -7
  335. package/dist/api/service/provider-registry.js +81 -64
  336. package/dist/api/service/provider-registry.js.map +1 -1
  337. package/dist/api/tasks/InngestTaskScheduler.d.ts +44 -4
  338. package/dist/api/tasks/TaskMaterializer.d.ts +10 -1
  339. package/dist/api/tasks/TaskMaterializer.js +39 -4
  340. package/dist/api/tasks/TaskMaterializer.js.map +1 -1
  341. package/dist/api/tasks/TaskService.d.ts +5 -1
  342. package/dist/api/tasks/TaskService.js +3 -0
  343. package/dist/api/tasks/TaskService.js.map +1 -1
  344. package/dist/cli/commands/rdf.d.ts +9 -0
  345. package/dist/cli/commands/rdf.js +66 -1
  346. package/dist/cli/commands/rdf.js.map +1 -1
  347. package/dist/cli/commands/start.js +3 -0
  348. package/dist/cli/commands/start.js.map +1 -1
  349. package/dist/cli/lib/solid-auth.d.ts +3 -3
  350. package/dist/cli/lib/solid-auth.js +4 -4
  351. package/dist/cli/lib/solid-auth.js.map +1 -1
  352. package/dist/components/components.jsonld +16 -0
  353. package/dist/components/context.jsonld +815 -28
  354. package/dist/document/Chunker.jsonld +110 -0
  355. package/dist/document/{DocumentParser.d.ts → DocumentReader.d.ts} +23 -11
  356. package/dist/document/{DocumentParser.js → DocumentReader.js} +2 -2
  357. package/dist/document/DocumentReader.js.map +1 -0
  358. package/dist/document/DocumentReader.jsonld +82 -0
  359. package/dist/document/HeadingChunker.jsonld +41 -0
  360. package/dist/document/{JinaDocumentParser.d.ts → JinaReader.d.ts} +7 -7
  361. package/dist/document/{JinaDocumentParser.js → JinaReader.js} +12 -12
  362. package/dist/document/JinaReader.js.map +1 -0
  363. package/dist/document/JinaReader.jsonld +133 -0
  364. package/dist/document/L0SourceSummary.d.ts +103 -0
  365. package/dist/document/L0SourceSummary.js +157 -0
  366. package/dist/document/L0SourceSummary.js.map +1 -0
  367. package/dist/document/L0SourceSummary.jsonld +326 -0
  368. package/dist/document/PaddleOcrReader.d.ts +40 -0
  369. package/dist/document/PaddleOcrReader.js +53 -0
  370. package/dist/document/PaddleOcrReader.js.map +1 -0
  371. package/dist/document/PaddleOcrReader.jsonld +234 -0
  372. package/dist/document/ReaderAiConfig.d.ts +50 -0
  373. package/dist/document/ReaderAiConfig.js +109 -0
  374. package/dist/document/ReaderAiConfig.js.map +1 -0
  375. package/dist/document/ReaderAiConfig.jsonld +185 -0
  376. package/dist/document/ReaderPolicy.d.ts +89 -0
  377. package/dist/document/ReaderPolicy.js +158 -0
  378. package/dist/document/ReaderPolicy.js.map +1 -0
  379. package/dist/document/ReaderPolicy.jsonld +218 -0
  380. package/dist/document/index.d.ts +6 -2
  381. package/dist/document/index.js +6 -2
  382. package/dist/document/index.js.map +1 -1
  383. package/dist/edge/DdnsManager.d.ts +1 -1
  384. package/dist/edge/DdnsManager.js.map +1 -1
  385. package/dist/edge/EdgeNodeAgent.d.ts +4 -0
  386. package/dist/edge/EdgeNodeAgent.js +6 -0
  387. package/dist/edge/EdgeNodeAgent.js.map +1 -1
  388. package/dist/edge/EdgeNodeAgent.jsonld +8 -0
  389. package/dist/edge/EdgeNodeAgentInitializer.d.ts +16 -0
  390. package/dist/edge/EdgeNodeAgentInitializer.js +51 -0
  391. package/dist/edge/EdgeNodeAgentInitializer.js.map +1 -1
  392. package/dist/edge/EdgeNodeAgentInitializer.jsonld +250 -0
  393. package/dist/edge/EdgeNodeCertificateCapabilityBridge.d.ts +34 -0
  394. package/dist/edge/EdgeNodeCertificateCapabilityBridge.js +111 -0
  395. package/dist/edge/EdgeNodeCertificateCapabilityBridge.js.map +1 -0
  396. package/dist/edge/acme/AcmeCertificateManager.d.ts +14 -1
  397. package/dist/edge/acme/AcmeCertificateManager.js +67 -7
  398. package/dist/edge/acme/AcmeCertificateManager.js.map +1 -1
  399. package/dist/edge/acme/AcmeCertificateManager.jsonld +22 -2
  400. package/dist/edge/acme/ClusterCertificateManager.d.ts +12 -0
  401. package/dist/edge/acme/ClusterCertificateManager.js +38 -0
  402. package/dist/edge/acme/ClusterCertificateManager.js.map +1 -1
  403. package/dist/extensions/ExtensionRuntime.d.ts +17 -0
  404. package/dist/extensions/ExtensionRuntime.js +171 -0
  405. package/dist/extensions/ExtensionRuntime.js.map +1 -0
  406. package/dist/extensions/PodCredentialResolver.d.ts +23 -0
  407. package/dist/extensions/PodCredentialResolver.js +139 -0
  408. package/dist/extensions/PodCredentialResolver.js.map +1 -0
  409. package/dist/extensions/index.d.ts +3 -0
  410. package/dist/extensions/index.js +20 -0
  411. package/dist/extensions/index.js.map +1 -0
  412. package/dist/extensions/types.d.ts +73 -0
  413. package/dist/extensions/types.js +3 -0
  414. package/dist/extensions/types.js.map +1 -0
  415. package/dist/http/SubgraphSparqlHttpHandler.d.ts +20 -1
  416. package/dist/http/SubgraphSparqlHttpHandler.js +324 -43
  417. package/dist/http/SubgraphSparqlHttpHandler.js.map +1 -1
  418. package/dist/http/SubgraphSparqlHttpHandler.jsonld +87 -0
  419. package/dist/identity/drizzle/EdgeNodeRepository.js +3 -2
  420. package/dist/identity/drizzle/EdgeNodeRepository.js.map +1 -1
  421. package/dist/identity/drizzle/schema.pg.js +1 -1
  422. package/dist/identity/drizzle/schema.pg.js.map +1 -1
  423. package/dist/identity/drizzle/schema.sqlite.js +1 -1
  424. package/dist/identity/drizzle/schema.sqlite.js.map +1 -1
  425. package/dist/identity/oidc/ScopedPickWebIdHandler.js +5 -5
  426. package/dist/identity/oidc/ScopedPickWebIdHandler.js.map +1 -1
  427. package/dist/index.d.ts +12 -2
  428. package/dist/index.js +13 -1
  429. package/dist/index.js.map +1 -1
  430. package/dist/main.js +3 -0
  431. package/dist/main.js.map +1 -1
  432. package/dist/provision/LocalProvisionState.d.ts +28 -0
  433. package/dist/provision/LocalProvisionState.js +124 -0
  434. package/dist/provision/LocalProvisionState.js.map +1 -0
  435. package/dist/provision/ProvisionCodeCodec.d.ts +7 -3
  436. package/dist/provision/ProvisionCodeCodec.js +10 -3
  437. package/dist/provision/ProvisionCodeCodec.js.map +1 -1
  438. package/dist/provision/ProvisionPodCreator.d.ts +15 -1
  439. package/dist/provision/ProvisionPodCreator.js +68 -1
  440. package/dist/provision/ProvisionPodCreator.js.map +1 -1
  441. package/dist/provision/ProvisionPodCreator.jsonld +31 -0
  442. package/dist/provision/ServiceAccessTokenCodec.d.ts +45 -0
  443. package/dist/provision/ServiceAccessTokenCodec.js +86 -0
  444. package/dist/provision/ServiceAccessTokenCodec.js.map +1 -0
  445. package/dist/runtime/GatewayAdminProxyAuth.d.ts +29 -0
  446. package/dist/runtime/GatewayAdminProxyAuth.js +108 -0
  447. package/dist/runtime/GatewayAdminProxyAuth.js.map +1 -0
  448. package/dist/runtime/Proxy.d.ts +10 -0
  449. package/dist/runtime/Proxy.js +64 -6
  450. package/dist/runtime/Proxy.js.map +1 -1
  451. package/dist/runtime/XpodRuntime.js +1 -0
  452. package/dist/runtime/XpodRuntime.js.map +1 -1
  453. package/dist/runtime/bootstrap.d.ts +1 -0
  454. package/dist/runtime/bootstrap.js +29 -0
  455. package/dist/runtime/bootstrap.js.map +1 -1
  456. package/dist/runtime/css-process.d.ts +1 -0
  457. package/dist/runtime/css-process.js +1 -0
  458. package/dist/runtime/css-process.js.map +1 -1
  459. package/dist/runtime/index.d.ts +1 -0
  460. package/dist/runtime/index.js +3 -1
  461. package/dist/runtime/index.js.map +1 -1
  462. package/dist/runtime/lifecycle.d.ts +3 -1
  463. package/dist/runtime/lifecycle.js +3 -1
  464. package/dist/runtime/lifecycle.js.map +1 -1
  465. package/dist/runtime/runner/node/NodeGatewayRuntimeRunner.js +2 -0
  466. package/dist/runtime/runner/node/NodeGatewayRuntimeRunner.js.map +1 -1
  467. package/dist/runtime/runner/types.d.ts +3 -0
  468. package/dist/runtime/runner/types.js.map +1 -1
  469. package/dist/runtime/runtime-types.d.ts +2 -0
  470. package/dist/runtime/runtime-types.js.map +1 -1
  471. package/dist/runtime/safe-env.d.ts +15 -0
  472. package/dist/runtime/safe-env.js +109 -0
  473. package/dist/runtime/safe-env.js.map +1 -0
  474. package/dist/security/index.d.ts +1 -0
  475. package/dist/security/index.js +18 -0
  476. package/dist/security/index.js.map +1 -0
  477. package/dist/security/secret-cell/DeploymentRootKeyProvider.d.ts +17 -0
  478. package/dist/security/secret-cell/DeploymentRootKeyProvider.js +61 -0
  479. package/dist/security/secret-cell/DeploymentRootKeyProvider.js.map +1 -0
  480. package/dist/security/secret-cell/DeploymentRootKeyProvider.jsonld +124 -0
  481. package/dist/security/secret-cell/SecretCellVault.d.ts +55 -0
  482. package/dist/security/secret-cell/SecretCellVault.js +242 -0
  483. package/dist/security/secret-cell/SecretCellVault.js.map +1 -0
  484. package/dist/security/secret-cell/SecretCellVault.jsonld +207 -0
  485. package/dist/security/secret-cell/index.d.ts +2 -0
  486. package/dist/security/secret-cell/index.js +11 -0
  487. package/dist/security/secret-cell/index.js.map +1 -0
  488. package/dist/solidfs/CompositeSolidFsSyncer.d.ts +18 -0
  489. package/dist/solidfs/CompositeSolidFsSyncer.js +32 -0
  490. package/dist/solidfs/CompositeSolidFsSyncer.js.map +1 -0
  491. package/dist/solidfs/LocalSolidFS.js +25 -1
  492. package/dist/solidfs/LocalSolidFS.js.map +1 -1
  493. package/dist/solidfs/RdfIndexSolidFsSyncer.d.ts +41 -2
  494. package/dist/solidfs/RdfIndexSolidFsSyncer.js +331 -21
  495. package/dist/solidfs/RdfIndexSolidFsSyncer.js.map +1 -1
  496. package/dist/solidfs/SolidFsMetaNotes.d.ts +25 -0
  497. package/dist/solidfs/SolidFsMetaNotes.js +103 -0
  498. package/dist/solidfs/SolidFsMetaNotes.js.map +1 -0
  499. package/dist/solidfs/SolidFsSyncJournal.d.ts +2 -2
  500. package/dist/solidfs/SolidFsSyncJournal.js +9 -4
  501. package/dist/solidfs/SolidFsSyncJournal.js.map +1 -1
  502. package/dist/solidfs/SolidFsSyncJournal.jsonld +119 -0
  503. package/dist/solidfs/WorkspacePrompt.d.ts +13 -0
  504. package/dist/solidfs/WorkspacePrompt.js +42 -0
  505. package/dist/solidfs/WorkspacePrompt.js.map +1 -0
  506. package/dist/solidfs/index.d.ts +3 -0
  507. package/dist/solidfs/index.js +3 -0
  508. package/dist/solidfs/index.js.map +1 -1
  509. package/dist/solidfs/types.d.ts +12 -2
  510. package/dist/solidfs/types.js.map +1 -1
  511. package/dist/storage/accessors/MixDataAccessor.d.ts +36 -4
  512. package/dist/storage/accessors/MixDataAccessor.js +222 -23
  513. package/dist/storage/accessors/MixDataAccessor.js.map +1 -1
  514. package/dist/storage/accessors/MixDataAccessor.jsonld +89 -0
  515. package/dist/storage/accessors/SolidRdfDataAccessor.d.ts +6 -1
  516. package/dist/storage/accessors/SolidRdfDataAccessor.js +35 -0
  517. package/dist/storage/accessors/SolidRdfDataAccessor.js.map +1 -1
  518. package/dist/storage/accessors/SolidRdfDataAccessor.jsonld +20 -0
  519. package/dist/storage/database/PostgresPoolManager.d.ts +1 -0
  520. package/dist/storage/database/PostgresPoolManager.js +2 -2
  521. package/dist/storage/database/PostgresPoolManager.js.map +1 -1
  522. package/dist/storage/locking/UrlAwareRedisLocker.d.ts +2 -0
  523. package/dist/storage/locking/UrlAwareRedisLocker.js +65 -0
  524. package/dist/storage/locking/UrlAwareRedisLocker.js.map +1 -1
  525. package/dist/storage/locking/UrlAwareRedisLocker.jsonld +19 -0
  526. package/dist/storage/rdf/PostgresRdfEngine.d.ts +286 -9
  527. package/dist/storage/rdf/PostgresRdfEngine.js +10773 -2084
  528. package/dist/storage/rdf/PostgresRdfEngine.js.map +1 -1
  529. package/dist/storage/rdf/PostgresRdfEngine.jsonld +1693 -89
  530. package/dist/storage/rdf/PostgresRdfSqlExecutor.d.ts +24 -0
  531. package/dist/storage/rdf/PostgresRdfSqlExecutor.js +131 -0
  532. package/dist/storage/rdf/PostgresRdfSqlExecutor.js.map +1 -0
  533. package/dist/storage/rdf/PostgresRdfTextIndex.d.ts +54 -0
  534. package/dist/storage/rdf/PostgresRdfTextIndex.js +1255 -0
  535. package/dist/storage/rdf/PostgresRdfTextIndex.js.map +1 -0
  536. package/dist/storage/rdf/PostgresRdfTextIndex.jsonld +487 -0
  537. package/dist/storage/rdf/PostgresRdfVectorIndex.d.ts +46 -0
  538. package/dist/storage/rdf/PostgresRdfVectorIndex.js +1165 -0
  539. package/dist/storage/rdf/PostgresRdfVectorIndex.js.map +1 -0
  540. package/dist/storage/rdf/PostgresRdfVectorIndex.jsonld +423 -0
  541. package/dist/storage/rdf/Rdf3xIndex.d.ts +14 -1
  542. package/dist/storage/rdf/Rdf3xIndex.js +286 -2
  543. package/dist/storage/rdf/Rdf3xIndex.js.map +1 -1
  544. package/dist/storage/rdf/Rdf3xIndex.jsonld +36 -0
  545. package/dist/storage/rdf/Rdf3xSchema.d.ts +5 -1
  546. package/dist/storage/rdf/Rdf3xSchema.js +17 -3
  547. package/dist/storage/rdf/Rdf3xSchema.js.map +1 -1
  548. package/dist/storage/rdf/RdfAccessScope.d.ts +22 -0
  549. package/dist/storage/rdf/RdfAccessScope.js +345 -0
  550. package/dist/storage/rdf/RdfAccessScope.js.map +1 -0
  551. package/dist/storage/rdf/RdfAccessScope.jsonld +45 -0
  552. package/dist/storage/rdf/RdfFusionRankPlan.d.ts +2 -0
  553. package/dist/storage/rdf/RdfFusionRankPlan.js +186 -0
  554. package/dist/storage/rdf/RdfFusionRankPlan.js.map +1 -0
  555. package/dist/storage/rdf/RdfJoinShape.d.ts +8 -0
  556. package/dist/storage/rdf/RdfJoinShape.js +31 -0
  557. package/dist/storage/rdf/RdfJoinShape.js.map +1 -0
  558. package/dist/storage/rdf/RdfQuadIndex.d.ts +5 -2
  559. package/dist/storage/rdf/RdfQuadIndex.js +94 -6
  560. package/dist/storage/rdf/RdfQuadIndex.js.map +1 -1
  561. package/dist/storage/rdf/RdfQuadIndex.jsonld +12 -0
  562. package/dist/storage/rdf/RdfQueryExecutor.d.ts +3 -4
  563. package/dist/storage/rdf/RdfQueryExecutor.js +235 -8
  564. package/dist/storage/rdf/RdfQueryExecutor.js.map +1 -1
  565. package/dist/storage/rdf/RdfSearchSourceFilter.d.ts +10 -0
  566. package/dist/storage/rdf/RdfSearchSourceFilter.js +83 -0
  567. package/dist/storage/rdf/RdfSearchSourceFilter.js.map +1 -0
  568. package/dist/storage/rdf/RdfSparqlAdapter.d.ts +27 -1
  569. package/dist/storage/rdf/RdfSparqlAdapter.js +265 -3
  570. package/dist/storage/rdf/RdfSparqlAdapter.js.map +1 -1
  571. package/dist/storage/rdf/RdfSparqlAdapter.jsonld +8 -0
  572. package/dist/storage/rdf/RdfTermDictionary.d.ts +7 -1
  573. package/dist/storage/rdf/RdfTermDictionary.js +139 -0
  574. package/dist/storage/rdf/RdfTermDictionary.js.map +1 -1
  575. package/dist/storage/rdf/RdfTermDictionary.jsonld +4 -0
  576. package/dist/storage/rdf/RdfTextIndex.d.ts +45 -2
  577. package/dist/storage/rdf/RdfTextIndex.js +810 -114
  578. package/dist/storage/rdf/RdfTextIndex.js.map +1 -1
  579. package/dist/storage/rdf/RdfTextIndex.jsonld +193 -0
  580. package/dist/storage/rdf/RdfTextProjection.d.ts +10 -0
  581. package/dist/storage/rdf/RdfTextProjection.js +258 -0
  582. package/dist/storage/rdf/RdfTextProjection.js.map +1 -0
  583. package/dist/storage/rdf/RdfVectorIndex.d.ts +30 -2
  584. package/dist/storage/rdf/RdfVectorIndex.js +461 -38
  585. package/dist/storage/rdf/RdfVectorIndex.js.map +1 -1
  586. package/dist/storage/rdf/RdfVectorIndex.jsonld +163 -0
  587. package/dist/storage/rdf/SolidRdfEngine.d.ts +12 -9
  588. package/dist/storage/rdf/SolidRdfEngine.js +48 -22
  589. package/dist/storage/rdf/SolidRdfEngine.js.map +1 -1
  590. package/dist/storage/rdf/SolidRdfEngine.jsonld +33 -43
  591. package/dist/storage/rdf/SolidRdfSparqlEngine.d.ts +19 -8
  592. package/dist/storage/rdf/SolidRdfSparqlEngine.js +674 -44
  593. package/dist/storage/rdf/SolidRdfSparqlEngine.js.map +1 -1
  594. package/dist/storage/rdf/SolidRdfSparqlEngine.jsonld +51 -0
  595. package/dist/storage/rdf/index.d.ts +9 -5
  596. package/dist/storage/rdf/index.js +42 -1
  597. package/dist/storage/rdf/index.js.map +1 -1
  598. package/dist/storage/rdf/models-benchmark.d.ts +264 -2
  599. package/dist/storage/rdf/models-benchmark.js +4207 -155
  600. package/dist/storage/rdf/models-benchmark.js.map +1 -1
  601. package/dist/storage/rdf/types.d.ts +833 -4
  602. package/dist/storage/rdf/types.js.map +1 -1
  603. package/dist/storage/rdf/types.jsonld +348 -0
  604. package/dist/storage/sparql/CompatibilitySparqlEngine.d.ts +14 -13
  605. package/dist/storage/sparql/CompatibilitySparqlEngine.js +24 -24
  606. package/dist/storage/sparql/CompatibilitySparqlEngine.js.map +1 -1
  607. package/dist/storage/sparql/CompatibilitySparqlEngineImpl.d.ts +14 -13
  608. package/dist/storage/sparql/CompatibilitySparqlEngineImpl.js +30 -18
  609. package/dist/storage/sparql/CompatibilitySparqlEngineImpl.js.map +1 -1
  610. package/dist/storage/sparql/SubgraphQueryEngine.d.ts +21 -12
  611. package/dist/storage/sparql/SubgraphQueryEngine.js +12 -12
  612. package/dist/storage/sparql/SubgraphQueryEngine.js.map +1 -1
  613. package/dist/terminal/sandbox/MacOSSandbox.js +2 -1
  614. package/dist/terminal/sandbox/MacOSSandbox.js.map +1 -1
  615. package/dist/terminal/sandbox/index.js +2 -1
  616. package/dist/terminal/sandbox/index.js.map +1 -1
  617. package/dist/test-utils/no-auth-xpod.js +3 -0
  618. package/dist/test-utils/no-auth-xpod.js.map +1 -1
  619. package/dist/tunnel/LocalTunnelProvider.d.ts +3 -0
  620. package/dist/tunnel/LocalTunnelProvider.js +17 -1
  621. package/dist/tunnel/LocalTunnelProvider.js.map +1 -1
  622. package/dist/tunnel/LocalTunnelProvider.jsonld +23 -0
  623. package/dist/tunnel/SakuraFrpTunnelProvider.d.ts +3 -0
  624. package/dist/tunnel/SakuraFrpTunnelProvider.js +18 -2
  625. package/dist/tunnel/SakuraFrpTunnelProvider.js.map +1 -1
  626. package/dist/tunnel/TunnelProfiles.d.ts +22 -0
  627. package/dist/tunnel/TunnelProfiles.js +208 -0
  628. package/dist/tunnel/TunnelProfiles.js.map +1 -0
  629. package/dist/tunnel/index.d.ts +2 -0
  630. package/dist/tunnel/index.js +4 -1
  631. package/dist/tunnel/index.js.map +1 -1
  632. package/dist/util/identifiers/ClusterIdentifierStrategy.d.ts +3 -0
  633. package/dist/util/identifiers/ClusterIdentifierStrategy.js +18 -2
  634. package/dist/util/identifiers/ClusterIdentifierStrategy.js.map +1 -1
  635. package/dist/util/identifiers/ClusterIdentifierStrategy.jsonld +5 -1
  636. package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.d.ts +55 -0
  637. package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.js +167 -0
  638. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionHeader.d.ts +3 -0
  639. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionHeader.js +8 -0
  640. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionList.d.ts +4 -0
  641. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionList.js +36 -0
  642. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMain.d.ts +4 -0
  643. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMain.js +37 -0
  644. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMainHeader.d.ts +3 -0
  645. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMainHeader.js +7 -0
  646. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.d.ts +14 -0
  647. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.js +333 -0
  648. package/node_modules/@undefineds.co/ai-connection/dist/AiProviderCard.d.ts +22 -0
  649. package/node_modules/@undefineds.co/ai-connection/dist/AiProviderCard.js +43 -0
  650. package/node_modules/@undefineds.co/ai-connection/dist/AiQuotaCard.d.ts +8 -0
  651. package/node_modules/@undefineds.co/ai-connection/dist/AiQuotaCard.js +6 -0
  652. package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.d.ts +120 -0
  653. package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.js +414 -0
  654. package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.d.ts +32 -0
  655. package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.js +212 -0
  656. package/node_modules/@undefineds.co/ai-connection/dist/client-config/codex.d.ts +14 -0
  657. package/node_modules/@undefineds.co/ai-connection/dist/client-config/codex.js +90 -0
  658. package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.cjs +668 -0
  659. package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.d.ts +6 -0
  660. package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.js +6 -0
  661. package/node_modules/@undefineds.co/ai-connection/dist/client-config/json-env-adapter.d.ts +21 -0
  662. package/node_modules/@undefineds.co/ai-connection/dist/client-config/json-env-adapter.js +82 -0
  663. package/node_modules/@undefineds.co/ai-connection/dist/client-config/pi.d.ts +13 -0
  664. package/node_modules/@undefineds.co/ai-connection/dist/client-config/pi.js +83 -0
  665. package/node_modules/@undefineds.co/ai-connection/dist/client-config/transaction.d.ts +17 -0
  666. package/node_modules/@undefineds.co/ai-connection/dist/client-config/transaction.js +153 -0
  667. package/node_modules/@undefineds.co/ai-connection/dist/client-config/types.d.ts +40 -0
  668. package/node_modules/@undefineds.co/ai-connection/dist/client-config/types.js +1 -0
  669. package/node_modules/@undefineds.co/ai-connection/dist/controller.d.ts +42 -0
  670. package/node_modules/@undefineds.co/ai-connection/dist/controller.js +289 -0
  671. package/node_modules/@undefineds.co/ai-connection/dist/index.d.ts +16 -0
  672. package/node_modules/@undefineds.co/ai-connection/dist/index.js +41 -0
  673. package/node_modules/@undefineds.co/ai-connection/dist/manifest.d.ts +1 -0
  674. package/node_modules/@undefineds.co/ai-connection/dist/manifest.js +18 -0
  675. package/node_modules/@undefineds.co/ai-connection/dist/service-access.d.ts +3 -0
  676. package/node_modules/@undefineds.co/ai-connection/dist/service-access.js +133 -0
  677. package/node_modules/@undefineds.co/ai-connection/package.json +50 -0
  678. package/node_modules/@undefineds.co/extension-sdk/README.md +299 -0
  679. package/node_modules/@undefineds.co/extension-sdk/dist/index.d.ts +5 -0
  680. package/node_modules/@undefineds.co/extension-sdk/dist/index.js +5 -0
  681. package/node_modules/@undefineds.co/extension-sdk/dist/layout.d.ts +16 -0
  682. package/node_modules/@undefineds.co/extension-sdk/dist/layout.js +36 -0
  683. package/node_modules/@undefineds.co/extension-sdk/dist/manifest.d.ts +27 -0
  684. package/node_modules/@undefineds.co/extension-sdk/dist/manifest.js +79 -0
  685. package/node_modules/@undefineds.co/extension-sdk/dist/react/app-layout.d.ts +7 -0
  686. package/node_modules/@undefineds.co/extension-sdk/dist/react/app-layout.js +8 -0
  687. package/node_modules/@undefineds.co/extension-sdk/dist/react/auth-boundary.d.ts +27 -0
  688. package/node_modules/@undefineds.co/extension-sdk/dist/react/auth-boundary.js +49 -0
  689. package/node_modules/@undefineds.co/extension-sdk/dist/react/layout-context.d.ts +11 -0
  690. package/node_modules/@undefineds.co/extension-sdk/dist/react/layout-context.js +9 -0
  691. package/node_modules/@undefineds.co/extension-sdk/dist/react/workspace-layout.d.ts +38 -0
  692. package/node_modules/@undefineds.co/extension-sdk/dist/react/workspace-layout.js +132 -0
  693. package/node_modules/@undefineds.co/extension-sdk/dist/react.d.ts +12 -0
  694. package/node_modules/@undefineds.co/extension-sdk/dist/react.js +19 -0
  695. package/node_modules/@undefineds.co/extension-sdk/dist/testing.d.ts +7 -0
  696. package/node_modules/@undefineds.co/extension-sdk/dist/testing.js +27 -0
  697. package/node_modules/@undefineds.co/extension-sdk/dist/web.d.ts +225 -0
  698. package/node_modules/@undefineds.co/extension-sdk/dist/web.js +142 -0
  699. package/node_modules/@undefineds.co/extension-sdk/package.json +49 -0
  700. package/node_modules/@undefineds.co/extensions/README.md +101 -0
  701. package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.d.ts +25 -0
  702. package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.d.ts.map +1 -0
  703. package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.js +45 -0
  704. package/node_modules/@undefineds.co/extensions/dist/adapters/langchain.js.map +1 -0
  705. package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.d.ts +31 -0
  706. package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.d.ts.map +1 -0
  707. package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.js +50 -0
  708. package/node_modules/@undefineds.co/extensions/dist/adapters/llamaindex.js.map +1 -0
  709. package/node_modules/@undefineds.co/extensions/dist/index.d.ts +7 -0
  710. package/node_modules/@undefineds.co/extensions/dist/index.d.ts.map +1 -0
  711. package/node_modules/@undefineds.co/extensions/dist/index.js +7 -0
  712. package/node_modules/@undefineds.co/extensions/dist/index.js.map +1 -0
  713. package/node_modules/@undefineds.co/extensions/dist/paddleocr.d.ts +16 -0
  714. package/node_modules/@undefineds.co/extensions/dist/paddleocr.d.ts.map +1 -0
  715. package/node_modules/@undefineds.co/extensions/dist/paddleocr.js +267 -0
  716. package/node_modules/@undefineds.co/extensions/dist/paddleocr.js.map +1 -0
  717. package/node_modules/@undefineds.co/extensions/dist/reader.d.ts +18 -0
  718. package/node_modules/@undefineds.co/extensions/dist/reader.d.ts.map +1 -0
  719. package/node_modules/@undefineds.co/extensions/dist/reader.js +39 -0
  720. package/node_modules/@undefineds.co/extensions/dist/reader.js.map +1 -0
  721. package/node_modules/@undefineds.co/extensions/dist/registry.d.ts +16 -0
  722. package/node_modules/@undefineds.co/extensions/dist/registry.d.ts.map +1 -0
  723. package/node_modules/@undefineds.co/extensions/dist/registry.js +97 -0
  724. package/node_modules/@undefineds.co/extensions/dist/registry.js.map +1 -0
  725. package/node_modules/@undefineds.co/extensions/dist/types.d.ts +141 -0
  726. package/node_modules/@undefineds.co/extensions/dist/types.d.ts.map +1 -0
  727. package/node_modules/@undefineds.co/extensions/dist/types.js +2 -0
  728. package/node_modules/@undefineds.co/extensions/dist/types.js.map +1 -0
  729. package/node_modules/@undefineds.co/extensions/package.json +38 -0
  730. package/node_modules/@undefineds.co/shared-ui/dist/badge.d.ts +8 -0
  731. package/node_modules/@undefineds.co/shared-ui/dist/badge.js +17 -0
  732. package/node_modules/@undefineds.co/shared-ui/dist/button.d.ts +10 -0
  733. package/node_modules/@undefineds.co/shared-ui/dist/button.js +30 -0
  734. package/node_modules/@undefineds.co/shared-ui/dist/card.d.ts +7 -0
  735. package/node_modules/@undefineds.co/shared-ui/dist/card.js +15 -0
  736. package/node_modules/@undefineds.co/shared-ui/dist/index.d.ts +6 -0
  737. package/node_modules/@undefineds.co/shared-ui/dist/index.js +6 -0
  738. package/node_modules/@undefineds.co/shared-ui/dist/input.d.ts +4 -0
  739. package/node_modules/@undefineds.co/shared-ui/dist/input.js +5 -0
  740. package/node_modules/@undefineds.co/shared-ui/dist/theme.css +121 -0
  741. package/node_modules/@undefineds.co/shared-ui/dist/utils.d.ts +2 -0
  742. package/node_modules/@undefineds.co/shared-ui/dist/utils.js +5 -0
  743. package/node_modules/@undefineds.co/shared-ui/dist/workspace.d.ts +23 -0
  744. package/node_modules/@undefineds.co/shared-ui/dist/workspace.js +38 -0
  745. package/node_modules/@undefineds.co/shared-ui/package.json +39 -0
  746. package/node_modules/@undefineds.co/solid-sdk/dist/index.d.ts +3 -0
  747. package/node_modules/@undefineds.co/solid-sdk/dist/index.js +3 -0
  748. package/node_modules/@undefineds.co/solid-sdk/dist/pod-runtime.d.ts +45 -0
  749. package/node_modules/@undefineds.co/solid-sdk/dist/pod-runtime.js +147 -0
  750. package/node_modules/@undefineds.co/solid-sdk/dist/react.d.ts +15 -0
  751. package/node_modules/@undefineds.co/solid-sdk/dist/react.js +15 -0
  752. package/node_modules/@undefineds.co/solid-sdk/dist/session.d.ts +42 -0
  753. package/node_modules/@undefineds.co/solid-sdk/dist/session.js +127 -0
  754. package/node_modules/@undefineds.co/solid-sdk/package.json +45 -0
  755. package/package.json +31 -13
  756. package/static/app/assets/index-BoYHJ6si.js +230 -0
  757. package/static/app/assets/inrupt-smoke.js +2 -2
  758. package/static/app/assets/main.css +1 -1
  759. package/static/app/assets/main.js +9 -9
  760. package/static/dashboard/assets/NetworkPage-Brt79fuQ.js +2 -0
  761. package/static/dashboard/assets/PaneListHeader-57nvMwH6.js +1 -0
  762. package/static/dashboard/assets/PodPage-CM6do1vB.js +2 -0
  763. package/static/dashboard/assets/ServicesPage-BUNxGJRz.js +1 -0
  764. package/static/dashboard/assets/card-B9Zjf_2p.js +1 -0
  765. package/static/dashboard/assets/dashboard-8C6o666W.js +305 -0
  766. package/static/dashboard/assets/dashboard-CSdewNeA.css +1 -0
  767. package/static/dashboard/assets/database-DPh9wDY9.js +1 -0
  768. package/static/dashboard/assets/external-link-VbMQvVMz.js +1 -0
  769. package/static/dashboard/assets/index-RfiFckzb.js +51 -0
  770. package/static/dashboard/assets/refresh-cw-BxVxNxNr.js +1 -0
  771. package/static/dashboard/assets/services-status-context-DKmJ7ISr.js +1 -0
  772. package/static/dashboard/dashboard.html +2 -2
  773. package/static/settings/assets/ModelsPage-D_IH7AH3.js +1 -0
  774. package/static/settings/assets/PaneListHeader-Bgaze006.js +1 -0
  775. package/static/settings/assets/PodPage-Cy1VNObw.js +2 -0
  776. package/static/settings/assets/ServicesPage-BsFaxVWC.js +1 -0
  777. package/static/settings/assets/SettingsPage-UafNWE_p.js +48 -0
  778. package/static/settings/assets/card-B_bXSIn-.js +1 -0
  779. package/static/settings/assets/services-status-context-DiX-AbrP.js +1 -0
  780. package/static/settings/assets/settings-B30oMfZq.js +305 -0
  781. package/static/settings/assets/settings-CSdewNeA.css +1 -0
  782. package/static/settings/assets/workspace-layout-Dv1Yn9Ci.js +1 -0
  783. package/static/settings/auth.html +21 -0
  784. package/static/settings/reachability.html +221 -0
  785. package/static/settings/reachability.svg +7 -0
  786. package/static/settings/reachability.webmanifest +18 -0
  787. package/static/settings/settings.html +13 -0
  788. package/static/settings/signal-pod.html +293 -0
  789. package/static/settings/vite.svg +1 -0
  790. package/dist/api/service/ai-gateway-transport.d.ts +0 -25
  791. package/dist/api/service/ai-gateway-transport.js +0 -136
  792. package/dist/api/service/ai-gateway-transport.js.map +0 -1
  793. package/dist/api/service/chat-protocol-adapters.d.ts +0 -5
  794. package/dist/api/service/chat-protocol-adapters.js +0 -146
  795. package/dist/api/service/chat-protocol-adapters.js.map +0 -1
  796. package/dist/api/service/chat-routing.d.ts +0 -8
  797. package/dist/api/service/chat-routing.js +0 -16
  798. package/dist/api/service/chat-routing.js.map +0 -1
  799. package/dist/api/service/platform-ai-config.d.ts +0 -10
  800. package/dist/api/service/platform-ai-config.js +0 -76
  801. package/dist/api/service/platform-ai-config.js.map +0 -1
  802. package/dist/document/DocumentParser.js.map +0 -1
  803. package/dist/document/JinaDocumentParser.js.map +0 -1
  804. package/static/app/assets/index-C1yksyT4.js +0 -171
  805. package/static/dashboard/assets/dashboard-BssaVKTn.css +0 -1
  806. package/static/dashboard/assets/dashboard-Ckuadl3C.js +0 -54
@@ -1,12 +1,12 @@
1
- import{g as Ep}from"./_commonjsHelpers-B-UnjaXt.js";var tr={exports:{}},ti={};var Zh;function Cp(){if(Zh)return ti;Zh=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(s,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var b in d)b!=="key"&&(h[b]=d[b])}else h=d;return d=h.ref,{$$typeof:u,type:s,key:y,ref:d!==void 0?d:null,props:h}}return ti.Fragment=c,ti.jsx=r,ti.jsxs=r,ti}var Vh;function Ap(){return Vh||(Vh=1,tr.exports=Cp()),tr.exports}var f=Ap(),ar={exports:{}},ie={};var Kh;function Tp(){if(Kh)return ie;Kh=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),L=Symbol.iterator;function Y(v){return v===null||typeof v!="object"?null:(v=L&&v[L]||v["@@iterator"],typeof v=="function"?v:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,G={};function k(v,R,B){this.props=v,this.context=R,this.refs=G,this.updater=B||Z}k.prototype.isReactComponent={},k.prototype.setState=function(v,R){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,R,"setState")},k.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function Q(){}Q.prototype=k.prototype;function J(v,R,B){this.props=v,this.context=R,this.refs=G,this.updater=B||Z}var ue=J.prototype=new Q;ue.constructor=J,M(ue,k.prototype),ue.isPureReactComponent=!0;var le=Array.isArray;function te(){}var K={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function we(v,R,B){var H=B.ref;return{$$typeof:u,type:v,key:R,ref:H!==void 0?H:null,props:B}}function xe(v,R){return we(v.type,R,v.props)}function ke(v){return typeof v=="object"&&v!==null&&v.$$typeof===u}function Me(v){var R={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(B){return R[B]})}var Fe=/\/+/g;function Le(v,R){return typeof v=="object"&&v!==null&&v.key!=null?Me(""+v.key):R.toString(36)}function Je(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(te,te):(v.status="pending",v.then(function(R){v.status==="pending"&&(v.status="fulfilled",v.value=R)},function(R){v.status==="pending"&&(v.status="rejected",v.reason=R)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function D(v,R,B,H,F){var I=typeof v;(I==="undefined"||I==="boolean")&&(v=null);var ne=!1;if(v===null)ne=!0;else switch(I){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(v.$$typeof){case u:case c:ne=!0;break;case A:return ne=v._init,D(ne(v._payload),R,B,H,F)}}if(ne)return F=F(v),ne=H===""?"."+Le(v,0):H,le(F)?(B="",ne!=null&&(B=ne.replace(Fe,"$&/")+"/"),D(F,R,B,"",function(be){return be})):F!=null&&(ke(F)&&(F=xe(F,B+(F.key==null||v&&v.key===F.key?"":(""+F.key).replace(Fe,"$&/")+"/")+ne)),R.push(F)),1;ne=0;var fe=H===""?".":H+":";if(le(v))for(var q=0;q<v.length;q++)H=v[q],I=fe+Le(H,q),ne+=D(H,R,B,I,F);else if(q=Y(v),typeof q=="function")for(v=q.call(v),q=0;!(H=v.next()).done;)H=H.value,I=fe+Le(H,q++),ne+=D(H,R,B,I,F);else if(I==="object"){if(typeof v.then=="function")return D(Je(v),R,B,H,F);throw R=String(v),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return ne}function X(v,R,B){if(v==null)return v;var H=[],F=0;return D(v,H,"","",function(I){return R.call(B,I,F++)}),H}function W(v){if(v._status===-1){var R=v._result;R=R(),R.then(function(B){(v._status===0||v._status===-1)&&(v._status=1,v._result=B)},function(B){(v._status===0||v._status===-1)&&(v._status=2,v._result=B)}),v._status===-1&&(v._status=0,v._result=R)}if(v._status===1)return v._result.default;throw v._result}var ae=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},oe={map:X,forEach:function(v,R,B){X(v,function(){R.apply(this,arguments)},B)},count:function(v){var R=0;return X(v,function(){R++}),R},toArray:function(v){return X(v,function(R){return R})||[]},only:function(v){if(!ke(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ie.Activity=z,ie.Children=oe,ie.Component=k,ie.Fragment=r,ie.Profiler=d,ie.PureComponent=J,ie.StrictMode=s,ie.Suspense=p,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ie.__COMPILER_RUNTIME={__proto__:null,c:function(v){return K.H.useMemoCache(v)}},ie.cache=function(v){return function(){return v.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(v,R,B){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var H=M({},v.props),F=v.key;if(R!=null)for(I in R.key!==void 0&&(F=""+R.key),R)!re.call(R,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&R.ref===void 0||(H[I]=R[I]);var I=arguments.length-2;if(I===1)H.children=B;else if(1<I){for(var ne=Array(I),fe=0;fe<I;fe++)ne[fe]=arguments[fe+2];H.children=ne}return we(v.type,F,H)},ie.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:h,_context:v},v},ie.createElement=function(v,R,B){var H,F={},I=null;if(R!=null)for(H in R.key!==void 0&&(I=""+R.key),R)re.call(R,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(F[H]=R[H]);var ne=arguments.length-2;if(ne===1)F.children=B;else if(1<ne){for(var fe=Array(ne),q=0;q<ne;q++)fe[q]=arguments[q+2];F.children=fe}if(v&&v.defaultProps)for(H in ne=v.defaultProps,ne)F[H]===void 0&&(F[H]=ne[H]);return we(v,I,F)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(v){return{$$typeof:b,render:v}},ie.isValidElement=ke,ie.lazy=function(v){return{$$typeof:A,_payload:{_status:-1,_result:v},_init:W}},ie.memo=function(v,R){return{$$typeof:g,type:v,compare:R===void 0?null:R}},ie.startTransition=function(v){var R=K.T,B={};K.T=B;try{var H=v(),F=K.S;F!==null&&F(B,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(te,ae)}catch(I){ae(I)}finally{R!==null&&B.types!==null&&(R.types=B.types),K.T=R}},ie.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ie.use=function(v){return K.H.use(v)},ie.useActionState=function(v,R,B){return K.H.useActionState(v,R,B)},ie.useCallback=function(v,R){return K.H.useCallback(v,R)},ie.useContext=function(v){return K.H.useContext(v)},ie.useDebugValue=function(){},ie.useDeferredValue=function(v,R){return K.H.useDeferredValue(v,R)},ie.useEffect=function(v,R){return K.H.useEffect(v,R)},ie.useEffectEvent=function(v){return K.H.useEffectEvent(v)},ie.useId=function(){return K.H.useId()},ie.useImperativeHandle=function(v,R,B){return K.H.useImperativeHandle(v,R,B)},ie.useInsertionEffect=function(v,R){return K.H.useInsertionEffect(v,R)},ie.useLayoutEffect=function(v,R){return K.H.useLayoutEffect(v,R)},ie.useMemo=function(v,R){return K.H.useMemo(v,R)},ie.useOptimistic=function(v,R){return K.H.useOptimistic(v,R)},ie.useReducer=function(v,R,B){return K.H.useReducer(v,R,B)},ie.useRef=function(v){return K.H.useRef(v)},ie.useState=function(v){return K.H.useState(v)},ie.useSyncExternalStore=function(v,R,B){return K.H.useSyncExternalStore(v,R,B)},ie.useTransition=function(){return K.H.useTransition()},ie.version="19.2.3",ie}var Fh;function jr(){return Fh||(Fh=1,ar.exports=Tp()),ar.exports}var S=jr();const mr=Ep(S);var lr={exports:{}},ai={},nr={exports:{}},ir={};var Jh;function Rp(){return Jh||(Jh=1,(function(u){function c(D,X){var W=D.length;D.push(X);e:for(;0<W;){var ae=W-1>>>1,oe=D[ae];if(0<d(oe,X))D[ae]=X,D[W]=oe,W=ae;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var X=D[0],W=D.pop();if(W!==X){D[0]=W;e:for(var ae=0,oe=D.length,v=oe>>>1;ae<v;){var R=2*(ae+1)-1,B=D[R],H=R+1,F=D[H];if(0>d(B,W))H<oe&&0>d(F,B)?(D[ae]=F,D[H]=W,ae=H):(D[ae]=B,D[R]=W,ae=R);else if(H<oe&&0>d(F,W))D[ae]=F,D[H]=W,ae=H;else break e}}return X}function d(D,X){var W=D.sortIndex-X.sortIndex;return W!==0?W:D.id-X.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var y=Date,b=y.now();u.unstable_now=function(){return y.now()-b}}var p=[],g=[],A=1,z=null,L=3,Y=!1,Z=!1,M=!1,G=!1,k=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function ue(D){for(var X=r(g);X!==null;){if(X.callback===null)s(g);else if(X.startTime<=D)s(g),X.sortIndex=X.expirationTime,c(p,X);else break;X=r(g)}}function le(D){if(M=!1,ue(D),!Z)if(r(p)!==null)Z=!0,te||(te=!0,Me());else{var X=r(g);X!==null&&Je(le,X.startTime-D)}}var te=!1,K=-1,re=5,we=-1;function xe(){return G?!0:!(u.unstable_now()-we<re)}function ke(){if(G=!1,te){var D=u.unstable_now();we=D;var X=!0;try{e:{Z=!1,M&&(M=!1,Q(K),K=-1),Y=!0;var W=L;try{t:{for(ue(D),z=r(p);z!==null&&!(z.expirationTime>D&&xe());){var ae=z.callback;if(typeof ae=="function"){z.callback=null,L=z.priorityLevel;var oe=ae(z.expirationTime<=D);if(D=u.unstable_now(),typeof oe=="function"){z.callback=oe,ue(D),X=!0;break t}z===r(p)&&s(p),ue(D)}else s(p);z=r(p)}if(z!==null)X=!0;else{var v=r(g);v!==null&&Je(le,v.startTime-D),X=!1}}break e}finally{z=null,L=W,Y=!1}X=void 0}}finally{X?Me():te=!1}}}var Me;if(typeof J=="function")Me=function(){J(ke)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,Le=Fe.port2;Fe.port1.onmessage=ke,Me=function(){Le.postMessage(null)}}else Me=function(){k(ke,0)};function Je(D,X){K=k(function(){D(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return L},u.unstable_next=function(D){switch(L){case 1:case 2:case 3:var X=3;break;default:X=L}var W=L;L=X;try{return D()}finally{L=W}},u.unstable_requestPaint=function(){G=!0},u.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=L;L=D;try{return X()}finally{L=W}},u.unstable_scheduleCallback=function(D,X,W){var ae=u.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ae+W:ae):W=ae,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=W+oe,D={id:A++,callback:X,priorityLevel:D,startTime:W,expirationTime:oe,sortIndex:-1},W>ae?(D.sortIndex=W,c(g,D),r(p)===null&&D===r(g)&&(M?(Q(K),K=-1):M=!0,Je(le,W-ae))):(D.sortIndex=oe,c(p,D),Z||Y||(Z=!0,te||(te=!0,Me()))),D},u.unstable_shouldYield=xe,u.unstable_wrapCallback=function(D){var X=L;return function(){var W=L;L=X;try{return D.apply(this,arguments)}finally{L=W}}}})(ir)),ir}var Wh;function Dp(){return Wh||(Wh=1,nr.exports=Rp()),nr.exports}var ur={exports:{}},ut={};var $h;function _p(){if($h)return ut;$h=1;var u=jr();function c(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)g+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,g,A){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:p,containerInfo:g,implementation:A}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ut.createPortal=function(p,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(c(299));return h(p,g,null,A)},ut.flushSync=function(p){var g=y.T,A=s.p;try{if(y.T=null,s.p=2,p)return p()}finally{y.T=g,s.p=A,s.d.f()}},ut.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},ut.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},ut.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var A=g.as,z=b(A,g.crossOrigin),L=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:L,fetchPriority:Y}):A==="script"&&s.d.X(p,{crossOrigin:z,integrity:L,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ut.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var A=b(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},ut.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var A=g.as,z=b(A,g.crossOrigin);s.d.L(p,A,{crossOrigin:z,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ut.preloadModule=function(p,g){if(typeof p=="string")if(g){var A=b(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},ut.requestFormReset=function(p){s.d.r(p)},ut.unstable_batchedUpdates=function(p,g){return p(g)},ut.useFormState=function(p,g,A){return y.H.useFormState(p,g,A)},ut.useFormStatus=function(){return y.H.useHostTransitionStatus()},ut.version="19.2.3",ut}var Ih;function Up(){if(Ih)return ur.exports;Ih=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),ur.exports=_p(),ur.exports}var Ph;function Op(){if(Ph)return ai;Ph=1;var u=Dp(),c=jr(),r=Up();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return p(n),e;if(i===l)return p(n),t;i=i.sibling}throw Error(s(188))}if(a.return!==l.return)a=n,l=i;else{for(var o=!1,m=n.child;m;){if(m===a){o=!0,a=n,l=i;break}if(m===l){o=!0,l=n,a=i;break}m=m.sibling}if(!o){for(m=i.child;m;){if(m===a){o=!0,a=i,l=n;break}if(m===l){o=!0,l=i,a=n;break}m=m.sibling}if(!o)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,L=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),we=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Me(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case k:return"Profiler";case G:return"StrictMode";case le:return"Suspense";case te:return"SuspenseList";case we:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case J:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case ue:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var Je=Array.isArray,D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ae=[],oe=-1;function v(e){return{current:e}}function R(e){0>oe||(e.current=ae[oe],ae[oe]=null,oe--)}function B(e,t){oe++,ae[oe]=e.current,e.current=t}var H=v(null),F=v(null),I=v(null),ne=v(null);function fe(e,t){switch(B(I,t),B(F,e),B(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mh(t),e=yh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(H),B(H,e)}function q(){R(H),R(F),R(I)}function be(e){e.memoizedState!==null&&B(ne,e);var t=H.current,a=yh(t,e.type);t!==a&&(B(F,e),B(H,a))}function Ne(e){F.current===e&&(R(H),R(F)),ne.current===e&&(R(ne),$n._currentValue=W)}var Yt,yt;function nt(e){if(Yt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Yt=t&&t[1]||"",yt=-1<a.stack.indexOf(`
1
+ import{g as Hp}from"./_commonjsHelpers-B-UnjaXt.js";var cr={exports:{}},li={};var Ih;function qp(){if(Ih)return li;Ih=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(s,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var x in d)x!=="key"&&(h[x]=d[x])}else h=d;return d=h.ref,{$$typeof:i,type:s,key:y,ref:d!==void 0?d:null,props:h}}return li.Fragment=c,li.jsx=r,li.jsxs=r,li}var Ph;function kp(){return Ph||(Ph=1,cr.exports=qp()),cr.exports}var f=kp(),sr={exports:{}},ue={};var em;function Yp(){if(em)return ue;em=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),B=Symbol.iterator;function Y(v){return v===null||typeof v!="object"?null:(v=B&&v[B]||v["@@iterator"],typeof v=="function"?v:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function X(v,R,H){this.props=v,this.context=R,this.refs=L,this.updater=H||Q}X.prototype.isReactComponent={},X.prototype.setState=function(v,R){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,R,"setState")},X.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function W(){}W.prototype=X.prototype;function F(v,R,H){this.props=v,this.context=R,this.refs=L,this.updater=H||Q}var le=F.prototype=new W;le.constructor=F,O(le,X.prototype),le.isPureReactComponent=!0;var ne=Array.isArray;function te(){}var Z={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function ze(v,R,H){var q=H.ref;return{$$typeof:i,type:v,key:R,ref:q!==void 0?q:null,props:H}}function Se(v,R){return ze(v.type,R,v.props)}function He(v){return typeof v=="object"&&v!==null&&v.$$typeof===i}function _e(v){var R={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(H){return R[H]})}var qe=/\/+/g;function De(v,R){return typeof v=="object"&&v!==null&&v.key!=null?_e(""+v.key):R.toString(36)}function Ee(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(te,te):(v.status="pending",v.then(function(R){v.status==="pending"&&(v.status="fulfilled",v.value=R)},function(R){v.status==="pending"&&(v.status="rejected",v.reason=R)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function D(v,R,H,q,K){var I=typeof v;(I==="undefined"||I==="boolean")&&(v=null);var ie=!1;if(v===null)ie=!0;else switch(I){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(v.$$typeof){case i:case c:ie=!0;break;case C:return ie=v._init,D(ie(v._payload),R,H,q,K)}}if(ie)return K=K(v),ie=q===""?"."+De(v,0):q,ne(K)?(H="",ie!=null&&(H=ie.replace(qe,"$&/")+"/"),D(K,R,H,"",function(xe){return xe})):K!=null&&(He(K)&&(K=Se(K,H+(K.key==null||v&&v.key===K.key?"":(""+K.key).replace(qe,"$&/")+"/")+ie)),R.push(K)),1;ie=0;var fe=q===""?".":q+":";if(ne(v))for(var k=0;k<v.length;k++)q=v[k],I=fe+De(q,k),ie+=D(q,R,H,I,K);else if(k=Y(v),typeof k=="function")for(v=k.call(v),k=0;!(q=v.next()).done;)q=q.value,I=fe+De(q,k++),ie+=D(q,R,H,I,K);else if(I==="object"){if(typeof v.then=="function")return D(Ee(v),R,H,q,K);throw R=String(v),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return ie}function G(v,R,H){if(v==null)return v;var q=[],K=0;return D(v,q,"","",function(I){return R.call(H,I,K++)}),q}function J(v){if(v._status===-1){var R=v._result;R=R(),R.then(function(H){(v._status===0||v._status===-1)&&(v._status=1,v._result=H)},function(H){(v._status===0||v._status===-1)&&(v._status=2,v._result=H)}),v._status===-1&&(v._status=0,v._result=R)}if(v._status===1)return v._result.default;throw v._result}var ae=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},oe={map:G,forEach:function(v,R,H){G(v,function(){R.apply(this,arguments)},H)},count:function(v){var R=0;return G(v,function(){R++}),R},toArray:function(v){return G(v,function(R){return R})||[]},only:function(v){if(!He(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ue.Activity=z,ue.Children=oe,ue.Component=X,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=F,ue.StrictMode=s,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ue.__COMPILER_RUNTIME={__proto__:null,c:function(v){return Z.H.useMemoCache(v)}},ue.cache=function(v){return function(){return v.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(v,R,H){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var q=O({},v.props),K=v.key;if(R!=null)for(I in R.key!==void 0&&(K=""+R.key),R)!re.call(R,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&R.ref===void 0||(q[I]=R[I]);var I=arguments.length-2;if(I===1)q.children=H;else if(1<I){for(var ie=Array(I),fe=0;fe<I;fe++)ie[fe]=arguments[fe+2];q.children=ie}return ze(v.type,K,q)},ue.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:h,_context:v},v},ue.createElement=function(v,R,H){var q,K={},I=null;if(R!=null)for(q in R.key!==void 0&&(I=""+R.key),R)re.call(R,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(K[q]=R[q]);var ie=arguments.length-2;if(ie===1)K.children=H;else if(1<ie){for(var fe=Array(ie),k=0;k<ie;k++)fe[k]=arguments[k+2];K.children=fe}if(v&&v.defaultProps)for(q in ie=v.defaultProps,ie)K[q]===void 0&&(K[q]=ie[q]);return ze(v,I,K)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(v){return{$$typeof:x,render:v}},ue.isValidElement=He,ue.lazy=function(v){return{$$typeof:C,_payload:{_status:-1,_result:v},_init:J}},ue.memo=function(v,R){return{$$typeof:g,type:v,compare:R===void 0?null:R}},ue.startTransition=function(v){var R=Z.T,H={};Z.T=H;try{var q=v(),K=Z.S;K!==null&&K(H,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(te,ae)}catch(I){ae(I)}finally{R!==null&&H.types!==null&&(R.types=H.types),Z.T=R}},ue.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ue.use=function(v){return Z.H.use(v)},ue.useActionState=function(v,R,H){return Z.H.useActionState(v,R,H)},ue.useCallback=function(v,R){return Z.H.useCallback(v,R)},ue.useContext=function(v){return Z.H.useContext(v)},ue.useDebugValue=function(){},ue.useDeferredValue=function(v,R){return Z.H.useDeferredValue(v,R)},ue.useEffect=function(v,R){return Z.H.useEffect(v,R)},ue.useEffectEvent=function(v){return Z.H.useEffectEvent(v)},ue.useId=function(){return Z.H.useId()},ue.useImperativeHandle=function(v,R,H){return Z.H.useImperativeHandle(v,R,H)},ue.useInsertionEffect=function(v,R){return Z.H.useInsertionEffect(v,R)},ue.useLayoutEffect=function(v,R){return Z.H.useLayoutEffect(v,R)},ue.useMemo=function(v,R){return Z.H.useMemo(v,R)},ue.useOptimistic=function(v,R){return Z.H.useOptimistic(v,R)},ue.useReducer=function(v,R,H){return Z.H.useReducer(v,R,H)},ue.useRef=function(v){return Z.H.useRef(v)},ue.useState=function(v){return Z.H.useState(v)},ue.useSyncExternalStore=function(v,R,H){return Z.H.useSyncExternalStore(v,R,H)},ue.useTransition=function(){return Z.H.useTransition()},ue.version="19.2.8",ue}var tm;function Tr(){return tm||(tm=1,sr.exports=Yp()),sr.exports}var S=Tr();const br=Hp(S);var rr={exports:{}},ni={},or={exports:{}},fr={};var am;function Gp(){return am||(am=1,(function(i){function c(D,G){var J=D.length;D.push(G);e:for(;0<J;){var ae=J-1>>>1,oe=D[ae];if(0<d(oe,G))D[ae]=G,D[J]=oe,J=ae;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var G=D[0],J=D.pop();if(J!==G){D[0]=J;e:for(var ae=0,oe=D.length,v=oe>>>1;ae<v;){var R=2*(ae+1)-1,H=D[R],q=R+1,K=D[q];if(0>d(H,J))q<oe&&0>d(K,H)?(D[ae]=K,D[q]=J,ae=q):(D[ae]=H,D[R]=J,ae=R);else if(q<oe&&0>d(K,J))D[ae]=K,D[q]=J,ae=q;else break e}}return G}function d(D,G){var J=D.sortIndex-G.sortIndex;return J!==0?J:D.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var y=Date,x=y.now();i.unstable_now=function(){return y.now()-x}}var p=[],g=[],C=1,z=null,B=3,Y=!1,Q=!1,O=!1,L=!1,X=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function le(D){for(var G=r(g);G!==null;){if(G.callback===null)s(g);else if(G.startTime<=D)s(g),G.sortIndex=G.expirationTime,c(p,G);else break;G=r(g)}}function ne(D){if(O=!1,le(D),!Q)if(r(p)!==null)Q=!0,te||(te=!0,_e());else{var G=r(g);G!==null&&Ee(ne,G.startTime-D)}}var te=!1,Z=-1,re=5,ze=-1;function Se(){return L?!0:!(i.unstable_now()-ze<re)}function He(){if(L=!1,te){var D=i.unstable_now();ze=D;var G=!0;try{e:{Q=!1,O&&(O=!1,W(Z),Z=-1),Y=!0;var J=B;try{t:{for(le(D),z=r(p);z!==null&&!(z.expirationTime>D&&Se());){var ae=z.callback;if(typeof ae=="function"){z.callback=null,B=z.priorityLevel;var oe=ae(z.expirationTime<=D);if(D=i.unstable_now(),typeof oe=="function"){z.callback=oe,le(D),G=!0;break t}z===r(p)&&s(p),le(D)}else s(p);z=r(p)}if(z!==null)G=!0;else{var v=r(g);v!==null&&Ee(ne,v.startTime-D),G=!1}}break e}finally{z=null,B=J,Y=!1}G=void 0}}finally{G?_e():te=!1}}}var _e;if(typeof F=="function")_e=function(){F(He)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,De=qe.port2;qe.port1.onmessage=He,_e=function(){De.postMessage(null)}}else _e=function(){X(He,0)};function Ee(D,G){Z=X(function(){D(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(D){switch(B){case 1:case 2:case 3:var G=3;break;default:G=B}var J=B;B=G;try{return D()}finally{B=J}},i.unstable_requestPaint=function(){L=!0},i.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=B;B=D;try{return G()}finally{B=J}},i.unstable_scheduleCallback=function(D,G,J){var ae=i.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ae+J:ae):J=ae,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=J+oe,D={id:C++,callback:G,priorityLevel:D,startTime:J,expirationTime:oe,sortIndex:-1},J>ae?(D.sortIndex=J,c(g,D),r(p)===null&&D===r(g)&&(O?(W(Z),Z=-1):O=!0,Ee(ne,J-ae))):(D.sortIndex=oe,c(p,D),Q||Y||(Q=!0,te||(te=!0,_e()))),D},i.unstable_shouldYield=Se,i.unstable_wrapCallback=function(D){var G=B;return function(){var J=B;B=G;try{return D.apply(this,arguments)}finally{B=J}}}})(fr)),fr}var lm;function Xp(){return lm||(lm=1,or.exports=Gp()),or.exports}var dr={exports:{}},ut={};var nm;function Qp(){if(nm)return ut;nm=1;var i=Tr();function c(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)g+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,g,C){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:p,containerInfo:g,implementation:C}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ut.createPortal=function(p,g){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(c(299));return h(p,g,null,C)},ut.flushSync=function(p){var g=y.T,C=s.p;try{if(y.T=null,s.p=2,p)return p()}finally{y.T=g,s.p=C,s.d.f()}},ut.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},ut.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},ut.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var C=g.as,z=x(C,g.crossOrigin),B=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;C==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:B,fetchPriority:Y}):C==="script"&&s.d.X(p,{crossOrigin:z,integrity:B,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ut.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var C=x(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},ut.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var C=g.as,z=x(C,g.crossOrigin);s.d.L(p,C,{crossOrigin:z,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ut.preloadModule=function(p,g){if(typeof p=="string")if(g){var C=x(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},ut.requestFormReset=function(p){s.d.r(p)},ut.unstable_batchedUpdates=function(p,g){return p(g)},ut.useFormState=function(p,g,C){return y.H.useFormState(p,g,C)},ut.useFormStatus=function(){return y.H.useHostTransitionStatus()},ut.version="19.2.8",ut}var im;function Zp(){if(im)return dr.exports;im=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),dr.exports=Qp(),dr.exports}var um;function Vp(){if(um)return ni;um=1;var i=Xp(),c=Tr(),r=Zp();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return p(n),e;if(u===l)return p(n),t;u=u.sibling}throw Error(s(188))}if(a.return!==l.return)a=n,l=u;else{for(var o=!1,m=n.child;m;){if(m===a){o=!0,a=n,l=u;break}if(m===l){o=!0,l=n,a=u;break}m=m.sibling}if(!o){for(m=u.child;m;){if(m===a){o=!0,a=u,l=n;break}if(m===l){o=!0,l=u,a=n;break}m=m.sibling}if(!o)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,B=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),F=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),Se=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case X:return"Profiler";case L:return"StrictMode";case ne:return"Suspense";case te:return"SuspenseList";case ze:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case F:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ee=Array.isArray,D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ae=[],oe=-1;function v(e){return{current:e}}function R(e){0>oe||(e.current=ae[oe],ae[oe]=null,oe--)}function H(e,t){oe++,ae[oe]=e.current,e.current=t}var q=v(null),K=v(null),I=v(null),ie=v(null);function fe(e,t){switch(H(I,t),H(K,e),H(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(q),H(q,e)}function k(){R(q),R(K),R(I)}function xe(e){e.memoizedState!==null&&H(ie,e);var t=q.current,a=wh(t,e.type);t!==a&&(H(K,e),H(q,a))}function Ne(e){K.current===e&&(R(q),R(K)),ie.current===e&&(R(ie),Pn._currentValue=J)}var Yt,yt;function nt(e){if(Yt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Yt=t&&t[1]||"",yt=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Yt+e+yt}var Be=!1;function kt(e,t){if(!e||Be)return"";Be=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(T){var C=T}Reflect.construct(e,[],O)}else{try{O.call()}catch(T){C=T}e.call(O.prototype)}}else{try{throw Error()}catch(T){C=T}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(T){if(T&&C&&typeof T.stack=="string")return[T.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),o=i[0],m=i[1];if(o&&m){var x=o.split(`
4
- `),E=m.split(`
5
- `);for(n=l=0;l<x.length&&!x[l].includes("DetermineComponentFrameRoot");)l++;for(;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;if(l===x.length||n===E.length)for(l=x.length-1,n=E.length-1;1<=l&&0<=n&&x[l]!==E[n];)n--;for(;1<=l&&0<=n;l--,n--)if(x[l]!==E[n]){if(l!==1||n!==1)do if(l--,n--,0>n||x[l]!==E[n]){var _=`
6
- `+x[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=n);break}}}finally{Be=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nt(a):""}function it(e,t){switch(e.tag){case 26:case 27:case 5:return nt(e.type);case 16:return nt("Lazy");case 13:return e.child!==t&&t!==null?nt("Suspense Fallback"):nt("Suspense");case 19:return nt("SuspenseList");case 0:case 15:return kt(e.type,!1);case 11:return kt(e.type.render,!1);case 1:return kt(e.type,!0);case 31:return nt("Activity");default:return""}}function ea(e){try{var t="",a=null;do t+=it(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
3
+ `+Yt+e+yt}var ke=!1;function Gt(e,t){if(!e||ke)return"";ke=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(T){var A=T}Reflect.construct(e,[],M)}else{try{M.call()}catch(T){A=T}e.call(M.prototype)}}else{try{throw Error()}catch(T){A=T}(M=e())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(T){if(T&&A&&typeof T.stack=="string")return[T.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),o=u[0],m=u[1];if(o&&m){var b=o.split(`
4
+ `),N=m.split(`
5
+ `);for(n=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(l===b.length||n===N.length)for(l=b.length-1,n=N.length-1;1<=l&&0<=n&&b[l]!==N[n];)n--;for(;1<=l&&0<=n;l--,n--)if(b[l]!==N[n]){if(l!==1||n!==1)do if(l--,n--,0>n||b[l]!==N[n]){var _=`
6
+ `+b[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=n);break}}}finally{ke=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nt(a):""}function it(e,t){switch(e.tag){case 26:case 27:case 5:return nt(e.type);case 16:return nt("Lazy");case 13:return e.child!==t&&t!==null?nt("Suspense Fallback"):nt("Suspense");case 19:return nt("SuspenseList");case 0:case 15:return Gt(e.type,!1);case 11:return Gt(e.type.render,!1);case 1:return Gt(e.type,!0);case 31:return nt("Activity");default:return""}}function ta(e){try{var t="",a=null;do t+=it(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var ta=Object.prototype.hasOwnProperty,gl=u.unstable_scheduleCallback,Gu=u.unstable_cancelCallback,n0=u.unstable_shouldYield,i0=u.unstable_requestPaint,pt=u.unstable_now,u0=u.unstable_getCurrentPriorityLevel,Qr=u.unstable_ImmediatePriority,Zr=u.unstable_UserBlockingPriority,oi=u.unstable_NormalPriority,c0=u.unstable_LowPriority,Vr=u.unstable_IdlePriority,s0=u.log,r0=u.unstable_setDisableYieldValue,rn=null,gt=null;function Na(e){if(typeof s0=="function"&&r0(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(rn,e)}catch{}}var vt=Math.clz32?Math.clz32:d0,o0=Math.log,f0=Math.LN2;function d0(e){return e>>>=0,e===0?32:31-(o0(e)/f0|0)|0}var fi=256,di=262144,hi=4194304;function Ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~i,l!==0?n=Ia(l):(o&=m,o!==0?n=Ia(o):a||(a=m&~e,a!==0&&(n=Ia(a))))):(m=l&~i,m!==0?n=Ia(m):o!==0?n=Ia(o):a||(a=l&~e,a!==0&&(n=Ia(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function on(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function h0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kr(){var e=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),e}function Xu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function fn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function m0(e,t,a,l,n,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,x=e.expirationTimes,E=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-vt(a),O=1<<_;m[_]=0,x[_]=-1;var C=E[_];if(C!==null)for(E[_]=null,_=0;_<C.length;_++){var T=C[_];T!==null&&(T.lane&=-536870913)}a&=~O}l!==0&&Fr(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Fr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Jr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Wr(e,t){var a=t&-t;return a=(a&42)!==0?1:Qu(a),(a&(e.suspendedLanes|t))!==0?0:a}function Qu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $r(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Hh(e.type))}function Ir(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Ea=Math.random().toString(36).slice(2),Pe="__reactFiber$"+Ea,st="__reactProps$"+Ea,vl="__reactContainer$"+Ea,Vu="__reactEvents$"+Ea,y0="__reactListeners$"+Ea,p0="__reactHandles$"+Ea,Pr="__reactResources$"+Ea,dn="__reactMarker$"+Ea;function Ku(e){delete e[Pe],delete e[st],delete e[Vu],delete e[y0],delete e[p0]}function xl(e){var t=e[Pe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[Pe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wh(e);e!==null;){if(a=e[Pe])return a;e=wh(e)}return t}e=a,a=e.parentNode}return null}function bl(e){if(e=e[Pe]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function hn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Sl(e){var t=e[Pr];return t||(t=e[Pr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[dn]=!0}var eo=new Set,to={};function Pa(e,t){wl(e,t),wl(e+"Capture",t)}function wl(e,t){for(to[e]=t,e=0;e<t.length;e++)eo.add(t[e])}var g0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ao={},lo={};function v0(e){return ta.call(lo,e)?!0:ta.call(ao,e)?!1:g0.test(e)?lo[e]=!0:(ao[e]=!0,!1)}function yi(e,t,a){if(v0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function pi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function aa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function no(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function x0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fu(e){if(!e._valueTracker){var t=no(e)?"checked":"value";e._valueTracker=x0(e,t,""+e[t])}}function io(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=no(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function gi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var b0=/[\n"\\]/g;function Rt(e){return e.replace(b0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ju(e,t,a,l,n,i,o,m){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Wu(e,o,Tt(t)):a!=null?Wu(e,o,Tt(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Tt(m):e.removeAttribute("name")}function uo(e,t,a,l,n,i,o,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Fu(e);return}a=a!=null?""+Tt(a):"",t=t!=null?""+Tt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Fu(e)}function Wu(e,t,a){t==="number"&&gi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function jl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Tt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function co(e,t,a){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Tt(a):""}function so(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Je(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Tt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Fu(e)}function zl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var S0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ro(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||S0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function oo(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&ro(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&ro(e,i,t[i])}function $u(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var w0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),j0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vi(e){return j0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var Iu=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,El=null;function fo(e){var t=bl(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ju(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[st]||null;if(!n)throw Error(s(90));Ju(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&io(l)}break e;case"textarea":co(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&jl(e,!!a.multiple,t,!1)}}}var ec=!1;function ho(e,t,a){if(ec)return e(t,a);ec=!0;try{var l=e(t);return l}finally{if(ec=!1,(Nl!==null||El!==null)&&(iu(),Nl&&(t=Nl,e=El,El=Nl=null,fo(t),e)))for(t=0;t<e.length;t++)fo(e[t])}}function mn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[st]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tc=!1;if(na)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){tc=!0}}),window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{tc=!1}var Ca=null,ac=null,xi=null;function mo(){if(xi)return xi;var e,t=ac,a=t.length,l,n="value"in Ca?Ca.value:Ca.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[i-l];l++);return xi=n.slice(e,1<l?1-l:void 0)}function bi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Si(){return!0}function yo(){return!1}function rt(e){function t(a,l,n,i,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Si:yo,this.isPropagationStopped=yo,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Si)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=rt(el),pn=z({},el,{view:0,detail:0}),z0=rt(pn),lc,nc,gn,ji=z({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gn&&(gn&&e.type==="mousemove"?(lc=e.screenX-gn.screenX,nc=e.screenY-gn.screenY):nc=lc=0,gn=e),lc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),po=rt(ji),N0=z({},ji,{dataTransfer:0}),E0=rt(N0),C0=z({},pn,{relatedTarget:0}),ic=rt(C0),A0=z({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),T0=rt(A0),R0=z({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D0=rt(R0),_0=z({},el,{data:0}),go=rt(_0),U0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function uc(){return L0}var B0=z({},pn,{key:function(e){if(e.key){var t=U0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H0=rt(B0),q0=z({},ji,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vo=rt(q0),Y0=z({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),k0=rt(Y0),G0=z({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),X0=rt(G0),Q0=z({},ji,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Z0=rt(Q0),V0=z({},el,{newState:0,oldState:0}),K0=rt(V0),F0=[9,13,27,32],cc=na&&"CompositionEvent"in window,vn=null;na&&"documentMode"in document&&(vn=document.documentMode);var J0=na&&"TextEvent"in window&&!vn,xo=na&&(!cc||vn&&8<vn&&11>=vn),bo=" ",So=!1;function wo(e,t){switch(e){case"keyup":return F0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function W0(e,t){switch(e){case"compositionend":return jo(t);case"keypress":return t.which!==32?null:(So=!0,bo);case"textInput":return e=t.data,e===bo&&So?null:e;default:return null}}function $0(e,t){if(Cl)return e==="compositionend"||!cc&&wo(e,t)?(e=mo(),xi=ac=Ca=null,Cl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xo&&t.locale!=="ko"?null:t.data;default:return null}}var I0={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 zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!I0[e.type]:t==="textarea"}function No(e,t,a,l){Nl?El?El.push(l):El=[l]:Nl=l,t=du(t,"onChange"),0<t.length&&(a=new wi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var xn=null,bn=null;function P0(e){sh(e,0)}function zi(e){var t=hn(e);if(io(t))return e}function Eo(e,t){if(e==="change")return t}var Co=!1;if(na){var sc;if(na){var rc="oninput"in document;if(!rc){var Ao=document.createElement("div");Ao.setAttribute("oninput","return;"),rc=typeof Ao.oninput=="function"}sc=rc}else sc=!1;Co=sc&&(!document.documentMode||9<document.documentMode)}function To(){xn&&(xn.detachEvent("onpropertychange",Ro),bn=xn=null)}function Ro(e){if(e.propertyName==="value"&&zi(bn)){var t=[];No(t,bn,e,Pu(e)),ho(P0,t)}}function ey(e,t,a){e==="focusin"?(To(),xn=t,bn=a,xn.attachEvent("onpropertychange",Ro)):e==="focusout"&&To()}function ty(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(bn)}function ay(e,t){if(e==="click")return zi(t)}function ly(e,t){if(e==="input"||e==="change")return zi(t)}function ny(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:ny;function Sn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!ta.call(t,n)||!xt(e[n],t[n]))return!1}return!0}function Do(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _o(e,t){var a=Do(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Do(a)}}function Uo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=gi(e.document)}return t}function oc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var iy=na&&"documentMode"in document&&11>=document.documentMode,Al=null,fc=null,wn=null,dc=!1;function Mo(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;dc||Al==null||Al!==gi(l)||(l=Al,"selectionStart"in l&&oc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),wn&&Sn(wn,l)||(wn=l,l=du(fc,"onSelect"),0<l.length&&(t=new wi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Al)))}function tl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Tl={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionrun:tl("Transition","TransitionRun"),transitionstart:tl("Transition","TransitionStart"),transitioncancel:tl("Transition","TransitionCancel"),transitionend:tl("Transition","TransitionEnd")},hc={},Lo={};na&&(Lo=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);function al(e){if(hc[e])return hc[e];if(!Tl[e])return e;var t=Tl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Lo)return hc[e]=t[a];return e}var Bo=al("animationend"),Ho=al("animationiteration"),qo=al("animationstart"),uy=al("transitionrun"),cy=al("transitionstart"),sy=al("transitioncancel"),Yo=al("transitionend"),ko=new Map,mc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");mc.push("scrollEnd");function Gt(e,t){ko.set(e,t),Pa(t,[e])}var Ni=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Dt=[],Rl=0,yc=0;function Ei(){for(var e=Rl,t=yc=Rl=0;t<e;){var a=Dt[t];Dt[t++]=null;var l=Dt[t];Dt[t++]=null;var n=Dt[t];Dt[t++]=null;var i=Dt[t];if(Dt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}i!==0&&Go(a,n,i)}}function Ci(e,t,a,l){Dt[Rl++]=e,Dt[Rl++]=t,Dt[Rl++]=a,Dt[Rl++]=l,yc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function pc(e,t,a,l){return Ci(e,t,a,l),Ai(e)}function ll(e,t){return Ci(e,null,null,t),Ai(e)}function Go(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-vt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function Ai(e){if(50<Qn)throw Qn=0,Ns=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dl={};function ry(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new ry(e,t,a,l)}function gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Xo(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ti(e,t,a,l,n,i){var o=0;if(l=e,typeof e=="function")gc(e)&&(o=1);else if(typeof e=="string")o=mp(e,a,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case we:return e=bt(31,a,t,n),e.elementType=we,e.lanes=i,e;case M:return nl(a.children,n,i,t);case G:o=8,n|=24;break;case k:return e=bt(12,a,t,n|2),e.elementType=k,e.lanes=i,e;case le:return e=bt(13,a,t,n),e.elementType=le,e.lanes=i,e;case te:return e=bt(19,a,t,n),e.elementType=te,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:o=10;break e;case Q:o=9;break e;case ue:o=11;break e;case K:o=14;break e;case re:o=16,l=null;break e}o=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=bt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function nl(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function vc(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Qo(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function xc(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zo=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var a=Zo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ea(t)},Zo.set(e,t),t)}return{value:e,source:t,stack:ea(t)}}var _l=[],Ul=0,Ri=null,jn=0,Ut=[],Ot=0,Aa=null,Vt=1,Kt="";function ua(e,t){_l[Ul++]=jn,_l[Ul++]=Ri,Ri=e,jn=t}function Vo(e,t,a){Ut[Ot++]=Vt,Ut[Ot++]=Kt,Ut[Ot++]=Aa,Aa=e;var l=Vt;e=Kt;var n=32-vt(l)-1;l&=~(1<<n),a+=1;var i=32-vt(t)+n;if(30<i){var o=n-n%5;i=(l&(1<<o)-1).toString(32),l>>=o,n-=o,Vt=1<<32-vt(t)+n|a<<n|l,Kt=i+e}else Vt=1<<i|a<<n|l,Kt=e}function bc(e){e.return!==null&&(ua(e,1),Vo(e,1,0))}function Sc(e){for(;e===Ri;)Ri=_l[--Ul],_l[Ul]=null,jn=_l[--Ul],_l[Ul]=null;for(;e===Aa;)Aa=Ut[--Ot],Ut[Ot]=null,Kt=Ut[--Ot],Ut[Ot]=null,Vt=Ut[--Ot],Ut[Ot]=null}function Ko(e,t){Ut[Ot++]=Vt,Ut[Ot++]=Kt,Ut[Ot++]=Aa,Vt=t.id,Kt=t.overflow,Aa=e}var et=null,Re=null,pe=!1,Ta=null,Mt=!1,wc=Error(s(519));function Ra(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zn(_t(t,e)),wc}function Fo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Pe]=e,t[st]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Vn.length;a++)he(Vn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),uo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),so(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||dh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=la),t=!0):t=!1,t||Ra(e,!0)}function Jo(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:et=et.return}}function Ol(e){if(e!==et)return!1;if(!pe)return Jo(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ys(e.type,e.memoizedProps)),a=!a),a&&Re&&Ra(e),Jo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Re=Sh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Re=Sh(e)}else t===27?(t=Re,Qa(e.type)?(e=Zs,Zs=null,Re=e):Re=t):Re=et?Bt(e.stateNode.nextSibling):null;return!0}function il(){Re=et=null,pe=!1}function jc(){var e=Ta;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),Ta=null),e}function zn(e){Ta===null?Ta=[e]:Ta.push(e)}var zc=v(null),ul=null,ca=null;function Da(e,t,a){B(zc,t._currentValue),t._currentValue=a}function sa(e){e._currentValue=zc.current,R(zc)}function Nc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Ec(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=n;for(var x=0;x<t.length;x++)if(m.context===t[x]){i.lanes|=a,m=i.alternate,m!==null&&(m.lanes|=a),Nc(i.return,a,e),l||(o=null);break e}i=m.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(s(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Nc(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ml(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var m=n.type;xt(n.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(n===ne.current){if(o=n.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push($n):e=[$n])}n=n.return}e!==null&&Ec(t,e,a,l),t.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cl(e){ul=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return Wo(ul,e)}function _i(e,t){return ul===null&&cl(e),Wo(e,t)}function Wo(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(s(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var oy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},fy=u.unstable_scheduleCallback,dy=u.unstable_NormalPriority,Qe={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cc(){return{controller:new oy,data:new Map,refCount:0}}function Nn(e){e.refCount--,e.refCount===0&&fy(dy,function(){e.controller.abort()})}var En=null,Ac=0,Ll=0,Bl=null;function hy(e,t){if(En===null){var a=En=[];Ac=0,Ll=Ds(),Bl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ac++,t.then($o,$o),t}function $o(){if(--Ac===0&&En!==null){Bl!==null&&(Bl.status="fulfilled");var e=En;En=null,Ll=0,Bl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function my(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Io=D.S;D.S=function(e,t){Ld=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hy(e,t),Io!==null&&Io(e,t)};var sl=v(null);function Tc(){var e=sl.current;return e!==null?e:Te.pooledCache}function Ui(e,t){t===null?B(sl,sl.current):B(sl,t.pool)}function Po(){var e=Tc();return e===null?null:{parent:Qe._currentValue,pool:e}}var Hl=Error(s(460)),Rc=Error(s(474)),Oi=Error(s(542)),Mi={then:function(){}};function ef(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(la,la),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lf(e),e;default:if(typeof t.status=="string")t.then(la,la);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lf(e),e}throw ol=t,Hl}}function rl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ol=a,Hl):a}}var ol=null;function af(){if(ol===null)throw Error(s(459));var e=ol;return ol=null,e}function lf(e){if(e===Hl||e===Oi)throw Error(s(483))}var ql=null,Cn=0;function Li(e){var t=Cn;return Cn+=1,ql===null&&(ql=[]),tf(ql,e,t)}function An(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bi(e,t){throw t.$$typeof===L?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nf(e){function t(j,w){if(e){var N=j.deletions;N===null?(j.deletions=[w],j.flags|=16):N.push(w)}}function a(j,w){if(!e)return null;for(;w!==null;)t(j,w),w=w.sibling;return null}function l(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function n(j,w){return j=ia(j,w),j.index=0,j.sibling=null,j}function i(j,w,N){return j.index=N,e?(N=j.alternate,N!==null?(N=N.index,N<w?(j.flags|=67108866,w):N):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function o(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function m(j,w,N,U){return w===null||w.tag!==6?(w=vc(N,j.mode,U),w.return=j,w):(w=n(w,N),w.return=j,w)}function x(j,w,N,U){var P=N.type;return P===M?_(j,w,N.props.children,U,N.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&rl(P)===w.type)?(w=n(w,N.props),An(w,N),w.return=j,w):(w=Ti(N.type,N.key,N.props,null,j.mode,U),An(w,N),w.return=j,w)}function E(j,w,N,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==N.containerInfo||w.stateNode.implementation!==N.implementation?(w=xc(N,j.mode,U),w.return=j,w):(w=n(w,N.children||[]),w.return=j,w)}function _(j,w,N,U,P){return w===null||w.tag!==7?(w=nl(N,j.mode,U,P),w.return=j,w):(w=n(w,N),w.return=j,w)}function O(j,w,N){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=vc(""+w,j.mode,N),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Y:return N=Ti(w.type,w.key,w.props,null,j.mode,N),An(N,w),N.return=j,N;case Z:return w=xc(w,j.mode,N),w.return=j,w;case re:return w=rl(w),O(j,w,N)}if(Je(w)||Me(w))return w=nl(w,j.mode,N,null),w.return=j,w;if(typeof w.then=="function")return O(j,Li(w),N);if(w.$$typeof===J)return O(j,_i(j,w),N);Bi(j,w)}return null}function C(j,w,N,U){var P=w!==null?w.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return P!==null?null:m(j,w,""+N,U);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:return N.key===P?x(j,w,N,U):null;case Z:return N.key===P?E(j,w,N,U):null;case re:return N=rl(N),C(j,w,N,U)}if(Je(N)||Me(N))return P!==null?null:_(j,w,N,U,null);if(typeof N.then=="function")return C(j,w,Li(N),U);if(N.$$typeof===J)return C(j,w,_i(j,N),U);Bi(j,N)}return null}function T(j,w,N,U,P){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(N)||null,m(w,j,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Y:return j=j.get(U.key===null?N:U.key)||null,x(w,j,U,P);case Z:return j=j.get(U.key===null?N:U.key)||null,E(w,j,U,P);case re:return U=rl(U),T(j,w,N,U,P)}if(Je(U)||Me(U))return j=j.get(N)||null,_(w,j,U,P,null);if(typeof U.then=="function")return T(j,w,N,Li(U),P);if(U.$$typeof===J)return T(j,w,N,_i(w,U),P);Bi(w,U)}return null}function V(j,w,N,U){for(var P=null,ge=null,$=w,se=w=0,ye=null;$!==null&&se<N.length;se++){$.index>se?(ye=$,$=null):ye=$.sibling;var ve=C(j,$,N[se],U);if(ve===null){$===null&&($=ye);break}e&&$&&ve.alternate===null&&t(j,$),w=i(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve,$=ye}if(se===N.length)return a(j,$),pe&&ua(j,se),P;if($===null){for(;se<N.length;se++)$=O(j,N[se],U),$!==null&&(w=i($,w,se),ge===null?P=$:ge.sibling=$,ge=$);return pe&&ua(j,se),P}for($=l($);se<N.length;se++)ye=T($,j,se,N[se],U),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?se:ye.key),w=i(ye,w,se),ge===null?P=ye:ge.sibling=ye,ge=ye);return e&&$.forEach(function(Ja){return t(j,Ja)}),pe&&ua(j,se),P}function ee(j,w,N,U){if(N==null)throw Error(s(151));for(var P=null,ge=null,$=w,se=w=0,ye=null,ve=N.next();$!==null&&!ve.done;se++,ve=N.next()){$.index>se?(ye=$,$=null):ye=$.sibling;var Ja=C(j,$,ve.value,U);if(Ja===null){$===null&&($=ye);break}e&&$&&Ja.alternate===null&&t(j,$),w=i(Ja,w,se),ge===null?P=Ja:ge.sibling=Ja,ge=Ja,$=ye}if(ve.done)return a(j,$),pe&&ua(j,se),P;if($===null){for(;!ve.done;se++,ve=N.next())ve=O(j,ve.value,U),ve!==null&&(w=i(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve);return pe&&ua(j,se),P}for($=l($);!ve.done;se++,ve=N.next())ve=T($,j,se,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&$.delete(ve.key===null?se:ve.key),w=i(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve);return e&&$.forEach(function(Np){return t(j,Np)}),pe&&ua(j,se),P}function Ae(j,w,N,U){if(typeof N=="object"&&N!==null&&N.type===M&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:e:{for(var P=N.key;w!==null;){if(w.key===P){if(P=N.type,P===M){if(w.tag===7){a(j,w.sibling),U=n(w,N.props.children),U.return=j,j=U;break e}}else if(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&rl(P)===w.type){a(j,w.sibling),U=n(w,N.props),An(U,N),U.return=j,j=U;break e}a(j,w);break}else t(j,w);w=w.sibling}N.type===M?(U=nl(N.props.children,j.mode,U,N.key),U.return=j,j=U):(U=Ti(N.type,N.key,N.props,null,j.mode,U),An(U,N),U.return=j,j=U)}return o(j);case Z:e:{for(P=N.key;w!==null;){if(w.key===P)if(w.tag===4&&w.stateNode.containerInfo===N.containerInfo&&w.stateNode.implementation===N.implementation){a(j,w.sibling),U=n(w,N.children||[]),U.return=j,j=U;break e}else{a(j,w);break}else t(j,w);w=w.sibling}U=xc(N,j.mode,U),U.return=j,j=U}return o(j);case re:return N=rl(N),Ae(j,w,N,U)}if(Je(N))return V(j,w,N,U);if(Me(N)){if(P=Me(N),typeof P!="function")throw Error(s(150));return N=P.call(N),ee(j,w,N,U)}if(typeof N.then=="function")return Ae(j,w,Li(N),U);if(N.$$typeof===J)return Ae(j,w,_i(j,N),U);Bi(j,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,w!==null&&w.tag===6?(a(j,w.sibling),U=n(w,N),U.return=j,j=U):(a(j,w),U=vc(N,j.mode,U),U.return=j,j=U),o(j)):a(j,w)}return function(j,w,N,U){try{Cn=0;var P=Ae(j,w,N,U);return ql=null,P}catch($){if($===Hl||$===Oi)throw $;var ge=bt(29,$,null,j.mode);return ge.lanes=U,ge.return=j,ge}}}var fl=nf(!0),uf=nf(!1),_a=!1;function Dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Ai(e),Go(e,null,a),t}return Ci(e,l,t,a),Ai(e)}function Tn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Jr(e,a)}}function Uc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Oc=!1;function Rn(){if(Oc){var e=Bl;if(e!==null)throw e}}function Dn(e,t,a,l){Oc=!1;var n=e.updateQueue;_a=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var x=m,E=x.next;x.next=null,o===null?i=E:o.next=E,o=x;var _=e.alternate;_!==null&&(_=_.updateQueue,m=_.lastBaseUpdate,m!==o&&(m===null?_.firstBaseUpdate=E:m.next=E,_.lastBaseUpdate=x))}if(i!==null){var O=n.baseState;o=0,_=E=x=null,m=i;do{var C=m.lane&-536870913,T=C!==m.lane;if(T?(me&C)===C:(l&C)===C){C!==0&&C===Ll&&(Oc=!0),_!==null&&(_=_.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var V=e,ee=m;C=t;var Ae=a;switch(ee.tag){case 1:if(V=ee.payload,typeof V=="function"){O=V.call(Ae,O,C);break e}O=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=ee.payload,C=typeof V=="function"?V.call(Ae,O,C):V,C==null)break e;O=z({},O,C);break e;case 2:_a=!0}}C=m.callback,C!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[C]:T.push(C))}else T={lane:C,tag:m.tag,payload:m.payload,callback:m.callback,next:null},_===null?(E=_=T,x=O):_=_.next=T,o|=C;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;T=m,m=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);_===null&&(x=O),n.baseState=x,n.firstBaseUpdate=E,n.lastBaseUpdate=_,i===null&&(n.shared.lanes=0),qa|=o,e.lanes=o,e.memoizedState=O}}function cf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function sf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)cf(a[e],t)}var Yl=v(null),Hi=v(0);function rf(e,t){e=ga,B(Hi,e),B(Yl,t),ga=e|t.baseLanes}function Mc(){B(Hi,ga),B(Yl,Yl.current)}function Lc(){ga=Hi.current,R(Yl),R(Hi)}var St=v(null),Lt=null;function Ma(e){var t=e.alternate;B(Ge,Ge.current&1),B(St,e),Lt===null&&(t===null||Yl.current!==null||t.memoizedState!==null)&&(Lt=e)}function Bc(e){B(Ge,Ge.current),B(St,e),Lt===null&&(Lt=e)}function of(e){e.tag===22?(B(Ge,Ge.current),B(St,e),Lt===null&&(Lt=e)):La()}function La(){B(Ge,Ge.current),B(St,St.current)}function wt(e){R(St),Lt===e&&(Lt=null),R(Ge)}var Ge=v(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Xs(a)||Qs(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=0,ce=null,Ee=null,Ze=null,Yi=!1,kl=!1,dl=!1,ki=0,_n=0,Gl=null,yy=0;function He(){throw Error(s(321))}function Hc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function qc(e,t,a,l,n,i){return ra=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Kf:es,dl=!1,i=a(l,n),dl=!1,kl&&(i=df(t,a,l,n)),ff(e),i}function ff(e){D.H=Mn;var t=Ee!==null&&Ee.next!==null;if(ra=0,Ze=Ee=ce=null,Yi=!1,_n=0,Gl=null,t)throw Error(s(300));e===null||Ve||(e=e.dependencies,e!==null&&Di(e)&&(Ve=!0))}function df(e,t,a,l){ce=e;var n=0;do{if(kl&&(Gl=null),_n=0,kl=!1,25<=n)throw Error(s(301));if(n+=1,Ze=Ee=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=Ff,i=t(a,l)}while(kl);return i}function py(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Un(t):t,e=e.useState()[0],(Ee!==null?Ee.memoizedState:null)!==e&&(ce.flags|=1024),t}function Yc(){var e=ki!==0;return ki=0,e}function kc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Gc(e){if(Yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yi=!1}ra=0,Ze=Ee=ce=null,kl=!1,_n=ki=0,Gl=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ce.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Ee===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Ze===null?ce.memoizedState:Ze.next;if(t!==null)Ze=t,Ee=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Ze===null?ce.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Un(e){var t=_n;return _n+=1,Gl===null&&(Gl=[]),e=tf(Gl,e,t),t=ce,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Kf:es),e}function Xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Un(e);if(e.$$typeof===J)return tt(e)}throw Error(s(438,String(e)))}function Xc(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Gi(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=xe;return t.index++,a}function oa(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Xe();return Qc(t,Ee,e)}function Qc(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var m=o=null,x=null,E=t,_=!1;do{var O=E.lane&-536870913;if(O!==E.lane?(me&O)===O:(ra&O)===O){var C=E.revertLane;if(C===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),O===Ll&&(_=!0);else if((ra&C)===C){E=E.next,C===Ll&&(_=!0);continue}else O={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=O,o=i):x=x.next=O,ce.lanes|=C,qa|=C;O=E.action,dl&&a(i,O),i=E.hasEagerState?E.eagerState:a(i,O)}else C={lane:O,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=C,o=i):x=x.next=C,ce.lanes|=O,qa|=O;E=E.next}while(E!==null&&E!==t);if(x===null?o=i:x.next=m,!xt(i,e.memoizedState)&&(Ve=!0,_&&(a=Bl,a!==null)))throw a;e.memoizedState=i,e.baseState=o,e.baseQueue=x,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Zc(e){var t=Xe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do i=e(i,o.action),o=o.next;while(o!==n);xt(i,t.memoizedState)||(Ve=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function hf(e,t,a){var l=ce,n=Xe(),i=pe;if(i){if(a===void 0)throw Error(s(407));a=a()}else a=t();var o=!xt((Ee||n).memoizedState,a);if(o&&(n.memoizedState=a,Ve=!0),n=n.queue,Fc(pf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,Xl(9,{destroy:void 0},yf.bind(null,l,n,a,t),null),Te===null)throw Error(s(349));i||(ra&127)!==0||mf(l,t,a)}return a}function mf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Gi(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function yf(e,t,a,l){t.value=a,t.getSnapshot=l,gf(t)&&vf(e)}function pf(e,t,a){return a(function(){gf(t)&&vf(e)})}function gf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function vf(e){var t=ll(e,2);t!==null&&mt(t,e,2)}function Vc(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),dl){Na(!0);try{a()}finally{Na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e},t}function xf(e,t,a,l){return e.baseState=a,Qc(e,Ee,typeof l=="function"?l:oa)}function gy(e,t,a,l,n){if(Ki(e))throw Error(s(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};D.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,bf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function bf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=D.T,o={};D.T=o;try{var m=a(n,l),x=D.S;x!==null&&x(o,m),Sf(e,t,m)}catch(E){Kc(e,t,E)}finally{i!==null&&o.types!==null&&(i.types=o.types),D.T=i}}else try{i=a(n,l),Sf(e,t,i)}catch(E){Kc(e,t,E)}}function Sf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){wf(e,t,l)},function(l){return Kc(e,t,l)}):wf(e,t,a)}function wf(e,t,a){t.status="fulfilled",t.value=a,jf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,bf(e,a)))}function Kc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,jf(t),t=t.next;while(t!==l)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zf(e,t){return t}function Nf(e,t){if(pe){var a=Te.formState;if(a!==null){e:{var l=ce;if(pe){if(Re){t:{for(var n=Re,i=Mt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Bt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Re=Bt(n.nextSibling),l=n.data==="F!";break e}}Ra(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zf,lastRenderedState:t},a.queue=l,a=Qf.bind(null,ce,l),l.dispatch=a,l=Vc(!1),i=Pc.bind(null,ce,!1,l.queue),l=ct(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=gy.bind(null,ce,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Ef(e){var t=Xe();return Cf(t,Ee,e)}function Cf(e,t,a){if(t=Qc(e,t,zf)[0],e=Qi(oa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Un(t)}catch(o){throw o===Hl?Oi:o}else l=t;t=Xe();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Xl(9,{destroy:void 0},vy.bind(null,n,a),null)),[l,i,e]}function vy(e,t){e.action=t}function Af(e){var t=Xe(),a=Ee;if(a!==null)return Cf(t,a,e);Xe(),t=t.memoizedState,a=Xe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Xl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Gi(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Tf(){return Xe().memoizedState}function Zi(e,t,a,l){var n=ct();ce.flags|=e,n.memoizedState=Xl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Vi(e,t,a,l){var n=Xe();l=l===void 0?null:l;var i=n.memoizedState.inst;Ee!==null&&l!==null&&Hc(l,Ee.memoizedState.deps)?n.memoizedState=Xl(t,i,a,l):(ce.flags|=e,n.memoizedState=Xl(1|t,i,a,l))}function Rf(e,t){Zi(8390656,8,e,t)}function Fc(e,t){Vi(2048,8,e,t)}function xy(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Gi(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Df(e){var t=Xe().memoizedState;return xy({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function _f(e,t){return Vi(4,2,e,t)}function Uf(e,t){return Vi(4,4,e,t)}function Of(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Mf(e,t,a){a=a!=null?a.concat([e]):null,Vi(4,4,Of.bind(null,t,e),a)}function Jc(){}function Lf(e,t){var a=Xe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Hc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Bf(e,t){var a=Xe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Hc(t,l[1]))return l[0];if(l=e(),dl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l}function Wc(e,t,a){return a===void 0||(ra&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Hd(),ce.lanes|=e,qa|=e,a)}function Hf(e,t,a,l){return xt(a,t)?a:Yl.current!==null?(e=Wc(e,a,l),xt(e,t)||(Ve=!0),e):(ra&42)===0||(ra&1073741824)!==0&&(me&261930)===0?(Ve=!0,e.memoizedState=a):(e=Hd(),ce.lanes|=e,qa|=e,t)}function qf(e,t,a,l,n){var i=X.p;X.p=i!==0&&8>i?i:8;var o=D.T,m={};D.T=m,Pc(e,!1,t,a);try{var x=n(),E=D.S;if(E!==null&&E(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var _=my(x,l);On(e,t,_,Nt(e))}else On(e,t,l,Nt(e))}catch(O){On(e,t,{then:function(){},status:"rejected",reason:O},Nt())}finally{X.p=i,o!==null&&m.types!==null&&(o.types=m.types),D.T=o}}function by(){}function $c(e,t,a,l){if(e.tag!==5)throw Error(s(476));var n=Yf(e).queue;qf(e,n,t,W,a===null?by:function(){return kf(e),a(l)})}function Yf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:W},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kf(e){var t=Yf(e);t.next===null&&(t=e.alternate.memoizedState),On(e,t.next.queue,{},Nt())}function Ic(){return tt($n)}function Gf(){return Xe().memoizedState}function Xf(){return Xe().memoizedState}function Sy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Ua(a);var l=Oa(t,e,a);l!==null&&(mt(l,t,a),Tn(l,t,a)),t={cache:Cc()},e.payload=t;return}t=t.return}}function wy(e,t,a){var l=Nt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Zf(t,a):(a=pc(e,t,a,l),a!==null&&(mt(a,e,l),Vf(a,t,l)))}function Qf(e,t,a){var l=Nt();On(e,t,a,l)}function On(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Zf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,m=i(o,a);if(n.hasEagerState=!0,n.eagerState=m,xt(m,o))return Ci(e,t,n,0),Te===null&&Ei(),!1}catch{}if(a=pc(e,t,n,l),a!==null)return mt(a,e,l),Vf(a,t,l),!0}return!1}function Pc(e,t,a,l){if(l={lane:2,revertLane:Ds(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(s(479))}else t=pc(e,a,l,2),t!==null&&mt(t,e,2)}function Ki(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Zf(e,t){kl=Yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Vf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Jr(e,a)}}var Mn={readContext:tt,use:Xi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Mn.useEffectEvent=He;var Kf={readContext:tt,use:Xi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Rf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Zi(4194308,4,Of.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(dl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var n=a(t);if(dl){Na(!0);try{a(t)}finally{Na(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=wy.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Vc(e);var t=e.queue,a=Qf.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Jc,useDeferredValue:function(e,t){var a=ct();return Wc(a,e,t)},useTransition:function(){var e=Vc(!1);return e=qf.bind(null,ce,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,n=ct();if(pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Te===null)throw Error(s(349));(me&127)!==0||mf(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,Rf(pf.bind(null,l,i,e),[e]),l.flags|=2048,Xl(9,{destroy:void 0},yf.bind(null,l,i,a,t),null),a},useId:function(){var e=ct(),t=Te.identifierPrefix;if(pe){var a=Kt,l=Vt;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ki++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=yy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ic,useFormState:Nf,useActionState:Nf,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Pc.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Xc,useCacheRefresh:function(){return ct().memoizedState=Sy.bind(null,ce)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},es={readContext:tt,use:Xi,useCallback:Lf,useContext:tt,useEffect:Fc,useImperativeHandle:Mf,useInsertionEffect:_f,useLayoutEffect:Uf,useMemo:Bf,useReducer:Qi,useRef:Tf,useState:function(){return Qi(oa)},useDebugValue:Jc,useDeferredValue:function(e,t){var a=Xe();return Hf(a,Ee.memoizedState,e,t)},useTransition:function(){var e=Qi(oa)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Un(e),t]},useSyncExternalStore:hf,useId:Gf,useHostTransitionStatus:Ic,useFormState:Ef,useActionState:Ef,useOptimistic:function(e,t){var a=Xe();return xf(a,Ee,e,t)},useMemoCache:Xc,useCacheRefresh:Xf};es.useEffectEvent=Df;var Ff={readContext:tt,use:Xi,useCallback:Lf,useContext:tt,useEffect:Fc,useImperativeHandle:Mf,useInsertionEffect:_f,useLayoutEffect:Uf,useMemo:Bf,useReducer:Zc,useRef:Tf,useState:function(){return Zc(oa)},useDebugValue:Jc,useDeferredValue:function(e,t){var a=Xe();return Ee===null?Wc(a,e,t):Hf(a,Ee.memoizedState,e,t)},useTransition:function(){var e=Zc(oa)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Un(e),t]},useSyncExternalStore:hf,useId:Gf,useHostTransitionStatus:Ic,useFormState:Af,useActionState:Af,useOptimistic:function(e,t){var a=Xe();return Ee!==null?xf(a,Ee,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Xc,useCacheRefresh:Xf};Ff.useEffectEvent=Df;function ts(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:z({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var as={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Nt(),n=Ua(l);n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(mt(t,e,l),Tn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Nt(),n=Ua(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(mt(t,e,l),Tn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),l=Ua(a);l.tag=2,t!=null&&(l.callback=t),t=Oa(e,l,a),t!==null&&(mt(t,e,a),Tn(t,e,a))}};function Jf(e,t,a,l,n,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,o):t.prototype&&t.prototype.isPureReactComponent?!Sn(a,l)||!Sn(n,i):!0}function Wf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&as.enqueueReplaceState(t,t.state,null)}function hl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=z({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function $f(e){Ni(e)}function If(e){console.error(e)}function Pf(e){Ni(e)}function Fi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function ed(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ls(e,t,a){return a=Ua(a),a.tag=3,a.payload={element:null},a.callback=function(){Fi(e,t)},a}function td(e){return e=Ua(e),e.tag=3,e}function ad(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){ed(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){ed(t,a,l),typeof n!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function jy(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ml(t,a,n,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return Lt===null?uu():a.alternate===null&&qe===0&&(qe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Mi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),As(e,l,n)),!1;case 22:return a.flags|=65536,l===Mi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),As(e,l,n)),!1}throw Error(s(435,a.tag))}return As(e,l,n),uu(),!1}if(pe)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==wc&&(e=Error(s(422),{cause:l}),zn(_t(e,a)))):(l!==wc&&(t=Error(s(423),{cause:l}),zn(_t(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=_t(l,a),n=ls(e.stateNode,l,n),Uc(e,n),qe!==4&&(qe=2)),!1;var i=Error(s(520),{cause:l});if(i=_t(i,a),Xn===null?Xn=[i]:Xn.push(i),qe!==4&&(qe=2),t===null)return!0;l=_t(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=ls(a.stateNode,l,e),Uc(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ya===null||!Ya.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=td(n),ad(n,e,a,l),Uc(a,n),!1}a=a.return}while(a!==null);return!1}var ns=Error(s(461)),Ve=!1;function at(e,t,a,l){t.child=e===null?uf(t,null,a,l):fl(t,e.child,a,l)}function ld(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var o={};for(var m in l)m!=="ref"&&(o[m]=l[m])}else o=l;return cl(t),l=qc(e,t,a,o,i,n),m=Yc(),e!==null&&!Ve?(kc(e,t,n),fa(e,t,n)):(pe&&m&&bc(t),t.flags|=1,at(e,t,l,n),t.child)}function nd(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!gc(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,id(e,t,i,l,n)):(e=Ti(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!ds(e,n)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:Sn,a(o,l)&&e.ref===t.ref)return fa(e,t,n)}return t.flags|=1,e=ia(i,l),e.ref=t.ref,e.return=t,t.child=e}function id(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(Sn(i,l)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=l=i,ds(e,n))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,fa(e,t,n)}return is(e,t,a,l,n)}function ud(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return cd(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(t,i!==null?i.cachePool:null),i!==null?rf(t,i):Mc(),of(t);else return l=t.lanes=536870912,cd(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(Ui(t,i.cachePool),rf(t,i),La(),t.memoizedState=null):(e!==null&&Ui(t,null),Mc(),La());return at(e,t,n,a),t.child}function Ln(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cd(e,t,a,l,n){var i=Tc();return i=i===null?null:{parent:Qe._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Ui(t,null),Mc(),of(t),e!==null&&Ml(e,t,l,!0),t.childLanes=n,null}function Ji(e,t){return t=$i({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sd(e,t,a){return fl(t,e.child,null,a),e=Ji(t,t.pendingProps),e.flags|=2,wt(t),t.memoizedState=null,e}function zy(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Ji(t,l),t.lanes=536870912,Ln(null,e);if(Bc(t),(e=Re)?(e=bh(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Vt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},a=Qo(e),a.return=t,t.child=a,et=t,Re=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return Ji(t,l)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(Bc(t),n)if(t.flags&256)t.flags&=-257,t=sd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ve||Ml(e,t,a,!1),n=(a&e.childLanes)!==0,Ve||n){if(l=Te,l!==null&&(o=Wr(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,ll(e,o),mt(l,e,o),ns;uu(),t=sd(e,t,a)}else e=i.treeContext,Re=Bt(o.nextSibling),et=t,pe=!0,Ta=null,Mt=!1,e!==null&&Ko(t,e),t=Ji(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Wi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function is(e,t,a,l,n){return cl(t),a=qc(e,t,a,l,void 0,n),l=Yc(),e!==null&&!Ve?(kc(e,t,n),fa(e,t,n)):(pe&&l&&bc(t),t.flags|=1,at(e,t,a,n),t.child)}function rd(e,t,a,l,n,i){return cl(t),t.updateQueue=null,a=df(t,l,a,n),ff(e),l=Yc(),e!==null&&!Ve?(kc(e,t,i),fa(e,t,i)):(pe&&l&&bc(t),t.flags|=1,at(e,t,a,i),t.child)}function od(e,t,a,l,n){if(cl(t),t.stateNode===null){var i=Dl,o=a.contextType;typeof o=="object"&&o!==null&&(i=tt(o)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=as,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Dc(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?tt(o):Dl,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(ts(t,a,o,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&as.enqueueReplaceState(i,i.state,null),Dn(t,l,i,n),Rn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,x=hl(a,m);i.props=x;var E=i.context,_=a.contextType;o=Dl,typeof _=="object"&&_!==null&&(o=tt(_));var O=a.getDerivedStateFromProps;_=typeof O=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,_||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||E!==o)&&Wf(t,i,l,o),_a=!1;var C=t.memoizedState;i.state=C,Dn(t,l,i,n),Rn(),E=t.memoizedState,m||C!==E||_a?(typeof O=="function"&&(ts(t,a,O,l),E=t.memoizedState),(x=_a||Jf(t,a,x,l,C,E,o))?(_||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=E),i.props=l,i.state=E,i.context=o,l=x):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,_c(e,t),o=t.memoizedProps,_=hl(a,o),i.props=_,O=t.pendingProps,C=i.context,E=a.contextType,x=Dl,typeof E=="object"&&E!==null&&(x=tt(E)),m=a.getDerivedStateFromProps,(E=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==O||C!==x)&&Wf(t,i,l,x),_a=!1,C=t.memoizedState,i.state=C,Dn(t,l,i,n),Rn();var T=t.memoizedState;o!==O||C!==T||_a||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof m=="function"&&(ts(t,a,m,l),T=t.memoizedState),(_=_a||Jf(t,a,_,l,C,T,x)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(E||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,T,x),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,T,x)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),i.props=l,i.state=T,i.context=x,l=_):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Wi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=fl(t,e.child,null,n),t.child=fl(t,null,a,n)):at(e,t,a,n),t.memoizedState=i.state,e=t.child):e=fa(e,t,n),e}function fd(e,t,a,l){return il(),t.flags|=256,at(e,t,a,l),t.child}var us={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cs(e){return{baseLanes:e,cachePool:Po()}}function ss(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function dd(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?Ma(t):La(),(e=Re)?(e=bh(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Vt,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},a=Qo(e),a.return=t,t.child=a,et=t,Re=null)):e=null,e===null)throw Ra(t);return Qs(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,n?(La(),n=t.mode,m=$i({mode:"hidden",children:m},n),l=nl(l,n,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=cs(a),l.childLanes=ss(e,o,a),t.memoizedState=us,Ln(null,l)):(Ma(t),rs(t,m))}var x=e.memoizedState;if(x!==null&&(m=x.dehydrated,m!==null)){if(i)t.flags&256?(Ma(t),t.flags&=-257,t=os(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),m=l.fallback,n=t.mode,l=$i({mode:"visible",children:l.children},n),m=nl(m,n,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,fl(t,e.child,null,a),l=t.child,l.memoizedState=cs(a),l.childLanes=ss(e,o,a),t.memoizedState=us,t=Ln(null,l));else if(Ma(t),Qs(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var E=o.dgst;o=E,l=Error(s(419)),l.stack="",l.digest=o,zn({value:l,source:null,stack:null}),t=os(e,t,a)}else if(Ve||Ml(e,t,a,!1),o=(a&e.childLanes)!==0,Ve||o){if(o=Te,o!==null&&(l=Wr(o,a),l!==0&&l!==x.retryLane))throw x.retryLane=l,ll(e,l),mt(o,e,l),ns;Xs(m)||uu(),t=os(e,t,a)}else Xs(m)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,Re=Bt(m.nextSibling),et=t,pe=!0,Ta=null,Mt=!1,e!==null&&Ko(t,e),t=rs(t,l.children),t.flags|=4096);return t}return n?(La(),m=l.fallback,n=t.mode,x=e.child,E=x.sibling,l=ia(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&65011712,E!==null?m=ia(E,m):(m=nl(m,n,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,Ln(null,l),l=t.child,m=e.child.memoizedState,m===null?m=cs(a):(n=m.cachePool,n!==null?(x=Qe._currentValue,n=n.parent!==x?{parent:x,pool:x}:n):n=Po(),m={baseLanes:m.baseLanes|a,cachePool:n}),l.memoizedState=m,l.childLanes=ss(e,o,a),t.memoizedState=us,Ln(e.child,l)):(Ma(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function rs(e,t){return t=$i({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $i(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function os(e,t,a){return fl(t,e.child,null,a),e=rs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Nc(e.return,t,a)}function fs(e,t,a,l,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=i)}function md(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var o=Ge.current,m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,B(Ge,o),at(e,t,l,a),l=pe?jn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hd(e,a,t);else if(e.tag===19)hd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&qi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),fs(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}fs(t,!0,a,null,i,l);break;case"together":fs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ml(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ds(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function Ny(e,t,a){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Da(t,Qe,e.memoizedState.cache),il();break;case 27:case 5:be(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ma(t),t.flags|=128,null):(a&t.child.childLanes)!==0?dd(e,t,a):(Ma(t),e=fa(e,t,a),e!==null?e.sibling:null);Ma(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ml(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return md(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),B(Ge,Ge.current),l)break;return null;case 22:return t.lanes=0,ud(e,t,a,t.pendingProps);case 24:Da(t,Qe,e.memoizedState.cache)}return fa(e,t,a)}function yd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!ds(e,a)&&(t.flags&128)===0)return Ve=!1,Ny(e,t,a);Ve=(e.flags&131072)!==0}else Ve=!1,pe&&(t.flags&1048576)!==0&&Vo(t,jn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=rl(t.elementType),t.type=e,typeof e=="function")gc(e)?(l=hl(e,l),t.tag=1,t=od(null,t,e,l,a)):(t.tag=0,t=is(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===ue){t.tag=11,t=ld(null,t,e,l,a);break e}else if(n===K){t.tag=14,t=nd(null,t,e,l,a);break e}}throw t=Le(e)||e,Error(s(306,t,""))}}return t;case 0:return is(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=hl(l,t.pendingProps),od(e,t,l,n,a);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,_c(e,t),Dn(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Da(t,Qe,l),l!==i.cache&&Ec(t,[Qe],a,!0),Rn(),l=o.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=fd(e,t,l,a);break e}else if(l!==n){n=_t(Error(s(424)),t),zn(n),t=fd(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Re=Bt(e.firstChild),et=t,pe=!0,Ta=null,Mt=!0,a=uf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(il(),l===n){t=fa(e,t,a);break e}at(e,t,l,a)}t=t.child}return t;case 26:return Wi(e,t),e===null?(a=Eh(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=hu(I.current).createElement(a),l[Pe]=t,l[st]=e,lt(l,a,e),$e(l),t.stateNode=l):t.memoizedState=Eh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&pe&&(l=t.stateNode=jh(t.type,t.pendingProps,I.current),et=t,Mt=!0,n=Re,Qa(t.type)?(Zs=n,Re=Bt(l.firstChild)):Re=n),at(e,t,t.pendingProps.children,a),Wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=l=Re)&&(l=tp(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,et=t,Re=Bt(l.firstChild),Mt=!1,n=!0):n=!1),n||Ra(t)),be(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Ys(n,i)?l=null:o!==null&&Ys(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=qc(e,t,py,null,null,a),$n._currentValue=n),Wi(e,t),at(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=Re)&&(a=ap(a,t.pendingProps,Mt),a!==null?(t.stateNode=a,et=t,Re=null,e=!0):e=!1),e||Ra(t)),null;case 13:return dd(e,t,a);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=fl(t,null,l,a):at(e,t,l,a),t.child;case 11:return ld(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Da(t,t.type,l.value),at(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,cl(t),n=tt(n),l=l(n),t.flags|=1,at(e,t,l,a),t.child;case 14:return nd(e,t,t.type,t.pendingProps,a);case 15:return id(e,t,t.type,t.pendingProps,a);case 19:return md(e,t,a);case 31:return zy(e,t,a);case 22:return ud(e,t,a,t.pendingProps);case 24:return cl(t),l=tt(Qe),e===null?(n=Tc(),n===null&&(n=Te,i=Cc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Dc(t),Da(t,Qe,n)):((e.lanes&a)!==0&&(_c(e,t),Dn(t,null,null,a),Rn()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Da(t,Qe,l)):(l=i.cache,Da(t,Qe,l),l!==n.cache&&Ec(t,[Qe],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function da(e){e.flags|=4}function hs(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Gd())e.flags|=8192;else throw ol=Mi,Rc}else e.flags&=-16777217}function pd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dh(t))if(Gd())e.flags|=8192;else throw ol=Mi,Rc}function Ii(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Kr():536870912,e.lanes|=t,Kl|=t)}function Bn(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Ey(e,t,a){var l=t.pendingProps;switch(Sc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),sa(Qe),q(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ol(t)?da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jc())),De(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(da(t),i!==null?(De(t),pd(t,i)):(De(t),hs(t,n,null,l,a))):i?i!==e.memoizedState?(da(t),De(t),pd(t,i)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&da(t),De(t),hs(t,n,e,l,a)),null;case 27:if(Ne(t),a=I.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return De(t),null}e=H.current,Ol(t)?Fo(t):(e=jh(n,l,a),t.stateNode=e,da(t))}return De(t),null;case 5:if(Ne(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return De(t),null}if(i=H.current,Ol(t))Fo(t);else{var o=hu(I.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}i[Pe]=t,i[st]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(lt(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&da(t)}}return De(t),hs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=I.current,Ol(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=et,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||dh(e.nodeValue,a)),e||Ra(t,!0)}else e=hu(e).createTextNode(l),e[Pe]=t,t.stateNode=e}return De(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ol(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Pe]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else a=jc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return De(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ol(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Pe]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=jc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ii(t,t.updateQueue),De(t),null);case 4:return q(),e===null&&Ms(t.stateNode.containerInfo),De(t),null;case 10:return sa(t.type),De(t),null;case 19:if(R(Ge),l=t.memoizedState,l===null)return De(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)Bn(l,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=qi(e),i!==null){for(t.flags|=128,Bn(l,!1),e=i.updateQueue,t.updateQueue=e,Ii(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Xo(a,e),a=a.sibling;return B(Ge,Ge.current&1|2),pe&&ua(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&pt()>lu&&(t.flags|=128,n=!0,Bn(l,!1),t.lanes=4194304)}else{if(!n)if(e=qi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ii(t,e),Bn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!pe)return De(t),null}else 2*pt()-l.renderingStartTime>lu&&a!==536870912&&(t.flags|=128,n=!0,Bn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=Ge.current,B(Ge,n?a&1|2:a&1),pe&&ua(t,l.treeForkCount),e):(De(t),null);case 22:case 23:return wt(t),Lc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),a=t.updateQueue,a!==null&&Ii(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&R(sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),sa(Qe),De(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Cy(e,t){switch(Sc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(Qe),q(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(s(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Ge),null;case 4:return q(),null;case 10:return sa(t.type),null;case 22:case 23:return wt(t),Lc(),e!==null&&R(sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(Qe),null;case 25:return null;default:return null}}function gd(e,t){switch(Sc(t),t.tag){case 3:sa(Qe),q();break;case 26:case 27:case 5:Ne(t);break;case 4:q();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:R(Ge);break;case 10:sa(t.type);break;case 22:case 23:wt(t),Lc(),e!==null&&R(sl);break;case 24:sa(Qe)}}function Hn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,o=a.inst;l=i(),o.destroy=l}a=a.next}while(a!==n)}}catch(m){ze(t,t.return,m)}}function Ba(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var o=l.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,n=t;var x=a,E=m;try{E()}catch(_){ze(n,x,_)}}}l=l.next}while(l!==i)}}catch(_){ze(t,t.return,_)}}function vd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{sf(t,a)}catch(l){ze(e,e.return,l)}}}function xd(e,t,a){a.props=hl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ze(e,t,l)}}function qn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){ze(e,t,n)}}function Ft(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){ze(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){ze(e,t,n)}else a.current=null}function bd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){ze(e,e.return,n)}}function ms(e,t,a){try{var l=e.stateNode;Jy(l,e.type,a,t),l[st]=t}catch(n){ze(e,e.return,n)}}function Sd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function ys(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ps(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=la));else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ps(e,t,a),e=e.sibling;e!==null;)ps(e,t,a),e=e.sibling}function Pi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pi(e,t,a),e=e.sibling;e!==null;)Pi(e,t,a),e=e.sibling}function wd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t,l,a),t[Pe]=e,t[st]=a}catch(i){ze(e,e.return,i)}}var ha=!1,Ke=!1,gs=!1,jd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Ay(e,t){if(e=e.containerInfo,Hs=bu,e=Oo(e),oc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var o=0,m=-1,x=-1,E=0,_=0,O=e,C=null;t:for(;;){for(var T;O!==a||n!==0&&O.nodeType!==3||(m=o+n),O!==i||l!==0&&O.nodeType!==3||(x=o+l),O.nodeType===3&&(o+=O.nodeValue.length),(T=O.firstChild)!==null;)C=O,O=T;for(;;){if(O===e)break t;if(C===a&&++E===n&&(m=o),C===i&&++_===l&&(x=o),(T=O.nextSibling)!==null)break;O=C,C=O.parentNode}O=T}a=m===-1||x===-1?null:{start:m,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(qs={focusedElem:e,selectionRange:a},bu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var V=hl(a.type,n);e=l.getSnapshotBeforeUpdate(V,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){ze(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Gs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function zd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ya(e,a),l&4&&Hn(5,a);break;case 1:if(ya(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){ze(a,a.return,o)}else{var n=hl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){ze(a,a.return,o)}}l&64&&vd(a),l&512&&qn(a,a.return);break;case 3:if(ya(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{sf(e,t)}catch(o){ze(a,a.return,o)}}break;case 27:t===null&&l&4&&wd(a);case 26:case 5:ya(e,a),t===null&&l&4&&bd(a),l&512&&qn(a,a.return);break;case 12:ya(e,a);break;case 31:ya(e,a),l&4&&Cd(e,a);break;case 13:ya(e,a),l&4&&Ad(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=By.bind(null,a),lp(e,a))));break;case 22:if(l=a.memoizedState!==null||ha,!l){t=t!==null&&t.memoizedState!==null||Ke,n=ha;var i=Ke;ha=l,(Ke=t)&&!i?pa(e,a,(a.subtreeFlags&8772)!==0):ya(e,a),ha=n,Ke=i}break;case 30:break;default:ya(e,a)}}function Nd(e){var t=e.alternate;t!==null&&(e.alternate=null,Nd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ku(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,ot=!1;function ma(e,t,a){for(a=a.child;a!==null;)Ed(e,t,a),a=a.sibling}function Ed(e,t,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(rn,a)}catch{}switch(a.tag){case 26:Ke||Ft(a,t),ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||Ft(a,t);var l=_e,n=ot;Qa(a.type)&&(_e=a.stateNode,ot=!1),ma(e,t,a),Fn(a.stateNode),_e=l,ot=n;break;case 5:Ke||Ft(a,t);case 6:if(l=_e,n=ot,_e=null,ma(e,t,a),_e=l,ot=n,_e!==null)if(ot)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(a.stateNode)}catch(i){ze(a,t,i)}else try{_e.removeChild(a.stateNode)}catch(i){ze(a,t,i)}break;case 18:_e!==null&&(ot?(e=_e,vh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),tn(e)):vh(_e,a.stateNode));break;case 4:l=_e,n=ot,_e=a.stateNode.containerInfo,ot=!0,ma(e,t,a),_e=l,ot=n;break;case 0:case 11:case 14:case 15:Ba(2,a,t),Ke||Ba(4,a,t),ma(e,t,a);break;case 1:Ke||(Ft(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&xd(a,t,l)),ma(e,t,a);break;case 21:ma(e,t,a);break;case 22:Ke=(l=Ke)||a.memoizedState!==null,ma(e,t,a),Ke=l;break;default:ma(e,t,a)}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{tn(e)}catch(a){ze(t,t.return,a)}}}function Ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{tn(e)}catch(a){ze(t,t.return,a)}}function Ty(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(s(435,e.tag))}}function eu(e,t){var a=Ty(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=Hy.bind(null,e,l);l.then(n,n)}})}function ft(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,o=t,m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Qa(m.type)){_e=m.stateNode,ot=!1;break e}break;case 5:_e=m.stateNode,ot=!1;break e;case 3:case 4:_e=m.stateNode.containerInfo,ot=!0;break e}m=m.return}if(_e===null)throw Error(s(160));Ed(i,o,n),_e=null,ot=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Td(t,e),t=t.sibling}var Xt=null;function Td(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),l&4&&(Ba(3,e,e.return),Hn(3,e),Ba(5,e,e.return));break;case 1:ft(t,e),dt(e),l&512&&(Ke||a===null||Ft(a,a.return)),l&64&&ha&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Xt;if(ft(t,e),dt(e),l&512&&(Ke||a===null||Ft(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[dn]||i[Pe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),lt(i,l,a),i[Pe]=e,$e(i),l=i;break e;case"link":var o=Th("link","href",n).get(l+(a.href||""));if(o){for(var m=0;m<o.length;m++)if(i=o[m],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(m,1);break t}}i=n.createElement(l),lt(i,l,a),n.head.appendChild(i);break;case"meta":if(o=Th("meta","content",n).get(l+(a.content||""))){for(m=0;m<o.length;m++)if(i=o[m],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(m,1);break t}}i=n.createElement(l),lt(i,l,a),n.head.appendChild(i);break;default:throw Error(s(468,l))}i[Pe]=e,$e(i),l=i}e.stateNode=l}else Rh(n,e.type,e.stateNode);else e.stateNode=Ah(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Rh(n,e.type,e.stateNode):Ah(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ms(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),l&512&&(Ke||a===null||Ft(a,a.return)),a!==null&&l&4&&ms(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),l&512&&(Ke||a===null||Ft(a,a.return)),e.flags&32){n=e.stateNode;try{zl(n,"")}catch(V){ze(e,e.return,V)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,ms(e,n,a!==null?a.memoizedProps:n)),l&1024&&(gs=!0);break;case 6:if(ft(t,e),dt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(V){ze(e,e.return,V)}}break;case 3:if(pu=null,n=Xt,Xt=mu(t.containerInfo),ft(t,e),Xt=n,dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{tn(t.containerInfo)}catch(V){ze(e,e.return,V)}gs&&(gs=!1,Rd(e));break;case 4:l=Xt,Xt=mu(e.stateNode.containerInfo),ft(t,e),dt(e),Xt=l;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,eu(e,l)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(au=pt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,eu(e,l)));break;case 22:n=e.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,E=ha,_=Ke;if(ha=E||n,Ke=_||x,ft(t,e),Ke=_,ha=E,dt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||x||ha||Ke||ml(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){x=a=t;try{if(i=x.stateNode,n)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=x.stateNode;var O=x.memoizedProps.style,C=O!=null&&O.hasOwnProperty("display")?O.display:null;m.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(V){ze(x,x.return,V)}}}else if(t.tag===6){if(a===null){x=t;try{x.stateNode.nodeValue=n?"":x.memoizedProps}catch(V){ze(x,x.return,V)}}}else if(t.tag===18){if(a===null){x=t;try{var T=x.stateNode;n?xh(T,!0):xh(x.stateNode,!1)}catch(V){ze(x,x.return,V)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,eu(e,a))));break;case 19:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,eu(e,l)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Sd(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var n=a.stateNode,i=ys(e);Pi(e,i,n);break;case 5:var o=a.stateNode;a.flags&32&&(zl(o,""),a.flags&=-33);var m=ys(e);Pi(e,m,o);break;case 3:case 4:var x=a.stateNode.containerInfo,E=ys(e);ps(e,E,x);break;default:throw Error(s(161))}}catch(_){ze(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ya(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zd(e,t.alternate,t),t=t.sibling}function ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ba(4,t,t.return),ml(t);break;case 1:Ft(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&xd(t,t.return,a),ml(t);break;case 27:Fn(t.stateNode);case 26:case 5:Ft(t,t.return),ml(t);break;case 22:t.memoizedState===null&&ml(t);break;case 30:ml(t);break;default:ml(t)}e=e.sibling}}function pa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:pa(n,i,a),Hn(4,i);break;case 1:if(pa(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(E){ze(l,l.return,E)}if(l=i,n=l.updateQueue,n!==null){var m=l.stateNode;try{var x=n.shared.hiddenCallbacks;if(x!==null)for(n.shared.hiddenCallbacks=null,n=0;n<x.length;n++)cf(x[n],m)}catch(E){ze(l,l.return,E)}}a&&o&64&&vd(i),qn(i,i.return);break;case 27:wd(i);case 26:case 5:pa(n,i,a),a&&l===null&&o&4&&bd(i),qn(i,i.return);break;case 12:pa(n,i,a);break;case 31:pa(n,i,a),a&&o&4&&Cd(n,i);break;case 13:pa(n,i,a),a&&o&4&&Ad(n,i);break;case 22:i.memoizedState===null&&pa(n,i,a),qn(i,i.return);break;case 30:break;default:pa(n,i,a)}t=t.sibling}}function vs(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Nn(a))}function xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Nn(e))}function Qt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dd(e,t,a,l),t=t.sibling}function Dd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,a,l),n&2048&&Hn(9,t);break;case 1:Qt(e,t,a,l);break;case 3:Qt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Nn(e)));break;case 12:if(n&2048){Qt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,m=i.onPostCommit;typeof m=="function"&&m(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){ze(t,t.return,x)}}else Qt(e,t,a,l);break;case 31:Qt(e,t,a,l);break;case 13:Qt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Qt(e,t,a,l):Yn(e,t):i._visibility&2?Qt(e,t,a,l):(i._visibility|=2,Ql(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&vs(o,t);break;case 24:Qt(e,t,a,l),n&2048&&xs(t.alternate,t);break;default:Qt(e,t,a,l)}}function Ql(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,m=a,x=l,E=o.flags;switch(o.tag){case 0:case 11:case 15:Ql(i,o,m,x,n),Hn(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?Ql(i,o,m,x,n):Yn(i,o):(_._visibility|=2,Ql(i,o,m,x,n)),n&&E&2048&&vs(o.alternate,o);break;case 24:Ql(i,o,m,x,n),n&&E&2048&&xs(o.alternate,o);break;default:Ql(i,o,m,x,n)}t=t.sibling}}function Yn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Yn(a,l),n&2048&&vs(l.alternate,l);break;case 24:Yn(a,l),n&2048&&xs(l.alternate,l);break;default:Yn(a,l)}t=t.sibling}}var kn=8192;function Zl(e,t,a){if(e.subtreeFlags&kn)for(e=e.child;e!==null;)_d(e,t,a),e=e.sibling}function _d(e,t,a){switch(e.tag){case 26:Zl(e,t,a),e.flags&kn&&e.memoizedState!==null&&yp(a,Xt,e.memoizedState,e.memoizedProps);break;case 5:Zl(e,t,a);break;case 3:case 4:var l=Xt;Xt=mu(e.stateNode.containerInfo),Zl(e,t,a),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=kn,kn=16777216,Zl(e,t,a),kn=l):Zl(e,t,a));break;default:Zl(e,t,a)}}function Ud(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Md(l,e)}Ud(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Od(e),e=e.sibling}function Od(e){switch(e.tag){case 0:case 11:case 15:Gn(e),e.flags&2048&&Ba(9,e,e.return);break;case 3:Gn(e);break;case 12:Gn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tu(e)):Gn(e);break;default:Gn(e)}}function tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Md(l,e)}Ud(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ba(8,t,t.return),tu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function Md(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:Ba(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Nn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var n=l.sibling,i=l.return;if(Nd(l),l===a){Ie=null;break e}if(n!==null){n.return=i,Ie=n;break e}Ie=i}}}var Ry={getCacheForType:function(e){var t=tt(Qe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return tt(Qe).controller.signal}},Dy=typeof WeakMap=="function"?WeakMap:Map,Se=0,Te=null,de=null,me=0,je=0,jt=null,Ha=!1,Vl=!1,bs=!1,ga=0,qe=0,qa=0,yl=0,Ss=0,zt=0,Kl=0,Xn=null,ht=null,ws=!1,au=0,Ld=0,lu=1/0,nu=null,Ya=null,We=0,ka=null,Fl=null,va=0,js=0,zs=null,Bd=null,Qn=0,Ns=null;function Nt(){return(Se&2)!==0&&me!==0?me&-me:D.T!==null?Ds():$r()}function Hd(){if(zt===0)if((me&536870912)===0||pe){var e=di;di<<=1,(di&3932160)===0&&(di=262144),zt=e}else zt=536870912;return e=St.current,e!==null&&(e.flags|=32),zt}function mt(e,t,a){(e===Te&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Jl(e,0),Ga(e,me,zt,!1)),fn(e,a),((Se&2)===0||e!==Te)&&(e===Te&&((Se&2)===0&&(yl|=a),qe===4&&Ga(e,me,zt,!1)),Jt(e))}function qd(e,t,a){if((Se&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||on(e,t),n=l?Oy(e,t):Cs(e,t,!0),i=l;do{if(n===0){Vl&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!_y(a)){n=Cs(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;n=Xn;var x=m.current.memoizedState.isDehydrated;if(x&&(Jl(m,o).flags|=256),o=Cs(m,o,!1),o!==2){if(bs&&!x){m.errorRecoveryDisabledLanes|=i,yl|=i,n=4;break e}i=ht,ht=n,i!==null&&(ht===null?ht=i:ht.push.apply(ht,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){Jl(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,zt,!Ha);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=au+300-pt(),10<n)){if(Ga(l,t,zt,!Ha),mi(l,0,!0)!==0)break e;va=t,l.timeoutHandle=ph(Yd.bind(null,l,a,ht,nu,ws,t,zt,yl,Kl,Ha,i,"Throttled",-0,0),n);break e}Yd(l,a,ht,nu,ws,t,zt,yl,Kl,Ha,i,null,-0,0)}}break}while(!0);Jt(e)}function Yd(e,t,a,l,n,i,o,m,x,E,_,O,C,T){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},_d(t,i,O);var V=(i&62914560)===i?au-pt():(i&4194048)===i?Ld-pt():0;if(V=pp(O,V),V!==null){va=i,e.cancelPendingCommit=V(Fd.bind(null,e,t,i,a,l,n,o,m,x,_,O,null,C,T)),Ga(e,i,o,!E);return}}Fd(e,t,i,a,l,n,o,m,x)}function _y(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!xt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,a,l){t&=~Ss,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-vt(n),o=1<<i;l[i]=-1,n&=~o}a!==0&&Fr(e,a,t)}function iu(){return(Se&6)===0?(Zn(0),!1):!0}function Es(){if(de!==null){if(je===0)var e=de.return;else e=de,ca=ul=null,Gc(e),ql=null,Cn=0,e=de;for(;e!==null;)gd(e.alternate,e),e=e.return;de=null}}function Jl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Iy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),va=0,Es(),Te=e,de=a=ia(e.current,null),me=t,je=0,jt=null,Ha=!1,Vl=on(e,t),bs=!1,Kl=zt=Ss=yl=qa=qe=0,ht=Xn=null,ws=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-vt(l),i=1<<n;t|=e[n],l&=~i}return ga=t,Ei(),a}function kd(e,t){ce=null,D.H=Mn,t===Hl||t===Oi?(t=af(),je=3):t===Rc?(t=af(),je=4):je=t===ns?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,de===null&&(qe=1,Fi(e,_t(t,e.current)))}function Gd(){var e=St.current;return e===null?!0:(me&4194048)===me?Lt===null:(me&62914560)===me||(me&536870912)!==0?e===Lt:!1}function Xd(){var e=D.H;return D.H=Mn,e===null?Mn:e}function Qd(){var e=D.A;return D.A=Ry,e}function uu(){qe=4,Ha||(me&4194048)!==me&&St.current!==null||(Vl=!0),(qa&134217727)===0&&(yl&134217727)===0||Te===null||Ga(Te,me,zt,!1)}function Cs(e,t,a){var l=Se;Se|=2;var n=Xd(),i=Qd();(Te!==e||me!==t)&&(nu=null,Jl(e,t)),t=!1;var o=qe;e:do try{if(je!==0&&de!==null){var m=de,x=jt;switch(je){case 8:Es(),o=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var E=je;if(je=0,jt=null,Wl(e,m,x,E),a&&Vl){o=0;break e}break;default:E=je,je=0,jt=null,Wl(e,m,x,E)}}Uy(),o=qe;break}catch(_){kd(e,_)}while(!0);return t&&e.shellSuspendCounter++,ca=ul=null,Se=l,D.H=n,D.A=i,de===null&&(Te=null,me=0,Ei()),o}function Uy(){for(;de!==null;)Zd(de)}function Oy(e,t){var a=Se;Se|=2;var l=Xd(),n=Qd();Te!==e||me!==t?(nu=null,lu=pt()+500,Jl(e,t)):Vl=on(e,t);e:do try{if(je!==0&&de!==null){t=de;var i=jt;t:switch(je){case 1:je=0,jt=null,Wl(e,t,i,1);break;case 2:case 9:if(ef(i)){je=0,jt=null,Vd(t);break}t=function(){je!==2&&je!==9||Te!==e||(je=7),Jt(e)},i.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:ef(i)?(je=0,jt=null,Vd(t)):(je=0,jt=null,Wl(e,t,i,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var m=de;if(o?Dh(o):m.stateNode.complete){je=0,jt=null;var x=m.sibling;if(x!==null)de=x;else{var E=m.return;E!==null?(de=E,cu(E)):de=null}break t}}je=0,jt=null,Wl(e,t,i,5);break;case 6:je=0,jt=null,Wl(e,t,i,6);break;case 8:Es(),qe=6;break e;default:throw Error(s(462))}}My();break}catch(_){kd(e,_)}while(!0);return ca=ul=null,D.H=l,D.A=n,Se=a,de!==null?0:(Te=null,me=0,Ei(),qe)}function My(){for(;de!==null&&!n0();)Zd(de)}function Zd(e){var t=yd(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?cu(e):de=t}function Vd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=rd(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=rd(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Gc(t);default:gd(a,t),t=de=Xo(t,ga),t=yd(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?cu(e):de=t}function Wl(e,t,a,l){ca=ul=null,Gc(t),ql=null,Cn=0;var n=t.return;try{if(jy(e,n,t,a,me)){qe=1,Fi(e,_t(a,e.current)),de=null;return}}catch(i){if(n!==null)throw de=n,i;qe=1,Fi(e,_t(a,e.current)),de=null;return}t.flags&32768?(pe||l===1?e=!0:Vl||(me&536870912)!==0?e=!1:(Ha=e=!0,(l===2||l===9||l===3||l===6)&&(l=St.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kd(t,e)):cu(t)}function cu(e){var t=e;do{if((t.flags&32768)!==0){Kd(t,Ha);return}e=t.return;var a=Ey(t.alternate,t,ga);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function Kd(e,t){do{var a=Cy(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);qe=6,de=null}function Fd(e,t,a,l,n,i,o,m,x){e.cancelPendingCommit=null;do su();while(We!==0);if((Se&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,i|=yc,m0(e,a,i,o,m,x),e===Te&&(de=Te=null,me=0),Fl=t,ka=e,va=a,js=i,zs=n,Bd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qy(oi,function(){return Pd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,n=X.p,X.p=2,o=Se,Se|=4;try{Ay(e,t,a)}finally{Se=o,X.p=n,D.T=l}}We=1,Jd(),Wd(),$d()}}function Jd(){if(We===1){We=0;var e=ka,t=Fl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=X.p;X.p=2;var n=Se;Se|=4;try{Td(t,e);var i=qs,o=Oo(e.containerInfo),m=i.focusedElem,x=i.selectionRange;if(o!==m&&m&&m.ownerDocument&&Uo(m.ownerDocument.documentElement,m)){if(x!==null&&oc(m)){var E=x.start,_=x.end;if(_===void 0&&(_=E),"selectionStart"in m)m.selectionStart=E,m.selectionEnd=Math.min(_,m.value.length);else{var O=m.ownerDocument||document,C=O&&O.defaultView||window;if(C.getSelection){var T=C.getSelection(),V=m.textContent.length,ee=Math.min(x.start,V),Ae=x.end===void 0?ee:Math.min(x.end,V);!T.extend&&ee>Ae&&(o=Ae,Ae=ee,ee=o);var j=_o(m,ee),w=_o(m,Ae);if(j&&w&&(T.rangeCount!==1||T.anchorNode!==j.node||T.anchorOffset!==j.offset||T.focusNode!==w.node||T.focusOffset!==w.offset)){var N=O.createRange();N.setStart(j.node,j.offset),T.removeAllRanges(),ee>Ae?(T.addRange(N),T.extend(w.node,w.offset)):(N.setEnd(w.node,w.offset),T.addRange(N))}}}}for(O=[],T=m;T=T.parentNode;)T.nodeType===1&&O.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<O.length;m++){var U=O[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}bu=!!Hs,qs=Hs=null}finally{Se=n,X.p=l,D.T=a}}e.current=t,We=2}}function Wd(){if(We===2){We=0;var e=ka,t=Fl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=X.p;X.p=2;var n=Se;Se|=4;try{zd(e,t.alternate,t)}finally{Se=n,X.p=l,D.T=a}}We=3}}function $d(){if(We===4||We===3){We=0,i0();var e=ka,t=Fl,a=va,l=Bd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,Fl=ka=null,Id(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ya=null),Zu(a),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(rn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,n=X.p,X.p=2,D.T=null;try{for(var i=e.onRecoverableError,o=0;o<l.length;o++){var m=l[o];i(m.value,{componentStack:m.stack})}}finally{D.T=t,X.p=n}}(va&3)!==0&&su(),Jt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Ns?Qn++:(Qn=0,Ns=e):Qn=0,Zn(0)}}function Id(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Nn(t)))}function su(){return Jd(),Wd(),$d(),Pd()}function Pd(){if(We!==5)return!1;var e=ka,t=js;js=0;var a=Zu(va),l=D.T,n=X.p;try{X.p=32>a?32:a,D.T=null,a=zs,zs=null;var i=ka,o=va;if(We=0,Fl=ka=null,va=0,(Se&6)!==0)throw Error(s(331));var m=Se;if(Se|=4,Od(i.current),Dd(i,i.current,o,a),Se=m,Zn(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(rn,i)}catch{}return!0}finally{X.p=n,D.T=l,Id(e,t)}}function eh(e,t,a){t=_t(a,t),t=ls(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(fn(e,2),Jt(e))}function ze(e,t,a){if(e.tag===3)eh(e,e,a);else for(;t!==null;){if(t.tag===3){eh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ya===null||!Ya.has(l))){e=_t(a,e),a=td(2),l=Oa(t,a,2),l!==null&&(ad(a,l,t,e),fn(l,2),Jt(l));break}}t=t.return}}function As(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Dy;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(bs=!0,n.add(a),e=Ly.bind(null,e,t,a),t.then(e,e))}function Ly(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Te===e&&(me&a)===a&&(qe===4||qe===3&&(me&62914560)===me&&300>pt()-au?(Se&2)===0&&Jl(e,0):Ss|=a,Kl===me&&(Kl=0)),Jt(e)}function th(e,t){t===0&&(t=Kr()),e=ll(e,t),e!==null&&(fn(e,t),Jt(e))}function By(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),th(e,a)}function Hy(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),th(e,a)}function qy(e,t){return gl(e,t)}var ru=null,$l=null,Ts=!1,ou=!1,Rs=!1,Xa=0;function Jt(e){e!==$l&&e.next===null&&($l===null?ru=$l=e:$l=$l.next=e),ou=!0,Ts||(Ts=!0,ky())}function Zn(e,t){if(!Rs&&ou){Rs=!0;do for(var a=!1,l=ru;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var o=l.suspendedLanes,m=l.pingedLanes;i=(1<<31-vt(42|e)+1)-1,i&=n&~(o&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,ih(l,i))}else i=me,i=mi(l,l===Te?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||on(l,i)||(a=!0,ih(l,i));l=l.next}while(a);Rs=!1}}function Yy(){ah()}function ah(){ou=Ts=!1;var e=0;Xa!==0&&$y()&&(e=Xa);for(var t=pt(),a=null,l=ru;l!==null;){var n=l.next,i=lh(l,t);i===0?(l.next=null,a===null?ru=n:a.next=n,n===null&&($l=a)):(a=l,(e!==0||(i&3)!==0)&&(ou=!0)),l=n}We!==0&&We!==5||Zn(e),Xa!==0&&(Xa=0)}function lh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-vt(i),m=1<<o,x=n[o];x===-1?((m&a)===0||(m&l)!==0)&&(n[o]=h0(m,t)):x<=t&&(e.expiredLanes|=m),i&=~m}if(t=Te,a=me,a=mi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Gu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||on(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Gu(l),Zu(a)){case 2:case 8:a=Zr;break;case 32:a=oi;break;case 268435456:a=Vr;break;default:a=oi}return l=nh.bind(null,e),a=gl(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Gu(l),e.callbackPriority=2,e.callbackNode=null,2}function nh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(su()&&e.callbackNode!==a)return null;var l=me;return l=mi(e,e===Te?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(qd(e,l,t),lh(e,pt()),e.callbackNode!=null&&e.callbackNode===a?nh.bind(null,e):null)}function ih(e,t){if(su())return null;qd(e,t,!0)}function ky(){Py(function(){(Se&6)!==0?gl(Qr,Yy):ah()})}function Ds(){if(Xa===0){var e=Ll;e===0&&(e=fi,fi<<=1,(fi&261888)===0&&(fi=256)),Xa=e}return Xa}function uh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function ch(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Gy(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=uh((n[st]||null).action),o=l.submitter;o&&(t=(t=o[st]||null)?uh(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var m=new wi("action","action",null,l,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xa!==0){var x=o?ch(n,o):new FormData(n);$c(a,{pending:!0,data:x,method:n.method,action:i},null,x)}}else typeof i=="function"&&(m.preventDefault(),x=o?ch(n,o):new FormData(n),$c(a,{pending:!0,data:x,method:n.method,action:i},i,x))},currentTarget:n}]})}}for(var _s=0;_s<mc.length;_s++){var Us=mc[_s],Xy=Us.toLowerCase(),Qy=Us[0].toUpperCase()+Us.slice(1);Gt(Xy,"on"+Qy)}Gt(Bo,"onAnimationEnd"),Gt(Ho,"onAnimationIteration"),Gt(qo,"onAnimationStart"),Gt("dblclick","onDoubleClick"),Gt("focusin","onFocus"),Gt("focusout","onBlur"),Gt(uy,"onTransitionRun"),Gt(cy,"onTransitionStart"),Gt(sy,"onTransitionCancel"),Gt(Yo,"onTransitionEnd"),wl("onMouseEnter",["mouseout","mouseover"]),wl("onMouseLeave",["mouseout","mouseover"]),wl("onPointerEnter",["pointerout","pointerover"]),wl("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vn="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vn));function sh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var o=l.length-1;0<=o;o--){var m=l[o],x=m.instance,E=m.currentTarget;if(m=m.listener,x!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=E;try{i(n)}catch(_){Ni(_)}n.currentTarget=null,i=x}else for(o=0;o<l.length;o++){if(m=l[o],x=m.instance,E=m.currentTarget,m=m.listener,x!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=E;try{i(n)}catch(_){Ni(_)}n.currentTarget=null,i=x}}}}function he(e,t){var a=t[Vu];a===void 0&&(a=t[Vu]=new Set);var l=e+"__bubble";a.has(l)||(rh(t,e,2,!1),a.add(l))}function Os(e,t,a){var l=0;t&&(l|=4),rh(a,e,l,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Ms(e){if(!e[fu]){e[fu]=!0,eo.forEach(function(a){a!=="selectionchange"&&(Zy.has(a)||Os(a,!1,e),Os(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Os("selectionchange",!1,t))}}function rh(e,t,a,l){switch(Hh(t)){case 2:var n=xp;break;case 8:n=bp;break;default:n=Ws}a=n.bind(null,t,a,e),n=void 0,!tc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Ls(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var m=l.stateNode.containerInfo;if(m===n)break;if(o===4)for(o=l.return;o!==null;){var x=o.tag;if((x===3||x===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;m!==null;){if(o=xl(m),o===null)return;if(x=o.tag,x===5||x===6||x===26||x===27){l=i=o;continue e}m=m.parentNode}}l=l.return}ho(function(){var E=i,_=Pu(a),O=[];e:{var C=ko.get(e);if(C!==void 0){var T=wi,V=e;switch(e){case"keypress":if(bi(a)===0)break e;case"keydown":case"keyup":T=H0;break;case"focusin":V="focus",T=ic;break;case"focusout":V="blur",T=ic;break;case"beforeblur":case"afterblur":T=ic;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":T=po;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=E0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=k0;break;case Bo:case Ho:case qo:T=T0;break;case Yo:T=X0;break;case"scroll":case"scrollend":T=z0;break;case"wheel":T=Z0;break;case"copy":case"cut":case"paste":T=D0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=vo;break;case"toggle":case"beforetoggle":T=K0}var ee=(t&4)!==0,Ae=!ee&&(e==="scroll"||e==="scrollend"),j=ee?C!==null?C+"Capture":null:C;ee=[];for(var w=E,N;w!==null;){var U=w;if(N=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||N===null||j===null||(U=mn(w,j),U!=null&&ee.push(Kn(w,U,N))),Ae)break;w=w.return}0<ee.length&&(C=new T(C,V,null,a,_),O.push({event:C,listeners:ee}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",C&&a!==Iu&&(V=a.relatedTarget||a.fromElement)&&(xl(V)||V[vl]))break e;if((T||C)&&(C=_.window===_?_:(C=_.ownerDocument)?C.defaultView||C.parentWindow:window,T?(V=a.relatedTarget||a.toElement,T=E,V=V?xl(V):null,V!==null&&(Ae=h(V),ee=V.tag,V!==Ae||ee!==5&&ee!==27&&ee!==6)&&(V=null)):(T=null,V=E),T!==V)){if(ee=po,U="onMouseLeave",j="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ee=vo,U="onPointerLeave",j="onPointerEnter",w="pointer"),Ae=T==null?C:hn(T),N=V==null?C:hn(V),C=new ee(U,w+"leave",T,a,_),C.target=Ae,C.relatedTarget=N,U=null,xl(_)===E&&(ee=new ee(j,w+"enter",V,a,_),ee.target=N,ee.relatedTarget=Ae,U=ee),Ae=U,T&&V)t:{for(ee=Vy,j=T,w=V,N=0,U=j;U;U=ee(U))N++;U=0;for(var P=w;P;P=ee(P))U++;for(;0<N-U;)j=ee(j),N--;for(;0<U-N;)w=ee(w),U--;for(;N--;){if(j===w||w!==null&&j===w.alternate){ee=j;break t}j=ee(j),w=ee(w)}ee=null}else ee=null;T!==null&&oh(O,C,T,ee,!1),V!==null&&Ae!==null&&oh(O,Ae,V,ee,!0)}}e:{if(C=E?hn(E):window,T=C.nodeName&&C.nodeName.toLowerCase(),T==="select"||T==="input"&&C.type==="file")var ge=Eo;else if(zo(C))if(Co)ge=ly;else{ge=ty;var $=ey}else T=C.nodeName,!T||T.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?E&&$u(E.elementType)&&(ge=Eo):ge=ay;if(ge&&(ge=ge(e,E))){No(O,ge,a,_);break e}$&&$(e,C,E),e==="focusout"&&E&&C.type==="number"&&E.memoizedProps.value!=null&&Wu(C,"number",C.value)}switch($=E?hn(E):window,e){case"focusin":(zo($)||$.contentEditable==="true")&&(Al=$,fc=E,wn=null);break;case"focusout":wn=fc=Al=null;break;case"mousedown":dc=!0;break;case"contextmenu":case"mouseup":case"dragend":dc=!1,Mo(O,a,_);break;case"selectionchange":if(iy)break;case"keydown":case"keyup":Mo(O,a,_)}var se;if(cc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Cl?wo(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(xo&&a.locale!=="ko"&&(Cl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Cl&&(se=mo()):(Ca=_,ac="value"in Ca?Ca.value:Ca.textContent,Cl=!0)),$=du(E,ye),0<$.length&&(ye=new go(ye,e,null,a,_),O.push({event:ye,listeners:$}),se?ye.data=se:(se=jo(a),se!==null&&(ye.data=se)))),(se=J0?W0(e,a):$0(e,a))&&(ye=du(E,"onBeforeInput"),0<ye.length&&($=new go("onBeforeInput","beforeinput",null,a,_),O.push({event:$,listeners:ye}),$.data=se)),Gy(O,e,E,a,_)}sh(O,t)})}function Kn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function du(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=mn(e,a),n!=null&&l.unshift(Kn(e,n,i)),n=mn(e,t),n!=null&&l.push(Kn(e,n,i))),e.tag===3)return l;e=e.return}return[]}function Vy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function oh(e,t,a,l,n){for(var i=t._reactName,o=[];a!==null&&a!==l;){var m=a,x=m.alternate,E=m.stateNode;if(m=m.tag,x!==null&&x===l)break;m!==5&&m!==26&&m!==27||E===null||(x=E,n?(E=mn(a,i),E!=null&&o.unshift(Kn(a,E,x))):n||(E=mn(a,i),E!=null&&o.push(Kn(a,E,x)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Ky=/\r\n?/g,Fy=/\u0000|\uFFFD/g;function fh(e){return(typeof e=="string"?e:""+e).replace(Ky,`
9
- `).replace(Fy,"")}function dh(e,t){return t=fh(t),fh(e)===t}function Ce(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&zl(e,""+l);break;case"className":pi(e,"class",l);break;case"tabIndex":pi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":pi(e,a,l);break;case"style":oo(e,l,i);break;case"data":if(t!=="object"){pi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&Ce(e,t,"name",n.name,n,null),Ce(e,t,"formEncType",n.formEncType,n,null),Ce(e,t,"formMethod",n.formMethod,n,null),Ce(e,t,"formTarget",n.formTarget,n,null)):(Ce(e,t,"encType",n.encType,n,null),Ce(e,t,"method",n.method,n,null),Ce(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=vi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=la);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=vi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),yi(e,"popover",l);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":yi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=w0.get(a)||a,yi(e,a,l))}}function Bs(e,t,a,l,n,i){switch(a){case"style":oo(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?zl(e,l):(typeof l=="number"||typeof l=="bigint")&&zl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!to.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[st]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):yi(e,a,l)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,i,o,a,null)}}n&&Ce(e,t,"srcSet",a.srcSet,a,null),l&&Ce(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var m=i=o=n=null,x=null,E=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":n=_;break;case"type":o=_;break;case"checked":x=_;break;case"defaultChecked":E=_;break;case"value":i=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:Ce(e,t,l,_,a,null)}}uo(e,i,m,x,E,o,n,!1);return;case"select":he("invalid",e),l=o=i=null;for(n in a)if(a.hasOwnProperty(n)&&(m=a[n],m!=null))switch(n){case"value":i=m;break;case"defaultValue":o=m;break;case"multiple":l=m;default:Ce(e,t,n,m,a,null)}t=i,a=o,e.multiple=!!l,t!=null?jl(e,!!l,t,!1):a!=null&&jl(e,!!l,a,!0);return;case"textarea":he("invalid",e),i=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(m=a[o],m!=null))switch(o){case"value":l=m;break;case"defaultValue":n=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Ce(e,t,o,m,a,null)}so(e,l,n,i);return;case"option":for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null)&&(x==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ce(e,t,x,l,a,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Vn.length;l++)he(Vn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(E in a)if(a.hasOwnProperty(E)&&(l=a[E],l!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,E,l,a,null)}return;default:if($u(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&Bs(e,t,_,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&Ce(e,t,m,l,a,null))}function Jy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,o=null,m=null,x=null,E=null,_=null;for(T in a){var O=a[T];if(a.hasOwnProperty(T)&&O!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":x=O;default:l.hasOwnProperty(T)||Ce(e,t,T,null,l,O)}}for(var C in l){var T=l[C];if(O=a[C],l.hasOwnProperty(C)&&(T!=null||O!=null))switch(C){case"type":i=T;break;case"name":n=T;break;case"checked":E=T;break;case"defaultChecked":_=T;break;case"value":o=T;break;case"defaultValue":m=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(137,t));break;default:T!==O&&Ce(e,t,C,T,l,O)}}Ju(e,o,m,x,E,_,i,n);return;case"select":T=o=m=C=null;for(i in a)if(x=a[i],a.hasOwnProperty(i)&&x!=null)switch(i){case"value":break;case"multiple":T=x;default:l.hasOwnProperty(i)||Ce(e,t,i,null,l,x)}for(n in l)if(i=l[n],x=a[n],l.hasOwnProperty(n)&&(i!=null||x!=null))switch(n){case"value":C=i;break;case"defaultValue":m=i;break;case"multiple":o=i;default:i!==x&&Ce(e,t,n,i,l,x)}t=m,a=o,l=T,C!=null?jl(e,!!a,C,!1):!!l!=!!a&&(t!=null?jl(e,!!a,t,!0):jl(e,!!a,a?[]:"",!1));return;case"textarea":T=C=null;for(m in a)if(n=a[m],a.hasOwnProperty(m)&&n!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ce(e,t,m,null,l,n)}for(o in l)if(n=l[o],i=a[o],l.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":C=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==i&&Ce(e,t,o,n,l,i)}co(e,C,T);return;case"option":for(var V in a)C=a[V],a.hasOwnProperty(V)&&C!=null&&!l.hasOwnProperty(V)&&(V==="selected"?e.selected=!1:Ce(e,t,V,null,l,C));for(x in l)C=l[x],T=a[x],l.hasOwnProperty(x)&&C!==T&&(C!=null||T!=null)&&(x==="selected"?e.selected=C&&typeof C!="function"&&typeof C!="symbol":Ce(e,t,x,C,l,T));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ee in a)C=a[ee],a.hasOwnProperty(ee)&&C!=null&&!l.hasOwnProperty(ee)&&Ce(e,t,ee,null,l,C);for(E in l)if(C=l[E],T=a[E],l.hasOwnProperty(E)&&C!==T&&(C!=null||T!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,t));break;default:Ce(e,t,E,C,l,T)}return;default:if($u(t)){for(var Ae in a)C=a[Ae],a.hasOwnProperty(Ae)&&C!==void 0&&!l.hasOwnProperty(Ae)&&Bs(e,t,Ae,void 0,l,C);for(_ in l)C=l[_],T=a[_],!l.hasOwnProperty(_)||C===T||C===void 0&&T===void 0||Bs(e,t,_,C,l,T);return}}for(var j in a)C=a[j],a.hasOwnProperty(j)&&C!=null&&!l.hasOwnProperty(j)&&Ce(e,t,j,null,l,C);for(O in l)C=l[O],T=a[O],!l.hasOwnProperty(O)||C===T||C==null&&T==null||Ce(e,t,O,C,l,T)}function hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Wy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,o=n.initiatorType,m=n.duration;if(i&&m&&hh(o)){for(o=0,m=n.responseEnd,l+=1;l<a.length;l++){var x=a[l],E=x.startTime;if(E>m)break;var _=x.transferSize,O=x.initiatorType;_&&hh(O)&&(x=x.responseEnd,o+=_*(x<m?1:(m-E)/(x-E)))}if(--l,t+=8*(i+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hs=null,qs=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function mh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ys(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ks=null;function $y(){var e=window.event;return e&&e.type==="popstate"?e===ks?!1:(ks=e,!0):(ks=null,!1)}var ph=typeof setTimeout=="function"?setTimeout:void 0,Iy=typeof clearTimeout=="function"?clearTimeout:void 0,gh=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof gh<"u"?function(e){return gh.resolve(null).then(e).catch(ep)}:ph;function ep(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function vh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),tn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Fn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Fn(a);for(var i=a.firstChild;i;){var o=i.nextSibling,m=i.nodeName;i[dn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&Fn(e.ownerDocument.body);a=n}while(a);tn(t)}function xh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Gs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Gs(a),Ku(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function tp(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[dn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function ap(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bt(e.nextSibling),e===null))return null;return e}function bh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function Xs(e){return e.data==="$?"||e.data==="$~"}function Qs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zs=null;function Sh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Bt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function wh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function jh(e,t,a){switch(t=hu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Fn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ku(e)}var Ht=new Map,zh=new Set;function mu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xa=X.d;X.d={f:np,r:ip,D:up,C:cp,L:sp,m:rp,X:fp,S:op,M:dp};function np(){var e=xa.f(),t=iu();return e||t}function ip(e){var t=bl(e);t!==null&&t.tag===5&&t.type==="form"?kf(t):xa.r(e)}var Il=typeof document>"u"?null:document;function Nh(e,t,a){var l=Il;if(l&&typeof t=="string"&&t){var n=Rt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),zh.has(n)||(zh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),lt(t,"link",e),$e(t),l.head.appendChild(t)))}}function up(e){xa.D(e),Nh("dns-prefetch",e,null)}function cp(e,t){xa.C(e,t),Nh("preconnect",e,t)}function sp(e,t,a){xa.L(e,t,a);var l=Il;if(l&&e&&t){var n='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Rt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Rt(a.imageSizes)+'"]')):n+='[href="'+Rt(e)+'"]';var i=n;switch(t){case"style":i=Pl(e);break;case"script":i=en(e)}Ht.has(i)||(e=z({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ht.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Jn(i))||t==="script"&&l.querySelector(Wn(i))||(t=l.createElement("link"),lt(t,"link",e),$e(t),l.head.appendChild(t)))}}function rp(e,t){xa.m(e,t);var a=Il;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Rt(l)+'"][href="'+Rt(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=en(e)}if(!Ht.has(i)&&(e=z({rel:"modulepreload",href:e},t),Ht.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wn(i)))return}l=a.createElement("link"),lt(l,"link",e),$e(l),a.head.appendChild(l)}}}function op(e,t,a){xa.S(e,t,a);var l=Il;if(l&&e){var n=Sl(l).hoistableStyles,i=Pl(e);t=t||"default";var o=n.get(i);if(!o){var m={loading:0,preload:null};if(o=l.querySelector(Jn(i)))m.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ht.get(i))&&Vs(e,a);var x=o=l.createElement("link");$e(x),lt(x,"link",e),x._p=new Promise(function(E,_){x.onload=E,x.onerror=_}),x.addEventListener("load",function(){m.loading|=1}),x.addEventListener("error",function(){m.loading|=2}),m.loading|=4,yu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:m},n.set(i,o)}}}function fp(e,t){xa.X(e,t);var a=Il;if(a&&e){var l=Sl(a).hoistableScripts,n=en(e),i=l.get(n);i||(i=a.querySelector(Wn(n)),i||(e=z({src:e,async:!0},t),(t=Ht.get(n))&&Ks(e,t),i=a.createElement("script"),$e(i),lt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function dp(e,t){xa.M(e,t);var a=Il;if(a&&e){var l=Sl(a).hoistableScripts,n=en(e),i=l.get(n);i||(i=a.querySelector(Wn(n)),i||(e=z({src:e,async:!0,type:"module"},t),(t=Ht.get(n))&&Ks(e,t),i=a.createElement("script"),$e(i),lt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Eh(e,t,a,l){var n=(n=I.current)?mu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Pl(a.href),a=Sl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Pl(a.href);var i=Sl(n).hoistableStyles,o=i.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=n.querySelector(Jn(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Ht.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ht.set(e,a),i||hp(n,e,a,o.state))),t&&l===null)throw Error(s(528,""));return o}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=en(a),a=Sl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pl(e){return'href="'+Rt(e)+'"'}function Jn(e){return'link[rel="stylesheet"]['+e+"]"}function Ch(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function hp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),lt(t,"link",a),$e(t),e.head.appendChild(t))}function en(e){return'[src="'+Rt(e)+'"]'}function Wn(e){return"script[async]"+e}function Ah(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rt(a.href)+'"]');if(l)return t.instance=l,$e(l),l;var n=z({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),$e(l),lt(l,"style",n),yu(l,a.precedence,e),t.instance=l;case"stylesheet":n=Pl(a.href);var i=e.querySelector(Jn(n));if(i)return t.state.loading|=4,t.instance=i,$e(i),i;l=Ch(a),(n=Ht.get(n))&&Vs(l,n),i=(e.ownerDocument||e).createElement("link"),$e(i);var o=i;return o._p=new Promise(function(m,x){o.onload=m,o.onerror=x}),lt(i,"link",l),t.state.loading|=4,yu(i,a.precedence,e),t.instance=i;case"script":return i=en(a.src),(n=e.querySelector(Wn(i)))?(t.instance=n,$e(n),n):(l=a,(n=Ht.get(i))&&(l=z({},a),Ks(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),$e(n),lt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,yu(l,a.precedence,e));return t.instance}function yu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,o=0;o<l.length;o++){var m=l[o];if(m.dataset.precedence===t)i=m;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Vs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ks(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pu=null;function Th(e,t,a){if(pu===null){var l=new Map,n=pu=new Map;n.set(a,l)}else n=pu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[dn]||i[Pe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var m=l.get(o);m?m.push(i):l.set(o,[i])}}return l}function Rh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mp(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Dh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Pl(l.href),i=t.querySelector(Jn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=gu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,$e(i);return}i=t.ownerDocument||t,l=Ch(l),(n=Ht.get(n))&&Vs(l,n),i=i.createElement("link"),$e(i);var o=i;o._p=new Promise(function(m,x){o.onload=m,o.onerror=x}),lt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=gu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Fs=0;function pp(e,t){return e.stylesheets&&e.count===0&&xu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Fs===0&&(Fs=62500*Wy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Fs?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function gu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vu=null;function xu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vu=new Map,t.forEach(gp,e),vu=null,gu.call(e))}function gp(e,t){if(!(t.state.loading&4)){var a=vu.get(e);if(a)var l=a.get(null);else{a=new Map,vu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),i=a.get(o)||l,i===l&&a.set(null,n),a.set(o,n),this.count++,l=gu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var $n={$$typeof:J,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function vp(e,t,a,l,n,i,o,m,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xu(0),this.hiddenUpdates=Xu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function _h(e,t,a,l,n,i,o,m,x,E,_,O){return e=new vp(e,t,a,o,x,E,_,O,m),t=1,i===!0&&(t|=24),i=bt(3,null,null,t),e.current=i,i.stateNode=e,t=Cc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Dc(i),e}function Uh(e){return e?(e=Dl,e):Dl}function Oh(e,t,a,l,n,i){n=Uh(n),l.context===null?l.context=n:l.pendingContext=n,l=Ua(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Oa(e,l,t),a!==null&&(mt(a,e,t),Tn(a,e,t))}function Mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Js(e,t){Mh(e,t),(e=e.alternate)&&Mh(e,t)}function Lh(e){if(e.tag===13||e.tag===31){var t=ll(e,67108864);t!==null&&mt(t,e,67108864),Js(e,67108864)}}function Bh(e){if(e.tag===13||e.tag===31){var t=Nt();t=Qu(t);var a=ll(e,t);a!==null&&mt(a,e,t),Js(e,t)}}var bu=!0;function xp(e,t,a,l){var n=D.T;D.T=null;var i=X.p;try{X.p=2,Ws(e,t,a,l)}finally{X.p=i,D.T=n}}function bp(e,t,a,l){var n=D.T;D.T=null;var i=X.p;try{X.p=8,Ws(e,t,a,l)}finally{X.p=i,D.T=n}}function Ws(e,t,a,l){if(bu){var n=$s(l);if(n===null)Ls(e,t,l,Su,a),qh(e,l);else if(wp(n,e,t,a,l))l.stopPropagation();else if(qh(e,l),t&4&&-1<Sp.indexOf(e)){for(;n!==null;){var i=bl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Ia(i.pendingLanes);if(o!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var x=1<<31-vt(o);m.entanglements[1]|=x,o&=~x}Jt(i),(Se&6)===0&&(lu=pt()+500,Zn(0))}}break;case 31:case 13:m=ll(i,2),m!==null&&mt(m,i,2),iu(),Js(i,2)}if(i=$s(l),i===null&&Ls(e,t,l,Su,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else Ls(e,t,l,null,a)}}function $s(e){return e=Pu(e),Is(e)}var Su=null;function Is(e){if(Su=null,e=xl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=b(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function Hh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(u0()){case Qr:return 2;case Zr:return 8;case oi:case c0:return 32;case Vr:return 268435456;default:return 32}default:return 32}}var Ps=!1,Za=null,Va=null,Ka=null,In=new Map,Pn=new Map,Fa=[],Sp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qh(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":In.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pn.delete(t.pointerId)}}function ei(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=bl(t),t!==null&&Lh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function wp(e,t,a,l,n){switch(t){case"focusin":return Za=ei(Za,e,t,a,l,n),!0;case"dragenter":return Va=ei(Va,e,t,a,l,n),!0;case"mouseover":return Ka=ei(Ka,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return In.set(i,ei(In.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,Pn.set(i,ei(Pn.get(i)||null,e,t,a,l,n)),!0}return!1}function Yh(e){var t=xl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Ir(e.priority,function(){Bh(a)});return}}else if(t===31){if(t=b(a),t!==null){e.blockedOn=t,Ir(e.priority,function(){Bh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$s(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Iu=l,a.target.dispatchEvent(l),Iu=null}else return t=bl(a),t!==null&&Lh(t),e.blockedOn=a,!1;t.shift()}return!0}function kh(e,t,a){wu(e)&&a.delete(t)}function jp(){Ps=!1,Za!==null&&wu(Za)&&(Za=null),Va!==null&&wu(Va)&&(Va=null),Ka!==null&&wu(Ka)&&(Ka=null),In.forEach(kh),Pn.forEach(kh)}function ju(e,t){e.blockedOn===t&&(e.blockedOn=null,Ps||(Ps=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,jp)))}var zu=null;function Gh(e){zu!==e&&(zu=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){zu===e&&(zu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(Is(l||a)===null)continue;break}var i=bl(a);i!==null&&(e.splice(t,3),t-=3,$c(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function tn(e){function t(x){return ju(x,e)}Za!==null&&ju(Za,e),Va!==null&&ju(Va,e),Ka!==null&&ju(Ka,e),In.forEach(t),Pn.forEach(t);for(var a=0;a<Fa.length;a++){var l=Fa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)Yh(a),a.blockedOn===null&&Fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],o=n[st]||null;if(typeof i=="function")o||Gh(a);else if(o){var m=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[st]||null)m=o.formAction;else if(Is(n)!==null)continue}else m=o.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),Gh(a)}}}function Xh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function er(e){this._internalRoot=e}Nu.prototype.render=er.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Nt();Oh(a,l,e,t,null,null)},Nu.prototype.unmount=er.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Oh(e.current,2,null,e,null,null),iu(),t[vl]=null}};function Nu(e){this._internalRoot=e}Nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=$r();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fa.length&&t!==0&&t<Fa[a].priority;a++);Fa.splice(a,0,e),a===0&&Yh(e)}};var Qh=c.version;if(Qh!=="19.2.3")throw Error(s(527,Qh,"19.2.3"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{rn=Eu.inject(zp),gt=Eu}catch{}}return ai.createRoot=function(e,t){if(!d(e))throw Error(s(299));var a=!1,l="",n=$f,i=If,o=Pf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=_h(e,1,!1,null,null,a,l,null,n,i,o,Xh),e[vl]=t.current,Ms(e),new er(t)},ai.hydrateRoot=function(e,t,a){if(!d(e))throw Error(s(299));var l=!1,n="",i=$f,o=If,m=Pf,x=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=_h(e,1,!0,t,a??null,l,n,x,i,o,m,Xh),t.context=Uh(null),a=t.current,l=Nt(),l=Qu(l),n=Ua(l),n.callback=null,Oa(a,n,l),a=l,t.current.lanes=a,fn(t,a),Jt(t),e[vl]=t.current,Ms(e),new Nu(t)},ai.version="19.2.3",ai}var em;function Mp(){if(em)return lr.exports;em=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),lr.exports=Op(),lr.exports}var Lp=Mp();var tm="popstate";function Bp(u={}){function c(s,d){let{pathname:h,search:y,hash:b}=s.location;return yr("",{pathname:h,search:y,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(s,d){return typeof d=="string"?d:ui(d)}return qp(c,r,null,u)}function Oe(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function Ct(u,c){if(!u){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Hp(){return Math.random().toString(36).substring(2,10)}function am(u,c){return{usr:u.state,key:u.key,idx:c}}function yr(u,c,r=null,s){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof c=="string"?nn(c):c,state:r,key:c&&c.key||s||Hp()}}function ui({pathname:u="/",search:c="",hash:r=""}){return c&&c!=="?"&&(u+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(u+=r.charAt(0)==="#"?r:"#"+r),u}function nn(u){let c={};if(u){let r=u.indexOf("#");r>=0&&(c.hash=u.substring(r),u=u.substring(0,r));let s=u.indexOf("?");s>=0&&(c.search=u.substring(s),u=u.substring(0,s)),u&&(c.pathname=u)}return c}function qp(u,c,r,s={}){let{window:d=document.defaultView,v5Compat:h=!1}=s,y=d.history,b="POP",p=null,g=A();g==null&&(g=0,y.replaceState({...y.state,idx:g},""));function A(){return(y.state||{idx:null}).idx}function z(){b="POP";let G=A(),k=G==null?null:G-g;g=G,p&&p({action:b,location:M.location,delta:k})}function L(G,k){b="PUSH";let Q=yr(M.location,G,k);g=A()+1;let J=am(Q,g),ue=M.createHref(Q);try{y.pushState(J,"",ue)}catch(le){if(le instanceof DOMException&&le.name==="DataCloneError")throw le;d.location.assign(ue)}h&&p&&p({action:b,location:M.location,delta:1})}function Y(G,k){b="REPLACE";let Q=yr(M.location,G,k);g=A();let J=am(Q,g),ue=M.createHref(Q);y.replaceState(J,"",ue),h&&p&&p({action:b,location:M.location,delta:0})}function Z(G){return Yp(G)}let M={get action(){return b},get location(){return u(d,y)},listen(G){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(tm,z),p=G,()=>{d.removeEventListener(tm,z),p=null}},createHref(G){return c(d,G)},createURL:Z,encodeLocation(G){let k=Z(G);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:L,replace:Y,go(G){return y.go(G)}};return M}function Yp(u,c=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Oe(r,"No window.location.(origin|href) available to create URL");let s=typeof u=="string"?u:ui(u);return s=s.replace(/ $/,"%20"),!c&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function xm(u,c,r="/"){return kp(u,c,r,!1)}function kp(u,c,r,s){let d=typeof c=="string"?nn(c):c,h=Sa(d.pathname||"/",r);if(h==null)return null;let y=bm(u);Gp(y);let b=null;for(let p=0;b==null&&p<y.length;++p){let g=Pp(h);b=$p(y[p],g,s)}return b}function bm(u,c=[],r=[],s="",d=!1){let h=(y,b,p=d,g)=>{let A={relativePath:g===void 0?y.path||"":g,caseSensitive:y.caseSensitive===!0,childrenIndex:b,route:y};if(A.relativePath.startsWith("/")){if(!A.relativePath.startsWith(s)&&p)return;Oe(A.relativePath.startsWith(s),`Absolute route path "${A.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),A.relativePath=A.relativePath.slice(s.length)}let z=ba([s,A.relativePath]),L=r.concat(A);y.children&&y.children.length>0&&(Oe(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${z}".`),bm(y.children,c,L,z,p)),!(y.path==null&&!y.index)&&c.push({path:z,score:Jp(z,y.index),routesMeta:L})};return u.forEach((y,b)=>{if(y.path===""||!y.path?.includes("?"))h(y,b);else for(let p of Sm(y.path))h(y,b,!0,p)}),c}function Sm(u){let c=u.split("/");if(c.length===0)return[];let[r,...s]=c,d=r.endsWith("?"),h=r.replace(/\?$/,"");if(s.length===0)return d?[h,""]:[h];let y=Sm(s.join("/")),b=[];return b.push(...y.map(p=>p===""?h:[h,p].join("/"))),d&&b.push(...y),b.map(p=>u.startsWith("/")&&p===""?"/":p)}function Gp(u){u.sort((c,r)=>c.score!==r.score?r.score-c.score:Wp(c.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var Xp=/^:[\w-]+$/,Qp=3,Zp=2,Vp=1,Kp=10,Fp=-2,lm=u=>u==="*";function Jp(u,c){let r=u.split("/"),s=r.length;return r.some(lm)&&(s+=Fp),c&&(s+=Zp),r.filter(d=>!lm(d)).reduce((d,h)=>d+(Xp.test(h)?Qp:h===""?Vp:Kp),s)}function Wp(u,c){return u.length===c.length&&u.slice(0,-1).every((s,d)=>s===c[d])?u[u.length-1]-c[c.length-1]:0}function $p(u,c,r=!1){let{routesMeta:s}=u,d={},h="/",y=[];for(let b=0;b<s.length;++b){let p=s[b],g=b===s.length-1,A=h==="/"?c:c.slice(h.length)||"/",z=Du({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},A),L=p.route;if(!z&&g&&r&&!s[s.length-1].route.index&&(z=Du({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},A)),!z)return null;Object.assign(d,z.params),y.push({params:d,pathname:ba([h,z.pathname]),pathnameBase:lg(ba([h,z.pathnameBase])),route:L}),z.pathnameBase!=="/"&&(h=ba([h,z.pathnameBase]))}return y}function Du(u,c){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[r,s]=Ip(u.path,u.caseSensitive,u.end),d=c.match(r);if(!d)return null;let h=d[0],y=h.replace(/(.)\/+$/,"$1"),b=d.slice(1);return{params:s.reduce((g,{paramName:A,isOptional:z},L)=>{if(A==="*"){let Z=b[L]||"";y=h.slice(0,h.length-Z.length).replace(/(.)\/+$/,"$1")}const Y=b[L];return z&&!Y?g[A]=void 0:g[A]=(Y||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:y,pattern:u}}function Ip(u,c=!1,r=!0){Ct(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let s=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,b,p)=>(s.push({paramName:b,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(s.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),s]}function Pp(u){try{return u.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Ct(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),u}}function Sa(u,c){if(c==="/")return u;if(!u.toLowerCase().startsWith(c.toLowerCase()))return null;let r=c.endsWith("/")?c.length-1:c.length,s=u.charAt(r);return s&&s!=="/"?null:u.slice(r)||"/"}var wm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eg=u=>wm.test(u);function tg(u,c="/"){let{pathname:r,search:s="",hash:d=""}=typeof u=="string"?nn(u):u,h;if(r)if(eg(r))h=r;else{if(r.includes("//")){let y=r;r=r.replace(/\/\/+/g,"/"),Ct(!1,`Pathnames cannot have embedded double slashes - normalizing ${y} -> ${r}`)}r.startsWith("/")?h=nm(r.substring(1),"/"):h=nm(r,c)}else h=c;return{pathname:h,search:ng(s),hash:ig(d)}}function nm(u,c){let r=c.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function cr(u,c,r,s){return`Cannot include a '${u}' character in a manually specified \`to.${c}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ag(u){return u.filter((c,r)=>r===0||c.route.path&&c.route.path.length>0)}function zr(u){let c=ag(u);return c.map((r,s)=>s===c.length-1?r.pathname:r.pathnameBase)}function Nr(u,c,r,s=!1){let d;typeof u=="string"?d=nn(u):(d={...u},Oe(!d.pathname||!d.pathname.includes("?"),cr("?","pathname","search",d)),Oe(!d.pathname||!d.pathname.includes("#"),cr("#","pathname","hash",d)),Oe(!d.search||!d.search.includes("#"),cr("#","search","hash",d)));let h=u===""||d.pathname==="",y=h?"/":d.pathname,b;if(y==null)b=r;else{let z=c.length-1;if(!s&&y.startsWith("..")){let L=y.split("/");for(;L[0]==="..";)L.shift(),z-=1;d.pathname=L.join("/")}b=z>=0?c[z]:"/"}let p=tg(d,b),g=y&&y!=="/"&&y.endsWith("/"),A=(h||y===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||A)&&(p.pathname+="/"),p}var ba=u=>u.join("/").replace(/\/\/+/g,"/"),lg=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),ng=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,ig=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,ug=class{constructor(u,c,r,s=!1){this.status=u,this.statusText=c||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function cg(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function sg(u){return u.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var jm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zm(u,c){let r=u;if(typeof r!="string"||!wm.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,d=!1;if(jm)try{let h=new URL(window.location.href),y=r.startsWith("//")?new URL(h.protocol+r):new URL(r),b=Sa(y.pathname,c);y.origin===h.origin&&b!=null?r=b+y.search+y.hash:d=!0}catch{Ct(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Nm=["POST","PUT","PATCH","DELETE"];new Set(Nm);var rg=["GET",...Nm];new Set(rg);var un=S.createContext(null);un.displayName="DataRouter";var Lu=S.createContext(null);Lu.displayName="DataRouterState";var og=S.createContext(!1),Em=S.createContext({isTransitioning:!1});Em.displayName="ViewTransition";var fg=S.createContext(new Map);fg.displayName="Fetchers";var dg=S.createContext(null);dg.displayName="Await";var At=S.createContext(null);At.displayName="Navigation";var si=S.createContext(null);si.displayName="Location";var $t=S.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Er=S.createContext(null);Er.displayName="RouteError";var Cm="REACT_ROUTER_ERROR",hg="REDIRECT",mg="ROUTE_ERROR_RESPONSE";function yg(u){if(u.startsWith(`${Cm}:${hg}:{`))try{let c=JSON.parse(u.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function pg(u){if(u.startsWith(`${Cm}:${mg}:{`))try{let c=JSON.parse(u.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new ug(c.status,c.statusText,c.data)}catch{}}function gg(u,{relative:c}={}){Oe(cn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=S.useContext(At),{hash:d,pathname:h,search:y}=ri(u,{relative:c}),b=h;return r!=="/"&&(b=h==="/"?r:ba([r,h])),s.createHref({pathname:b,search:y,hash:d})}function cn(){return S.useContext(si)!=null}function It(){return Oe(cn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(si).location}var Am="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tm(u){S.useContext(At).static||S.useLayoutEffect(u)}function Pt(){let{isDataRoute:u}=S.useContext($t);return u?Rg():vg()}function vg(){Oe(cn(),"useNavigate() may be used only in the context of a <Router> component.");let u=S.useContext(un),{basename:c,navigator:r}=S.useContext(At),{matches:s}=S.useContext($t),{pathname:d}=It(),h=JSON.stringify(zr(s)),y=S.useRef(!1);return Tm(()=>{y.current=!0}),S.useCallback((p,g={})=>{if(Ct(y.current,Am),!y.current)return;if(typeof p=="number"){r.go(p);return}let A=Nr(p,JSON.parse(h),d,g.relative==="path");u==null&&c!=="/"&&(A.pathname=A.pathname==="/"?c:ba([c,A.pathname])),(g.replace?r.replace:r.push)(A,g.state,g)},[c,r,h,d,u])}S.createContext(null);function ri(u,{relative:c}={}){let{matches:r}=S.useContext($t),{pathname:s}=It(),d=JSON.stringify(zr(r));return S.useMemo(()=>Nr(u,JSON.parse(d),s,c==="path"),[u,d,s,c])}function xg(u,c){return Rm(u,c)}function Rm(u,c,r,s,d){Oe(cn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=S.useContext(At),{matches:y}=S.useContext($t),b=y[y.length-1],p=b?b.params:{},g=b?b.pathname:"/",A=b?b.pathnameBase:"/",z=b&&b.route;{let Q=z&&z.path||"";_m(g,!z||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${Q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
8
+ `+l.stack}}var aa=Object.prototype.hasOwnProperty,vl=i.unstable_scheduleCallback,Fu=i.unstable_cancelCallback,p0=i.unstable_shouldYield,g0=i.unstable_requestPaint,pt=i.unstable_now,v0=i.unstable_getCurrentPriorityLevel,Wr=i.unstable_ImmediatePriority,Ir=i.unstable_UserBlockingPriority,di=i.unstable_NormalPriority,x0=i.unstable_LowPriority,Pr=i.unstable_IdlePriority,b0=i.log,S0=i.unstable_setDisableYieldValue,fn=null,gt=null;function Ea(e){if(typeof b0=="function"&&S0(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(fn,e)}catch{}}var vt=Math.clz32?Math.clz32:z0,w0=Math.log,j0=Math.LN2;function z0(e){return e>>>=0,e===0?32:31-(w0(e)/j0|0)|0}var hi=256,mi=262144,yi=4194304;function Ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~u,l!==0?n=Ia(l):(o&=m,o!==0?n=Ia(o):a||(a=m&~e,a!==0&&(n=Ia(a))))):(m=l&~u,m!==0?n=Ia(m):o!==0?n=Ia(o):a||(a=l&~e,a!==0&&(n=Ia(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function dn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function E0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eo(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function Ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function N0(e,t,a,l,n,u){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-vt(a),M=1<<_;m[_]=0,b[_]=-1;var A=N[_];if(A!==null)for(N[_]=null,_=0;_<A.length;_++){var T=A[_];T!==null&&(T.lane&=-536870913)}a&=~M}l!==0&&to(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function to(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function ao(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function lo(e,t){var a=t&-t;return a=(a&42)!==0?1:$u(a),(a&(e.suspendedLanes|t))!==0?0:a}function $u(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function no(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Zh(e.type))}function io(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Na=Math.random().toString(36).slice(2),Pe="__reactFiber$"+Na,st="__reactProps$"+Na,xl="__reactContainer$"+Na,Iu="__reactEvents$"+Na,C0="__reactListeners$"+Na,A0="__reactHandles$"+Na,uo="__reactResources$"+Na,mn="__reactMarker$"+Na;function Pu(e){delete e[Pe],delete e[st],delete e[Iu],delete e[C0],delete e[A0]}function bl(e){var t=e[Pe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[xl]||a[Pe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Th(e);e!==null;){if(a=e[Pe])return a;e=Th(e)}return t}e=a,a=e.parentNode}return null}function Sl(e){if(e=e[Pe]||e[xl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function wl(e){var t=e[uo];return t||(t=e[uo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[mn]=!0}var co=new Set,so={};function Pa(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(so[e]=t,e=0;e<t.length;e++)co.add(t[e])}var T0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ro={},oo={};function R0(e){return aa.call(oo,e)?!0:aa.call(ro,e)?!1:T0.test(e)?oo[e]=!0:(ro[e]=!0,!1)}function gi(e,t,a){if(R0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function vi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function la(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){if(!e._valueTracker){var t=fo(e)?"checked":"value";e._valueTracker=D0(e,t,""+e[t])}}function ho(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=fo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _0=/[\n"\\]/g;function Tt(e){return e.replace(_0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tc(e,t,a,l,n,u,o,m){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?ac(e,o,At(t)):a!=null?ac(e,o,At(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+At(m):e.removeAttribute("name")}function mo(e,t,a,l,n,u,o,m){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ec(e);return}a=a!=null?""+At(a):"",t=t!=null?""+At(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),ec(e)}function ac(e,t,a){t==="number"&&xi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+At(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yo(e,t,a){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+At(a):""}function po(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ee(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=At(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),ec(e)}function El(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var U0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function go(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||U0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vo(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&go(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&go(e,u,t[u])}function lc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var O0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),M0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bi(e){return M0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var nc=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,Cl=null;function xo(e){var t=Sl(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(tc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[st]||null;if(!n)throw Error(s(90));tc(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ho(l)}break e;case"textarea":yo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zl(e,!!a.multiple,t,!1)}}}var uc=!1;function bo(e,t,a){if(uc)return e(t,a);uc=!0;try{var l=e(t);return l}finally{if(uc=!1,(Nl!==null||Cl!==null)&&(cu(),Nl&&(t=Nl,e=Cl,Cl=Nl=null,xo(t),e)))for(t=0;t<e.length;t++)xo(e[t])}}function pn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[st]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cc=!1;if(ia)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){cc=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{cc=!1}var Ca=null,sc=null,Si=null;function So(){if(Si)return Si;var e,t=sc,a=t.length,l,n="value"in Ca?Ca.value:Ca.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[u-l];l++);return Si=n.slice(e,1<l?1-l:void 0)}function wi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ji(){return!0}function wo(){return!1}function rt(e){function t(a,l,n,u,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(u):u[m]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ji:wo,this.isPropagationStopped=wo,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ji)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zi=rt(el),vn=z({},el,{view:0,detail:0}),L0=rt(vn),rc,oc,xn,Ei=z({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xn&&(xn&&e.type==="mousemove"?(rc=e.screenX-xn.screenX,oc=e.screenY-xn.screenY):oc=rc=0,xn=e),rc)},movementY:function(e){return"movementY"in e?e.movementY:oc}}),jo=rt(Ei),B0=z({},Ei,{dataTransfer:0}),H0=rt(B0),q0=z({},vn,{relatedTarget:0}),fc=rt(q0),k0=z({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),Y0=rt(k0),G0=z({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X0=rt(G0),Q0=z({},el,{data:0}),zo=rt(Q0),Z0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K0[e])?!!t[e]:!1}function dc(){return F0}var J0=z({},vn,{key:function(e){if(e.key){var t=Z0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$0=rt(J0),W0=z({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eo=rt(W0),I0=z({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),P0=rt(I0),ey=z({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),ty=rt(ey),ay=z({},Ei,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ly=rt(ay),ny=z({},el,{newState:0,oldState:0}),iy=rt(ny),uy=[9,13,27,32],hc=ia&&"CompositionEvent"in window,bn=null;ia&&"documentMode"in document&&(bn=document.documentMode);var cy=ia&&"TextEvent"in window&&!bn,No=ia&&(!hc||bn&&8<bn&&11>=bn),Co=" ",Ao=!1;function To(e,t){switch(e){case"keyup":return uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ro(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Al=!1;function sy(e,t){switch(e){case"compositionend":return Ro(t);case"keypress":return t.which!==32?null:(Ao=!0,Co);case"textInput":return e=t.data,e===Co&&Ao?null:e;default:return null}}function ry(e,t){if(Al)return e==="compositionend"||!hc&&To(e,t)?(e=So(),Si=sc=Ca=null,Al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return No&&t.locale!=="ko"?null:t.data;default:return null}}var oy={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 Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function _o(e,t,a,l){Nl?Cl?Cl.push(l):Cl=[l]:Nl=l,t=mu(t,"onChange"),0<t.length&&(a=new zi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Sn=null,wn=null;function fy(e){yh(e,0)}function Ni(e){var t=yn(e);if(ho(t))return e}function Uo(e,t){if(e==="change")return t}var Oo=!1;if(ia){var mc;if(ia){var yc="oninput"in document;if(!yc){var Mo=document.createElement("div");Mo.setAttribute("oninput","return;"),yc=typeof Mo.oninput=="function"}mc=yc}else mc=!1;Oo=mc&&(!document.documentMode||9<document.documentMode)}function Lo(){Sn&&(Sn.detachEvent("onpropertychange",Bo),wn=Sn=null)}function Bo(e){if(e.propertyName==="value"&&Ni(wn)){var t=[];_o(t,wn,e,ic(e)),bo(fy,t)}}function dy(e,t,a){e==="focusin"?(Lo(),Sn=t,wn=a,Sn.attachEvent("onpropertychange",Bo)):e==="focusout"&&Lo()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(wn)}function my(e,t){if(e==="click")return Ni(t)}function yy(e,t){if(e==="input"||e==="change")return Ni(t)}function py(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:py;function jn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!aa.call(t,n)||!xt(e[n],t[n]))return!1}return!0}function Ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qo(e,t){var a=Ho(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ho(a)}}function ko(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ko(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=xi(e.document)}return t}function pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gy=ia&&"documentMode"in document&&11>=document.documentMode,Tl=null,gc=null,zn=null,vc=!1;function Go(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;vc||Tl==null||Tl!==xi(l)||(l=Tl,"selectionStart"in l&&pc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),zn&&jn(zn,l)||(zn=l,l=mu(gc,"onSelect"),0<l.length&&(t=new zi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Tl)))}function tl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Rl={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionrun:tl("Transition","TransitionRun"),transitionstart:tl("Transition","TransitionStart"),transitioncancel:tl("Transition","TransitionCancel"),transitionend:tl("Transition","TransitionEnd")},xc={},Xo={};ia&&(Xo=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function al(e){if(xc[e])return xc[e];if(!Rl[e])return e;var t=Rl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xo)return xc[e]=t[a];return e}var Qo=al("animationend"),Zo=al("animationiteration"),Vo=al("animationstart"),vy=al("transitionrun"),xy=al("transitionstart"),by=al("transitioncancel"),Ko=al("transitionend"),Fo=new Map,bc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");bc.push("scrollEnd");function Xt(e,t){Fo.set(e,t),Pa(t,[e])}var Ci=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Rt=[],Dl=0,Sc=0;function Ai(){for(var e=Dl,t=Sc=Dl=0;t<e;){var a=Rt[t];Rt[t++]=null;var l=Rt[t];Rt[t++]=null;var n=Rt[t];Rt[t++]=null;var u=Rt[t];if(Rt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}u!==0&&Jo(a,n,u)}}function Ti(e,t,a,l){Rt[Dl++]=e,Rt[Dl++]=t,Rt[Dl++]=a,Rt[Dl++]=l,Sc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function wc(e,t,a,l){return Ti(e,t,a,l),Ri(e)}function ll(e,t){return Ti(e,null,null,t),Ri(e)}function Jo(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-vt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function Ri(e){if(50<Vn)throw Vn=0,Ds=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _l={};function Sy(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new Sy(e,t,a,l)}function jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function $o(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Di(e,t,a,l,n,u){var o=0;if(l=e,typeof e=="function")jc(e)&&(o=1);else if(typeof e=="string")o=Np(e,a,q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ze:return e=bt(31,a,t,n),e.elementType=ze,e.lanes=u,e;case O:return nl(a.children,n,u,t);case L:o=8,n|=24;break;case X:return e=bt(12,a,t,n|2),e.elementType=X,e.lanes=u,e;case ne:return e=bt(13,a,t,n),e.elementType=ne,e.lanes=u,e;case te:return e=bt(19,a,t,n),e.elementType=te,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:o=10;break e;case W:o=9;break e;case le:o=11;break e;case Z:o=14;break e;case re:o=16,l=null;break e}o=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=bt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function nl(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function zc(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Wo(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Ec(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Io=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var a=Io.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ta(t)},Io.set(e,t),t)}return{value:e,source:t,stack:ta(t)}}var Ul=[],Ol=0,_i=null,En=0,_t=[],Ut=0,Aa=null,Ft=1,Jt="";function ca(e,t){Ul[Ol++]=En,Ul[Ol++]=_i,_i=e,En=t}function Po(e,t,a){_t[Ut++]=Ft,_t[Ut++]=Jt,_t[Ut++]=Aa,Aa=e;var l=Ft;e=Jt;var n=32-vt(l)-1;l&=~(1<<n),a+=1;var u=32-vt(t)+n;if(30<u){var o=n-n%5;u=(l&(1<<o)-1).toString(32),l>>=o,n-=o,Ft=1<<32-vt(t)+n|a<<n|l,Jt=u+e}else Ft=1<<u|a<<n|l,Jt=e}function Nc(e){e.return!==null&&(ca(e,1),Po(e,1,0))}function Cc(e){for(;e===_i;)_i=Ul[--Ol],Ul[Ol]=null,En=Ul[--Ol],Ul[Ol]=null;for(;e===Aa;)Aa=_t[--Ut],_t[Ut]=null,Jt=_t[--Ut],_t[Ut]=null,Ft=_t[--Ut],_t[Ut]=null}function ef(e,t){_t[Ut++]=Ft,_t[Ut++]=Jt,_t[Ut++]=Aa,Ft=t.id,Jt=t.overflow,Aa=e}var et=null,Ue=null,pe=!1,Ta=null,Ot=!1,Ac=Error(s(519));function Ra(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nn(Dt(t,e)),Ac}function tf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Pe]=e,t[st]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Fn.length;a++)he(Fn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),mo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),po(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||xh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Ra(e,!0)}function af(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:et=et.return}}function Ml(e){if(e!==et)return!1;if(!pe)return af(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Vs(e.type,e.memoizedProps)),a=!a),a&&Ue&&Ra(e),af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Ah(e)}else t===27?(t=Ue,Qa(e.type)?(e=Ws,Ws=null,Ue=e):Ue=t):Ue=et?Lt(e.stateNode.nextSibling):null;return!0}function il(){Ue=et=null,pe=!1}function Tc(){var e=Ta;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),Ta=null),e}function Nn(e){Ta===null?Ta=[e]:Ta.push(e)}var Rc=v(null),ul=null,sa=null;function Da(e,t,a){H(Rc,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=Rc.current,R(Rc)}function Dc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function _c(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var o=n.child;u=u.firstContext;e:for(;u!==null;){var m=u;u=n;for(var b=0;b<t.length;b++)if(m.context===t[b]){u.lanes|=a,m=u.alternate,m!==null&&(m.lanes|=a),Dc(u.return,a,e),l||(o=null);break e}u=m.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(s(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),Dc(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ll(e,t,a,l){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var m=n.type;xt(n.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(n===ie.current){if(o=n.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Pn):e=[Pn])}n=n.return}e!==null&&_c(t,e,a,l),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cl(e){ul=e,sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return lf(ul,e)}function Oi(e,t){return ul===null&&cl(e),lf(e,t)}function lf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},sa===null){if(e===null)throw Error(s(308));sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sa=sa.next=t;return a}var wy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jy=i.unstable_scheduleCallback,zy=i.unstable_NormalPriority,Ve={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uc(){return{controller:new wy,data:new Map,refCount:0}}function Cn(e){e.refCount--,e.refCount===0&&jy(zy,function(){e.controller.abort()})}var An=null,Oc=0,Bl=0,Hl=null;function Ey(e,t){if(An===null){var a=An=[];Oc=0,Bl=Bs(),Hl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Oc++,t.then(nf,nf),t}function nf(){if(--Oc===0&&An!==null){Hl!==null&&(Hl.status="fulfilled");var e=An;An=null,Bl=0,Hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ny(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var uf=D.S;D.S=function(e,t){Xd=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ey(e,t),uf!==null&&uf(e,t)};var sl=v(null);function Mc(){var e=sl.current;return e!==null?e:Re.pooledCache}function Mi(e,t){t===null?H(sl,sl.current):H(sl,t.pool)}function cf(){var e=Mc();return e===null?null:{parent:Ve._currentValue,pool:e}}var ql=Error(s(460)),Lc=Error(s(474)),Li=Error(s(542)),Bi={then:function(){}};function sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e}throw ol=t,ql}}function rl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ol=a,ql):a}}var ol=null;function of(){if(ol===null)throw Error(s(459));var e=ol;return ol=null,e}function ff(e){if(e===ql||e===Li)throw Error(s(483))}var kl=null,Tn=0;function Hi(e){var t=Tn;return Tn+=1,kl===null&&(kl=[]),rf(kl,e,t)}function Rn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===B?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function df(e){function t(j,w){if(e){var E=j.deletions;E===null?(j.deletions=[w],j.flags|=16):E.push(w)}}function a(j,w){if(!e)return null;for(;w!==null;)t(j,w),w=w.sibling;return null}function l(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function n(j,w){return j=ua(j,w),j.index=0,j.sibling=null,j}function u(j,w,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<w?(j.flags|=67108866,w):E):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function o(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function m(j,w,E,U){return w===null||w.tag!==6?(w=zc(E,j.mode,U),w.return=j,w):(w=n(w,E),w.return=j,w)}function b(j,w,E,U){var P=E.type;return P===O?_(j,w,E.props.children,U,E.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&rl(P)===w.type)?(w=n(w,E.props),Rn(w,E),w.return=j,w):(w=Di(E.type,E.key,E.props,null,j.mode,U),Rn(w,E),w.return=j,w)}function N(j,w,E,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==E.containerInfo||w.stateNode.implementation!==E.implementation?(w=Ec(E,j.mode,U),w.return=j,w):(w=n(w,E.children||[]),w.return=j,w)}function _(j,w,E,U,P){return w===null||w.tag!==7?(w=nl(E,j.mode,U,P),w.return=j,w):(w=n(w,E),w.return=j,w)}function M(j,w,E){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=zc(""+w,j.mode,E),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Y:return E=Di(w.type,w.key,w.props,null,j.mode,E),Rn(E,w),E.return=j,E;case Q:return w=Ec(w,j.mode,E),w.return=j,w;case re:return w=rl(w),M(j,w,E)}if(Ee(w)||_e(w))return w=nl(w,j.mode,E,null),w.return=j,w;if(typeof w.then=="function")return M(j,Hi(w),E);if(w.$$typeof===F)return M(j,Oi(j,w),E);qi(j,w)}return null}function A(j,w,E,U){var P=w!==null?w.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return P!==null?null:m(j,w,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:return E.key===P?b(j,w,E,U):null;case Q:return E.key===P?N(j,w,E,U):null;case re:return E=rl(E),A(j,w,E,U)}if(Ee(E)||_e(E))return P!==null?null:_(j,w,E,U,null);if(typeof E.then=="function")return A(j,w,Hi(E),U);if(E.$$typeof===F)return A(j,w,Oi(j,E),U);qi(j,E)}return null}function T(j,w,E,U,P){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(E)||null,m(w,j,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Y:return j=j.get(U.key===null?E:U.key)||null,b(w,j,U,P);case Q:return j=j.get(U.key===null?E:U.key)||null,N(w,j,U,P);case re:return U=rl(U),T(j,w,E,U,P)}if(Ee(U)||_e(U))return j=j.get(E)||null,_(w,j,U,P,null);if(typeof U.then=="function")return T(j,w,E,Hi(U),P);if(U.$$typeof===F)return T(j,w,E,Oi(w,U),P);qi(w,U)}return null}function V(j,w,E,U){for(var P=null,ge=null,$=w,se=w=0,ye=null;$!==null&&se<E.length;se++){$.index>se?(ye=$,$=null):ye=$.sibling;var ve=A(j,$,E[se],U);if(ve===null){$===null&&($=ye);break}e&&$&&ve.alternate===null&&t(j,$),w=u(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve,$=ye}if(se===E.length)return a(j,$),pe&&ca(j,se),P;if($===null){for(;se<E.length;se++)$=M(j,E[se],U),$!==null&&(w=u($,w,se),ge===null?P=$:ge.sibling=$,ge=$);return pe&&ca(j,se),P}for($=l($);se<E.length;se++)ye=T($,j,se,E[se],U),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?se:ye.key),w=u(ye,w,se),ge===null?P=ye:ge.sibling=ye,ge=ye);return e&&$.forEach(function(Ja){return t(j,Ja)}),pe&&ca(j,se),P}function ee(j,w,E,U){if(E==null)throw Error(s(151));for(var P=null,ge=null,$=w,se=w=0,ye=null,ve=E.next();$!==null&&!ve.done;se++,ve=E.next()){$.index>se?(ye=$,$=null):ye=$.sibling;var Ja=A(j,$,ve.value,U);if(Ja===null){$===null&&($=ye);break}e&&$&&Ja.alternate===null&&t(j,$),w=u(Ja,w,se),ge===null?P=Ja:ge.sibling=Ja,ge=Ja,$=ye}if(ve.done)return a(j,$),pe&&ca(j,se),P;if($===null){for(;!ve.done;se++,ve=E.next())ve=M(j,ve.value,U),ve!==null&&(w=u(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve);return pe&&ca(j,se),P}for($=l($);!ve.done;se++,ve=E.next())ve=T($,j,se,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&$.delete(ve.key===null?se:ve.key),w=u(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve);return e&&$.forEach(function(Bp){return t(j,Bp)}),pe&&ca(j,se),P}function Te(j,w,E,U){if(typeof E=="object"&&E!==null&&E.type===O&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:e:{for(var P=E.key;w!==null;){if(w.key===P){if(P=E.type,P===O){if(w.tag===7){a(j,w.sibling),U=n(w,E.props.children),U.return=j,j=U;break e}}else if(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&rl(P)===w.type){a(j,w.sibling),U=n(w,E.props),Rn(U,E),U.return=j,j=U;break e}a(j,w);break}else t(j,w);w=w.sibling}E.type===O?(U=nl(E.props.children,j.mode,U,E.key),U.return=j,j=U):(U=Di(E.type,E.key,E.props,null,j.mode,U),Rn(U,E),U.return=j,j=U)}return o(j);case Q:e:{for(P=E.key;w!==null;){if(w.key===P)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){a(j,w.sibling),U=n(w,E.children||[]),U.return=j,j=U;break e}else{a(j,w);break}else t(j,w);w=w.sibling}U=Ec(E,j.mode,U),U.return=j,j=U}return o(j);case re:return E=rl(E),Te(j,w,E,U)}if(Ee(E))return V(j,w,E,U);if(_e(E)){if(P=_e(E),typeof P!="function")throw Error(s(150));return E=P.call(E),ee(j,w,E,U)}if(typeof E.then=="function")return Te(j,w,Hi(E),U);if(E.$$typeof===F)return Te(j,w,Oi(j,E),U);qi(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,w!==null&&w.tag===6?(a(j,w.sibling),U=n(w,E),U.return=j,j=U):(a(j,w),U=zc(E,j.mode,U),U.return=j,j=U),o(j)):a(j,w)}return function(j,w,E,U){try{Tn=0;var P=Te(j,w,E,U);return kl=null,P}catch($){if($===ql||$===Li)throw $;var ge=bt(29,$,null,j.mode);return ge.lanes=U,ge.return=j,ge}}}var fl=df(!0),hf=df(!1),_a=!1;function Bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(be&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Ri(e),Jo(e,null,a),t}return Ti(e,l,t,a),Ri(e)}function Dn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ao(e,a)}}function qc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var kc=!1;function _n(){if(kc){var e=Hl;if(e!==null)throw e}}function Un(e,t,a,l){kc=!1;var n=e.updateQueue;_a=!1;var u=n.firstBaseUpdate,o=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var b=m,N=b.next;b.next=null,o===null?u=N:o.next=N,o=b;var _=e.alternate;_!==null&&(_=_.updateQueue,m=_.lastBaseUpdate,m!==o&&(m===null?_.firstBaseUpdate=N:m.next=N,_.lastBaseUpdate=b))}if(u!==null){var M=n.baseState;o=0,_=N=b=null,m=u;do{var A=m.lane&-536870913,T=A!==m.lane;if(T?(me&A)===A:(l&A)===A){A!==0&&A===Bl&&(kc=!0),_!==null&&(_=_.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var V=e,ee=m;A=t;var Te=a;switch(ee.tag){case 1:if(V=ee.payload,typeof V=="function"){M=V.call(Te,M,A);break e}M=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=ee.payload,A=typeof V=="function"?V.call(Te,M,A):V,A==null)break e;M=z({},M,A);break e;case 2:_a=!0}}A=m.callback,A!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[A]:T.push(A))}else T={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},_===null?(N=_=T,b=M):_=_.next=T,o|=A;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;T=m,m=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);_===null&&(b=M),n.baseState=b,n.firstBaseUpdate=N,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),qa|=o,e.lanes=o,e.memoizedState=M}}function mf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function yf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)mf(a[e],t)}var Yl=v(null),ki=v(0);function pf(e,t){e=va,H(ki,e),H(Yl,t),va=e|t.baseLanes}function Yc(){H(ki,va),H(Yl,Yl.current)}function Gc(){va=ki.current,R(Yl),R(ki)}var St=v(null),Mt=null;function Ma(e){var t=e.alternate;H(Qe,Qe.current&1),H(St,e),Mt===null&&(t===null||Yl.current!==null||t.memoizedState!==null)&&(Mt=e)}function Xc(e){H(Qe,Qe.current),H(St,e),Mt===null&&(Mt=e)}function gf(e){e.tag===22?(H(Qe,Qe.current),H(St,e),Mt===null&&(Mt=e)):La()}function La(){H(Qe,Qe.current),H(St,St.current)}function wt(e){R(St),Mt===e&&(Mt=null),R(Qe)}var Qe=v(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Js(a)||$s(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oa=0,ce=null,Ce=null,Ke=null,Gi=!1,Gl=!1,dl=!1,Xi=0,On=0,Xl=null,Cy=0;function Ye(){throw Error(s(321))}function Qc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function Zc(e,t,a,l,n,u){return oa=u,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?ed:us,dl=!1,u=a(l,n),dl=!1,Gl&&(u=xf(t,a,l,n)),vf(e),u}function vf(e){D.H=Bn;var t=Ce!==null&&Ce.next!==null;if(oa=0,Ke=Ce=ce=null,Gi=!1,On=0,Xl=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&Ui(e)&&(Fe=!0))}function xf(e,t,a,l){ce=e;var n=0;do{if(Gl&&(Xl=null),On=0,Gl=!1,25<=n)throw Error(s(301));if(n+=1,Ke=Ce=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=td,u=t(a,l)}while(Gl);return u}function Ay(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Mn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ce.flags|=1024),t}function Vc(){var e=Xi!==0;return Xi=0,e}function Kc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Fc(e){if(Gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gi=!1}oa=0,Ke=Ce=ce=null,Gl=!1,On=Xi=0,Xl=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ce.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ze(){if(Ce===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ke===null?ce.memoizedState:Ke.next;if(t!==null)Ke=t,Ce=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ke===null?ce.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mn(e){var t=On;return On+=1,Xl===null&&(Xl=[]),e=rf(Xl,e,t),t=ce,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?ed:us),e}function Zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mn(e);if(e.$$typeof===F)return tt(e)}throw Error(s(438,String(e)))}function Jc(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Qi(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Se;return t.index++,a}function fa(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=Ze();return $c(t,Ce,e)}function $c(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var o=n.next;n.next=u.next,u.next=o}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var m=o=null,b=null,N=t,_=!1;do{var M=N.lane&-536870913;if(M!==N.lane?(me&M)===M:(oa&M)===M){var A=N.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),M===Bl&&(_=!0);else if((oa&A)===A){N=N.next,A===Bl&&(_=!0);continue}else M={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=M,o=u):b=b.next=M,ce.lanes|=A,qa|=A;M=N.action,dl&&a(u,M),u=N.hasEagerState?N.eagerState:a(u,M)}else A={lane:M,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=A,o=u):b=b.next=A,ce.lanes|=M,qa|=M;N=N.next}while(N!==null&&N!==t);if(b===null?o=u:b.next=m,!xt(u,e.memoizedState)&&(Fe=!0,_&&(a=Hl,a!==null)))throw a;e.memoizedState=u,e.baseState=o,e.baseQueue=b,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wc(e){var t=Ze(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do u=e(u,o.action),o=o.next;while(o!==n);xt(u,t.memoizedState)||(Fe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function bf(e,t,a){var l=ce,n=Ze(),u=pe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var o=!xt((Ce||n).memoizedState,a);if(o&&(n.memoizedState=a,Fe=!0),n=n.queue,es(jf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Ke!==null&&Ke.memoizedState.tag&1){if(l.flags|=2048,Ql(9,{destroy:void 0},wf.bind(null,l,n,a,t),null),Re===null)throw Error(s(349));u||(oa&127)!==0||Sf(l,t,a)}return a}function Sf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Qi(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wf(e,t,a,l){t.value=a,t.getSnapshot=l,zf(t)&&Ef(e)}function jf(e,t,a){return a(function(){zf(t)&&Ef(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Ef(e){var t=ll(e,2);t!==null&&mt(t,e,2)}function Ic(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),dl){Ea(!0);try{a()}finally{Ea(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function Nf(e,t,a,l){return e.baseState=a,$c(e,Ce,typeof l=="function"?l:fa)}function Ty(e,t,a,l,n){if(Ji(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};D.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,Cf(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Cf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=D.T,o={};D.T=o;try{var m=a(n,l),b=D.S;b!==null&&b(o,m),Af(e,t,m)}catch(N){Pc(e,t,N)}finally{u!==null&&o.types!==null&&(u.types=o.types),D.T=u}}else try{u=a(n,l),Af(e,t,u)}catch(N){Pc(e,t,N)}}function Af(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Tf(e,t,l)},function(l){return Pc(e,t,l)}):Tf(e,t,a)}function Tf(e,t,a){t.status="fulfilled",t.value=a,Rf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Cf(e,a)))}function Pc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Rf(t),t=t.next;while(t!==l)}e.action=null}function Rf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function _f(e,t){if(pe){var a=Re.formState;if(a!==null){e:{var l=ce;if(pe){if(Ue){t:{for(var n=Ue,u=Ot;n.nodeType!==8;){if(!u){n=null;break t}if(n=Lt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ue=Lt(n.nextSibling),l=n.data==="F!";break e}}Ra(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},a.queue=l,a=Wf.bind(null,ce,l),l.dispatch=a,l=Ic(!1),u=is.bind(null,ce,!1,l.queue),l=ct(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Ty.bind(null,ce,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Uf(e){var t=Ze();return Of(t,Ce,e)}function Of(e,t,a){if(t=$c(e,t,Df)[0],e=Vi(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Mn(t)}catch(o){throw o===ql?Li:o}else l=t;t=Ze();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Ql(9,{destroy:void 0},Ry.bind(null,n,a),null)),[l,u,e]}function Ry(e,t){e.action=t}function Mf(e){var t=Ze(),a=Ce;if(a!==null)return Of(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ql(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Qi(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Lf(){return Ze().memoizedState}function Ki(e,t,a,l){var n=ct();ce.flags|=e,n.memoizedState=Ql(1|t,{destroy:void 0},a,l===void 0?null:l)}function Fi(e,t,a,l){var n=Ze();l=l===void 0?null:l;var u=n.memoizedState.inst;Ce!==null&&l!==null&&Qc(l,Ce.memoizedState.deps)?n.memoizedState=Ql(t,u,a,l):(ce.flags|=e,n.memoizedState=Ql(1|t,u,a,l))}function Bf(e,t){Ki(8390656,8,e,t)}function es(e,t){Fi(2048,8,e,t)}function Dy(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Qi(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hf(e){var t=Ze().memoizedState;return Dy({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function qf(e,t){return Fi(4,2,e,t)}function kf(e,t){return Fi(4,4,e,t)}function Yf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gf(e,t,a){a=a!=null?a.concat([e]):null,Fi(4,4,Yf.bind(null,t,e),a)}function ts(){}function Xf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Qc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Qf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Qc(t,l[1]))return l[0];if(l=e(),dl){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l}function as(e,t,a){return a===void 0||(oa&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Zd(),ce.lanes|=e,qa|=e,a)}function Zf(e,t,a,l){return xt(a,t)?a:Yl.current!==null?(e=as(e,a,l),xt(e,t)||(Fe=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(me&261930)===0?(Fe=!0,e.memoizedState=a):(e=Zd(),ce.lanes|=e,qa|=e,t)}function Vf(e,t,a,l,n){var u=G.p;G.p=u!==0&&8>u?u:8;var o=D.T,m={};D.T=m,is(e,!1,t,a);try{var b=n(),N=D.S;if(N!==null&&N(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=Ny(b,l);Ln(e,t,_,Et(e))}else Ln(e,t,l,Et(e))}catch(M){Ln(e,t,{then:function(){},status:"rejected",reason:M},Et())}finally{G.p=u,o!==null&&m.types!==null&&(o.types=m.types),D.T=o}}function _y(){}function ls(e,t,a,l){if(e.tag!==5)throw Error(s(476));var n=Kf(e).queue;Vf(e,n,t,J,a===null?_y:function(){return Ff(e),a(l)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ff(e){var t=Kf(e);t.next===null&&(t=e.alternate.memoizedState),Ln(e,t.next.queue,{},Et())}function ns(){return tt(Pn)}function Jf(){return Ze().memoizedState}function $f(){return Ze().memoizedState}function Uy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Ua(a);var l=Oa(t,e,a);l!==null&&(mt(l,t,a),Dn(l,t,a)),t={cache:Uc()},e.payload=t;return}t=t.return}}function Oy(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ji(e)?If(t,a):(a=wc(e,t,a,l),a!==null&&(mt(a,e,l),Pf(a,t,l)))}function Wf(e,t,a){var l=Et();Ln(e,t,a,l)}function Ln(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))If(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,m=u(o,a);if(n.hasEagerState=!0,n.eagerState=m,xt(m,o))return Ti(e,t,n,0),Re===null&&Ai(),!1}catch{}if(a=wc(e,t,n,l),a!==null)return mt(a,e,l),Pf(a,t,l),!0}return!1}function is(e,t,a,l){if(l={lane:2,revertLane:Bs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(t)throw Error(s(479))}else t=wc(e,a,l,2),t!==null&&mt(t,e,2)}function Ji(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function If(e,t){Gl=Gi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Pf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ao(e,a)}}var Bn={readContext:tt,use:Zi,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Bn.useEffectEvent=Ye;var ed={readContext:tt,use:Zi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Bf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ki(4194308,4,Yf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){Ki(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(dl){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var n=a(t);if(dl){Ea(!0);try{a(t)}finally{Ea(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Oy.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Ic(e);var t=e.queue,a=Wf.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ts,useDeferredValue:function(e,t){var a=ct();return as(a,e,t)},useTransition:function(){var e=Ic(!1);return e=Vf.bind(null,ce,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,n=ct();if(pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Re===null)throw Error(s(349));(me&127)!==0||Sf(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,Bf(jf.bind(null,l,u,e),[e]),l.flags|=2048,Ql(9,{destroy:void 0},wf.bind(null,l,u,a,t),null),a},useId:function(){var e=ct(),t=Re.identifierPrefix;if(pe){var a=Jt,l=Ft;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Xi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Cy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ns,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=is.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Jc,useCacheRefresh:function(){return ct().memoizedState=Uy.bind(null,ce)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((be&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},us={readContext:tt,use:Zi,useCallback:Xf,useContext:tt,useEffect:es,useImperativeHandle:Gf,useInsertionEffect:qf,useLayoutEffect:kf,useMemo:Qf,useReducer:Vi,useRef:Lf,useState:function(){return Vi(fa)},useDebugValue:ts,useDeferredValue:function(e,t){var a=Ze();return Zf(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Vi(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Mn(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:ns,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var a=Ze();return Nf(a,Ce,e,t)},useMemoCache:Jc,useCacheRefresh:$f};us.useEffectEvent=Hf;var td={readContext:tt,use:Zi,useCallback:Xf,useContext:tt,useEffect:es,useImperativeHandle:Gf,useInsertionEffect:qf,useLayoutEffect:kf,useMemo:Qf,useReducer:Wc,useRef:Lf,useState:function(){return Wc(fa)},useDebugValue:ts,useDeferredValue:function(e,t){var a=Ze();return Ce===null?as(a,e,t):Zf(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Wc(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Mn(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:ns,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var a=Ze();return Ce!==null?Nf(a,Ce,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Jc,useCacheRefresh:$f};td.useEffectEvent=Hf;function cs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:z({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ss={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ua(l);n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(mt(t,e,l),Dn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ua(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(mt(t,e,l),Dn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Ua(a);l.tag=2,t!=null&&(l.callback=t),t=Oa(e,l,a),t!==null&&(mt(t,e,a),Dn(t,e,a))}};function ad(e,t,a,l,n,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,o):t.prototype&&t.prototype.isPureReactComponent?!jn(a,l)||!jn(n,u):!0}function ld(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ss.enqueueReplaceState(t,t.state,null)}function hl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=z({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function nd(e){Ci(e)}function id(e){console.error(e)}function ud(e){Ci(e)}function $i(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function cd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function rs(e,t,a){return a=Ua(a),a.tag=3,a.payload={element:null},a.callback=function(){$i(e,t)},a}function sd(e){return e=Ua(e),e.tag=3,e}function rd(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){cd(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){cd(t,a,l),typeof n!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function My(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ll(t,a,n,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return Mt===null?su():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Os(e,l,n)),!1;case 22:return a.flags|=65536,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Os(e,l,n)),!1}throw Error(s(435,a.tag))}return Os(e,l,n),su(),!1}if(pe)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ac&&(e=Error(s(422),{cause:l}),Nn(Dt(e,a)))):(l!==Ac&&(t=Error(s(423),{cause:l}),Nn(Dt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Dt(l,a),n=rs(e.stateNode,l,n),qc(e,n),Ge!==4&&(Ge=2)),!1;var u=Error(s(520),{cause:l});if(u=Dt(u,a),Zn===null?Zn=[u]:Zn.push(u),Ge!==4&&(Ge=2),t===null)return!0;l=Dt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=rs(a.stateNode,l,e),qc(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ka===null||!ka.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=sd(n),rd(n,e,a,l),qc(a,n),!1}a=a.return}while(a!==null);return!1}var os=Error(s(461)),Fe=!1;function at(e,t,a,l){t.child=e===null?hf(t,null,a,l):fl(t,e.child,a,l)}function od(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var o={};for(var m in l)m!=="ref"&&(o[m]=l[m])}else o=l;return cl(t),l=Zc(e,t,a,o,u,n),m=Vc(),e!==null&&!Fe?(Kc(e,t,n),da(e,t,n)):(pe&&m&&Nc(t),t.flags|=1,at(e,t,l,n),t.child)}function fd(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!jc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,dd(e,t,u,l,n)):(e=Di(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!vs(e,n)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:jn,a(o,l)&&e.ref===t.ref)return da(e,t,n)}return t.flags|=1,e=ua(u,l),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(jn(u,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=u,vs(e,n))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,da(e,t,n)}return fs(e,t,a,l,n)}function hd(e,t,a,l){var n=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~u}else l=0,t.child=null;return md(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,u!==null?u.cachePool:null),u!==null?pf(t,u):Yc(),gf(t);else return l=t.lanes=536870912,md(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(Mi(t,u.cachePool),pf(t,u),La(),t.memoizedState=null):(e!==null&&Mi(t,null),Yc(),La());return at(e,t,n,a),t.child}function Hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function md(e,t,a,l,n){var u=Mc();return u=u===null?null:{parent:Ve._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Mi(t,null),Yc(),gf(t),e!==null&&Ll(e,t,l,!0),t.childLanes=n,null}function Wi(e,t){return t=Pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yd(e,t,a){return fl(t,e.child,null,a),e=Wi(t,t.pendingProps),e.flags|=2,wt(t),t.memoizedState=null,e}function Ly(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Wi(t,l),t.lanes=536870912,Hn(null,e);if(Xc(t),(e=Ue)?(e=Ch(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},a=Wo(e),a.return=t,t.child=a,et=t,Ue=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return Wi(t,l)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(Xc(t),n)if(t.flags&256)t.flags&=-257,t=yd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Fe||Ll(e,t,a,!1),n=(a&e.childLanes)!==0,Fe||n){if(l=Re,l!==null&&(o=lo(l,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,ll(e,o),mt(l,e,o),os;su(),t=yd(e,t,a)}else e=u.treeContext,Ue=Lt(o.nextSibling),et=t,pe=!0,Ta=null,Ot=!1,e!==null&&ef(t,e),t=Wi(t,l),t.flags|=4096;return t}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ii(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function fs(e,t,a,l,n){return cl(t),a=Zc(e,t,a,l,void 0,n),l=Vc(),e!==null&&!Fe?(Kc(e,t,n),da(e,t,n)):(pe&&l&&Nc(t),t.flags|=1,at(e,t,a,n),t.child)}function pd(e,t,a,l,n,u){return cl(t),t.updateQueue=null,a=xf(t,l,a,n),vf(e),l=Vc(),e!==null&&!Fe?(Kc(e,t,u),da(e,t,u)):(pe&&l&&Nc(t),t.flags|=1,at(e,t,a,u),t.child)}function gd(e,t,a,l,n){if(cl(t),t.stateNode===null){var u=_l,o=a.contextType;typeof o=="object"&&o!==null&&(u=tt(o)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ss,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Bc(t),o=a.contextType,u.context=typeof o=="object"&&o!==null?tt(o):_l,u.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(cs(t,a,o,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&ss.enqueueReplaceState(u,u.state,null),Un(t,l,u,n),_n(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var m=t.memoizedProps,b=hl(a,m);u.props=b;var N=u.context,_=a.contextType;o=_l,typeof _=="object"&&_!==null&&(o=tt(_));var M=a.getDerivedStateFromProps;_=typeof M=="function"||typeof u.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m||N!==o)&&ld(t,u,l,o),_a=!1;var A=t.memoizedState;u.state=A,Un(t,l,u,n),_n(),N=t.memoizedState,m||A!==N||_a?(typeof M=="function"&&(cs(t,a,M,l),N=t.memoizedState),(b=_a||ad(t,a,b,l,A,N,o))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),u.props=l,u.state=N,u.context=o,l=b):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Hc(e,t),o=t.memoizedProps,_=hl(a,o),u.props=_,M=t.pendingProps,A=u.context,N=a.contextType,b=_l,typeof N=="object"&&N!==null&&(b=tt(N)),m=a.getDerivedStateFromProps,(N=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==M||A!==b)&&ld(t,u,l,b),_a=!1,A=t.memoizedState,u.state=A,Un(t,l,u,n),_n();var T=t.memoizedState;o!==M||A!==T||_a||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof m=="function"&&(cs(t,a,m,l),T=t.memoizedState),(_=_a||ad(t,a,_,l,A,T,b)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,T,b),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,T,b)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),u.props=l,u.state=T,u.context=b,l=_):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Ii(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=fl(t,e.child,null,n),t.child=fl(t,null,a,n)):at(e,t,a,n),t.memoizedState=u.state,e=t.child):e=da(e,t,n),e}function vd(e,t,a,l){return il(),t.flags|=256,at(e,t,a,l),t.child}var ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hs(e){return{baseLanes:e,cachePool:cf()}}function ms(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function xd(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?Ma(t):La(),(e=Ue)?(e=Ch(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},a=Wo(e),a.return=t,t.child=a,et=t,Ue=null)):e=null,e===null)throw Ra(t);return $s(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,n?(La(),n=t.mode,m=Pi({mode:"hidden",children:m},n),l=nl(l,n,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,Hn(null,l)):(Ma(t),ys(t,m))}var b=e.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(u)t.flags&256?(Ma(t),t.flags&=-257,t=ps(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),m=l.fallback,n=t.mode,l=Pi({mode:"visible",children:l.children},n),m=nl(m,n,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,fl(t,e.child,null,a),l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,t=Hn(null,l));else if(Ma(t),$s(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var N=o.dgst;o=N,l=Error(s(419)),l.stack="",l.digest=o,Nn({value:l,source:null,stack:null}),t=ps(e,t,a)}else if(Fe||Ll(e,t,a,!1),o=(a&e.childLanes)!==0,Fe||o){if(o=Re,o!==null&&(l=lo(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,ll(e,l),mt(o,e,l),os;Js(m)||su(),t=ps(e,t,a)}else Js(m)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ue=Lt(m.nextSibling),et=t,pe=!0,Ta=null,Ot=!1,e!==null&&ef(t,e),t=ys(t,l.children),t.flags|=4096);return t}return n?(La(),m=l.fallback,n=t.mode,b=e.child,N=b.sibling,l=ua(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,N!==null?m=ua(N,m):(m=nl(m,n,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,Hn(null,l),l=t.child,m=e.child.memoizedState,m===null?m=hs(a):(n=m.cachePool,n!==null?(b=Ve._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=cf(),m={baseLanes:m.baseLanes|a,cachePool:n}),l.memoizedState=m,l.childLanes=ms(e,o,a),t.memoizedState=ds,Hn(e.child,l)):(Ma(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function ys(e,t){return t=Pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pi(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function ps(e,t,a){return fl(t,e.child,null,a),e=ys(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Dc(e.return,t,a)}function gs(e,t,a,l,n,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=u)}function Sd(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;l=l.children;var o=Qe.current,m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,H(Qe,o),at(e,t,l,a),l=pe?En:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,a,t);else if(e.tag===19)bd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Yi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),gs(t,!1,n,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Yi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}gs(t,!0,a,null,u,l);break;case"together":gs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function da(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ll(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function vs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ui(e)))}function By(e,t,a){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Da(t,Ve,e.memoizedState.cache),il();break;case 27:case 5:xe(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ma(t),t.flags|=128,null):(a&t.child.childLanes)!==0?xd(e,t,a):(Ma(t),e=da(e,t,a),e!==null?e.sibling:null);Ma(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ll(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Sd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,hd(e,t,a,t.pendingProps);case 24:Da(t,Ve,e.memoizedState.cache)}return da(e,t,a)}function wd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!vs(e,a)&&(t.flags&128)===0)return Fe=!1,By(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,pe&&(t.flags&1048576)!==0&&Po(t,En,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=rl(t.elementType),t.type=e,typeof e=="function")jc(e)?(l=hl(e,l),t.tag=1,t=gd(null,t,e,l,a)):(t.tag=0,t=fs(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===le){t.tag=11,t=od(null,t,e,l,a);break e}else if(n===Z){t.tag=14,t=fd(null,t,e,l,a);break e}}throw t=De(e)||e,Error(s(306,t,""))}}return t;case 0:return fs(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=hl(l,t.pendingProps),gd(e,t,l,n,a);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,Hc(e,t),Un(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Da(t,Ve,l),l!==u.cache&&_c(t,[Ve],a,!0),_n(),l=o.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=vd(e,t,l,a);break e}else if(l!==n){n=Dt(Error(s(424)),t),Nn(n),t=vd(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Lt(e.firstChild),et=t,pe=!0,Ta=null,Ot=!0,a=hf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(il(),l===n){t=da(e,t,a);break e}at(e,t,l,a)}t=t.child}return t;case 26:return Ii(e,t),e===null?(a=Uh(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=yu(I.current).createElement(a),l[Pe]=t,l[st]=e,lt(l,a,e),We(l),t.stateNode=l):t.memoizedState=Uh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&pe&&(l=t.stateNode=Rh(t.type,t.pendingProps,I.current),et=t,Ot=!0,n=Ue,Qa(t.type)?(Ws=n,Ue=Lt(l.firstChild)):Ue=n),at(e,t,t.pendingProps.children,a),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=l=Ue)&&(l=hp(l,t.type,t.pendingProps,Ot),l!==null?(t.stateNode=l,et=t,Ue=Lt(l.firstChild),Ot=!1,n=!0):n=!1),n||Ra(t)),xe(t),n=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,l=u.children,Vs(n,u)?l=null:o!==null&&Vs(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Zc(e,t,Ay,null,null,a),Pn._currentValue=n),Ii(e,t),at(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=Ue)&&(a=mp(a,t.pendingProps,Ot),a!==null?(t.stateNode=a,et=t,Ue=null,e=!0):e=!1),e||Ra(t)),null;case 13:return xd(e,t,a);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=fl(t,null,l,a):at(e,t,l,a),t.child;case 11:return od(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Da(t,t.type,l.value),at(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,cl(t),n=tt(n),l=l(n),t.flags|=1,at(e,t,l,a),t.child;case 14:return fd(e,t,t.type,t.pendingProps,a);case 15:return dd(e,t,t.type,t.pendingProps,a);case 19:return Sd(e,t,a);case 31:return Ly(e,t,a);case 22:return hd(e,t,a,t.pendingProps);case 24:return cl(t),l=tt(Ve),e===null?(n=Mc(),n===null&&(n=Re,u=Uc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},Bc(t),Da(t,Ve,n)):((e.lanes&a)!==0&&(Hc(e,t),Un(t,null,null,a),_n()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Da(t,Ve,l)):(l=u.cache,Da(t,Ve,l),l!==n.cache&&_c(t,[Ve],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ha(e){e.flags|=4}function xs(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Jd())e.flags|=8192;else throw ol=Bi,Lc}else e.flags&=-16777217}function jd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t))if(Jd())e.flags|=8192;else throw ol=Bi,Lc}function eu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?eo():536870912,e.lanes|=t,Fl|=t)}function qn(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Hy(e,t,a){var l=t.pendingProps;switch(Cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ra(Ve),k(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ml(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tc())),Oe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(ha(t),u!==null?(Oe(t),jd(t,u)):(Oe(t),xs(t,n,null,l,a))):u?u!==e.memoizedState?(ha(t),Oe(t),jd(t,u)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Oe(t),xs(t,n,e,l,a)),null;case 27:if(Ne(t),a=I.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}e=q.current,Ml(t)?tf(t):(e=Rh(n,l,a),t.stateNode=e,ha(t))}return Oe(t),null;case 5:if(Ne(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}if(u=q.current,Ml(t))tf(t);else{var o=yu(I.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}u[Pe]=t,u[st]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(lt(u,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Oe(t),xs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=I.current,Ml(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=et,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||xh(e.nodeValue,a)),e||Ra(t,!0)}else e=yu(e).createTextNode(l),e[Pe]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ml(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Pe]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ml(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Pe]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),eu(t,t.updateQueue),Oe(t),null);case 4:return k(),e===null&&Ys(t.stateNode.containerInfo),Oe(t),null;case 10:return ra(t.type),Oe(t),null;case 19:if(R(Qe),l=t.memoizedState,l===null)return Oe(t),null;if(n=(t.flags&128)!==0,u=l.rendering,u===null)if(n)qn(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Yi(e),u!==null){for(t.flags|=128,qn(l,!1),e=u.updateQueue,t.updateQueue=e,eu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)$o(a,e),a=a.sibling;return H(Qe,Qe.current&1|2),pe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&pt()>iu&&(t.flags|=128,n=!0,qn(l,!1),t.lanes=4194304)}else{if(!n)if(e=Yi(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,eu(t,e),qn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pe)return Oe(t),null}else 2*pt()-l.renderingStartTime>iu&&a!==536870912&&(t.flags|=128,n=!0,qn(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=Qe.current,H(Qe,n?a&1|2:a&1),pe&&ca(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return wt(t),Gc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&eu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&R(sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(Ve),Oe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function qy(e,t){switch(Cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(Ve),k(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(s(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Qe),null;case 4:return k(),null;case 10:return ra(t.type),null;case 22:case 23:return wt(t),Gc(),e!==null&&R(sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(Ve),null;case 25:return null;default:return null}}function zd(e,t){switch(Cc(t),t.tag){case 3:ra(Ve),k();break;case 26:case 27:case 5:Ne(t);break;case 4:k();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:R(Qe);break;case 10:ra(t.type);break;case 22:case 23:wt(t),Gc(),e!==null&&R(sl);break;case 24:ra(Ve)}}function kn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,o=a.inst;l=u(),o.destroy=l}a=a.next}while(a!==n)}}catch(m){je(t,t.return,m)}}function Ba(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var o=l.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,n=t;var b=a,N=m;try{N()}catch(_){je(n,b,_)}}}l=l.next}while(l!==u)}}catch(_){je(t,t.return,_)}}function Ed(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yf(t,a)}catch(l){je(e,e.return,l)}}}function Nd(e,t,a){a.props=hl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function Yn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){je(e,t,n)}}function $t(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){je(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){je(e,t,n)}else a.current=null}function Cd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){je(e,e.return,n)}}function bs(e,t,a){try{var l=e.stateNode;cp(l,e.type,a,t),l[st]=t}catch(n){je(e,e.return,n)}}function Ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ws(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=na));else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ws(e,t,a),e=e.sibling;e!==null;)ws(e,t,a),e=e.sibling}function tu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tu(e,t,a),e=e.sibling;e!==null;)tu(e,t,a),e=e.sibling}function Td(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t,l,a),t[Pe]=e,t[st]=a}catch(u){je(e,e.return,u)}}var ma=!1,Je=!1,js=!1,Rd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function ky(e,t){if(e=e.containerInfo,Qs=wu,e=Yo(e),pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var o=0,m=-1,b=-1,N=0,_=0,M=e,A=null;t:for(;;){for(var T;M!==a||n!==0&&M.nodeType!==3||(m=o+n),M!==u||l!==0&&M.nodeType!==3||(b=o+l),M.nodeType===3&&(o+=M.nodeValue.length),(T=M.firstChild)!==null;)A=M,M=T;for(;;){if(M===e)break t;if(A===a&&++N===n&&(m=o),A===u&&++_===l&&(b=o),(T=M.nextSibling)!==null)break;M=A,A=M.parentNode}M=T}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zs={focusedElem:e,selectionRange:a},wu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var V=hl(a.type,n);e=l.getSnapshotBeforeUpdate(V,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){je(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Fs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Dd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&kn(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){je(a,a.return,o)}else{var n=hl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){je(a,a.return,o)}}l&64&&Ed(a),l&512&&Yn(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{yf(e,t)}catch(o){je(a,a.return,o)}}break;case 27:t===null&&l&4&&Td(a);case 26:case 5:pa(e,a),t===null&&l&4&&Cd(a),l&512&&Yn(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&Od(e,a);break;case 13:pa(e,a),l&4&&Md(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Jy.bind(null,a),yp(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||Je,n=ma;var u=Je;ma=l,(Je=t)&&!u?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=n,Je=u}break;case 30:break;default:pa(e,a)}}function _d(e){var t=e.alternate;t!==null&&(e.alternate=null,_d(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,ot=!1;function ya(e,t,a){for(a=a.child;a!==null;)Ud(e,t,a),a=a.sibling}function Ud(e,t,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(fn,a)}catch{}switch(a.tag){case 26:Je||$t(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Je||$t(a,t);var l=Me,n=ot;Qa(a.type)&&(Me=a.stateNode,ot=!1),ya(e,t,a),$n(a.stateNode),Me=l,ot=n;break;case 5:Je||$t(a,t);case 6:if(l=Me,n=ot,Me=null,ya(e,t,a),Me=l,ot=n,Me!==null)if(ot)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(u){je(a,t,u)}else try{Me.removeChild(a.stateNode)}catch(u){je(a,t,u)}break;case 18:Me!==null&&(ot?(e=Me,Eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),an(e)):Eh(Me,a.stateNode));break;case 4:l=Me,n=ot,Me=a.stateNode.containerInfo,ot=!0,ya(e,t,a),Me=l,ot=n;break;case 0:case 11:case 14:case 15:Ba(2,a,t),Je||Ba(4,a,t),ya(e,t,a);break;case 1:Je||($t(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Nd(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:Je=(l=Je)||a.memoizedState!==null,ya(e,t,a),Je=l;break;default:ya(e,t,a)}}function Od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{an(e)}catch(a){je(t,t.return,a)}}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{an(e)}catch(a){je(t,t.return,a)}}function Yy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rd),t;default:throw Error(s(435,e.tag))}}function au(e,t){var a=Yy(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=$y.bind(null,e,l);l.then(n,n)}})}function ft(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,o=t,m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Qa(m.type)){Me=m.stateNode,ot=!1;break e}break;case 5:Me=m.stateNode,ot=!1;break e;case 3:case 4:Me=m.stateNode.containerInfo,ot=!0;break e}m=m.return}if(Me===null)throw Error(s(160));Ud(u,o,n),Me=null,ot=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ld(t,e),t=t.sibling}var Qt=null;function Ld(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),l&4&&(Ba(3,e,e.return),kn(3,e),Ba(5,e,e.return));break;case 1:ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Qt;if(ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[mn]||u[Pe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),lt(u,l,a),u[Pe]=e,We(u),l=u;break e;case"link":var o=Lh("link","href",n).get(l+(a.href||""));if(o){for(var m=0;m<o.length;m++)if(u=o[m],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(m,1);break t}}u=n.createElement(l),lt(u,l,a),n.head.appendChild(u);break;case"meta":if(o=Lh("meta","content",n).get(l+(a.content||""))){for(m=0;m<o.length;m++)if(u=o[m],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(m,1);break t}}u=n.createElement(l),lt(u,l,a),n.head.appendChild(u);break;default:throw Error(s(468,l))}u[Pe]=e,We(u),l=u}e.stateNode=l}else Bh(n,e.type,e.stateNode);else e.stateNode=Mh(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?Bh(n,e.type,e.stateNode):Mh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&bs(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),a!==null&&l&4&&bs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),e.flags&32){n=e.stateNode;try{El(n,"")}catch(V){je(e,e.return,V)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,bs(e,n,a!==null?a.memoizedProps:n)),l&1024&&(js=!0);break;case 6:if(ft(t,e),dt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(V){je(e,e.return,V)}}break;case 3:if(vu=null,n=Qt,Qt=pu(t.containerInfo),ft(t,e),Qt=n,dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{an(t.containerInfo)}catch(V){je(e,e.return,V)}js&&(js=!1,Bd(e));break;case 4:l=Qt,Qt=pu(e.stateNode.containerInfo),ft(t,e),dt(e),Qt=l;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(nu=pt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 22:n=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,N=ma,_=Je;if(ma=N||n,Je=_||b,ft(t,e),Je=_,ma=N,dt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||b||ma||Je||ml(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(u=b.stateNode,n)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=b.stateNode;var M=b.memoizedProps.style,A=M!=null&&M.hasOwnProperty("display")?M.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(V){je(b,b.return,V)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(V){je(b,b.return,V)}}}else if(t.tag===18){if(a===null){b=t;try{var T=b.stateNode;n?Nh(T,!0):Nh(b.stateNode,!1)}catch(V){je(b,b.return,V)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,au(e,a))));break;case 19:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Ad(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var n=a.stateNode,u=Ss(e);tu(e,u,n);break;case 5:var o=a.stateNode;a.flags&32&&(El(o,""),a.flags&=-33);var m=Ss(e);tu(e,m,o);break;case 3:case 4:var b=a.stateNode.containerInfo,N=Ss(e);ws(e,N,b);break;default:throw Error(s(161))}}catch(_){je(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dd(e,t.alternate,t),t=t.sibling}function ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ba(4,t,t.return),ml(t);break;case 1:$t(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Nd(t,t.return,a),ml(t);break;case 27:$n(t.stateNode);case 26:case 5:$t(t,t.return),ml(t);break;case 22:t.memoizedState===null&&ml(t);break;case 30:ml(t);break;default:ml(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,o=u.flags;switch(u.tag){case 0:case 11:case 15:ga(n,u,a),kn(4,u);break;case 1:if(ga(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){je(l,l.return,N)}if(l=u,n=l.updateQueue,n!==null){var m=l.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)mf(b[n],m)}catch(N){je(l,l.return,N)}}a&&o&64&&Ed(u),Yn(u,u.return);break;case 27:Td(u);case 26:case 5:ga(n,u,a),a&&l===null&&o&4&&Cd(u),Yn(u,u.return);break;case 12:ga(n,u,a);break;case 31:ga(n,u,a),a&&o&4&&Od(n,u);break;case 13:ga(n,u,a),a&&o&4&&Md(n,u);break;case 22:u.memoizedState===null&&ga(n,u,a),Yn(u,u.return);break;case 30:break;default:ga(n,u,a)}t=t.sibling}}function zs(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Cn(a))}function Es(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cn(e))}function Zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(e,t,a,l),t=t.sibling}function Hd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,l),n&2048&&kn(9,t);break;case 1:Zt(e,t,a,l);break;case 3:Zt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cn(e)));break;case 12:if(n&2048){Zt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,o=u.id,m=u.onPostCommit;typeof m=="function"&&m(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){je(t,t.return,b)}}else Zt(e,t,a,l);break;case 31:Zt(e,t,a,l);break;case 13:Zt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,o=t.alternate,t.memoizedState!==null?u._visibility&2?Zt(e,t,a,l):Gn(e,t):u._visibility&2?Zt(e,t,a,l):(u._visibility|=2,Zl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&zs(o,t);break;case 24:Zt(e,t,a,l),n&2048&&Es(t.alternate,t);break;default:Zt(e,t,a,l)}}function Zl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,o=t,m=a,b=l,N=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(u,o,m,b,n),kn(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?Zl(u,o,m,b,n):Gn(u,o):(_._visibility|=2,Zl(u,o,m,b,n)),n&&N&2048&&zs(o.alternate,o);break;case 24:Zl(u,o,m,b,n),n&&N&2048&&Es(o.alternate,o);break;default:Zl(u,o,m,b,n)}t=t.sibling}}function Gn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Gn(a,l),n&2048&&zs(l.alternate,l);break;case 24:Gn(a,l),n&2048&&Es(l.alternate,l);break;default:Gn(a,l)}t=t.sibling}}var Xn=8192;function Vl(e,t,a){if(e.subtreeFlags&Xn)for(e=e.child;e!==null;)qd(e,t,a),e=e.sibling}function qd(e,t,a){switch(e.tag){case 26:Vl(e,t,a),e.flags&Xn&&e.memoizedState!==null&&Cp(a,Qt,e.memoizedState,e.memoizedProps);break;case 5:Vl(e,t,a);break;case 3:case 4:var l=Qt;Qt=pu(e.stateNode.containerInfo),Vl(e,t,a),Qt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Xn,Xn=16777216,Vl(e,t,a),Xn=l):Vl(e,t,a));break;default:Vl(e,t,a)}}function kd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Qn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Gd(l,e)}kd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 0:case 11:case 15:Qn(e),e.flags&2048&&Ba(9,e,e.return);break;case 3:Qn(e);break;case 12:Qn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lu(e)):Qn(e);break;default:Qn(e)}}function lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Gd(l,e)}kd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ba(8,t,t.return),lu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,lu(t));break;default:lu(t)}e=e.sibling}}function Gd(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:Ba(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Cn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var n=l.sibling,u=l.return;if(_d(l),l===a){Ie=null;break e}if(n!==null){n.return=u,Ie=n;break e}Ie=u}}}var Gy={getCacheForType:function(e){var t=tt(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return tt(Ve).controller.signal}},Xy=typeof WeakMap=="function"?WeakMap:Map,be=0,Re=null,de=null,me=0,we=0,jt=null,Ha=!1,Kl=!1,Ns=!1,va=0,Ge=0,qa=0,yl=0,Cs=0,zt=0,Fl=0,Zn=null,ht=null,As=!1,nu=0,Xd=0,iu=1/0,uu=null,ka=null,$e=0,Ya=null,Jl=null,xa=0,Ts=0,Rs=null,Qd=null,Vn=0,Ds=null;function Et(){return(be&2)!==0&&me!==0?me&-me:D.T!==null?Bs():no()}function Zd(){if(zt===0)if((me&536870912)===0||pe){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),zt=e}else zt=536870912;return e=St.current,e!==null&&(e.flags|=32),zt}function mt(e,t,a){(e===Re&&(we===2||we===9)||e.cancelPendingCommit!==null)&&($l(e,0),Ga(e,me,zt,!1)),hn(e,a),((be&2)===0||e!==Re)&&(e===Re&&((be&2)===0&&(yl|=a),Ge===4&&Ga(e,me,zt,!1)),Wt(e))}function Vd(e,t,a){if((be&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dn(e,t),n=l?Vy(e,t):Us(e,t,!0),u=l;do{if(n===0){Kl&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Qy(a)){n=Us(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;n=Zn;var b=m.current.memoizedState.isDehydrated;if(b&&($l(m,o).flags|=256),o=Us(m,o,!1),o!==2){if(Ns&&!b){m.errorRecoveryDisabledLanes|=u,yl|=u,n=4;break e}u=ht,ht=n,u!==null&&(ht===null?ht=u:ht.push.apply(ht,u))}n=o}if(u=!1,n!==2)continue}}if(n===1){$l(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,zt,!Ha);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=nu+300-pt(),10<n)){if(Ga(l,t,zt,!Ha),pi(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=jh(Kd.bind(null,l,a,ht,uu,As,t,zt,yl,Fl,Ha,u,"Throttled",-0,0),n);break e}Kd(l,a,ht,uu,As,t,zt,yl,Fl,Ha,u,null,-0,0)}}break}while(!0);Wt(e)}function Kd(e,t,a,l,n,u,o,m,b,N,_,M,A,T){if(e.timeoutHandle=-1,M=t.subtreeFlags,M&8192||(M&16785408)===16785408){M={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},qd(t,u,M);var V=(u&62914560)===u?nu-pt():(u&4194048)===u?Xd-pt():0;if(V=Ap(M,V),V!==null){xa=u,e.cancelPendingCommit=V(th.bind(null,e,t,u,a,l,n,o,m,b,_,M,null,A,T)),Ga(e,u,o,!N);return}}th(e,t,u,a,l,n,o,m,b)}function Qy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!xt(u(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,a,l){t&=~Cs,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-vt(n),o=1<<u;l[u]=-1,n&=~o}a!==0&&to(e,a,t)}function cu(){return(be&6)===0?(Kn(0),!1):!0}function _s(){if(de!==null){if(we===0)var e=de.return;else e=de,sa=ul=null,Fc(e),kl=null,Tn=0,e=de;for(;e!==null;)zd(e.alternate,e),e=e.return;de=null}}function $l(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,op(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,_s(),Re=e,de=a=ua(e.current,null),me=t,we=0,jt=null,Ha=!1,Kl=dn(e,t),Ns=!1,Fl=zt=Cs=yl=qa=Ge=0,ht=Zn=null,As=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-vt(l),u=1<<n;t|=e[n],l&=~u}return va=t,Ai(),a}function Fd(e,t){ce=null,D.H=Bn,t===ql||t===Li?(t=of(),we=3):t===Lc?(t=of(),we=4):we=t===os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,de===null&&(Ge=1,$i(e,Dt(t,e.current)))}function Jd(){var e=St.current;return e===null?!0:(me&4194048)===me?Mt===null:(me&62914560)===me||(me&536870912)!==0?e===Mt:!1}function $d(){var e=D.H;return D.H=Bn,e===null?Bn:e}function Wd(){var e=D.A;return D.A=Gy,e}function su(){Ge=4,Ha||(me&4194048)!==me&&St.current!==null||(Kl=!0),(qa&134217727)===0&&(yl&134217727)===0||Re===null||Ga(Re,me,zt,!1)}function Us(e,t,a){var l=be;be|=2;var n=$d(),u=Wd();(Re!==e||me!==t)&&(uu=null,$l(e,t)),t=!1;var o=Ge;e:do try{if(we!==0&&de!==null){var m=de,b=jt;switch(we){case 8:_s(),o=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var N=we;if(we=0,jt=null,Wl(e,m,b,N),a&&Kl){o=0;break e}break;default:N=we,we=0,jt=null,Wl(e,m,b,N)}}Zy(),o=Ge;break}catch(_){Fd(e,_)}while(!0);return t&&e.shellSuspendCounter++,sa=ul=null,be=l,D.H=n,D.A=u,de===null&&(Re=null,me=0,Ai()),o}function Zy(){for(;de!==null;)Id(de)}function Vy(e,t){var a=be;be|=2;var l=$d(),n=Wd();Re!==e||me!==t?(uu=null,iu=pt()+500,$l(e,t)):Kl=dn(e,t);e:do try{if(we!==0&&de!==null){t=de;var u=jt;t:switch(we){case 1:we=0,jt=null,Wl(e,t,u,1);break;case 2:case 9:if(sf(u)){we=0,jt=null,Pd(t);break}t=function(){we!==2&&we!==9||Re!==e||(we=7),Wt(e)},u.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:sf(u)?(we=0,jt=null,Pd(t)):(we=0,jt=null,Wl(e,t,u,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var m=de;if(o?Hh(o):m.stateNode.complete){we=0,jt=null;var b=m.sibling;if(b!==null)de=b;else{var N=m.return;N!==null?(de=N,ru(N)):de=null}break t}}we=0,jt=null,Wl(e,t,u,5);break;case 6:we=0,jt=null,Wl(e,t,u,6);break;case 8:_s(),Ge=6;break e;default:throw Error(s(462))}}Ky();break}catch(_){Fd(e,_)}while(!0);return sa=ul=null,D.H=l,D.A=n,be=a,de!==null?0:(Re=null,me=0,Ai(),Ge)}function Ky(){for(;de!==null&&!p0();)Id(de)}function Id(e){var t=wd(e.alternate,e,va);e.memoizedProps=e.pendingProps,t===null?ru(e):de=t}function Pd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pd(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=pd(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Fc(t);default:zd(a,t),t=de=$o(t,va),t=wd(a,t,va)}e.memoizedProps=e.pendingProps,t===null?ru(e):de=t}function Wl(e,t,a,l){sa=ul=null,Fc(t),kl=null,Tn=0;var n=t.return;try{if(My(e,n,t,a,me)){Ge=1,$i(e,Dt(a,e.current)),de=null;return}}catch(u){if(n!==null)throw de=n,u;Ge=1,$i(e,Dt(a,e.current)),de=null;return}t.flags&32768?(pe||l===1?e=!0:Kl||(me&536870912)!==0?e=!1:(Ha=e=!0,(l===2||l===9||l===3||l===6)&&(l=St.current,l!==null&&l.tag===13&&(l.flags|=16384))),eh(t,e)):ru(t)}function ru(e){var t=e;do{if((t.flags&32768)!==0){eh(t,Ha);return}e=t.return;var a=Hy(t.alternate,t,va);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Ge===0&&(Ge=5)}function eh(e,t){do{var a=qy(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Ge=6,de=null}function th(e,t,a,l,n,u,o,m,b){e.cancelPendingCommit=null;do ou();while($e!==0);if((be&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Sc,N0(e,a,u,o,m,b),e===Re&&(de=Re=null,me=0),Jl=t,Ya=e,xa=a,Ts=u,Rs=n,Qd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wy(di,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,n=G.p,G.p=2,o=be,be|=4;try{ky(e,t,a)}finally{be=o,G.p=n,D.T=l}}$e=1,ah(),lh(),nh()}}function ah(){if($e===1){$e=0;var e=Ya,t=Jl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=G.p;G.p=2;var n=be;be|=4;try{Ld(t,e);var u=Zs,o=Yo(e.containerInfo),m=u.focusedElem,b=u.selectionRange;if(o!==m&&m&&m.ownerDocument&&ko(m.ownerDocument.documentElement,m)){if(b!==null&&pc(m)){var N=b.start,_=b.end;if(_===void 0&&(_=N),"selectionStart"in m)m.selectionStart=N,m.selectionEnd=Math.min(_,m.value.length);else{var M=m.ownerDocument||document,A=M&&M.defaultView||window;if(A.getSelection){var T=A.getSelection(),V=m.textContent.length,ee=Math.min(b.start,V),Te=b.end===void 0?ee:Math.min(b.end,V);!T.extend&&ee>Te&&(o=Te,Te=ee,ee=o);var j=qo(m,ee),w=qo(m,Te);if(j&&w&&(T.rangeCount!==1||T.anchorNode!==j.node||T.anchorOffset!==j.offset||T.focusNode!==w.node||T.focusOffset!==w.offset)){var E=M.createRange();E.setStart(j.node,j.offset),T.removeAllRanges(),ee>Te?(T.addRange(E),T.extend(w.node,w.offset)):(E.setEnd(w.node,w.offset),T.addRange(E))}}}}for(M=[],T=m;T=T.parentNode;)T.nodeType===1&&M.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<M.length;m++){var U=M[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}wu=!!Qs,Zs=Qs=null}finally{be=n,G.p=l,D.T=a}}e.current=t,$e=2}}function lh(){if($e===2){$e=0;var e=Ya,t=Jl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=G.p;G.p=2;var n=be;be|=4;try{Dd(e,t.alternate,t)}finally{be=n,G.p=l,D.T=a}}$e=3}}function nh(){if($e===4||$e===3){$e=0,g0();var e=Ya,t=Jl,a=xa,l=Qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,Jl=Ya=null,ih(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ka=null),Wu(a),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(fn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,n=G.p,G.p=2,D.T=null;try{for(var u=e.onRecoverableError,o=0;o<l.length;o++){var m=l[o];u(m.value,{componentStack:m.stack})}}finally{D.T=t,G.p=n}}(xa&3)!==0&&ou(),Wt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Ds?Vn++:(Vn=0,Ds=e):Vn=0,Kn(0)}}function ih(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cn(t)))}function ou(){return ah(),lh(),nh(),uh()}function uh(){if($e!==5)return!1;var e=Ya,t=Ts;Ts=0;var a=Wu(xa),l=D.T,n=G.p;try{G.p=32>a?32:a,D.T=null,a=Rs,Rs=null;var u=Ya,o=xa;if($e=0,Jl=Ya=null,xa=0,(be&6)!==0)throw Error(s(331));var m=be;if(be|=4,Yd(u.current),Hd(u,u.current,o,a),be=m,Kn(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(fn,u)}catch{}return!0}finally{G.p=n,D.T=l,ih(e,t)}}function ch(e,t,a){t=Dt(a,t),t=rs(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(hn(e,2),Wt(e))}function je(e,t,a){if(e.tag===3)ch(e,e,a);else for(;t!==null;){if(t.tag===3){ch(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ka===null||!ka.has(l))){e=Dt(a,e),a=sd(2),l=Oa(t,a,2),l!==null&&(rd(a,l,t,e),hn(l,2),Wt(l));break}}t=t.return}}function Os(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Xy;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Ns=!0,n.add(a),e=Fy.bind(null,e,t,a),t.then(e,e))}function Fy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Re===e&&(me&a)===a&&(Ge===4||Ge===3&&(me&62914560)===me&&300>pt()-nu?(be&2)===0&&$l(e,0):Cs|=a,Fl===me&&(Fl=0)),Wt(e)}function sh(e,t){t===0&&(t=eo()),e=ll(e,t),e!==null&&(hn(e,t),Wt(e))}function Jy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),sh(e,a)}function $y(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),sh(e,a)}function Wy(e,t){return vl(e,t)}var fu=null,Il=null,Ms=!1,du=!1,Ls=!1,Xa=0;function Wt(e){e!==Il&&e.next===null&&(Il===null?fu=Il=e:Il=Il.next=e),du=!0,Ms||(Ms=!0,Py())}function Kn(e,t){if(!Ls&&du){Ls=!0;do for(var a=!1,l=fu;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var o=l.suspendedLanes,m=l.pingedLanes;u=(1<<31-vt(42|e)+1)-1,u&=n&~(o&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,dh(l,u))}else u=me,u=pi(l,l===Re?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||dn(l,u)||(a=!0,dh(l,u));l=l.next}while(a);Ls=!1}}function Iy(){rh()}function rh(){du=Ms=!1;var e=0;Xa!==0&&rp()&&(e=Xa);for(var t=pt(),a=null,l=fu;l!==null;){var n=l.next,u=oh(l,t);u===0?(l.next=null,a===null?fu=n:a.next=n,n===null&&(Il=a)):(a=l,(e!==0||(u&3)!==0)&&(du=!0)),l=n}$e!==0&&$e!==5||Kn(e),Xa!==0&&(Xa=0)}function oh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-vt(u),m=1<<o,b=n[o];b===-1?((m&a)===0||(m&l)!==0)&&(n[o]=E0(m,t)):b<=t&&(e.expiredLanes|=m),u&=~m}if(t=Re,a=me,a=pi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Fu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Fu(l),Wu(a)){case 2:case 8:a=Ir;break;case 32:a=di;break;case 268435456:a=Pr;break;default:a=di}return l=fh.bind(null,e),a=vl(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Fu(l),e.callbackPriority=2,e.callbackNode=null,2}function fh(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ou()&&e.callbackNode!==a)return null;var l=me;return l=pi(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Vd(e,l,t),oh(e,pt()),e.callbackNode!=null&&e.callbackNode===a?fh.bind(null,e):null)}function dh(e,t){if(ou())return null;Vd(e,t,!0)}function Py(){fp(function(){(be&6)!==0?vl(Wr,Iy):rh()})}function Bs(){if(Xa===0){var e=Bl;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),Xa=e}return Xa}function hh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bi(""+e)}function mh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ep(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=hh((n[st]||null).action),o=l.submitter;o&&(t=(t=o[st]||null)?hh(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var m=new zi("action","action",null,l,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xa!==0){var b=o?mh(n,o):new FormData(n);ls(a,{pending:!0,data:b,method:n.method,action:u},null,b)}}else typeof u=="function"&&(m.preventDefault(),b=o?mh(n,o):new FormData(n),ls(a,{pending:!0,data:b,method:n.method,action:u},u,b))},currentTarget:n}]})}}for(var Hs=0;Hs<bc.length;Hs++){var qs=bc[Hs],tp=qs.toLowerCase(),ap=qs[0].toUpperCase()+qs.slice(1);Xt(tp,"on"+ap)}Xt(Qo,"onAnimationEnd"),Xt(Zo,"onAnimationIteration"),Xt(Vo,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(vy,"onTransitionRun"),Xt(xy,"onTransitionStart"),Xt(by,"onTransitionCancel"),Xt(Ko,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="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(" "),lp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fn));function yh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var o=l.length-1;0<=o;o--){var m=l[o],b=m.instance,N=m.currentTarget;if(m=m.listener,b!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=N;try{u(n)}catch(_){Ci(_)}n.currentTarget=null,u=b}else for(o=0;o<l.length;o++){if(m=l[o],b=m.instance,N=m.currentTarget,m=m.listener,b!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=N;try{u(n)}catch(_){Ci(_)}n.currentTarget=null,u=b}}}}function he(e,t){var a=t[Iu];a===void 0&&(a=t[Iu]=new Set);var l=e+"__bubble";a.has(l)||(ph(t,e,2,!1),a.add(l))}function ks(e,t,a){var l=0;t&&(l|=4),ph(a,e,l,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[hu]){e[hu]=!0,co.forEach(function(a){a!=="selectionchange"&&(lp.has(a)||ks(a,!1,e),ks(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,ks("selectionchange",!1,t))}}function ph(e,t,a,l){switch(Zh(t)){case 2:var n=Dp;break;case 8:n=_p;break;default:n=ar}a=n.bind(null,t,a,e),n=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Gs(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var m=l.stateNode.containerInfo;if(m===n)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;m!==null;){if(o=bl(m),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=u=o;continue e}m=m.parentNode}}l=l.return}bo(function(){var N=u,_=ic(a),M=[];e:{var A=Fo.get(e);if(A!==void 0){var T=zi,V=e;switch(e){case"keypress":if(wi(a)===0)break e;case"keydown":case"keyup":T=$0;break;case"focusin":V="focus",T=fc;break;case"focusout":V="blur",T=fc;break;case"beforeblur":case"afterblur":T=fc;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":T=jo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=H0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=P0;break;case Qo:case Zo:case Vo:T=Y0;break;case Ko:T=ty;break;case"scroll":case"scrollend":T=L0;break;case"wheel":T=ly;break;case"copy":case"cut":case"paste":T=X0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Eo;break;case"toggle":case"beforetoggle":T=iy}var ee=(t&4)!==0,Te=!ee&&(e==="scroll"||e==="scrollend"),j=ee?A!==null?A+"Capture":null:A;ee=[];for(var w=N,E;w!==null;){var U=w;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||j===null||(U=pn(w,j),U!=null&&ee.push(Jn(w,U,E))),Te)break;w=w.return}0<ee.length&&(A=new T(A,V,null,a,_),M.push({event:A,listeners:ee}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",A&&a!==nc&&(V=a.relatedTarget||a.fromElement)&&(bl(V)||V[xl]))break e;if((T||A)&&(A=_.window===_?_:(A=_.ownerDocument)?A.defaultView||A.parentWindow:window,T?(V=a.relatedTarget||a.toElement,T=N,V=V?bl(V):null,V!==null&&(Te=h(V),ee=V.tag,V!==Te||ee!==5&&ee!==27&&ee!==6)&&(V=null)):(T=null,V=N),T!==V)){if(ee=jo,U="onMouseLeave",j="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Eo,U="onPointerLeave",j="onPointerEnter",w="pointer"),Te=T==null?A:yn(T),E=V==null?A:yn(V),A=new ee(U,w+"leave",T,a,_),A.target=Te,A.relatedTarget=E,U=null,bl(_)===N&&(ee=new ee(j,w+"enter",V,a,_),ee.target=E,ee.relatedTarget=Te,U=ee),Te=U,T&&V)t:{for(ee=np,j=T,w=V,E=0,U=j;U;U=ee(U))E++;U=0;for(var P=w;P;P=ee(P))U++;for(;0<E-U;)j=ee(j),E--;for(;0<U-E;)w=ee(w),U--;for(;E--;){if(j===w||w!==null&&j===w.alternate){ee=j;break t}j=ee(j),w=ee(w)}ee=null}else ee=null;T!==null&&gh(M,A,T,ee,!1),V!==null&&Te!==null&&gh(M,Te,V,ee,!0)}}e:{if(A=N?yn(N):window,T=A.nodeName&&A.nodeName.toLowerCase(),T==="select"||T==="input"&&A.type==="file")var ge=Uo;else if(Do(A))if(Oo)ge=yy;else{ge=hy;var $=dy}else T=A.nodeName,!T||T.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?N&&lc(N.elementType)&&(ge=Uo):ge=my;if(ge&&(ge=ge(e,N))){_o(M,ge,a,_);break e}$&&$(e,A,N),e==="focusout"&&N&&A.type==="number"&&N.memoizedProps.value!=null&&ac(A,"number",A.value)}switch($=N?yn(N):window,e){case"focusin":(Do($)||$.contentEditable==="true")&&(Tl=$,gc=N,zn=null);break;case"focusout":zn=gc=Tl=null;break;case"mousedown":vc=!0;break;case"contextmenu":case"mouseup":case"dragend":vc=!1,Go(M,a,_);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":Go(M,a,_)}var se;if(hc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Al?To(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(No&&a.locale!=="ko"&&(Al||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Al&&(se=So()):(Ca=_,sc="value"in Ca?Ca.value:Ca.textContent,Al=!0)),$=mu(N,ye),0<$.length&&(ye=new zo(ye,e,null,a,_),M.push({event:ye,listeners:$}),se?ye.data=se:(se=Ro(a),se!==null&&(ye.data=se)))),(se=cy?sy(e,a):ry(e,a))&&(ye=mu(N,"onBeforeInput"),0<ye.length&&($=new zo("onBeforeInput","beforeinput",null,a,_),M.push({event:$,listeners:ye}),$.data=se)),ep(M,e,N,a,_)}yh(M,t)})}function Jn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function mu(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=pn(e,a),n!=null&&l.unshift(Jn(e,n,u)),n=pn(e,t),n!=null&&l.push(Jn(e,n,u))),e.tag===3)return l;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gh(e,t,a,l,n){for(var u=t._reactName,o=[];a!==null&&a!==l;){var m=a,b=m.alternate,N=m.stateNode;if(m=m.tag,b!==null&&b===l)break;m!==5&&m!==26&&m!==27||N===null||(b=N,n?(N=pn(a,u),N!=null&&o.unshift(Jn(a,N,b))):n||(N=pn(a,u),N!=null&&o.push(Jn(a,N,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,up=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(ip,`
9
+ `).replace(up,"")}function xh(e,t){return t=vh(t),vh(e)===t}function Ae(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||El(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&El(e,""+l);break;case"className":vi(e,"class",l);break;case"tabIndex":vi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,a,l);break;case"style":vo(e,l,u);break;case"data":if(t!=="object"){vi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=bi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=bi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=bi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),gi(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=O0.get(a)||a,gi(e,a,l))}}function Xs(e,t,a,l,n,u){switch(a){case"style":vo(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?El(e,l):(typeof l=="number"||typeof l=="bigint")&&El(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!so.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[st]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):gi(e,a,l)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ae(e,t,u,o,a,null)}}n&&Ae(e,t,"srcSet",a.srcSet,a,null),l&&Ae(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var m=u=o=n=null,b=null,N=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":n=_;break;case"type":o=_;break;case"checked":b=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:Ae(e,t,l,_,a,null)}}mo(e,u,m,b,N,o,n,!1);return;case"select":he("invalid",e),l=o=u=null;for(n in a)if(a.hasOwnProperty(n)&&(m=a[n],m!=null))switch(n){case"value":u=m;break;case"defaultValue":o=m;break;case"multiple":l=m;default:Ae(e,t,n,m,a,null)}t=u,a=o,e.multiple=!!l,t!=null?zl(e,!!l,t,!1):a!=null&&zl(e,!!l,a,!0);return;case"textarea":he("invalid",e),u=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(m=a[o],m!=null))switch(o){case"value":l=m;break;case"defaultValue":n=m;break;case"children":u=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Ae(e,t,o,m,a,null)}po(e,l,n,u);return;case"option":for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null)&&(b==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ae(e,t,b,l,a,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Fn.length;l++)he(Fn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ae(e,t,N,l,a,null)}return;default:if(lc(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&Xs(e,t,_,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&Ae(e,t,m,l,a,null))}function cp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,o=null,m=null,b=null,N=null,_=null;for(T in a){var M=a[T];if(a.hasOwnProperty(T)&&M!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":b=M;default:l.hasOwnProperty(T)||Ae(e,t,T,null,l,M)}}for(var A in l){var T=l[A];if(M=a[A],l.hasOwnProperty(A)&&(T!=null||M!=null))switch(A){case"type":u=T;break;case"name":n=T;break;case"checked":N=T;break;case"defaultChecked":_=T;break;case"value":o=T;break;case"defaultValue":m=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(137,t));break;default:T!==M&&Ae(e,t,A,T,l,M)}}tc(e,o,m,b,N,_,u,n);return;case"select":T=o=m=A=null;for(u in a)if(b=a[u],a.hasOwnProperty(u)&&b!=null)switch(u){case"value":break;case"multiple":T=b;default:l.hasOwnProperty(u)||Ae(e,t,u,null,l,b)}for(n in l)if(u=l[n],b=a[n],l.hasOwnProperty(n)&&(u!=null||b!=null))switch(n){case"value":A=u;break;case"defaultValue":m=u;break;case"multiple":o=u;default:u!==b&&Ae(e,t,n,u,l,b)}t=m,a=o,l=T,A!=null?zl(e,!!a,A,!1):!!l!=!!a&&(t!=null?zl(e,!!a,t,!0):zl(e,!!a,a?[]:"",!1));return;case"textarea":T=A=null;for(m in a)if(n=a[m],a.hasOwnProperty(m)&&n!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,l,n)}for(o in l)if(n=l[o],u=a[o],l.hasOwnProperty(o)&&(n!=null||u!=null))switch(o){case"value":A=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Ae(e,t,o,n,l,u)}yo(e,A,T);return;case"option":for(var V in a)A=a[V],a.hasOwnProperty(V)&&A!=null&&!l.hasOwnProperty(V)&&(V==="selected"?e.selected=!1:Ae(e,t,V,null,l,A));for(b in l)A=l[b],T=a[b],l.hasOwnProperty(b)&&A!==T&&(A!=null||T!=null)&&(b==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ae(e,t,b,A,l,T));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ee in a)A=a[ee],a.hasOwnProperty(ee)&&A!=null&&!l.hasOwnProperty(ee)&&Ae(e,t,ee,null,l,A);for(N in l)if(A=l[N],T=a[N],l.hasOwnProperty(N)&&A!==T&&(A!=null||T!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:Ae(e,t,N,A,l,T)}return;default:if(lc(t)){for(var Te in a)A=a[Te],a.hasOwnProperty(Te)&&A!==void 0&&!l.hasOwnProperty(Te)&&Xs(e,t,Te,void 0,l,A);for(_ in l)A=l[_],T=a[_],!l.hasOwnProperty(_)||A===T||A===void 0&&T===void 0||Xs(e,t,_,A,l,T);return}}for(var j in a)A=a[j],a.hasOwnProperty(j)&&A!=null&&!l.hasOwnProperty(j)&&Ae(e,t,j,null,l,A);for(M in l)A=l[M],T=a[M],!l.hasOwnProperty(M)||A===T||A==null&&T==null||Ae(e,t,M,A,l,T)}function bh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],u=n.transferSize,o=n.initiatorType,m=n.duration;if(u&&m&&bh(o)){for(o=0,m=n.responseEnd,l+=1;l<a.length;l++){var b=a[l],N=b.startTime;if(N>m)break;var _=b.transferSize,M=b.initiatorType;_&&bh(M)&&(b=b.responseEnd,o+=_*(b<m?1:(m-N)/(b-N)))}if(--l,t+=8*(u+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qs=null,Zs=null;function yu(e){return e.nodeType===9?e:e.ownerDocument}function Sh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ks=null;function rp(){var e=window.event;return e&&e.type==="popstate"?e===Ks?!1:(Ks=e,!0):(Ks=null,!1)}var jh=typeof setTimeout=="function"?setTimeout:void 0,op=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,fp=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(dp)}:jh;function dp(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function Eh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),an(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")$n(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$n(a);for(var u=a.firstChild;u;){var o=u.nextSibling,m=u.nodeName;u[mn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=o}}else a==="body"&&$n(e.ownerDocument.body);a=n}while(a);an(t)}function Nh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Fs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Fs(a),Pu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hp(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[mn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function mp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Lt(e.nextSibling),e===null))return null;return e}function Ch(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function Js(e){return e.data==="$?"||e.data==="$~"}function $s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ws=null;function Ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Lt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Th(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Rh(e,t,a){switch(t=yu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function $n(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pu(e)}var Bt=new Map,Dh=new Set;function pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=G.d;G.d={f:pp,r:gp,D:vp,C:xp,L:bp,m:Sp,X:jp,S:wp,M:zp};function pp(){var e=ba.f(),t=cu();return e||t}function gp(e){var t=Sl(e);t!==null&&t.tag===5&&t.type==="form"?Ff(t):ba.r(e)}var Pl=typeof document>"u"?null:document;function _h(e,t,a){var l=Pl;if(l&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Dh.has(n)||(Dh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),lt(t,"link",e),We(t),l.head.appendChild(t)))}}function vp(e){ba.D(e),_h("dns-prefetch",e,null)}function xp(e,t){ba.C(e,t),_h("preconnect",e,t)}function bp(e,t,a){ba.L(e,t,a);var l=Pl;if(l&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Tt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Tt(a.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var u=n;switch(t){case"style":u=en(e);break;case"script":u=tn(e)}Bt.has(u)||(e=z({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bt.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Wn(u))||t==="script"&&l.querySelector(In(u))||(t=l.createElement("link"),lt(t,"link",e),We(t),l.head.appendChild(t)))}}function Sp(e,t){ba.m(e,t);var a=Pl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(l)+'"][href="'+Tt(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=tn(e)}if(!Bt.has(u)&&(e=z({rel:"modulepreload",href:e},t),Bt.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(In(u)))return}l=a.createElement("link"),lt(l,"link",e),We(l),a.head.appendChild(l)}}}function wp(e,t,a){ba.S(e,t,a);var l=Pl;if(l&&e){var n=wl(l).hoistableStyles,u=en(e);t=t||"default";var o=n.get(u);if(!o){var m={loading:0,preload:null};if(o=l.querySelector(Wn(u)))m.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bt.get(u))&&Is(e,a);var b=o=l.createElement("link");We(b),lt(b,"link",e),b._p=new Promise(function(N,_){b.onload=N,b.onerror=_}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,gu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:m},n.set(u,o)}}}function jp(e,t){ba.X(e,t);var a=Pl;if(a&&e){var l=wl(a).hoistableScripts,n=tn(e),u=l.get(n);u||(u=a.querySelector(In(n)),u||(e=z({src:e,async:!0},t),(t=Bt.get(n))&&Ps(e,t),u=a.createElement("script"),We(u),lt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function zp(e,t){ba.M(e,t);var a=Pl;if(a&&e){var l=wl(a).hoistableScripts,n=tn(e),u=l.get(n);u||(u=a.querySelector(In(n)),u||(e=z({src:e,async:!0,type:"module"},t),(t=Bt.get(n))&&Ps(e,t),u=a.createElement("script"),We(u),lt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function Uh(e,t,a,l){var n=(n=I.current)?pu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=en(a.href),a=wl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=en(a.href);var u=wl(n).hoistableStyles,o=u.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=n.querySelector(Wn(e)))&&!u._p&&(o.instance=u,o.state.loading=5),Bt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bt.set(e,a),u||Ep(n,e,a,o.state))),t&&l===null)throw Error(s(528,""));return o}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(a),a=wl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function en(e){return'href="'+Tt(e)+'"'}function Wn(e){return'link[rel="stylesheet"]['+e+"]"}function Oh(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Ep(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),lt(t,"link",a),We(t),e.head.appendChild(t))}function tn(e){return'[src="'+Tt(e)+'"]'}function In(e){return"script[async]"+e}function Mh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Tt(a.href)+'"]');if(l)return t.instance=l,We(l),l;var n=z({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),We(l),lt(l,"style",n),gu(l,a.precedence,e),t.instance=l;case"stylesheet":n=en(a.href);var u=e.querySelector(Wn(n));if(u)return t.state.loading|=4,t.instance=u,We(u),u;l=Oh(a),(n=Bt.get(n))&&Is(l,n),u=(e.ownerDocument||e).createElement("link"),We(u);var o=u;return o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),lt(u,"link",l),t.state.loading|=4,gu(u,a.precedence,e),t.instance=u;case"script":return u=tn(a.src),(n=e.querySelector(In(u)))?(t.instance=n,We(n),n):(l=a,(n=Bt.get(u))&&(l=z({},a),Ps(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),lt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,gu(l,a.precedence,e));return t.instance}function gu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,o=0;o<l.length;o++){var m=l[o];if(m.dataset.precedence===t)u=m;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function Lh(e,t,a){if(vu===null){var l=new Map,n=vu=new Map;n.set(a,l)}else n=vu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[mn]||u[Pe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var m=l.get(o);m?m.push(u):l.set(o,[u])}}return l}function Bh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Np(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=en(l.href),u=t.querySelector(Wn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,We(u);return}u=t.ownerDocument||t,l=Oh(l),(n=Bt.get(n))&&Is(l,n),u=u.createElement("link"),We(u);var o=u;o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),lt(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=xu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var er=0;function Ap(e,t){return e.stylesheets&&e.count===0&&Su(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&er===0&&(er=62500*sp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>er?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bu=null;function Su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bu=new Map,t.forEach(Tp,e),bu=null,xu.call(e))}function Tp(e,t){if(!(t.state.loading&4)){var a=bu.get(e);if(a)var l=a.get(null);else{a=new Map,bu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var o=n[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),u=a.get(o)||l,u===l&&a.set(null,n),a.set(o,n),this.count++,l=xu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Pn={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Rp(e,t,a,l,n,u,o,m,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function qh(e,t,a,l,n,u,o,m,b,N,_,M){return e=new Rp(e,t,a,o,b,N,_,M,m),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=Uc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Bc(u),e}function kh(e){return e?(e=_l,e):_l}function Yh(e,t,a,l,n,u){n=kh(n),l.context===null?l.context=n:l.pendingContext=n,l=Ua(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Oa(e,l,t),a!==null&&(mt(a,e,t),Dn(a,e,t))}function Gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function tr(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function Xh(e){if(e.tag===13||e.tag===31){var t=ll(e,67108864);t!==null&&mt(t,e,67108864),tr(e,67108864)}}function Qh(e){if(e.tag===13||e.tag===31){var t=Et();t=$u(t);var a=ll(e,t);a!==null&&mt(a,e,t),tr(e,t)}}var wu=!0;function Dp(e,t,a,l){var n=D.T;D.T=null;var u=G.p;try{G.p=2,ar(e,t,a,l)}finally{G.p=u,D.T=n}}function _p(e,t,a,l){var n=D.T;D.T=null;var u=G.p;try{G.p=8,ar(e,t,a,l)}finally{G.p=u,D.T=n}}function ar(e,t,a,l){if(wu){var n=lr(l);if(n===null)Gs(e,t,l,ju,a),Vh(e,l);else if(Op(n,e,t,a,l))l.stopPropagation();else if(Vh(e,l),t&4&&-1<Up.indexOf(e)){for(;n!==null;){var u=Sl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=Ia(u.pendingLanes);if(o!==0){var m=u;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var b=1<<31-vt(o);m.entanglements[1]|=b,o&=~b}Wt(u),(be&6)===0&&(iu=pt()+500,Kn(0))}}break;case 31:case 13:m=ll(u,2),m!==null&&mt(m,u,2),cu(),tr(u,2)}if(u=lr(l),u===null&&Gs(e,t,l,ju,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else Gs(e,t,l,null,a)}}function lr(e){return e=ic(e),nr(e)}var ju=null;function nr(e){if(ju=null,e=bl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=x(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ju=e,null}function Zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(v0()){case Wr:return 2;case Ir:return 8;case di:case x0:return 32;case Pr:return 268435456;default:return 32}default:return 32}}var ir=!1,Za=null,Va=null,Ka=null,ei=new Map,ti=new Map,Fa=[],Up="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vh(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Sl(t),t!==null&&Xh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Op(e,t,a,l,n){switch(t){case"focusin":return Za=ai(Za,e,t,a,l,n),!0;case"dragenter":return Va=ai(Va,e,t,a,l,n),!0;case"mouseover":return Ka=ai(Ka,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return ei.set(u,ai(ei.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,ti.set(u,ai(ti.get(u)||null,e,t,a,l,n)),!0}return!1}function Kh(e){var t=bl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,io(e.priority,function(){Qh(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,io(e.priority,function(){Qh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=lr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);nc=l,a.target.dispatchEvent(l),nc=null}else return t=Sl(a),t!==null&&Xh(t),e.blockedOn=a,!1;t.shift()}return!0}function Fh(e,t,a){zu(e)&&a.delete(t)}function Mp(){ir=!1,Za!==null&&zu(Za)&&(Za=null),Va!==null&&zu(Va)&&(Va=null),Ka!==null&&zu(Ka)&&(Ka=null),ei.forEach(Fh),ti.forEach(Fh)}function Eu(e,t){e.blockedOn===t&&(e.blockedOn=null,ir||(ir=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Mp)))}var Nu=null;function Jh(e){Nu!==e&&(Nu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Nu===e&&(Nu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(nr(l||a)===null)continue;break}var u=Sl(a);u!==null&&(e.splice(t,3),t-=3,ls(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function an(e){function t(b){return Eu(b,e)}Za!==null&&Eu(Za,e),Va!==null&&Eu(Va,e),Ka!==null&&Eu(Ka,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Fa.length;a++){var l=Fa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)Kh(a),a.blockedOn===null&&Fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],o=n[st]||null;if(typeof u=="function")o||Jh(a);else if(o){var m=null;if(u&&u.hasAttribute("formAction")){if(n=u,o=u[st]||null)m=o.formAction;else if(nr(n)!==null)continue}else m=o.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),Jh(a)}}}function $h(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ur(e){this._internalRoot=e}Cu.prototype.render=ur.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Et();Yh(a,l,e,t,null,null)},Cu.prototype.unmount=ur.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yh(e.current,2,null,e,null,null),cu(),t[xl]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=no();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fa.length&&t!==0&&t<Fa[a].priority;a++);Fa.splice(a,0,e),a===0&&Kh(e)}};var Wh=c.version;if(Wh!=="19.2.8")throw Error(s(527,Wh,"19.2.8"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var Lp={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{fn=Au.inject(Lp),gt=Au}catch{}}return ni.createRoot=function(e,t){if(!d(e))throw Error(s(299));var a=!1,l="",n=nd,u=id,o=ud;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qh(e,1,!1,null,null,a,l,null,n,u,o,$h),e[xl]=t.current,Ys(e),new ur(t)},ni.hydrateRoot=function(e,t,a){if(!d(e))throw Error(s(299));var l=!1,n="",u=nd,o=id,m=ud,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=qh(e,1,!0,t,a??null,l,n,b,u,o,m,$h),t.context=kh(null),a=t.current,l=Et(),l=$u(l),n=Ua(l),n.callback=null,Oa(a,n,l),a=l,t.current.lanes=a,hn(t,a),Wt(t),e[xl]=t.current,Ys(e),new Cu(t)},ni.version="19.2.8",ni}var cm;function Kp(){if(cm)return rr.exports;cm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),rr.exports=Vp(),rr.exports}var Fp=Kp();var Rr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Tm=/^[\\/]{2}/;function Jp(i,c){return c+i.replace(/\\/g,"/")}var sm="popstate";function rm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function $p(i={}){function c(s,d){let h=d.state?.masked,{pathname:y,search:x,hash:p}=h||s.location;return Sr("",{pathname:y,search:x,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,d){return typeof d=="string"?d:si(d)}return Ip(c,r,null,i)}function Be(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function Ht(i,c){if(!i){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Wp(){return Math.random().toString(36).substring(2,10)}function om(i,c){return{usr:i.state,key:i.key,idx:c,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Sr(i,c,r=null,s,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof c=="string"?cn(c):c,state:r,key:c&&c.key||s||Wp(),mask:d}}function si({pathname:i="/",search:c="",hash:r=""}){return c&&c!=="?"&&(i+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function cn(i){let c={};if(i){let r=i.indexOf("#");r>=0&&(c.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(c.search=i.substring(s),i=i.substring(0,s)),i&&(c.pathname=i)}return c}function Ip(i,c,r,s={}){let{window:d=document.defaultView,v5Compat:h=!1}=s,y=d.history,x="POP",p=null,g=C();g==null&&(g=0,y.replaceState({...y.state,idx:g},""));function C(){return(y.state||{idx:null}).idx}function z(){x="POP";let L=C(),X=L==null?null:L-g;g=L,p&&p({action:x,location:O.location,delta:X})}function B(L,X){x="PUSH";let W=rm(L)?L:Sr(O.location,L,X);g=C()+1;let F=om(W,g),le=O.createHref(W.mask||W);try{y.pushState(F,"",le)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;d.location.assign(le)}h&&p&&p({action:x,location:O.location,delta:1})}function Y(L,X){x="REPLACE";let W=rm(L)?L:Sr(O.location,L,X);g=C();let F=om(W,g),le=O.createHref(W.mask||W);y.replaceState(F,"",le),h&&p&&p({action:x,location:O.location,delta:0})}function Q(L){return Pp(d,L)}let O={get action(){return x},get location(){return i(d,y)},listen(L){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(sm,z),p=L,()=>{d.removeEventListener(sm,z),p=null}},createHref(L){return c(d,L)},createURL:Q,encodeLocation(L){let X=Q(L);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:B,replace:Y,go(L){return y.go(L)}};return O}function Pp(i,c,r=!1){let s="http://localhost";i&&(s=i.location.origin!=="null"?i.location.origin:i.location.href),Be(s,"No window.location.(origin|href) available to create URL");let d=typeof c=="string"?c:si(c);return d=d.replace(/ $/,"%20"),!r&&Tm.test(d)&&(d=s+d),new URL(d,s)}function Rm(i,c,r="/"){return eg(i,c,r,!1)}function eg(i,c,r,s,d){let h=typeof c=="string"?cn(c):c,y=Sa(h.pathname||"/",r);if(y==null)return null;let x=tg(i),p=null,g=dg(y);for(let C=0;p==null&&C<x.length;++C)p=fg(x[C],g,s);return p}function tg(i){let c=Dm(i);return ag(c),c}function Dm(i,c=[],r=[],s="",d=!1){let h=(y,x,p=d,g)=>{let C={relativePath:g===void 0?y.path||"":g,caseSensitive:y.caseSensitive===!0,childrenIndex:x,route:y};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(s)&&p)return;Be(C.relativePath.startsWith(s),`Absolute route path "${C.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(s.length)}let z=Vt([s,C.relativePath]),B=r.concat(C);y.children&&y.children.length>0&&(Be(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${z}".`),Dm(y.children,c,B,z,p)),!(y.path==null&&!y.index)&&c.push({path:z,score:rg(z,y.index),routesMeta:B.map((Y,Q)=>{let[O,L]=Om(Y.relativePath,Y.caseSensitive,Q===B.length-1);return{...Y,matcher:O,compiledParams:L}})})};return i.forEach((y,x)=>{if(y.path===""||!y.path?.includes("?"))h(y,x);else for(let p of _m(y.path))h(y,x,!0,p)}),c}function _m(i){let c=i.split("/");if(c.length===0)return[];let[r,...s]=c,d=r.endsWith("?"),h=r.replace(/\?$/,"");if(s.length===0)return d?[h,""]:[h];let y=_m(s.join("/")),x=[];return x.push(...y.map(p=>p===""?h:[h,p].join("/"))),d&&x.push(...y),x.map(p=>i.startsWith("/")&&p===""?"/":p)}function ag(i){i.sort((c,r)=>c.score!==r.score?r.score-c.score:og(c.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var lg=/^:[\w-]+$/,ng=3,ig=2,ug=1,cg=10,sg=-2,fm=i=>i==="*";function rg(i,c){let r=i.split("/"),s=r.length;return r.some(fm)&&(s+=sg),c&&(s+=ig),r.filter(d=>!fm(d)).reduce((d,h)=>d+(lg.test(h)?ng:h===""?ug:cg),s)}function og(i,c){return i.length===c.length&&i.slice(0,-1).every((s,d)=>s===c[d])?i[i.length-1]-c[c.length-1]:0}function fg(i,c,r=!1){let{routesMeta:s}=i,d={},h="/",y=[];for(let x=0;x<s.length;++x){let p=s[x],g=x===s.length-1,C=h==="/"?c:c.slice(h.length)||"/",z={path:p.relativePath,caseSensitive:p.caseSensitive,end:g},B=p.matcher&&p.compiledParams?Um(z,C,p.matcher,p.compiledParams):Uu(z,C),Y=p.route;if(!B&&g&&r&&!s[s.length-1].route.index&&(B=Uu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},C)),!B)return null;Object.assign(d,B.params),y.push({params:d,pathname:Vt([h,B.pathname]),pathnameBase:yg(Vt([h,B.pathnameBase])),route:Y}),B.pathnameBase!=="/"&&(h=Vt([h,B.pathnameBase]))}return y}function Uu(i,c){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=Om(i.path,i.caseSensitive,i.end);return Um(i,c,r,s)}function Um(i,c,r,s){let d=c.match(r);if(!d)return null;let h=d[0],y=h.replace(/(.)\/+$/,"$1"),x=d.slice(1);return{params:s.reduce((g,{paramName:C,isOptional:z},B)=>{if(C==="*"){let Q=x[B]||"";y=h.slice(0,h.length-Q.length).replace(/(.)\/+$/,"$1")}const Y=x[B];return z&&!Y?g[C]=void 0:g[C]=(Y||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:y,pattern:i}}function Om(i,c=!1,r=!0){Ht(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,x,p,g,C)=>{if(s.push({paramName:x,isOptional:p!=null}),p){let z=C.charAt(g+y.length);return z&&z!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),s]}function dg(i){try{return i.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Ht(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),i}}function Sa(i,c){if(c==="/")return i;if(!i.toLowerCase().startsWith(c.toLowerCase()))return null;let r=c.endsWith("/")?c.length-1:c.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function hg(i,c="/"){let{pathname:r,search:s="",hash:d=""}=typeof i=="string"?cn(i):i,h;return r?(r=Mm(r),r.startsWith("/")?h=dm(r.substring(1),"/"):h=dm(r,c)):h=c,{pathname:h,search:pg(s),hash:gg(d)}}function dm(i,c){let r=Ou(c).split("/");return i.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function hr(i,c,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${c}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mg(i){return i.filter((c,r)=>r===0||c.route.path&&c.route.path.length>0)}function Dr(i){let c=mg(i);return c.map((r,s)=>s===c.length-1?r.pathname:r.pathnameBase)}function ku(i,c,r,s=!1){let d;typeof i=="string"?d=cn(i):(d={...i},Be(!d.pathname||!d.pathname.includes("?"),hr("?","pathname","search",d)),Be(!d.pathname||!d.pathname.includes("#"),hr("#","pathname","hash",d)),Be(!d.search||!d.search.includes("#"),hr("#","search","hash",d)));let h=i===""||d.pathname==="",y=h?"/":d.pathname,x;if(y==null)x=r;else{let z=c.length-1;if(!s&&y.startsWith("..")){let B=y.split("/");for(;B[0]==="..";)B.shift(),z-=1;d.pathname=B.join("/")}x=z>=0?c[z]:"/"}let p=hg(d,x),g=y&&y!=="/"&&y.endsWith("/"),C=(h||y===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||C)&&(p.pathname+="/"),p}var Mm=i=>i.replace(/[\\/]{2,}/g,"/"),Vt=i=>Mm(i.join("/")),Ou=i=>i.replace(/\/+$/,""),yg=i=>Ou(i).replace(/^\/*/,"/"),pg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,gg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,vg=class{constructor(i,c,r,s=!1){this.status=i,this.statusText=c||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function xg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function bg(i){let c=i.map(r=>r.route.path).filter(Boolean);return Vt(c)||"/"}var Lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Bm(i,c){let r=i;if(typeof r!="string"||!Rr.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,d=!1;if(Lm)try{let h=new URL(window.location.href),y=Tm.test(r)?new URL(Jp(r,h.protocol)):new URL(r),x=Sa(y.pathname,c);y.origin===h.origin&&x!=null?r=x+y.search+y.hash:d=!0}catch{Ht(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Hm=["POST","PUT","PATCH","DELETE"];new Set(Hm);var Sg=["GET",...Hm];new Set(Sg);var wg=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function jg(i){try{return wg.includes(new URL(i).protocol)}catch{return!1}}var sn=S.createContext(null);sn.displayName="DataRouter";var Yu=S.createContext(null);Yu.displayName="DataRouterState";var qm=S.createContext(!1);function zg(){return S.useContext(qm)}var km=S.createContext({isTransitioning:!1});km.displayName="ViewTransition";var Eg=S.createContext(new Map);Eg.displayName="Fetchers";var Ng=S.createContext(null);Ng.displayName="Await";var Ct=S.createContext(null);Ct.displayName="Navigation";var oi=S.createContext(null);oi.displayName="Location";var Pt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var _r=S.createContext(null);_r.displayName="RouteError";var Ym="REACT_ROUTER_ERROR",Cg="REDIRECT",Ag="ROUTE_ERROR_RESPONSE";function Tg(i){if(i.startsWith(`${Ym}:${Cg}:{`))try{let c=JSON.parse(i.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Rg(i){if(i.startsWith(`${Ym}:${Ag}:{`))try{let c=JSON.parse(i.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new vg(c.status,c.statusText,c.data)}catch{}}function Dg(i,{relative:c}={}){Be(rn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=S.useContext(Ct),{hash:d,pathname:h,search:y}=fi(i,{relative:c}),x=h;return r!=="/"&&(x=h==="/"?r:Vt([r,h])),s.createHref({pathname:x,search:y,hash:d})}function rn(){return S.useContext(oi)!=null}function qt(){return Be(rn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(oi).location}var Gm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Xm(i){S.useContext(Ct).static||S.useLayoutEffect(i)}function ea(){let{isDataRoute:i}=S.useContext(Pt);return i?Qg():_g()}function _g(){Be(rn(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(sn),{basename:c,navigator:r}=S.useContext(Ct),{matches:s}=S.useContext(Pt),{pathname:d}=qt(),h=JSON.stringify(Dr(s)),y=S.useRef(!1);return Xm(()=>{y.current=!0}),S.useCallback((p,g={})=>{if(Ht(y.current,Gm),!y.current)return;if(typeof p=="number"){r.go(p);return}let C=ku(p,JSON.parse(h),d,g.relative==="path");i==null&&c!=="/"&&(C.pathname=C.pathname==="/"?c:Vt([c,C.pathname])),(g.replace?r.replace:r.push)(C,g.state,g)},[c,r,h,d,i])}S.createContext(null);function fi(i,{relative:c}={}){let{matches:r}=S.useContext(Pt),{pathname:s}=qt(),d=JSON.stringify(Dr(r));return S.useMemo(()=>ku(i,JSON.parse(d),s,c==="path"),[i,d,s,c])}function Ug(i,c){return Qm(i,c)}function Qm(i,c,r){Be(rn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Ct),{matches:d}=S.useContext(Pt),h=d[d.length-1],y=h?h.params:{},x=h?h.pathname:"/",p=h?h.pathnameBase:"/",g=h&&h.route;{let L=g&&g.path||"";Vm(x,!g||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let L=It(),Y;if(c){let Q=typeof c=="string"?nn(c):c;Oe(A==="/"||Q.pathname?.startsWith(A),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${A}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),Y=Q}else Y=L;let Z=Y.pathname||"/",M=Z;if(A!=="/"){let Q=A.replace(/^\//,"").split("/");M="/"+Z.replace(/^\//,"").split("/").slice(Q.length).join("/")}let G=xm(u,{pathname:M});Ct(z||G!=null,`No routes matched location "${Y.pathname}${Y.search}${Y.hash}" `),Ct(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${Y.pathname}${Y.search}${Y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=zg(G&&G.map(Q=>Object.assign({},Q,{params:Object.assign({},p,Q.params),pathname:ba([A,h.encodeLocation?h.encodeLocation(Q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?A:ba([A,h.encodeLocation?h.encodeLocation(Q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),y,r,s,d);return c&&k?S.createElement(si.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...Y},navigationType:"POP"}},k):k}function bg(){let u=Tg(),c=cg(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},c),r?S.createElement("pre",{style:d},r):null,y)}var Sg=S.createElement(bg,null),Dm=class extends S.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,c){return c.location!==u.location||c.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:c.error,location:c.location,revalidation:u.revalidation||c.revalidation}}componentDidCatch(u,c){this.props.onError?this.props.onError(u,c):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const r=pg(u.digest);r&&(u=r)}let c=u!==void 0?S.createElement($t.Provider,{value:this.props.routeContext},S.createElement(Er.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?S.createElement(wg,{error:u},c):c}};Dm.contextType=og;var sr=new WeakMap;function wg({children:u,error:c}){let{basename:r}=S.useContext(At);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let s=yg(c.digest);if(s){let d=sr.get(c);if(d)throw d;let h=zm(s.location,r);if(jm&&!sr.get(c))if(h.isExternal||s.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw sr.set(c,y),y}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return u}function jg({routeContext:u,match:c,children:r}){let s=S.useContext(un);return s&&s.static&&s.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=c.route.id),S.createElement($t.Provider,{value:u},r)}function zg(u,c=[],r=null,s=null,d=null){if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(c.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let h=u,y=r?.errors;if(y!=null){let A=h.findIndex(z=>z.route.id&&y?.[z.route.id]!==void 0);Oe(A>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),h=h.slice(0,Math.min(h.length,A+1))}let b=!1,p=-1;if(r)for(let A=0;A<h.length;A++){let z=h[A];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(p=A),z.route.id){let{loaderData:L,errors:Y}=r,Z=z.route.loader&&!L.hasOwnProperty(z.route.id)&&(!Y||Y[z.route.id]===void 0);if(z.route.lazy||Z){b=!0,p>=0?h=h.slice(0,p+1):h=[h[0]];break}}}let g=r&&s?(A,z)=>{s(A,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:sg(r.matches),errorInfo:z})}:void 0;return h.reduceRight((A,z,L)=>{let Y,Z=!1,M=null,G=null;r&&(Y=y&&z.route.id?y[z.route.id]:void 0,M=z.route.errorElement||Sg,b&&(p<0&&L===0?(_m("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,G=null):p===L&&(Z=!0,G=z.route.hydrateFallbackElement||null)));let k=c.concat(h.slice(0,L+1)),Q=()=>{let J;return Y?J=M:Z?J=G:z.route.Component?J=S.createElement(z.route.Component,null):z.route.element?J=z.route.element:J=A,S.createElement(jg,{match:z,routeContext:{outlet:A,matches:k,isDataRoute:r!=null},children:J})};return r&&(z.route.ErrorBoundary||z.route.errorElement||L===0)?S.createElement(Dm,{location:r.location,revalidation:r.revalidation,component:M,error:Y,children:Q(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:g}):Q()},null)}function Cr(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ng(u){let c=S.useContext(un);return Oe(c,Cr(u)),c}function Eg(u){let c=S.useContext(Lu);return Oe(c,Cr(u)),c}function Cg(u){let c=S.useContext($t);return Oe(c,Cr(u)),c}function Ar(u){let c=Cg(u),r=c.matches[c.matches.length-1];return Oe(r.route.id,`${u} can only be used on routes that contain a unique "id"`),r.route.id}function Ag(){return Ar("useRouteId")}function Tg(){let u=S.useContext(Er),c=Eg("useRouteError"),r=Ar("useRouteError");return u!==void 0?u:c.errors?.[r]}function Rg(){let{router:u}=Ng("useNavigate"),c=Ar("useNavigate"),r=S.useRef(!1);return Tm(()=>{r.current=!0}),S.useCallback(async(d,h={})=>{Ct(r.current,Am),r.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:c,...h}))},[u,c])}var im={};function _m(u,c,r){!c&&!im[u]&&(im[u]=!0,Ct(!1,r))}S.memo(Dg);function Dg({routes:u,future:c,state:r,onError:s}){return Rm(u,void 0,r,s,c)}function wa({to:u,replace:c,state:r,relative:s}){Oe(cn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=S.useContext(At);Ct(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=S.useContext($t),{pathname:y}=It(),b=Pt(),p=Nr(u,zr(h),y,s==="path"),g=JSON.stringify(p);return S.useEffect(()=>{b(JSON.parse(g),{replace:c,state:r,relative:s})},[b,g,s,c,r]),null}function Et(u){Oe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _g({basename:u="/",children:c=null,location:r,navigationType:s="POP",navigator:d,static:h=!1,unstable_useTransitions:y}){Oe(!cn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:b,navigator:d,static:h,unstable_useTransitions:y,future:{}}),[b,d,h,y]);typeof r=="string"&&(r=nn(r));let{pathname:g="/",search:A="",hash:z="",state:L=null,key:Y="default"}=r,Z=S.useMemo(()=>{let M=Sa(g,b);return M==null?null:{location:{pathname:M,search:A,hash:z,state:L,key:Y},navigationType:s}},[b,g,A,z,L,Y,s]);return Ct(Z!=null,`<Router basename="${b}"> is not able to match the URL "${g}${A}${z}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:S.createElement(At.Provider,{value:p},S.createElement(si.Provider,{children:c,value:Z}))}function Ug({children:u,location:c}){return xg(pr(u),c)}function pr(u,c=[]){let r=[];return S.Children.forEach(u,(s,d)=>{if(!S.isValidElement(s))return;let h=[...c,d];if(s.type===S.Fragment){r.push.apply(r,pr(s.props.children,h));return}Oe(s.type===Et,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Oe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let y={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(y.children=pr(s.props.children,h)),r.push(y)}),r}var Tu="get",Ru="application/x-www-form-urlencoded";function Bu(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Og(u){return Bu(u)&&u.tagName.toLowerCase()==="button"}function Mg(u){return Bu(u)&&u.tagName.toLowerCase()==="form"}function Lg(u){return Bu(u)&&u.tagName.toLowerCase()==="input"}function Bg(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Hg(u,c){return u.button===0&&(!c||c==="_self")&&!Bg(u)}function gr(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((c,r)=>{let s=u[r];return c.concat(Array.isArray(s)?s.map(d=>[r,d]):[[r,s]])},[]))}function qg(u,c){let r=gr(u);return c&&c.forEach((s,d)=>{r.has(d)||c.getAll(d).forEach(h=>{r.append(d,h)})}),r}var Cu=null;function Yg(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var kg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rr(u){return u!=null&&!kg.has(u)?(Ct(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ru}"`),null):u}function Gg(u,c){let r,s,d,h,y;if(Mg(u)){let b=u.getAttribute("action");s=b?Sa(b,c):null,r=u.getAttribute("method")||Tu,d=rr(u.getAttribute("enctype"))||Ru,h=new FormData(u)}else if(Og(u)||Lg(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=u.getAttribute("formaction")||b.getAttribute("action");if(s=p?Sa(p,c):null,r=u.getAttribute("formmethod")||b.getAttribute("method")||Tu,d=rr(u.getAttribute("formenctype"))||rr(b.getAttribute("enctype"))||Ru,h=new FormData(b,u),!Yg()){let{name:g,type:A,value:z}=u;if(A==="image"){let L=g?`${g}.`:"";h.append(`${L}x`,"0"),h.append(`${L}y`,"0")}else g&&h.append(g,z)}}else{if(Bu(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Tu,s=null,d=Ru,y=u}return h&&d==="text/plain"&&(y=h,h=void 0),{action:s,method:r.toLowerCase(),encType:d,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tr(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function Xg(u,c,r,s){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:c&&Sa(d.pathname,c)==="/"?d.pathname=`${c.replace(/\/$/,"")}/_root.${s}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${s}`,d}async function Qg(u,c){if(u.id in c)return c[u.id];try{let r=await import(u.module);return c[u.id]=r,r}catch(r){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zg(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function Vg(u,c,r){let s=await Promise.all(u.map(async d=>{let h=c.routes[d.route.id];if(h){let y=await Qg(h,r);return y.links?y.links():[]}return[]}));return Wg(s.flat(1).filter(Zg).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function um(u,c,r,s,d,h){let y=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,b=(p,g)=>r[g].pathname!==p.pathname||r[g].route.path?.endsWith("*")&&r[g].params["*"]!==p.params["*"];return h==="assets"?c.filter((p,g)=>y(p,g)||b(p,g)):h==="data"?c.filter((p,g)=>{let A=s.routes[p.route.id];if(!A||!A.hasLoader)return!1;if(y(p,g)||b(p,g))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(u,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function Kg(u,c,{includeHydrateFallback:r}={}){return Fg(u.map(s=>{let d=c.routes[s.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function Fg(u){return[...new Set(u)]}function Jg(u){let c={},r=Object.keys(u).sort();for(let s of r)c[s]=u[s];return c}function Wg(u,c){let r=new Set;return new Set(c),u.reduce((s,d)=>{let h=JSON.stringify(Jg(d));return r.has(h)||(r.add(h),s.push({key:h,link:d})),s},[])}function Um(){let u=S.useContext(un);return Tr(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function $g(){let u=S.useContext(Lu);return Tr(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Rr=S.createContext(void 0);Rr.displayName="FrameworkContext";function Om(){let u=S.useContext(Rr);return Tr(u,"You must render this element inside a <HydratedRouter> element"),u}function Ig(u,c){let r=S.useContext(Rr),[s,d]=S.useState(!1),[h,y]=S.useState(!1),{onFocus:b,onBlur:p,onMouseEnter:g,onMouseLeave:A,onTouchStart:z}=c,L=S.useRef(null);S.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let M=k=>{k.forEach(Q=>{y(Q.isIntersecting)})},G=new IntersectionObserver(M,{threshold:.5});return L.current&&G.observe(L.current),()=>{G.disconnect()}}},[u]),S.useEffect(()=>{if(s){let M=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(M)}}},[s]);let Y=()=>{d(!0)},Z=()=>{d(!1),y(!1)};return r?u!=="intent"?[h,L,{}]:[h,L,{onFocus:li(b,Y),onBlur:li(p,Z),onMouseEnter:li(g,Y),onMouseLeave:li(A,Z),onTouchStart:li(z,Y)}]:[!1,L,{}]}function li(u,c){return r=>{u&&u(r),r.defaultPrevented||c(r)}}function Pg({page:u,...c}){let{router:r}=Um(),s=S.useMemo(()=>xm(r.routes,u,r.basename),[r.routes,u,r.basename]);return s?S.createElement(tv,{page:u,matches:s,...c}):null}function ev(u){let{manifest:c,routeModules:r}=Om(),[s,d]=S.useState([]);return S.useEffect(()=>{let h=!1;return Vg(u,c,r).then(y=>{h||d(y)}),()=>{h=!0}},[u,c,r]),s}function tv({page:u,matches:c,...r}){let s=It(),{future:d,manifest:h,routeModules:y}=Om(),{basename:b}=Um(),{loaderData:p,matches:g}=$g(),A=S.useMemo(()=>um(u,c,g,h,s,"data"),[u,c,g,h,s]),z=S.useMemo(()=>um(u,c,g,h,s,"assets"),[u,c,g,h,s]),L=S.useMemo(()=>{if(u===s.pathname+s.search+s.hash)return[];let M=new Set,G=!1;if(c.forEach(Q=>{let J=h.routes[Q.route.id];!J||!J.hasLoader||(!A.some(ue=>ue.route.id===Q.route.id)&&Q.route.id in p&&y[Q.route.id]?.shouldRevalidate||J.hasClientLoader?G=!0:M.add(Q.route.id))}),M.size===0)return[];let k=Xg(u,b,d.unstable_trailingSlashAwareDataRequests,"data");return G&&M.size>0&&k.searchParams.set("_routes",c.filter(Q=>M.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[k.pathname+k.search]},[b,d.unstable_trailingSlashAwareDataRequests,p,s,h,A,c,u,y]),Y=S.useMemo(()=>Kg(z,h),[z,h]),Z=ev(z);return S.createElement(S.Fragment,null,L.map(M=>S.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...r})),Y.map(M=>S.createElement("link",{key:M,rel:"modulepreload",href:M,...r})),Z.map(({key:M,link:G})=>S.createElement("link",{key:M,nonce:r.nonce,...G})))}function av(...u){return c=>{u.forEach(r=>{typeof r=="function"?r(c):r!=null&&(r.current=c)})}}var lv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lv&&(window.__reactRouterVersion="7.12.0")}catch{}function nv({basename:u,children:c,unstable_useTransitions:r,window:s}){let d=S.useRef();d.current==null&&(d.current=Bp({window:s,v5Compat:!0}));let h=d.current,[y,b]=S.useState({action:h.action,location:h.location}),p=S.useCallback(g=>{r===!1?b(g):S.startTransition(()=>b(g))},[r]);return S.useLayoutEffect(()=>h.listen(p),[h,p]),S.createElement(_g,{basename:u,children:c,location:y.location,navigationType:y.action,navigator:h,unstable_useTransitions:r})}var Mm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_u=S.forwardRef(function({onClick:c,discover:r="render",prefetch:s="none",relative:d,reloadDocument:h,replace:y,state:b,target:p,to:g,preventScrollReset:A,viewTransition:z,unstable_defaultShouldRevalidate:L,...Y},Z){let{basename:M,unstable_useTransitions:G}=S.useContext(At),k=typeof g=="string"&&Mm.test(g),Q=zm(g,M);g=Q.to;let J=gg(g,{relative:d}),[ue,le,te]=Ig(s,Y),K=sv(g,{replace:y,state:b,target:p,preventScrollReset:A,relative:d,viewTransition:z,unstable_defaultShouldRevalidate:L,unstable_useTransitions:G});function re(xe){c&&c(xe),xe.defaultPrevented||K(xe)}let we=S.createElement("a",{...Y,...te,href:Q.absoluteURL||J,onClick:Q.isExternal||h?c:re,ref:av(Z,le),target:p,"data-discover":!k&&r==="render"?"true":void 0});return ue&&!k?S.createElement(S.Fragment,null,we,S.createElement(Pg,{page:J})):we});_u.displayName="Link";var iv=S.forwardRef(function({"aria-current":c="page",caseSensitive:r=!1,className:s="",end:d=!1,style:h,to:y,viewTransition:b,children:p,...g},A){let z=ri(y,{relative:g.relative}),L=It(),Y=S.useContext(Lu),{navigator:Z,basename:M}=S.useContext(At),G=Y!=null&&mv(z)&&b===!0,k=Z.encodeLocation?Z.encodeLocation(z).pathname:z.pathname,Q=L.pathname,J=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;r||(Q=Q.toLowerCase(),J=J?J.toLowerCase():null,k=k.toLowerCase()),J&&M&&(J=Sa(J,M)||J);const ue=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let le=Q===k||!d&&Q.startsWith(k)&&Q.charAt(ue)==="/",te=J!=null&&(J===k||!d&&J.startsWith(k)&&J.charAt(k.length)==="/"),K={isActive:le,isPending:te,isTransitioning:G},re=le?c:void 0,we;typeof s=="function"?we=s(K):we=[s,le?"active":null,te?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let xe=typeof h=="function"?h(K):h;return S.createElement(_u,{...g,"aria-current":re,className:we,ref:A,style:xe,to:y,viewTransition:b},typeof p=="function"?p(K):p)});iv.displayName="NavLink";var uv=S.forwardRef(({discover:u="render",fetcherKey:c,navigate:r,reloadDocument:s,replace:d,state:h,method:y=Tu,action:b,onSubmit:p,relative:g,preventScrollReset:A,viewTransition:z,unstable_defaultShouldRevalidate:L,...Y},Z)=>{let{unstable_useTransitions:M}=S.useContext(At),G=dv(),k=hv(b,{relative:g}),Q=y.toLowerCase()==="get"?"get":"post",J=typeof b=="string"&&Mm.test(b),ue=le=>{if(p&&p(le),le.defaultPrevented)return;le.preventDefault();let te=le.nativeEvent.submitter,K=te?.getAttribute("formmethod")||y,re=()=>G(te||le.currentTarget,{fetcherKey:c,method:K,navigate:r,replace:d,state:h,relative:g,preventScrollReset:A,viewTransition:z,unstable_defaultShouldRevalidate:L});M&&r!==!1?S.startTransition(()=>re()):re()};return S.createElement("form",{ref:Z,method:Q,action:k,onSubmit:s?p:ue,...Y,"data-discover":!J&&u==="render"?"true":void 0})});uv.displayName="Form";function cv(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lm(u){let c=S.useContext(un);return Oe(c,cv(u)),c}function sv(u,{target:c,replace:r,state:s,preventScrollReset:d,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:b,unstable_useTransitions:p}={}){let g=Pt(),A=It(),z=ri(u,{relative:h});return S.useCallback(L=>{if(Hg(L,c)){L.preventDefault();let Y=r!==void 0?r:ui(A)===ui(z),Z=()=>g(u,{replace:Y,state:s,preventScrollReset:d,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:b});p?S.startTransition(()=>Z()):Z()}},[A,g,z,r,s,c,u,d,h,y,b,p])}function rv(u){Ct(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let c=S.useRef(gr(u)),r=S.useRef(!1),s=It(),d=S.useMemo(()=>qg(s.search,r.current?null:c.current),[s.search]),h=Pt(),y=S.useCallback((b,p)=>{const g=gr(typeof b=="function"?b(new URLSearchParams(d)):b);r.current=!0,h("?"+g,p)},[h,d]);return[d,y]}var ov=0,fv=()=>`__${String(++ov)}__`;function dv(){let{router:u}=Lm("useSubmit"),{basename:c}=S.useContext(At),r=Ag(),s=u.fetch,d=u.navigate;return S.useCallback(async(h,y={})=>{let{action:b,method:p,encType:g,formData:A,body:z}=Gg(h,c);if(y.navigate===!1){let L=y.fetcherKey||fv();await s(L,r,y.action||b,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:A,body:z,formMethod:y.method||p,formEncType:y.encType||g,flushSync:y.flushSync})}else await d(y.action||b,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:A,body:z,formMethod:y.method||p,formEncType:y.encType||g,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[s,d,c,r])}function hv(u,{relative:c}={}){let{basename:r}=S.useContext(At),s=S.useContext($t);Oe(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),h={...ri(u||".",{relative:c})},y=It();if(u==null){h.search=y.search;let b=new URLSearchParams(h.search),p=b.getAll("index");if(p.some(A=>A==="")){b.delete("index"),p.filter(z=>z).forEach(z=>b.append("index",z));let A=b.toString();h.search=A?`?${A}`:""}}return(!u||u===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:ba([r,h.pathname])),ui(h)}function mv(u,{relative:c}={}){let r=S.useContext(Em);Oe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Lm("useViewTransitionState"),d=ri(u,{relative:c});if(!r.isTransitioning)return!1;let h=Sa(r.currentLocation.pathname,s)||r.currentLocation.pathname,y=Sa(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Du(d.pathname,y)!=null||Du(d.pathname,h)!=null}const Dr="css-account",_r="xpod.cssAccountToken",yv="CSS-Account-Token";function Ur(){return typeof window<"u"&&typeof document<"u"}function pv(){if(!Ur())return;const u=document.cookie.split(";");for(const c of u){const[r,...s]=c.trim().split("=");if(r===Dr){const d=s.join("=");try{return d?decodeURIComponent(d):void 0}catch{return}}}}function Bm(u){Ur()&&(document.cookie=`${Dr}=${encodeURIComponent(u)}; Path=/; SameSite=Lax`)}function gv(){Ur()&&(document.cookie=`${Dr}=; Path=/; SameSite=Lax; Max-Age=0`)}function vv(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(_r)||void 0}catch{return}}function xv(u){if(!(typeof window>"u"))try{window.sessionStorage.setItem(_r,u)}catch{}}function bv(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(_r)}catch{}}function or(u){u&&(xv(u),Bm(u))}function Or(){bv(),gv()}function Sv(){const u=pv();if(u)return u;const c=vv();if(c)return Bm(c),c}function Zt(u,c={Accept:"application/json"}){const r={...c};return u&&!wv(r,"Authorization")&&(r.Authorization=`${yv} ${u}`),r}function Ue(u={Accept:"application/json"}){return Zt(Sv(),u)}function wv(u,c){const r=c.toLowerCase();return Object.keys(u).some(s=>s.toLowerCase()===r)}const Hm=S.createContext(null);function qt(){const u=S.useContext(Hm);if(!u)throw new Error("useAuth must be used within AuthProvider");return u}function jv({children:u}){const c="/.account/",[r,s]=S.useState(null),[d,h]=S.useState(!0),[y,b]=S.useState(null),[p,g]=S.useState(!1),A=!!r?.account?.logout,z=d,L=async()=>{try{const M=await fetch("/.account/oidc/consent/",{headers:Ue(),credentials:"include"});return M.ok?!!(await M.json()).client:!1}catch{return!1}},Y=async()=>{try{const M=await fetch(c,{headers:Ue(),credentials:"include"});if(M.ok){const G=await M.json();let k=!1;G.controls?.account?.logout&&(k=await L()),g(k),s(G.controls||{})}else{if(M.status===401||M.status===403){Or(),g(!1),s({});return}b(`Failed to load configuration (Status: ${M.status})`)}}catch{b("Network error: Could not connect to authentication server")}};S.useEffect(()=>{(async()=>(await Y(),h(!1)))()},[c]);const Z=async()=>{await Y()};return f.jsx(Hm.Provider,{value:{controls:r,isInitializing:d,initError:y,idpIndex:c,isLoggedIn:A,authenticating:z,hasOidcPending:p,refetchControls:Z},children:u})}const qm=(...u)=>u.filter((c,r,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===r).join(" ").trim();const zv=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Nv=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,s)=>s?s.toUpperCase():r.toLowerCase());const cm=u=>{const c=Nv(u);return c.charAt(0).toUpperCase()+c.slice(1)};var Ev={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 Cv=u=>{for(const c in u)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};const Av=S.forwardRef(({color:u="currentColor",size:c=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:d="",children:h,iconNode:y,...b},p)=>S.createElement("svg",{ref:p,...Ev,width:c,height:c,stroke:u,strokeWidth:s?Number(r)*24/Number(c):r,className:qm("lucide",d),...!h&&!Cv(b)&&{"aria-hidden":"true"},...b},[...y.map(([g,A])=>S.createElement(g,A)),...Array.isArray(h)?h:[h]]));const Ye=(u,c)=>{const r=S.forwardRef(({className:s,...d},h)=>S.createElement(Av,{ref:h,iconNode:c,className:qm(`lucide-${zv(cm(u))}`,`lucide-${u}`,s),...d}));return r.displayName=cm(u),r};const Tv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ym=Ye("arrow-left",Tv);const Rv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Hu=Ye("arrow-right",Rv);const Dv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wa=Ye("check",Dv);const _v=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uv=Ye("chevron-down",_v);const Ov=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Mr=Ye("circle-alert",Ov);const Mv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],km=Ye("clock",Mv);const Lv=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Au=Ye("copy",Lv);const Bv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Hv=Ye("database",Bv);const qv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],sm=Ye("external-link",qv);const Yv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],kv=Ye("globe",Yv);const Gv=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Gm=Ye("hard-drive",Gv);const Xv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Qv=Ye("info",Xv);const Zv=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],fr=Ye("key",Zv);const Vv=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Xm=Ye("layers",Vv);const Kv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pl=Ye("loader-circle",Kv);const Fv=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ni=Ye("lock",Fv);const Jv=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Wv=Ye("log-out",Jv);const $v=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],vr=Ye("mail",$v);const Iv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],dr=Ye("plus",Iv);const Pv=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ci=Ye("shield",Pv);const ex=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],rm=Ye("trash-2",ex);const tx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Qm=Ye("user",tx);function Zm(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(pl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function sn({children:u,title:c,subtitle:r,icon:s,showBack:d,onBack:h}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[d?f.jsx("button",{onClick:h,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:f.jsx(Ym,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?f.jsx(s,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:c}),r&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),u]})]})}function ax({message:u}){return f.jsx(sn,{title:"Error",subtitle:u,icon:Mr,children:f.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const xr="xpod:returnTo";function ii(u){try{u&&sessionStorage.setItem(xr,u)}catch{}}function lx(){try{const u=sessionStorage.getItem(xr);return u&&sessionStorage.removeItem(xr),u}catch{return null}}function nx(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function ix(u,c,r=!1){return u&&c&&!r}function om({children:u,allowOidcPending:c=!1}){const{isLoggedIn:r,hasOidcPending:s}=qt(),d=It();return ix(r,s,c)?f.jsx(wa,{to:"/.account/oidc/consent/",replace:!0}):r?f.jsx(f.Fragment,{children:u}):(ii(d.pathname+d.search),f.jsx(wa,{to:"/.account/login/password/",replace:!0}))}function Vm(u){var c,r,s="";if(typeof u=="string"||typeof u=="number")s+=u;else if(typeof u=="object")if(Array.isArray(u)){var d=u.length;for(c=0;c<d;c++)u[c]&&(r=Vm(u[c]))&&(s&&(s+=" "),s+=r)}else for(r in u)u[r]&&(s&&(s+=" "),s+=r);return s}function an(){for(var u,c,r=0,s="",d=arguments.length;r<d;r++)(u=arguments[r])&&(c=Vm(u))&&(s&&(s+=" "),s+=c);return s}const fm=3,Uu=63,ux=/^[a-z0-9-]+$/;function Wt(u){return u.trim().toLowerCase()}function $a(u){const c=Wt(u);if(!c)return"Username is required";if(c.length<fm||c.length>Uu)return`Username must be ${fm}-${Uu} characters`;if(!ux.test(c))return"Username can only contain lowercase letters, numbers, and hyphens";if(c.startsWith("-")||c.endsWith("-"))return"Username cannot start or end with a hyphen"}function cx(u,c=5){const s=Wt(u).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,Uu-3)||"user",d=Array.from({length:Math.max(c,3)},(h,y)=>`${s}-${y+1}`);return Array.from(new Set(d.map(h=>h.slice(0,Uu)).filter(h=>!$a(h)))).slice(0,c)}function sx(u){if(typeof window<"u")return"/api/v1/identity";try{const c=new URL(u);return c.hostname.startsWith("id.")?`${c.protocol}//api.${c.hostname.slice(3)}/api/v1/identity`:`${c.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function Km(u,c,r){const s=`${sx(c)}/${encodeURIComponent(u)}`;try{const d=await r(s,{headers:{Accept:"application/json"},credentials:"include"});if(d.status===404)return!1;if(d.ok||d.status===409)return!0}catch{}}async function rx(u,c,r,s=3){const d=cx(u,Math.max(s*2,5)),h=[];for(const y of d)if(await Km(y,c,r)===!1&&h.push(y),h.length>=s)break;return h}async function dm(u,c,r=fetch){const s=Wt(u),d=$a(s);if(d)return{available:!1,suggestions:[],error:d};const h=await Km(s,c,r);return h===!1?{available:!0,suggestions:[]}:h===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await rx(s,c,r)}}function Fm(){try{const u=sessionStorage.getItem("provisionCode")?.trim();return u||void 0}catch{return}}function ox(u){const c=u.split(".")[0];if(!c)return!0;try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return!0;const d=JSON.parse(globalThis.atob(s));return typeof d.exp=="number"?d.exp>Math.floor(Date.now()/1e3):!0}catch{return!0}}function Lr(u){const c=u?.trim();if(c)return ox(c)?c:void 0}function ln(){const u=Fm(),c=Lr(u);return u&&!c&&Br(),c}function fx(u){try{sessionStorage.setItem("provisionCode",u)}catch{}}function Br(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Hr(u,c=ln()){const r={name:u.trim()};return c&&(r.settings={provisionCode:c}),r}async function qr(u=fetch,c){const r=c?.trim()||Fm(),s=Lr(r);if(r||typeof window<"u"){const d=await dx(u);if(d)return fx(d),d}return r&&!s&&Br(),s}async function Yr(u=fetch,c){return qr(u,c)}async function dx(u){const c=await u("/provision/status",{headers:{Accept:"application/json"},credentials:"include"}).catch(()=>{});if(!c?.ok)return;const r=await c.json().catch(()=>{});if(!(!r?.registered||typeof r.provisionCode!="string"))return Lr(r.provisionCode)}function hx(u){if(!u)return;const c=u.split(".")[0];if(c)try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return;const d=Uint8Array.from(globalThis.atob(s),y=>y.charCodeAt(0)),h=JSON.parse(new TextDecoder().decode(d));return typeof h.spUrl!="string"||typeof h.serviceToken!="string"||typeof h.exp=="number"&&h.exp<Math.floor(Date.now()/1e3)?void 0:{spUrl:ja(h.spUrl),serviceToken:h.serviceToken,spDomain:typeof h.spDomain=="string"?h.spDomain:void 0,exp:typeof h.exp=="number"?h.exp:void 0}}catch{return}}function kr(u){const c=hx(u);if(c)return{lookupUrl:c.spUrl,storageRoot:c.spDomain?ja(`https://${c.spDomain}`):ja(c.spUrl),serviceToken:c.serviceToken}}async function qu(u,c,r){const s=kr(r);if(!s)return;const d=Array.from(new Set(c.filter(p=>typeof p=="string"&&p.length>0)));if(d.length===0)return[];const h=await u(new URL("/provision/webids",s.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${s.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:d})});if(!h.ok)return[];const y=await h.json().catch(()=>{});if(!Array.isArray(y?.entries))return[];const b=new Set(d);return y.entries.filter(p=>p&&typeof p.webId=="string"&&b.has(p.webId)).filter(p=>typeof p.storageUrl=="string"&&p.storageUrl.length>0).filter(p=>Jm(p.storageUrl,s.storageRoot)).map(p=>({webId:p.webId,podUrl:typeof p.podUrl=="string"?ja(p.podUrl):void 0,storageUrl:ja(p.storageUrl)}))}async function mx(u,c,r){const s=Wm(r);if(!s)return[];const d=Array.from(new Set(c.filter(y=>typeof y=="string"&&y.length>0)));return(await Promise.all(d.map(async y=>{const p=(await px(u,y)).find(g=>Jm(g,s));return p?{webId:y,storageUrl:ja(p)}:void 0}))).filter(y=>!!y)}function Jm(u,c){const r=xx(u),s=Wm(c);return!!(r&&s&&r.startsWith(s))}function yx(u){if(u)try{return ja(new URL(u).origin)}catch{return}}function Wm(u){if(u)try{return ja(new URL(u).toString())}catch{return}}async function px(u,c){const r=await u(c,{headers:{Accept:"text/turtle, application/ld+json, application/json"},credentials:"include"}).catch(()=>{});if(!r?.ok)return[];const s=r.headers?.get?.("content-type")??"",d=await r.text().catch(()=>"");if(!d)return[];if(s.includes("json"))try{return vx(JSON.parse(d))}catch{return[]}return gx(d)}function gx(u){return Array.from(u.matchAll(/(?:solid:storage|<http:\/\/www\.w3\.org\/ns\/solid\/terms#storage>)\s+<([^>]+)>/giu)).map(c=>c[1]).filter(c=>typeof c=="string"&&c.length>0)}function vx(u){const c=new Set,r=new WeakSet,s=(d,h=!1)=>{if(typeof d=="string"){h&&c.add(d);return}if(!(!d||typeof d!="object")&&!r.has(d)){if(r.add(d),Array.isArray(d)){for(const y of d)s(y,h);return}for(const[y,b]of Object.entries(d)){const p=y==="solid:storage"||y==="http://www.w3.org/ns/solid/terms#storage";if(h&&y==="@id"){s(b,!0);continue}s(b,h||p)}}};return s(u),Array.from(c)}function xx(u){try{return ja(new URL(u).toString())}catch{return}}function ja(u){return u.replace(/\/+$/u,"")+"/"}class Yu extends Error{code;constructor(c,r){super(c),this.name="RegistrationError",this.code=r}}async function Gr(u){const c=await u.json().catch(()=>{});return c?.message||c?.error}function bx(u){return u.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function Sx(u,c){if(!u)return!1;const r=bx(u);if(r)return Xr(r,c);const s=u.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return s?s===c:/Username already taken/i.test(u)}function wx(u){return u?/already is a login for this e-mail address/i.test(u)||/email(?: address)? is already/i.test(u)||/already registered/i.test(u):!1}function Xr(u,c){try{return new URL(u,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===c}catch{return!1}}async function jx(u,c,r,s,d,h){if(h)return zx(u,r,s,d,h);const y=await u(c,{headers:Zt(d),credentials:"include"});if(!y.ok)return!1;const b=await y.json().catch(()=>({}));return Object.keys(b.pods??{}).some(p=>Xr(p,s))}async function zx(u,c,r,s,d){if(!c)return!1;const h=await u(c,{headers:Zt(s),credentials:"include"});if(!h.ok)return!1;const y=await h.json().catch(()=>({})),b=Object.keys(y.webIdLinks??{});return(await qu(u,b,d)??[]).some(g=>Xr(g.storageUrl,r))}async function Nx(u){const c=u.fetchImpl??fetch;let r=await c(u.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to create account");const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned");if(r=await c(u.idpIndex,{headers:Zt(d),credentials:"include"}),!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to load account controls");const h=await r.json().catch(()=>({})),y=h.controls?.password?.create,b=h.controls?.password?.login;if(!y)throw new Error("Password endpoint not found");if(!b)throw new Error("Login endpoint not found");if(r=await c(y,{method:"POST",headers:{...Zt(d),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:u.email,password:u.password})}),!r.ok){const p=await Gr(r);throw wx(p)?new Yu("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(p||"Failed to set password")}return{accountToken:d,loginUrl:b}}async function Ex(u){const r=await(u.fetchImpl??fetch)(u.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:u.email,password:u.password})});if(!r.ok){const h=await Gr(r);throw u.duplicateEmailRecovery?new Yu("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(h||"Auto-login failed")}const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned after login");return{accountToken:d}}async function hm(u,c,r,s,d=15e3,h){const y=Date.now()+d;let b=r?.pod,p=r?.webId;for(;Date.now()<y;){try{if(!b&&!p){const g=await u(c,{headers:Zt(s),credentials:"include"});if(g.ok){const A=await g.json().catch(()=>({}));b=A.controls?.account?.pod,p=A.controls?.account?.webId}}if(p){const g=await u(p,{headers:Zt(s),credentials:"include"});if(g.ok){const A=await g.json().catch(()=>({})),z=Object.keys(A.webIdLinks??{});if(h){if((await qu(u,z,h)??[]).length>0)return!0}else if(z.length>0)return!0}}if(!h&&b){const g=await u(b,{headers:Zt(s),credentials:"include"});if(g.ok){const A=await g.json().catch(()=>({}));if(Object.keys(A.pods??{}).length>0)return!0}}}catch{}await new Promise(g=>setTimeout(g,500))}return!1}async function mm(u){const c=u.fetchImpl??fetch,{accountToken:r,idpIndex:s,username:d}=u,h=await Yr(c,u.provisionCode??ln());let y=await c(s,{headers:Zt(r),credentials:"include"});const b=await y.json().catch(()=>({})),p=b.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await jx(c,p,b.controls?.account?.webId,d,r,h))return await hm(c,s,b.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await ym(c,r)};if(y=await c(p,{method:"POST",headers:{...Zt(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Hr(d,h))}),!y.ok){const g=await Gr(y);throw Sx(g,d)?new Yu("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(g||"Failed to create pod")}return await y.json().catch(()=>({})),await hm(c,s,b.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await ym(c,r)}}async function ym(u,c){const r=await u("/.account/oidc/consent/",{headers:Zt(c),credentials:"include"});return!!(r.ok&&(await r.json().catch(()=>({}))).client)}function br({initialIsRegister:u=!1}){const{controls:c,idpIndex:r,isLoggedIn:s,hasOidcPending:d,authenticating:h}=qt(),y=Pt(),[b,p]=S.useState(!1),[g,A]=S.useState(u),[z,L]=S.useState(""),[Y,Z]=S.useState(""),[M,G]=S.useState(""),[k,Q]=S.useState(!1),[J,ue]=S.useState(!1),[le,te]=S.useState(null),[K,re]=S.useState([]),[we,xe]=S.useState(null),[ke,Me]=S.useState(""),[Fe,Le]=S.useState(null),[Je,D]=S.useState(null),X=Y.length>0&&M.length>0&&Y===M,W=Wt(z),ae=g?$a(W):void 0;if(S.useEffect(()=>{const H=nx();H&&ii(H)},[]),S.useEffect(()=>{if(!g){ue(!1),te(null),re([]),xe(null);return}if(!W){ue(!1),te(null),re([]),xe(null);return}if(ae){ue(!1),te(!1),re([]),xe(ae);return}let H=!1;ue(!0);const F=window.setTimeout(async()=>{const I=await dm(W,r);H||(ue(!1),te(I.available),re(I.suggestions),xe(I.error??null))},300);return()=>{H=!0,window.clearTimeout(F)}},[r,g,W,ae]),s)return f.jsx(wa,{to:"/.account/create-pod/",replace:!0,state:{next:d?"/.account/oidc/consent/":"/.account/account/"}});const oe=[{icon:km,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:Xm,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:ci,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],v=async H=>{H.preventDefault(),p(!0),Le(null),D(null);const F=new FormData(H.currentTarget),I=F.get("email"),ne=F.get("password");try{if(g){const fe=F.get("confirmPassword"),q=Wt(F.get("username")),be=$a(q);if(ne!==fe){alert("Passwords do not match"),p(!1);return}if(be){alert(be),p(!1);return}const Ne=await dm(q,r),Yt=c?.password?.login||"/.account/login/password/",yt=async(it=!1)=>{const ea=await Ex({duplicateEmailRecovery:it,email:I,fetchImpl:fetch,loginUrl:Yt,password:ne});return or(ea.accountToken),ea.accountToken};if(!Ne.available){let it;try{it=await yt()}catch{}if(it){const ea=await mm({accountToken:it,idpIndex:r,username:q});window.location.href=ea.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/";return}te(!1),re(Ne.suggestions),xe(Ne.error??"Username is already taken"),p(!1);return}if(Ne.error){te(!1),xe(Ne.error),p(!1);return}let nt;const Be=await yt().catch(()=>{});if(Be)nt=Be;else try{nt=(await Nx({accountCreateUrl:c?.account?.create||"/.account/account/",email:I,password:ne,idpIndex:r})).accountToken,or(nt)}catch(it){if(!(it instanceof Yu)||it.code!=="EMAIL_ALREADY_REGISTERED")throw it;nt=await yt(!0)}const kt=await mm({accountToken:nt,idpIndex:r,username:q});window.location.href=kt.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/"}else{const fe=await fetch(c?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:I,password:ne})}),q=await fe.json().catch(()=>({}));if(fe.ok){or(typeof q.authorization=="string"?q.authorization:void 0);const be=fe.headers.get("Location");if(q.location){window.location.href=q.location;return}if(be){window.location.href=be;return}const Ne=lx();if(Ne){window.location.href=Ne;return}try{if((await fetch("/.account/oidc/consent/",{headers:Ue(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/create-pod/"}else D(q.message||"Login failed")}}catch(fe){fe?.name==="RegistrationError"&&fe.code==="EMAIL_ALREADY_REGISTERED"?Le(fe.message):fe?.name==="RegistrationError"&&fe.code==="USERNAME_ALREADY_TAKEN"?(te(!1),xe(fe.message)):D(fe.message||"Operation failed")}finally{p(!1)}},R=()=>{A(!g),L(""),Z(""),G(""),ue(!1),te(null),re([]),xe(null),Me(""),Le(null),D(null)},B=async()=>{if(c?.oidc?.cancel){Q(!0);try{const F=await(await fetch(c.oidc.cancel,{method:"POST",headers:Ue({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();F.location&&(window.location.href=F.location)}catch{alert("Failed to cancel"),Q(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:oe.map(({icon:H,title:F,desc:I})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(H,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:F}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:I})]})]},F))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:g?"Create account":"Welcome back"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:g?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:v,children:[Je&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:Je}),f.jsxs("div",{className:"space-y-3",children:[g&&f.jsxs("div",{className:"relative",children:[f.jsx(Qm,{className:an("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",ae&&z.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:z,onChange:H=>L(H.target.value),className:an("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",ae&&z.length>0||le===!1?"border-amber-300 focus:border-amber-500":le?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(vr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:ke,onChange:H=>{Me(H.target.value),Fe&&Le(null)},className:an("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",Fe?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),Fe&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[Fe," ",f.jsx("button",{type:"button",onClick:()=>{A(!1),Le(null),D(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(ni,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:Y,onChange:H=>Z(H.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),g&&f.jsxs("div",{className:"relative",children:[X?f.jsx(Wa,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ni,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:M,onChange:H=>G(H.target.value),className:an("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",X?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),g&&f.jsx("p",{className:an("text-[11px] leading-relaxed",ae&&z.length>0||le===!1?"text-amber-600":le?"text-emerald-600":"text-zinc-500"),children:ae&&z.length>0?ae:J?"Checking username availability...":we||(W&&le===!1?"Username is already taken.":W&&le?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),g&&K.length>0&&!ae&&le===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:K.map(H=>f.jsx("button",{type:"button",onClick:()=>L(H),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:H},H))}),!g&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>y("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:b||k||!!(g&&(ae||J||le===!1)),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:b?f.jsx(pl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[g?"Sign up":"Sign in",f.jsx(Hu,{className:"h-4 w-4"})]})}),h&&!g&&f.jsx("button",{type:"button",onClick:B,disabled:k||b,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:k?f.jsx(pl,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[g?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:R,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:g?"Sign in":"Sign up"})]})})]})})]})]})}function Cx(){const{isLoggedIn:u,hasOidcPending:c}=qt();return u&&c?f.jsx(wa,{to:"/.account/oidc/consent/",replace:!0}):u?f.jsx(wa,{to:"/.account/account/",replace:!0}):f.jsx(br,{})}function Ax(){const u=Pt(),{isLoggedIn:c}=qt(),r=[{icon:km,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Xm,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:ci,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:h})]})]},d))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-2",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",h]})]})]},d))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(sm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(sm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.jsxs("button",{onClick:()=>u(c?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[f.jsx(Ym,{className:"w-4 h-4"}),c?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function ku(u){return u.replace(/\/+$/u,"")+"/"}function za(u){if(u)try{return new URL(u)}catch{return}}function $m(u){const c=za(u);if(c)return ku(c.toString())}function Tx(u){return $m(u)}function Ou(u,c){const r=za(u),s=za(c);if(!r||!s||r.origin!==s.origin)return!1;const d=Mx(s.pathname);return r.pathname===d||r.pathname.startsWith(d)}function Mu(u,c){const r=za(u),s=za(c);return!r||!s?"custom":r.origin===s.origin?"cloud":"local"}function Rx(u){if(!u)return;const c=u.indexOf(".");if(!(c<=0))try{const r=u.slice(0,c),s=JSON.parse(Ox(r)),d=s.spDomain?`https://${s.spDomain}`:s.spUrl,h=$m(d);return h?{root:h,lookupUrl:s.spUrl?ku(s.spUrl):void 0,serviceToken:s.serviceToken,mode:"local"}:void 0}catch{return}}function Dx(u,c){const r=Rx(c);if(r)return r;const s=Tx(u);if(s)return{root:s,mode:"cloud"}}async function _x(u,c,r){if(!r.lookupUrl||!r.serviceToken||c.length===0)return[];const s=await u(new URL("/provision/webids",r.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${r.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:c})});if(!s.ok)return[];const d=await s.json().catch(()=>null);if(!Array.isArray(d?.entries))return[];const h=new Set(c);return d.entries.filter(y=>typeof y.webId=="string"&&typeof y.storageUrl=="string"&&h.has(y.webId)&&Ou(y.storageUrl,r.root)).map(y=>({webId:y.webId,storageUrl:ku(y.storageUrl),storageMode:y.storageMode??Mu(y.webId,y.storageUrl)}))}function Ux(u,c,r){const s=c.filter(h=>Ou(h,r.root));if(s.length===0)return[];const d=[];for(const h of u){const y=Mu(h,r.root);if(r.mode!=="local"&&y!==r.mode)continue;const b=y==="cloud"?s.filter(p=>Lx(p,h)):s.filter(p=>Bx(p,h));for(const p of b)d.push({webId:h,storageUrl:ku(p),storageMode:Mu(h,p)})}return Im(d)}function Im(u){const c=new Set,r=[];for(const s of u){const d=`${s.webId}
12
- ${s.storageUrl}`;c.has(d)||(c.add(d),r.push(s))}return r}function Ox(u){const c=u.replace(/-/gu,"+").replace(/_/gu,"/").padEnd(Math.ceil(u.length/4)*4,"=");return atob(c)}function Mx(u){return!u||u==="/"?"/":u.endsWith("/")?u:`${u}/`}function Lx(u,c){const r=za(u),s=za(c);if(!r||!s||r.origin!==s.origin)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function Bx(u,c){const r=za(u),s=za(c);if(!r||!s)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function Pm(u){try{const r=new URL(u).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function Hx(u){const c=u?.pods;return!c||typeof c!="object"?[]:Object.entries(c).map(([r,s])=>({id:r,resourceUrl:s,name:Pm(r)}))}function qx(u){const c=new Set,r=[];for(const s of u)c.has(s.storageUrl)||(c.add(s.storageUrl),r.push({id:s.storageUrl,name:Pm(s.storageUrl),storageMode:s.storageMode??Mu(s.webId,s.storageUrl)}));return r}function Yx(u){return Array.from(new Set(u.map(c=>c.webId)))}function kx(u){try{const c=new URL(u).pathname.split("/").filter(Boolean);return c[c.length-1]??u}catch{return u.split("/").filter(Boolean).pop()??u}}function hr(u,c){return`sk-${btoa(`${u}:${c}`)}`}function Gx(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:u,hostname:c,origin:r}=window.location;return c.startsWith("id.")?`${u}//api.${c.slice(3)}/v1`:c.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function Xx(){const{controls:u,refetchControls:c,hasOidcPending:r}=qt(),s=Pt(),[d,h]=S.useState(!1),[y,b]=S.useState([]),[p,g]=S.useState([]),[A,z]=S.useState(!1),[L,Y]=S.useState(!1),[Z,M]=S.useState(""),[G,k]=S.useState(!1),[Q,J]=S.useState(""),[ue,le]=S.useState([]),[te,K]=S.useState(null),[re,we]=S.useState(!1),[xe,ke]=S.useState(""),[Me,Fe]=S.useState(""),[Le,Je]=S.useState(null),[D,X]=S.useState(!1),W=S.useRef(null),ae=Gx();S.useEffect(()=>{const q=be=>{W.current&&!W.current.contains(be.target)&&X(!1)};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[]);const oe=async(q,be)=>{try{await navigator.clipboard.writeText(q),Je(be),setTimeout(()=>Je(null),2e3)}catch{}},v=async()=>{try{const q=Dx(window.location.origin,ln());let be=[],Ne=[],Yt=[],yt=[];if(u?.account?.webId){const Be=await fetch(u.account.webId,{headers:Ue(),credentials:"include"});if(Be.ok){const it=(await Be.json()).webIdLinks||{};Ne=Object.keys(it)}else Ne=[]}if(u?.account?.pod){const Be=await fetch(u.account.pod,{headers:Ue(),credentials:"include"});if(Be.ok){const kt=await Be.json();Yt=Hx(kt)}else Yt=[]}q&&(yt=q.serviceToken?await _x(fetch,Ne,q):Ux(Ne,Yt.map(Be=>Be.id),q)),yt=Im(yt),be=Yx(yt);const nt=q?.serviceToken?qx(yt):Yt.filter(Be=>Ou(Be.id,q?.root)).map(Be=>({...Be,storageMode:yt.find(kt=>Ou(Be.id,kt.storageUrl))?.storageMode}));if(b(be),g(nt),z(q?nt.length===0&&Ne.length>0:!1),u?.account?.clientCredentials){const Be=await fetch(u.account.clientCredentials,{headers:Ue(),credentials:"include"});if(Be.ok){const it=(await Be.json()).clientCredentials||{},ea=new Set(be);le(Object.entries(it).map(([ta,gl])=>({id:kx(ta),resourceUrl:ta,webId:typeof gl=="string"?gl:void 0})).filter(ta=>ta.webId&&ea.has(ta.webId)))}else le([])}else le([])}catch(q){console.error("Failed to fetch account data:",q),b([]),g([]),le([]),z(!1)}};S.useEffect(()=>{v()},[u]);const R=async()=>{if(u?.account?.logout){h(!0);try{(await fetch(u.account.logout,{method:"POST",headers:Ue(),credentials:"include"})).ok&&(Br(),Or(),await c(),s("/.account/"))}catch{alert("Logout failed")}finally{h(!1)}}},B=async q=>{if(q.preventDefault(),!(!u?.account?.pod||!Z.trim())){h(!0);try{const be=await fetch(u.account.pod,{method:"POST",headers:Ue({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(Hr(Z))});if(be.ok)M(""),Y(!1),await c(),await v(),r&&s("/.account/oidc/consent/");else{const Ne=await be.json().catch(()=>({}));alert(Ne.message||"Failed to create pod")}}catch{alert("Network error")}finally{h(!1)}}},H=async q=>{if(q.preventDefault(),!(!u?.account?.webId||!Q.trim())){if(ln()){k(!1),alert("Link WebID is disabled in a scoped Local storage session.");return}h(!0);try{const be=await fetch(u.account.webId,{method:"POST",headers:Ue({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:Q.trim()})});if(be.ok)J(""),k(!1),await v();else{const Ne=await be.json().catch(()=>({}));alert(Ne.message||"Failed to link WebID")}}catch{alert("Network error")}finally{h(!1)}}},F=async q=>{if(q.resourceUrl&&confirm(`Delete pod ${q.id}? This cannot be undone.`)){h(!0);try{(await fetch(q.resourceUrl,{method:"DELETE",headers:Ue(),credentials:"include"})).ok?await v():alert("Failed to delete pod")}catch{alert("Network error")}finally{h(!1)}}},I=async q=>{if(q.preventDefault(),!(!u?.account?.clientCredentials||!xe||!Me.trim())){h(!0);try{const be=await fetch(u.account.clientCredentials,{method:"POST",headers:Ue({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:Me.trim(),webId:xe})});if(be.ok){const Ne=await be.json();K({id:Ne.id,secret:Ne.secret}),we(!1),ke(""),Fe(""),await v()}else{const Ne=await be.json().catch(()=>({}));alert(Ne.message||"Failed to create credential")}}catch{alert("Network error")}finally{h(!1)}}},ne=()=>{if(y.length===0){alert("Please create a Pod first to get a WebID");return}ke(y[0]),Fe(""),we(!0)},fe=async q=>{if(confirm("Delete this credential? This cannot be undone.")){h(!0);try{(await fetch(q.resourceUrl,{method:"DELETE",headers:Ue(),credentials:"include"})).ok?await v():alert("Failed to delete credential")}catch{alert("Network error")}finally{h(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(_u,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(Qv,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:R,disabled:d,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(Wv,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(ci,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(_u,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",f.jsx(Hu,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(Gm,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),u?.account?.pod&&f.jsxs("button",{onClick:()=>Y(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(dr,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),L&&f.jsxs("form",{onSubmit:B,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:Z,onChange:q=>M(q.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>Y(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:p.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:A?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:p.map(q=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Hv,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:q.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:q.id}),q.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",q.name]})]})]}),f.jsx("button",{onClick:()=>F(q),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(rm,{className:"w-4 h-4"})})]},q.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(Qm,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),u?.account?.webId&&f.jsxs("button",{onClick:()=>k(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(dr,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),G&&f.jsxs("form",{onSubmit:H,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:Q,onChange:q=>J(q.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>k(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:y.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:y.map(q=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(kv,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:q,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:q})]},q))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(fr,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),u?.account?.clientCredentials&&f.jsxs("button",{onClick:ne,disabled:d,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(dr,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),u?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[re&&f.jsxs("form",{onSubmit:I,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:Me,onChange:q=>Fe(q.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:W,children:[f.jsxs("button",{type:"button",onClick:()=>X(!D),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[f.jsx("span",{className:"truncate text-zinc-700",children:xe||"Select WebID"}),f.jsx(Uv,{className:`w-4 h-4 text-zinc-400 transition-transform ${D?"rotate-180":""}`})]}),D&&f.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:y.map(q=>f.jsx("button",{type:"button",onClick:()=>{ke(q),X(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${xe===q?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:q},q))}),f.jsx("input",{type:"hidden",name:"webId",value:xe,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>we(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"})]})]}),te&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(fr,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:te.id})]}),f.jsx("button",{onClick:()=>oe(te.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:Le==="id"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Au,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:te.secret})]}),f.jsx("button",{onClick:()=>oe(te.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:Le==="secret"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Au,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:hr(te.id,te.secret)})]}),f.jsx("button",{onClick:()=>oe(hr(te.id,te.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:Le==="apikey"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Au,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),f.jsx("button",{onClick:()=>oe(ae,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:Le==="baseurl"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Au,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",hr(te.id,te.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>K(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:ue.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:ue.map(q=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(fr,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:q.id})]}),f.jsx("button",{onClick:()=>fe(q),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(rm,{className:"w-4 h-4"})})]},q.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(ci,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.jsx("a",{href:u?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function Qx(u){for(const c of u){if(!c)continue;const r=Wx(c);if(!r)continue;const s=Wt(r).replace(/[^a-z0-9-]/gu,"-").replace(/-+/gu,"-").replace(/^-+|-+$/gu,"");if(s&&!$a(s))return s}return""}async function Zx(u){const c=u.fetchImpl??fetch,r=Wt(u.username),s=$a(r);if(s)return{status:"invalid",message:s};const d=await Yr(c,u.provisionCode),h=kr(d);if(!h)return{status:"unknown"};const y=new URL(`/provision/pods/${encodeURIComponent(r)}`,h.lookupUrl).toString(),b=await c(y,{headers:{Accept:"application/json",Authorization:`Bearer ${h.serviceToken}`},credentials:"include"}).catch(()=>{});return b?b.status===404?{status:"available",message:"This Pod name is available."}:b.ok?{status:"taken",message:`Pod name "${r}" is already used on this storage.`}:b.status===409?{status:"taken",message:await Sr(b)??`Pod name "${r}" is already used on this storage.`}:{status:"unknown",message:await Sr(b)??"Could not check this Pod name right now."}:{status:"unknown",message:"Could not check this Pod name right now."}}async function Vx(u){const c=u.fetchImpl??fetch,r=Wt(u.username),s=$a(r);if(s)throw new Error(s);const d=await Yr(c,u.provisionCode),h=await c(u.createPodUrl,{method:"POST",headers:{...u.headers,Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Hr(r,d))});if(!h.ok){const g=await Sr(h);throw h.status===409||Fx(g)?new Error("Pod name is already taken. Choose another name."):new Error(g||"Failed to create Pod")}const y=await h.json().catch(()=>{}),b=Jx(y);if(!u.pickWebIdUrl)return b;const p=await e0({fetchImpl:c,headers:u.headers,maxAttempts:u.maxAttempts,pickWebIdUrl:u.pickWebIdUrl,pollIntervalMs:u.pollIntervalMs});return p.length>0?p:b}async function e0(u){const c=u.fetchImpl??fetch,r=Math.max(1,u.maxAttempts??30),s=Math.max(0,u.pollIntervalMs??500);for(let d=0;d<r;d+=1){const h=await Kx(c,u.pickWebIdUrl,u.headers);if(h.length>0)return h;d<r-1&&s>0&&await new Promise(y=>setTimeout(y,s))}return[]}async function Kx(u,c,r){const s=await u(c,{headers:r,credentials:"include"}).catch(()=>{});if(!s?.ok)return[];const d=await s.json().catch(()=>{});return Array.isArray(d?.webIds)?d.webIds.filter(h=>typeof h=="string"&&h.length>0):[]}async function Sr(u){const c=await u.text?.().catch(()=>{});if(c)try{const r=JSON.parse(c);return typeof r.message=="string"?r.message:typeof r.error=="string"?r.error:c}catch{return c}}function Fx(u){return u?/already (?:is )?a resource/iu.test(u)||/already taken/iu.test(u)||/already exists/iu.test(u):!1}function Jx(u){const c=new Set;if(typeof u?.webId=="string"&&u.webId.length>0&&c.add(u.webId),Array.isArray(u?.webIds))for(const r of u.webIds)typeof r=="string"&&r.length>0&&c.add(r);return Array.from(c)}function Wx(u){try{return new URL(u).pathname.split("/").filter(Boolean)[0]}catch{return}}function t0({createPodUrl:u,headers:c,onCreated:r,onError:s,pickWebIdUrl:d,provisionCode:h,webIdCandidates:y=[]}){const[b,p]=S.useState(()=>Qx(y)),[g,A]=S.useState(!1),[z,L]=S.useState(null),[Y,Z]=S.useState({status:"idle"}),M=Wt(b),G=M?$a(M):void 0,k=!!(M&&z===M);S.useEffect(()=>{if(!M){Z({status:"idle"});return}if(k){Z({status:"created",message:"Storage was created. Refresh authorization when the WebID is ready."});return}if(G){Z({status:"invalid",message:G});return}let K=!1;Z({status:"checking",message:"Checking Pod name..."});const re=setTimeout(()=>{Zx({provisionCode:h,username:M}).then(we=>{K||Z(we)})},300);return()=>{K=!0,clearTimeout(re)}},[k,G,M,h]);const Q=async()=>{try{s(null),A(!0);const K=d?await e0({headers:c,pickWebIdUrl:d}):[];K.length>0&&L(null),await r(K)}catch(K){s(K.message||"Failed to refresh authorization state")}finally{A(!1)}},J=async K=>{if(K.preventDefault(),k){await Q();return}if(G){s(G);return}if(Y.status==="taken"){s(Y.message||"This Pod name is already used on this storage.");return}if(Y.status==="checking"){s("Please wait for the Pod name check to finish.");return}if(!u){s("Pod creation endpoint not found. Please reload and try again.");return}try{s(null),A(!0);const re=await Vx({createPodUrl:u,headers:c,pickWebIdUrl:d,provisionCode:h,username:M});L(re.length>0?null:M),p(M),await r(re)}catch(re){s(re.message||"Failed to create Pod")}finally{A(!1)}},ue=(()=>{switch(Y.status){case"available":return"text-emerald-600";case"taken":case"invalid":return"text-red-600";case"checking":return"text-zinc-500";case"created":return"text-amber-600";default:return"text-zinc-400"}})(),le=g||Y.status==="checking"||!k&&Y.status==="taken"||!!G,te=g?k?"Refreshing...":"Creating...":k?"Refresh authorization":"Create storage";return f.jsxs("form",{onSubmit:J,className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 space-y-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-700",children:"Create your first storage"}),f.jsx("p",{className:"text-[11px] text-zinc-500 mt-1",children:"Choose a short Pod name. After it is created, this authorization will continue here."})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 mb-1",children:"Pod name"}),f.jsx("input",{type:"text",value:b,onChange:K=>{p(Wt(K.target.value)),s(null)},placeholder:"alice",disabled:g,className:"w-full px-3 py-2 bg-white border border-zinc-200 rounded-lg text-sm text-zinc-700 focus:border-[#7C4DFF] focus:outline-none disabled:opacity-60",autoComplete:"username",required:!0}),Y.message&&f.jsx("p",{className:`mt-1 text-[11px] ${ue}`,children:Y.message})]}),f.jsx("button",{type:"submit",disabled:le,className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium disabled:opacity-50 transition-colors",children:te})]})}function $x(){const{controls:u,hasOidcPending:c,refetchControls:r}=qt(),s=Pt(),[d,h]=S.useState(!0),[y,b]=S.useState(!1),[p,g]=S.useState([]),[A,z]=S.useState(null),[L,Y]=S.useState(()=>ln()),Z=c?"/.account/oidc/pick-webid/":void 0;return S.useEffect(()=>{let M=!1;return(async()=>{try{const G=await qr(fetch,L);if(M)return;Y(G);const k=await Ix({accountWebIdUrl:u?.account?.webId,provisionCode:G});if(M)return;if(g(k.allWebIds),k.currentStorageWebIds.length>0){s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0});return}b(!0)}catch(G){M||(z(G.message||"Failed to check storage state"),b(!0))}finally{M||h(!1)}})(),()=>{M=!0}},[u?.account?.webId,c,s,L]),f.jsxs(sn,{title:"Create storage",subtitle:"Set up this space before entering the dashboard",icon:Gm,children:[A&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Mr,{className:"w-4 h-4 inline mr-2"}),A]}),d&&f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(pl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}),!d&&y&&f.jsx(t0,{createPodUrl:u?.account?.pod,headers:Ue(),onCreated:async M=>{if(c&&M.length===0){z("Storage was created. Click Refresh authorization when the WebID is ready.");return}await r(),s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0})},onError:z,pickWebIdUrl:Z,provisionCode:L,webIdCandidates:p})]})}async function Ix(u){const c=u.accountWebIdUrl;if(!c)return{allWebIds:[],currentStorageWebIds:[]};const r=await fetch(c,{headers:Ue(),credentials:"include"});if(!r.ok)return{allWebIds:[],currentStorageWebIds:[]};const s=await r.json().catch(()=>({})),d=Object.keys(s.webIdLinks??{});if(d.length===0)return{allWebIds:d,currentStorageWebIds:[]};if(kr(u.provisionCode)){const b=await qu(fetch,d,u.provisionCode);return{allWebIds:d,currentStorageWebIds:(b??[]).map(p=>p.webId)}}const y=await mx(fetch,d,yx(window.location.origin));return{allWebIds:d,currentStorageWebIds:y.map(b=>b.webId)}}function Px(){const{idpIndex:u,isLoggedIn:c,controls:r}=qt(),s=Pt(),[d,h]=S.useState(!0),[y,b]=S.useState(null),[p,g]=S.useState(null),[A,z]=S.useState([]),[L,Y]=S.useState(""),[Z,M]=S.useState(null),[G,k]=S.useState(null),[Q,J]=S.useState(!0),[ue,le]=S.useState(()=>ln()),[te,K]=S.useState(!1),[re,we]=S.useState(!1),xe=`${u}oidc/consent/`,ke=`${u}oidc/pick-webid/`,Me=tb(r,u),Fe=async()=>{const v=await qr(fetch,ue);le(v);const R=await fetch(xe,{headers:Ue(),credentials:"include"});if(console.log("[Consent] GET consent response status:",R.status),R.status===401||R.status===403)return M("Please sign in to continue authorization."),[];if(!R.ok){const q=await R.json().catch(()=>({}));throw new Error(q.message||"Failed to load consent info")}const B=await R.json();b(B.client||{}),g(B.webId||null);const H=await fetch(ke,{headers:Ue(),credentials:"include"});if(!H.ok)return z([]),Y(""),[];const F=await H.json(),I=Array.isArray(F.webIds)?F.webIds.filter(q=>typeof q=="string"&&q.length>0):[],ne=v?await qu(fetch,I,v):void 0,fe=ne?ne.map(q=>q.webId):I;return z(fe),B.webId&&fe.includes(B.webId)?Y(B.webId):fe.length>0?Y(fe[0]):Y(""),fe};S.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),ii(window.location.href),(async()=>{try{await Fe()}catch(v){M(v.message||"Failed to load consent info")}finally{h(!1)}})()},[xe,ke]);const Le=v=>{try{const R=new URL(v),B=R.pathname.split("/").filter(Boolean);return{provider:R.host,podId:B[0]??"-",full:v}}catch{return{provider:"-",podId:"-",full:v}}},Je=async v=>{try{await navigator.clipboard.writeText(v),k(v),setTimeout(()=>k(null),1200)}catch{k(null)}},D=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",headers:Ue(),credentials:"include"}),Or(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},X=async v=>{if(console.log("[Consent] handleConsent called, allow:",v),!v){await W();return}try{if(K(!0),M(null),L&&L!==p){console.log("[Consent] Picking WebID:",L);const I=await fetch(ke,{method:"POST",headers:Ue({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:L,remember:!1})}),ne=await I.json();if(!I.ok)throw new Error(ne.message||"Failed to select WebID");ne.location&&await fetch(ne.location,{credentials:"include"})}const R=await fetch(xe,{method:"POST",headers:Ue({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:Q})}),B=await R.json();if(console.log("[Consent] Response:",R.status,B),console.log("[Consent] Location header:",R.headers.get("Location")),!R.ok)throw new Error(B.message||"Consent failed");const H=R.headers.get("Location"),F=B.location||H;console.log("[Consent] Redirect URL:",F),F?window.location.href=F:(M("Authorization completed but no redirect URL received. The application may need to restart the login flow."),h(!1))}catch(R){M(R.message||"Consent failed")}finally{K(!1)}},W=async()=>{console.log("[Consent] Cancelling...");try{we(!0),M(null);const v=await ab({cancelUrl:Me,headers:Ue({"Content-Type":"application/json",Accept:"application/json"})});window.location.href=v}catch(v){M(v.message||"Authorization cancellation failed")}finally{we(!1)}},ae=eb(A,p,!!ue),oe=te||re;return f.jsxs(sn,{title:"Authorize",subtitle:`${y?.client_name||"Application"} requests access`,icon:ci,children:[!c&&f.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{ii(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),Z&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Mr,{className:"w-4 h-4 inline mr-2"}),Z]}),d?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(pl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(y?.client_uri||y?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[y?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:y.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:y.client_uri})}),y?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:y.client_id,children:["ID: ",y.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),ae.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:Le(ae[0]).provider})]})]}),ae.length===0?f.jsx(t0,{createPodUrl:r?.account?.pod,headers:Ue(),onCreated:async v=>{if(v.length===0){await Fe(),M("Storage was created. Click Refresh authorization when the WebID is ready.");return}z(v),Y(v[0]||"")},onError:M,pickWebIdUrl:ke,provisionCode:ue,webIdCandidates:[p]}):f.jsx("div",{className:"space-y-1",children:ae.map(v=>{const R=Le(v);return f.jsxs("label",{className:an("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",L===v?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:v,checked:L===v,onChange:B=>Y(B.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:R.full,children:R.podId})}),f.jsx("button",{type:"button",onClick:B=>{B.preventDefault(),Je(v)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:G===v?"Copied":"Copy"})]},v)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:Q,onChange:v=>J(v.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>X(!1),disabled:oe,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:re?"Denying...":"Deny"}),f.jsx("button",{onClick:()=>X(!0),disabled:oe||ae.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:te?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{ii(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:D,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function eb(u,c,r){return u.length>0?u:r?[]:c?[c]:[]}function tb(u,c){return u?.oidc?.cancel||`${c}oidc/cancel`}async function ab(u){const c=u.fetchImpl??fetch,r=u.timeoutMs??15e3,s=r>0?new AbortController:null;let d;s&&(d=setTimeout(()=>s.abort(),r));try{const h=await c(u.cancelUrl,{method:"POST",headers:u.headers,credentials:"include",body:JSON.stringify({}),signal:s?.signal});return await lb(h)}catch(h){throw h?.name==="AbortError"?new Error("Authorization cancellation timed out. Please close this tab and retry login."):h}finally{d&&clearTimeout(d)}}async function lb(u){const c=await u.json().catch(()=>null);if(!u.ok)throw new Error(nb(c)||`Authorization cancellation failed (${u.status}).`);const r=a0(c)&&typeof c.location=="string"?c.location.trim():"",s=u.headers.get("Location")?.trim()||"",d=r||s;if(!d)throw new Error("Authorization cancellation did not return a redirect URL.");return d}function nb(u){return a0(u)&&typeof u.message=="string"?u.message:""}function a0(u){return typeof u=="object"&&u!==null}function ib(){const{controls:u,isLoggedIn:c}=qt(),r=Pt(),[s,d]=S.useState(!1),[h,y]=S.useState(!1);if(c)return f.jsx(wa,{to:"/.account/account/",replace:!0});const b=async p=>{p.preventDefault(),d(!0);const g=new FormData(p.currentTarget).get("email");try{await fetch(u?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:g})}),y(!0)}catch{alert("Failed to send reset email")}finally{d(!1)}};return f.jsx(sn,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:vr,showBack:!0,onBack:()=>r("/.account/login/password/"),children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Wa,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),f.jsx("button",{onClick:()=>y(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:b,children:[f.jsxs("div",{className:"relative",children:[f.jsx(vr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),f.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?f.jsx(pl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(Hu,{className:"h-4 w-4"})]})})]})})}function ub(){const{controls:u,isLoggedIn:c}=qt(),r=Pt(),[s]=rv(),[d,h]=S.useState(!1),[y,b]=S.useState(!1),[p,g]=S.useState(null),[A,z]=S.useState(""),[L,Y]=S.useState(""),Z=s.get("rid"),M=A.length>0&&L.length>0&&A===L;if(c)return f.jsx(wa,{to:"/.account/account/",replace:!0});if(!Z)return f.jsx(wa,{to:"/.account/login/password/forgot/",replace:!0});const G=async k=>{if(k.preventDefault(),!M){g("Passwords do not match");return}h(!0),g(null);try{const Q=u?.password?.reset||"/.account/login/password/reset/",J=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:Z,password:A})});if(J.ok)b(!0);else{const ue=await J.json().catch(()=>({}));g(ue.message||"Failed to reset password")}}catch{g("Network error")}finally{h(!1)}};return f.jsx(sn,{title:"Reset Password",subtitle:"Enter your new password.",icon:ni,children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Wa,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:G,children:[p&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:p}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(ni,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:A,onChange:k=>z(k.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),f.jsxs("div",{className:"relative",children:[M?f.jsx(Wa,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ni,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:L,onChange:k=>Y(k.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${M?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),f.jsx("button",{type:"submit",disabled:d||!M,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:d?f.jsx(pl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(Hu,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function cb(){const{controls:u,isLoggedIn:c}=qt(),[r,s]=S.useState([]),[d,h]=S.useState(!0);return S.useEffect(()=>{if(c){window.location.href="/.account/account/";return}(async()=>{try{if(u?.main?.logins){const b=await(await fetch(u.main.logins,{headers:Ue(),credentials:"include"})).json(),p=Object.entries(b.logins||{});if(p.length===1){window.location.href=p[0][1];return}if(p.length===0){window.location.href="/.account/login/password/";return}s(p)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=u?.html?.password?.login||"/.account/login/password/"}finally{h(!1)}})()},[u,c]),d?f.jsx(Zm,{}):f.jsx(sn,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:r.map(([y,b])=>f.jsx("a",{href:b,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:y},y))})})}var l0={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},sb=Object.keys(l0),rb=S.forwardRef(function({control:c,...r},s){const d=S.useRef(null);return S.useLayoutEffect(()=>{const h=d.current;if(!h)return;if(customElements.get("openai-chatkit")){h.setOptions(c.options);return}let y=!0;return customElements.whenDefined("openai-chatkit").then(()=>{y&&h.setOptions(c.options)}),()=>{y=!1}},[c.options]),S.useEffect(()=>{const h=d.current;if(!h)return;const y=new AbortController;for(const b of sb)h.addEventListener(b,p=>{const g=l0[b],A=c.handlers[g];typeof A=="function"&&A(p.detail)},{signal:y.signal});return()=>{y.abort()}},[c.handlers]),f.jsx("openai-chatkit",{ref:h=>{d.current=h,c.setInstance(h),typeof s=="function"?s(h):s&&(s.current=h),d.current},...r})});function pm(u){return u!==null&&typeof u=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(u))||Array.isArray(u)}function wr(u,c,r=new WeakMap){if(Object.is(u,c))return!0;if(typeof u=="function"&&typeof c=="function")return typeof u==typeof c;if(!pm(u)||!pm(c))return!1;const s=r.get(u);if(s&&s===c)return!0;if(r.set(u,c),Array.isArray(u)||Array.isArray(c)){if(!Array.isArray(u)||!Array.isArray(c)||u.length!==c.length)return!1;for(let y=0;y<u.length;y++)if(!wr(u[y],c[y],r))return!1;return!0}const d=Object.keys(u),h=Object.keys(c);if(d.length!==h.length)return!1;for(let y=0;y<d.length;y++){const b=d[y];if(!Object.prototype.hasOwnProperty.call(c,b))return!1;const p=u[b],g=c[b];if(!wr(p,g,r))return!1}return!0}function ob(u){const c=[],r=(h,y)=>y.reduce((b,p)=>b==null?b:b[p],h),s=(h,y)=>(...b)=>{const p=r(u.current,h),g=p?.[y];if(typeof g=="function")return g.apply(p,b)},d=h=>{if(typeof h=="function"){const y=c[c.length-1],b=c.slice(0,-1);return s(b,y)}if(Array.isArray(h)){const y=c.length,b=new Array(h.length);for(let p=0;p<h.length;p++)c[y]=p,b[p]=d(h[p]);return c.length=y,b}if(h&&typeof h=="object"){const y=c.length,b={};for(const p of Object.keys(h))c[y]=p,b[p]=d(h[p]);return c.length=y,b}return h};return d(u.current)}function fb(u){const c=mr.useRef(u);c.current=u;const r=mr.useRef(null);return(!r.current||!wr(r.current.snapshot,u))&&(r.current={snapshot:u,shaped:ob(c)}),r.current.shaped}var db=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function hb(u){const c=S.useRef(null),r=fb(u),s=S.useMemo(()=>db.reduce((y,b)=>(y[b]=(...p)=>{if(!c.current){console.warn("ChatKit element is not mounted");return}return c.current[b](...p)},y),{}),[]),d=S.useCallback(y=>{c.current=y},[]),h=S.useMemo(()=>{const y={},b={};for(const[p,g]of Object.entries(r))/^on[A-Z]/.test(p)&&p!=="onClientTool"?b[p]=g:y[p]=g;return{setInstance:d,options:y,handlers:b}},[r,d]);return S.useMemo(()=>({...s,control:h,ref:c}),[s,h])}const gm="http://localhost:3000/chatkit",vm="domain_pk_localhost_dev";function mb(){const{isLoggedIn:u}=qt(),[c,r]=S.useState(""),[s,d]=S.useState(!1),h=S.useCallback(async(b,p={})=>{const g={...p.headers||{}};return c?g.Authorization=`Bearer ${c}`:Object.assign(g,Ue(g)),fetch(b,{...p,headers:g,credentials:"include"})},[c]),y=hb({api:{url:gm,domainKey:vm,fetch:h},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>d(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:c?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:u?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:c,onChange:b=>r(b.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{onClick:()=>d(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(rb,{control:y.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",gm]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",vm]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",c?"API Key":u?"Session":"None"]})]})]})]})}function yb(){const{isInitializing:u,initError:c}=qt();return u?f.jsx(Zm,{}):c?f.jsx(ax,{message:c}):f.jsxs(Ug,{children:[f.jsx(Et,{path:"/.account/",element:f.jsx(Cx,{})}),f.jsx(Et,{path:"/.account/about/",element:f.jsx(Ax,{})}),f.jsx(Et,{path:"/.account/account/",element:f.jsx(om,{allowOidcPending:!0,children:f.jsx(Xx,{})})}),f.jsx(Et,{path:"/.account/create-pod/",element:f.jsx(om,{allowOidcPending:!0,children:f.jsx($x,{})})}),f.jsx(Et,{path:"/chat/",element:f.jsx(mb,{})}),f.jsx(Et,{path:"/.account/login/",element:f.jsx(cb,{})}),f.jsx(Et,{path:"/.account/login/password/",element:f.jsx(br,{initialIsRegister:!1})}),f.jsx(Et,{path:"/.account/login/password/register/",element:f.jsx(br,{initialIsRegister:!0})}),f.jsx(Et,{path:"/.account/login/password/forgot/",element:f.jsx(ib,{})}),f.jsx(Et,{path:"/.account/login/password/reset/",element:f.jsx(ub,{})}),f.jsx(Et,{path:"/.account/oidc/consent/",element:f.jsx(Px,{})}),f.jsx(Et,{path:"*",element:f.jsx(wa,{to:"/.account/",replace:!0})})]})}function pb(){return f.jsx(nv,{children:f.jsx(jv,{children:f.jsx(yb,{})})})}try{const u=new URLSearchParams(location.search).get("provisionCode");u&&sessionStorage.setItem("provisionCode",u)}catch{}Lp.createRoot(document.getElementById("root")).render(f.jsx(mr.StrictMode,{children:f.jsx(pb,{})}));
11
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let C=qt(),z;if(c){let L=typeof c=="string"?cn(c):c;Be(p==="/"||L.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${L.pathname}" was given in the \`location\` prop.`),z=L}else z=C;let B=z.pathname||"/",Y=B;if(p!=="/"){let L=p.replace(/^\//,"").split("/");Y="/"+B.replace(/^\//,"").split("/").slice(L.length).join("/")}let Q=r&&r.state.matches.length?r.state.matches.map(L=>Object.assign(L,{route:r.manifest[L.route.id]||L.route})):Rm(i,{pathname:Y});Ht(g||Q!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),Ht(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=Hg(Q&&Q.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:Vt([p,s.encodeLocation?s.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?p:Vt([p,s.encodeLocation?s.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),d,r);return c&&O?S.createElement(oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...z},navigationType:"POP"}},O):O}function Og(){let i=Xg(),c=xg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},c),r?S.createElement("pre",{style:d},r):null,y)}var Mg=S.createElement(Og,null),Zm=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,c){return c.location!==i.location||c.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:c.error,location:c.location,revalidation:i.revalidation||c.revalidation}}componentDidCatch(i,c){this.props.onError?this.props.onError(i,c):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=Rg(i.digest);r&&(i=r)}let c=i!==void 0?S.createElement(Pt.Provider,{value:this.props.routeContext},S.createElement(_r.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Lg,{error:i},c):c}};Zm.contextType=qm;var mr=new WeakMap;function Lg({children:i,error:c}){let{basename:r}=S.useContext(Ct);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let s=Tg(c.digest);if(s){let d=mr.get(c);if(d)throw d;let h=Bm(s.location,r),y=h.absoluteURL||h.to;if(jg(y))throw new Error("Invalid redirect location");if(Lm&&!mr.get(c))if(h.isExternal||s.reloadDocument)window.location.href=y;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw mr.set(c,x),x}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return i}function Bg({routeContext:i,match:c,children:r}){let s=S.useContext(sn);return s&&s.static&&s.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=c.route.id),S.createElement(Pt.Provider,{value:i},r)}function Hg(i,c=[],r){let s=r?.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(c.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,h=s?.errors;if(h!=null){let C=d.findIndex(z=>z.route.id&&h?.[z.route.id]!==void 0);Be(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let y=!1,x=-1;if(r&&s){y=s.renderFallback;for(let C=0;C<d.length;C++){let z=d[C];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(x=C),z.route.id){let{loaderData:B,errors:Y}=s,Q=z.route.loader&&!B.hasOwnProperty(z.route.id)&&(!Y||Y[z.route.id]===void 0);if(z.route.lazy||Q){r.isStatic&&(y=!0),x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}}let p=r?.onError,g=s&&p?(C,z)=>{p(C,{location:s.location,params:s.matches?.[0]?.params??{},pattern:bg(s.matches),errorInfo:z})}:void 0;return d.reduceRight((C,z,B)=>{let Y,Q=!1,O=null,L=null;s&&(Y=h&&z.route.id?h[z.route.id]:void 0,O=z.route.errorElement||Mg,y&&(x<0&&B===0?(Vm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Q=!0,L=null):x===B&&(Q=!0,L=z.route.hydrateFallbackElement||null)));let X=c.concat(d.slice(0,B+1)),W=()=>{let F;return Y?F=O:Q?F=L:z.route.Component?F=S.createElement(z.route.Component,null):z.route.element?F=z.route.element:F=C,S.createElement(Bg,{match:z,routeContext:{outlet:C,matches:X,isDataRoute:s!=null},children:F})};return s&&(z.route.ErrorBoundary||z.route.errorElement||B===0)?S.createElement(Zm,{location:s.location,revalidation:s.revalidation,component:O,error:Y,children:W(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:g}):W()},null)}function Ur(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qg(i){let c=S.useContext(sn);return Be(c,Ur(i)),c}function kg(i){let c=S.useContext(Yu);return Be(c,Ur(i)),c}function Yg(i){let c=S.useContext(Pt);return Be(c,Ur(i)),c}function Or(i){let c=Yg(i),r=c.matches[c.matches.length-1];return Be(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function Gg(){return Or("useRouteId")}function Xg(){let i=S.useContext(_r),c=kg("useRouteError"),r=Or("useRouteError");return i!==void 0?i:c.errors?.[r]}function Qg(){let{router:i}=qg("useNavigate"),c=Or("useNavigate"),r=S.useRef(!1);return Xm(()=>{r.current=!0}),S.useCallback(async(d,h={})=>{Ht(r.current,Gm),r.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:c,...h}))},[i,c])}var hm={};function Vm(i,c,r){!c&&!hm[i]&&(hm[i]=!0,Ht(!1,r))}S.memo(Zg);function Zg({routes:i,manifest:c,future:r,state:s,isStatic:d,onError:h}){return Qm(i,void 0,{manifest:c,state:s,isStatic:d,onError:h})}function wa({to:i,replace:c,state:r,relative:s}){Be(rn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=S.useContext(Ct);Ht(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=S.useContext(Pt),{pathname:y}=qt(),x=ea(),p=ku(i,Dr(h),y,s==="path"),g=JSON.stringify(p);return S.useEffect(()=>{x(JSON.parse(g),{replace:c,state:r,relative:s})},[x,g,s,c,r]),null}function Nt(i){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Vg({basename:i="/",children:c=null,location:r,navigationType:s="POP",navigator:d,static:h=!1,useTransitions:y}){Be(!rn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:x,navigator:d,static:h,useTransitions:y,future:{}}),[x,d,h,y]);typeof r=="string"&&(r=cn(r));let{pathname:g="/",search:C="",hash:z="",state:B=null,key:Y="default",mask:Q}=r,O=S.useMemo(()=>{let L=Sa(g,x);return L==null?null:{location:{pathname:L,search:C,hash:z,state:B,key:Y,mask:Q},navigationType:s}},[x,g,C,z,B,Y,s,Q]);return Ht(O!=null,`<Router basename="${x}"> is not able to match the URL "${g}${C}${z}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:S.createElement(Ct.Provider,{value:p},S.createElement(oi.Provider,{children:c,value:O}))}function Kg({children:i,location:c}){return Ug(wr(i),c)}function wr(i,c=[]){let r=[];return S.Children.forEach(i,(s,d)=>{if(!S.isValidElement(s))return;let h=[...c,d];if(s.type===S.Fragment){r.push.apply(r,wr(s.props.children,h));return}Be(s.type===Nt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!s.props.index||!s.props.children,"An index route cannot have child routes.");let y={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(y.children=wr(s.props.children,h)),r.push(y)}),r}var Du="get",_u="application/x-www-form-urlencoded";function Gu(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Fg(i){return Gu(i)&&i.tagName.toLowerCase()==="button"}function Jg(i){return Gu(i)&&i.tagName.toLowerCase()==="form"}function $g(i){return Gu(i)&&i.tagName.toLowerCase()==="input"}function Wg(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Ig(i,c){return i.button===0&&(!c||c==="_self")&&!Wg(i)}function jr(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((c,r)=>{let s=i[r];return c.concat(Array.isArray(s)?s.map(d=>[r,d]):[[r,s]])},[]))}function Pg(i,c){let r=jr(i);return c&&c.forEach((s,d)=>{r.has(d)||c.getAll(d).forEach(h=>{r.append(d,h)})}),r}var Tu=null;function ev(){if(Tu===null)try{new FormData(document.createElement("form"),0),Tu=!1}catch{Tu=!0}return Tu}var tv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yr(i){return i!=null&&!tv.has(i)?(Ht(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):i}function av(i,c){let r,s,d,h,y;if(Jg(i)){let x=i.getAttribute("action");s=x?Sa(x,c):null,r=i.getAttribute("method")||Du,d=yr(i.getAttribute("enctype"))||_u,h=new FormData(i)}else if(Fg(i)||$g(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||x.getAttribute("action");if(s=p?Sa(p,c):null,r=i.getAttribute("formmethod")||x.getAttribute("method")||Du,d=yr(i.getAttribute("formenctype"))||yr(x.getAttribute("enctype"))||_u,h=new FormData(x,i),!ev()){let{name:g,type:C,value:z}=i;if(C==="image"){let B=g?`${g}.`:"";h.append(`${B}x`,"0"),h.append(`${B}y`,"0")}else g&&h.append(g,z)}}else{if(Gu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Du,s=null,d=_u,y=i}return h&&d==="text/plain"&&(y=h,h=void 0),{action:s,method:r.toLowerCase(),encType:d,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mr(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function Km(i,c,r,s){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:c&&Sa(d.pathname,c)==="/"?d.pathname=`${Ou(c)}/_root.${s}`:d.pathname=`${Ou(d.pathname)}.${s}`,d}async function lv(i,c){if(i.id in c)return c[i.id];try{let r=await import(i.module);return c[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nv(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function iv(i,c,r){let s=await Promise.all(i.map(async d=>{let h=c.routes[d.route.id];if(h){let y=await lv(h,r);return y.links?y.links():[]}return[]}));return rv(s.flat(1).filter(nv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function mm(i,c,r,s,d,h){let y=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,x=(p,g)=>r[g].pathname!==p.pathname||r[g].route.path?.endsWith("*")&&r[g].params["*"]!==p.params["*"];return h==="assets"?c.filter((p,g)=>y(p,g)||x(p,g)):h==="data"?c.filter((p,g)=>{let C=s.routes[p.route.id];if(!C||!C.hasLoader)return!1;if(y(p,g)||x(p,g))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function uv(i,c,{includeHydrateFallback:r}={}){return cv(i.map(s=>{let d=c.routes[s.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function cv(i){return[...new Set(i)]}function sv(i){let c={},r=Object.keys(i).sort();for(let s of r)c[s]=i[s];return c}function rv(i,c){let r=new Set;return new Set(c),i.reduce((s,d)=>{let h=JSON.stringify(sv(d));return r.has(h)||(r.add(h),s.push({key:h,link:d})),s},[])}function Lr(){let i=S.useContext(sn);return Mr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function ov(){let i=S.useContext(Yu);return Mr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Br=S.createContext(void 0);Br.displayName="FrameworkContext";function Xu(){let i=S.useContext(Br);return Mr(i,"You must render this element inside a <HydratedRouter> element"),i}function fv(i,c){let r=S.useContext(Br),[s,d]=S.useState(!1),[h,y]=S.useState(!1),{onFocus:x,onBlur:p,onMouseEnter:g,onMouseLeave:C,onTouchStart:z}=c,B=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let O=X=>{X.forEach(W=>{y(W.isIntersecting)})},L=new IntersectionObserver(O,{threshold:.5});return B.current&&L.observe(B.current),()=>{L.disconnect()}}},[i]),S.useEffect(()=>{if(s){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[s]);let Y=()=>{d(!0)},Q=()=>{d(!1),y(!1)};return r?i!=="intent"?[h,B,{}]:[h,B,{onFocus:ii(x,Y),onBlur:ii(p,Q),onMouseEnter:ii(g,Y),onMouseLeave:ii(C,Q),onTouchStart:ii(z,Y)}]:[!1,B,{}]}function ii(i,c){return r=>{i&&i(r),r.defaultPrevented||c(r)}}function dv({page:i,...c}){let r=zg(),{nonce:s}=Xu(),{router:d}=Lr(),h=S.useMemo(()=>Rm(d.routes,i,d.basename),[d.routes,i,d.basename]);return h?(c.nonce==null&&s&&(c={...c,nonce:s}),r?S.createElement(mv,{page:i,matches:h,...c}):S.createElement(yv,{page:i,matches:h,...c})):null}function hv(i){let{manifest:c,routeModules:r}=Xu(),[s,d]=S.useState([]);return S.useEffect(()=>{let h=!1;return iv(i,c,r).then(y=>{h||d(y)}),()=>{h=!0}},[i,c,r]),s}function mv({page:i,matches:c,...r}){let s=qt(),{future:d}=Xu(),{basename:h}=Lr(),y=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let x=Km(i,h,d.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,g=[];for(let C of c)typeof C.route.shouldRevalidate=="function"?p=!0:g.push(C.route.id);return p&&g.length>0&&x.searchParams.set("_routes",g.join(",")),[x.pathname+x.search]},[h,d.v8_trailingSlashAwareDataRequests,i,s,c]);return S.createElement(S.Fragment,null,y.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})))}function yv({page:i,matches:c,...r}){let s=qt(),{future:d,manifest:h,routeModules:y}=Xu(),{basename:x}=Lr(),{loaderData:p,matches:g}=ov(),C=S.useMemo(()=>mm(i,c,g,h,s,"data"),[i,c,g,h,s]),z=S.useMemo(()=>mm(i,c,g,h,s,"assets"),[i,c,g,h,s]),B=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let O=new Set,L=!1;if(c.forEach(W=>{let F=h.routes[W.route.id];!F||!F.hasLoader||(!C.some(le=>le.route.id===W.route.id)&&W.route.id in p&&y[W.route.id]?.shouldRevalidate||F.hasClientLoader?L=!0:O.add(W.route.id))}),O.size===0)return[];let X=Km(i,x,d.v8_trailingSlashAwareDataRequests,"data");return L&&O.size>0&&X.searchParams.set("_routes",c.filter(W=>O.has(W.route.id)).map(W=>W.route.id).join(",")),[X.pathname+X.search]},[x,d.v8_trailingSlashAwareDataRequests,p,s,h,C,c,i,y]),Y=S.useMemo(()=>uv(z,h),[z,h]),Q=hv(z);return S.createElement(S.Fragment,null,B.map(O=>S.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),Y.map(O=>S.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),Q.map(({key:O,link:L})=>S.createElement("link",{key:O,nonce:r.nonce,...L,crossOrigin:L.crossOrigin??r.crossOrigin})))}function pv(...i){return c=>{i.forEach(r=>{typeof r=="function"?r(c):r!=null&&(r.current=c)})}}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gv&&(window.__reactRouterVersion="7.18.2")}catch{}function vv({basename:i,children:c,useTransitions:r,window:s}){let d=S.useRef();d.current==null&&(d.current=$p({window:s,v5Compat:!0}));let h=d.current,[y,x]=S.useState({action:h.action,location:h.location}),p=S.useCallback(g=>{r===!1?x(g):S.startTransition(()=>x(g))},[r]);return S.useLayoutEffect(()=>h.listen(p),[h,p]),S.createElement(Vg,{basename:i,children:c,location:y.location,navigationType:y.action,navigator:h,useTransitions:r})}var Mu=S.forwardRef(function({onClick:c,discover:r="render",prefetch:s="none",relative:d,reloadDocument:h,replace:y,mask:x,state:p,target:g,to:C,preventScrollReset:z,viewTransition:B,defaultShouldRevalidate:Y,...Q},O){let{basename:L,navigator:X,useTransitions:W}=S.useContext(Ct),F=typeof C=="string"&&Rr.test(C),le=Bm(C,L);C=le.to;let ne=Dg(C,{relative:d}),te=qt(),Z=null;if(x){let Ee=ku(x,[],te.mask?te.mask.pathname:"/",!0);L!=="/"&&(Ee.pathname=Ee.pathname==="/"?L:Vt([L,Ee.pathname])),Z=X.createHref(Ee)}let[re,ze,Se]=fv(s,Q),He=wv(C,{replace:y,mask:x,state:p,target:g,preventScrollReset:z,relative:d,viewTransition:B,defaultShouldRevalidate:Y,useTransitions:W});function _e(Ee){c&&c(Ee),Ee.defaultPrevented||He(Ee)}let qe=!(le.isExternal||h),De=S.createElement("a",{...Q,...Se,href:(qe?Z:void 0)||le.absoluteURL||ne,onClick:qe?_e:c,ref:pv(O,ze),target:g,"data-discover":!F&&r==="render"?"true":void 0});return re&&!F?S.createElement(S.Fragment,null,De,S.createElement(dv,{page:ne})):De});Mu.displayName="Link";var xv=S.forwardRef(function({"aria-current":c="page",caseSensitive:r=!1,className:s="",end:d=!1,style:h,to:y,viewTransition:x,children:p,...g},C){let z=fi(y,{relative:g.relative}),B=qt(),Y=S.useContext(Yu),{navigator:Q,basename:O}=S.useContext(Ct),L=Y!=null&&Av(z)&&x===!0,X=Q.encodeLocation?Q.encodeLocation(z).pathname:z.pathname,W=B.pathname,F=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;r||(W=W.toLowerCase(),F=F?F.toLowerCase():null,X=X.toLowerCase()),F&&O&&(F=Sa(F,O)||F);const le=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let ne=W===X||!d&&W.startsWith(X)&&W.charAt(le)==="/",te=F!=null&&(F===X||!d&&F.startsWith(X)&&F.charAt(X.length)==="/"),Z={isActive:ne,isPending:te,isTransitioning:L},re=ne?c:void 0,ze;typeof s=="function"?ze=s(Z):ze=[s,ne?"active":null,te?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Se=typeof h=="function"?h(Z):h;return S.createElement(Mu,{...g,"aria-current":re,className:ze,ref:C,style:Se,to:y,viewTransition:x},typeof p=="function"?p(Z):p)});xv.displayName="NavLink";var bv=S.forwardRef(({discover:i="render",fetcherKey:c,navigate:r,reloadDocument:s,replace:d,state:h,method:y=Du,action:x,onSubmit:p,relative:g,preventScrollReset:C,viewTransition:z,defaultShouldRevalidate:B,...Y},Q)=>{let{useTransitions:O}=S.useContext(Ct),L=Nv(),X=Cv(x,{relative:g}),W=y.toLowerCase()==="get"?"get":"post",F=typeof x=="string"&&Rr.test(x),le=ne=>{if(p&&p(ne),ne.defaultPrevented)return;ne.preventDefault();let te=ne.nativeEvent.submitter,Z=te?.getAttribute("formmethod")||y,re=()=>L(te||ne.currentTarget,{fetcherKey:c,method:Z,navigate:r,replace:d,state:h,relative:g,preventScrollReset:C,viewTransition:z,defaultShouldRevalidate:B});O&&r!==!1?S.startTransition(()=>re()):re()};return S.createElement("form",{ref:Q,method:W,action:X,onSubmit:s?p:le,...Y,"data-discover":!F&&i==="render"?"true":void 0})});bv.displayName="Form";function Sv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fm(i){let c=S.useContext(sn);return Be(c,Sv(i)),c}function wv(i,{target:c,replace:r,mask:s,state:d,preventScrollReset:h,relative:y,viewTransition:x,defaultShouldRevalidate:p,useTransitions:g}={}){let C=ea(),z=qt(),B=fi(i,{relative:y});return S.useCallback(Y=>{if(Ig(Y,c)){Y.preventDefault();let Q=r!==void 0?r:si(z)===si(B),O=()=>C(i,{replace:Q,mask:s,state:d,preventScrollReset:h,relative:y,viewTransition:x,defaultShouldRevalidate:p});g?S.startTransition(()=>O()):O()}},[z,C,B,r,s,d,c,i,h,y,x,p,g])}function jv(i){Ht(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let c=S.useRef(jr(i)),r=S.useRef(!1),s=qt(),d=S.useMemo(()=>Pg(s.search,r.current?null:c.current),[s.search]),h=ea(),y=S.useCallback((x,p)=>{const g=jr(typeof x=="function"?x(new URLSearchParams(d)):x);r.current=!0,h("?"+g,p)},[h,d]);return[d,y]}var zv=0,Ev=()=>`__${String(++zv)}__`;function Nv(){let{router:i}=Fm("useSubmit"),{basename:c}=S.useContext(Ct),r=Gg(),s=i.fetch,d=i.navigate;return S.useCallback(async(h,y={})=>{let{action:x,method:p,encType:g,formData:C,body:z}=av(h,c);if(y.navigate===!1){let B=y.fetcherKey||Ev();await s(B,r,y.action||x,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:z,formMethod:y.method||p,formEncType:y.encType||g,flushSync:y.flushSync})}else await d(y.action||x,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:z,formMethod:y.method||p,formEncType:y.encType||g,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[s,d,c,r])}function Cv(i,{relative:c}={}){let{basename:r}=S.useContext(Ct),s=S.useContext(Pt);Be(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),h={...fi(i||".",{relative:c})},y=qt();if(i==null){h.search=y.search;let x=new URLSearchParams(h.search),p=x.getAll("index");if(p.some(C=>C==="")){x.delete("index"),p.filter(z=>z).forEach(z=>x.append("index",z));let C=x.toString();h.search=C?`?${C}`:""}}return(!i||i===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:Vt([r,h.pathname])),si(h)}function Av(i,{relative:c}={}){let r=S.useContext(km);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fm("useViewTransitionState"),d=fi(i,{relative:c});if(!r.isTransitioning)return!1;let h=Sa(r.currentLocation.pathname,s)||r.currentLocation.pathname,y=Sa(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Uu(d.pathname,y)!=null||Uu(d.pathname,h)!=null}const Hr="css-account",qr="xpod.cssAccountToken",Tv="CSS-Account-Token";function kr(){return typeof window<"u"&&typeof document<"u"}function Rv(){if(!kr())return;const i=document.cookie.split(";");for(const c of i){const[r,...s]=c.trim().split("=");if(r===Hr){const d=s.join("=");try{return d?decodeURIComponent(d):void 0}catch{return}}}}function Jm(i){kr()&&(document.cookie=`${Hr}=${encodeURIComponent(i)}; Path=/; SameSite=Lax`)}function Dv(){kr()&&(document.cookie=`${Hr}=; Path=/; SameSite=Lax; Max-Age=0`)}function _v(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(qr)||void 0}catch{return}}function Uv(i){if(!(typeof window>"u"))try{window.sessionStorage.setItem(qr,i)}catch{}}function Ov(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(qr)}catch{}}function pr(i){i&&(Uv(i),Jm(i))}function Yr(){Ov(),Dv()}function Mv(){const i=Rv();if(i)return i;const c=_v();if(c)return Jm(c),c}function Kt(i,c={Accept:"application/json"}){const r={...c};return i&&!Lv(r,"Authorization")&&(r.Authorization=`${Tv} ${i}`),r}function Le(i={Accept:"application/json"}){return Kt(Mv(),i)}function Lv(i,c){const r=c.toLowerCase();return Object.keys(i).some(s=>s.toLowerCase()===r)}const $m=S.createContext(null);function kt(){const i=S.useContext($m);if(!i)throw new Error("useAuth must be used within AuthProvider");return i}function Bv({children:i}){const c="/.account/",[r,s]=S.useState(null),[d,h]=S.useState(!0),[y,x]=S.useState(null),[p,g]=S.useState(!1),C=!!r?.account?.logout,z=d,B=S.useCallback(async()=>{try{const O=await fetch("/.account/oidc/consent/",{headers:Le(),credentials:"include"});return O.ok?!!(await O.json()).client:!1}catch{return!1}},[]),Y=S.useCallback(async()=>{try{const O=await fetch(c,{headers:Le(),credentials:"include"});if(O.ok){const L=await O.json().catch(()=>({}));let X=!1;L.controls?.account?.logout&&(X=await B()),g(X),s(L.controls||{})}else{if(O.status===401||O.status===403){Yr(),g(!1),s({});return}x(`Failed to load configuration (Status: ${O.status})`)}}catch{x("Network error: Could not connect to authentication server")}},[B,c]);S.useEffect(()=>{(async()=>(await Y(),h(!1)))()},[Y]);const Q=S.useCallback(async()=>{await Y()},[Y]);return f.jsx($m.Provider,{value:{controls:r,isInitializing:d,initError:y,idpIndex:c,isLoggedIn:C,authenticating:z,hasOidcPending:p,refetchControls:Q},children:i})}const Wm=(...i)=>i.filter((c,r,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===r).join(" ").trim();const Hv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const qv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,s)=>s?s.toUpperCase():r.toLowerCase());const ym=i=>{const c=qv(i);return c.charAt(0).toUpperCase()+c.slice(1)};var kv={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 Yv=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};const Gv=S.forwardRef(({color:i="currentColor",size:c=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:d="",children:h,iconNode:y,...x},p)=>S.createElement("svg",{ref:p,...kv,width:c,height:c,stroke:i,strokeWidth:s?Number(r)*24/Number(c):r,className:Wm("lucide",d),...!h&&!Yv(x)&&{"aria-hidden":"true"},...x},[...y.map(([g,C])=>S.createElement(g,C)),...Array.isArray(h)?h:[h]]));const Xe=(i,c)=>{const r=S.forwardRef(({className:s,...d},h)=>S.createElement(Gv,{ref:h,iconNode:c,className:Wm(`lucide-${Hv(ym(i))}`,`lucide-${i}`,s),...d}));return r.displayName=ym(i),r};const Xv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Im=Xe("arrow-left",Xv);const Qv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qu=Xe("arrow-right",Qv);const Zv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$a=Xe("check",Zv);const Vv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kv=Xe("chevron-down",Vv);const Fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Gr=Xe("circle-alert",Fv);const Jv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pm=Xe("clock",Jv);const $v=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ru=Xe("copy",$v);const Wv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Iv=Xe("database",Wv);const Pv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],pm=Xe("external-link",Pv);const ex=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],tx=Xe("globe",ex);const ax=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],e0=Xe("hard-drive",ax);const lx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],nx=Xe("info",lx);const ix=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],gr=Xe("key",ix);const ux=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],t0=Xe("layers",ux);const cx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],gl=Xe("loader-circle",cx);const sx=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ui=Xe("lock",sx);const rx=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ox=Xe("log-out",rx);const fx=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zr=Xe("mail",fx);const dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vr=Xe("plus",dx);const hx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ri=Xe("shield",hx);const mx=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],gm=Xe("trash-2",mx);const yx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],a0=Xe("user",yx);function l0(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(gl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function on({children:i,title:c,subtitle:r,icon:s,showBack:d,onBack:h}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[d?f.jsx("button",{onClick:h,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:f.jsx(Im,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?f.jsx(s,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:c}),r&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),i]})]})}function px({message:i}){return f.jsx(on,{title:"Error",subtitle:i,icon:Gr,children:f.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const Er="xpod:returnTo";function ci(i){try{i&&sessionStorage.setItem(Er,i)}catch{return}}function gx(){try{const i=sessionStorage.getItem(Er);return i&&sessionStorage.removeItem(Er),i}catch{return null}}function vx(){try{const i=new URLSearchParams(window.location.search).get("returnTo");return!i||new URL(i,window.location.origin).origin!==window.location.origin?null:i}catch{return null}}function xx(i,c,r=!1){return i&&c&&!r}function vm({children:i,allowOidcPending:c=!1}){const{isLoggedIn:r,hasOidcPending:s}=kt(),d=qt();return xx(r,s,c)?f.jsx(wa,{to:"/.account/oidc/consent/",replace:!0}):r?f.jsx(f.Fragment,{children:i}):(ci(d.pathname+d.search),f.jsx(wa,{to:"/.account/login/password/",replace:!0}))}function n0(i){var c,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(c=0;c<d;c++)i[c]&&(r=n0(i[c]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ln(){for(var i,c,r=0,s="",d=arguments.length;r<d;r++)(i=arguments[r])&&(c=n0(i))&&(s&&(s+=" "),s+=c);return s}const xm=3,Lu=63,bx=/^[a-z0-9-]+$/;function It(i){return i.trim().toLowerCase()}function Wa(i){const c=It(i);if(!c)return"Username is required";if(c.length<xm||c.length>Lu)return`Username must be ${xm}-${Lu} characters`;if(!bx.test(c))return"Username can only contain lowercase letters, numbers, and hyphens";if(c.startsWith("-")||c.endsWith("-"))return"Username cannot start or end with a hyphen"}function Sx(i,c=5){const s=It(i).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,Lu-3)||"user",d=Array.from({length:Math.max(c,3)},(h,y)=>`${s}-${y+1}`);return Array.from(new Set(d.map(h=>h.slice(0,Lu)).filter(h=>!Wa(h)))).slice(0,c)}function wx(i){if(typeof window<"u")return"/api/v1/identity";try{const c=new URL(i);return c.hostname.startsWith("id.")?`${c.protocol}//api.${c.hostname.slice(3)}/api/v1/identity`:`${c.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function i0(i,c,r){const s=`${wx(c)}/${encodeURIComponent(i)}`;try{const d=await r(s,{headers:{Accept:"application/json"},credentials:"include"});if(d.status===404)return!1;if(d.ok||d.status===409)return!0}catch{}}async function jx(i,c,r,s=3){const d=Sx(i,Math.max(s*2,5)),h=[];for(const y of d)if(await i0(y,c,r)===!1&&h.push(y),h.length>=s)break;return h}async function bm(i,c,r=fetch){const s=It(i),d=Wa(s);if(d)return{available:!1,suggestions:[],error:d};const h=await i0(s,c,r);return h===!1?{available:!0,suggestions:[]}:h===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await jx(s,c,r)}}function Zu(i){return typeof i=="object"&&i!==null}function Bu(i){return Zu(i)&&typeof i.message=="string"?i.message:""}function pl(i,c){return i instanceof Error&&i.message?i.message:c}function u0(){try{const i=sessionStorage.getItem("provisionCode")?.trim();return i||void 0}catch{return}}function zx(i){const c=i.split(".")[0];if(!c)return!0;try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return!0;const d=JSON.parse(globalThis.atob(s));return typeof d.exp=="number"?d.exp>Math.floor(Date.now()/1e3):!0}catch{return!0}}function Xr(i){const c=i?.trim();if(c)return zx(c)?c:void 0}function un(){const i=u0(),c=Xr(i);return i&&!c&&Qr(),c}function Ex(i){try{sessionStorage.setItem("provisionCode",i)}catch{}}function Qr(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Zr(i,c=un()){const r={name:i.trim()};return c&&(r.settings={provisionCode:c}),r}async function Vr(i=fetch,c){const r=c?.trim()||u0(),s=Xr(r);if(r||typeof window<"u"){const d=await Nx(i);if(d)return Ex(d),d}return r&&!s&&Qr(),s}async function Kr(i=fetch,c){return Vr(i,c)}async function Nx(i){const c=await i("/provision/status",{headers:{Accept:"application/json"},credentials:"include"}).catch(()=>{});if(!c?.ok)return;const r=await c.json().catch(()=>{});if(!(!r?.registered||typeof r.provisionCode!="string"))return Xr(r.provisionCode)}function Cx(i){if(!i)return;const c=i.split(".")[0];if(c)try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return;const d=Uint8Array.from(globalThis.atob(s),y=>y.charCodeAt(0)),h=JSON.parse(new TextDecoder().decode(d));return typeof h.spUrl!="string"||typeof h.serviceToken!="string"||typeof h.exp=="number"&&h.exp<Math.floor(Date.now()/1e3)?void 0:{spUrl:ja(h.spUrl),serviceToken:h.serviceToken,spDomain:typeof h.spDomain=="string"?h.spDomain:void 0,exp:typeof h.exp=="number"?h.exp:void 0}}catch{return}}function Fr(i){const c=Cx(i);if(c)return{lookupUrl:c.spUrl,storageRoot:c.spDomain?ja(`https://${c.spDomain}`):ja(c.spUrl),serviceToken:c.serviceToken}}async function Vu(i,c,r){const s=Fr(r);if(!s)return;const d=Array.from(new Set(c.filter(p=>typeof p=="string"&&p.length>0)));if(d.length===0)return[];const h=await i(new URL("/provision/webids",s.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${s.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:d})});if(!h.ok)return[];const y=await h.json().catch(()=>{});if(!Array.isArray(y?.entries))return[];const x=new Set(d);return y.entries.filter(p=>p&&typeof p.webId=="string"&&x.has(p.webId)).filter(p=>typeof p.storageUrl=="string"&&p.storageUrl.length>0).filter(p=>c0(p.storageUrl,s.storageRoot)).map(p=>({webId:p.webId,podUrl:typeof p.podUrl=="string"?ja(p.podUrl):void 0,storageUrl:ja(p.storageUrl)}))}async function Ax(i,c,r){const s=s0(r);if(!s)return[];const d=Array.from(new Set(c.filter(y=>typeof y=="string"&&y.length>0)));return(await Promise.all(d.map(async y=>{const p=(await Dx(i,y)).find(g=>c0(g,s));return p?{webId:y,storageUrl:ja(p)}:void 0}))).filter(y=>!!y)}function c0(i,c){const r=r0(i),s=s0(c);return!!(r&&s&&r.startsWith(s))}function Tx(i){if(i)try{return ja(new URL(i).origin)}catch{return}}function s0(i){if(i)try{return ja(new URL(i).toString())}catch{return}}const Rx=new Set(["solid:storage","http://www.w3.org/ns/solid/terms#storage","pim:storage","http://www.w3.org/ns/pim/space#storage"]);async function Dx(i,c){const r=await i(c,{headers:{Accept:"text/turtle, application/ld+json, application/json"},credentials:"include"}).catch(()=>{});if(!r?.ok)return[];const s=r.headers?.get?.("content-type")??"",d=await r.text().catch(()=>"");if(!d)return[];if(s.includes("json"))try{return Sm(Ux(JSON.parse(d)))}catch{return[]}return Sm(_x(d))}function _x(i){return Array.from(i.matchAll(/(?:solid:storage|pim:storage|<http:\/\/www\.w3\.org\/ns\/solid\/terms#storage>|<http:\/\/www\.w3\.org\/ns\/pim\/space#storage>)\s+<([^>]+)>/giu)).map(c=>c[1]).filter(c=>typeof c=="string"&&c.length>0)}function Ux(i){const c=new Set,r=new WeakSet,s=(d,h=!1)=>{if(typeof d=="string"){h&&c.add(d);return}if(!(!d||typeof d!="object")&&!r.has(d)){if(r.add(d),Array.isArray(d)){for(const y of d)s(y,h);return}for(const[y,x]of Object.entries(d)){const p=Rx.has(y);if(h&&y==="@id"){s(x,!0);continue}s(x,h||p)}}};return s(i),Array.from(c)}function r0(i){try{return ja(new URL(i).toString())}catch{return}}function Sm(i){const c=new Set;for(const r of i){const s=r0(r);s&&c.add(s)}return Array.from(c)}function ja(i){return i.replace(/\/+$/u,"")+"/"}class nn extends Error{code;constructor(c,r){super(c),this.name="RegistrationError",this.code=r}}async function Jr(i){const c=await i.json().catch(()=>{});return c?.message||c?.error}async function wm(i){const c=await i.json().catch(()=>({}));return Zu(c)?c:{}}function Ox(i){return i.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function Mx(i,c){if(!i)return!1;const r=Ox(i);if(r)return $r(r,c);const s=i.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return s?s===c:/Username already taken/i.test(i)}function Lx(i){return i?/already is a login for this e-mail address/i.test(i)||/email(?: address)? is already/i.test(i)||/already registered/i.test(i):!1}function $r(i,c){try{return new URL(i,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===c}catch{return!1}}async function Bx(i,c,r,s,d,h){if(h)return Hx(i,r,s,d,h);const y=await i(c,{headers:Kt(d),credentials:"include"});if(!y.ok)return!1;const x=await y.json().catch(()=>({}));return Object.keys(x.pods??{}).some(p=>$r(p,s))}async function Hx(i,c,r,s,d){if(!c)return!1;const h=await i(c,{headers:Kt(s),credentials:"include"});if(!h.ok)return!1;const y=await h.json().catch(()=>({})),x=Object.keys(y.webIdLinks??{});return(await Vu(i,x,d)??[]).some(g=>$r(g.storageUrl,r))}async function qx(i){const c=i.fetchImpl??fetch;let r=await c(i.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error(Bu(await wm(r))||"Failed to create account");const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned");if(r=await c(i.idpIndex,{headers:Kt(d),credentials:"include"}),!r.ok)throw new Error(Bu(await wm(r))||"Failed to load account controls");const h=await r.json().catch(()=>({})),y=h.controls?.password?.create,x=h.controls?.password?.login;if(!y)throw new Error("Password endpoint not found");if(!x)throw new Error("Login endpoint not found");if(r=await c(y,{method:"POST",headers:{...Kt(d),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:i.email,password:i.password})}),!r.ok){const p=await Jr(r);throw Lx(p)?new nn("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(p||"Failed to set password")}return{accountToken:d,loginUrl:x}}async function kx(i){const r=await(i.fetchImpl??fetch)(i.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:i.email,password:i.password})});if(!r.ok){const h=await Jr(r);throw i.duplicateEmailRecovery?new nn("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(h||"Auto-login failed")}const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned after login");return{accountToken:d}}async function jm(i,c,r,s,d=15e3,h){const y=Date.now()+d;let x=r?.pod,p=r?.webId;for(;Date.now()<y;){try{if(!x&&!p){const g=await i(c,{headers:Kt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({}));x=C.controls?.account?.pod,p=C.controls?.account?.webId}}if(p){const g=await i(p,{headers:Kt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({})),z=Object.keys(C.webIdLinks??{});if(h){if((await Vu(i,z,h)??[]).length>0)return!0}else if(z.length>0)return!0}}if(!h&&x){const g=await i(x,{headers:Kt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({}));if(Object.keys(C.pods??{}).length>0)return!0}}}catch{}await new Promise(g=>setTimeout(g,500))}return!1}async function zm(i){const c=i.fetchImpl??fetch,{accountToken:r,idpIndex:s,username:d}=i,h=await Kr(c,i.provisionCode??un());let y=await c(s,{headers:Kt(r),credentials:"include"});const x=await y.json().catch(()=>({})),p=x.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await Bx(c,p,x.controls?.account?.webId,d,r,h))return await jm(c,s,x.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await Em(c,r)};if(y=await c(p,{method:"POST",headers:{...Kt(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Zr(d,h))}),!y.ok){const g=await Jr(y);throw Mx(g,d)?new nn("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(g||"Failed to create pod")}return await y.json().catch(()=>({})),await jm(c,s,x.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await Em(c,r)}}async function Em(i,c){const r=await i("/.account/oidc/consent/",{headers:Kt(c),credentials:"include"});return!!(r.ok&&(await r.json().catch(()=>({}))).client)}function Nr({initialIsRegister:i=!1}){const{controls:c,idpIndex:r,isLoggedIn:s,hasOidcPending:d,authenticating:h}=kt(),y=ea(),[x,p]=S.useState(!1),[g,C]=S.useState(i),[z,B]=S.useState(""),[Y,Q]=S.useState(""),[O,L]=S.useState(""),[X,W]=S.useState(!1),[F,le]=S.useState(!1),[ne,te]=S.useState(null),[Z,re]=S.useState([]),[ze,Se]=S.useState(null),[He,_e]=S.useState(""),[qe,De]=S.useState(null),[Ee,D]=S.useState(null),G=Y.length>0&&O.length>0&&Y===O,J=It(z),ae=g?Wa(J):void 0;if(S.useEffect(()=>{const q=vx();q&&ci(q)},[]),S.useEffect(()=>{if(!g){le(!1),te(null),re([]),Se(null);return}if(!J){le(!1),te(null),re([]),Se(null);return}if(ae){le(!1),te(!1),re([]),Se(ae);return}let q=!1;le(!0);const K=window.setTimeout(async()=>{const I=await bm(J,r);q||(le(!1),te(I.available),re(I.suggestions),Se(I.error??null))},300);return()=>{q=!0,window.clearTimeout(K)}},[r,g,J,ae]),s)return f.jsx(wa,{to:"/.account/create-pod/",replace:!0,state:{next:d?"/.account/oidc/consent/":"/.account/account/"}});const oe=[{icon:Pm,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:t0,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:ri,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],v=async q=>{q.preventDefault(),p(!0),De(null),D(null);const K=new FormData(q.currentTarget),I=K.get("email"),ie=K.get("password");try{if(g){const fe=K.get("confirmPassword"),k=It(K.get("username")),xe=Wa(k);if(ie!==fe){alert("Passwords do not match"),p(!1);return}if(xe){alert(xe),p(!1);return}const Ne=await bm(k,r),Yt=c?.password?.login||"/.account/login/password/",yt=async(it=!1)=>{const ta=await kx({duplicateEmailRecovery:it,email:I,fetchImpl:fetch,loginUrl:Yt,password:ie});return pr(ta.accountToken),ta.accountToken};if(!Ne.available){let it;try{it=await yt()}catch{}if(it){const ta=await zm({accountToken:it,idpIndex:r,username:k});window.location.href=ta.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/";return}te(!1),re(Ne.suggestions),Se(Ne.error??"Username is already taken"),p(!1);return}if(Ne.error){te(!1),Se(Ne.error),p(!1);return}let nt;const ke=await yt().catch(()=>{});if(ke)nt=ke;else try{nt=(await qx({accountCreateUrl:c?.account?.create||"/.account/account/",email:I,password:ie,idpIndex:r})).accountToken,pr(nt)}catch(it){if(!(it instanceof nn)||it.code!=="EMAIL_ALREADY_REGISTERED")throw it;nt=await yt(!0)}const Gt=await zm({accountToken:nt,idpIndex:r,username:k});window.location.href=Gt.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/"}else{const fe=await fetch(c?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:I,password:ie})}),k=await fe.json().catch(()=>({}));if(fe.ok){pr(typeof k.authorization=="string"?k.authorization:void 0);const xe=fe.headers.get("Location");if(k.location){window.location.href=k.location;return}if(xe){window.location.href=xe;return}const Ne=gx();if(Ne){window.location.href=Ne;return}try{if((await fetch("/.account/oidc/consent/",{headers:Le(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/create-pod/"}else D(k.message||"Login failed")}}catch(fe){fe instanceof nn&&fe.code==="EMAIL_ALREADY_REGISTERED"?De(fe.message):fe instanceof nn&&fe.code==="USERNAME_ALREADY_TAKEN"?(te(!1),Se(fe.message)):D(pl(fe,"Operation failed"))}finally{p(!1)}},R=()=>{C(!g),B(""),Q(""),L(""),le(!1),te(null),re([]),Se(null),_e(""),De(null),D(null)},H=async()=>{if(c?.oidc?.cancel){W(!0);try{const K=await(await fetch(c.oidc.cancel,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();K.location&&(window.location.href=K.location)}catch{alert("Failed to cancel"),W(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:oe.map(({icon:q,title:K,desc:I})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(q,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:K}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:I})]})]},K))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:g?"Create account":"Welcome back"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:g?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:v,children:[Ee&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:Ee}),f.jsxs("div",{className:"space-y-3",children:[g&&f.jsxs("div",{className:"relative",children:[f.jsx(a0,{className:ln("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",ae&&z.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:z,onChange:q=>B(q.target.value),className:ln("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",ae&&z.length>0||ne===!1?"border-amber-300 focus:border-amber-500":ne?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(zr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:He,onChange:q=>{_e(q.target.value),qe&&De(null)},className:ln("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",qe?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),qe&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[qe," ",f.jsx("button",{type:"button",onClick:()=>{C(!1),De(null),D(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:Y,onChange:q=>Q(q.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),g&&f.jsxs("div",{className:"relative",children:[G?f.jsx($a,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:O,onChange:q=>L(q.target.value),className:ln("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",G?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),g&&f.jsx("p",{className:ln("text-[11px] leading-relaxed",ae&&z.length>0||ne===!1?"text-amber-600":ne?"text-emerald-600":"text-zinc-500"),children:ae&&z.length>0?ae:F?"Checking username availability...":ze||(J&&ne===!1?"Username is already taken.":J&&ne?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),g&&Z.length>0&&!ae&&ne===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:Z.map(q=>f.jsx("button",{type:"button",onClick:()=>B(q),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:q},q))}),!g&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>y("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:x||X||!!(g&&(ae||F||ne===!1)),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:x?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[g?"Sign up":"Sign in",f.jsx(Qu,{className:"h-4 w-4"})]})}),h&&!g&&f.jsx("button",{type:"button",onClick:H,disabled:X||x,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:X?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[g?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:R,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:g?"Sign in":"Sign up"})]})})]})})]})]})}function Yx(){const{isLoggedIn:i,hasOidcPending:c}=kt();return i&&c?f.jsx(wa,{to:"/.account/oidc/consent/",replace:!0}):i?f.jsx(wa,{to:"/.account/account/",replace:!0}):f.jsx(Nr,{})}function Gx(){const i=ea(),{isLoggedIn:c}=kt(),r=[{icon:Pm,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:t0,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:ri,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:h})]})]},d))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-2",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",h]})]})]},d))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(pm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(pm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.jsxs("button",{onClick:()=>i(c?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[f.jsx(Im,{className:"w-4 h-4"}),c?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Ku(i){return i.replace(/\/+$/u,"")+"/"}function za(i){if(i)try{return new URL(i)}catch{return}}function o0(i){const c=za(i);if(c)return Ku(c.toString())}function Xx(i){return o0(i)}function Hu(i,c){const r=za(i),s=za(c);if(!r||!s||r.origin!==s.origin)return!1;const d=Jx(s.pathname);return r.pathname===d||r.pathname.startsWith(d)}function qu(i,c){const r=za(i),s=za(c);return!r||!s?"custom":r.origin===s.origin?"cloud":"local"}function Qx(i){if(!i)return;const c=i.indexOf(".");if(!(c<=0))try{const r=i.slice(0,c),s=JSON.parse(Fx(r)),d=s.spDomain?`https://${s.spDomain}`:s.spUrl,h=o0(d);return h?{root:h,lookupUrl:s.spUrl?Ku(s.spUrl):void 0,serviceToken:s.serviceToken,mode:"local"}:void 0}catch{return}}function Zx(i,c){const r=Qx(c);if(r)return r;const s=Xx(i);if(s)return{root:s,mode:"cloud"}}async function Vx(i,c,r){if(!r.lookupUrl||!r.serviceToken||c.length===0)return[];const s=await i(new URL("/provision/webids",r.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${r.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:c})});if(!s.ok)return[];const d=await s.json().catch(()=>null);if(!Array.isArray(d?.entries))return[];const h=new Set(c);return d.entries.filter(y=>typeof y.webId=="string"&&typeof y.storageUrl=="string"&&h.has(y.webId)&&Hu(y.storageUrl,r.root)).map(y=>({webId:y.webId,storageUrl:Ku(y.storageUrl),storageMode:y.storageMode??qu(y.webId,y.storageUrl)}))}function Kx(i,c,r){const s=c.filter(h=>Hu(h,r.root));if(s.length===0)return[];const d=[];for(const h of i){const y=qu(h,r.root);if(r.mode!=="local"&&y!==r.mode)continue;const x=y==="cloud"?s.filter(p=>$x(p,h)):s.filter(p=>Wx(p,h));for(const p of x)d.push({webId:h,storageUrl:Ku(p),storageMode:qu(h,p)})}return f0(d)}function f0(i){const c=new Set,r=[];for(const s of i){const d=`${s.webId}
12
+ ${s.storageUrl}`;c.has(d)||(c.add(d),r.push(s))}return r}function Fx(i){const c=i.replace(/-/gu,"+").replace(/_/gu,"/").padEnd(Math.ceil(i.length/4)*4,"=");return atob(c)}function Jx(i){return!i||i==="/"?"/":i.endsWith("/")?i:`${i}/`}function $x(i,c){const r=za(i),s=za(c);if(!r||!s||r.origin!==s.origin)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function Wx(i,c){const r=za(i),s=za(c);if(!r||!s)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function d0(i){try{const r=new URL(i).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function Ix(i){const c=i?.pods;return!c||typeof c!="object"?[]:Object.entries(c).map(([r,s])=>({id:r,resourceUrl:s,name:d0(r)}))}function Px(i){const c=new Set,r=[];for(const s of i)c.has(s.storageUrl)||(c.add(s.storageUrl),r.push({id:s.storageUrl,name:d0(s.storageUrl),storageMode:s.storageMode??qu(s.webId,s.storageUrl)}));return r}function eb(i){return Array.from(new Set(i.map(c=>c.webId)))}function tb(i){try{const c=new URL(i).pathname.split("/").filter(Boolean);return c[c.length-1]??i}catch{return i.split("/").filter(Boolean).pop()??i}}function xr(i,c){return`sk-${btoa(`${i}:${c}`)}`}function ab(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:i,hostname:c,origin:r}=window.location;return c.startsWith("id.")?`${i}//api.${c.slice(3)}/v1`:c.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function lb(){const{controls:i,refetchControls:c,hasOidcPending:r}=kt(),s=ea(),[d,h]=S.useState(!1),[y,x]=S.useState([]),[p,g]=S.useState([]),[C,z]=S.useState(!1),[B,Y]=S.useState(!1),[Q,O]=S.useState(""),[L,X]=S.useState(!1),[W,F]=S.useState(""),[le,ne]=S.useState([]),[te,Z]=S.useState(null),[re,ze]=S.useState(!1),[Se,He]=S.useState(""),[_e,qe]=S.useState(""),[De,Ee]=S.useState(null),[D,G]=S.useState(!1),J=S.useRef(null),ae=ab();S.useEffect(()=>{const k=xe=>{J.current&&!J.current.contains(xe.target)&&G(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[]);const oe=async(k,xe)=>{try{await navigator.clipboard.writeText(k),Ee(xe),setTimeout(()=>Ee(null),2e3)}catch{}},v=S.useCallback(async()=>{try{const k=Zx(window.location.origin,un());let xe=[],Ne=[],Yt=[],yt=[];if(i?.account?.webId){const ke=await fetch(i.account.webId,{headers:Le(),credentials:"include"});if(ke.ok){const it=(await ke.json()).webIdLinks||{};Ne=Object.keys(it)}else Ne=[]}if(i?.account?.pod){const ke=await fetch(i.account.pod,{headers:Le(),credentials:"include"});if(ke.ok){const Gt=await ke.json();Yt=Ix(Gt)}else Yt=[]}k&&(yt=k.serviceToken?await Vx(fetch,Ne,k):Kx(Ne,Yt.map(ke=>ke.id),k)),yt=f0(yt),xe=eb(yt);const nt=k?.serviceToken?Px(yt):Yt.filter(ke=>Hu(ke.id,k?.root)).map(ke=>({...ke,storageMode:yt.find(Gt=>Hu(ke.id,Gt.storageUrl))?.storageMode}));if(x(xe),g(nt),z(k?nt.length===0&&Ne.length>0:!1),i?.account?.clientCredentials){const ke=await fetch(i.account.clientCredentials,{headers:Le(),credentials:"include"});if(ke.ok){const it=(await ke.json()).clientCredentials||{},ta=new Set(xe);ne(Object.entries(it).map(([aa,vl])=>({id:tb(aa),resourceUrl:aa,webId:typeof vl=="string"?vl:void 0})).filter(aa=>aa.webId&&ta.has(aa.webId)))}else ne([])}else ne([])}catch(k){console.error("Failed to fetch account data:",k),x([]),g([]),ne([]),z(!1)}},[i?.account?.clientCredentials,i?.account?.pod,i?.account?.webId]);S.useEffect(()=>{v()},[v]);const R=async()=>{if(i?.account?.logout){h(!0);try{(await fetch(i.account.logout,{method:"POST",headers:Le(),credentials:"include"})).ok&&(Qr(),Yr(),await c(),s("/.account/"))}catch{alert("Logout failed")}finally{h(!1)}}},H=async k=>{if(k.preventDefault(),!(!i?.account?.pod||!Q.trim())){h(!0);try{const xe=await fetch(i.account.pod,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(Zr(Q))});if(xe.ok)O(""),Y(!1),await c(),await v(),r&&s("/.account/oidc/consent/");else{const Ne=await xe.json().catch(()=>({}));alert(Ne.message||"Failed to create pod")}}catch{alert("Network error")}finally{h(!1)}}},q=async k=>{if(k.preventDefault(),!(!i?.account?.webId||!W.trim())){if(un()){X(!1),alert("Link WebID is disabled in a scoped Local storage session.");return}h(!0);try{const xe=await fetch(i.account.webId,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:W.trim()})});if(xe.ok)F(""),X(!1),await v();else{const Ne=await xe.json().catch(()=>({}));alert(Ne.message||"Failed to link WebID")}}catch{alert("Network error")}finally{h(!1)}}},K=async k=>{if(k.resourceUrl&&confirm(`Delete pod ${k.id}? This cannot be undone.`)){h(!0);try{(await fetch(k.resourceUrl,{method:"DELETE",headers:Le(),credentials:"include"})).ok?await v():alert("Failed to delete pod")}catch{alert("Network error")}finally{h(!1)}}},I=async k=>{if(k.preventDefault(),!(!i?.account?.clientCredentials||!Se||!_e.trim())){h(!0);try{const xe=await fetch(i.account.clientCredentials,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:_e.trim(),webId:Se})});if(xe.ok){const Ne=await xe.json();Z({id:Ne.id,secret:Ne.secret}),ze(!1),He(""),qe(""),await v()}else{const Ne=await xe.json().catch(()=>({}));alert(Ne.message||"Failed to create credential")}}catch{alert("Network error")}finally{h(!1)}}},ie=()=>{if(y.length===0){alert("Please create a Pod first to get a WebID");return}He(y[0]),qe(""),ze(!0)},fe=async k=>{if(confirm("Delete this credential? This cannot be undone.")){h(!0);try{(await fetch(k.resourceUrl,{method:"DELETE",headers:Le(),credentials:"include"})).ok?await v():alert("Failed to delete credential")}catch{alert("Network error")}finally{h(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Mu,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(nx,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:R,disabled:d,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(ox,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(ri,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(Mu,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",f.jsx(Qu,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(e0,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),i?.account?.pod&&f.jsxs("button",{onClick:()=>Y(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),B&&f.jsxs("form",{onSubmit:H,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:Q,onChange:k=>O(k.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>Y(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:p.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:C?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:p.map(k=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Iv,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:k.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:k.id}),k.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",k.name]})]})]}),f.jsx("button",{onClick:()=>K(k),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(gm,{className:"w-4 h-4"})})]},k.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(a0,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),i?.account?.webId&&f.jsxs("button",{onClick:()=>X(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),L&&f.jsxs("form",{onSubmit:q,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:W,onChange:k=>F(k.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>X(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:y.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:y.map(k=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(tx,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:k,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:k})]},k))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(gr,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),i?.account?.clientCredentials&&f.jsxs("button",{onClick:ie,disabled:d,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),i?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[re&&f.jsxs("form",{onSubmit:I,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:_e,onChange:k=>qe(k.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:J,children:[f.jsxs("button",{type:"button",onClick:()=>G(!D),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[f.jsx("span",{className:"truncate text-zinc-700",children:Se||"Select WebID"}),f.jsx(Kv,{className:`w-4 h-4 text-zinc-400 transition-transform ${D?"rotate-180":""}`})]}),D&&f.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:y.map(k=>f.jsx("button",{type:"button",onClick:()=>{He(k),G(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${Se===k?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:k},k))}),f.jsx("input",{type:"hidden",name:"webId",value:Se,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>ze(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"})]})]}),te&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(gr,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:te.id})]}),f.jsx("button",{onClick:()=>oe(te.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:De==="id"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:te.secret})]}),f.jsx("button",{onClick:()=>oe(te.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:De==="secret"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:xr(te.id,te.secret)})]}),f.jsx("button",{onClick:()=>oe(xr(te.id,te.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:De==="apikey"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),f.jsx("button",{onClick:()=>oe(ae,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:De==="baseurl"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",xr(te.id,te.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>Z(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:le.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:le.map(k=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(gr,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:k.id})]}),f.jsx("button",{onClick:()=>fe(k),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(gm,{className:"w-4 h-4"})})]},k.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(ri,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.jsx("a",{href:i?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function nb(i){for(const c of i){if(!c)continue;const r=ob(c);if(!r)continue;const s=It(r).replace(/[^a-z0-9-]/gu,"-").replace(/-+/gu,"-").replace(/^-+|-+$/gu,"");if(s&&!Wa(s))return s}return""}async function ib(i){const c=i.fetchImpl??fetch,r=It(i.username),s=Wa(r);if(s)return{status:"invalid",message:s};const d=await Kr(c,i.provisionCode),h=Fr(d);if(!h)return{status:"unknown"};const y=new URL(`/provision/pods/${encodeURIComponent(r)}`,h.lookupUrl).toString(),x=await c(y,{headers:{Accept:"application/json",Authorization:`Bearer ${h.serviceToken}`},credentials:"include"}).catch(()=>{});return x?x.status===404?{status:"available",message:"This Pod name is available."}:x.ok?{status:"taken",message:`Pod name "${r}" is already used on this storage.`}:x.status===409?{status:"taken",message:await Cr(x)??`Pod name "${r}" is already used on this storage.`}:{status:"unknown",message:await Cr(x)??"Could not check this Pod name right now."}:{status:"unknown",message:"Could not check this Pod name right now."}}async function ub(i){const c=i.fetchImpl??fetch,r=It(i.username),s=Wa(r);if(s)throw new Error(s);const d=await Kr(c,i.provisionCode),h=await c(i.createPodUrl,{method:"POST",headers:{...i.headers,Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Zr(r,d))});if(!h.ok){const g=await Cr(h);throw h.status===409||sb(g)?new Error("Pod name is already taken. Choose another name."):new Error(g||"Failed to create Pod")}const y=await h.json().catch(()=>{}),x=rb(y);if(!i.pickWebIdUrl)return x;const p=await h0({fetchImpl:c,headers:i.headers,maxAttempts:i.maxAttempts,pickWebIdUrl:i.pickWebIdUrl,pollIntervalMs:i.pollIntervalMs});return p.length>0?p:x}async function h0(i){const c=i.fetchImpl??fetch,r=Math.max(1,i.maxAttempts??30),s=Math.max(0,i.pollIntervalMs??500);for(let d=0;d<r;d+=1){const h=await cb(c,i.pickWebIdUrl,i.headers);if(h.length>0)return h;d<r-1&&s>0&&await new Promise(y=>setTimeout(y,s))}return[]}async function cb(i,c,r){const s=await i(c,{headers:r,credentials:"include"}).catch(()=>{});if(!s?.ok)return[];const d=await s.json().catch(()=>{});return Array.isArray(d?.webIds)?d.webIds.filter(h=>typeof h=="string"&&h.length>0):[]}async function Cr(i){const c=await i.text?.().catch(()=>{});if(c)try{const r=JSON.parse(c);return typeof r.message=="string"?r.message:typeof r.error=="string"?r.error:c}catch{return c}}function sb(i){return i?/already (?:is )?a resource/iu.test(i)||/already taken/iu.test(i)||/already exists/iu.test(i):!1}function rb(i){const c=new Set;if(typeof i?.webId=="string"&&i.webId.length>0&&c.add(i.webId),Array.isArray(i?.webIds))for(const r of i.webIds)typeof r=="string"&&r.length>0&&c.add(r);return Array.from(c)}function ob(i){try{return new URL(i).pathname.split("/").filter(Boolean)[0]}catch{return}}function m0({createPodUrl:i,headers:c,onCreated:r,onError:s,pickWebIdUrl:d,provisionCode:h,webIdCandidates:y=[]}){const[x,p]=S.useState(()=>nb(y)),[g,C]=S.useState(!1),[z,B]=S.useState(null),[Y,Q]=S.useState({status:"idle"}),O=It(x),L=O?Wa(O):void 0,X=!!(O&&z===O);S.useEffect(()=>{if(!O){Q({status:"idle"});return}if(X){Q({status:"created",message:"Storage was created. Refresh authorization when the WebID is ready."});return}if(L){Q({status:"invalid",message:L});return}let Z=!1;Q({status:"checking",message:"Checking Pod name..."});const re=setTimeout(()=>{ib({provisionCode:h,username:O}).then(ze=>{Z||Q(ze)})},300);return()=>{Z=!0,clearTimeout(re)}},[X,L,O,h]);const W=async()=>{try{s(null),C(!0);const Z=d?await h0({headers:c,pickWebIdUrl:d}):[];Z.length>0&&B(null),await r(Z)}catch(Z){s(pl(Z,"Failed to refresh authorization state"))}finally{C(!1)}},F=async Z=>{if(Z.preventDefault(),X){await W();return}if(L){s(L);return}if(Y.status==="taken"){s(Y.message||"This Pod name is already used on this storage.");return}if(Y.status==="checking"){s("Please wait for the Pod name check to finish.");return}if(!i){s("Pod creation endpoint not found. Please reload and try again.");return}try{s(null),C(!0);const re=await ub({createPodUrl:i,headers:c,pickWebIdUrl:d,provisionCode:h,username:O});B(re.length>0?null:O),p(O),await r(re)}catch(re){s(pl(re,"Failed to create Pod"))}finally{C(!1)}},le=(()=>{switch(Y.status){case"available":return"text-emerald-600";case"taken":case"invalid":return"text-red-600";case"checking":return"text-zinc-500";case"created":return"text-amber-600";default:return"text-zinc-400"}})(),ne=g||Y.status==="checking"||!X&&Y.status==="taken"||!!L,te=g?X?"Refreshing...":"Creating...":X?"Refresh authorization":"Create storage";return f.jsxs("form",{onSubmit:F,className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 space-y-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-700",children:"Create your first storage"}),f.jsx("p",{className:"text-[11px] text-zinc-500 mt-1",children:"Choose a short Pod name. After it is created, this authorization will continue here."})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 mb-1",children:"Pod name"}),f.jsx("input",{type:"text",value:x,onChange:Z=>{p(It(Z.target.value)),s(null)},placeholder:"alice",disabled:g,className:"w-full px-3 py-2 bg-white border border-zinc-200 rounded-lg text-sm text-zinc-700 focus:border-[#7C4DFF] focus:outline-none disabled:opacity-60",autoComplete:"username",required:!0}),Y.message&&f.jsx("p",{className:`mt-1 text-[11px] ${le}`,children:Y.message})]}),f.jsx("button",{type:"submit",disabled:ne,className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium disabled:opacity-50 transition-colors",children:te})]})}function fb(){const{controls:i,hasOidcPending:c,refetchControls:r}=kt(),s=ea(),[d,h]=S.useState(!0),[y,x]=S.useState(!1),[p,g]=S.useState([]),[C,z]=S.useState(null),[B,Y]=S.useState(()=>un()),Q=c?"/.account/oidc/pick-webid/":void 0;return S.useEffect(()=>{let O=!1;return(async()=>{try{const L=await Vr(fetch,B);if(O)return;Y(L);const X=await db({accountWebIdUrl:i?.account?.webId,provisionCode:L});if(O)return;if(g(X.allWebIds),X.currentStorageWebIds.length>0){s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0});return}x(!0)}catch(L){O||(z(pl(L,"Failed to check storage state")),x(!0))}finally{O||h(!1)}})(),()=>{O=!0}},[i?.account?.webId,c,s,B]),f.jsxs(on,{title:"Create storage",subtitle:"Set up this space before entering the dashboard",icon:e0,children:[C&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Gr,{className:"w-4 h-4 inline mr-2"}),C]}),d&&f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(gl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}),!d&&y&&f.jsx(m0,{createPodUrl:i?.account?.pod,headers:Le(),onCreated:async O=>{if(c&&O.length===0){z("Storage was created. Click Refresh authorization when the WebID is ready.");return}await r(),s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0})},onError:z,pickWebIdUrl:Q,provisionCode:B,webIdCandidates:p})]})}async function db(i){const c=i.accountWebIdUrl;if(!c)return{allWebIds:[],currentStorageWebIds:[]};const r=await fetch(c,{headers:Le(),credentials:"include"});if(!r.ok)return{allWebIds:[],currentStorageWebIds:[]};const s=await r.json().catch(()=>({})),d=Object.keys(s.webIdLinks??{});if(d.length===0)return{allWebIds:d,currentStorageWebIds:[]};if(Fr(i.provisionCode)){const x=await Vu(fetch,d,i.provisionCode);return{allWebIds:d,currentStorageWebIds:(x??[]).map(p=>p.webId)}}const y=await Ax(fetch,d,Tx(window.location.origin));return{allWebIds:d,currentStorageWebIds:y.map(x=>x.webId)}}function hb(i,c,r){return i.length>0?i:r?[]:c?[c]:[]}function mb(i,c){return i?.oidc?.cancel||`${c}oidc/cancel`}async function yb(i){const c=i.fetchImpl??fetch,r=i.timeoutMs??15e3,s=r>0?new AbortController:null;let d;s&&(d=setTimeout(()=>s.abort(),r));try{const h=await c(i.cancelUrl,{method:"POST",headers:i.headers,credentials:"include",body:JSON.stringify({}),signal:s?.signal});return await pb(h)}catch(h){throw gb(h,"AbortError")?new Error("Authorization cancellation timed out. Please close this tab and retry login."):h}finally{d&&clearTimeout(d)}}async function pb(i){const c=await i.json().catch(()=>null);if(!i.ok)throw new Error(Bu(c)||`Authorization cancellation failed (${i.status}).`);const r=Zu(c)&&typeof c.location=="string"?c.location.trim():"",s=i.headers.get("Location")?.trim()||"",d=r||s;if(!d)throw new Error("Authorization cancellation did not return a redirect URL.");return d}function gb(i,c){return Zu(i)&&i.name===c}function vb(){const{idpIndex:i,isLoggedIn:c,controls:r}=kt(),s=ea(),[d,h]=S.useState(!0),[y,x]=S.useState(null),[p,g]=S.useState(null),[C,z]=S.useState([]),[B,Y]=S.useState(""),[Q,O]=S.useState(null),[L,X]=S.useState(null),[W,F]=S.useState(!0),[le,ne]=S.useState(()=>un()),[te,Z]=S.useState(!1),[re,ze]=S.useState(!1),Se=`${i}oidc/consent/`,He=`${i}oidc/pick-webid/`,_e=mb(r,i),qe=S.useCallback(async()=>{const v=await Vr(fetch,le);ne(v);const R=await fetch(Se,{headers:Le(),credentials:"include"});if(console.log("[Consent] GET consent response status:",R.status),R.status===401||R.status===403)return O("Please sign in to continue authorization."),[];if(!R.ok){const k=await R.json().catch(()=>({}));throw new Error(Bu(k)||"Failed to load consent info")}const H=await R.json().catch(()=>({}));x(H.client||{}),g(H.webId||null);const q=await fetch(He,{headers:Le(),credentials:"include"});if(!q.ok)return z([]),Y(""),[];const K=await q.json().catch(()=>({})),I=Array.isArray(K.webIds)?K.webIds.filter(k=>typeof k=="string"&&k.length>0):[],ie=v?await Vu(fetch,I,v):void 0,fe=ie?ie.map(k=>k.webId):I;return z(fe),H.webId&&fe.includes(H.webId)?Y(H.webId):fe.length>0?Y(fe[0]):Y(""),fe},[Se,He,le]);S.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),ci(window.location.href),(async()=>{try{await qe()}catch(v){O(pl(v,"Failed to load consent info"))}finally{h(!1)}})()},[qe]);const De=v=>{try{const R=new URL(v),H=R.pathname.split("/").filter(Boolean);return{provider:R.host,podId:H[0]??"-",full:v}}catch{return{provider:"-",podId:"-",full:v}}},Ee=async v=>{try{await navigator.clipboard.writeText(v),X(v),setTimeout(()=>X(null),1200)}catch{X(null)}},D=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",headers:Le(),credentials:"include"}),Yr(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},G=async v=>{if(console.log("[Consent] handleConsent called, allow:",v),!v){await J();return}try{if(Z(!0),O(null),B&&B!==p){console.log("[Consent] Picking WebID:",B);const I=await fetch(He,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:B,remember:!1})}),ie=await I.json().catch(()=>({}));if(!I.ok)throw new Error(ie.message||"Failed to select WebID");ie.location&&await fetch(ie.location,{credentials:"include"})}const R=await fetch(Se,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:W})}),H=await R.json().catch(()=>({}));if(console.log("[Consent] Response:",R.status,H),console.log("[Consent] Location header:",R.headers.get("Location")),!R.ok)throw new Error(H.message||"Consent failed");const q=R.headers.get("Location"),K=H.location||q;console.log("[Consent] Redirect URL:",K),K?window.location.href=K:(O("Authorization completed but no redirect URL received. The application may need to restart the login flow."),h(!1))}catch(R){O(pl(R,"Consent failed"))}finally{Z(!1)}},J=async()=>{console.log("[Consent] Cancelling...");try{ze(!0),O(null);const v=await yb({cancelUrl:_e,headers:Le({"Content-Type":"application/json",Accept:"application/json"})});window.location.href=v}catch(v){O(pl(v,"Authorization cancellation failed"))}finally{ze(!1)}},ae=hb(C,p,!!le),oe=te||re;return f.jsxs(on,{title:"Authorize",subtitle:`${y?.client_name||"Application"} requests access`,icon:ri,children:[!c&&f.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{ci(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),Q&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Gr,{className:"w-4 h-4 inline mr-2"}),Q]}),d?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(gl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(y?.client_uri||y?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[y?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:y.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:y.client_uri})}),y?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:y.client_id,children:["ID: ",y.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),ae.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:De(ae[0]).provider})]})]}),ae.length===0?f.jsx(m0,{createPodUrl:r?.account?.pod,headers:Le(),onCreated:async v=>{if(v.length===0){await qe(),O("Storage was created. Click Refresh authorization when the WebID is ready.");return}z(v),Y(v[0]||"")},onError:O,pickWebIdUrl:He,provisionCode:le,webIdCandidates:[p]}):f.jsx("div",{className:"space-y-1",children:ae.map(v=>{const R=De(v);return f.jsxs("label",{className:ln("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",B===v?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:v,checked:B===v,onChange:H=>Y(H.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:R.full,children:R.podId})}),f.jsx("button",{type:"button",onClick:H=>{H.preventDefault(),Ee(v)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:L===v?"Copied":"Copy"})]},v)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:W,onChange:v=>F(v.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>G(!1),disabled:oe,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:re?"Denying...":"Deny"}),f.jsx("button",{onClick:()=>G(!0),disabled:oe||ae.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:te?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{ci(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:D,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function xb(){const{controls:i,isLoggedIn:c}=kt(),r=ea(),[s,d]=S.useState(!1),[h,y]=S.useState(!1);if(c)return f.jsx(wa,{to:"/.account/account/",replace:!0});const x=async p=>{p.preventDefault(),d(!0);const g=new FormData(p.currentTarget).get("email");try{await fetch(i?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:g})}),y(!0)}catch{alert("Failed to send reset email")}finally{d(!1)}};return f.jsx(on,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:zr,showBack:!0,onBack:()=>r("/.account/login/password/"),children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx($a,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),f.jsx("button",{onClick:()=>y(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:x,children:[f.jsxs("div",{className:"relative",children:[f.jsx(zr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),f.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(Qu,{className:"h-4 w-4"})]})})]})})}function bb(){const{controls:i,isLoggedIn:c}=kt(),r=ea(),[s]=jv(),[d,h]=S.useState(!1),[y,x]=S.useState(!1),[p,g]=S.useState(null),[C,z]=S.useState(""),[B,Y]=S.useState(""),Q=s.get("rid"),O=C.length>0&&B.length>0&&C===B;if(c)return f.jsx(wa,{to:"/.account/account/",replace:!0});if(!Q)return f.jsx(wa,{to:"/.account/login/password/forgot/",replace:!0});const L=async X=>{if(X.preventDefault(),!O){g("Passwords do not match");return}h(!0),g(null);try{const W=i?.password?.reset||"/.account/login/password/reset/",F=await fetch(W,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:Q,password:C})});if(F.ok)x(!0);else{const le=await F.json().catch(()=>({}));g(le.message||"Failed to reset password")}}catch{g("Network error")}finally{h(!1)}};return f.jsx(on,{title:"Reset Password",subtitle:"Enter your new password.",icon:ui,children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx($a,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:L,children:[p&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:p}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:X=>z(X.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),f.jsxs("div",{className:"relative",children:[O?f.jsx($a,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:B,onChange:X=>Y(X.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${O?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),f.jsx("button",{type:"submit",disabled:d||!O,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:d?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(Qu,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function Sb(){const{controls:i,isLoggedIn:c}=kt(),[r,s]=S.useState([]),[d,h]=S.useState(!0);return S.useEffect(()=>{if(c){window.location.href="/.account/account/";return}(async()=>{try{if(i?.main?.logins){const x=await(await fetch(i.main.logins,{headers:Le(),credentials:"include"})).json(),p=Object.entries(x.logins||{});if(p.length===1){window.location.href=p[0][1];return}if(p.length===0){window.location.href="/.account/login/password/";return}s(p)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=i?.html?.password?.login||"/.account/login/password/"}finally{h(!1)}})()},[i,c]),d?f.jsx(l0,{}):f.jsx(on,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:r.map(([y,x])=>f.jsx("a",{href:x,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:y},y))})})}var y0={"chatkit.error":"onError","chatkit.history.close":"onHistoryClose","chatkit.history.open":"onHistoryOpen","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect","chatkit.deeplink":"onDeeplink"},wb=Object.keys(y0),jb=S.forwardRef(function({control:c,...r},s){const d=S.useRef(null);return S.useLayoutEffect(()=>{const h=d.current;if(!h)return;if(customElements.get("openai-chatkit")){h.setOptions(c.options);return}let y=!0;return customElements.whenDefined("openai-chatkit").then(()=>{y&&h.setOptions(c.options)}),()=>{y=!1}},[c.options]),S.useEffect(()=>{const h=d.current;if(!h)return;const y=new AbortController;for(const x of wb)h.addEventListener(x,p=>{const g=y0[x],C=c.handlers[g];typeof C=="function"&&C(p.detail)},{signal:y.signal});return()=>{y.abort()}},[c.handlers]),f.jsx("openai-chatkit",{ref:h=>{d.current=h,c.setInstance(h),typeof s=="function"?s(h):s&&(s.current=h),d.current},...r})});function Nm(i){return i!==null&&typeof i=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(i))||Array.isArray(i)}function Ar(i,c,r=new WeakMap){if(Object.is(i,c))return!0;if(typeof i=="function"&&typeof c=="function")return typeof i==typeof c;if(!Nm(i)||!Nm(c))return!1;const s=r.get(i);if(s&&s===c)return!0;if(r.set(i,c),Array.isArray(i)||Array.isArray(c)){if(!Array.isArray(i)||!Array.isArray(c)||i.length!==c.length)return!1;for(let y=0;y<i.length;y++)if(!Ar(i[y],c[y],r))return!1;return!0}const d=Object.keys(i),h=Object.keys(c);if(d.length!==h.length)return!1;for(let y=0;y<d.length;y++){const x=d[y];if(!Object.prototype.hasOwnProperty.call(c,x))return!1;const p=i[x],g=c[x];if(!Ar(p,g,r))return!1}return!0}function zb(i){const c=[],r=(h,y)=>y.reduce((x,p)=>x==null?x:x[p],h),s=(h,y)=>(...x)=>{const p=r(i.current,h),g=p?.[y];if(typeof g=="function")return g.apply(p,x)},d=h=>{if(typeof h=="function"){const y=c[c.length-1],x=c.slice(0,-1);return s(x,y)}if(Array.isArray(h)){const y=c.length,x=new Array(h.length);for(let p=0;p<h.length;p++)c[y]=p,x[p]=d(h[p]);return c.length=y,x}if(h&&typeof h=="object"){const y=c.length,x={};for(const p of Object.keys(h))c[y]=p,x[p]=d(h[p]);return c.length=y,x}return h};return d(i.current)}function Eb(i){const c=br.useRef(i);c.current=i;const r=br.useRef(null);return(!r.current||!Ar(r.current.snapshot,i))&&(r.current={snapshot:i,shaped:zb(c)}),r.current.shaped}var Nb=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function Cb(i){const c=S.useRef(null),r=Eb(i),s=S.useMemo(()=>Nb.reduce((y,x)=>(y[x]=(...p)=>{if(!c.current){console.warn("ChatKit element is not mounted");return}return c.current[x](...p)},y),{}),[]),d=S.useCallback(y=>{c.current=y},[]),h=S.useMemo(()=>{const y={},x={};for(const[p,g]of Object.entries(r))/^on[A-Z]/.test(p)&&p!=="onClientTool"?x[p]=g:y[p]=g;return{setInstance:d,options:y,handlers:x}},[r,d]);return S.useMemo(()=>({...s,control:h,ref:c}),[s,h])}const Cm="http://localhost:3000/chatkit",Am="domain_pk_localhost_dev";function Ab(){const{isLoggedIn:i}=kt(),[c,r]=S.useState(""),[s,d]=S.useState(!1),h=S.useCallback(async(x,p={})=>{const g={...p.headers||{}};return c?g.Authorization=`Bearer ${c}`:Object.assign(g,Le(g)),fetch(x,{...p,headers:g,credentials:"include"})},[c]),y=Cb({api:{url:Cm,domainKey:Am,fetch:h},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>d(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:c?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:i?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:c,onChange:x=>r(x.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{onClick:()=>d(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(jb,{control:y.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",Cm]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",Am]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",c?"API Key":i?"Session":"None"]})]})]})]})}function Tb(){const{isInitializing:i,initError:c}=kt();return i?f.jsx(l0,{}):c?f.jsx(px,{message:c}):f.jsxs(Kg,{children:[f.jsx(Nt,{path:"/.account/",element:f.jsx(Yx,{})}),f.jsx(Nt,{path:"/.account/about/",element:f.jsx(Gx,{})}),f.jsx(Nt,{path:"/.account/account/",element:f.jsx(vm,{allowOidcPending:!0,children:f.jsx(lb,{})})}),f.jsx(Nt,{path:"/.account/create-pod/",element:f.jsx(vm,{allowOidcPending:!0,children:f.jsx(fb,{})})}),f.jsx(Nt,{path:"/chat/",element:f.jsx(Ab,{})}),f.jsx(Nt,{path:"/.account/login/",element:f.jsx(Sb,{})}),f.jsx(Nt,{path:"/.account/login/password/",element:f.jsx(Nr,{initialIsRegister:!1})}),f.jsx(Nt,{path:"/.account/login/password/register/",element:f.jsx(Nr,{initialIsRegister:!0})}),f.jsx(Nt,{path:"/.account/login/password/forgot/",element:f.jsx(xb,{})}),f.jsx(Nt,{path:"/.account/login/password/reset/",element:f.jsx(bb,{})}),f.jsx(Nt,{path:"/.account/oidc/consent/",element:f.jsx(vb,{})}),f.jsx(Nt,{path:"*",element:f.jsx(wa,{to:"/.account/",replace:!0})})]})}function Rb(){return f.jsx(vv,{children:f.jsx(Bv,{children:f.jsx(Tb,{})})})}try{const i=new URLSearchParams(location.search).get("provisionCode");i&&sessionStorage.setItem("provisionCode",i)}catch{}Fp.createRoot(document.getElementById("root")).render(f.jsx(br.StrictMode,{children:f.jsx(Rb,{})}));