solace-agent-mesh 1.11.2__py3-none-any.whl

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 (624) hide show
  1. solace_agent_mesh/__init__.py +0 -0
  2. solace_agent_mesh/agent/__init__.py +0 -0
  3. solace_agent_mesh/agent/adk/__init__.py +0 -0
  4. solace_agent_mesh/agent/adk/adk_llm.txt +226 -0
  5. solace_agent_mesh/agent/adk/adk_llm_detail.txt +566 -0
  6. solace_agent_mesh/agent/adk/alembic/README +74 -0
  7. solace_agent_mesh/agent/adk/alembic/env.py +77 -0
  8. solace_agent_mesh/agent/adk/alembic/script.py.mako +28 -0
  9. solace_agent_mesh/agent/adk/alembic/versions/e2902798564d_adk_session_db_upgrade.py +52 -0
  10. solace_agent_mesh/agent/adk/alembic.ini +112 -0
  11. solace_agent_mesh/agent/adk/app_llm_agent.py +52 -0
  12. solace_agent_mesh/agent/adk/artifacts/__init__.py +1 -0
  13. solace_agent_mesh/agent/adk/artifacts/artifacts_llm.txt +171 -0
  14. solace_agent_mesh/agent/adk/artifacts/filesystem_artifact_service.py +545 -0
  15. solace_agent_mesh/agent/adk/artifacts/s3_artifact_service.py +609 -0
  16. solace_agent_mesh/agent/adk/callbacks.py +2318 -0
  17. solace_agent_mesh/agent/adk/embed_resolving_mcp_toolset.py +406 -0
  18. solace_agent_mesh/agent/adk/intelligent_mcp_callbacks.py +415 -0
  19. solace_agent_mesh/agent/adk/mcp_content_processor.py +666 -0
  20. solace_agent_mesh/agent/adk/models/lite_llm.py +1026 -0
  21. solace_agent_mesh/agent/adk/models/models_llm.txt +189 -0
  22. solace_agent_mesh/agent/adk/models/oauth2_token_manager.py +132 -0
  23. solace_agent_mesh/agent/adk/runner.py +390 -0
  24. solace_agent_mesh/agent/adk/schema_migration.py +88 -0
  25. solace_agent_mesh/agent/adk/services.py +468 -0
  26. solace_agent_mesh/agent/adk/setup.py +1325 -0
  27. solace_agent_mesh/agent/adk/stream_parser.py +415 -0
  28. solace_agent_mesh/agent/adk/tool_wrapper.py +165 -0
  29. solace_agent_mesh/agent/agent_llm.txt +369 -0
  30. solace_agent_mesh/agent/agent_llm_detail.txt +1702 -0
  31. solace_agent_mesh/agent/protocol/__init__.py +0 -0
  32. solace_agent_mesh/agent/protocol/event_handlers.py +2041 -0
  33. solace_agent_mesh/agent/protocol/protocol_llm.txt +81 -0
  34. solace_agent_mesh/agent/protocol/protocol_llm_detail.txt +92 -0
  35. solace_agent_mesh/agent/proxies/__init__.py +0 -0
  36. solace_agent_mesh/agent/proxies/a2a/__init__.py +3 -0
  37. solace_agent_mesh/agent/proxies/a2a/a2a_llm.txt +190 -0
  38. solace_agent_mesh/agent/proxies/a2a/app.py +56 -0
  39. solace_agent_mesh/agent/proxies/a2a/component.py +1585 -0
  40. solace_agent_mesh/agent/proxies/a2a/config.py +216 -0
  41. solace_agent_mesh/agent/proxies/a2a/oauth_token_cache.py +104 -0
  42. solace_agent_mesh/agent/proxies/base/__init__.py +3 -0
  43. solace_agent_mesh/agent/proxies/base/app.py +100 -0
  44. solace_agent_mesh/agent/proxies/base/base_llm.txt +148 -0
  45. solace_agent_mesh/agent/proxies/base/component.py +816 -0
  46. solace_agent_mesh/agent/proxies/base/config.py +85 -0
  47. solace_agent_mesh/agent/proxies/base/proxy_task_context.py +19 -0
  48. solace_agent_mesh/agent/proxies/proxies_llm.txt +283 -0
  49. solace_agent_mesh/agent/sac/__init__.py +0 -0
  50. solace_agent_mesh/agent/sac/app.py +595 -0
  51. solace_agent_mesh/agent/sac/component.py +3668 -0
  52. solace_agent_mesh/agent/sac/patch_adk.py +103 -0
  53. solace_agent_mesh/agent/sac/sac_llm.txt +189 -0
  54. solace_agent_mesh/agent/sac/sac_llm_detail.txt +200 -0
  55. solace_agent_mesh/agent/sac/task_execution_context.py +415 -0
  56. solace_agent_mesh/agent/testing/__init__.py +3 -0
  57. solace_agent_mesh/agent/testing/debug_utils.py +135 -0
  58. solace_agent_mesh/agent/testing/testing_llm.txt +58 -0
  59. solace_agent_mesh/agent/testing/testing_llm_detail.txt +68 -0
  60. solace_agent_mesh/agent/tools/__init__.py +16 -0
  61. solace_agent_mesh/agent/tools/audio_tools.py +1740 -0
  62. solace_agent_mesh/agent/tools/builtin_artifact_tools.py +2500 -0
  63. solace_agent_mesh/agent/tools/builtin_data_analysis_tools.py +244 -0
  64. solace_agent_mesh/agent/tools/dynamic_tool.py +396 -0
  65. solace_agent_mesh/agent/tools/general_agent_tools.py +572 -0
  66. solace_agent_mesh/agent/tools/image_tools.py +1185 -0
  67. solace_agent_mesh/agent/tools/peer_agent_tool.py +363 -0
  68. solace_agent_mesh/agent/tools/registry.py +38 -0
  69. solace_agent_mesh/agent/tools/test_tools.py +136 -0
  70. solace_agent_mesh/agent/tools/time_tools.py +126 -0
  71. solace_agent_mesh/agent/tools/tool_config_types.py +93 -0
  72. solace_agent_mesh/agent/tools/tool_definition.py +53 -0
  73. solace_agent_mesh/agent/tools/tools_llm.txt +276 -0
  74. solace_agent_mesh/agent/tools/tools_llm_detail.txt +275 -0
  75. solace_agent_mesh/agent/tools/web_tools.py +392 -0
  76. solace_agent_mesh/agent/utils/__init__.py +0 -0
  77. solace_agent_mesh/agent/utils/artifact_helpers.py +1353 -0
  78. solace_agent_mesh/agent/utils/config_parser.py +49 -0
  79. solace_agent_mesh/agent/utils/context_helpers.py +77 -0
  80. solace_agent_mesh/agent/utils/utils_llm.txt +152 -0
  81. solace_agent_mesh/agent/utils/utils_llm_detail.txt +149 -0
  82. solace_agent_mesh/assets/docs/404.html +16 -0
  83. solace_agent_mesh/assets/docs/assets/css/styles.8162edfb.css +1 -0
  84. solace_agent_mesh/assets/docs/assets/images/Solace_AI_Framework_With_Broker-85f0a306a9bcdd20b390b7a949f6d862.png +0 -0
  85. solace_agent_mesh/assets/docs/assets/images/sam-enterprise-credentials-b269f095349473118b2b33bdfcc40122.png +0 -0
  86. solace_agent_mesh/assets/docs/assets/js/032c2d61.f3d37824.js +1 -0
  87. solace_agent_mesh/assets/docs/assets/js/05749d90.19ac4f35.js +1 -0
  88. solace_agent_mesh/assets/docs/assets/js/0bcf40b7.c019ad46.js +1 -0
  89. solace_agent_mesh/assets/docs/assets/js/1001.0182a8bd.js +1 -0
  90. solace_agent_mesh/assets/docs/assets/js/1039.0bd46aa1.js +1 -0
  91. solace_agent_mesh/assets/docs/assets/js/149.b797a808.js +1 -0
  92. solace_agent_mesh/assets/docs/assets/js/15ba94aa.92fea363.js +1 -0
  93. solace_agent_mesh/assets/docs/assets/js/15e40e79.434bb30f.js +1 -0
  94. solace_agent_mesh/assets/docs/assets/js/165.6a39807d.js +2 -0
  95. solace_agent_mesh/assets/docs/assets/js/165.6a39807d.js.LICENSE.txt +9 -0
  96. solace_agent_mesh/assets/docs/assets/js/17896441.e612dfb4.js +1 -0
  97. solace_agent_mesh/assets/docs/assets/js/2130.ab9fd314.js +1 -0
  98. solace_agent_mesh/assets/docs/assets/js/2131ec11.5c7a1f6e.js +1 -0
  99. solace_agent_mesh/assets/docs/assets/js/2237.5e477fc6.js +1 -0
  100. solace_agent_mesh/assets/docs/assets/js/2279.550aa580.js +2 -0
  101. solace_agent_mesh/assets/docs/assets/js/2279.550aa580.js.LICENSE.txt +13 -0
  102. solace_agent_mesh/assets/docs/assets/js/2334.1cf50a20.js +1 -0
  103. solace_agent_mesh/assets/docs/assets/js/240a0364.9ad94d1b.js +1 -0
  104. solace_agent_mesh/assets/docs/assets/js/2987107d.a80604f9.js +1 -0
  105. solace_agent_mesh/assets/docs/assets/js/2e32b5e0.33f5d75b.js +1 -0
  106. solace_agent_mesh/assets/docs/assets/js/3219.adc1d663.js +1 -0
  107. solace_agent_mesh/assets/docs/assets/js/341393d4.0fac2613.js +1 -0
  108. solace_agent_mesh/assets/docs/assets/js/3624.0eaa1fd0.js +1 -0
  109. solace_agent_mesh/assets/docs/assets/js/375.708d48db.js +1 -0
  110. solace_agent_mesh/assets/docs/assets/js/3834.b6cd790e.js +1 -0
  111. solace_agent_mesh/assets/docs/assets/js/3a6c6137.f5940cfa.js +1 -0
  112. solace_agent_mesh/assets/docs/assets/js/3ac1795d.28b7c67b.js +1 -0
  113. solace_agent_mesh/assets/docs/assets/js/3ff0015d.2ddc75c0.js +1 -0
  114. solace_agent_mesh/assets/docs/assets/js/41adc471.48b12a4e.js +1 -0
  115. solace_agent_mesh/assets/docs/assets/js/4250.95455b28.js +1 -0
  116. solace_agent_mesh/assets/docs/assets/js/4356.d169ab5b.js +1 -0
  117. solace_agent_mesh/assets/docs/assets/js/4458.518e66fa.js +1 -0
  118. solace_agent_mesh/assets/docs/assets/js/4488.c7cc3442.js +1 -0
  119. solace_agent_mesh/assets/docs/assets/js/4494.6ee23046.js +1 -0
  120. solace_agent_mesh/assets/docs/assets/js/4855.fc4444b6.js +1 -0
  121. solace_agent_mesh/assets/docs/assets/js/4866.22daefc0.js +1 -0
  122. solace_agent_mesh/assets/docs/assets/js/4950.ca4caeda.js +1 -0
  123. solace_agent_mesh/assets/docs/assets/js/509e993c.a1fbf45a.js +1 -0
  124. solace_agent_mesh/assets/docs/assets/js/5388.7a136447.js +1 -0
  125. solace_agent_mesh/assets/docs/assets/js/547e15cc.2f7790c1.js +1 -0
  126. solace_agent_mesh/assets/docs/assets/js/55b7b518.29d6e75d.js +1 -0
  127. solace_agent_mesh/assets/docs/assets/js/5607.081356f8.js +1 -0
  128. solace_agent_mesh/assets/docs/assets/js/5864.b0d0e9de.js +1 -0
  129. solace_agent_mesh/assets/docs/assets/js/5c2bd65f.90a87880.js +1 -0
  130. solace_agent_mesh/assets/docs/assets/js/5e95c892.558d5167.js +1 -0
  131. solace_agent_mesh/assets/docs/assets/js/6063ff4c.ef84f702.js +1 -0
  132. solace_agent_mesh/assets/docs/assets/js/60702c0e.a8bdd79b.js +1 -0
  133. solace_agent_mesh/assets/docs/assets/js/6143.0a1464c9.js +1 -0
  134. solace_agent_mesh/assets/docs/assets/js/631738c7.fa471607.js +1 -0
  135. solace_agent_mesh/assets/docs/assets/js/6395.e9c73649.js +1 -0
  136. solace_agent_mesh/assets/docs/assets/js/64195356.c498c4d0.js +1 -0
  137. solace_agent_mesh/assets/docs/assets/js/66d4869e.b77431fc.js +1 -0
  138. solace_agent_mesh/assets/docs/assets/js/6796.51d2c9b7.js +1 -0
  139. solace_agent_mesh/assets/docs/assets/js/6976.379be23b.js +1 -0
  140. solace_agent_mesh/assets/docs/assets/js/6978.ee0b945c.js +1 -0
  141. solace_agent_mesh/assets/docs/assets/js/6a520c9d.b6e3f2ce.js +1 -0
  142. solace_agent_mesh/assets/docs/assets/js/6aaedf65.7253541d.js +1 -0
  143. solace_agent_mesh/assets/docs/assets/js/6ad8f0bd.a5b36a60.js +1 -0
  144. solace_agent_mesh/assets/docs/assets/js/6d84eae0.fd23ba4a.js +1 -0
  145. solace_agent_mesh/assets/docs/assets/js/6fdfefc7.99de744e.js +1 -0
  146. solace_agent_mesh/assets/docs/assets/js/7040.cb436723.js +1 -0
  147. solace_agent_mesh/assets/docs/assets/js/7195.412f418a.js +1 -0
  148. solace_agent_mesh/assets/docs/assets/js/71da7b71.374b9d54.js +1 -0
  149. solace_agent_mesh/assets/docs/assets/js/722f809d.965da774.js +1 -0
  150. solace_agent_mesh/assets/docs/assets/js/7280.3fb73bdb.js +1 -0
  151. solace_agent_mesh/assets/docs/assets/js/742f027b.46c07808.js +1 -0
  152. solace_agent_mesh/assets/docs/assets/js/77cf947d.48cb18a2.js +1 -0
  153. solace_agent_mesh/assets/docs/assets/js/7845.e33e7c4c.js +1 -0
  154. solace_agent_mesh/assets/docs/assets/js/7900.69516146.js +1 -0
  155. solace_agent_mesh/assets/docs/assets/js/8024126c.fa0e7186.js +1 -0
  156. solace_agent_mesh/assets/docs/assets/js/81a99df0.2484b8d9.js +1 -0
  157. solace_agent_mesh/assets/docs/assets/js/82fbfb93.161823a5.js +1 -0
  158. solace_agent_mesh/assets/docs/assets/js/8356.8a379c04.js +1 -0
  159. solace_agent_mesh/assets/docs/assets/js/8567.4732c6b7.js +1 -0
  160. solace_agent_mesh/assets/docs/assets/js/8573.cb04eda5.js +1 -0
  161. solace_agent_mesh/assets/docs/assets/js/8577.1d54e766.js +1 -0
  162. solace_agent_mesh/assets/docs/assets/js/8591.5d015485.js +2 -0
  163. solace_agent_mesh/assets/docs/assets/js/8591.5d015485.js.LICENSE.txt +61 -0
  164. solace_agent_mesh/assets/docs/assets/js/8709.7ecd4047.js +1 -0
  165. solace_agent_mesh/assets/docs/assets/js/8731.6c1dbf0c.js +1 -0
  166. solace_agent_mesh/assets/docs/assets/js/8908.f9d1b506.js +1 -0
  167. solace_agent_mesh/assets/docs/assets/js/8b032486.91a91afc.js +1 -0
  168. solace_agent_mesh/assets/docs/assets/js/9157.b4093d07.js +1 -0
  169. solace_agent_mesh/assets/docs/assets/js/924ffdeb.975e428a.js +1 -0
  170. solace_agent_mesh/assets/docs/assets/js/9278.a4fd875d.js +1 -0
  171. solace_agent_mesh/assets/docs/assets/js/945fb41e.6f4cdffd.js +1 -0
  172. solace_agent_mesh/assets/docs/assets/js/94e8668d.16083b3f.js +1 -0
  173. solace_agent_mesh/assets/docs/assets/js/9616.b75c2f6d.js +1 -0
  174. solace_agent_mesh/assets/docs/assets/js/9793.c6d16376.js +1 -0
  175. solace_agent_mesh/assets/docs/assets/js/9bb13469.b2333011.js +1 -0
  176. solace_agent_mesh/assets/docs/assets/js/9e9d0a82.570c057b.js +1 -0
  177. solace_agent_mesh/assets/docs/assets/js/a7bd4aaa.2204d2f7.js +1 -0
  178. solace_agent_mesh/assets/docs/assets/js/a94703ab.3e5fbcb3.js +1 -0
  179. solace_agent_mesh/assets/docs/assets/js/ab9708a8.245ae0ef.js +1 -0
  180. solace_agent_mesh/assets/docs/assets/js/aba21aa0.c42a534c.js +1 -0
  181. solace_agent_mesh/assets/docs/assets/js/ad71b5ed.af3ecfd1.js +1 -0
  182. solace_agent_mesh/assets/docs/assets/js/ad87452a.9d73dad6.js +1 -0
  183. solace_agent_mesh/assets/docs/assets/js/c198a0dc.8f31f867.js +1 -0
  184. solace_agent_mesh/assets/docs/assets/js/c93cbaa0.0e0d8baf.js +1 -0
  185. solace_agent_mesh/assets/docs/assets/js/cab03b5b.6a073091.js +1 -0
  186. solace_agent_mesh/assets/docs/assets/js/cbe2e9ea.07e170dd.js +1 -0
  187. solace_agent_mesh/assets/docs/assets/js/ceb2a7a6.5d92d7d0.js +1 -0
  188. solace_agent_mesh/assets/docs/assets/js/da0b5bad.b62f7b08.js +1 -0
  189. solace_agent_mesh/assets/docs/assets/js/db5d6442.3daf1696.js +1 -0
  190. solace_agent_mesh/assets/docs/assets/js/db924877.e98d12a1.js +1 -0
  191. solace_agent_mesh/assets/docs/assets/js/dd817ffc.c37a755e.js +1 -0
  192. solace_agent_mesh/assets/docs/assets/js/dd81e2b8.b682e9c2.js +1 -0
  193. solace_agent_mesh/assets/docs/assets/js/de5f4c65.e8241890.js +1 -0
  194. solace_agent_mesh/assets/docs/assets/js/de915948.44a432bc.js +1 -0
  195. solace_agent_mesh/assets/docs/assets/js/e04b235d.52cb25ed.js +1 -0
  196. solace_agent_mesh/assets/docs/assets/js/e1b6eeb4.b1068f9b.js +1 -0
  197. solace_agent_mesh/assets/docs/assets/js/e3d9abda.1476f570.js +1 -0
  198. solace_agent_mesh/assets/docs/assets/js/e6f9706b.4488e34c.js +1 -0
  199. solace_agent_mesh/assets/docs/assets/js/e92d0134.3bda61dd.js +1 -0
  200. solace_agent_mesh/assets/docs/assets/js/f284c35a.250993bf.js +1 -0
  201. solace_agent_mesh/assets/docs/assets/js/ff4d71f2.74710fc1.js +1 -0
  202. solace_agent_mesh/assets/docs/assets/js/main.7acf7ace.js +2 -0
  203. solace_agent_mesh/assets/docs/assets/js/main.7acf7ace.js.LICENSE.txt +81 -0
  204. solace_agent_mesh/assets/docs/assets/js/runtime~main.9e0813a2.js +1 -0
  205. solace_agent_mesh/assets/docs/docs/documentation/components/agents/index.html +154 -0
  206. solace_agent_mesh/assets/docs/docs/documentation/components/builtin-tools/artifact-management/index.html +99 -0
  207. solace_agent_mesh/assets/docs/docs/documentation/components/builtin-tools/audio-tools/index.html +90 -0
  208. solace_agent_mesh/assets/docs/docs/documentation/components/builtin-tools/data-analysis-tools/index.html +107 -0
  209. solace_agent_mesh/assets/docs/docs/documentation/components/builtin-tools/embeds/index.html +166 -0
  210. solace_agent_mesh/assets/docs/docs/documentation/components/builtin-tools/index.html +101 -0
  211. solace_agent_mesh/assets/docs/docs/documentation/components/cli/index.html +219 -0
  212. solace_agent_mesh/assets/docs/docs/documentation/components/gateways/index.html +92 -0
  213. solace_agent_mesh/assets/docs/docs/documentation/components/index.html +29 -0
  214. solace_agent_mesh/assets/docs/docs/documentation/components/orchestrator/index.html +55 -0
  215. solace_agent_mesh/assets/docs/docs/documentation/components/plugins/index.html +110 -0
  216. solace_agent_mesh/assets/docs/docs/documentation/components/projects/index.html +182 -0
  217. solace_agent_mesh/assets/docs/docs/documentation/components/prompts/index.html +147 -0
  218. solace_agent_mesh/assets/docs/docs/documentation/components/proxies/index.html +345 -0
  219. solace_agent_mesh/assets/docs/docs/documentation/components/speech/index.html +52 -0
  220. solace_agent_mesh/assets/docs/docs/documentation/deploying/debugging/index.html +83 -0
  221. solace_agent_mesh/assets/docs/docs/documentation/deploying/deployment-options/index.html +84 -0
  222. solace_agent_mesh/assets/docs/docs/documentation/deploying/index.html +25 -0
  223. solace_agent_mesh/assets/docs/docs/documentation/deploying/kubernetes-deployment/index.html +47 -0
  224. solace_agent_mesh/assets/docs/docs/documentation/deploying/logging/index.html +85 -0
  225. solace_agent_mesh/assets/docs/docs/documentation/deploying/observability/index.html +60 -0
  226. solace_agent_mesh/assets/docs/docs/documentation/deploying/proxy_configuration/index.html +49 -0
  227. solace_agent_mesh/assets/docs/docs/documentation/developing/create-agents/index.html +144 -0
  228. solace_agent_mesh/assets/docs/docs/documentation/developing/create-gateways/index.html +191 -0
  229. solace_agent_mesh/assets/docs/docs/documentation/developing/creating-python-tools/index.html +128 -0
  230. solace_agent_mesh/assets/docs/docs/documentation/developing/creating-service-providers/index.html +54 -0
  231. solace_agent_mesh/assets/docs/docs/documentation/developing/evaluations/index.html +135 -0
  232. solace_agent_mesh/assets/docs/docs/documentation/developing/index.html +34 -0
  233. solace_agent_mesh/assets/docs/docs/documentation/developing/structure/index.html +55 -0
  234. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/bedrock-agents/index.html +267 -0
  235. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/custom-agent/index.html +142 -0
  236. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/event-mesh-gateway/index.html +116 -0
  237. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/mcp-integration/index.html +86 -0
  238. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/mongodb-integration/index.html +164 -0
  239. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/rag-integration/index.html +140 -0
  240. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/rest-gateway/index.html +57 -0
  241. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/slack-integration/index.html +72 -0
  242. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/sql-database/index.html +102 -0
  243. solace_agent_mesh/assets/docs/docs/documentation/developing/tutorials/teams-integration/index.html +115 -0
  244. solace_agent_mesh/assets/docs/docs/documentation/enterprise/agent-builder/index.html +86 -0
  245. solace_agent_mesh/assets/docs/docs/documentation/enterprise/connectors/index.html +67 -0
  246. solace_agent_mesh/assets/docs/docs/documentation/enterprise/index.html +37 -0
  247. solace_agent_mesh/assets/docs/docs/documentation/enterprise/installation/index.html +86 -0
  248. solace_agent_mesh/assets/docs/docs/documentation/enterprise/openapi-tools/index.html +324 -0
  249. solace_agent_mesh/assets/docs/docs/documentation/enterprise/rbac-setup-guide/index.html +247 -0
  250. solace_agent_mesh/assets/docs/docs/documentation/enterprise/secure-user-delegated-access/index.html +440 -0
  251. solace_agent_mesh/assets/docs/docs/documentation/enterprise/single-sign-on/index.html +184 -0
  252. solace_agent_mesh/assets/docs/docs/documentation/enterprise/wheel-installation/index.html +62 -0
  253. solace_agent_mesh/assets/docs/docs/documentation/getting-started/architecture/index.html +75 -0
  254. solace_agent_mesh/assets/docs/docs/documentation/getting-started/index.html +54 -0
  255. solace_agent_mesh/assets/docs/docs/documentation/getting-started/introduction/index.html +85 -0
  256. solace_agent_mesh/assets/docs/docs/documentation/getting-started/try-agent-mesh/index.html +41 -0
  257. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/artifact-storage/index.html +290 -0
  258. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/configurations/index.html +78 -0
  259. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/index.html +25 -0
  260. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/installation/index.html +78 -0
  261. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/large_language_models/index.html +160 -0
  262. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/run-project/index.html +142 -0
  263. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/session-storage/index.html +251 -0
  264. solace_agent_mesh/assets/docs/docs/documentation/installing-and-configuring/user-feedback/index.html +88 -0
  265. solace_agent_mesh/assets/docs/docs/documentation/migrations/a2a-upgrade/a2a-gateway-upgrade-to-0.3.0/index.html +100 -0
  266. solace_agent_mesh/assets/docs/docs/documentation/migrations/a2a-upgrade/a2a-technical-migration-map/index.html +52 -0
  267. solace_agent_mesh/assets/docs/img/Solace_AI_Framework_With_Broker.png +0 -0
  268. solace_agent_mesh/assets/docs/img/logo.png +0 -0
  269. solace_agent_mesh/assets/docs/img/sac-flows.png +0 -0
  270. solace_agent_mesh/assets/docs/img/sac_parts_of_a_component.png +0 -0
  271. solace_agent_mesh/assets/docs/img/sam-enterprise-credentials.png +0 -0
  272. solace_agent_mesh/assets/docs/img/solace-logo-text.svg +18 -0
  273. solace_agent_mesh/assets/docs/img/solace-logo.png +0 -0
  274. solace_agent_mesh/assets/docs/lunr-index-1765810064709.json +1 -0
  275. solace_agent_mesh/assets/docs/lunr-index.json +1 -0
  276. solace_agent_mesh/assets/docs/search-doc-1765810064709.json +1 -0
  277. solace_agent_mesh/assets/docs/search-doc.json +1 -0
  278. solace_agent_mesh/assets/docs/sitemap.xml +1 -0
  279. solace_agent_mesh/cli/__init__.py +1 -0
  280. solace_agent_mesh/cli/commands/__init__.py +0 -0
  281. solace_agent_mesh/cli/commands/add_cmd/__init__.py +15 -0
  282. solace_agent_mesh/cli/commands/add_cmd/add_cmd_llm.txt +250 -0
  283. solace_agent_mesh/cli/commands/add_cmd/agent_cmd.py +729 -0
  284. solace_agent_mesh/cli/commands/add_cmd/gateway_cmd.py +322 -0
  285. solace_agent_mesh/cli/commands/add_cmd/web_add_agent_step.py +102 -0
  286. solace_agent_mesh/cli/commands/add_cmd/web_add_gateway_step.py +114 -0
  287. solace_agent_mesh/cli/commands/docs_cmd.py +60 -0
  288. solace_agent_mesh/cli/commands/eval_cmd.py +46 -0
  289. solace_agent_mesh/cli/commands/init_cmd/__init__.py +439 -0
  290. solace_agent_mesh/cli/commands/init_cmd/broker_step.py +201 -0
  291. solace_agent_mesh/cli/commands/init_cmd/database_step.py +91 -0
  292. solace_agent_mesh/cli/commands/init_cmd/directory_step.py +28 -0
  293. solace_agent_mesh/cli/commands/init_cmd/env_step.py +238 -0
  294. solace_agent_mesh/cli/commands/init_cmd/init_cmd_llm.txt +365 -0
  295. solace_agent_mesh/cli/commands/init_cmd/orchestrator_step.py +464 -0
  296. solace_agent_mesh/cli/commands/init_cmd/project_files_step.py +38 -0
  297. solace_agent_mesh/cli/commands/init_cmd/web_init_step.py +119 -0
  298. solace_agent_mesh/cli/commands/init_cmd/webui_gateway_step.py +215 -0
  299. solace_agent_mesh/cli/commands/plugin_cmd/__init__.py +20 -0
  300. solace_agent_mesh/cli/commands/plugin_cmd/add_cmd.py +137 -0
  301. solace_agent_mesh/cli/commands/plugin_cmd/build_cmd.py +86 -0
  302. solace_agent_mesh/cli/commands/plugin_cmd/catalog_cmd.py +144 -0
  303. solace_agent_mesh/cli/commands/plugin_cmd/create_cmd.py +306 -0
  304. solace_agent_mesh/cli/commands/plugin_cmd/install_cmd.py +283 -0
  305. solace_agent_mesh/cli/commands/plugin_cmd/official_registry.py +175 -0
  306. solace_agent_mesh/cli/commands/plugin_cmd/plugin_cmd_llm.txt +305 -0
  307. solace_agent_mesh/cli/commands/run_cmd.py +215 -0
  308. solace_agent_mesh/cli/main.py +52 -0
  309. solace_agent_mesh/cli/utils.py +262 -0
  310. solace_agent_mesh/client/webui/frontend/static/assets/authCallback-Dj3JtK42.js +1 -0
  311. solace_agent_mesh/client/webui/frontend/static/assets/client-ZKk9kEJ5.js +25 -0
  312. solace_agent_mesh/client/webui/frontend/static/assets/favicon-BLgzUch9.ico +0 -0
  313. solace_agent_mesh/client/webui/frontend/static/assets/main-BcUaNZ-Q.css +1 -0
  314. solace_agent_mesh/client/webui/frontend/static/assets/main-vjch4RYc.js +435 -0
  315. solace_agent_mesh/client/webui/frontend/static/assets/vendor-BNV4kZN0.js +535 -0
  316. solace_agent_mesh/client/webui/frontend/static/auth-callback.html +15 -0
  317. solace_agent_mesh/client/webui/frontend/static/index.html +16 -0
  318. solace_agent_mesh/client/webui/frontend/static/mockServiceWorker.js +336 -0
  319. solace_agent_mesh/client/webui/frontend/static/ui-version.json +6 -0
  320. solace_agent_mesh/common/__init__.py +1 -0
  321. solace_agent_mesh/common/a2a/__init__.py +241 -0
  322. solace_agent_mesh/common/a2a/a2a_llm.txt +175 -0
  323. solace_agent_mesh/common/a2a/a2a_llm_detail.txt +193 -0
  324. solace_agent_mesh/common/a2a/artifact.py +368 -0
  325. solace_agent_mesh/common/a2a/events.py +213 -0
  326. solace_agent_mesh/common/a2a/message.py +375 -0
  327. solace_agent_mesh/common/a2a/protocol.py +689 -0
  328. solace_agent_mesh/common/a2a/task.py +127 -0
  329. solace_agent_mesh/common/a2a/translation.py +655 -0
  330. solace_agent_mesh/common/a2a/types.py +55 -0
  331. solace_agent_mesh/common/a2a_spec/a2a.json +2576 -0
  332. solace_agent_mesh/common/a2a_spec/a2a_spec_llm.txt +445 -0
  333. solace_agent_mesh/common/a2a_spec/a2a_spec_llm_detail.txt +736 -0
  334. solace_agent_mesh/common/a2a_spec/schemas/agent_progress_update.json +18 -0
  335. solace_agent_mesh/common/a2a_spec/schemas/artifact_creation_progress.json +48 -0
  336. solace_agent_mesh/common/a2a_spec/schemas/feedback_event.json +51 -0
  337. solace_agent_mesh/common/a2a_spec/schemas/llm_invocation.json +41 -0
  338. solace_agent_mesh/common/a2a_spec/schemas/schemas_llm.txt +330 -0
  339. solace_agent_mesh/common/a2a_spec/schemas/tool_invocation_start.json +26 -0
  340. solace_agent_mesh/common/a2a_spec/schemas/tool_result.json +48 -0
  341. solace_agent_mesh/common/agent_registry.py +122 -0
  342. solace_agent_mesh/common/common_llm.txt +230 -0
  343. solace_agent_mesh/common/common_llm_detail.txt +2562 -0
  344. solace_agent_mesh/common/constants.py +6 -0
  345. solace_agent_mesh/common/data_parts.py +150 -0
  346. solace_agent_mesh/common/exceptions.py +49 -0
  347. solace_agent_mesh/common/middleware/__init__.py +12 -0
  348. solace_agent_mesh/common/middleware/config_resolver.py +132 -0
  349. solace_agent_mesh/common/middleware/middleware_llm.txt +174 -0
  350. solace_agent_mesh/common/middleware/middleware_llm_detail.txt +185 -0
  351. solace_agent_mesh/common/middleware/registry.py +127 -0
  352. solace_agent_mesh/common/oauth/__init__.py +17 -0
  353. solace_agent_mesh/common/oauth/oauth_client.py +408 -0
  354. solace_agent_mesh/common/oauth/utils.py +50 -0
  355. solace_agent_mesh/common/sac/__init__.py +0 -0
  356. solace_agent_mesh/common/sac/sac_llm.txt +71 -0
  357. solace_agent_mesh/common/sac/sac_llm_detail.txt +82 -0
  358. solace_agent_mesh/common/sac/sam_component_base.py +730 -0
  359. solace_agent_mesh/common/sam_events/__init__.py +9 -0
  360. solace_agent_mesh/common/sam_events/event_service.py +208 -0
  361. solace_agent_mesh/common/sam_events/sam_events_llm.txt +104 -0
  362. solace_agent_mesh/common/sam_events/sam_events_llm_detail.txt +115 -0
  363. solace_agent_mesh/common/services/__init__.py +4 -0
  364. solace_agent_mesh/common/services/employee_service.py +164 -0
  365. solace_agent_mesh/common/services/identity_service.py +134 -0
  366. solace_agent_mesh/common/services/providers/__init__.py +4 -0
  367. solace_agent_mesh/common/services/providers/local_file_identity_service.py +151 -0
  368. solace_agent_mesh/common/services/providers/providers_llm.txt +81 -0
  369. solace_agent_mesh/common/services/services_llm.txt +368 -0
  370. solace_agent_mesh/common/services/services_llm_detail.txt +459 -0
  371. solace_agent_mesh/common/utils/__init__.py +7 -0
  372. solace_agent_mesh/common/utils/artifact_utils.py +31 -0
  373. solace_agent_mesh/common/utils/asyncio_macos_fix.py +88 -0
  374. solace_agent_mesh/common/utils/embeds/__init__.py +33 -0
  375. solace_agent_mesh/common/utils/embeds/constants.py +56 -0
  376. solace_agent_mesh/common/utils/embeds/converter.py +447 -0
  377. solace_agent_mesh/common/utils/embeds/embeds_llm.txt +220 -0
  378. solace_agent_mesh/common/utils/embeds/evaluators.py +395 -0
  379. solace_agent_mesh/common/utils/embeds/modifiers.py +793 -0
  380. solace_agent_mesh/common/utils/embeds/resolver.py +967 -0
  381. solace_agent_mesh/common/utils/embeds/types.py +23 -0
  382. solace_agent_mesh/common/utils/in_memory_cache.py +108 -0
  383. solace_agent_mesh/common/utils/initializer.py +52 -0
  384. solace_agent_mesh/common/utils/log_formatters.py +64 -0
  385. solace_agent_mesh/common/utils/message_utils.py +80 -0
  386. solace_agent_mesh/common/utils/mime_helpers.py +172 -0
  387. solace_agent_mesh/common/utils/push_notification_auth.py +135 -0
  388. solace_agent_mesh/common/utils/pydantic_utils.py +159 -0
  389. solace_agent_mesh/common/utils/rbac_utils.py +69 -0
  390. solace_agent_mesh/common/utils/templates/__init__.py +8 -0
  391. solace_agent_mesh/common/utils/templates/liquid_renderer.py +210 -0
  392. solace_agent_mesh/common/utils/templates/template_resolver.py +161 -0
  393. solace_agent_mesh/common/utils/type_utils.py +28 -0
  394. solace_agent_mesh/common/utils/utils_llm.txt +335 -0
  395. solace_agent_mesh/common/utils/utils_llm_detail.txt +572 -0
  396. solace_agent_mesh/config_portal/__init__.py +0 -0
  397. solace_agent_mesh/config_portal/backend/__init__.py +0 -0
  398. solace_agent_mesh/config_portal/backend/common.py +77 -0
  399. solace_agent_mesh/config_portal/backend/plugin_catalog/__init__.py +0 -0
  400. solace_agent_mesh/config_portal/backend/plugin_catalog/constants.py +24 -0
  401. solace_agent_mesh/config_portal/backend/plugin_catalog/models.py +49 -0
  402. solace_agent_mesh/config_portal/backend/plugin_catalog/registry_manager.py +166 -0
  403. solace_agent_mesh/config_portal/backend/plugin_catalog/scraper.py +521 -0
  404. solace_agent_mesh/config_portal/backend/plugin_catalog_server.py +217 -0
  405. solace_agent_mesh/config_portal/backend/server.py +644 -0
  406. solace_agent_mesh/config_portal/frontend/static/client/Solace_community_logo.png +0 -0
  407. solace_agent_mesh/config_portal/frontend/static/client/assets/_index-DiOiAjzL.js +103 -0
  408. solace_agent_mesh/config_portal/frontend/static/client/assets/components-Rk0n-9cK.js +140 -0
  409. solace_agent_mesh/config_portal/frontend/static/client/assets/entry.client-mvZjNKiz.js +19 -0
  410. solace_agent_mesh/config_portal/frontend/static/client/assets/index-DzNKzXrc.js +68 -0
  411. solace_agent_mesh/config_portal/frontend/static/client/assets/manifest-ba77705e.js +1 -0
  412. solace_agent_mesh/config_portal/frontend/static/client/assets/root-B17tZKK7.css +1 -0
  413. solace_agent_mesh/config_portal/frontend/static/client/assets/root-V2BeTIUc.js +10 -0
  414. solace_agent_mesh/config_portal/frontend/static/client/favicon.ico +0 -0
  415. solace_agent_mesh/config_portal/frontend/static/client/index.html +7 -0
  416. solace_agent_mesh/core_a2a/__init__.py +1 -0
  417. solace_agent_mesh/core_a2a/core_a2a_llm.txt +90 -0
  418. solace_agent_mesh/core_a2a/core_a2a_llm_detail.txt +101 -0
  419. solace_agent_mesh/core_a2a/service.py +307 -0
  420. solace_agent_mesh/evaluation/__init__.py +0 -0
  421. solace_agent_mesh/evaluation/evaluator.py +691 -0
  422. solace_agent_mesh/evaluation/message_organizer.py +553 -0
  423. solace_agent_mesh/evaluation/report/benchmark_info.html +35 -0
  424. solace_agent_mesh/evaluation/report/chart_section.html +141 -0
  425. solace_agent_mesh/evaluation/report/detailed_breakdown.html +28 -0
  426. solace_agent_mesh/evaluation/report/modal.html +59 -0
  427. solace_agent_mesh/evaluation/report/modal_chart_functions.js +411 -0
  428. solace_agent_mesh/evaluation/report/modal_script.js +296 -0
  429. solace_agent_mesh/evaluation/report/modal_styles.css +340 -0
  430. solace_agent_mesh/evaluation/report/performance_metrics_styles.css +93 -0
  431. solace_agent_mesh/evaluation/report/templates/footer.html +2 -0
  432. solace_agent_mesh/evaluation/report/templates/header.html +340 -0
  433. solace_agent_mesh/evaluation/report_data_processor.py +970 -0
  434. solace_agent_mesh/evaluation/report_generator.py +607 -0
  435. solace_agent_mesh/evaluation/run.py +954 -0
  436. solace_agent_mesh/evaluation/shared/__init__.py +92 -0
  437. solace_agent_mesh/evaluation/shared/constants.py +47 -0
  438. solace_agent_mesh/evaluation/shared/exceptions.py +50 -0
  439. solace_agent_mesh/evaluation/shared/helpers.py +35 -0
  440. solace_agent_mesh/evaluation/shared/test_case_loader.py +167 -0
  441. solace_agent_mesh/evaluation/shared/test_suite_loader.py +280 -0
  442. solace_agent_mesh/evaluation/subscriber.py +776 -0
  443. solace_agent_mesh/evaluation/summary_builder.py +880 -0
  444. solace_agent_mesh/gateway/__init__.py +0 -0
  445. solace_agent_mesh/gateway/adapter/__init__.py +1 -0
  446. solace_agent_mesh/gateway/adapter/base.py +143 -0
  447. solace_agent_mesh/gateway/adapter/types.py +221 -0
  448. solace_agent_mesh/gateway/base/__init__.py +1 -0
  449. solace_agent_mesh/gateway/base/app.py +345 -0
  450. solace_agent_mesh/gateway/base/base_llm.txt +226 -0
  451. solace_agent_mesh/gateway/base/base_llm_detail.txt +235 -0
  452. solace_agent_mesh/gateway/base/component.py +2030 -0
  453. solace_agent_mesh/gateway/base/task_context.py +75 -0
  454. solace_agent_mesh/gateway/gateway_llm.txt +369 -0
  455. solace_agent_mesh/gateway/gateway_llm_detail.txt +3885 -0
  456. solace_agent_mesh/gateway/generic/__init__.py +1 -0
  457. solace_agent_mesh/gateway/generic/app.py +50 -0
  458. solace_agent_mesh/gateway/generic/component.py +727 -0
  459. solace_agent_mesh/gateway/http_sse/__init__.py +0 -0
  460. solace_agent_mesh/gateway/http_sse/alembic/alembic_llm.txt +345 -0
  461. solace_agent_mesh/gateway/http_sse/alembic/env.py +87 -0
  462. solace_agent_mesh/gateway/http_sse/alembic/script.py.mako +28 -0
  463. solace_agent_mesh/gateway/http_sse/alembic/versions/20250910_d5b3f8f2e9a0_create_initial_database.py +58 -0
  464. solace_agent_mesh/gateway/http_sse/alembic/versions/20250911_b1c2d3e4f5g6_add_database_indexes.py +83 -0
  465. solace_agent_mesh/gateway/http_sse/alembic/versions/20250916_f6e7d8c9b0a1_convert_timestamps_to_epoch_and_align_columns.py +412 -0
  466. solace_agent_mesh/gateway/http_sse/alembic/versions/20251006_98882922fa59_add_tasks_events_feedback_chat_tasks.py +190 -0
  467. solace_agent_mesh/gateway/http_sse/alembic/versions/20251015_add_session_performance_indexes.py +70 -0
  468. solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_project_users_table.py +72 -0
  469. solace_agent_mesh/gateway/http_sse/alembic/versions/20251023_add_soft_delete_and_search.py +109 -0
  470. solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_default_agent_to_projects.py +26 -0
  471. solace_agent_mesh/gateway/http_sse/alembic/versions/20251024_add_projects_table.py +135 -0
  472. solace_agent_mesh/gateway/http_sse/alembic/versions/20251108_create_prompt_tables_with_sharing.py +154 -0
  473. solace_agent_mesh/gateway/http_sse/alembic/versions/20251115_add_parent_task_id.py +32 -0
  474. solace_agent_mesh/gateway/http_sse/alembic/versions/20251126_add_background_task_fields.py +47 -0
  475. solace_agent_mesh/gateway/http_sse/alembic/versions/20251202_add_versioned_fields_to_prompts.py +52 -0
  476. solace_agent_mesh/gateway/http_sse/alembic/versions/versions_llm.txt +161 -0
  477. solace_agent_mesh/gateway/http_sse/alembic.ini +109 -0
  478. solace_agent_mesh/gateway/http_sse/app.py +351 -0
  479. solace_agent_mesh/gateway/http_sse/component.py +2360 -0
  480. solace_agent_mesh/gateway/http_sse/components/__init__.py +7 -0
  481. solace_agent_mesh/gateway/http_sse/components/components_llm.txt +105 -0
  482. solace_agent_mesh/gateway/http_sse/components/task_logger_forwarder.py +109 -0
  483. solace_agent_mesh/gateway/http_sse/components/visualization_forwarder_component.py +110 -0
  484. solace_agent_mesh/gateway/http_sse/dependencies.py +653 -0
  485. solace_agent_mesh/gateway/http_sse/http_sse_llm.txt +299 -0
  486. solace_agent_mesh/gateway/http_sse/http_sse_llm_detail.txt +3278 -0
  487. solace_agent_mesh/gateway/http_sse/main.py +789 -0
  488. solace_agent_mesh/gateway/http_sse/repository/__init__.py +46 -0
  489. solace_agent_mesh/gateway/http_sse/repository/chat_task_repository.py +102 -0
  490. solace_agent_mesh/gateway/http_sse/repository/entities/__init__.py +11 -0
  491. solace_agent_mesh/gateway/http_sse/repository/entities/chat_task.py +75 -0
  492. solace_agent_mesh/gateway/http_sse/repository/entities/entities_llm.txt +221 -0
  493. solace_agent_mesh/gateway/http_sse/repository/entities/feedback.py +20 -0
  494. solace_agent_mesh/gateway/http_sse/repository/entities/project.py +81 -0
  495. solace_agent_mesh/gateway/http_sse/repository/entities/project_user.py +47 -0
  496. solace_agent_mesh/gateway/http_sse/repository/entities/session.py +66 -0
  497. solace_agent_mesh/gateway/http_sse/repository/entities/session_history.py +0 -0
  498. solace_agent_mesh/gateway/http_sse/repository/entities/task.py +32 -0
  499. solace_agent_mesh/gateway/http_sse/repository/entities/task_event.py +21 -0
  500. solace_agent_mesh/gateway/http_sse/repository/feedback_repository.py +125 -0
  501. solace_agent_mesh/gateway/http_sse/repository/interfaces.py +239 -0
  502. solace_agent_mesh/gateway/http_sse/repository/models/__init__.py +34 -0
  503. solace_agent_mesh/gateway/http_sse/repository/models/base.py +7 -0
  504. solace_agent_mesh/gateway/http_sse/repository/models/chat_task_model.py +31 -0
  505. solace_agent_mesh/gateway/http_sse/repository/models/feedback_model.py +21 -0
  506. solace_agent_mesh/gateway/http_sse/repository/models/models_llm.txt +257 -0
  507. solace_agent_mesh/gateway/http_sse/repository/models/project_model.py +51 -0
  508. solace_agent_mesh/gateway/http_sse/repository/models/project_user_model.py +75 -0
  509. solace_agent_mesh/gateway/http_sse/repository/models/prompt_model.py +159 -0
  510. solace_agent_mesh/gateway/http_sse/repository/models/session_model.py +53 -0
  511. solace_agent_mesh/gateway/http_sse/repository/models/task_event_model.py +25 -0
  512. solace_agent_mesh/gateway/http_sse/repository/models/task_model.py +39 -0
  513. solace_agent_mesh/gateway/http_sse/repository/project_repository.py +172 -0
  514. solace_agent_mesh/gateway/http_sse/repository/project_user_repository.py +186 -0
  515. solace_agent_mesh/gateway/http_sse/repository/repository_llm.txt +308 -0
  516. solace_agent_mesh/gateway/http_sse/repository/session_repository.py +268 -0
  517. solace_agent_mesh/gateway/http_sse/repository/task_repository.py +248 -0
  518. solace_agent_mesh/gateway/http_sse/routers/__init__.py +4 -0
  519. solace_agent_mesh/gateway/http_sse/routers/agent_cards.py +74 -0
  520. solace_agent_mesh/gateway/http_sse/routers/artifacts.py +1137 -0
  521. solace_agent_mesh/gateway/http_sse/routers/auth.py +311 -0
  522. solace_agent_mesh/gateway/http_sse/routers/config.py +371 -0
  523. solace_agent_mesh/gateway/http_sse/routers/dto/__init__.py +10 -0
  524. solace_agent_mesh/gateway/http_sse/routers/dto/dto_llm.txt +450 -0
  525. solace_agent_mesh/gateway/http_sse/routers/dto/project_dto.py +69 -0
  526. solace_agent_mesh/gateway/http_sse/routers/dto/prompt_dto.py +255 -0
  527. solace_agent_mesh/gateway/http_sse/routers/dto/requests/__init__.py +15 -0
  528. solace_agent_mesh/gateway/http_sse/routers/dto/requests/project_requests.py +48 -0
  529. solace_agent_mesh/gateway/http_sse/routers/dto/requests/requests_llm.txt +133 -0
  530. solace_agent_mesh/gateway/http_sse/routers/dto/requests/session_requests.py +33 -0
  531. solace_agent_mesh/gateway/http_sse/routers/dto/requests/task_requests.py +58 -0
  532. solace_agent_mesh/gateway/http_sse/routers/dto/responses/__init__.py +18 -0
  533. solace_agent_mesh/gateway/http_sse/routers/dto/responses/base_responses.py +42 -0
  534. solace_agent_mesh/gateway/http_sse/routers/dto/responses/project_responses.py +31 -0
  535. solace_agent_mesh/gateway/http_sse/routers/dto/responses/responses_llm.txt +123 -0
  536. solace_agent_mesh/gateway/http_sse/routers/dto/responses/session_responses.py +33 -0
  537. solace_agent_mesh/gateway/http_sse/routers/dto/responses/task_responses.py +30 -0
  538. solace_agent_mesh/gateway/http_sse/routers/dto/responses/version_responses.py +31 -0
  539. solace_agent_mesh/gateway/http_sse/routers/feedback.py +168 -0
  540. solace_agent_mesh/gateway/http_sse/routers/people.py +38 -0
  541. solace_agent_mesh/gateway/http_sse/routers/projects.py +767 -0
  542. solace_agent_mesh/gateway/http_sse/routers/prompts.py +1415 -0
  543. solace_agent_mesh/gateway/http_sse/routers/routers_llm.txt +312 -0
  544. solace_agent_mesh/gateway/http_sse/routers/sessions.py +634 -0
  545. solace_agent_mesh/gateway/http_sse/routers/speech.py +355 -0
  546. solace_agent_mesh/gateway/http_sse/routers/sse.py +230 -0
  547. solace_agent_mesh/gateway/http_sse/routers/tasks.py +1089 -0
  548. solace_agent_mesh/gateway/http_sse/routers/users.py +83 -0
  549. solace_agent_mesh/gateway/http_sse/routers/version.py +343 -0
  550. solace_agent_mesh/gateway/http_sse/routers/visualization.py +1220 -0
  551. solace_agent_mesh/gateway/http_sse/services/__init__.py +4 -0
  552. solace_agent_mesh/gateway/http_sse/services/agent_card_service.py +71 -0
  553. solace_agent_mesh/gateway/http_sse/services/audio_service.py +1227 -0
  554. solace_agent_mesh/gateway/http_sse/services/background_task_monitor.py +186 -0
  555. solace_agent_mesh/gateway/http_sse/services/data_retention_service.py +273 -0
  556. solace_agent_mesh/gateway/http_sse/services/feedback_service.py +250 -0
  557. solace_agent_mesh/gateway/http_sse/services/people_service.py +78 -0
  558. solace_agent_mesh/gateway/http_sse/services/project_service.py +930 -0
  559. solace_agent_mesh/gateway/http_sse/services/prompt_builder_assistant.py +303 -0
  560. solace_agent_mesh/gateway/http_sse/services/services_llm.txt +303 -0
  561. solace_agent_mesh/gateway/http_sse/services/session_service.py +702 -0
  562. solace_agent_mesh/gateway/http_sse/services/task_logger_service.py +593 -0
  563. solace_agent_mesh/gateway/http_sse/services/task_service.py +119 -0
  564. solace_agent_mesh/gateway/http_sse/session_manager.py +219 -0
  565. solace_agent_mesh/gateway/http_sse/shared/__init__.py +146 -0
  566. solace_agent_mesh/gateway/http_sse/shared/auth_utils.py +29 -0
  567. solace_agent_mesh/gateway/http_sse/shared/base_repository.py +252 -0
  568. solace_agent_mesh/gateway/http_sse/shared/database_exceptions.py +274 -0
  569. solace_agent_mesh/gateway/http_sse/shared/database_helpers.py +43 -0
  570. solace_agent_mesh/gateway/http_sse/shared/enums.py +40 -0
  571. solace_agent_mesh/gateway/http_sse/shared/error_dto.py +107 -0
  572. solace_agent_mesh/gateway/http_sse/shared/exception_handlers.py +217 -0
  573. solace_agent_mesh/gateway/http_sse/shared/exceptions.py +192 -0
  574. solace_agent_mesh/gateway/http_sse/shared/pagination.py +138 -0
  575. solace_agent_mesh/gateway/http_sse/shared/response_utils.py +134 -0
  576. solace_agent_mesh/gateway/http_sse/shared/shared_llm.txt +319 -0
  577. solace_agent_mesh/gateway/http_sse/shared/timestamp_utils.py +97 -0
  578. solace_agent_mesh/gateway/http_sse/shared/types.py +50 -0
  579. solace_agent_mesh/gateway/http_sse/shared/utils.py +22 -0
  580. solace_agent_mesh/gateway/http_sse/sse_event_buffer.py +88 -0
  581. solace_agent_mesh/gateway/http_sse/sse_manager.py +491 -0
  582. solace_agent_mesh/gateway/http_sse/utils/__init__.py +1 -0
  583. solace_agent_mesh/gateway/http_sse/utils/artifact_copy_utils.py +370 -0
  584. solace_agent_mesh/gateway/http_sse/utils/stim_utils.py +72 -0
  585. solace_agent_mesh/gateway/http_sse/utils/utils_llm.txt +47 -0
  586. solace_agent_mesh/llm.txt +228 -0
  587. solace_agent_mesh/llm_detail.txt +2835 -0
  588. solace_agent_mesh/services/__init__.py +0 -0
  589. solace_agent_mesh/services/platform/__init__.py +18 -0
  590. solace_agent_mesh/services/platform/alembic/env.py +85 -0
  591. solace_agent_mesh/services/platform/alembic/script.py.mako +28 -0
  592. solace_agent_mesh/services/platform/alembic.ini +109 -0
  593. solace_agent_mesh/services/platform/api/__init__.py +3 -0
  594. solace_agent_mesh/services/platform/api/dependencies.py +147 -0
  595. solace_agent_mesh/services/platform/api/main.py +280 -0
  596. solace_agent_mesh/services/platform/api/middleware.py +51 -0
  597. solace_agent_mesh/services/platform/api/routers/__init__.py +24 -0
  598. solace_agent_mesh/services/platform/app.py +114 -0
  599. solace_agent_mesh/services/platform/component.py +235 -0
  600. solace_agent_mesh/solace_agent_mesh_llm.txt +362 -0
  601. solace_agent_mesh/solace_agent_mesh_llm_detail.txt +8599 -0
  602. solace_agent_mesh/templates/agent_template.yaml +53 -0
  603. solace_agent_mesh/templates/eval_backend_template.yaml +54 -0
  604. solace_agent_mesh/templates/gateway_app_template.py +75 -0
  605. solace_agent_mesh/templates/gateway_component_template.py +484 -0
  606. solace_agent_mesh/templates/gateway_config_template.yaml +38 -0
  607. solace_agent_mesh/templates/logging_config_template.yaml +48 -0
  608. solace_agent_mesh/templates/main_orchestrator.yaml +66 -0
  609. solace_agent_mesh/templates/plugin_agent_config_template.yaml +122 -0
  610. solace_agent_mesh/templates/plugin_custom_config_template.yaml +27 -0
  611. solace_agent_mesh/templates/plugin_custom_template.py +10 -0
  612. solace_agent_mesh/templates/plugin_gateway_config_template.yaml +60 -0
  613. solace_agent_mesh/templates/plugin_pyproject_template.toml +32 -0
  614. solace_agent_mesh/templates/plugin_readme_template.md +12 -0
  615. solace_agent_mesh/templates/plugin_tool_config_template.yaml +109 -0
  616. solace_agent_mesh/templates/plugin_tools_template.py +224 -0
  617. solace_agent_mesh/templates/shared_config.yaml +112 -0
  618. solace_agent_mesh/templates/templates_llm.txt +147 -0
  619. solace_agent_mesh/templates/webui.yaml +177 -0
  620. solace_agent_mesh-1.11.2.dist-info/METADATA +504 -0
  621. solace_agent_mesh-1.11.2.dist-info/RECORD +624 -0
  622. solace_agent_mesh-1.11.2.dist-info/WHEEL +4 -0
  623. solace_agent_mesh-1.11.2.dist-info/entry_points.txt +3 -0
  624. solace_agent_mesh-1.11.2.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,68 @@
1
+ function Cf(i,a){for(var u=0;u<a.length;u++){const c=a[u];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in i)){const h=Object.getOwnPropertyDescriptor(c,f);h&&Object.defineProperty(i,f,h.get?h:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}function Pf(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var qa={exports:{}},Il={},ba={exports:{}},ge={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Gc;function Cp(){if(Gc)return ge;Gc=1;var i=Symbol.for("react.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),C=Symbol.iterator;function D(S){return S===null||typeof S!="object"?null:(S=C&&S[C]||S["@@iterator"],typeof S=="function"?S:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W=Object.assign,V={};function U(S,M,de){this.props=S,this.context=M,this.refs=V,this.updater=de||I}U.prototype.isReactComponent={},U.prototype.setState=function(S,M){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,M,"setState")},U.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function fe(){}fe.prototype=U.prototype;function $(S,M,de){this.props=S,this.context=M,this.refs=V,this.updater=de||I}var ae=$.prototype=new fe;ae.constructor=$,W(ae,U.prototype),ae.isPureReactComponent=!0;var le=Array.isArray,Se=Object.prototype.hasOwnProperty,Oe={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function te(S,M,de){var me,pe={},ye=null,xe=null;if(M!=null)for(me in M.ref!==void 0&&(xe=M.ref),M.key!==void 0&&(ye=""+M.key),M)Se.call(M,me)&&!T.hasOwnProperty(me)&&(pe[me]=M[me]);var Ce=arguments.length-2;if(Ce===1)pe.children=de;else if(1<Ce){for(var Be=Array(Ce),mt=0;mt<Ce;mt++)Be[mt]=arguments[mt+2];pe.children=Be}if(S&&S.defaultProps)for(me in Ce=S.defaultProps,Ce)pe[me]===void 0&&(pe[me]=Ce[me]);return{$$typeof:i,type:S,key:ye,ref:xe,props:pe,_owner:Oe.current}}function Ee(S,M){return{$$typeof:i,type:S.type,key:M,ref:S.ref,props:S.props,_owner:S._owner}}function se(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function Ue(S){var M={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(de){return M[de]})}var De=/\/+/g;function Fe(S,M){return typeof S=="object"&&S!==null&&S.key!=null?Ue(""+S.key):M.toString(36)}function Ae(S,M,de,me,pe){var ye=typeof S;(ye==="undefined"||ye==="boolean")&&(S=null);var xe=!1;if(S===null)xe=!0;else switch(ye){case"string":case"number":xe=!0;break;case"object":switch(S.$$typeof){case i:case a:xe=!0}}if(xe)return xe=S,pe=pe(xe),S=me===""?"."+Fe(xe,0):me,le(pe)?(de="",S!=null&&(de=S.replace(De,"$&/")+"/"),Ae(pe,M,de,"",function(mt){return mt})):pe!=null&&(se(pe)&&(pe=Ee(pe,de+(!pe.key||xe&&xe.key===pe.key?"":(""+pe.key).replace(De,"$&/")+"/")+S)),M.push(pe)),1;if(xe=0,me=me===""?".":me+":",le(S))for(var Ce=0;Ce<S.length;Ce++){ye=S[Ce];var Be=me+Fe(ye,Ce);xe+=Ae(ye,M,de,Be,pe)}else if(Be=D(S),typeof Be=="function")for(S=Be.call(S),Ce=0;!(ye=S.next()).done;)ye=ye.value,Be=me+Fe(ye,Ce++),xe+=Ae(ye,M,de,Be,pe);else if(ye==="object")throw M=String(S),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.");return xe}function Ze(S,M,de){if(S==null)return S;var me=[],pe=0;return Ae(S,me,"","",function(ye){return M.call(de,ye,pe++)}),me}function et(S){if(S._status===-1){var M=S._result;M=M(),M.then(function(de){(S._status===0||S._status===-1)&&(S._status=1,S._result=de)},function(de){(S._status===0||S._status===-1)&&(S._status=2,S._result=de)}),S._status===-1&&(S._status=0,S._result=M)}if(S._status===1)return S._result.default;throw S._result}var je={current:null},A={transition:null},re={ReactCurrentDispatcher:je,ReactCurrentBatchConfig:A,ReactCurrentOwner:Oe};function Q(){throw Error("act(...) is not supported in production builds of React.")}return ge.Children={map:Ze,forEach:function(S,M,de){Ze(S,function(){M.apply(this,arguments)},de)},count:function(S){var M=0;return Ze(S,function(){M++}),M},toArray:function(S){return Ze(S,function(M){return M})||[]},only:function(S){if(!se(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},ge.Component=U,ge.Fragment=u,ge.Profiler=f,ge.PureComponent=$,ge.StrictMode=c,ge.Suspense=y,ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,ge.act=Q,ge.cloneElement=function(S,M,de){if(S==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var me=W({},S.props),pe=S.key,ye=S.ref,xe=S._owner;if(M!=null){if(M.ref!==void 0&&(ye=M.ref,xe=Oe.current),M.key!==void 0&&(pe=""+M.key),S.type&&S.type.defaultProps)var Ce=S.type.defaultProps;for(Be in M)Se.call(M,Be)&&!T.hasOwnProperty(Be)&&(me[Be]=M[Be]===void 0&&Ce!==void 0?Ce[Be]:M[Be])}var Be=arguments.length-2;if(Be===1)me.children=de;else if(1<Be){Ce=Array(Be);for(var mt=0;mt<Be;mt++)Ce[mt]=arguments[mt+2];me.children=Ce}return{$$typeof:i,type:S.type,key:pe,ref:ye,props:me,_owner:xe}},ge.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},S.Provider={$$typeof:h,_context:S},S.Consumer=S},ge.createElement=te,ge.createFactory=function(S){var M=te.bind(null,S);return M.type=S,M},ge.createRef=function(){return{current:null}},ge.forwardRef=function(S){return{$$typeof:g,render:S}},ge.isValidElement=se,ge.lazy=function(S){return{$$typeof:_,_payload:{_status:-1,_result:S},_init:et}},ge.memo=function(S,M){return{$$typeof:x,type:S,compare:M===void 0?null:M}},ge.startTransition=function(S){var M=A.transition;A.transition={};try{S()}finally{A.transition=M}},ge.unstable_act=Q,ge.useCallback=function(S,M){return je.current.useCallback(S,M)},ge.useContext=function(S){return je.current.useContext(S)},ge.useDebugValue=function(){},ge.useDeferredValue=function(S){return je.current.useDeferredValue(S)},ge.useEffect=function(S,M){return je.current.useEffect(S,M)},ge.useId=function(){return je.current.useId()},ge.useImperativeHandle=function(S,M,de){return je.current.useImperativeHandle(S,M,de)},ge.useInsertionEffect=function(S,M){return je.current.useInsertionEffect(S,M)},ge.useLayoutEffect=function(S,M){return je.current.useLayoutEffect(S,M)},ge.useMemo=function(S,M){return je.current.useMemo(S,M)},ge.useReducer=function(S,M,de){return je.current.useReducer(S,M,de)},ge.useRef=function(S){return je.current.useRef(S)},ge.useState=function(S){return je.current.useState(S)},ge.useSyncExternalStore=function(S,M,de){return je.current.useSyncExternalStore(S,M,de)},ge.useTransition=function(){return je.current.useTransition()},ge.version="18.3.1",ge}var Jc;function mu(){return Jc||(Jc=1,ba.exports=Cp()),ba.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Zc;function Pp(){if(Zc)return Il;Zc=1;var i=mu(),a=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function p(g,y,x){var _,C={},D=null,I=null;x!==void 0&&(D=""+x),y.key!==void 0&&(D=""+y.key),y.ref!==void 0&&(I=y.ref);for(_ in y)c.call(y,_)&&!h.hasOwnProperty(_)&&(C[_]=y[_]);if(g&&g.defaultProps)for(_ in y=g.defaultProps,y)C[_]===void 0&&(C[_]=y[_]);return{$$typeof:a,type:g,key:D,ref:I,props:C,_owner:f.current}}return Il.Fragment=u,Il.jsx=p,Il.jsxs=p,Il}var qc;function _p(){return qc||(qc=1,qa.exports=Pp()),qa.exports}var zm=_p(),N=mu();const Rp=Pf(N),Lp=Cf({__proto__:null,default:Rp},[N]);var eu={exports:{}},xt={},tu={exports:{}},nu={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var bc;function Tp(){return bc||(bc=1,function(i){function a(A,re){var Q=A.length;A.push(re);e:for(;0<Q;){var S=Q-1>>>1,M=A[S];if(0<f(M,re))A[S]=re,A[Q]=M,Q=S;else break e}}function u(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var re=A[0],Q=A.pop();if(Q!==re){A[0]=Q;e:for(var S=0,M=A.length,de=M>>>1;S<de;){var me=2*(S+1)-1,pe=A[me],ye=me+1,xe=A[ye];if(0>f(pe,Q))ye<M&&0>f(xe,pe)?(A[S]=xe,A[ye]=Q,S=ye):(A[S]=pe,A[me]=Q,S=me);else if(ye<M&&0>f(xe,Q))A[S]=xe,A[ye]=Q,S=ye;else break e}}return re}function f(A,re){var Q=A.sortIndex-re.sortIndex;return Q!==0?Q:A.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();i.unstable_now=function(){return p.now()-g}}var y=[],x=[],_=1,C=null,D=3,I=!1,W=!1,V=!1,U=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ae(A){for(var re=u(x);re!==null;){if(re.callback===null)c(x);else if(re.startTime<=A)c(x),re.sortIndex=re.expirationTime,a(y,re);else break;re=u(x)}}function le(A){if(V=!1,ae(A),!W)if(u(y)!==null)W=!0,et(Se);else{var re=u(x);re!==null&&je(le,re.startTime-A)}}function Se(A,re){W=!1,V&&(V=!1,fe(te),te=-1),I=!0;var Q=D;try{for(ae(re),C=u(y);C!==null&&(!(C.expirationTime>re)||A&&!Ue());){var S=C.callback;if(typeof S=="function"){C.callback=null,D=C.priorityLevel;var M=S(C.expirationTime<=re);re=i.unstable_now(),typeof M=="function"?C.callback=M:C===u(y)&&c(y),ae(re)}else c(y);C=u(y)}if(C!==null)var de=!0;else{var me=u(x);me!==null&&je(le,me.startTime-re),de=!1}return de}finally{C=null,D=Q,I=!1}}var Oe=!1,T=null,te=-1,Ee=5,se=-1;function Ue(){return!(i.unstable_now()-se<Ee)}function De(){if(T!==null){var A=i.unstable_now();se=A;var re=!0;try{re=T(!0,A)}finally{re?Fe():(Oe=!1,T=null)}}else Oe=!1}var Fe;if(typeof $=="function")Fe=function(){$(De)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,Ze=Ae.port2;Ae.port1.onmessage=De,Fe=function(){Ze.postMessage(null)}}else Fe=function(){U(De,0)};function et(A){T=A,Oe||(Oe=!0,Fe())}function je(A,re){te=U(function(){A(i.unstable_now())},re)}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(A){A.callback=null},i.unstable_continueExecution=function(){W||I||(W=!0,et(Se))},i.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<A?Math.floor(1e3/A):5},i.unstable_getCurrentPriorityLevel=function(){return D},i.unstable_getFirstCallbackNode=function(){return u(y)},i.unstable_next=function(A){switch(D){case 1:case 2:case 3:var re=3;break;default:re=D}var Q=D;D=re;try{return A()}finally{D=Q}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(A,re){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Q=D;D=A;try{return re()}finally{D=Q}},i.unstable_scheduleCallback=function(A,re,Q){var S=i.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?S+Q:S):Q=S,A){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=Q+M,A={id:_++,callback:re,priorityLevel:A,startTime:Q,expirationTime:M,sortIndex:-1},Q>S?(A.sortIndex=Q,a(x,A),u(y)===null&&A===u(x)&&(V?(fe(te),te=-1):V=!0,je(le,Q-S))):(A.sortIndex=M,a(y,A),W||I||(W=!0,et(Se))),A},i.unstable_shouldYield=Ue,i.unstable_wrapCallback=function(A){var re=D;return function(){var Q=D;D=re;try{return A.apply(this,arguments)}finally{D=Q}}}}(nu)),nu}var ef;function Dp(){return ef||(ef=1,tu.exports=Tp()),tu.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var tf;function Np(){if(tf)return xt;tf=1;var i=mu(),a=Dp();function u(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=new Set,f={};function h(e,t){p(e,t),p(e+"Capture",t)}function p(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,x=/^[: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]*$/,_={},C={};function D(e){return y.call(C,e)?!0:y.call(_,e)?!1:x.test(e)?C[e]=!0:(_[e]=!0,!1)}function I(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function W(e,t,n,r){if(t===null||typeof t>"u"||I(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function V(e,t,n,r,l,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var U={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){U[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];U[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){U[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){U[e]=new V(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){U[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){U[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){U[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){U[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){U[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var fe=/[\-:]([a-z])/g;function $(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fe,$);U[t]=new V(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fe,$);U[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fe,$);U[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){U[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),U.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){U[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function ae(e,t,n,r){var l=U.hasOwnProperty(t)?U[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(W(t,n,l,r)&&(n=null),r||l===null?D(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var le=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Se=Symbol.for("react.element"),Oe=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),Fe=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),Ze=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),je=Symbol.for("react.offscreen"),A=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,S;function M(e){if(S===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);S=t&&t[1]||""}return`
34
+ `+S+e}var de=!1;function me(e,t){if(!e||de)return"";de=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(R){var r=R}Reflect.construct(e,[],t)}else{try{t.call()}catch(R){r=R}e.call(t.prototype)}else{try{throw Error()}catch(R){r=R}e()}}catch(R){if(R&&r&&typeof R.stack=="string"){for(var l=R.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),s=l.length-1,d=o.length-1;1<=s&&0<=d&&l[s]!==o[d];)d--;for(;1<=s&&0<=d;s--,d--)if(l[s]!==o[d]){if(s!==1||d!==1)do if(s--,d--,0>d||l[s]!==o[d]){var v=`
37
+ `+l[s].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),v}while(1<=s&&0<=d);break}}}finally{de=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function pe(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=me(e.type,!1),e;case 11:return e=me(e.type.render,!1),e;case 1:return e=me(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case Oe:return"Portal";case Ee:return"Profiler";case te:return"StrictMode";case Fe:return"Suspense";case Ae:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ue:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case De:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ze:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function xe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(t);case 8:return t===te?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Be(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mt(e){var t=Be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wr(e){e._valueTracker||(e._valueTracker=mt(e))}function lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Be(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sr(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ce(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zt(e,t){t=t.checked,t!=null&&ae(e,"checked",t,!1)}function Jr(e,t){Zt(e,t);var n=Ce(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Er(e,t.type,n):t.hasOwnProperty("defaultValue")&&Er(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Er(e,t,n){(t!=="number"||Bt(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zn=Array.isArray;function En(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ce(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Zr(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(u(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(u(92));if(Zn(n)){if(1<n.length)throw Error(u(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ce(n)}}function qt(e,t){var n=Ce(t.value),r=Ce(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function kn(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pt,Nt=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Pt=Pt||document.createElement("div"),Pt.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yo=["Webkit","ms","Moz","O"];Object.keys(bt).forEach(function(e){yo.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bt[t]=bt[e]})});function Vt(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bt.hasOwnProperty(e)&&bt[e]?(""+t).trim():t+"px"}function br(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Vt(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Zl=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function kr(e,t){if(t){if(Zl[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(u(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(u(61))}if(t.style!=null&&typeof t.style!="object")throw Error(u(62))}}function el(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xr=null;function Cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cr=null,en=null,tn=null;function ql(e){if(e=kl(e)){if(typeof Cr!="function")throw Error(u(280));var t=e.stateNode;t&&(t=Si(t),Cr(e.stateNode,e.type,t))}}function tl(e){en?tn?tn.push(e):tn=[e]:en=e}function bl(){if(en){var e=en,t=tn;if(tn=en=null,ql(e),t)for(e=0;e<t.length;e++)ql(t[e])}}function nl(e,t){return e(t)}function bn(){}var Pn=!1;function ei(e,t,n){if(Pn)return e(t,n);Pn=!0;try{return nl(e,t,n)}finally{Pn=!1,(en!==null||tn!==null)&&(bn(),bl())}}function er(e,t){var n=e.stateNode;if(n===null)return null;var r=Si(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var m=!1;if(g)try{var E={};Object.defineProperty(E,"passive",{get:function(){m=!0}}),window.addEventListener("test",E,E),window.removeEventListener("test",E,E)}catch{m=!1}function L(e,t,n,r,l,o,s,d,v){var R=Array.prototype.slice.call(arguments,3);try{t.apply(n,R)}catch(F){this.onError(F)}}var z=!1,H=null,ne=!1,ue=null,J={onError:function(e){z=!0,H=e}};function q(e,t,n,r,l,o,s,d,v){z=!1,H=null,L.apply(J,arguments)}function Y(e,t,n,r,l,o,s,d,v){if(q.apply(this,arguments),z){if(z){var R=H;z=!1,H=null}else throw Error(u(198));ne||(ne=!0,ue=R)}}function G(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function he(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 we(e){if(G(e)!==e)throw Error(u(188))}function tt(e){var t=e.alternate;if(!t){if(t=G(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return we(l),e;if(o===r)return we(l),t;o=o.sibling}throw Error(u(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,d=l.child;d;){if(d===n){s=!0,n=l,r=o;break}if(d===r){s=!0,r=l,n=o;break}d=d.sibling}if(!s){for(d=o.child;d;){if(d===n){s=!0,n=o,r=l;break}if(d===r){s=!0,r=o,n=l;break}d=d.sibling}if(!s)throw Error(u(189))}}if(n.alternate!==r)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function Ne(e){return e=tt(e),e!==null?Pe(e):null}function Pe(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Pe(e);if(t!==null)return t;e=e.sibling}return null}var He=a.unstable_scheduleCallback,sn=a.unstable_cancelCallback,tr=a.unstable_shouldYield,Ht=a.unstable_requestPaint,Re=a.unstable_now,rl=a.unstable_getCurrentPriorityLevel,cn=a.unstable_ImmediatePriority,nn=a.unstable_UserBlockingPriority,fn=a.unstable_NormalPriority,Pr=a.unstable_LowPriority,ke=a.unstable_IdlePriority,Ie=null,ut=null;function nr(e){if(ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ie,e,void 0,(e.current.flags&128)===128)}catch{}}var Le=Math.clz32?Math.clz32:go,_n=Math.log,ti=Math.LN2;function go(e){return e>>>=0,e===0?32:31-(_n(e)/ti|0)|0}var ni=64,ri=4194304;function ll(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function li(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var d=s&~l;d!==0?r=ll(d):(o&=s,o!==0&&(r=ll(o)))}else s=n&~l,s!==0?r=ll(s):o!==0&&(r=ll(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Le(t),l=1<<n,r|=e[n],t&=~l;return r}function Wf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $f(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Le(o),d=1<<s,v=l[s];v===-1?((d&n)===0||(d&r)!==0)&&(l[s]=Wf(d,t)):v<=t&&(e.expiredLanes|=d),o&=~d}}function wo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _u(){var e=ni;return ni<<=1,(ni&4194240)===0&&(ni=64),e}function So(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function il(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Le(t),e[t]=n}function Qf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Le(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Eo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var Me=0;function Ru(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Lu,ko,Tu,Du,Nu,xo=!1,ii=[],Rn=null,Ln=null,Tn=null,ol=new Map,al=new Map,Dn=[],Kf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mu(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":Ln=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":ol.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":al.delete(t.pointerId)}}function ul(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=kl(t),t!==null&&ko(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Yf(e,t,n,r,l){switch(t){case"focusin":return Rn=ul(Rn,e,t,n,r,l),!0;case"dragenter":return Ln=ul(Ln,e,t,n,r,l),!0;case"mouseover":return Tn=ul(Tn,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return ol.set(o,ul(ol.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,al.set(o,ul(al.get(o)||null,e,t,n,r,l)),!0}return!1}function zu(e){var t=rr(e.target);if(t!==null){var n=G(t);if(n!==null){if(t=n.tag,t===13){if(t=he(n),t!==null){e.blockedOn=t,Nu(e.priority,function(){Tu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xr=r,n.target.dispatchEvent(r),xr=null}else return t=kl(n),t!==null&&ko(t),e.blockedOn=n,!1;t.shift()}return!0}function Ou(e,t,n){oi(e)&&n.delete(t)}function Xf(){xo=!1,Rn!==null&&oi(Rn)&&(Rn=null),Ln!==null&&oi(Ln)&&(Ln=null),Tn!==null&&oi(Tn)&&(Tn=null),ol.forEach(Ou),al.forEach(Ou)}function sl(e,t){e.blockedOn===t&&(e.blockedOn=null,xo||(xo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Xf)))}function cl(e){function t(l){return sl(l,e)}if(0<ii.length){sl(ii[0],e);for(var n=1;n<ii.length;n++){var r=ii[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Rn!==null&&sl(Rn,e),Ln!==null&&sl(Ln,e),Tn!==null&&sl(Tn,e),ol.forEach(t),al.forEach(t),n=0;n<Dn.length;n++)r=Dn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dn.length&&(n=Dn[0],n.blockedOn===null);)zu(n),n.blockedOn===null&&Dn.shift()}var _r=le.ReactCurrentBatchConfig,ai=!0;function Gf(e,t,n,r){var l=Me,o=_r.transition;_r.transition=null;try{Me=1,Co(e,t,n,r)}finally{Me=l,_r.transition=o}}function Jf(e,t,n,r){var l=Me,o=_r.transition;_r.transition=null;try{Me=4,Co(e,t,n,r)}finally{Me=l,_r.transition=o}}function Co(e,t,n,r){if(ai){var l=Po(e,t,n,r);if(l===null)Ho(e,t,r,ui,n),Mu(e,r);else if(Yf(l,e,t,n,r))r.stopPropagation();else if(Mu(e,r),t&4&&-1<Kf.indexOf(e)){for(;l!==null;){var o=kl(l);if(o!==null&&Lu(o),o=Po(e,t,n,r),o===null&&Ho(e,t,r,ui,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Ho(e,t,r,null,n)}}var ui=null;function Po(e,t,n,r){if(ui=null,e=Cn(r),e=rr(e),e!==null)if(t=G(e),t===null)e=null;else if(n=t.tag,n===13){if(e=he(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ui=e,null}function Fu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rl()){case cn:return 1;case nn:return 4;case fn:case Pr:return 16;case ke:return 536870912;default:return 16}default:return 16}}var Nn=null,_o=null,si=null;function ju(){if(si)return si;var e,t=_o,n=t.length,r,l="value"in Nn?Nn.value:Nn.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return si=l.slice(e,1<r?1-r:void 0)}function ci(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 fi(){return!0}function Iu(){return!1}function _t(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(o):o[d]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?fi:Iu,this.isPropagationStopped=Iu,this}return Q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=_t(Rr),fl=Q({},Rr,{view:0,detail:0}),Zf=_t(fl),Lo,To,dl,di=Q({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,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!==dl&&(dl&&e.type==="mousemove"?(Lo=e.screenX-dl.screenX,To=e.screenY-dl.screenY):To=Lo=0,dl=e),Lo)},movementY:function(e){return"movementY"in e?e.movementY:To}}),Uu=_t(di),qf=Q({},di,{dataTransfer:0}),bf=_t(qf),ed=Q({},fl,{relatedTarget:0}),Do=_t(ed),td=Q({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),nd=_t(td),rd=Q({},Rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ld=_t(rd),id=Q({},Rr,{data:0}),Au=_t(id),od={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ad={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"},ud={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ud[e])?!!t[e]:!1}function No(){return sd}var cd=Q({},fl,{key:function(e){if(e.key){var t=od[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ad[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(e){return e.type==="keypress"?ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fd=_t(cd),dd=Q({},di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bu=_t(dd),pd=Q({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),hd=_t(pd),md=Q({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),vd=_t(md),yd=Q({},di,{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}),gd=_t(yd),wd=[9,13,27,32],Mo=g&&"CompositionEvent"in window,pl=null;g&&"documentMode"in document&&(pl=document.documentMode);var Sd=g&&"TextEvent"in window&&!pl,Vu=g&&(!Mo||pl&&8<pl&&11>=pl),Hu=" ",Wu=!1;function $u(e,t){switch(e){case"keyup":return wd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lr=!1;function Ed(e,t){switch(e){case"compositionend":return Qu(t);case"keypress":return t.which!==32?null:(Wu=!0,Hu);case"textInput":return e=t.data,e===Hu&&Wu?null:e;default:return null}}function kd(e,t){if(Lr)return e==="compositionend"||!Mo&&$u(e,t)?(e=ju(),si=_o=Nn=null,Lr=!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 Vu&&t.locale!=="ko"?null:t.data;default:return null}}var xd={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 Ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xd[e.type]:t==="textarea"}function Yu(e,t,n,r){tl(r),t=yi(t,"onChange"),0<t.length&&(n=new Ro("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hl=null,ml=null;function Cd(e){fs(e,0)}function pi(e){var t=zr(e);if(lt(t))return e}function Pd(e,t){if(e==="change")return t}var Xu=!1;if(g){var zo;if(g){var Oo="oninput"in document;if(!Oo){var Gu=document.createElement("div");Gu.setAttribute("oninput","return;"),Oo=typeof Gu.oninput=="function"}zo=Oo}else zo=!1;Xu=zo&&(!document.documentMode||9<document.documentMode)}function Ju(){hl&&(hl.detachEvent("onpropertychange",Zu),ml=hl=null)}function Zu(e){if(e.propertyName==="value"&&pi(ml)){var t=[];Yu(t,ml,e,Cn(e)),ei(Cd,t)}}function _d(e,t,n){e==="focusin"?(Ju(),hl=t,ml=n,hl.attachEvent("onpropertychange",Zu)):e==="focusout"&&Ju()}function Rd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pi(ml)}function Ld(e,t){if(e==="click")return pi(t)}function Td(e,t){if(e==="input"||e==="change")return pi(t)}function Dd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:Dd;function vl(e,t){if(Wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!y.call(t,l)||!Wt(e[l],t[l]))return!1}return!0}function qu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bu(e,t){var n=qu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qu(n)}}function es(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?es(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ts(){for(var e=window,t=Bt();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bt(e.document)}return t}function Fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nd(e){var t=ts(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&es(n.ownerDocument.documentElement,n)){if(r!==null&&Fo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=bu(n,o);var s=bu(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Md=g&&"documentMode"in document&&11>=document.documentMode,Tr=null,jo=null,yl=null,Io=!1;function ns(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||Tr==null||Tr!==Bt(r)||(r=Tr,"selectionStart"in r&&Fo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yl&&vl(yl,r)||(yl=r,r=yi(jo,"onSelect"),0<r.length&&(t=new Ro("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function hi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Dr={animationend:hi("Animation","AnimationEnd"),animationiteration:hi("Animation","AnimationIteration"),animationstart:hi("Animation","AnimationStart"),transitionend:hi("Transition","TransitionEnd")},Uo={},rs={};g&&(rs=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function mi(e){if(Uo[e])return Uo[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rs)return Uo[e]=t[n];return e}var ls=mi("animationend"),is=mi("animationiteration"),os=mi("animationstart"),as=mi("transitionend"),us=new Map,ss="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mn(e,t){us.set(e,t),h(t,[e])}for(var Ao=0;Ao<ss.length;Ao++){var Bo=ss[Ao],zd=Bo.toLowerCase(),Od=Bo[0].toUpperCase()+Bo.slice(1);Mn(zd,"on"+Od)}Mn(ls,"onAnimationEnd"),Mn(is,"onAnimationIteration"),Mn(os,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(as,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),Fd=new Set("cancel close invalid load scroll toggle".split(" ").concat(gl));function cs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Y(r,t,void 0,e),e.currentTarget=null}function fs(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var d=r[s],v=d.instance,R=d.currentTarget;if(d=d.listener,v!==o&&l.isPropagationStopped())break e;cs(l,d,R),o=v}else for(s=0;s<r.length;s++){if(d=r[s],v=d.instance,R=d.currentTarget,d=d.listener,v!==o&&l.isPropagationStopped())break e;cs(l,d,R),o=v}}}if(ne)throw e=ue,ne=!1,ue=null,e}function We(e,t){var n=t[Xo];n===void 0&&(n=t[Xo]=new Set);var r=e+"__bubble";n.has(r)||(ds(t,e,2,!1),n.add(r))}function Vo(e,t,n){var r=0;t&&(r|=4),ds(n,e,r,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function wl(e){if(!e[vi]){e[vi]=!0,c.forEach(function(n){n!=="selectionchange"&&(Fd.has(n)||Vo(n,!1,e),Vo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,Vo("selectionchange",!1,t))}}function ds(e,t,n,r){switch(Fu(t)){case 1:var l=Gf;break;case 4:l=Jf;break;default:l=Co}n=l.bind(null,t,n,e),l=void 0,!m||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ho(e,t,n,r,l){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var d=r.stateNode.containerInfo;if(d===l||d.nodeType===8&&d.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var v=s.tag;if((v===3||v===4)&&(v=s.stateNode.containerInfo,v===l||v.nodeType===8&&v.parentNode===l))return;s=s.return}for(;d!==null;){if(s=rr(d),s===null)return;if(v=s.tag,v===5||v===6){r=o=s;continue e}d=d.parentNode}}r=r.return}ei(function(){var R=o,F=Cn(n),j=[];e:{var O=us.get(e);if(O!==void 0){var K=Ro,Z=e;switch(e){case"keypress":if(ci(n)===0)break e;case"keydown":case"keyup":K=fd;break;case"focusin":Z="focus",K=Do;break;case"focusout":Z="blur",K=Do;break;case"beforeblur":case"afterblur":K=Do;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Uu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=bf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=hd;break;case ls:case is:case os:K=nd;break;case as:K=vd;break;case"scroll":K=Zf;break;case"wheel":K=gd;break;case"copy":case"cut":case"paste":K=ld;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Bu}var b=(t&4)!==0,Je=!b&&e==="scroll",k=b?O!==null?O+"Capture":null:O;b=[];for(var w=R,P;w!==null;){P=w;var B=P.stateNode;if(P.tag===5&&B!==null&&(P=B,k!==null&&(B=er(w,k),B!=null&&b.push(Sl(w,B,P)))),Je)break;w=w.return}0<b.length&&(O=new K(O,Z,null,n,F),j.push({event:O,listeners:b}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",O&&n!==xr&&(Z=n.relatedTarget||n.fromElement)&&(rr(Z)||Z[dn]))break e;if((K||O)&&(O=F.window===F?F:(O=F.ownerDocument)?O.defaultView||O.parentWindow:window,K?(Z=n.relatedTarget||n.toElement,K=R,Z=Z?rr(Z):null,Z!==null&&(Je=G(Z),Z!==Je||Z.tag!==5&&Z.tag!==6)&&(Z=null)):(K=null,Z=R),K!==Z)){if(b=Uu,B="onMouseLeave",k="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(b=Bu,B="onPointerLeave",k="onPointerEnter",w="pointer"),Je=K==null?O:zr(K),P=Z==null?O:zr(Z),O=new b(B,w+"leave",K,n,F),O.target=Je,O.relatedTarget=P,B=null,rr(F)===R&&(b=new b(k,w+"enter",Z,n,F),b.target=P,b.relatedTarget=Je,B=b),Je=B,K&&Z)t:{for(b=K,k=Z,w=0,P=b;P;P=Nr(P))w++;for(P=0,B=k;B;B=Nr(B))P++;for(;0<w-P;)b=Nr(b),w--;for(;0<P-w;)k=Nr(k),P--;for(;w--;){if(b===k||k!==null&&b===k.alternate)break t;b=Nr(b),k=Nr(k)}b=null}else b=null;K!==null&&ps(j,O,K,b,!1),Z!==null&&Je!==null&&ps(j,Je,Z,b,!0)}}e:{if(O=R?zr(R):window,K=O.nodeName&&O.nodeName.toLowerCase(),K==="select"||K==="input"&&O.type==="file")var ee=Pd;else if(Ku(O))if(Xu)ee=Td;else{ee=Rd;var ie=_d}else(K=O.nodeName)&&K.toLowerCase()==="input"&&(O.type==="checkbox"||O.type==="radio")&&(ee=Ld);if(ee&&(ee=ee(e,R))){Yu(j,ee,n,F);break e}ie&&ie(e,O,R),e==="focusout"&&(ie=O._wrapperState)&&ie.controlled&&O.type==="number"&&Er(O,"number",O.value)}switch(ie=R?zr(R):window,e){case"focusin":(Ku(ie)||ie.contentEditable==="true")&&(Tr=ie,jo=R,yl=null);break;case"focusout":yl=jo=Tr=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,ns(j,n,F);break;case"selectionchange":if(Md)break;case"keydown":case"keyup":ns(j,n,F)}var oe;if(Mo)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Lr?$u(e,n)&&(ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ce="onCompositionStart");ce&&(Vu&&n.locale!=="ko"&&(Lr||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Lr&&(oe=ju()):(Nn=F,_o="value"in Nn?Nn.value:Nn.textContent,Lr=!0)),ie=yi(R,ce),0<ie.length&&(ce=new Au(ce,e,null,n,F),j.push({event:ce,listeners:ie}),oe?ce.data=oe:(oe=Qu(n),oe!==null&&(ce.data=oe)))),(oe=Sd?Ed(e,n):kd(e,n))&&(R=yi(R,"onBeforeInput"),0<R.length&&(F=new Au("onBeforeInput","beforeinput",null,n,F),j.push({event:F,listeners:R}),F.data=oe))}fs(j,t)})}function Sl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yi(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=er(e,n),o!=null&&r.unshift(Sl(e,o,l)),o=er(e,t),o!=null&&r.push(Sl(e,o,l))),e=e.return}return r}function Nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ps(e,t,n,r,l){for(var o=t._reactName,s=[];n!==null&&n!==r;){var d=n,v=d.alternate,R=d.stateNode;if(v!==null&&v===r)break;d.tag===5&&R!==null&&(d=R,l?(v=er(n,o),v!=null&&s.unshift(Sl(n,v,d))):l||(v=er(n,o),v!=null&&s.push(Sl(n,v,d)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var jd=/\r\n?/g,Id=/\u0000|\uFFFD/g;function hs(e){return(typeof e=="string"?e:""+e).replace(jd,`
38
+ `).replace(Id,"")}function gi(e,t,n){if(t=hs(t),hs(e)!==t&&n)throw Error(u(425))}function wi(){}var Wo=null,$o=null;function Qo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ko=typeof setTimeout=="function"?setTimeout:void 0,Ud=typeof clearTimeout=="function"?clearTimeout:void 0,ms=typeof Promise=="function"?Promise:void 0,Ad=typeof queueMicrotask=="function"?queueMicrotask:typeof ms<"u"?function(e){return ms.resolve(null).then(e).catch(Bd)}:Ko;function Bd(e){setTimeout(function(){throw e})}function Yo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),cl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);cl(t)}function zn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mr=Math.random().toString(36).slice(2),rn="__reactFiber$"+Mr,El="__reactProps$"+Mr,dn="__reactContainer$"+Mr,Xo="__reactEvents$"+Mr,Vd="__reactListeners$"+Mr,Hd="__reactHandles$"+Mr;function rr(e){var t=e[rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vs(e);e!==null;){if(n=e[rn])return n;e=vs(e)}return t}e=n,n=e.parentNode}return null}function kl(e){return e=e[rn]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function Si(e){return e[El]||null}var Go=[],Or=-1;function On(e){return{current:e}}function $e(e){0>Or||(e.current=Go[Or],Go[Or]=null,Or--)}function Ve(e,t){Or++,Go[Or]=e.current,e.current=t}var Fn={},ft=On(Fn),gt=On(!1),lr=Fn;function Fr(e,t){var n=e.type.contextTypes;if(!n)return Fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function wt(e){return e=e.childContextTypes,e!=null}function Ei(){$e(gt),$e(ft)}function ys(e,t,n){if(ft.current!==Fn)throw Error(u(168));Ve(ft,t),Ve(gt,n)}function gs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(u(108,xe(e)||"Unknown",l));return Q({},n,r)}function ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fn,lr=ft.current,Ve(ft,e),Ve(gt,gt.current),!0}function ws(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=gs(e,t,lr),r.__reactInternalMemoizedMergedChildContext=e,$e(gt),$e(ft),Ve(ft,e)):$e(gt),Ve(gt,n)}var pn=null,xi=!1,Jo=!1;function Ss(e){pn===null?pn=[e]:pn.push(e)}function Wd(e){xi=!0,Ss(e)}function jn(){if(!Jo&&pn!==null){Jo=!0;var e=0,t=Me;try{var n=pn;for(Me=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pn=null,xi=!1}catch(l){throw pn!==null&&(pn=pn.slice(e+1)),He(cn,jn),l}finally{Me=t,Jo=!1}}return null}var jr=[],Ir=0,Ci=null,Pi=0,Mt=[],zt=0,ir=null,hn=1,mn="";function or(e,t){jr[Ir++]=Pi,jr[Ir++]=Ci,Ci=e,Pi=t}function Es(e,t,n){Mt[zt++]=hn,Mt[zt++]=mn,Mt[zt++]=ir,ir=e;var r=hn;e=mn;var l=32-Le(r)-1;r&=~(1<<l),n+=1;var o=32-Le(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,hn=1<<32-Le(t)+l|n<<l|r,mn=o+e}else hn=1<<o|n<<l|r,mn=e}function Zo(e){e.return!==null&&(or(e,1),Es(e,1,0))}function qo(e){for(;e===Ci;)Ci=jr[--Ir],jr[Ir]=null,Pi=jr[--Ir],jr[Ir]=null;for(;e===ir;)ir=Mt[--zt],Mt[zt]=null,mn=Mt[--zt],Mt[zt]=null,hn=Mt[--zt],Mt[zt]=null}var Rt=null,Lt=null,Ke=!1,$t=null;function ks(e,t){var n=It(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function xs(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,Lt=zn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:hn,overflow:mn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=It(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Lt=null,!0):!1;default:return!1}}function bo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ea(e){if(Ke){var t=Lt;if(t){var n=t;if(!xs(e,t)){if(bo(e))throw Error(u(418));t=zn(n.nextSibling);var r=Rt;t&&xs(e,t)?ks(r,n):(e.flags=e.flags&-4097|2,Ke=!1,Rt=e)}}else{if(bo(e))throw Error(u(418));e.flags=e.flags&-4097|2,Ke=!1,Rt=e}}}function Cs(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function _i(e){if(e!==Rt)return!1;if(!Ke)return Cs(e),Ke=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Qo(e.type,e.memoizedProps)),t&&(t=Lt)){if(bo(e))throw Ps(),Error(u(418));for(;t;)ks(e,t),t=zn(t.nextSibling)}if(Cs(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Lt=zn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Lt=null}}else Lt=Rt?zn(e.stateNode.nextSibling):null;return!0}function Ps(){for(var e=Lt;e;)e=zn(e.nextSibling)}function Ur(){Lt=Rt=null,Ke=!1}function ta(e){$t===null?$t=[e]:$t.push(e)}var $d=le.ReactCurrentBatchConfig;function xl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(u(309));var r=n.stateNode}if(!r)throw Error(u(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var d=l.refs;s===null?delete d[o]:d[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(u(284));if(!n._owner)throw Error(u(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _s(e){var t=e._init;return t(e._payload)}function Rs(e){function t(k,w){if(e){var P=k.deletions;P===null?(k.deletions=[w],k.flags|=16):P.push(w)}}function n(k,w){if(!e)return null;for(;w!==null;)t(k,w),w=w.sibling;return null}function r(k,w){for(k=new Map;w!==null;)w.key!==null?k.set(w.key,w):k.set(w.index,w),w=w.sibling;return k}function l(k,w){return k=$n(k,w),k.index=0,k.sibling=null,k}function o(k,w,P){return k.index=P,e?(P=k.alternate,P!==null?(P=P.index,P<w?(k.flags|=2,w):P):(k.flags|=2,w)):(k.flags|=1048576,w)}function s(k){return e&&k.alternate===null&&(k.flags|=2),k}function d(k,w,P,B){return w===null||w.tag!==6?(w=Ka(P,k.mode,B),w.return=k,w):(w=l(w,P),w.return=k,w)}function v(k,w,P,B){var ee=P.type;return ee===T?F(k,w,P.props.children,B,P.key):w!==null&&(w.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===et&&_s(ee)===w.type)?(B=l(w,P.props),B.ref=xl(k,w,P),B.return=k,B):(B=Zi(P.type,P.key,P.props,null,k.mode,B),B.ref=xl(k,w,P),B.return=k,B)}function R(k,w,P,B){return w===null||w.tag!==4||w.stateNode.containerInfo!==P.containerInfo||w.stateNode.implementation!==P.implementation?(w=Ya(P,k.mode,B),w.return=k,w):(w=l(w,P.children||[]),w.return=k,w)}function F(k,w,P,B,ee){return w===null||w.tag!==7?(w=hr(P,k.mode,B,ee),w.return=k,w):(w=l(w,P),w.return=k,w)}function j(k,w,P){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Ka(""+w,k.mode,P),w.return=k,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Se:return P=Zi(w.type,w.key,w.props,null,k.mode,P),P.ref=xl(k,null,w),P.return=k,P;case Oe:return w=Ya(w,k.mode,P),w.return=k,w;case et:var B=w._init;return j(k,B(w._payload),P)}if(Zn(w)||re(w))return w=hr(w,k.mode,P,null),w.return=k,w;Ri(k,w)}return null}function O(k,w,P,B){var ee=w!==null?w.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return ee!==null?null:d(k,w,""+P,B);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Se:return P.key===ee?v(k,w,P,B):null;case Oe:return P.key===ee?R(k,w,P,B):null;case et:return ee=P._init,O(k,w,ee(P._payload),B)}if(Zn(P)||re(P))return ee!==null?null:F(k,w,P,B,null);Ri(k,P)}return null}function K(k,w,P,B,ee){if(typeof B=="string"&&B!==""||typeof B=="number")return k=k.get(P)||null,d(w,k,""+B,ee);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Se:return k=k.get(B.key===null?P:B.key)||null,v(w,k,B,ee);case Oe:return k=k.get(B.key===null?P:B.key)||null,R(w,k,B,ee);case et:var ie=B._init;return K(k,w,P,ie(B._payload),ee)}if(Zn(B)||re(B))return k=k.get(P)||null,F(w,k,B,ee,null);Ri(w,B)}return null}function Z(k,w,P,B){for(var ee=null,ie=null,oe=w,ce=w=0,at=null;oe!==null&&ce<P.length;ce++){oe.index>ce?(at=oe,oe=null):at=oe.sibling;var Te=O(k,oe,P[ce],B);if(Te===null){oe===null&&(oe=at);break}e&&oe&&Te.alternate===null&&t(k,oe),w=o(Te,w,ce),ie===null?ee=Te:ie.sibling=Te,ie=Te,oe=at}if(ce===P.length)return n(k,oe),Ke&&or(k,ce),ee;if(oe===null){for(;ce<P.length;ce++)oe=j(k,P[ce],B),oe!==null&&(w=o(oe,w,ce),ie===null?ee=oe:ie.sibling=oe,ie=oe);return Ke&&or(k,ce),ee}for(oe=r(k,oe);ce<P.length;ce++)at=K(oe,k,ce,P[ce],B),at!==null&&(e&&at.alternate!==null&&oe.delete(at.key===null?ce:at.key),w=o(at,w,ce),ie===null?ee=at:ie.sibling=at,ie=at);return e&&oe.forEach(function(Qn){return t(k,Qn)}),Ke&&or(k,ce),ee}function b(k,w,P,B){var ee=re(P);if(typeof ee!="function")throw Error(u(150));if(P=ee.call(P),P==null)throw Error(u(151));for(var ie=ee=null,oe=w,ce=w=0,at=null,Te=P.next();oe!==null&&!Te.done;ce++,Te=P.next()){oe.index>ce?(at=oe,oe=null):at=oe.sibling;var Qn=O(k,oe,Te.value,B);if(Qn===null){oe===null&&(oe=at);break}e&&oe&&Qn.alternate===null&&t(k,oe),w=o(Qn,w,ce),ie===null?ee=Qn:ie.sibling=Qn,ie=Qn,oe=at}if(Te.done)return n(k,oe),Ke&&or(k,ce),ee;if(oe===null){for(;!Te.done;ce++,Te=P.next())Te=j(k,Te.value,B),Te!==null&&(w=o(Te,w,ce),ie===null?ee=Te:ie.sibling=Te,ie=Te);return Ke&&or(k,ce),ee}for(oe=r(k,oe);!Te.done;ce++,Te=P.next())Te=K(oe,k,ce,Te.value,B),Te!==null&&(e&&Te.alternate!==null&&oe.delete(Te.key===null?ce:Te.key),w=o(Te,w,ce),ie===null?ee=Te:ie.sibling=Te,ie=Te);return e&&oe.forEach(function(xp){return t(k,xp)}),Ke&&or(k,ce),ee}function Je(k,w,P,B){if(typeof P=="object"&&P!==null&&P.type===T&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Se:e:{for(var ee=P.key,ie=w;ie!==null;){if(ie.key===ee){if(ee=P.type,ee===T){if(ie.tag===7){n(k,ie.sibling),w=l(ie,P.props.children),w.return=k,k=w;break e}}else if(ie.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===et&&_s(ee)===ie.type){n(k,ie.sibling),w=l(ie,P.props),w.ref=xl(k,ie,P),w.return=k,k=w;break e}n(k,ie);break}else t(k,ie);ie=ie.sibling}P.type===T?(w=hr(P.props.children,k.mode,B,P.key),w.return=k,k=w):(B=Zi(P.type,P.key,P.props,null,k.mode,B),B.ref=xl(k,w,P),B.return=k,k=B)}return s(k);case Oe:e:{for(ie=P.key;w!==null;){if(w.key===ie)if(w.tag===4&&w.stateNode.containerInfo===P.containerInfo&&w.stateNode.implementation===P.implementation){n(k,w.sibling),w=l(w,P.children||[]),w.return=k,k=w;break e}else{n(k,w);break}else t(k,w);w=w.sibling}w=Ya(P,k.mode,B),w.return=k,k=w}return s(k);case et:return ie=P._init,Je(k,w,ie(P._payload),B)}if(Zn(P))return Z(k,w,P,B);if(re(P))return b(k,w,P,B);Ri(k,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,w!==null&&w.tag===6?(n(k,w.sibling),w=l(w,P),w.return=k,k=w):(n(k,w),w=Ka(P,k.mode,B),w.return=k,k=w),s(k)):n(k,w)}return Je}var Ar=Rs(!0),Ls=Rs(!1),Li=On(null),Ti=null,Br=null,na=null;function ra(){na=Br=Ti=null}function la(e){var t=Li.current;$e(Li),e._currentValue=t}function ia(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vr(e,t){Ti=e,na=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(na!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Ti===null)throw Error(u(308));Br=e,Ti.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ar=null;function oa(e){ar===null?ar=[e]:ar.push(e)}function Ts(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,oa(t)):(n.next=l.next,l.next=n),t.interleaved=n,vn(e,r)}function vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var In=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ds(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(_e&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,vn(e,n)}return l=r.interleaved,l===null?(t.next=t,oa(r)):(t.next=l.next,l.next=t),r.interleaved=t,vn(e,n)}function Di(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Eo(e,n)}}function Ns(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ni(e,t,n,r){var l=e.updateQueue;In=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var v=d,R=v.next;v.next=null,s===null?o=R:s.next=R,s=v;var F=e.alternate;F!==null&&(F=F.updateQueue,d=F.lastBaseUpdate,d!==s&&(d===null?F.firstBaseUpdate=R:d.next=R,F.lastBaseUpdate=v))}if(o!==null){var j=l.baseState;s=0,F=R=v=null,d=o;do{var O=d.lane,K=d.eventTime;if((r&O)===O){F!==null&&(F=F.next={eventTime:K,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var Z=e,b=d;switch(O=t,K=n,b.tag){case 1:if(Z=b.payload,typeof Z=="function"){j=Z.call(K,j,O);break e}j=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=b.payload,O=typeof Z=="function"?Z.call(K,j,O):Z,O==null)break e;j=Q({},j,O);break e;case 2:In=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,O=l.effects,O===null?l.effects=[d]:O.push(d))}else K={eventTime:K,lane:O,tag:d.tag,payload:d.payload,callback:d.callback,next:null},F===null?(R=F=K,v=j):F=F.next=K,s|=O;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;O=d,d=O.next,O.next=null,l.lastBaseUpdate=O,l.shared.pending=null}}while(!0);if(F===null&&(v=j),l.baseState=v,l.firstBaseUpdate=R,l.lastBaseUpdate=F,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);cr|=s,e.lanes=s,e.memoizedState=j}}function Ms(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(u(191,l));l.call(r)}}}var Cl={},ln=On(Cl),Pl=On(Cl),_l=On(Cl);function ur(e){if(e===Cl)throw Error(u(174));return e}function ua(e,t){switch(Ve(_l,t),Ve(Pl,e),Ve(ln,Cl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qn(t,e)}$e(ln),Ve(ln,t)}function Hr(){$e(ln),$e(Pl),$e(_l)}function zs(e){ur(_l.current);var t=ur(ln.current),n=qn(t,e.type);t!==n&&(Ve(Pl,e),Ve(ln,n))}function sa(e){Pl.current===e&&($e(ln),$e(Pl))}var Ye=On(0);function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==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 ca=[];function fa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var zi=le.ReactCurrentDispatcher,da=le.ReactCurrentBatchConfig,sr=0,Xe=null,nt=null,it=null,Oi=!1,Rl=!1,Ll=0,Qd=0;function dt(){throw Error(u(321))}function pa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wt(e[n],t[n]))return!1;return!0}function ha(e,t,n,r,l,o){if(sr=o,Xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zi.current=e===null||e.memoizedState===null?Gd:Jd,e=n(r,l),Rl){o=0;do{if(Rl=!1,Ll=0,25<=o)throw Error(u(301));o+=1,it=nt=null,t.updateQueue=null,zi.current=Zd,e=n(r,l)}while(Rl)}if(zi.current=Ii,t=nt!==null&&nt.next!==null,sr=0,it=nt=Xe=null,Oi=!1,t)throw Error(u(300));return e}function ma(){var e=Ll!==0;return Ll=0,e}function on(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Xe.memoizedState=it=e:it=it.next=e,it}function Ft(){if(nt===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=it===null?Xe.memoizedState:it.next;if(t!==null)it=t,nt=e;else{if(e===null)throw Error(u(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},it===null?Xe.memoizedState=it=e:it=it.next=e}return it}function Tl(e,t){return typeof t=="function"?t(e):t}function va(e){var t=Ft(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var r=nt,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var d=s=null,v=null,R=o;do{var F=R.lane;if((sr&F)===F)v!==null&&(v=v.next={lane:0,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),r=R.hasEagerState?R.eagerState:e(r,R.action);else{var j={lane:F,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null};v===null?(d=v=j,s=r):v=v.next=j,Xe.lanes|=F,cr|=F}R=R.next}while(R!==null&&R!==o);v===null?s=r:v.next=d,Wt(r,t.memoizedState)||(St=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=v,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Xe.lanes|=o,cr|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ya(e){var t=Ft(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);Wt(o,t.memoizedState)||(St=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Os(){}function Fs(e,t){var n=Xe,r=Ft(),l=t(),o=!Wt(r.memoizedState,l);if(o&&(r.memoizedState=l,St=!0),r=r.queue,ga(Us.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||it!==null&&it.memoizedState.tag&1){if(n.flags|=2048,Dl(9,Is.bind(null,n,r,l,t),void 0,null),ot===null)throw Error(u(349));(sr&30)!==0||js(n,t,l)}return l}function js(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Is(e,t,n,r){t.value=n,t.getSnapshot=r,As(t)&&Bs(e)}function Us(e,t,n){return n(function(){As(t)&&Bs(e)})}function As(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wt(e,n)}catch{return!0}}function Bs(e){var t=vn(e,1);t!==null&&Xt(t,e,1,-1)}function Vs(e){var t=on();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:e},t.queue=e,e=e.dispatch=Xd.bind(null,Xe,e),[t.memoizedState,e]}function Dl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Xe.updateQueue,t===null?(t={lastEffect:null,stores:null},Xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Hs(){return Ft().memoizedState}function Fi(e,t,n,r){var l=on();Xe.flags|=e,l.memoizedState=Dl(1|t,n,void 0,r===void 0?null:r)}function ji(e,t,n,r){var l=Ft();r=r===void 0?null:r;var o=void 0;if(nt!==null){var s=nt.memoizedState;if(o=s.destroy,r!==null&&pa(r,s.deps)){l.memoizedState=Dl(t,n,o,r);return}}Xe.flags|=e,l.memoizedState=Dl(1|t,n,o,r)}function Ws(e,t){return Fi(8390656,8,e,t)}function ga(e,t){return ji(2048,8,e,t)}function $s(e,t){return ji(4,2,e,t)}function Qs(e,t){return ji(4,4,e,t)}function Ks(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ys(e,t,n){return n=n!=null?n.concat([e]):null,ji(4,4,Ks.bind(null,t,e),n)}function wa(){}function Xs(e,t){var n=Ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gs(e,t){var n=Ft();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Js(e,t,n){return(sr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):(Wt(n,t)||(n=_u(),Xe.lanes|=n,cr|=n,e.baseState=!0),t)}function Kd(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var r=da.transition;da.transition={};try{e(!1),t()}finally{Me=n,da.transition=r}}function Zs(){return Ft().memoizedState}function Yd(e,t,n){var r=Hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qs(e))bs(t,n);else if(n=Ts(e,t,n,r),n!==null){var l=yt();Xt(n,e,r,l),ec(n,t,r)}}function Xd(e,t,n){var r=Hn(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qs(e))bs(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,d=o(s,n);if(l.hasEagerState=!0,l.eagerState=d,Wt(d,s)){var v=t.interleaved;v===null?(l.next=l,oa(t)):(l.next=v.next,v.next=l),t.interleaved=l;return}}catch{}finally{}n=Ts(e,t,l,r),n!==null&&(l=yt(),Xt(n,e,r,l),ec(n,t,r))}}function qs(e){var t=e.alternate;return e===Xe||t!==null&&t===Xe}function bs(e,t){Rl=Oi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ec(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Eo(e,n)}}var Ii={readContext:Ot,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},Gd={readContext:Ot,useCallback:function(e,t){return on().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Ws,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=on();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=on();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yd.bind(null,Xe,e),[r.memoizedState,e]},useRef:function(e){var t=on();return e={current:e},t.memoizedState=e},useState:Vs,useDebugValue:wa,useDeferredValue:function(e){return on().memoizedState=e},useTransition:function(){var e=Vs(!1),t=e[0];return e=Kd.bind(null,e[1]),on().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Xe,l=on();if(Ke){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),ot===null)throw Error(u(349));(sr&30)!==0||js(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ws(Us.bind(null,r,o,e),[e]),r.flags|=2048,Dl(9,Is.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=on(),t=ot.identifierPrefix;if(Ke){var n=mn,r=hn;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ll++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Qd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Jd={readContext:Ot,useCallback:Xs,useContext:Ot,useEffect:ga,useImperativeHandle:Ys,useInsertionEffect:$s,useLayoutEffect:Qs,useMemo:Gs,useReducer:va,useRef:Hs,useState:function(){return va(Tl)},useDebugValue:wa,useDeferredValue:function(e){var t=Ft();return Js(t,nt.memoizedState,e)},useTransition:function(){var e=va(Tl)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:Os,useSyncExternalStore:Fs,useId:Zs,unstable_isNewReconciler:!1},Zd={readContext:Ot,useCallback:Xs,useContext:Ot,useEffect:ga,useImperativeHandle:Ys,useInsertionEffect:$s,useLayoutEffect:Qs,useMemo:Gs,useReducer:ya,useRef:Hs,useState:function(){return ya(Tl)},useDebugValue:wa,useDeferredValue:function(e){var t=Ft();return nt===null?t.memoizedState=e:Js(t,nt.memoizedState,e)},useTransition:function(){var e=ya(Tl)[0],t=Ft().memoizedState;return[e,t]},useMutableSource:Os,useSyncExternalStore:Fs,useId:Zs,unstable_isNewReconciler:!1};function Qt(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Sa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return(e=e._reactInternals)?G(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yt(),l=Hn(e),o=yn(r,l);o.payload=t,n!=null&&(o.callback=n),t=Un(e,o,l),t!==null&&(Xt(t,e,l,r),Di(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yt(),l=Hn(e),o=yn(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Un(e,o,l),t!==null&&(Xt(t,e,l,r),Di(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),r=Hn(e),l=yn(n,r);l.tag=2,t!=null&&(l.callback=t),t=Un(e,l,r),t!==null&&(Xt(t,e,r,n),Di(t,e,r))}};function tc(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!vl(n,r)||!vl(l,o):!0}function nc(e,t,n){var r=!1,l=Fn,o=t.contextType;return typeof o=="object"&&o!==null?o=Ot(o):(l=wt(t)?lr:ft.current,r=t.contextTypes,o=(r=r!=null)?Fr(e,l):Fn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function rc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ui.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},aa(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Ot(o):(o=wt(t)?lr:ft.current,l.context=Fr(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Sa(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ui.enqueueReplaceState(l,l.state,null),Ni(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Wr(e,t){try{var n="",r=t;do n+=pe(r),r=r.return;while(r);var l=n}catch(o){l=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:l,digest:null}}function ka(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qd=typeof WeakMap=="function"?WeakMap:Map;function lc(e,t,n){n=yn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qi||(Qi=!0,Ua=r),xa(e,t)},n}function ic(e,t,n){n=yn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){xa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){xa(e,t),typeof r!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function oc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=dp.bind(null,e,t,n),t.then(e,e))}function ac(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function uc(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yn(-1,1),t.tag=2,Un(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var bd=le.ReactCurrentOwner,St=!1;function vt(e,t,n,r){t.child=e===null?Ls(t,null,n,r):Ar(t,e.child,n,r)}function sc(e,t,n,r,l){n=n.render;var o=t.ref;return Vr(t,l),r=ha(e,t,n,r,o,l),n=ma(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,gn(e,t,l)):(Ke&&n&&Zo(t),t.flags|=1,vt(e,t,r,l),t.child)}function cc(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Qa(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,fc(e,t,o,r,l)):(e=Zi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&l)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:vl,n(s,r)&&e.ref===t.ref)return gn(e,t,l)}return t.flags|=1,e=$n(o,r),e.ref=t.ref,e.return=t,t.child=e}function fc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(vl(o,r)&&e.ref===t.ref)if(St=!1,t.pendingProps=r=o,(e.lanes&l)!==0)(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,gn(e,t,l)}return Ca(e,t,n,r,l)}function dc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ve(Qr,Tt),Tt|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ve(Qr,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ve(Qr,Tt),Tt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ve(Qr,Tt),Tt|=r;return vt(e,t,l,n),t.child}function pc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ca(e,t,n,r,l){var o=wt(n)?lr:ft.current;return o=Fr(t,o),Vr(t,l),n=ha(e,t,n,r,o,l),r=ma(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,gn(e,t,l)):(Ke&&r&&Zo(t),t.flags|=1,vt(e,t,n,l),t.child)}function hc(e,t,n,r,l){if(wt(n)){var o=!0;ki(t)}else o=!1;if(Vr(t,l),t.stateNode===null)Bi(e,t),nc(t,n,r),Ea(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,d=t.memoizedProps;s.props=d;var v=s.context,R=n.contextType;typeof R=="object"&&R!==null?R=Ot(R):(R=wt(n)?lr:ft.current,R=Fr(t,R));var F=n.getDerivedStateFromProps,j=typeof F=="function"||typeof s.getSnapshotBeforeUpdate=="function";j||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==r||v!==R)&&rc(t,s,r,R),In=!1;var O=t.memoizedState;s.state=O,Ni(t,r,s,l),v=t.memoizedState,d!==r||O!==v||gt.current||In?(typeof F=="function"&&(Sa(t,n,F,r),v=t.memoizedState),(d=In||tc(t,n,d,r,O,v,R))?(j||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=R,r=d):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ds(e,t),d=t.memoizedProps,R=t.type===t.elementType?d:Qt(t.type,d),s.props=R,j=t.pendingProps,O=s.context,v=n.contextType,typeof v=="object"&&v!==null?v=Ot(v):(v=wt(n)?lr:ft.current,v=Fr(t,v));var K=n.getDerivedStateFromProps;(F=typeof K=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==j||O!==v)&&rc(t,s,r,v),In=!1,O=t.memoizedState,s.state=O,Ni(t,r,s,l);var Z=t.memoizedState;d!==j||O!==Z||gt.current||In?(typeof K=="function"&&(Sa(t,n,K,r),Z=t.memoizedState),(R=In||tc(t,n,R,r,O,Z,v)||!1)?(F||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,Z,v),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,Z,v)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Z),s.props=r,s.state=Z,s.context=v,r=R):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),r=!1)}return Pa(e,t,n,r,o,l)}function Pa(e,t,n,r,l,o){pc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&ws(t,n,!1),gn(e,t,o);r=t.stateNode,bd.current=t;var d=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ar(t,e.child,null,o),t.child=Ar(t,null,d,o)):vt(e,t,d,o),t.memoizedState=r.state,l&&ws(t,n,!0),t.child}function mc(e){var t=e.stateNode;t.pendingContext?ys(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ys(e,t.context,!1),ua(e,t.containerInfo)}function vc(e,t,n,r,l){return Ur(),ta(l),t.flags|=256,vt(e,t,n,r),t.child}var _a={dehydrated:null,treeContext:null,retryLane:0};function Ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function yc(e,t,n){var r=t.pendingProps,l=Ye.current,o=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(l&2)!==0),d?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ve(Ye,l&1),e===null)return ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=qi(s,r,0,null),e=hr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ra(n),t.memoizedState=_a,e):La(t,s));if(l=e.memoizedState,l!==null&&(d=l.dehydrated,d!==null))return ep(e,t,s,r,d,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,d=l.sibling;var v={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=v,t.deletions=null):(r=$n(l,v),r.subtreeFlags=l.subtreeFlags&14680064),d!==null?o=$n(d,o):(o=hr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ra(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=_a,r}return o=e.child,e=o.sibling,r=$n(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function La(e,t){return t=qi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ai(e,t,n,r){return r!==null&&ta(r),Ar(t,e.child,null,n),e=La(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ep(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ka(Error(u(422))),Ai(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=qi({mode:"visible",children:r.children},l,0,null),o=hr(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&Ar(t,e.child,null,s),t.child.memoizedState=Ra(s),t.memoizedState=_a,o);if((t.mode&1)===0)return Ai(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var d=r.dgst;return r=d,o=Error(u(419)),r=ka(o,r,void 0),Ai(e,t,s,r)}if(d=(s&e.childLanes)!==0,St||d){if(r=ot,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|s))!==0?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,vn(e,l),Xt(r,e,l,-1))}return $a(),r=ka(Error(u(421))),Ai(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=pp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Lt=zn(l.nextSibling),Rt=t,Ke=!0,$t=null,e!==null&&(Mt[zt++]=hn,Mt[zt++]=mn,Mt[zt++]=ir,hn=e.id,mn=e.overflow,ir=t),t=La(t,r.children),t.flags|=4096,t)}function gc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ia(e.return,t,n)}function Ta(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function wc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(vt(e,t,r.children,n),r=Ye.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gc(e,n,t);else if(e.tag===19)gc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ve(Ye,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Mi(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ta(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Mi(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ta(t,!0,n,null,o);break;case"together":Ta(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=$n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tp(e,t,n){switch(t.tag){case 3:mc(t),Ur();break;case 5:zs(t);break;case 1:wt(t.type)&&ki(t);break;case 4:ua(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Ve(Li,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ve(Ye,Ye.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?yc(e,t,n):(Ve(Ye,Ye.current&1),e=gn(e,t,n),e!==null?e.sibling:null);Ve(Ye,Ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return wc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ve(Ye,Ye.current),r)break;return null;case 22:case 23:return t.lanes=0,dc(e,t,n)}return gn(e,t,n)}var Sc,Da,Ec,kc;Sc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Da=function(){},Ec=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,ur(ln.current);var o=null;switch(n){case"input":l=Sr(e,l),r=Sr(e,r),o=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),o=[];break;case"textarea":l=Zr(e,l),r=Zr(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wi)}kr(n,r);var s;n=null;for(R in l)if(!r.hasOwnProperty(R)&&l.hasOwnProperty(R)&&l[R]!=null)if(R==="style"){var d=l[R];for(s in d)d.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else R!=="dangerouslySetInnerHTML"&&R!=="children"&&R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(f.hasOwnProperty(R)?o||(o=[]):(o=o||[]).push(R,null));for(R in r){var v=r[R];if(d=l!=null?l[R]:void 0,r.hasOwnProperty(R)&&v!==d&&(v!=null||d!=null))if(R==="style")if(d){for(s in d)!d.hasOwnProperty(s)||v&&v.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in v)v.hasOwnProperty(s)&&d[s]!==v[s]&&(n||(n={}),n[s]=v[s])}else n||(o||(o=[]),o.push(R,n)),n=v;else R==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,d=d?d.__html:void 0,v!=null&&d!==v&&(o=o||[]).push(R,v)):R==="children"?typeof v!="string"&&typeof v!="number"||(o=o||[]).push(R,""+v):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&(f.hasOwnProperty(R)?(v!=null&&R==="onScroll"&&We("scroll",e),o||d===v||(o=[])):(o=o||[]).push(R,v))}n&&(o=o||[]).push("style",n);var R=o;(t.updateQueue=R)&&(t.flags|=4)}},kc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nl(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function np(e,t,n){var r=t.pendingProps;switch(qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return wt(t.type)&&Ei(),pt(t),null;case 3:return r=t.stateNode,Hr(),$e(gt),$e(ft),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_i(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$t!==null&&(Va($t),$t=null))),Da(e,t),pt(t),null;case 5:sa(t);var l=ur(_l.current);if(n=t.type,e!==null&&t.stateNode!=null)Ec(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(u(166));return pt(t),null}if(e=ur(ln.current),_i(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[rn]=t,r[El]=o,e=(t.mode&1)!==0,n){case"dialog":We("cancel",r),We("close",r);break;case"iframe":case"object":case"embed":We("load",r);break;case"video":case"audio":for(l=0;l<gl.length;l++)We(gl[l],r);break;case"source":We("error",r);break;case"img":case"image":case"link":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"input":Xl(r,o),We("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},We("invalid",r);break;case"textarea":Jl(r,o),We("invalid",r)}kr(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var d=o[s];s==="children"?typeof d=="string"?r.textContent!==d&&(o.suppressHydrationWarning!==!0&&gi(r.textContent,d,e),l=["children",d]):typeof d=="number"&&r.textContent!==""+d&&(o.suppressHydrationWarning!==!0&&gi(r.textContent,d,e),l=["children",""+d]):f.hasOwnProperty(s)&&d!=null&&s==="onScroll"&&We("scroll",r)}switch(n){case"input":wr(r),Gl(r,o,!0);break;case"textarea":wr(r),kn(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=wi)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qr(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[rn]=t,e[El]=r,Sc(e,t,!1,!1),t.stateNode=e;e:{switch(s=el(n,r),n){case"dialog":We("cancel",e),We("close",e),l=r;break;case"iframe":case"object":case"embed":We("load",e),l=r;break;case"video":case"audio":for(l=0;l<gl.length;l++)We(gl[l],e);l=r;break;case"source":We("error",e),l=r;break;case"img":case"image":case"link":We("error",e),We("load",e),l=r;break;case"details":We("toggle",e),l=r;break;case"input":Xl(e,r),l=Sr(e,r),We("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Q({},r,{value:void 0}),We("invalid",e);break;case"textarea":Jl(e,r),l=Zr(e,r),We("invalid",e);break;default:l=r}kr(n,l),d=l;for(o in d)if(d.hasOwnProperty(o)){var v=d[o];o==="style"?br(e,v):o==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,v!=null&&Nt(e,v)):o==="children"?typeof v=="string"?(n!=="textarea"||v!=="")&&xn(e,v):typeof v=="number"&&xn(e,""+v):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(f.hasOwnProperty(o)?v!=null&&o==="onScroll"&&We("scroll",e):v!=null&&ae(e,o,v,s))}switch(n){case"input":wr(e),Gl(e,r,!1);break;case"textarea":wr(e),kn(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ce(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?En(e,!!r.multiple,o,!1):r.defaultValue!=null&&En(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=wi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)kc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(n=ur(_l.current),ur(ln.current),_i(t)){if(r=t.stateNode,n=t.memoizedProps,r[rn]=t,(o=r.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:gi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gi(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rn]=t,t.stateNode=r}return pt(t),null;case 13:if($e(Ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ke&&Lt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ps(),Ur(),t.flags|=98560,o=!1;else if(o=_i(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[rn]=t}else Ur(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),o=!1}else $t!==null&&(Va($t),$t=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ye.current&1)!==0?rt===0&&(rt=3):$a())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return Hr(),Da(e,t),e===null&&wl(t.stateNode.containerInfo),pt(t),null;case 10:return la(t.type._context),pt(t),null;case 17:return wt(t.type)&&Ei(),pt(t),null;case 19:if($e(Ye),o=t.memoizedState,o===null)return pt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Nl(o,!1);else{if(rt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Mi(e),s!==null){for(t.flags|=128,Nl(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ve(Ye,Ye.current&1|2),t.child}e=e.sibling}o.tail!==null&&Re()>Kr&&(t.flags|=128,r=!0,Nl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Mi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ke)return pt(t),null}else 2*Re()-o.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,Nl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Re(),t.sibling=null,n=Ye.current,Ve(Ye,r?n&1|2:n&1),t):(pt(t),null);case 22:case 23:return Wa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(u(156,t.tag))}function rp(e,t){switch(qo(t),t.tag){case 1:return wt(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hr(),$e(gt),$e(ft),fa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return sa(t),null;case 13:if($e(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Ye),null;case 4:return Hr(),null;case 10:return la(t.type._context),null;case 22:case 23:return Wa(),null;case 24:return null;default:return null}}var Vi=!1,ht=!1,lp=typeof WeakSet=="function"?WeakSet:Set,X=null;function $r(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function Na(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var xc=!1;function ip(e,t){if(Wo=ai,e=ts(),Fo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,d=-1,v=-1,R=0,F=0,j=e,O=null;t:for(;;){for(var K;j!==n||l!==0&&j.nodeType!==3||(d=s+l),j!==o||r!==0&&j.nodeType!==3||(v=s+r),j.nodeType===3&&(s+=j.nodeValue.length),(K=j.firstChild)!==null;)O=j,j=K;for(;;){if(j===e)break t;if(O===n&&++R===l&&(d=s),O===o&&++F===r&&(v=s),(K=j.nextSibling)!==null)break;j=O,O=j.parentNode}j=K}n=d===-1||v===-1?null:{start:d,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for($o={focusedElem:e,selectionRange:n},ai=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var Z=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var b=Z.memoizedProps,Je=Z.memoizedState,k=t.stateNode,w=k.getSnapshotBeforeUpdate(t.elementType===t.type?b:Qt(t.type,b),Je);k.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(B){Ge(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return Z=xc,xc=!1,Z}function Ml(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Na(t,n,o)}l=l.next}while(l!==r)}}function Hi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ma(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Cc(e){var t=e.alternate;t!==null&&(e.alternate=null,Cc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[El],delete t[Xo],delete t[Vd],delete t[Hd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pc(e){return e.tag===5||e.tag===3||e.tag===4}function _c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wi));else if(r!==4&&(e=e.child,e!==null))for(za(e,t,n),e=e.sibling;e!==null;)za(e,t,n),e=e.sibling}function Oa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Oa(e,t,n),e=e.sibling;e!==null;)Oa(e,t,n),e=e.sibling}var st=null,Kt=!1;function An(e,t,n){for(n=n.child;n!==null;)Rc(e,t,n),n=n.sibling}function Rc(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 5:ht||$r(n,t);case 6:var r=st,l=Kt;st=null,An(e,t,n),st=r,Kt=l,st!==null&&(Kt?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(Kt?(e=st,n=n.stateNode,e.nodeType===8?Yo(e.parentNode,n):e.nodeType===1&&Yo(e,n),cl(e)):Yo(st,n.stateNode));break;case 4:r=st,l=Kt,st=n.stateNode.containerInfo,Kt=!0,An(e,t,n),st=r,Kt=l;break;case 0:case 11:case 14:case 15:if(!ht&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&Na(n,t,s),l=l.next}while(l!==r)}An(e,t,n);break;case 1:if(!ht&&($r(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(d){Ge(n,t,d)}An(e,t,n);break;case 21:An(e,t,n);break;case 22:n.mode&1?(ht=(r=ht)||n.memoizedState!==null,An(e,t,n),ht=r):An(e,t,n);break;default:An(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lp),t.forEach(function(r){var l=hp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 5:st=d.stateNode,Kt=!1;break e;case 3:st=d.stateNode.containerInfo,Kt=!0;break e;case 4:st=d.stateNode.containerInfo,Kt=!0;break e}d=d.return}if(st===null)throw Error(u(160));Rc(o,s,l),st=null,Kt=!1;var v=l.alternate;v!==null&&(v.return=null),l.return=null}catch(R){Ge(l,t,R)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tc(t,e),t=t.sibling}function Tc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),an(e),r&4){try{Ml(3,e,e.return),Hi(3,e)}catch(b){Ge(e,e.return,b)}try{Ml(5,e,e.return)}catch(b){Ge(e,e.return,b)}}break;case 1:Yt(t,e),an(e),r&512&&n!==null&&$r(n,n.return);break;case 5:if(Yt(t,e),an(e),r&512&&n!==null&&$r(n,n.return),e.flags&32){var l=e.stateNode;try{xn(l,"")}catch(b){Ge(e,e.return,b)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,d=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{d==="input"&&o.type==="radio"&&o.name!=null&&Zt(l,o),el(d,s);var R=el(d,o);for(s=0;s<v.length;s+=2){var F=v[s],j=v[s+1];F==="style"?br(l,j):F==="dangerouslySetInnerHTML"?Nt(l,j):F==="children"?xn(l,j):ae(l,F,j,R)}switch(d){case"input":Jr(l,o);break;case"textarea":qt(l,o);break;case"select":var O=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var K=o.value;K!=null?En(l,!!o.multiple,K,!1):O!==!!o.multiple&&(o.defaultValue!=null?En(l,!!o.multiple,o.defaultValue,!0):En(l,!!o.multiple,o.multiple?[]:"",!1))}l[El]=o}catch(b){Ge(e,e.return,b)}}break;case 6:if(Yt(t,e),an(e),r&4){if(e.stateNode===null)throw Error(u(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(b){Ge(e,e.return,b)}}break;case 3:if(Yt(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cl(t.containerInfo)}catch(b){Ge(e,e.return,b)}break;case 4:Yt(t,e),an(e);break;case 13:Yt(t,e),an(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Ia=Re())),r&4&&Lc(e);break;case 22:if(F=n!==null&&n.memoizedState!==null,e.mode&1?(ht=(R=ht)||F,Yt(t,e),ht=R):Yt(t,e),an(e),r&8192){if(R=e.memoizedState!==null,(e.stateNode.isHidden=R)&&!F&&(e.mode&1)!==0)for(X=e,F=e.child;F!==null;){for(j=X=F;X!==null;){switch(O=X,K=O.child,O.tag){case 0:case 11:case 14:case 15:Ml(4,O,O.return);break;case 1:$r(O,O.return);var Z=O.stateNode;if(typeof Z.componentWillUnmount=="function"){r=O,n=O.return;try{t=r,Z.props=t.memoizedProps,Z.state=t.memoizedState,Z.componentWillUnmount()}catch(b){Ge(r,n,b)}}break;case 5:$r(O,O.return);break;case 22:if(O.memoizedState!==null){Mc(j);continue}}K!==null?(K.return=O,X=K):Mc(j)}F=F.sibling}e:for(F=null,j=e;;){if(j.tag===5){if(F===null){F=j;try{l=j.stateNode,R?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(d=j.stateNode,v=j.memoizedProps.style,s=v!=null&&v.hasOwnProperty("display")?v.display:null,d.style.display=Vt("display",s))}catch(b){Ge(e,e.return,b)}}}else if(j.tag===6){if(F===null)try{j.stateNode.nodeValue=R?"":j.memoizedProps}catch(b){Ge(e,e.return,b)}}else if((j.tag!==22&&j.tag!==23||j.memoizedState===null||j===e)&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===e)break e;for(;j.sibling===null;){if(j.return===null||j.return===e)break e;F===j&&(F=null),j=j.return}F===j&&(F=null),j.sibling.return=j.return,j=j.sibling}}break;case 19:Yt(t,e),an(e),r&4&&Lc(e);break;case 21:break;default:Yt(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pc(n)){var r=n;break e}n=n.return}throw Error(u(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(xn(l,""),r.flags&=-33);var o=_c(e);Oa(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,d=_c(e);za(e,d,s);break;default:throw Error(u(161))}}catch(v){Ge(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function op(e,t,n){X=e,Dc(e)}function Dc(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var l=X,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Vi;if(!s){var d=l.alternate,v=d!==null&&d.memoizedState!==null||ht;d=Vi;var R=ht;if(Vi=s,(ht=v)&&!R)for(X=l;X!==null;)s=X,v=s.child,s.tag===22&&s.memoizedState!==null?zc(l):v!==null?(v.return=s,X=v):zc(l);for(;o!==null;)X=o,Dc(o),o=o.sibling;X=l,Vi=d,ht=R}Nc(e)}else(l.subtreeFlags&8772)!==0&&o!==null?(o.return=l,X=o):Nc(e)}}function Nc(e){for(;X!==null;){var t=X;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ht||Hi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ht)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Qt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ms(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ms(t,s,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var v=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":v.autoFocus&&n.focus();break;case"img":v.src&&(n.src=v.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var R=t.alternate;if(R!==null){var F=R.memoizedState;if(F!==null){var j=F.dehydrated;j!==null&&cl(j)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}ht||t.flags&512&&Ma(t)}catch(O){Ge(t,t.return,O)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function Mc(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function zc(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(v){Ge(t,n,v)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(v){Ge(t,l,v)}}var o=t.return;try{Ma(t)}catch(v){Ge(t,o,v)}break;case 5:var s=t.return;try{Ma(t)}catch(v){Ge(t,s,v)}}}catch(v){Ge(t,t.return,v)}if(t===e){X=null;break}var d=t.sibling;if(d!==null){d.return=t.return,X=d;break}X=t.return}}var ap=Math.ceil,Wi=le.ReactCurrentDispatcher,Fa=le.ReactCurrentOwner,jt=le.ReactCurrentBatchConfig,_e=0,ot=null,qe=null,ct=0,Tt=0,Qr=On(0),rt=0,zl=null,cr=0,$i=0,ja=0,Ol=null,Et=null,Ia=0,Kr=1/0,wn=null,Qi=!1,Ua=null,Bn=null,Ki=!1,Vn=null,Yi=0,Fl=0,Aa=null,Xi=-1,Gi=0;function yt(){return(_e&6)!==0?Re():Xi!==-1?Xi:Xi=Re()}function Hn(e){return(e.mode&1)===0?1:(_e&2)!==0&&ct!==0?ct&-ct:$d.transition!==null?(Gi===0&&(Gi=_u()),Gi):(e=Me,e!==0||(e=window.event,e=e===void 0?16:Fu(e.type)),e)}function Xt(e,t,n,r){if(50<Fl)throw Fl=0,Aa=null,Error(u(185));il(e,n,r),((_e&2)===0||e!==ot)&&(e===ot&&((_e&2)===0&&($i|=n),rt===4&&Wn(e,ct)),kt(e,r),n===1&&_e===0&&(t.mode&1)===0&&(Kr=Re()+500,xi&&jn()))}function kt(e,t){var n=e.callbackNode;$f(e,t);var r=li(e,e===ot?ct:0);if(r===0)n!==null&&sn(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&sn(n),t===1)e.tag===0?Wd(Fc.bind(null,e)):Ss(Fc.bind(null,e)),Ad(function(){(_e&6)===0&&jn()}),n=null;else{switch(Ru(r)){case 1:n=cn;break;case 4:n=nn;break;case 16:n=fn;break;case 536870912:n=ke;break;default:n=fn}n=Wc(n,Oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Oc(e,t){if(Xi=-1,Gi=0,(_e&6)!==0)throw Error(u(327));var n=e.callbackNode;if(Yr()&&e.callbackNode!==n)return null;var r=li(e,e===ot?ct:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Ji(e,r);else{t=r;var l=_e;_e|=2;var o=Ic();(ot!==e||ct!==t)&&(wn=null,Kr=Re()+500,dr(e,t));do try{cp();break}catch(d){jc(e,d)}while(!0);ra(),Wi.current=o,_e=l,qe!==null?t=0:(ot=null,ct=0,t=rt)}if(t!==0){if(t===2&&(l=wo(e),l!==0&&(r=l,t=Ba(e,l))),t===1)throw n=zl,dr(e,0),Wn(e,r),kt(e,Re()),n;if(t===6)Wn(e,r);else{if(l=e.current.alternate,(r&30)===0&&!up(l)&&(t=Ji(e,r),t===2&&(o=wo(e),o!==0&&(r=o,t=Ba(e,o))),t===1))throw n=zl,dr(e,0),Wn(e,r),kt(e,Re()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(u(345));case 2:pr(e,Et,wn);break;case 3:if(Wn(e,r),(r&130023424)===r&&(t=Ia+500-Re(),10<t)){if(li(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){yt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ko(pr.bind(null,e,Et,wn),t);break}pr(e,Et,wn);break;case 4:if(Wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Le(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ap(r/1960))-r,10<r){e.timeoutHandle=Ko(pr.bind(null,e,Et,wn),r);break}pr(e,Et,wn);break;case 5:pr(e,Et,wn);break;default:throw Error(u(329))}}}return kt(e,Re()),e.callbackNode===n?Oc.bind(null,e):null}function Ba(e,t){var n=Ol;return e.current.memoizedState.isDehydrated&&(dr(e,t).flags|=256),e=Ji(e,t),e!==2&&(t=Et,Et=n,t!==null&&Va(t)),e}function Va(e){Et===null?Et=e:Et.push.apply(Et,e)}function up(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Wt(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t){for(t&=~ja,t&=~$i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Le(t),r=1<<n;e[n]=-1,t&=~r}}function Fc(e){if((_e&6)!==0)throw Error(u(327));Yr();var t=li(e,0);if((t&1)===0)return kt(e,Re()),null;var n=Ji(e,t);if(e.tag!==0&&n===2){var r=wo(e);r!==0&&(t=r,n=Ba(e,r))}if(n===1)throw n=zl,dr(e,0),Wn(e,t),kt(e,Re()),n;if(n===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pr(e,Et,wn),kt(e,Re()),null}function Ha(e,t){var n=_e;_e|=1;try{return e(t)}finally{_e=n,_e===0&&(Kr=Re()+500,xi&&jn())}}function fr(e){Vn!==null&&Vn.tag===0&&(_e&6)===0&&Yr();var t=_e;_e|=1;var n=jt.transition,r=Me;try{if(jt.transition=null,Me=1,e)return e()}finally{Me=r,jt.transition=n,_e=t,(_e&6)===0&&jn()}}function Wa(){Tt=Qr.current,$e(Qr)}function dr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ud(n)),qe!==null)for(n=qe.return;n!==null;){var r=n;switch(qo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ei();break;case 3:Hr(),$e(gt),$e(ft),fa();break;case 5:sa(r);break;case 4:Hr();break;case 13:$e(Ye);break;case 19:$e(Ye);break;case 10:la(r.type._context);break;case 22:case 23:Wa()}n=n.return}if(ot=e,qe=e=$n(e.current,null),ct=Tt=t,rt=0,zl=null,ja=$i=cr=0,Et=Ol=null,ar!==null){for(t=0;t<ar.length;t++)if(n=ar[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}ar=null}return e}function jc(e,t){do{var n=qe;try{if(ra(),zi.current=Ii,Oi){for(var r=Xe.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Oi=!1}if(sr=0,it=nt=Xe=null,Rl=!1,Ll=0,Fa.current=null,n===null||n.return===null){rt=1,zl=t,qe=null;break}e:{var o=e,s=n.return,d=n,v=t;if(t=ct,d.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){var R=v,F=d,j=F.tag;if((F.mode&1)===0&&(j===0||j===11||j===15)){var O=F.alternate;O?(F.updateQueue=O.updateQueue,F.memoizedState=O.memoizedState,F.lanes=O.lanes):(F.updateQueue=null,F.memoizedState=null)}var K=ac(s);if(K!==null){K.flags&=-257,uc(K,s,d,o,t),K.mode&1&&oc(o,R,t),t=K,v=R;var Z=t.updateQueue;if(Z===null){var b=new Set;b.add(v),t.updateQueue=b}else Z.add(v);break e}else{if((t&1)===0){oc(o,R,t),$a();break e}v=Error(u(426))}}else if(Ke&&d.mode&1){var Je=ac(s);if(Je!==null){(Je.flags&65536)===0&&(Je.flags|=256),uc(Je,s,d,o,t),ta(Wr(v,d));break e}}o=v=Wr(v,d),rt!==4&&(rt=2),Ol===null?Ol=[o]:Ol.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var k=lc(o,v,t);Ns(o,k);break e;case 1:d=v;var w=o.type,P=o.stateNode;if((o.flags&128)===0&&(typeof w.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Bn===null||!Bn.has(P)))){o.flags|=65536,t&=-t,o.lanes|=t;var B=ic(o,d,t);Ns(o,B);break e}}o=o.return}while(o!==null)}Ac(n)}catch(ee){t=ee,qe===n&&n!==null&&(qe=n=n.return);continue}break}while(!0)}function Ic(){var e=Wi.current;return Wi.current=Ii,e===null?Ii:e}function $a(){(rt===0||rt===3||rt===2)&&(rt=4),ot===null||(cr&268435455)===0&&($i&268435455)===0||Wn(ot,ct)}function Ji(e,t){var n=_e;_e|=2;var r=Ic();(ot!==e||ct!==t)&&(wn=null,dr(e,t));do try{sp();break}catch(l){jc(e,l)}while(!0);if(ra(),_e=n,Wi.current=r,qe!==null)throw Error(u(261));return ot=null,ct=0,rt}function sp(){for(;qe!==null;)Uc(qe)}function cp(){for(;qe!==null&&!tr();)Uc(qe)}function Uc(e){var t=Hc(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Ac(e):qe=t,Fa.current=null}function Ac(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=np(n,t,Tt),n!==null){qe=n;return}}else{if(n=rp(n,t),n!==null){n.flags&=32767,qe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,qe=null;return}}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);rt===0&&(rt=5)}function pr(e,t,n){var r=Me,l=jt.transition;try{jt.transition=null,Me=1,fp(e,t,n,r)}finally{jt.transition=l,Me=r}return null}function fp(e,t,n,r){do Yr();while(Vn!==null);if((_e&6)!==0)throw Error(u(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Qf(e,o),e===ot&&(qe=ot=null,ct=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ki||(Ki=!0,Wc(fn,function(){return Yr(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=jt.transition,jt.transition=null;var s=Me;Me=1;var d=_e;_e|=4,Fa.current=null,ip(e,n),Tc(n,e),Nd($o),ai=!!Wo,$o=Wo=null,e.current=n,op(n),Ht(),_e=d,Me=s,jt.transition=o}else e.current=n;if(Ki&&(Ki=!1,Vn=e,Yi=l),o=e.pendingLanes,o===0&&(Bn=null),nr(n.stateNode),kt(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Qi)throw Qi=!1,e=Ua,Ua=null,e;return(Yi&1)!==0&&e.tag!==0&&Yr(),o=e.pendingLanes,(o&1)!==0?e===Aa?Fl++:(Fl=0,Aa=e):Fl=0,jn(),null}function Yr(){if(Vn!==null){var e=Ru(Yi),t=jt.transition,n=Me;try{if(jt.transition=null,Me=16>e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,Yi=0,(_e&6)!==0)throw Error(u(331));var l=_e;for(_e|=4,X=e.current;X!==null;){var o=X,s=o.child;if((X.flags&16)!==0){var d=o.deletions;if(d!==null){for(var v=0;v<d.length;v++){var R=d[v];for(X=R;X!==null;){var F=X;switch(F.tag){case 0:case 11:case 15:Ml(8,F,o)}var j=F.child;if(j!==null)j.return=F,X=j;else for(;X!==null;){F=X;var O=F.sibling,K=F.return;if(Cc(F),F===R){X=null;break}if(O!==null){O.return=K,X=O;break}X=K}}}var Z=o.alternate;if(Z!==null){var b=Z.child;if(b!==null){Z.child=null;do{var Je=b.sibling;b.sibling=null,b=Je}while(b!==null)}}X=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,X=s;else e:for(;X!==null;){if(o=X,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Ml(9,o,o.return)}var k=o.sibling;if(k!==null){k.return=o.return,X=k;break e}X=o.return}}var w=e.current;for(X=w;X!==null;){s=X;var P=s.child;if((s.subtreeFlags&2064)!==0&&P!==null)P.return=s,X=P;else e:for(s=w;X!==null;){if(d=X,(d.flags&2048)!==0)try{switch(d.tag){case 0:case 11:case 15:Hi(9,d)}}catch(ee){Ge(d,d.return,ee)}if(d===s){X=null;break e}var B=d.sibling;if(B!==null){B.return=d.return,X=B;break e}X=d.return}}if(_e=l,jn(),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ie,e)}catch{}r=!0}return r}finally{Me=n,jt.transition=t}}return!1}function Bc(e,t,n){t=Wr(n,t),t=lc(e,t,1),e=Un(e,t,1),t=yt(),e!==null&&(il(e,1,t),kt(e,t))}function Ge(e,t,n){if(e.tag===3)Bc(e,e,n);else for(;t!==null;){if(t.tag===3){Bc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Bn===null||!Bn.has(r))){e=Wr(n,e),e=ic(t,e,1),t=Un(t,e,1),e=yt(),t!==null&&(il(t,1,e),kt(t,e));break}}t=t.return}}function dp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&n,ot===e&&(ct&n)===n&&(rt===4||rt===3&&(ct&130023424)===ct&&500>Re()-Ia?dr(e,0):ja|=n),kt(e,t)}function Vc(e,t){t===0&&((e.mode&1)===0?t=1:(t=ri,ri<<=1,(ri&130023424)===0&&(ri=4194304)));var n=yt();e=vn(e,t),e!==null&&(il(e,t,n),kt(e,n))}function pp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vc(e,n)}function hp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(t),Vc(e,n)}var Hc;Hc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,tp(e,t,n);St=(e.flags&131072)!==0}else St=!1,Ke&&(t.flags&1048576)!==0&&Es(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bi(e,t),e=t.pendingProps;var l=Fr(t,ft.current);Vr(t,n),l=ha(null,t,r,e,l,n);var o=ma();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(o=!0,ki(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,aa(t),l.updater=Ui,t.stateNode=l,l._reactInternals=t,Ea(t,r,e,n),t=Pa(null,t,r,!0,o,n)):(t.tag=0,Ke&&o&&Zo(t),vt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bi(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=vp(r),e=Qt(r,e),l){case 0:t=Ca(null,t,r,e,n);break e;case 1:t=hc(null,t,r,e,n);break e;case 11:t=sc(null,t,r,e,n);break e;case 14:t=cc(null,t,r,Qt(r.type,e),n);break e}throw Error(u(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qt(r,l),Ca(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qt(r,l),hc(e,t,r,l,n);case 3:e:{if(mc(t),e===null)throw Error(u(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ds(e,t),Ni(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Wr(Error(u(423)),t),t=vc(e,t,r,n,l);break e}else if(r!==l){l=Wr(Error(u(424)),t),t=vc(e,t,r,n,l);break e}else for(Lt=zn(t.stateNode.containerInfo.firstChild),Rt=t,Ke=!0,$t=null,n=Ls(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===l){t=gn(e,t,n);break e}vt(e,t,r,n)}t=t.child}return t;case 5:return zs(t),e===null&&ea(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Qo(r,l)?s=null:o!==null&&Qo(r,o)&&(t.flags|=32),pc(e,t),vt(e,t,s,n),t.child;case 6:return e===null&&ea(t),null;case 13:return yc(e,t,n);case 4:return ua(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ar(t,null,r,n):vt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qt(r,l),sc(e,t,r,l,n);case 7:return vt(e,t,t.pendingProps,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,Ve(Li,r._currentValue),r._currentValue=s,o!==null)if(Wt(o.value,s)){if(o.children===l.children&&!gt.current){t=gn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var d=o.dependencies;if(d!==null){s=o.child;for(var v=d.firstContext;v!==null;){if(v.context===r){if(o.tag===1){v=yn(-1,n&-n),v.tag=2;var R=o.updateQueue;if(R!==null){R=R.shared;var F=R.pending;F===null?v.next=v:(v.next=F.next,F.next=v),R.pending=v}}o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),ia(o.return,n,t),d.lanes|=n;break}v=v.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(u(341));s.lanes|=n,d=s.alternate,d!==null&&(d.lanes|=n),ia(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}vt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vr(t,n),l=Ot(l),r=r(l),t.flags|=1,vt(e,t,r,n),t.child;case 14:return r=t.type,l=Qt(r,t.pendingProps),l=Qt(r.type,l),cc(e,t,r,l,n);case 15:return fc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qt(r,l),Bi(e,t),t.tag=1,wt(r)?(e=!0,ki(t)):e=!1,Vr(t,n),nc(t,r,l),Ea(t,r,l,n),Pa(null,t,r,!0,e,n);case 19:return wc(e,t,n);case 22:return dc(e,t,n)}throw Error(u(156,t.tag))};function Wc(e,t){return He(e,t)}function mp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new mp(e,t,n,r)}function Qa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vp(e){if(typeof e=="function")return Qa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===De)return 11;if(e===Ze)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zi(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")Qa(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case T:return hr(n.children,l,o,t);case te:s=8,l|=8;break;case Ee:return e=It(12,n,t,l|2),e.elementType=Ee,e.lanes=o,e;case Fe:return e=It(13,n,t,l),e.elementType=Fe,e.lanes=o,e;case Ae:return e=It(19,n,t,l),e.elementType=Ae,e.lanes=o,e;case je:return qi(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:s=10;break e;case Ue:s=9;break e;case De:s=11;break e;case Ze:s=14;break e;case et:s=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return t=It(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function hr(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function qi(e,t,n,r){return e=It(22,e,r,t),e.elementType=je,e.lanes=n,e.stateNode={isHidden:!1},e}function Ka(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Ya(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=So(0),this.expirationTimes=So(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Xa(e,t,n,r,l,o,s,d,v){return e=new yp(e,t,n,d,v),t===1?(t=1,o===!0&&(t|=8)):t=0,o=It(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},aa(o),e}function gp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $c(e){if(!e)return Fn;e=e._reactInternals;e:{if(G(e)!==e||e.tag!==1)throw Error(u(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(u(171))}if(e.tag===1){var n=e.type;if(wt(n))return gs(e,n,t)}return t}function Qc(e,t,n,r,l,o,s,d,v){return e=Xa(n,r,!0,e,l,o,s,d,v),e.context=$c(null),n=e.current,r=yt(),l=Hn(n),o=yn(r,l),o.callback=t??null,Un(n,o,l),e.current.lanes=l,il(e,l,r),kt(e,r),e}function bi(e,t,n,r){var l=t.current,o=yt(),s=Hn(l);return n=$c(n),t.context===null?t.context=n:t.pendingContext=n,t=yn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Un(l,t,s),e!==null&&(Xt(e,l,s,o),Di(e,l,s)),s}function eo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Kc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ga(e,t){Kc(e,t),(e=e.alternate)&&Kc(e,t)}function wp(){return null}var Yc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ja(e){this._internalRoot=e}to.prototype.render=Ja.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));bi(e,t,null,null)},to.prototype.unmount=Ja.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fr(function(){bi(null,e,null,null)}),t[dn]=null}};function to(e){this._internalRoot=e}to.prototype.unstable_scheduleHydration=function(e){if(e){var t=Du();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dn.length&&t!==0&&t<Dn[n].priority;n++);Dn.splice(n,0,e),n===0&&zu(e)}};function Za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function no(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xc(){}function Sp(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var R=eo(s);o.call(R)}}var s=Qc(t,r,e,0,null,!1,!1,"",Xc);return e._reactRootContainer=s,e[dn]=s.current,wl(e.nodeType===8?e.parentNode:e),fr(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var d=r;r=function(){var R=eo(v);d.call(R)}}var v=Xa(e,0,!1,null,null,!1,!1,"",Xc);return e._reactRootContainer=v,e[dn]=v.current,wl(e.nodeType===8?e.parentNode:e),fr(function(){bi(t,v,n,r)}),v}function ro(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var d=l;l=function(){var v=eo(s);d.call(v)}}bi(t,s,e,l)}else s=Sp(n,t,e,l,r);return eo(s)}Lu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ll(t.pendingLanes);n!==0&&(Eo(t,n|1),kt(t,Re()),(_e&6)===0&&(Kr=Re()+500,jn()))}break;case 13:fr(function(){var r=vn(e,1);if(r!==null){var l=yt();Xt(r,e,1,l)}}),Ga(e,1)}},ko=function(e){if(e.tag===13){var t=vn(e,134217728);if(t!==null){var n=yt();Xt(t,e,134217728,n)}Ga(e,134217728)}},Tu=function(e){if(e.tag===13){var t=Hn(e),n=vn(e,t);if(n!==null){var r=yt();Xt(n,e,t,r)}Ga(e,t)}},Du=function(){return Me},Nu=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}},Cr=function(e,t,n){switch(t){case"input":if(Jr(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Si(r);if(!l)throw Error(u(90));lt(r),Jr(r,l)}}}break;case"textarea":qt(e,n);break;case"select":t=n.value,t!=null&&En(e,!!n.multiple,t,!1)}},nl=Ha,bn=fr;var Ep={usingClientEntryPoint:!1,Events:[kl,zr,Si,tl,bl,Ha]},jl={findFiberByHostInstance:rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kp={bundleType:jl.bundleType,version:jl.version,rendererPackageName:jl.rendererPackageName,rendererConfig:jl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:le.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ne(e),e===null?null:e.stateNode},findFiberByHostInstance:jl.findFiberByHostInstance||wp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lo.isDisabled&&lo.supportsFiber)try{Ie=lo.inject(kp),ut=lo}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ep,xt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Za(t))throw Error(u(200));return gp(e,t,null,n)},xt.createRoot=function(e,t){if(!Za(e))throw Error(u(299));var n=!1,r="",l=Yc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Xa(e,1,!1,null,null,n,!1,r,l),e[dn]=t.current,wl(e.nodeType===8?e.parentNode:e),new Ja(t)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=Ne(t),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return fr(e)},xt.hydrate=function(e,t,n){if(!no(t))throw Error(u(200));return ro(null,e,t,!0,n)},xt.hydrateRoot=function(e,t,n){if(!Za(e))throw Error(u(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=Yc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Qc(t,null,e,1,n??null,l,!1,o,s),e[dn]=t.current,wl(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new to(t)},xt.render=function(e,t,n){if(!no(t))throw Error(u(200));return ro(null,e,t,!1,n)},xt.unmountComponentAtNode=function(e){if(!no(e))throw Error(u(40));return e._reactRootContainer?(fr(function(){ro(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1},xt.unstable_batchedUpdates=Ha,xt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!no(n))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return ro(e,t,n,!1,r)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var nf;function Mp(){if(nf)return eu.exports;nf=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(a){console.error(a)}}return i(),eu.exports=Np(),eu.exports}var _f=Mp();const zp=Pf(_f),Op=Cf({__proto__:null,default:zp},[_f]);/**
41
+ * @remix-run/router v1.23.0
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function Qe(){return Qe=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])}return i},Qe.apply(this,arguments)}var be;(function(i){i.Pop="POP",i.Push="PUSH",i.Replace="REPLACE"})(be||(be={}));const rf="popstate";function Om(i){i===void 0&&(i={});function a(c,f){let{pathname:h,search:p,hash:g}=c.location;return Hl("",{pathname:h,search:p,hash:g},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function u(c,f){return typeof f=="string"?f:Xn(f)}return jp(a,u,null,i)}function ve(i,a){if(i===!1||i===null||typeof i>"u")throw new Error(a)}function Gr(i,a){if(!i){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Fp(){return Math.random().toString(36).substr(2,8)}function lf(i,a){return{usr:i.state,key:i.key,idx:a}}function Hl(i,a,u,c){return u===void 0&&(u=null),Qe({pathname:typeof i=="string"?i:i.pathname,search:"",hash:""},typeof a=="string"?Gn(a):a,{state:u,key:a&&a.key||c||Fp()})}function Xn(i){let{pathname:a="/",search:u="",hash:c=""}=i;return u&&u!=="?"&&(a+=u.charAt(0)==="?"?u:"?"+u),c&&c!=="#"&&(a+=c.charAt(0)==="#"?c:"#"+c),a}function Gn(i){let a={};if(i){let u=i.indexOf("#");u>=0&&(a.hash=i.substr(u),i=i.substr(0,u));let c=i.indexOf("?");c>=0&&(a.search=i.substr(c),i=i.substr(0,c)),i&&(a.pathname=i)}return a}function jp(i,a,u,c){c===void 0&&(c={});let{window:f=document.defaultView,v5Compat:h=!1}=c,p=f.history,g=be.Pop,y=null,x=_();x==null&&(x=0,p.replaceState(Qe({},p.state,{idx:x}),""));function _(){return(p.state||{idx:null}).idx}function C(){g=be.Pop;let U=_(),fe=U==null?null:U-x;x=U,y&&y({action:g,location:V.location,delta:fe})}function D(U,fe){g=be.Push;let $=Hl(V.location,U,fe);x=_()+1;let ae=lf($,x),le=V.createHref($);try{p.pushState(ae,"",le)}catch(Se){if(Se instanceof DOMException&&Se.name==="DataCloneError")throw Se;f.location.assign(le)}h&&y&&y({action:g,location:V.location,delta:1})}function I(U,fe){g=be.Replace;let $=Hl(V.location,U,fe);x=_();let ae=lf($,x),le=V.createHref($);p.replaceState(ae,"",le),h&&y&&y({action:g,location:V.location,delta:0})}function W(U){let fe=f.location.origin!=="null"?f.location.origin:f.location.href,$=typeof U=="string"?U:Xn(U);return $=$.replace(/ $/,"%20"),ve(fe,"No window.location.(origin|href) available to create URL for href: "+$),new URL($,fe)}let V={get action(){return g},get location(){return i(f,p)},listen(U){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(rf,C),y=U,()=>{f.removeEventListener(rf,C),y=null}},createHref(U){return a(f,U)},createURL:W,encodeLocation(U){let fe=W(U);return{pathname:fe.pathname,search:fe.search,hash:fe.hash}},push:D,replace:I,go(U){return p.go(U)}};return V}var ze;(function(i){i.data="data",i.deferred="deferred",i.redirect="redirect",i.error="error"})(ze||(ze={}));const Ip=new Set(["lazy","caseSensitive","path","id","index","children"]);function Up(i){return i.index===!0}function co(i,a,u,c){return u===void 0&&(u=[]),c===void 0&&(c={}),i.map((f,h)=>{let p=[...u,String(h)],g=typeof f.id=="string"?f.id:p.join("-");if(ve(f.index!==!0||!f.children,"Cannot specify children on an index route"),ve(!c[g],'Found a route id collision on id "'+g+`". Route id's must be globally unique within Data Router usages`),Up(f)){let y=Qe({},f,a(f),{id:g});return c[g]=y,y}else{let y=Qe({},f,a(f),{id:g,children:void 0});return c[g]=y,f.children&&(y.children=co(f.children,a,p,c)),y}})}function mr(i,a,u){return u===void 0&&(u="/"),uo(i,a,u,!1)}function uo(i,a,u,c){let f=typeof a=="string"?Gn(a):a,h=At(f.pathname||"/",u);if(h==null)return null;let p=Lf(i);Ap(p);let g=null;for(let y=0;g==null&&y<p.length;++y){let x=Jp(h);g=Xp(p[y],x,c)}return g}function Rf(i,a){let{route:u,pathname:c,params:f}=i;return{id:u.id,pathname:c,params:f,data:a[u.id],handle:u.handle}}function Lf(i,a,u,c){a===void 0&&(a=[]),u===void 0&&(u=[]),c===void 0&&(c="");let f=(h,p,g)=>{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};y.relativePath.startsWith("/")&&(ve(y.relativePath.startsWith(c),'Absolute route path "'+y.relativePath+'" nested under path '+('"'+c+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),y.relativePath=y.relativePath.slice(c.length));let x=un([c,y.relativePath]),_=u.concat(y);h.children&&h.children.length>0&&(ve(h.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+x+'".')),Lf(h.children,a,_,x)),!(h.path==null&&!h.index)&&a.push({path:x,score:Kp(x,h.index),routesMeta:_})};return i.forEach((h,p)=>{var g;if(h.path===""||!((g=h.path)!=null&&g.includes("?")))f(h,p);else for(let y of Tf(h.path))f(h,p,y)}),a}function Tf(i){let a=i.split("/");if(a.length===0)return[];let[u,...c]=a,f=u.endsWith("?"),h=u.replace(/\?$/,"");if(c.length===0)return f?[h,""]:[h];let p=Tf(c.join("/")),g=[];return g.push(...p.map(y=>y===""?h:[h,y].join("/"))),f&&g.push(...p),g.map(y=>i.startsWith("/")&&y===""?"/":y)}function Ap(i){i.sort((a,u)=>a.score!==u.score?u.score-a.score:Yp(a.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}const Bp=/^:[\w-]+$/,Vp=3,Hp=2,Wp=1,$p=10,Qp=-2,of=i=>i==="*";function Kp(i,a){let u=i.split("/"),c=u.length;return u.some(of)&&(c+=Qp),a&&(c+=Hp),u.filter(f=>!of(f)).reduce((f,h)=>f+(Bp.test(h)?Vp:h===""?Wp:$p),c)}function Yp(i,a){return i.length===a.length&&i.slice(0,-1).every((c,f)=>c===a[f])?i[i.length-1]-a[a.length-1]:0}function Xp(i,a,u){u===void 0&&(u=!1);let{routesMeta:c}=i,f={},h="/",p=[];for(let g=0;g<c.length;++g){let y=c[g],x=g===c.length-1,_=h==="/"?a:a.slice(h.length)||"/",C=fo({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},_),D=y.route;if(!C&&x&&u&&!c[c.length-1].route.index&&(C=fo({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},_)),!C)return null;Object.assign(f,C.params),p.push({params:f,pathname:un([h,C.pathname]),pathnameBase:bp(un([h,C.pathnameBase])),route:D}),C.pathnameBase!=="/"&&(h=un([h,C.pathnameBase]))}return p}function fo(i,a){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[u,c]=Gp(i.path,i.caseSensitive,i.end),f=a.match(u);if(!f)return null;let h=f[0],p=h.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:c.reduce((x,_,C)=>{let{paramName:D,isOptional:I}=_;if(D==="*"){let V=g[C]||"";p=h.slice(0,h.length-V.length).replace(/(.)\/+$/,"$1")}const W=g[C];return I&&!W?x[D]=void 0:x[D]=(W||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:p,pattern:i}}function Gp(i,a,u){a===void 0&&(a=!1),u===void 0&&(u=!0),Gr(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 c=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,y)=>(c.push({paramName:g,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(c.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,a?void 0:"i"),c]}function Jp(i){try{return i.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Gr(!1,'The URL path "'+i+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+a+").")),i}}function At(i,a){if(a==="/")return i;if(!i.toLowerCase().startsWith(a.toLowerCase()))return null;let u=a.endsWith("/")?a.length-1:a.length,c=i.charAt(u);return c&&c!=="/"?null:i.slice(u)||"/"}function Zp(i,a){a===void 0&&(a="/");let{pathname:u,search:c="",hash:f=""}=typeof i=="string"?Gn(i):i;return{pathname:u?u.startsWith("/")?u:qp(u,a):a,search:eh(c),hash:th(f)}}function qp(i,a){let u=a.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?u.length>1&&u.pop():f!=="."&&u.push(f)}),u.length>1?u.join("/"):"/"}function ru(i,a,u,c){return"Cannot include a '"+i+"' character in a manually specified "+("`to."+a+"` field ["+JSON.stringify(c)+"]. Please separate it out to the ")+("`to."+u+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Df(i){return i.filter((a,u)=>u===0||a.route.path&&a.route.path.length>0)}function vu(i,a){let u=Df(i);return a?u.map((c,f)=>f===u.length-1?c.pathname:c.pathnameBase):u.map(c=>c.pathnameBase)}function yu(i,a,u,c){c===void 0&&(c=!1);let f;typeof i=="string"?f=Gn(i):(f=Qe({},i),ve(!f.pathname||!f.pathname.includes("?"),ru("?","pathname","search",f)),ve(!f.pathname||!f.pathname.includes("#"),ru("#","pathname","hash",f)),ve(!f.search||!f.search.includes("#"),ru("#","search","hash",f)));let h=i===""||f.pathname==="",p=h?"/":f.pathname,g;if(p==null)g=u;else{let C=a.length-1;if(!c&&p.startsWith("..")){let D=p.split("/");for(;D[0]==="..";)D.shift(),C-=1;f.pathname=D.join("/")}g=C>=0?a[C]:"/"}let y=Zp(f,g),x=p&&p!=="/"&&p.endsWith("/"),_=(h||p===".")&&u.endsWith("/");return!y.pathname.endsWith("/")&&(x||_)&&(y.pathname+="/"),y}const un=i=>i.join("/").replace(/\/\/+/g,"/"),bp=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),eh=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,th=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;class nh{constructor(a,u){this.type="DataWithResponseInit",this.data=a,this.init=u||null}}function Fm(i,a){return new nh(i,typeof a=="number"?{status:a}:a)}class uu extends Error{}class jm{constructor(a,u){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],ve(a&&typeof a=="object"&&!Array.isArray(a),"defer() only accepts plain objects");let c;this.abortPromise=new Promise((h,p)=>c=p),this.controller=new AbortController;let f=()=>c(new uu("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",f),this.controller.signal.addEventListener("abort",f),this.data=Object.entries(a).reduce((h,p)=>{let[g,y]=p;return Object.assign(h,{[g]:this.trackPromise(g,y)})},{}),this.done&&this.unlistenAbortSignal(),this.init=u}trackPromise(a,u){if(!(u instanceof Promise))return u;this.deferredKeys.push(a),this.pendingKeysSet.add(a);let c=Promise.race([u,this.abortPromise]).then(f=>this.onSettle(c,a,void 0,f),f=>this.onSettle(c,a,f));return c.catch(()=>{}),Object.defineProperty(c,"_tracked",{get:()=>!0}),c}onSettle(a,u,c,f){if(this.controller.signal.aborted&&c instanceof uu)return this.unlistenAbortSignal(),Object.defineProperty(a,"_error",{get:()=>c}),Promise.reject(c);if(this.pendingKeysSet.delete(u),this.done&&this.unlistenAbortSignal(),c===void 0&&f===void 0){let h=new Error('Deferred data for key "'+u+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(a,"_error",{get:()=>h}),this.emit(!1,u),Promise.reject(h)}return f===void 0?(Object.defineProperty(a,"_error",{get:()=>c}),this.emit(!1,u),Promise.reject(c)):(Object.defineProperty(a,"_data",{get:()=>f}),this.emit(!1,u),f)}emit(a,u){this.subscribers.forEach(c=>c(a,u))}subscribe(a){return this.subscribers.add(a),()=>this.subscribers.delete(a)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((a,u)=>this.pendingKeysSet.delete(u)),this.emit(!0)}async resolveData(a){let u=!1;if(!this.done){let c=()=>this.cancel();a.addEventListener("abort",c),u=await new Promise(f=>{this.subscribe(h=>{a.removeEventListener("abort",c),(h||this.done)&&f(h)})})}return u}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return ve(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((a,u)=>{let[c,f]=u;return Object.assign(a,{[c]:lh(f)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function rh(i){return i instanceof Promise&&i._tracked===!0}function lh(i){if(!rh(i))return i;if(i._error)throw i._error;return i._data}const Im=function(a,u){u===void 0&&(u=302);let c=u;typeof c=="number"?c={status:c}:typeof c.status>"u"&&(c.status=302);let f=new Headers(c.headers);return f.set("Location",a),new Response(null,Qe({},c,{headers:f}))};class su{constructor(a,u,c,f){f===void 0&&(f=!1),this.status=a,this.statusText=u||"",this.internal=f,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}}function Wl(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}const Nf=["post","put","patch","delete"],ih=new Set(Nf),oh=["get",...Nf],ah=new Set(oh),uh=new Set([301,302,303,307,308]),sh=new Set([307,308]),lu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ch={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ul={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},gu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fh=i=>({hasErrorBoundary:!!i.hasErrorBoundary}),Mf="remix-router-transitions";function Um(i){const a=i.window?i.window:typeof window<"u"?window:void 0,u=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u",c=!u;ve(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let f;if(i.mapRouteProperties)f=i.mapRouteProperties;else if(i.detectErrorBoundary){let m=i.detectErrorBoundary;f=E=>({hasErrorBoundary:m(E)})}else f=fh;let h={},p=co(i.routes,f,void 0,h),g,y=i.basename||"/",x=i.dataStrategy||mh,_=i.patchRoutesOnNavigation,C=Qe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},i.future),D=null,I=new Set,W=null,V=null,U=null,fe=i.hydrationData!=null,$=mr(p,i.history.location,y),ae=!1,le=null;if($==null&&!_){let m=Ct(404,{pathname:i.history.location.pathname}),{matches:E,route:L}=yf(p);$=E,le={[L.id]:m}}$&&!i.hydrationData&&bn($,p,i.history.location.pathname).active&&($=null);let Se;if($)if($.some(m=>m.route.lazy))Se=!1;else if(!$.some(m=>m.route.loader))Se=!0;else if(C.v7_partialHydration){let m=i.hydrationData?i.hydrationData.loaderData:null,E=i.hydrationData?i.hydrationData.errors:null;if(E){let L=$.findIndex(z=>E[z.route.id]!==void 0);Se=$.slice(0,L+1).every(z=>!fu(z.route,m,E))}else Se=$.every(L=>!fu(L.route,m,E))}else Se=i.hydrationData!=null;else if(Se=!1,$=[],C.v7_partialHydration){let m=bn(null,p,i.history.location.pathname);m.active&&m.matches&&(ae=!0,$=m.matches)}let Oe,T={historyAction:i.history.action,location:i.history.location,matches:$,initialized:Se,navigation:lu,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||le,fetchers:new Map,blockers:new Map},te=be.Pop,Ee=!1,se,Ue=!1,De=new Map,Fe=null,Ae=!1,Ze=!1,et=[],je=new Set,A=new Map,re=0,Q=-1,S=new Map,M=new Set,de=new Map,me=new Map,pe=new Set,ye=new Map,xe=new Map,Ce;function Be(){if(D=i.history.listen(m=>{let{action:E,location:L,delta:z}=m;if(Ce){Ce(),Ce=void 0;return}Gr(xe.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let H=Cr({currentLocation:T.location,nextLocation:L,historyAction:E});if(H&&z!=null){let ne=new Promise(ue=>{Ce=ue});i.history.go(z*-1),Cn(H,{state:"blocked",location:L,proceed(){Cn(H,{state:"proceeding",proceed:void 0,reset:void 0,location:L}),ne.then(()=>i.history.go(z))},reset(){let ue=new Map(T.blockers);ue.set(H,Ul),lt({blockers:ue})}});return}return Zt(E,L)}),u){Th(a,De);let m=()=>Dh(a,De);a.addEventListener("pagehide",m),Fe=()=>a.removeEventListener("pagehide",m)}return T.initialized||Zt(be.Pop,T.location,{initialHydration:!0}),Oe}function mt(){D&&D(),Fe&&Fe(),I.clear(),se&&se.abort(),T.fetchers.forEach((m,E)=>bt(E)),T.blockers.forEach((m,E)=>xr(E))}function wr(m){return I.add(m),()=>I.delete(m)}function lt(m,E){E===void 0&&(E={}),T=Qe({},T,m);let L=[],z=[];C.v7_fetcherPersist&&T.fetchers.forEach((H,ne)=>{H.state==="idle"&&(pe.has(ne)?z.push(ne):L.push(ne))}),pe.forEach(H=>{!T.fetchers.has(H)&&!A.has(H)&&z.push(H)}),[...I].forEach(H=>H(T,{deletedFetchers:z,viewTransitionOpts:E.viewTransitionOpts,flushSync:E.flushSync===!0})),C.v7_fetcherPersist?(L.forEach(H=>T.fetchers.delete(H)),z.forEach(H=>bt(H))):z.forEach(H=>pe.delete(H))}function Bt(m,E,L){var z,H;let{flushSync:ne}=L===void 0?{}:L,ue=T.actionData!=null&&T.navigation.formMethod!=null&&Gt(T.navigation.formMethod)&&T.navigation.state==="loading"&&((z=m.state)==null?void 0:z._isRedirect)!==!0,J;E.actionData?Object.keys(E.actionData).length>0?J=E.actionData:J=null:ue?J=T.actionData:J=null;let q=E.loaderData?mf(T.loaderData,E.loaderData,E.matches||[],E.errors):T.loaderData,Y=T.blockers;Y.size>0&&(Y=new Map(Y),Y.forEach((we,tt)=>Y.set(tt,Ul)));let G=Ee===!0||T.navigation.formMethod!=null&&Gt(T.navigation.formMethod)&&((H=m.state)==null?void 0:H._isRedirect)!==!0;g&&(p=g,g=void 0),Ae||te===be.Pop||(te===be.Push?i.history.push(m,m.state):te===be.Replace&&i.history.replace(m,m.state));let he;if(te===be.Pop){let we=De.get(T.location.pathname);we&&we.has(m.pathname)?he={currentLocation:T.location,nextLocation:m}:De.has(m.pathname)&&(he={currentLocation:m,nextLocation:T.location})}else if(Ue){let we=De.get(T.location.pathname);we?we.add(m.pathname):(we=new Set([m.pathname]),De.set(T.location.pathname,we)),he={currentLocation:T.location,nextLocation:m}}lt(Qe({},E,{actionData:J,loaderData:q,historyAction:te,location:m,initialized:!0,navigation:lu,revalidation:"idle",restoreScrollPosition:nl(m,E.matches||T.matches),preventScrollReset:G,blockers:Y}),{viewTransitionOpts:he,flushSync:ne===!0}),te=be.Pop,Ee=!1,Ue=!1,Ae=!1,Ze=!1,et=[]}async function Sr(m,E){if(typeof m=="number"){i.history.go(m);return}let L=cu(T.location,T.matches,y,C.v7_prependBasename,m,C.v7_relativeSplatPath,E==null?void 0:E.fromRouteId,E==null?void 0:E.relative),{path:z,submission:H,error:ne}=af(C.v7_normalizeFormMethod,!1,L,E),ue=T.location,J=Hl(T.location,z,E&&E.state);J=Qe({},J,i.history.encodeLocation(J));let q=E&&E.replace!=null?E.replace:void 0,Y=be.Push;q===!0?Y=be.Replace:q===!1||H!=null&&Gt(H.formMethod)&&H.formAction===T.location.pathname+T.location.search&&(Y=be.Replace);let G=E&&"preventScrollReset"in E?E.preventScrollReset===!0:void 0,he=(E&&E.flushSync)===!0,we=Cr({currentLocation:ue,nextLocation:J,historyAction:Y});if(we){Cn(we,{state:"blocked",location:J,proceed(){Cn(we,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),Sr(m,E)},reset(){let tt=new Map(T.blockers);tt.set(we,Ul),lt({blockers:tt})}});return}return await Zt(Y,J,{submission:H,pendingError:ne,preventScrollReset:G,replace:E&&E.replace,enableViewTransition:E&&E.viewTransition,flushSync:he})}function Xl(){if(qn(),lt({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){Zt(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}Zt(te||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:Ue===!0})}}async function Zt(m,E,L){se&&se.abort(),se=null,te=m,Ae=(L&&L.startUninterruptedRevalidation)===!0,bl(T.location,T.matches),Ee=(L&&L.preventScrollReset)===!0,Ue=(L&&L.enableViewTransition)===!0;let z=g||p,H=L&&L.overrideNavigation,ne=L!=null&&L.initialHydration&&T.matches&&T.matches.length>0&&!ae?T.matches:mr(z,E,y),ue=(L&&L.flushSync)===!0;if(ne&&T.initialized&&!Ze&&Eh(T.location,E)&&!(L&&L.submission&&Gt(L.submission.formMethod))){Bt(E,{matches:ne},{flushSync:ue});return}let J=bn(ne,z,E.pathname);if(J.active&&J.matches&&(ne=J.matches),!ne){let{error:Ne,notFoundMatches:Pe,route:He}=en(E.pathname);Bt(E,{matches:Pe,loaderData:{},errors:{[He.id]:Ne}},{flushSync:ue});return}se=new AbortController;let q=Xr(i.history,E,se.signal,L&&L.submission),Y;if(L&&L.pendingError)Y=[vr(ne).route.id,{type:ze.error,error:L.pendingError}];else if(L&&L.submission&&Gt(L.submission.formMethod)){let Ne=await Jr(q,E,L.submission,ne,J.active,{replace:L.replace,flushSync:ue});if(Ne.shortCircuited)return;if(Ne.pendingActionResult){let[Pe,He]=Ne.pendingActionResult;if(Dt(He)&&Wl(He.error)&&He.error.status===404){se=null,Bt(E,{matches:Ne.matches,loaderData:{},errors:{[Pe]:He.error}});return}}ne=Ne.matches||ne,Y=Ne.pendingActionResult,H=iu(E,L.submission),ue=!1,J.active=!1,q=Xr(i.history,q.url,q.signal)}let{shortCircuited:G,matches:he,loaderData:we,errors:tt}=await Gl(q,E,ne,J.active,H,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,ue,Y);G||(se=null,Bt(E,Qe({matches:he||ne},vf(Y),{loaderData:we,errors:tt})))}async function Jr(m,E,L,z,H,ne){ne===void 0&&(ne={}),qn();let ue=Rh(E,L);if(lt({navigation:ue},{flushSync:ne.flushSync===!0}),H){let Y=await Pn(z,E.pathname,m.signal);if(Y.type==="aborted")return{shortCircuited:!0};if(Y.type==="error"){let G=vr(Y.partialMatches).route.id;return{matches:Y.partialMatches,pendingActionResult:[G,{type:ze.error,error:Y.error}]}}else if(Y.matches)z=Y.matches;else{let{notFoundMatches:G,error:he,route:we}=en(E.pathname);return{matches:G,pendingActionResult:[we.id,{type:ze.error,error:he}]}}}let J,q=Vl(z,E);if(!q.route.action&&!q.route.lazy)J={type:ze.error,error:Ct(405,{method:m.method,pathname:E.pathname,routeId:q.route.id})};else if(J=(await kn("action",T,m,[q],z,null))[q.route.id],m.signal.aborted)return{shortCircuited:!0};if(yr(J)){let Y;return ne&&ne.replace!=null?Y=ne.replace:Y=df(J.response.headers.get("Location"),new URL(m.url),y)===T.location.pathname+T.location.search,await qt(m,J,!0,{submission:L,replace:Y}),{shortCircuited:!0}}if(Yn(J))throw Ct(400,{type:"defer-action"});if(Dt(J)){let Y=vr(z,q.route.id);return(ne&&ne.replace)!==!0&&(te=be.Push),{matches:z,pendingActionResult:[Y.route.id,J]}}return{matches:z,pendingActionResult:[q.route.id,J]}}async function Gl(m,E,L,z,H,ne,ue,J,q,Y,G){let he=H||iu(E,ne),we=ne||ue||wf(he),tt=!Ae&&(!C.v7_partialHydration||!q);if(z){if(tt){let Ie=Er(G);lt(Qe({navigation:he},Ie!==void 0?{actionData:Ie}:{}),{flushSync:Y})}let ke=await Pn(L,E.pathname,m.signal);if(ke.type==="aborted")return{shortCircuited:!0};if(ke.type==="error"){let Ie=vr(ke.partialMatches).route.id;return{matches:ke.partialMatches,loaderData:{},errors:{[Ie]:ke.error}}}else if(ke.matches)L=ke.matches;else{let{error:Ie,notFoundMatches:ut,route:nr}=en(E.pathname);return{matches:ut,loaderData:{},errors:{[nr.id]:Ie}}}}let Ne=g||p,[Pe,He]=sf(i.history,T,L,we,E,C.v7_partialHydration&&q===!0,C.v7_skipActionErrorRevalidation,Ze,et,je,pe,de,M,Ne,y,G);if(tn(ke=>!(L&&L.some(Ie=>Ie.route.id===ke))||Pe&&Pe.some(Ie=>Ie.route.id===ke)),Q=++re,Pe.length===0&&He.length===0){let ke=Zl();return Bt(E,Qe({matches:L,loaderData:{},errors:G&&Dt(G[1])?{[G[0]]:G[1].error}:null},vf(G),ke?{fetchers:new Map(T.fetchers)}:{}),{flushSync:Y}),{shortCircuited:!0}}if(tt){let ke={};if(!z){ke.navigation=he;let Ie=Er(G);Ie!==void 0&&(ke.actionData=Ie)}He.length>0&&(ke.fetchers=Zn(He)),lt(ke,{flushSync:Y})}He.forEach(ke=>{Vt(ke.key),ke.controller&&A.set(ke.key,ke.controller)});let sn=()=>He.forEach(ke=>Vt(ke.key));se&&se.signal.addEventListener("abort",sn);let{loaderResults:tr,fetcherResults:Ht}=await qr(T,L,Pe,He,m);if(m.signal.aborted)return{shortCircuited:!0};se&&se.signal.removeEventListener("abort",sn),He.forEach(ke=>A.delete(ke.key));let Re=io(tr);if(Re)return await qt(m,Re.result,!0,{replace:J}),{shortCircuited:!0};if(Re=io(Ht),Re)return M.add(Re.key),await qt(m,Re.result,!0,{replace:J}),{shortCircuited:!0};let{loaderData:rl,errors:cn}=hf(T,L,tr,G,He,Ht,ye);ye.forEach((ke,Ie)=>{ke.subscribe(ut=>{(ut||ke.done)&&ye.delete(Ie)})}),C.v7_partialHydration&&q&&T.errors&&(cn=Qe({},T.errors,cn));let nn=Zl(),fn=kr(Q),Pr=nn||fn||He.length>0;return Qe({matches:L,loaderData:rl,errors:cn},Pr?{fetchers:new Map(T.fetchers)}:{})}function Er(m){if(m&&!Dt(m[1]))return{[m[0]]:m[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function Zn(m){return m.forEach(E=>{let L=T.fetchers.get(E.key),z=Al(void 0,L?L.data:void 0);T.fetchers.set(E.key,z)}),new Map(T.fetchers)}function En(m,E,L,z){if(c)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Vt(m);let H=(z&&z.flushSync)===!0,ne=g||p,ue=cu(T.location,T.matches,y,C.v7_prependBasename,L,C.v7_relativeSplatPath,E,z==null?void 0:z.relative),J=mr(ne,ue,y),q=bn(J,ne,ue);if(q.active&&q.matches&&(J=q.matches),!J){Nt(m,E,Ct(404,{pathname:ue}),{flushSync:H});return}let{path:Y,submission:G,error:he}=af(C.v7_normalizeFormMethod,!0,ue,z);if(he){Nt(m,E,he,{flushSync:H});return}let we=Vl(J,Y),tt=(z&&z.preventScrollReset)===!0;if(G&&Gt(G.formMethod)){Zr(m,E,Y,we,J,q.active,H,tt,G);return}de.set(m,{routeId:E,path:Y}),Jl(m,E,Y,we,J,q.active,H,tt,G)}async function Zr(m,E,L,z,H,ne,ue,J,q){qn(),de.delete(m);function Y(Le){if(!Le.route.action&&!Le.route.lazy){let _n=Ct(405,{method:q.formMethod,pathname:L,routeId:E});return Nt(m,E,_n,{flushSync:ue}),!0}return!1}if(!ne&&Y(z))return;let G=T.fetchers.get(m);Pt(m,Lh(q,G),{flushSync:ue});let he=new AbortController,we=Xr(i.history,L,he.signal,q);if(ne){let Le=await Pn(H,new URL(we.url).pathname,we.signal,m);if(Le.type==="aborted")return;if(Le.type==="error"){Nt(m,E,Le.error,{flushSync:ue});return}else if(Le.matches){if(H=Le.matches,z=Vl(H,L),Y(z))return}else{Nt(m,E,Ct(404,{pathname:L}),{flushSync:ue});return}}A.set(m,he);let tt=re,Pe=(await kn("action",T,we,[z],H,m))[z.route.id];if(we.signal.aborted){A.get(m)===he&&A.delete(m);return}if(C.v7_fetcherPersist&&pe.has(m)){if(yr(Pe)||Dt(Pe)){Pt(m,Kn(void 0));return}}else{if(yr(Pe))if(A.delete(m),Q>tt){Pt(m,Kn(void 0));return}else return M.add(m),Pt(m,Al(q)),qt(we,Pe,!1,{fetcherSubmission:q,preventScrollReset:J});if(Dt(Pe)){Nt(m,E,Pe.error);return}}if(Yn(Pe))throw Ct(400,{type:"defer-action"});let He=T.navigation.location||T.location,sn=Xr(i.history,He,he.signal),tr=g||p,Ht=T.navigation.state!=="idle"?mr(tr,T.navigation.location,y):T.matches;ve(Ht,"Didn't find any matches after fetcher action");let Re=++re;S.set(m,Re);let rl=Al(q,Pe.data);T.fetchers.set(m,rl);let[cn,nn]=sf(i.history,T,Ht,q,He,!1,C.v7_skipActionErrorRevalidation,Ze,et,je,pe,de,M,tr,y,[z.route.id,Pe]);nn.filter(Le=>Le.key!==m).forEach(Le=>{let _n=Le.key,ti=T.fetchers.get(_n),go=Al(void 0,ti?ti.data:void 0);T.fetchers.set(_n,go),Vt(_n),Le.controller&&A.set(_n,Le.controller)}),lt({fetchers:new Map(T.fetchers)});let fn=()=>nn.forEach(Le=>Vt(Le.key));he.signal.addEventListener("abort",fn);let{loaderResults:Pr,fetcherResults:ke}=await qr(T,Ht,cn,nn,sn);if(he.signal.aborted)return;he.signal.removeEventListener("abort",fn),S.delete(m),A.delete(m),nn.forEach(Le=>A.delete(Le.key));let Ie=io(Pr);if(Ie)return qt(sn,Ie.result,!1,{preventScrollReset:J});if(Ie=io(ke),Ie)return M.add(Ie.key),qt(sn,Ie.result,!1,{preventScrollReset:J});let{loaderData:ut,errors:nr}=hf(T,Ht,Pr,void 0,nn,ke,ye);if(T.fetchers.has(m)){let Le=Kn(Pe.data);T.fetchers.set(m,Le)}kr(Re),T.navigation.state==="loading"&&Re>Q?(ve(te,"Expected pending action"),se&&se.abort(),Bt(T.navigation.location,{matches:Ht,loaderData:ut,errors:nr,fetchers:new Map(T.fetchers)})):(lt({errors:nr,loaderData:mf(T.loaderData,ut,Ht,nr),fetchers:new Map(T.fetchers)}),Ze=!1)}async function Jl(m,E,L,z,H,ne,ue,J,q){let Y=T.fetchers.get(m);Pt(m,Al(q,Y?Y.data:void 0),{flushSync:ue});let G=new AbortController,he=Xr(i.history,L,G.signal);if(ne){let Pe=await Pn(H,new URL(he.url).pathname,he.signal,m);if(Pe.type==="aborted")return;if(Pe.type==="error"){Nt(m,E,Pe.error,{flushSync:ue});return}else if(Pe.matches)H=Pe.matches,z=Vl(H,L);else{Nt(m,E,Ct(404,{pathname:L}),{flushSync:ue});return}}A.set(m,G);let we=re,Ne=(await kn("loader",T,he,[z],H,m))[z.route.id];if(Yn(Ne)&&(Ne=await wu(Ne,he.signal,!0)||Ne),A.get(m)===G&&A.delete(m),!he.signal.aborted){if(pe.has(m)){Pt(m,Kn(void 0));return}if(yr(Ne))if(Q>we){Pt(m,Kn(void 0));return}else{M.add(m),await qt(he,Ne,!1,{preventScrollReset:J});return}if(Dt(Ne)){Nt(m,E,Ne.error);return}ve(!Yn(Ne),"Unhandled fetcher deferred data"),Pt(m,Kn(Ne.data))}}async function qt(m,E,L,z){let{submission:H,fetcherSubmission:ne,preventScrollReset:ue,replace:J}=z===void 0?{}:z;E.response.headers.has("X-Remix-Revalidate")&&(Ze=!0);let q=E.response.headers.get("Location");ve(q,"Expected a Location header on the redirect Response"),q=df(q,new URL(m.url),y);let Y=Hl(T.location,q,{_isRedirect:!0});if(u){let Pe=!1;if(E.response.headers.has("X-Remix-Reload-Document"))Pe=!0;else if(gu.test(q)){const He=i.history.createURL(q);Pe=He.origin!==a.location.origin||At(He.pathname,y)==null}if(Pe){J?a.location.replace(q):a.location.assign(q);return}}se=null;let G=J===!0||E.response.headers.has("X-Remix-Replace")?be.Replace:be.Push,{formMethod:he,formAction:we,formEncType:tt}=T.navigation;!H&&!ne&&he&&we&&tt&&(H=wf(T.navigation));let Ne=H||ne;if(sh.has(E.response.status)&&Ne&&Gt(Ne.formMethod))await Zt(G,Y,{submission:Qe({},Ne,{formAction:q}),preventScrollReset:ue||Ee,enableViewTransition:L?Ue:void 0});else{let Pe=iu(Y,H);await Zt(G,Y,{overrideNavigation:Pe,fetcherSubmission:ne,preventScrollReset:ue||Ee,enableViewTransition:L?Ue:void 0})}}async function kn(m,E,L,z,H,ne){let ue,J={};try{ue=await vh(x,m,E,L,z,H,ne,h,f)}catch(q){return z.forEach(Y=>{J[Y.route.id]={type:ze.error,error:q}}),J}for(let[q,Y]of Object.entries(ue))if(kh(Y)){let G=Y.result;J[q]={type:ze.redirect,response:wh(G,L,q,H,y,C.v7_relativeSplatPath)}}else J[q]=await gh(Y);return J}async function qr(m,E,L,z,H){let ne=m.matches,ue=kn("loader",m,H,L,E,null),J=Promise.all(z.map(async G=>{if(G.matches&&G.match&&G.controller){let we=(await kn("loader",m,Xr(i.history,G.path,G.controller.signal),[G.match],G.matches,G.key))[G.match.route.id];return{[G.key]:we}}else return Promise.resolve({[G.key]:{type:ze.error,error:Ct(404,{pathname:G.path})}})})),q=await ue,Y=(await J).reduce((G,he)=>Object.assign(G,he),{});return await Promise.all([Ph(E,q,H.signal,ne,m.loaderData),_h(E,Y,z)]),{loaderResults:q,fetcherResults:Y}}function qn(){Ze=!0,et.push(...tn()),de.forEach((m,E)=>{A.has(E)&&je.add(E),Vt(E)})}function Pt(m,E,L){L===void 0&&(L={}),T.fetchers.set(m,E),lt({fetchers:new Map(T.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Nt(m,E,L,z){z===void 0&&(z={});let H=vr(T.matches,E);bt(m),lt({errors:{[H.route.id]:L},fetchers:new Map(T.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function xn(m){return me.set(m,(me.get(m)||0)+1),pe.has(m)&&pe.delete(m),T.fetchers.get(m)||ch}function bt(m){let E=T.fetchers.get(m);A.has(m)&&!(E&&E.state==="loading"&&S.has(m))&&Vt(m),de.delete(m),S.delete(m),M.delete(m),C.v7_fetcherPersist&&pe.delete(m),je.delete(m),T.fetchers.delete(m)}function yo(m){let E=(me.get(m)||0)-1;E<=0?(me.delete(m),pe.add(m),C.v7_fetcherPersist||bt(m)):me.set(m,E),lt({fetchers:new Map(T.fetchers)})}function Vt(m){let E=A.get(m);E&&(E.abort(),A.delete(m))}function br(m){for(let E of m){let L=xn(E),z=Kn(L.data);T.fetchers.set(E,z)}}function Zl(){let m=[],E=!1;for(let L of M){let z=T.fetchers.get(L);ve(z,"Expected fetcher: "+L),z.state==="loading"&&(M.delete(L),m.push(L),E=!0)}return br(m),E}function kr(m){let E=[];for(let[L,z]of S)if(z<m){let H=T.fetchers.get(L);ve(H,"Expected fetcher: "+L),H.state==="loading"&&(Vt(L),S.delete(L),E.push(L))}return br(E),E.length>0}function el(m,E){let L=T.blockers.get(m)||Ul;return xe.get(m)!==E&&xe.set(m,E),L}function xr(m){T.blockers.delete(m),xe.delete(m)}function Cn(m,E){let L=T.blockers.get(m)||Ul;ve(L.state==="unblocked"&&E.state==="blocked"||L.state==="blocked"&&E.state==="blocked"||L.state==="blocked"&&E.state==="proceeding"||L.state==="blocked"&&E.state==="unblocked"||L.state==="proceeding"&&E.state==="unblocked","Invalid blocker state transition: "+L.state+" -> "+E.state);let z=new Map(T.blockers);z.set(m,E),lt({blockers:z})}function Cr(m){let{currentLocation:E,nextLocation:L,historyAction:z}=m;if(xe.size===0)return;xe.size>1&&Gr(!1,"A router only supports one blocker at a time");let H=Array.from(xe.entries()),[ne,ue]=H[H.length-1],J=T.blockers.get(ne);if(!(J&&J.state==="proceeding")&&ue({currentLocation:E,nextLocation:L,historyAction:z}))return ne}function en(m){let E=Ct(404,{pathname:m}),L=g||p,{matches:z,route:H}=yf(L);return tn(),{notFoundMatches:z,route:H,error:E}}function tn(m){let E=[];return ye.forEach((L,z)=>{(!m||m(z))&&(L.cancel(),E.push(z),ye.delete(z))}),E}function ql(m,E,L){if(W=m,U=E,V=L||null,!fe&&T.navigation===lu){fe=!0;let z=nl(T.location,T.matches);z!=null&&lt({restoreScrollPosition:z})}return()=>{W=null,U=null,V=null}}function tl(m,E){return V&&V(m,E.map(z=>Rf(z,T.loaderData)))||m.key}function bl(m,E){if(W&&U){let L=tl(m,E);W[L]=U()}}function nl(m,E){if(W){let L=tl(m,E),z=W[L];if(typeof z=="number")return z}return null}function bn(m,E,L){if(_)if(m){if(Object.keys(m[0].params).length>0)return{active:!0,matches:uo(E,L,y,!0)}}else return{active:!0,matches:uo(E,L,y,!0)||[]};return{active:!1,matches:null}}async function Pn(m,E,L,z){if(!_)return{type:"success",matches:m};let H=m;for(;;){let ne=g==null,ue=g||p,J=h;try{await _({signal:L,path:E,matches:H,fetcherKey:z,patch:(G,he)=>{L.aborted||ff(G,he,ue,J,f)}})}catch(G){return{type:"error",error:G,partialMatches:H}}finally{ne&&!L.aborted&&(p=[...p])}if(L.aborted)return{type:"aborted"};let q=mr(ue,E,y);if(q)return{type:"success",matches:q};let Y=uo(ue,E,y,!0);if(!Y||H.length===Y.length&&H.every((G,he)=>G.route.id===Y[he].route.id))return{type:"success",matches:null};H=Y}}function ei(m){h={},g=co(m,f,void 0,h)}function er(m,E){let L=g==null;ff(m,E,g||p,h,f),L&&(p=[...p],lt({}))}return Oe={get basename(){return y},get future(){return C},get state(){return T},get routes(){return p},get window(){return a},initialize:Be,subscribe:wr,enableScrollRestoration:ql,navigate:Sr,fetch:En,revalidate:Xl,createHref:m=>i.history.createHref(m),encodeLocation:m=>i.history.encodeLocation(m),getFetcher:xn,deleteFetcher:yo,dispose:mt,getBlocker:el,deleteBlocker:xr,patchRoutes:er,_internalFetchControllers:A,_internalActiveDeferreds:ye,_internalSetRoutes:ei},Oe}function dh(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function cu(i,a,u,c,f,h,p,g){let y,x;if(p){y=[];for(let C of a)if(y.push(C),C.route.id===p){x=C;break}}else y=a,x=a[a.length-1];let _=yu(f||".",vu(y,h),At(i.pathname,u)||i.pathname,g==="path");if(f==null&&(_.search=i.search,_.hash=i.hash),(f==null||f===""||f===".")&&x){let C=Su(_.search);if(x.route.index&&!C)_.search=_.search?_.search.replace(/^\?/,"?index&"):"?index";else if(!x.route.index&&C){let D=new URLSearchParams(_.search),I=D.getAll("index");D.delete("index"),I.filter(V=>V).forEach(V=>D.append("index",V));let W=D.toString();_.search=W?"?"+W:""}}return c&&u!=="/"&&(_.pathname=_.pathname==="/"?u:un([u,_.pathname])),Xn(_)}function af(i,a,u,c){if(!c||!dh(c))return{path:u};if(c.formMethod&&!Ch(c.formMethod))return{path:u,error:Ct(405,{method:c.formMethod})};let f=()=>({path:u,error:Ct(400,{type:"invalid-body"})}),h=c.formMethod||"get",p=i?h.toUpperCase():h.toLowerCase(),g=Ff(u);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!Gt(p))return f();let D=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((I,W)=>{let[V,U]=W;return""+I+V+"="+U+`
50
+ `},""):String(c.body);return{path:u,submission:{formMethod:p,formAction:g,formEncType:c.formEncType,formData:void 0,json:void 0,text:D}}}else if(c.formEncType==="application/json"){if(!Gt(p))return f();try{let D=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:u,submission:{formMethod:p,formAction:g,formEncType:c.formEncType,formData:void 0,json:D,text:void 0}}}catch{return f()}}}ve(typeof FormData=="function","FormData is not available in this environment");let y,x;if(c.formData)y=du(c.formData),x=c.formData;else if(c.body instanceof FormData)y=du(c.body),x=c.body;else if(c.body instanceof URLSearchParams)y=c.body,x=pf(y);else if(c.body==null)y=new URLSearchParams,x=new FormData;else try{y=new URLSearchParams(c.body),x=pf(y)}catch{return f()}let _={formMethod:p,formAction:g,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:x,json:void 0,text:void 0};if(Gt(_.formMethod))return{path:u,submission:_};let C=Gn(u);return a&&C.search&&Su(C.search)&&y.append("index",""),C.search="?"+y,{path:Xn(C),submission:_}}function uf(i,a,u){u===void 0&&(u=!1);let c=i.findIndex(f=>f.route.id===a);return c>=0?i.slice(0,u?c+1:c):i}function sf(i,a,u,c,f,h,p,g,y,x,_,C,D,I,W,V){let U=V?Dt(V[1])?V[1].error:V[1].data:void 0,fe=i.createURL(a.location),$=i.createURL(f),ae=u;h&&a.errors?ae=uf(u,Object.keys(a.errors)[0],!0):V&&Dt(V[1])&&(ae=uf(u,V[0]));let le=V?V[1].statusCode:void 0,Se=p&&le&&le>=400,Oe=ae.filter((te,Ee)=>{let{route:se}=te;if(se.lazy)return!0;if(se.loader==null)return!1;if(h)return fu(se,a.loaderData,a.errors);if(ph(a.loaderData,a.matches[Ee],te)||y.some(Fe=>Fe===te.route.id))return!0;let Ue=a.matches[Ee],De=te;return cf(te,Qe({currentUrl:fe,currentParams:Ue.params,nextUrl:$,nextParams:De.params},c,{actionResult:U,actionStatus:le,defaultShouldRevalidate:Se?!1:g||fe.pathname+fe.search===$.pathname+$.search||fe.search!==$.search||zf(Ue,De)}))}),T=[];return C.forEach((te,Ee)=>{if(h||!u.some(Ae=>Ae.route.id===te.routeId)||_.has(Ee))return;let se=mr(I,te.path,W);if(!se){T.push({key:Ee,routeId:te.routeId,path:te.path,matches:null,match:null,controller:null});return}let Ue=a.fetchers.get(Ee),De=Vl(se,te.path),Fe=!1;D.has(Ee)?Fe=!1:x.has(Ee)?(x.delete(Ee),Fe=!0):Ue&&Ue.state!=="idle"&&Ue.data===void 0?Fe=g:Fe=cf(De,Qe({currentUrl:fe,currentParams:a.matches[a.matches.length-1].params,nextUrl:$,nextParams:u[u.length-1].params},c,{actionResult:U,actionStatus:le,defaultShouldRevalidate:Se?!1:g})),Fe&&T.push({key:Ee,routeId:te.routeId,path:te.path,matches:se,match:De,controller:new AbortController})}),[Oe,T]}function fu(i,a,u){if(i.lazy)return!0;if(!i.loader)return!1;let c=a!=null&&a[i.id]!==void 0,f=u!=null&&u[i.id]!==void 0;return!c&&f?!1:typeof i.loader=="function"&&i.loader.hydrate===!0?!0:!c&&!f}function ph(i,a,u){let c=!a||u.route.id!==a.route.id,f=i[u.route.id]===void 0;return c||f}function zf(i,a){let u=i.route.path;return i.pathname!==a.pathname||u!=null&&u.endsWith("*")&&i.params["*"]!==a.params["*"]}function cf(i,a){if(i.route.shouldRevalidate){let u=i.route.shouldRevalidate(a);if(typeof u=="boolean")return u}return a.defaultShouldRevalidate}function ff(i,a,u,c,f){var h;let p;if(i){let x=c[i];ve(x,"No route found to patch children into: routeId = "+i),x.children||(x.children=[]),p=x.children}else p=u;let g=a.filter(x=>!p.some(_=>Of(x,_))),y=co(g,f,[i||"_","patch",String(((h=p)==null?void 0:h.length)||"0")],c);p.push(...y)}function Of(i,a){return"id"in i&&"id"in a&&i.id===a.id?!0:i.index===a.index&&i.path===a.path&&i.caseSensitive===a.caseSensitive?(!i.children||i.children.length===0)&&(!a.children||a.children.length===0)?!0:i.children.every((u,c)=>{var f;return(f=a.children)==null?void 0:f.some(h=>Of(u,h))}):!1}async function hh(i,a,u){if(!i.lazy)return;let c=await i.lazy();if(!i.lazy)return;let f=u[i.id];ve(f,"No route found in manifest");let h={};for(let p in c){let y=f[p]!==void 0&&p!=="hasErrorBoundary";Gr(!y,'Route "'+f.id+'" has a static property "'+p+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+p+'" will be ignored.')),!y&&!Ip.has(p)&&(h[p]=c[p])}Object.assign(f,h),Object.assign(f,Qe({},a(f),{lazy:void 0}))}async function mh(i){let{matches:a}=i,u=a.filter(f=>f.shouldLoad);return(await Promise.all(u.map(f=>f.resolve()))).reduce((f,h,p)=>Object.assign(f,{[u[p].route.id]:h}),{})}async function vh(i,a,u,c,f,h,p,g,y,x){let _=h.map(I=>I.route.lazy?hh(I.route,y,g):void 0),C=h.map((I,W)=>{let V=_[W],U=f.some($=>$.route.id===I.route.id);return Qe({},I,{shouldLoad:U,resolve:async $=>($&&c.method==="GET"&&(I.route.lazy||I.route.loader)&&(U=!0),U?yh(a,c,I,V,$,x):Promise.resolve({type:ze.data,result:void 0}))})}),D=await i({matches:C,request:c,params:h[0].params,fetcherKey:p,context:x});try{await Promise.all(_)}catch{}return D}async function yh(i,a,u,c,f,h){let p,g,y=x=>{let _,C=new Promise((W,V)=>_=V);g=()=>_(),a.signal.addEventListener("abort",g);let D=W=>typeof x!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+i+'" [routeId: '+u.route.id+"]"))):x({request:a,params:u.params,context:h},...W!==void 0?[W]:[]),I=(async()=>{try{return{type:"data",result:await(f?f(V=>D(V)):D())}}catch(W){return{type:"error",result:W}}})();return Promise.race([I,C])};try{let x=u.route[i];if(c)if(x){let _,[C]=await Promise.all([y(x).catch(D=>{_=D}),c]);if(_!==void 0)throw _;p=C}else if(await c,x=u.route[i],x)p=await y(x);else if(i==="action"){let _=new URL(a.url),C=_.pathname+_.search;throw Ct(405,{method:a.method,pathname:C,routeId:u.route.id})}else return{type:ze.data,result:void 0};else if(x)p=await y(x);else{let _=new URL(a.url),C=_.pathname+_.search;throw Ct(404,{pathname:C})}ve(p.result!==void 0,"You defined "+(i==="action"?"an action":"a loader")+" for route "+('"'+u.route.id+"\" but didn't return anything from your `"+i+"` ")+"function. Please return a value or `null`.")}catch(x){return{type:ze.error,result:x}}finally{g&&a.signal.removeEventListener("abort",g)}return p}async function gh(i){let{result:a,type:u}=i;if(jf(a)){let C;try{let D=a.headers.get("Content-Type");D&&/\bapplication\/json\b/.test(D)?a.body==null?C=null:C=await a.json():C=await a.text()}catch(D){return{type:ze.error,error:D}}return u===ze.error?{type:ze.error,error:new su(a.status,a.statusText,C),statusCode:a.status,headers:a.headers}:{type:ze.data,data:C,statusCode:a.status,headers:a.headers}}if(u===ze.error){if(gf(a)){var c,f;if(a.data instanceof Error){var h,p;return{type:ze.error,error:a.data,statusCode:(h=a.init)==null?void 0:h.status,headers:(p=a.init)!=null&&p.headers?new Headers(a.init.headers):void 0}}return{type:ze.error,error:new su(((c=a.init)==null?void 0:c.status)||500,void 0,a.data),statusCode:Wl(a)?a.status:void 0,headers:(f=a.init)!=null&&f.headers?new Headers(a.init.headers):void 0}}return{type:ze.error,error:a,statusCode:Wl(a)?a.status:void 0}}if(xh(a)){var g,y;return{type:ze.deferred,deferredData:a,statusCode:(g=a.init)==null?void 0:g.status,headers:((y=a.init)==null?void 0:y.headers)&&new Headers(a.init.headers)}}if(gf(a)){var x,_;return{type:ze.data,data:a.data,statusCode:(x=a.init)==null?void 0:x.status,headers:(_=a.init)!=null&&_.headers?new Headers(a.init.headers):void 0}}return{type:ze.data,data:a}}function wh(i,a,u,c,f,h){let p=i.headers.get("Location");if(ve(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!gu.test(p)){let g=c.slice(0,c.findIndex(y=>y.route.id===u)+1);p=cu(new URL(a.url),g,f,!0,p,h),i.headers.set("Location",p)}return i}function df(i,a,u){if(gu.test(i)){let c=i,f=c.startsWith("//")?new URL(a.protocol+c):new URL(c),h=At(f.pathname,u)!=null;if(f.origin===a.origin&&h)return f.pathname+f.search+f.hash}return i}function Xr(i,a,u,c){let f=i.createURL(Ff(a)).toString(),h={signal:u};if(c&&Gt(c.formMethod)){let{formMethod:p,formEncType:g}=c;h.method=p.toUpperCase(),g==="application/json"?(h.headers=new Headers({"Content-Type":g}),h.body=JSON.stringify(c.json)):g==="text/plain"?h.body=c.text:g==="application/x-www-form-urlencoded"&&c.formData?h.body=du(c.formData):h.body=c.formData}return new Request(f,h)}function du(i){let a=new URLSearchParams;for(let[u,c]of i.entries())a.append(u,typeof c=="string"?c:c.name);return a}function pf(i){let a=new FormData;for(let[u,c]of i.entries())a.append(u,c);return a}function Sh(i,a,u,c,f){let h={},p=null,g,y=!1,x={},_=u&&Dt(u[1])?u[1].error:void 0;return i.forEach(C=>{if(!(C.route.id in a))return;let D=C.route.id,I=a[D];if(ve(!yr(I),"Cannot handle redirect results in processLoaderData"),Dt(I)){let W=I.error;_!==void 0&&(W=_,_=void 0),p=p||{};{let V=vr(i,D);p[V.route.id]==null&&(p[V.route.id]=W)}h[D]=void 0,y||(y=!0,g=Wl(I.error)?I.error.status:500),I.headers&&(x[D]=I.headers)}else Yn(I)?(c.set(D,I.deferredData),h[D]=I.deferredData.data,I.statusCode!=null&&I.statusCode!==200&&!y&&(g=I.statusCode),I.headers&&(x[D]=I.headers)):(h[D]=I.data,I.statusCode&&I.statusCode!==200&&!y&&(g=I.statusCode),I.headers&&(x[D]=I.headers))}),_!==void 0&&u&&(p={[u[0]]:_},h[u[0]]=void 0),{loaderData:h,errors:p,statusCode:g||200,loaderHeaders:x}}function hf(i,a,u,c,f,h,p){let{loaderData:g,errors:y}=Sh(a,u,c,p);return f.forEach(x=>{let{key:_,match:C,controller:D}=x,I=h[_];if(ve(I,"Did not find corresponding fetcher result"),!(D&&D.signal.aborted))if(Dt(I)){let W=vr(i.matches,C==null?void 0:C.route.id);y&&y[W.route.id]||(y=Qe({},y,{[W.route.id]:I.error})),i.fetchers.delete(_)}else if(yr(I))ve(!1,"Unhandled fetcher revalidation redirect");else if(Yn(I))ve(!1,"Unhandled fetcher deferred data");else{let W=Kn(I.data);i.fetchers.set(_,W)}}),{loaderData:g,errors:y}}function mf(i,a,u,c){let f=Qe({},a);for(let h of u){let p=h.route.id;if(a.hasOwnProperty(p)?a[p]!==void 0&&(f[p]=a[p]):i[p]!==void 0&&h.route.loader&&(f[p]=i[p]),c&&c.hasOwnProperty(p))break}return f}function vf(i){return i?Dt(i[1])?{actionData:{}}:{actionData:{[i[0]]:i[1].data}}:{}}function vr(i,a){return(a?i.slice(0,i.findIndex(c=>c.route.id===a)+1):[...i]).reverse().find(c=>c.route.hasErrorBoundary===!0)||i[0]}function yf(i){let a=i.length===1?i[0]:i.find(u=>u.index||!u.path||u.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function Ct(i,a){let{pathname:u,routeId:c,method:f,type:h,message:p}=a===void 0?{}:a,g="Unknown Server Error",y="Unknown @remix-run/router error";return i===400?(g="Bad Request",f&&u&&c?y="You made a "+f+' request to "'+u+'" but '+('did not provide a `loader` for route "'+c+'", ')+"so there is no way to handle the request.":h==="defer-action"?y="defer() is not supported in actions":h==="invalid-body"&&(y="Unable to encode submission body")):i===403?(g="Forbidden",y='Route "'+c+'" does not match URL "'+u+'"'):i===404?(g="Not Found",y='No route matches URL "'+u+'"'):i===405&&(g="Method Not Allowed",f&&u&&c?y="You made a "+f.toUpperCase()+' request to "'+u+'" but '+('did not provide an `action` for route "'+c+'", ')+"so there is no way to handle the request.":f&&(y='Invalid request method "'+f.toUpperCase()+'"')),new su(i||500,g,new Error(y),!0)}function io(i){let a=Object.entries(i);for(let u=a.length-1;u>=0;u--){let[c,f]=a[u];if(yr(f))return{key:c,result:f}}}function Ff(i){let a=typeof i=="string"?Gn(i):i;return Xn(Qe({},a,{hash:""}))}function Eh(i,a){return i.pathname!==a.pathname||i.search!==a.search?!1:i.hash===""?a.hash!=="":i.hash===a.hash?!0:a.hash!==""}function kh(i){return jf(i.result)&&uh.has(i.result.status)}function Yn(i){return i.type===ze.deferred}function Dt(i){return i.type===ze.error}function yr(i){return(i&&i.type)===ze.redirect}function gf(i){return typeof i=="object"&&i!=null&&"type"in i&&"data"in i&&"init"in i&&i.type==="DataWithResponseInit"}function xh(i){let a=i;return a&&typeof a=="object"&&typeof a.data=="object"&&typeof a.subscribe=="function"&&typeof a.cancel=="function"&&typeof a.resolveData=="function"}function jf(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function Ch(i){return ah.has(i.toLowerCase())}function Gt(i){return ih.has(i.toLowerCase())}async function Ph(i,a,u,c,f){let h=Object.entries(a);for(let p=0;p<h.length;p++){let[g,y]=h[p],x=i.find(D=>(D==null?void 0:D.route.id)===g);if(!x)continue;let _=c.find(D=>D.route.id===x.route.id),C=_!=null&&!zf(_,x)&&(f&&f[x.route.id])!==void 0;Yn(y)&&C&&await wu(y,u,!1).then(D=>{D&&(a[g]=D)})}}async function _h(i,a,u){for(let c=0;c<u.length;c++){let{key:f,routeId:h,controller:p}=u[c],g=a[f];i.find(x=>(x==null?void 0:x.route.id)===h)&&Yn(g)&&(ve(p,"Expected an AbortController for revalidating fetcher deferred result"),await wu(g,p.signal,!0).then(x=>{x&&(a[f]=x)}))}}async function wu(i,a,u){if(u===void 0&&(u=!1),!await i.deferredData.resolveData(a)){if(u)try{return{type:ze.data,data:i.deferredData.unwrappedData}}catch(f){return{type:ze.error,error:f}}return{type:ze.data,data:i.deferredData.data}}}function Su(i){return new URLSearchParams(i).getAll("index").some(a=>a==="")}function Vl(i,a){let u=typeof a=="string"?Gn(a).search:a.search;if(i[i.length-1].route.index&&Su(u||""))return i[i.length-1];let c=Df(i);return c[c.length-1]}function wf(i){let{formMethod:a,formAction:u,formEncType:c,text:f,formData:h,json:p}=i;if(!(!a||!u||!c)){if(f!=null)return{formMethod:a,formAction:u,formEncType:c,formData:void 0,json:void 0,text:f};if(h!=null)return{formMethod:a,formAction:u,formEncType:c,formData:h,json:void 0,text:void 0};if(p!==void 0)return{formMethod:a,formAction:u,formEncType:c,formData:void 0,json:p,text:void 0}}}function iu(i,a){return a?{state:"loading",location:i,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Rh(i,a){return{state:"submitting",location:i,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function Al(i,a){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function Lh(i,a){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:a?a.data:void 0}}function Kn(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function Th(i,a){try{let u=i.sessionStorage.getItem(Mf);if(u){let c=JSON.parse(u);for(let[f,h]of Object.entries(c||{}))h&&Array.isArray(h)&&a.set(f,new Set(h||[]))}}catch{}}function Dh(i,a){if(a.size>0){let u={};for(let[c,f]of a)u[c]=[...f];try{i.sessionStorage.setItem(Mf,JSON.stringify(u))}catch(c){Gr(!1,"Failed to save applied view transitions in sessionStorage ("+c+").")}}}/**
51
+ * React Router v6.30.0
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */function po(){return po=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])}return i},po.apply(this,arguments)}const Ql=N.createContext(null),mo=N.createContext(null),ho=N.createContext(null),Jt=N.createContext(null),Eu=N.createContext(null),Sn=N.createContext({outlet:null,matches:[],isDataRoute:!1}),If=N.createContext(null);function Nh(i,a){let{relative:u}=a===void 0?{}:a;Kl()||ve(!1);let{basename:c,navigator:f}=N.useContext(Jt),{hash:h,pathname:p,search:g}=Yl(i,{relative:u}),y=p;return c!=="/"&&(y=p==="/"?c:un([c,p])),f.createHref({pathname:y,search:g,hash:h})}function Kl(){return N.useContext(Eu)!=null}function Jn(){return Kl()||ve(!1),N.useContext(Eu).location}function Uf(i){N.useContext(Jt).static||N.useLayoutEffect(i)}function Af(){let{isDataRoute:i}=N.useContext(Sn);return i?Xh():Mh()}function Mh(){Kl()||ve(!1);let i=N.useContext(Ql),{basename:a,future:u,navigator:c}=N.useContext(Jt),{matches:f}=N.useContext(Sn),{pathname:h}=Jn(),p=JSON.stringify(vu(f,u.v7_relativeSplatPath)),g=N.useRef(!1);return Uf(()=>{g.current=!0}),N.useCallback(function(x,_){if(_===void 0&&(_={}),!g.current)return;if(typeof x=="number"){c.go(x);return}let C=yu(x,JSON.parse(p),h,_.relative==="path");i==null&&a!=="/"&&(C.pathname=C.pathname==="/"?a:un([a,C.pathname])),(_.replace?c.replace:c.push)(C,_.state,_)},[a,c,p,h,i])}const zh=N.createContext(null);function Oh(i){let a=N.useContext(Sn).outlet;return a&&N.createElement(zh.Provider,{value:i},a)}function Yl(i,a){let{relative:u}=a===void 0?{}:a,{future:c}=N.useContext(Jt),{matches:f}=N.useContext(Sn),{pathname:h}=Jn(),p=JSON.stringify(vu(f,c.v7_relativeSplatPath));return N.useMemo(()=>yu(i,JSON.parse(p),h,u==="path"),[i,p,h,u])}function Fh(i,a,u,c){Kl()||ve(!1);let{navigator:f,static:h}=N.useContext(Jt),{matches:p}=N.useContext(Sn),g=p[p.length-1],y=g?g.params:{};g&&g.pathname;let x=g?g.pathnameBase:"/";g&&g.route;let _=Jn(),C;C=_;let D=C.pathname||"/",I=D;if(x!=="/"){let U=x.replace(/^\//,"").split("/");I="/"+D.replace(/^\//,"").split("/").slice(U.length).join("/")}let W=!h&&u&&u.matches&&u.matches.length>0?u.matches:mr(i,{pathname:I});return Bh(W&&W.map(U=>Object.assign({},U,{params:Object.assign({},y,U.params),pathname:un([x,f.encodeLocation?f.encodeLocation(U.pathname).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?x:un([x,f.encodeLocation?f.encodeLocation(U.pathnameBase).pathname:U.pathnameBase])})),p,u,c)}function jh(){let i=Kh(),a=Wl(i)?i.status+" "+i.statusText:i instanceof Error?i.message:JSON.stringify(i),u=i instanceof Error?i.stack:null,f={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},a),u?N.createElement("pre",{style:f},u):null,null)}const Ih=N.createElement(jh,null);class Uh extends N.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,u){return u.location!==a.location||u.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:u.error,location:u.location,revalidation:a.revalidation||u.revalidation}}componentDidCatch(a,u){console.error("React Router caught the following error during render",a,u)}render(){return this.state.error!==void 0?N.createElement(Sn.Provider,{value:this.props.routeContext},N.createElement(If.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ah(i){let{routeContext:a,match:u,children:c}=i,f=N.useContext(Ql);return f&&f.static&&f.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=u.route.id),N.createElement(Sn.Provider,{value:a},c)}function Bh(i,a,u,c){var f;if(a===void 0&&(a=[]),u===void 0&&(u=null),c===void 0&&(c=null),i==null){var h;if(!u)return null;if(u.errors)i=u.matches;else if((h=c)!=null&&h.v7_partialHydration&&a.length===0&&!u.initialized&&u.matches.length>0)i=u.matches;else return null}let p=i,g=(f=u)==null?void 0:f.errors;if(g!=null){let _=p.findIndex(C=>C.route.id&&(g==null?void 0:g[C.route.id])!==void 0);_>=0||ve(!1),p=p.slice(0,Math.min(p.length,_+1))}let y=!1,x=-1;if(u&&c&&c.v7_partialHydration)for(let _=0;_<p.length;_++){let C=p[_];if((C.route.HydrateFallback||C.route.hydrateFallbackElement)&&(x=_),C.route.id){let{loaderData:D,errors:I}=u,W=C.route.loader&&D[C.route.id]===void 0&&(!I||I[C.route.id]===void 0);if(C.route.lazy||W){y=!0,x>=0?p=p.slice(0,x+1):p=[p[0]];break}}}return p.reduceRight((_,C,D)=>{let I,W=!1,V=null,U=null;u&&(I=g&&C.route.id?g[C.route.id]:void 0,V=C.route.errorElement||Ih,y&&(x<0&&D===0?(Gh("route-fallback"),W=!0,U=null):x===D&&(W=!0,U=C.route.hydrateFallbackElement||null)));let fe=a.concat(p.slice(0,D+1)),$=()=>{let ae;return I?ae=V:W?ae=U:C.route.Component?ae=N.createElement(C.route.Component,null):C.route.element?ae=C.route.element:ae=_,N.createElement(Ah,{match:C,routeContext:{outlet:_,matches:fe,isDataRoute:u!=null},children:ae})};return u&&(C.route.ErrorBoundary||C.route.errorElement||D===0)?N.createElement(Uh,{location:u.location,revalidation:u.revalidation,component:V,error:I,children:$(),routeContext:{outlet:null,matches:fe,isDataRoute:!0}}):$()},null)}var Bf=function(i){return i.UseBlocker="useBlocker",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i}(Bf||{}),Vf=function(i){return i.UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i}(Vf||{});function Vh(i){let a=N.useContext(Ql);return a||ve(!1),a}function ku(i){let a=N.useContext(mo);return a||ve(!1),a}function Hh(i){let a=N.useContext(Sn);return a||ve(!1),a}function xu(i){let a=Hh(),u=a.matches[a.matches.length-1];return u.route.id||ve(!1),u.route.id}function Wh(){return xu()}function $h(){return ku().navigation}function Qh(){let{matches:i,loaderData:a}=ku();return N.useMemo(()=>i.map(u=>Rf(u,a)),[i,a])}function Kh(){var i;let a=N.useContext(If),u=ku(Vf.UseRouteError),c=xu();return a!==void 0?a:(i=u.errors)==null?void 0:i[c]}function Yh(){let i=N.useContext(ho);return i==null?void 0:i._data}function Am(){let i=N.useContext(ho);return i==null?void 0:i._error}function Xh(){let{router:i}=Vh(Bf.UseNavigateStable),a=xu(),u=N.useRef(!1);return Uf(()=>{u.current=!0}),N.useCallback(function(f,h){h===void 0&&(h={}),u.current&&(typeof f=="number"?i.navigate(f):i.navigate(f,po({fromRouteId:a},h)))},[i,a])}const Sf={};function Gh(i,a,u){Sf[i]||(Sf[i]=!0)}function Jh(i,a){i==null||i.v7_startTransition,(i==null?void 0:i.v7_relativeSplatPath)===void 0&&(!a||a.v7_relativeSplatPath),a&&(a.v7_fetcherPersist,a.v7_normalizeFormMethod,a.v7_partialHydration,a.v7_skipActionErrorRevalidation)}function Bm(i){return Oh(i.context)}function Zh(i){let{basename:a="/",children:u=null,location:c,navigationType:f=be.Pop,navigator:h,static:p=!1,future:g}=i;Kl()&&ve(!1);let y=a.replace(/^\/*/,"/"),x=N.useMemo(()=>({basename:y,navigator:h,static:p,future:po({v7_relativeSplatPath:!1},g)}),[y,g,h,p]);typeof c=="string"&&(c=Gn(c));let{pathname:_="/",search:C="",hash:D="",state:I=null,key:W="default"}=c,V=N.useMemo(()=>{let U=At(_,y);return U==null?null:{location:{pathname:U,search:C,hash:D,state:I,key:W},navigationType:f}},[y,_,C,D,I,W,f]);return V==null?null:N.createElement(Jt.Provider,{value:x},N.createElement(Eu.Provider,{children:u,value:V}))}function Vm(i){let{children:a,errorElement:u,resolve:c}=i;return N.createElement(bh,{resolve:c,errorElement:u},N.createElement(em,null,a))}var Ut=function(i){return i[i.pending=0]="pending",i[i.success=1]="success",i[i.error=2]="error",i}(Ut||{});const qh=new Promise(()=>{});class bh extends N.Component{constructor(a){super(a),this.state={error:null}}static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a,u){console.error("<Await> caught the following error during render",a,u)}render(){let{children:a,errorElement:u,resolve:c}=this.props,f=null,h=Ut.pending;if(!(c instanceof Promise))h=Ut.success,f=Promise.resolve(),Object.defineProperty(f,"_tracked",{get:()=>!0}),Object.defineProperty(f,"_data",{get:()=>c});else if(this.state.error){h=Ut.error;let p=this.state.error;f=Promise.reject().catch(()=>{}),Object.defineProperty(f,"_tracked",{get:()=>!0}),Object.defineProperty(f,"_error",{get:()=>p})}else c._tracked?(f=c,h="_error"in f?Ut.error:"_data"in f?Ut.success:Ut.pending):(h=Ut.pending,Object.defineProperty(c,"_tracked",{get:()=>!0}),f=c.then(p=>Object.defineProperty(c,"_data",{get:()=>p}),p=>Object.defineProperty(c,"_error",{get:()=>p})));if(h===Ut.error&&f._error instanceof uu)throw qh;if(h===Ut.error&&!u)throw f._error;if(h===Ut.error)return N.createElement(ho.Provider,{value:f,children:u});if(h===Ut.success)return N.createElement(ho.Provider,{value:f,children:a});throw f}}function em(i){let{children:a}=i,u=Yh(),c=typeof a=="function"?a(u):a;return N.createElement(N.Fragment,null,c)}function Hm(i){let a={hasErrorBoundary:i.ErrorBoundary!=null||i.errorElement!=null};return i.Component&&Object.assign(a,{element:N.createElement(i.Component),Component:void 0}),i.HydrateFallback&&Object.assign(a,{hydrateFallbackElement:N.createElement(i.HydrateFallback),HydrateFallback:void 0}),i.ErrorBoundary&&Object.assign(a,{errorElement:N.createElement(i.ErrorBoundary),ErrorBoundary:void 0}),a}/**
60
+ * React Router DOM v6.30.0
61
+ *
62
+ * Copyright (c) Remix Software Inc.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE.md file in the root directory of this source tree.
66
+ *
67
+ * @license MIT
68
+ */function gr(){return gr=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])}return i},gr.apply(this,arguments)}function Cu(i,a){if(i==null)return{};var u={},c=Object.keys(i),f,h;for(h=0;h<c.length;h++)f=c[h],!(a.indexOf(f)>=0)&&(u[f]=i[f]);return u}const so="get",ou="application/x-www-form-urlencoded";function vo(i){return i!=null&&typeof i.tagName=="string"}function tm(i){return vo(i)&&i.tagName.toLowerCase()==="button"}function nm(i){return vo(i)&&i.tagName.toLowerCase()==="form"}function rm(i){return vo(i)&&i.tagName.toLowerCase()==="input"}function lm(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function im(i,a){return i.button===0&&(!a||a==="_self")&&!lm(i)}function pu(i){return i===void 0&&(i=""),new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((a,u)=>{let c=i[u];return a.concat(Array.isArray(c)?c.map(f=>[u,f]):[[u,c]])},[]))}function om(i,a){let u=pu(i);return a&&a.forEach((c,f)=>{u.has(f)||a.getAll(f).forEach(h=>{u.append(f,h)})}),u}let oo=null;function am(){if(oo===null)try{new FormData(document.createElement("form"),0),oo=!1}catch{oo=!0}return oo}const um=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function au(i){return i!=null&&!um.has(i)?null:i}function sm(i,a){let u,c,f,h,p;if(nm(i)){let g=i.getAttribute("action");c=g?At(g,a):null,u=i.getAttribute("method")||so,f=au(i.getAttribute("enctype"))||ou,h=new FormData(i)}else if(tm(i)||rm(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=i.getAttribute("formaction")||g.getAttribute("action");if(c=y?At(y,a):null,u=i.getAttribute("formmethod")||g.getAttribute("method")||so,f=au(i.getAttribute("formenctype"))||au(g.getAttribute("enctype"))||ou,h=new FormData(g,i),!am()){let{name:x,type:_,value:C}=i;if(_==="image"){let D=x?x+".":"";h.append(D+"x","0"),h.append(D+"y","0")}else x&&h.append(x,C)}}else{if(vo(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=so,c=null,f=ou,p=i}return h&&f==="text/plain"&&(p=h,h=void 0),{action:c,method:u.toLowerCase(),encType:f,formData:h,body:p}}const cm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],dm=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],pm="6";try{window.__reactRouterVersion=pm}catch{}const Hf=N.createContext({isTransitioning:!1}),hm=N.createContext(new Map),mm="startTransition",Ef=Lp[mm],vm="flushSync",kf=Op[vm];function ym(i){Ef?Ef(i):i()}function Bl(i){kf?kf(i):i()}class gm{constructor(){this.status="pending",this.promise=new Promise((a,u)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",a(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",u(c))}})}}function Wm(i){let{fallbackElement:a,router:u,future:c}=i,[f,h]=N.useState(u.state),[p,g]=N.useState(),[y,x]=N.useState({isTransitioning:!1}),[_,C]=N.useState(),[D,I]=N.useState(),[W,V]=N.useState(),U=N.useRef(new Map),{v7_startTransition:fe}=c||{},$=N.useCallback(te=>{fe?ym(te):te()},[fe]),ae=N.useCallback((te,Ee)=>{let{deletedFetchers:se,flushSync:Ue,viewTransitionOpts:De}=Ee;te.fetchers.forEach((Ae,Ze)=>{Ae.data!==void 0&&U.current.set(Ze,Ae.data)}),se.forEach(Ae=>U.current.delete(Ae));let Fe=u.window==null||u.window.document==null||typeof u.window.document.startViewTransition!="function";if(!De||Fe){Ue?Bl(()=>h(te)):$(()=>h(te));return}if(Ue){Bl(()=>{D&&(_&&_.resolve(),D.skipTransition()),x({isTransitioning:!0,flushSync:!0,currentLocation:De.currentLocation,nextLocation:De.nextLocation})});let Ae=u.window.document.startViewTransition(()=>{Bl(()=>h(te))});Ae.finished.finally(()=>{Bl(()=>{C(void 0),I(void 0),g(void 0),x({isTransitioning:!1})})}),Bl(()=>I(Ae));return}D?(_&&_.resolve(),D.skipTransition(),V({state:te,currentLocation:De.currentLocation,nextLocation:De.nextLocation})):(g(te),x({isTransitioning:!0,flushSync:!1,currentLocation:De.currentLocation,nextLocation:De.nextLocation}))},[u.window,D,_,U,$]);N.useLayoutEffect(()=>u.subscribe(ae),[u,ae]),N.useEffect(()=>{y.isTransitioning&&!y.flushSync&&C(new gm)},[y]),N.useEffect(()=>{if(_&&p&&u.window){let te=p,Ee=_.promise,se=u.window.document.startViewTransition(async()=>{$(()=>h(te)),await Ee});se.finished.finally(()=>{C(void 0),I(void 0),g(void 0),x({isTransitioning:!1})}),I(se)}},[$,p,_,u.window]),N.useEffect(()=>{_&&p&&f.location.key===p.location.key&&_.resolve()},[_,D,f.location,p]),N.useEffect(()=>{!y.isTransitioning&&W&&(g(W.state),x({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}),V(void 0))},[y.isTransitioning,W]),N.useEffect(()=>{},[]);let le=N.useMemo(()=>({createHref:u.createHref,encodeLocation:u.encodeLocation,go:te=>u.navigate(te),push:(te,Ee,se)=>u.navigate(te,{state:Ee,preventScrollReset:se==null?void 0:se.preventScrollReset}),replace:(te,Ee,se)=>u.navigate(te,{replace:!0,state:Ee,preventScrollReset:se==null?void 0:se.preventScrollReset})}),[u]),Se=u.basename||"/",Oe=N.useMemo(()=>({router:u,navigator:le,static:!1,basename:Se}),[u,le,Se]),T=N.useMemo(()=>({v7_relativeSplatPath:u.future.v7_relativeSplatPath}),[u.future.v7_relativeSplatPath]);return N.useEffect(()=>Jh(c,u.future),[c,u.future]),N.createElement(N.Fragment,null,N.createElement(Ql.Provider,{value:Oe},N.createElement(mo.Provider,{value:f},N.createElement(hm.Provider,{value:U.current},N.createElement(Hf.Provider,{value:y},N.createElement(Zh,{basename:Se,location:f.location,navigationType:f.historyAction,navigator:le,future:T},f.initialized||u.future.v7_partialHydration?N.createElement(wm,{routes:u.routes,future:u.future,state:f}):a))))),null)}const wm=N.memo(Sm);function Sm(i){let{routes:a,future:u,state:c}=i;return Fh(a,void 0,c,u)}const Em=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",km=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xm=N.forwardRef(function(a,u){let{onClick:c,relative:f,reloadDocument:h,replace:p,state:g,target:y,to:x,preventScrollReset:_,viewTransition:C}=a,D=Cu(a,cm),{basename:I}=N.useContext(Jt),W,V=!1;if(typeof x=="string"&&km.test(x)&&(W=x,Em))try{let ae=new URL(window.location.href),le=x.startsWith("//")?new URL(ae.protocol+x):new URL(x),Se=At(le.pathname,I);le.origin===ae.origin&&Se!=null?x=Se+le.search+le.hash:V=!0}catch{}let U=Nh(x,{relative:f}),fe=Pm(x,{replace:p,state:g,target:y,preventScrollReset:_,relative:f,viewTransition:C});function $(ae){c&&c(ae),ae.defaultPrevented||fe(ae)}return N.createElement("a",gr({},D,{href:W||U,onClick:V||h?c:$,ref:u,target:y}))}),$m=N.forwardRef(function(a,u){let{"aria-current":c="page",caseSensitive:f=!1,className:h="",end:p=!1,style:g,to:y,viewTransition:x,children:_}=a,C=Cu(a,fm),D=Yl(y,{relative:C.relative}),I=Jn(),W=N.useContext(mo),{navigator:V,basename:U}=N.useContext(Jt),fe=W!=null&&Mm(D)&&x===!0,$=V.encodeLocation?V.encodeLocation(D).pathname:D.pathname,ae=I.pathname,le=W&&W.navigation&&W.navigation.location?W.navigation.location.pathname:null;f||(ae=ae.toLowerCase(),le=le?le.toLowerCase():null,$=$.toLowerCase()),le&&U&&(le=At(le,U)||le);const Se=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let Oe=ae===$||!p&&ae.startsWith($)&&ae.charAt(Se)==="/",T=le!=null&&(le===$||!p&&le.startsWith($)&&le.charAt($.length)==="/"),te={isActive:Oe,isPending:T,isTransitioning:fe},Ee=Oe?c:void 0,se;typeof h=="function"?se=h(te):se=[h,Oe?"active":null,T?"pending":null,fe?"transitioning":null].filter(Boolean).join(" ");let Ue=typeof g=="function"?g(te):g;return N.createElement(xm,gr({},C,{"aria-current":Ee,className:se,ref:u,style:Ue,to:y,viewTransition:x}),typeof _=="function"?_(te):_)}),Qm=N.forwardRef((i,a)=>{let{fetcherKey:u,navigate:c,reloadDocument:f,replace:h,state:p,method:g=so,action:y,onSubmit:x,relative:_,preventScrollReset:C,viewTransition:D}=i,I=Cu(i,dm),W=Tm(),V=Dm(y,{relative:_}),U=g.toLowerCase()==="get"?"get":"post",fe=$=>{if(x&&x($),$.defaultPrevented)return;$.preventDefault();let ae=$.nativeEvent.submitter,le=(ae==null?void 0:ae.getAttribute("formmethod"))||g;W(ae||$.currentTarget,{fetcherKey:u,method:le,navigate:c,replace:h,state:p,relative:_,preventScrollReset:C,viewTransition:D})};return N.createElement("form",gr({ref:a,method:U,action:V,onSubmit:f?x:fe},I))});var $l;(function(i){i.UseScrollRestoration="useScrollRestoration",i.UseSubmit="useSubmit",i.UseSubmitFetcher="useSubmitFetcher",i.UseFetcher="useFetcher",i.useViewTransitionState="useViewTransitionState"})($l||($l={}));var hu;(function(i){i.UseFetcher="useFetcher",i.UseFetchers="useFetchers",i.UseScrollRestoration="useScrollRestoration"})(hu||(hu={}));function Pu(i){let a=N.useContext(Ql);return a||ve(!1),a}function Cm(i){let a=N.useContext(mo);return a||ve(!1),a}function Pm(i,a){let{target:u,replace:c,state:f,preventScrollReset:h,relative:p,viewTransition:g}=a===void 0?{}:a,y=Af(),x=Jn(),_=Yl(i,{relative:p});return N.useCallback(C=>{if(im(C,u)){C.preventDefault();let D=c!==void 0?c:Xn(x)===Xn(_);y(i,{replace:D,state:f,preventScrollReset:h,relative:p,viewTransition:g})}},[x,y,_,c,f,u,i,h,p,g])}function Km(i){let a=N.useRef(pu(i)),u=N.useRef(!1),c=Jn(),f=N.useMemo(()=>om(c.search,u.current?null:a.current),[c.search]),h=Af(),p=N.useCallback((g,y)=>{const x=pu(typeof g=="function"?g(f):g);u.current=!0,h("?"+x,y)},[h,f]);return[f,p]}function _m(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Rm=0,Lm=()=>"__"+String(++Rm)+"__";function Tm(){let{router:i}=Pu($l.UseSubmit),{basename:a}=N.useContext(Jt),u=Wh();return N.useCallback(function(c,f){f===void 0&&(f={}),_m();let{action:h,method:p,encType:g,formData:y,body:x}=sm(c,a);if(f.navigate===!1){let _=f.fetcherKey||Lm();i.fetch(_,u,f.action||h,{preventScrollReset:f.preventScrollReset,formData:y,body:x,formMethod:f.method||p,formEncType:f.encType||g,flushSync:f.flushSync})}else i.navigate(f.action||h,{preventScrollReset:f.preventScrollReset,formData:y,body:x,formMethod:f.method||p,formEncType:f.encType||g,replace:f.replace,state:f.state,fromRouteId:u,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,a,u])}function Dm(i,a){let{relative:u}=a===void 0?{}:a,{basename:c}=N.useContext(Jt),f=N.useContext(Sn);f||ve(!1);let[h]=f.matches.slice(-1),p=gr({},Yl(i||".",{relative:u})),g=Jn();if(i==null){p.search=g.search;let y=new URLSearchParams(p.search),x=y.getAll("index");if(x.some(C=>C==="")){y.delete("index"),x.filter(D=>D).forEach(D=>y.append("index",D));let C=y.toString();p.search=C?"?"+C:""}}return(!i||i===".")&&h.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(p.pathname=p.pathname==="/"?c:un([c,p.pathname])),Xn(p)}const xf="react-router-scroll-positions";let ao={};function Ym(i){let{getKey:a,storageKey:u}=i===void 0?{}:i,{router:c}=Pu($l.UseScrollRestoration),{restoreScrollPosition:f,preventScrollReset:h}=Cm(hu.UseScrollRestoration),{basename:p}=N.useContext(Jt),g=Jn(),y=Qh(),x=$h();N.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Nm(N.useCallback(()=>{if(x.state==="idle"){let _=(a?a(g,y):null)||g.key;ao[_]=window.scrollY}try{sessionStorage.setItem(u||xf,JSON.stringify(ao))}catch{}window.history.scrollRestoration="auto"},[u,a,x.state,g,y])),typeof document<"u"&&(N.useLayoutEffect(()=>{try{let _=sessionStorage.getItem(u||xf);_&&(ao=JSON.parse(_))}catch{}},[u]),N.useLayoutEffect(()=>{let _=a&&p!=="/"?(D,I)=>a(gr({},D,{pathname:At(D.pathname,p)||D.pathname}),I):a,C=c==null?void 0:c.enableScrollRestoration(ao,()=>window.scrollY,_);return()=>C&&C()},[c,p,a]),N.useLayoutEffect(()=>{if(f!==!1){if(typeof f=="number"){window.scrollTo(0,f);return}if(g.hash){let _=document.getElementById(decodeURIComponent(g.hash.slice(1)));if(_){_.scrollIntoView();return}}h!==!0&&window.scrollTo(0,0)}},[g,f,h]))}function Nm(i,a){let{capture:u}={};N.useEffect(()=>{let c=u!=null?{capture:u}:void 0;return window.addEventListener("pagehide",i,c),()=>{window.removeEventListener("pagehide",i,c)}},[i,u])}function Mm(i,a){a===void 0&&(a={});let u=N.useContext(Hf);u==null&&ve(!1);let{basename:c}=Pu($l.useViewTransitionState),f=Yl(i,{relative:a.relative});if(!u.isTransitioning)return!1;let h=At(u.currentLocation.pathname,c)||u.currentLocation.pathname,p=At(u.nextLocation.pathname,c)||u.nextLocation.pathname;return fo(f.pathname,p)!=null||fo(f.pathname,h)!=null}export{uu as A,jm as D,su as E,Qm as F,xm as L,$m as N,Bm as O,Wm as R,Om as a,Hm as b,Um as c,Mp as d,Qh as e,Ym as f,Fm as g,Im as h,Wl as i,zm as j,Kh as k,Ql as l,mr as m,mo as n,Vm as o,Gn as p,Am as q,N as r,Nh as s,Pf as t,Jn as u,Km as v};