@ailog/cli 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +12 -0
  3. package/README.md +115 -18
  4. package/bin/cli.js +9 -0
  5. package/dist/client/assets/index-BBTm7Mxn.js +160 -0
  6. package/dist/client/assets/index-x-B7u97h.css +1 -0
  7. package/dist/client/index.html +19 -0
  8. package/dist/index.d.ts +122 -0
  9. package/dist/index.js +681 -0
  10. package/dist/viewer/server.js +413 -0
  11. package/package.json +65 -45
  12. package/dist/bin/cli.js +0 -1980
  13. package/dist/standalone/.next/BUILD_ID +0 -1
  14. package/dist/standalone/.next/app-path-routes-manifest.json +0 -10
  15. package/dist/standalone/.next/build-manifest.json +0 -21
  16. package/dist/standalone/.next/package.json +0 -1
  17. package/dist/standalone/.next/prerender-manifest.json +0 -118
  18. package/dist/standalone/.next/required-server-files.json +0 -333
  19. package/dist/standalone/.next/routes-manifest.json +0 -102
  20. package/dist/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +0 -3
  21. package/dist/standalone/.next/server/app/_global-error/page/build-manifest.json +0 -18
  22. package/dist/standalone/.next/server/app/_global-error/page/next-font-manifest.json +0 -6
  23. package/dist/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +0 -1
  24. package/dist/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +0 -4
  25. package/dist/standalone/.next/server/app/_global-error/page.js +0 -11
  26. package/dist/standalone/.next/server/app/_global-error/page.js.map +0 -5
  27. package/dist/standalone/.next/server/app/_global-error/page.js.nft.json +0 -1
  28. package/dist/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +0 -2
  29. package/dist/standalone/.next/server/app/_global-error.html +0 -2
  30. package/dist/standalone/.next/server/app/_global-error.meta +0 -15
  31. package/dist/standalone/.next/server/app/_global-error.rsc +0 -13
  32. package/dist/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +0 -5
  33. package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +0 -13
  34. package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +0 -8
  35. package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +0 -4
  36. package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +0 -1
  37. package/dist/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +0 -3
  38. package/dist/standalone/.next/server/app/_not-found/page/build-manifest.json +0 -18
  39. package/dist/standalone/.next/server/app/_not-found/page/next-font-manifest.json +0 -12
  40. package/dist/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +0 -1
  41. package/dist/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +0 -4
  42. package/dist/standalone/.next/server/app/_not-found/page.js +0 -14
  43. package/dist/standalone/.next/server/app/_not-found/page.js.map +0 -5
  44. package/dist/standalone/.next/server/app/_not-found/page.js.nft.json +0 -1
  45. package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +0 -2
  46. package/dist/standalone/.next/server/app/_not-found.html +0 -1
  47. package/dist/standalone/.next/server/app/_not-found.meta +0 -16
  48. package/dist/standalone/.next/server/app/_not-found.rsc +0 -19
  49. package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +0 -19
  50. package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +0 -8
  51. package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +0 -10
  52. package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -5
  53. package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +0 -4
  54. package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +0 -2
  55. package/dist/standalone/.next/server/app/api/[[...route]]/route/app-paths-manifest.json +0 -3
  56. package/dist/standalone/.next/server/app/api/[[...route]]/route/build-manifest.json +0 -11
  57. package/dist/standalone/.next/server/app/api/[[...route]]/route/server-reference-manifest.json +0 -4
  58. package/dist/standalone/.next/server/app/api/[[...route]]/route.js +0 -7
  59. package/dist/standalone/.next/server/app/api/[[...route]]/route.js.map +0 -5
  60. package/dist/standalone/.next/server/app/api/[[...route]]/route.js.nft.json +0 -1
  61. package/dist/standalone/.next/server/app/api/[[...route]]/route_client-reference-manifest.js +0 -2
  62. package/dist/standalone/.next/server/app/apps/[appId]/page/app-paths-manifest.json +0 -3
  63. package/dist/standalone/.next/server/app/apps/[appId]/page/build-manifest.json +0 -18
  64. package/dist/standalone/.next/server/app/apps/[appId]/page/next-font-manifest.json +0 -12
  65. package/dist/standalone/.next/server/app/apps/[appId]/page/react-loadable-manifest.json +0 -1
  66. package/dist/standalone/.next/server/app/apps/[appId]/page/server-reference-manifest.json +0 -4
  67. package/dist/standalone/.next/server/app/apps/[appId]/page.js +0 -17
  68. package/dist/standalone/.next/server/app/apps/[appId]/page.js.map +0 -5
  69. package/dist/standalone/.next/server/app/apps/[appId]/page.js.nft.json +0 -1
  70. package/dist/standalone/.next/server/app/apps/[appId]/page_client-reference-manifest.js +0 -2
  71. package/dist/standalone/.next/server/app/apps/[appId]/settings/page/app-paths-manifest.json +0 -3
  72. package/dist/standalone/.next/server/app/apps/[appId]/settings/page/build-manifest.json +0 -18
  73. package/dist/standalone/.next/server/app/apps/[appId]/settings/page/next-font-manifest.json +0 -12
  74. package/dist/standalone/.next/server/app/apps/[appId]/settings/page/react-loadable-manifest.json +0 -1
  75. package/dist/standalone/.next/server/app/apps/[appId]/settings/page/server-reference-manifest.json +0 -4
  76. package/dist/standalone/.next/server/app/apps/[appId]/settings/page.js +0 -17
  77. package/dist/standalone/.next/server/app/apps/[appId]/settings/page.js.map +0 -5
  78. package/dist/standalone/.next/server/app/apps/[appId]/settings/page.js.nft.json +0 -1
  79. package/dist/standalone/.next/server/app/apps/[appId]/settings/page_client-reference-manifest.js +0 -2
  80. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page/app-paths-manifest.json +0 -3
  81. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page/build-manifest.json +0 -18
  82. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page/next-font-manifest.json +0 -12
  83. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page/react-loadable-manifest.json +0 -1
  84. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page/server-reference-manifest.json +0 -4
  85. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page.js +0 -17
  86. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page.js.map +0 -5
  87. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page.js.nft.json +0 -1
  88. package/dist/standalone/.next/server/app/apps/[appId]/threads/[threadId]/page_client-reference-manifest.js +0 -2
  89. package/dist/standalone/.next/server/app/favicon.ico/route/app-paths-manifest.json +0 -3
  90. package/dist/standalone/.next/server/app/favicon.ico/route/build-manifest.json +0 -11
  91. package/dist/standalone/.next/server/app/favicon.ico/route.js +0 -7
  92. package/dist/standalone/.next/server/app/favicon.ico/route.js.map +0 -5
  93. package/dist/standalone/.next/server/app/favicon.ico/route.js.nft.json +0 -1
  94. package/dist/standalone/.next/server/app/favicon.ico.body +0 -0
  95. package/dist/standalone/.next/server/app/favicon.ico.meta +0 -1
  96. package/dist/standalone/.next/server/app/index.html +0 -1
  97. package/dist/standalone/.next/server/app/index.meta +0 -14
  98. package/dist/standalone/.next/server/app/index.rsc +0 -26
  99. package/dist/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +0 -9
  100. package/dist/standalone/.next/server/app/index.segments/_full.segment.rsc +0 -26
  101. package/dist/standalone/.next/server/app/index.segments/_head.segment.rsc +0 -8
  102. package/dist/standalone/.next/server/app/index.segments/_index.segment.rsc +0 -10
  103. package/dist/standalone/.next/server/app/index.segments/_tree.segment.rsc +0 -5
  104. package/dist/standalone/.next/server/app/page/app-paths-manifest.json +0 -3
  105. package/dist/standalone/.next/server/app/page/build-manifest.json +0 -18
  106. package/dist/standalone/.next/server/app/page/next-font-manifest.json +0 -12
  107. package/dist/standalone/.next/server/app/page/react-loadable-manifest.json +0 -1
  108. package/dist/standalone/.next/server/app/page/server-reference-manifest.json +0 -4
  109. package/dist/standalone/.next/server/app/page.js +0 -16
  110. package/dist/standalone/.next/server/app/page.js.map +0 -5
  111. package/dist/standalone/.next/server/app/page.js.nft.json +0 -1
  112. package/dist/standalone/.next/server/app/page_client-reference-manifest.js +0 -2
  113. package/dist/standalone/.next/server/app-paths-manifest.json +0 -10
  114. package/dist/standalone/.next/server/chunks/32a5c_next_0375a1f1._.js +0 -17
  115. package/dist/standalone/.next/server/chunks/[root-of-the-server]__5f8f2b74._.js +0 -3
  116. package/dist/standalone/.next/server/chunks/[root-of-the-server]__7970807c._.js +0 -7
  117. package/dist/standalone/.next/server/chunks/[root-of-the-server]__a0f47697._.js +0 -28
  118. package/dist/standalone/.next/server/chunks/[root-of-the-server]__b89b5a39._.js +0 -3
  119. package/dist/standalone/.next/server/chunks/[turbopack]_runtime.js +0 -770
  120. package/dist/standalone/.next/server/chunks/apps_web__next-internal_server_app_api_[[___route]]_route_actions_ad756856.js +0 -3
  121. package/dist/standalone/.next/server/chunks/apps_web__next-internal_server_app_favicon_ico_route_actions_63c3b0d9.js +0 -3
  122. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_c1a879d9._.js +0 -4
  123. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_c1fdfc17._.js +0 -3
  124. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_client_components_9085e245._.js +0 -3
  125. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_client_components_builtin_forbidden_3bc2a141.js +0 -3
  126. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_client_components_builtin_global-error_4bb26d7f.js +0 -3
  127. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_client_components_builtin_unauthorized_5c95c9e3.js +0 -3
  128. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_esm_af731943._.js +0 -6
  129. package/dist/standalone/.next/server/chunks/ssr/32a5c_next_dist_esm_build_templates_app-page_5d311e9f.js +0 -4
  130. package/dist/standalone/.next/server/chunks/ssr/37f04__next-internal_server_app_apps_[appId]_threads_[threadId]_page_actions_0a164142.js +0 -3
  131. package/dist/standalone/.next/server/chunks/ssr/8eb43_sonner_dist_index_mjs_a249e53a._.js +0 -3
  132. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__15021a09._.js +0 -3
  133. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1764fab0._.js +0 -3
  134. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1d8f92d3._.js +0 -3
  135. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__277f3037._.js +0 -3
  136. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__379bd934._.js +0 -3
  137. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__42df4b63._.js +0 -3
  138. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__5064350d._.js +0 -3
  139. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__659dbfe7._.js +0 -4
  140. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__80ea63f6._.js +0 -4
  141. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__9f3ff72e._.js +0 -3
  142. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__b6cee269._.js +0 -3
  143. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__e55c02ca._.js +0 -3
  144. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__f7807403._.js +0 -3
  145. package/dist/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -770
  146. package/dist/standalone/.next/server/chunks/ssr/_1db4c18c._.js +0 -4
  147. package/dist/standalone/.next/server/chunks/ssr/_203f0b29._.js +0 -7
  148. package/dist/standalone/.next/server/chunks/ssr/_289820d0._.js +0 -3
  149. package/dist/standalone/.next/server/chunks/ssr/_442031f8._.js +0 -7
  150. package/dist/standalone/.next/server/chunks/ssr/_4b4df737._.js +0 -4
  151. package/dist/standalone/.next/server/chunks/ssr/_5066b883._.js +0 -4
  152. package/dist/standalone/.next/server/chunks/ssr/_70dfbe56._.js +0 -3
  153. package/dist/standalone/.next/server/chunks/ssr/_8c0bfb07._.js +0 -3
  154. package/dist/standalone/.next/server/chunks/ssr/_b00f40b3._.js +0 -3
  155. package/dist/standalone/.next/server/chunks/ssr/_d81226f8._.js +0 -4
  156. package/dist/standalone/.next/server/chunks/ssr/_e5c457a7._.js +0 -3
  157. package/dist/standalone/.next/server/chunks/ssr/_fce9eb14._.js +0 -6
  158. package/dist/standalone/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_e7650f86.js +0 -3
  159. package/dist/standalone/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_3df07a96.js +0 -3
  160. package/dist/standalone/.next/server/chunks/ssr/apps_web__next-internal_server_app_apps_[appId]_page_actions_3e495976.js +0 -3
  161. package/dist/standalone/.next/server/chunks/ssr/apps_web__next-internal_server_app_apps_[appId]_settings_page_actions_e98061b7.js +0 -3
  162. package/dist/standalone/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_a0623280.js +0 -3
  163. package/dist/standalone/.next/server/chunks/ssr/apps_web_app_apps_[appId]_layout_tsx_4c06ec7f._.js +0 -3
  164. package/dist/standalone/.next/server/chunks/ssr/apps_web_app_apps_[appId]_page_tsx_15e4fa55._.js +0 -3
  165. package/dist/standalone/.next/server/chunks/ssr/apps_web_app_apps_[appId]_settings_page_tsx_c072e295._.js +0 -3
  166. package/dist/standalone/.next/server/chunks/ssr/apps_web_app_apps_[appId]_threads_[threadId]_page_tsx_7dd7d764._.js +0 -39
  167. package/dist/standalone/.next/server/chunks/ssr/apps_web_app_e92ffe16._.js +0 -3
  168. package/dist/standalone/.next/server/chunks/ssr/apps_web_app_page_tsx_66bf978b._.js +0 -3
  169. package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_9822aec4._.js +0 -3
  170. package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_alert-dialog_tsx_9188904e._.js +0 -9
  171. package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_c8132c43._.js +0 -9
  172. package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_card_tsx_2c0359d4._.js +0 -3
  173. package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_cbe5b2b9._.js +0 -3
  174. package/dist/standalone/.next/server/chunks/ssr/apps_web_components_ui_cc5b288d._.js +0 -3
  175. package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_2e4b1ed0._.js +0 -3
  176. package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_4bd60410._.js +0 -6
  177. package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_930fb349._.js +0 -3
  178. package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_d2520564._.js +0 -3
  179. package/dist/standalone/.next/server/functions-config-manifest.json +0 -4
  180. package/dist/standalone/.next/server/middleware-build-manifest.js +0 -22
  181. package/dist/standalone/.next/server/middleware-manifest.json +0 -6
  182. package/dist/standalone/.next/server/next-font-manifest.js +0 -1
  183. package/dist/standalone/.next/server/next-font-manifest.json +0 -32
  184. package/dist/standalone/.next/server/pages/404.html +0 -1
  185. package/dist/standalone/.next/server/pages/500.html +0 -2
  186. package/dist/standalone/.next/server/pages-manifest.json +0 -4
  187. package/dist/standalone/.next/server/server-reference-manifest.js +0 -1
  188. package/dist/standalone/.next/server/server-reference-manifest.json +0 -5
  189. package/dist/standalone/.next/static/chunks/001d990e82d317e7.js +0 -1
  190. package/dist/standalone/.next/static/chunks/26aa014f0977bc3a.js +0 -4
  191. package/dist/standalone/.next/static/chunks/3468e573c929d9d3.js +0 -1
  192. package/dist/standalone/.next/static/chunks/3815bbfffdbb534d.js +0 -1
  193. package/dist/standalone/.next/static/chunks/3c1f17874396f056.js +0 -1
  194. package/dist/standalone/.next/static/chunks/5521918d58602ba4.css +0 -4
  195. package/dist/standalone/.next/static/chunks/61ce30fe62669a20.js +0 -1
  196. package/dist/standalone/.next/static/chunks/6a4ccd90d00f8188.js +0 -2
  197. package/dist/standalone/.next/static/chunks/6de1dc14b2653311.js +0 -2
  198. package/dist/standalone/.next/static/chunks/6ee1158d12a0c765.js +0 -1
  199. package/dist/standalone/.next/static/chunks/8bd29684c211a1e1.js +0 -37
  200. package/dist/standalone/.next/static/chunks/8eae4355671b488f.js +0 -1
  201. package/dist/standalone/.next/static/chunks/8ef339e3fd7a82de.js +0 -1
  202. package/dist/standalone/.next/static/chunks/a6dad97d9634a72d.js +0 -1
  203. package/dist/standalone/.next/static/chunks/ab703521ea4f2141.js +0 -1
  204. package/dist/standalone/.next/static/chunks/b337946fdc3c17b3.js +0 -1
  205. package/dist/standalone/.next/static/chunks/b46c6c394477214a.js +0 -1
  206. package/dist/standalone/.next/static/chunks/b8bc41a0b408222e.js +0 -5
  207. package/dist/standalone/.next/static/chunks/bbf59b867827b224.js +0 -7
  208. package/dist/standalone/.next/static/chunks/c416de6f3efbbe15.js +0 -7
  209. package/dist/standalone/.next/static/chunks/d70eda393c3966c3.js +0 -1
  210. package/dist/standalone/.next/static/chunks/f8e57df1af00077e.js +0 -5
  211. package/dist/standalone/.next/static/chunks/turbopack-e09224df42d3769a.js +0 -3
  212. package/dist/standalone/.next/static/media/13bf9871fe164e7f-s.f2220059.woff2 +0 -0
  213. package/dist/standalone/.next/static/media/3fe682a82f50d426-s.23358719.woff2 +0 -0
  214. package/dist/standalone/.next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
  215. package/dist/standalone/.next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2 +0 -0
  216. package/dist/standalone/.next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
  217. package/dist/standalone/.next/static/media/71b036adf157cdcf-s.bd5f4d11.woff2 +0 -0
  218. package/dist/standalone/.next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
  219. package/dist/standalone/.next/static/media/89b21bb081cb7469-s.51c18f09.woff2 +0 -0
  220. package/dist/standalone/.next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
  221. package/dist/standalone/.next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
  222. package/dist/standalone/.next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
  223. package/dist/standalone/.next/static/media/cc545e633e20c56d-s.f6f1950f.woff2 +0 -0
  224. package/dist/standalone/.next/static/media/favicon.0b3bf435.ico +0 -0
  225. package/dist/standalone/.next/static/p6HYmiCvyNSugdZfDkX0R/_buildManifest.js +0 -11
  226. package/dist/standalone/.next/static/p6HYmiCvyNSugdZfDkX0R/_clientMiddlewareManifest.json +0 -1
  227. package/dist/standalone/.next/static/p6HYmiCvyNSugdZfDkX0R/_ssgManifest.js +0 -1
  228. package/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  229. package/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  230. package/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  231. package/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  232. package/dist/standalone/components/apps-table.tsx +0 -274
  233. package/dist/standalone/components.json +0 -24
  234. package/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  235. package/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  236. package/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  237. package/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  238. package/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  239. package/dist/standalone/dist/standalone/components.json +0 -24
  240. package/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  241. package/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  242. package/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  243. package/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  244. package/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  245. package/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  246. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  247. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  248. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  249. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  250. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  251. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  252. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  253. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  254. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  255. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  256. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  257. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  258. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  259. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  260. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  261. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  262. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  263. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  264. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  265. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  266. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  267. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  268. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  269. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  270. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  271. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  272. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  273. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  274. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  275. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  276. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  277. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  278. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  279. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  280. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  281. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  282. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  283. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  284. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  285. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  286. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  287. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  288. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  289. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  290. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  291. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  292. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  293. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  294. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -66
  295. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  296. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  297. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  298. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  299. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  300. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  301. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  302. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  303. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  304. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -66
  305. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  306. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -66
  307. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  308. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -66
  309. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  310. package/dist/standalone/dist/standalone/dist/standalone/package.json +0 -66
  311. package/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  312. package/dist/standalone/dist/standalone/package.json +0 -66
  313. package/dist/standalone/dist/standalone/tsconfig.json +0 -34
  314. package/dist/standalone/package.json +0 -66
  315. package/dist/standalone/public/file.svg +0 -1
  316. package/dist/standalone/public/globe.svg +0 -1
  317. package/dist/standalone/public/next.svg +0 -1
  318. package/dist/standalone/public/vercel.svg +0 -1
  319. package/dist/standalone/public/window.svg +0 -1
  320. package/dist/standalone/server.js +0 -44
  321. package/dist/standalone/tsconfig.json +0 -34
@@ -0,0 +1,160 @@
1
+ (function(){const h=document.createElement("link").relList;if(h&&h.supports&&h.supports("modulepreload"))return;for(const x of document.querySelectorAll('link[rel="modulepreload"]'))o(x);new MutationObserver(x=>{for(const E of x)if(E.type==="childList")for(const D of E.addedNodes)D.tagName==="LINK"&&D.rel==="modulepreload"&&o(D)}).observe(document,{childList:!0,subtree:!0});function b(x){const E={};return x.integrity&&(E.integrity=x.integrity),x.referrerPolicy&&(E.referrerPolicy=x.referrerPolicy),x.crossOrigin==="use-credentials"?E.credentials="include":x.crossOrigin==="anonymous"?E.credentials="omit":E.credentials="same-origin",E}function o(x){if(x.ep)return;x.ep=!0;const E=b(x);fetch(x.href,E)}})();function U0(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var xf={exports:{}},Yn={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 Bd;function C0(){if(Bd)return Yn;Bd=1;var f=Symbol.for("react.transitional.element"),h=Symbol.for("react.fragment");function b(o,x,E){var D=null;if(E!==void 0&&(D=""+E),x.key!==void 0&&(D=""+x.key),"key"in x){E={};for(var N in x)N!=="key"&&(E[N]=x[N])}else E=x;return x=E.ref,{$$typeof:f,type:o,key:D,ref:x!==void 0?x:null,props:E}}return Yn.Fragment=h,Yn.jsx=b,Yn.jsxs=b,Yn}var Yd;function R0(){return Yd||(Yd=1,xf.exports=C0()),xf.exports}var c=R0(),Nf={exports:{}},Gn={},zf={exports:{}},Tf={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 Gd;function H0(){return Gd||(Gd=1,(function(f){function h(A,C){var K=A.length;A.push(C);l:for(;0<K;){var ml=K-1>>>1,fl=A[ml];if(0<x(fl,C))A[ml]=C,A[K]=fl,K=ml;else break l}}function b(A){return A.length===0?null:A[0]}function o(A){if(A.length===0)return null;var C=A[0],K=A.pop();if(K!==C){A[0]=K;l:for(var ml=0,fl=A.length,d=fl>>>1;ml<d;){var T=2*(ml+1)-1,H=A[T],B=T+1,J=A[B];if(0>x(H,K))B<fl&&0>x(J,H)?(A[ml]=J,A[B]=K,ml=B):(A[ml]=H,A[T]=K,ml=T);else if(B<fl&&0>x(J,K))A[ml]=J,A[B]=K,ml=B;else break l}}return C}function x(A,C){var K=A.sortIndex-C.sortIndex;return K!==0?K:A.id-C.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var E=performance;f.unstable_now=function(){return E.now()}}else{var D=Date,N=D.now();f.unstable_now=function(){return D.now()-N}}var v=[],y=[],U=1,R=null,L=3,Z=!1,k=!1,I=!1,at=!1,Ul=typeof setTimeout=="function"?setTimeout:null,nt=typeof clearTimeout=="function"?clearTimeout:null,jl=typeof setImmediate<"u"?setImmediate:null;function Ml(A){for(var C=b(y);C!==null;){if(C.callback===null)o(y);else if(C.startTime<=A)o(y),C.sortIndex=C.expirationTime,h(v,C);else break;C=b(y)}}function Cl(A){if(I=!1,Ml(A),!k)if(b(v)!==null)k=!0,Rl||(Rl=!0,Jl());else{var C=b(y);C!==null&&it(Cl,C.startTime-A)}}var Rl=!1,P=-1,Pl=5,mt=-1;function Xt(){return at?!0:!(f.unstable_now()-mt<Pl)}function yt(){if(at=!1,Rl){var A=f.unstable_now();mt=A;var C=!0;try{l:{k=!1,I&&(I=!1,nt(P),P=-1),Z=!0;var K=L;try{t:{for(Ml(A),R=b(v);R!==null&&!(R.expirationTime>A&&Xt());){var ml=R.callback;if(typeof ml=="function"){R.callback=null,L=R.priorityLevel;var fl=ml(R.expirationTime<=A);if(A=f.unstable_now(),typeof fl=="function"){R.callback=fl,Ml(A),C=!0;break t}R===b(v)&&o(v),Ml(A)}else o(v);R=b(v)}if(R!==null)C=!0;else{var d=b(y);d!==null&&it(Cl,d.startTime-A),C=!1}}break l}finally{R=null,L=K,Z=!1}C=void 0}}finally{C?Jl():Rl=!1}}}var Jl;if(typeof jl=="function")Jl=function(){jl(yt)};else if(typeof MessageChannel<"u"){var Bt=new MessageChannel,lt=Bt.port2;Bt.port1.onmessage=yt,Jl=function(){lt.postMessage(null)}}else Jl=function(){Ul(yt,0)};function it(A,C){P=Ul(function(){A(f.unstable_now())},C)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(A){A.callback=null},f.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"):Pl=0<A?Math.floor(1e3/A):5},f.unstable_getCurrentPriorityLevel=function(){return L},f.unstable_next=function(A){switch(L){case 1:case 2:case 3:var C=3;break;default:C=L}var K=L;L=C;try{return A()}finally{L=K}},f.unstable_requestPaint=function(){at=!0},f.unstable_runWithPriority=function(A,C){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var K=L;L=A;try{return C()}finally{L=K}},f.unstable_scheduleCallback=function(A,C,K){var ml=f.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ml+K:ml):K=ml,A){case 1:var fl=-1;break;case 2:fl=250;break;case 5:fl=1073741823;break;case 4:fl=1e4;break;default:fl=5e3}return fl=K+fl,A={id:U++,callback:C,priorityLevel:A,startTime:K,expirationTime:fl,sortIndex:-1},K>ml?(A.sortIndex=K,h(y,A),b(v)===null&&A===b(y)&&(I?(nt(P),P=-1):I=!0,it(Cl,K-ml))):(A.sortIndex=fl,h(v,A),k||Z||(k=!0,Rl||(Rl=!0,Jl()))),A},f.unstable_shouldYield=Xt,f.unstable_wrapCallback=function(A){var C=L;return function(){var K=L;L=C;try{return A.apply(this,arguments)}finally{L=K}}}})(Tf)),Tf}var Qd;function q0(){return Qd||(Qd=1,zf.exports=H0()),zf.exports}var Af={exports:{}},$={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and 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 Xd;function B0(){if(Xd)return $;Xd=1;var f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),D=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),L=Symbol.iterator;function Z(d){return d===null||typeof d!="object"?null:(d=L&&d[L]||d["@@iterator"],typeof d=="function"?d:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,at={};function Ul(d,T,H){this.props=d,this.context=T,this.refs=at,this.updater=H||k}Ul.prototype.isReactComponent={},Ul.prototype.setState=function(d,T){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,T,"setState")},Ul.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function nt(){}nt.prototype=Ul.prototype;function jl(d,T,H){this.props=d,this.context=T,this.refs=at,this.updater=H||k}var Ml=jl.prototype=new nt;Ml.constructor=jl,I(Ml,Ul.prototype),Ml.isPureReactComponent=!0;var Cl=Array.isArray;function Rl(){}var P={H:null,A:null,T:null,S:null},Pl=Object.prototype.hasOwnProperty;function mt(d,T,H){var B=H.ref;return{$$typeof:f,type:d,key:T,ref:B!==void 0?B:null,props:H}}function Xt(d,T){return mt(d.type,T,d.props)}function yt(d){return typeof d=="object"&&d!==null&&d.$$typeof===f}function Jl(d){var T={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(H){return T[H]})}var Bt=/\/+/g;function lt(d,T){return typeof d=="object"&&d!==null&&d.key!=null?Jl(""+d.key):T.toString(36)}function it(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Rl,Rl):(d.status="pending",d.then(function(T){d.status==="pending"&&(d.status="fulfilled",d.value=T)},function(T){d.status==="pending"&&(d.status="rejected",d.reason=T)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function A(d,T,H,B,J){var ll=typeof d;(ll==="undefined"||ll==="boolean")&&(d=null);var sl=!1;if(d===null)sl=!0;else switch(ll){case"bigint":case"string":case"number":sl=!0;break;case"object":switch(d.$$typeof){case f:case h:sl=!0;break;case U:return sl=d._init,A(sl(d._payload),T,H,B,J)}}if(sl)return J=J(d),sl=B===""?"."+lt(d,0):B,Cl(J)?(H="",sl!=null&&(H=sl.replace(Bt,"$&/")+"/"),A(J,T,H,"",function(Ye){return Ye})):J!=null&&(yt(J)&&(J=Xt(J,H+(J.key==null||d&&d.key===J.key?"":(""+J.key).replace(Bt,"$&/")+"/")+sl)),T.push(J)),1;sl=0;var wl=B===""?".":B+":";if(Cl(d))for(var Tl=0;Tl<d.length;Tl++)B=d[Tl],ll=wl+lt(B,Tl),sl+=A(B,T,H,ll,J);else if(Tl=Z(d),typeof Tl=="function")for(d=Tl.call(d),Tl=0;!(B=d.next()).done;)B=B.value,ll=wl+lt(B,Tl++),sl+=A(B,T,H,ll,J);else if(ll==="object"){if(typeof d.then=="function")return A(it(d),T,H,B,J);throw T=String(d),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return sl}function C(d,T,H){if(d==null)return d;var B=[],J=0;return A(d,B,"","",function(ll){return T.call(H,ll,J++)}),B}function K(d){if(d._status===-1){var T=d._result;T=T(),T.then(function(H){(d._status===0||d._status===-1)&&(d._status=1,d._result=H)},function(H){(d._status===0||d._status===-1)&&(d._status=2,d._result=H)}),d._status===-1&&(d._status=0,d._result=T)}if(d._status===1)return d._result.default;throw d._result}var ml=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},fl={map:C,forEach:function(d,T,H){C(d,function(){T.apply(this,arguments)},H)},count:function(d){var T=0;return C(d,function(){T++}),T},toArray:function(d){return C(d,function(T){return T})||[]},only:function(d){if(!yt(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return $.Activity=R,$.Children=fl,$.Component=Ul,$.Fragment=b,$.Profiler=x,$.PureComponent=jl,$.StrictMode=o,$.Suspense=v,$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,$.__COMPILER_RUNTIME={__proto__:null,c:function(d){return P.H.useMemoCache(d)}},$.cache=function(d){return function(){return d.apply(null,arguments)}},$.cacheSignal=function(){return null},$.cloneElement=function(d,T,H){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var B=I({},d.props),J=d.key;if(T!=null)for(ll in T.key!==void 0&&(J=""+T.key),T)!Pl.call(T,ll)||ll==="key"||ll==="__self"||ll==="__source"||ll==="ref"&&T.ref===void 0||(B[ll]=T[ll]);var ll=arguments.length-2;if(ll===1)B.children=H;else if(1<ll){for(var sl=Array(ll),wl=0;wl<ll;wl++)sl[wl]=arguments[wl+2];B.children=sl}return mt(d.type,J,B)},$.createContext=function(d){return d={$$typeof:D,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:E,_context:d},d},$.createElement=function(d,T,H){var B,J={},ll=null;if(T!=null)for(B in T.key!==void 0&&(ll=""+T.key),T)Pl.call(T,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(J[B]=T[B]);var sl=arguments.length-2;if(sl===1)J.children=H;else if(1<sl){for(var wl=Array(sl),Tl=0;Tl<sl;Tl++)wl[Tl]=arguments[Tl+2];J.children=wl}if(d&&d.defaultProps)for(B in sl=d.defaultProps,sl)J[B]===void 0&&(J[B]=sl[B]);return mt(d,ll,J)},$.createRef=function(){return{current:null}},$.forwardRef=function(d){return{$$typeof:N,render:d}},$.isValidElement=yt,$.lazy=function(d){return{$$typeof:U,_payload:{_status:-1,_result:d},_init:K}},$.memo=function(d,T){return{$$typeof:y,type:d,compare:T===void 0?null:T}},$.startTransition=function(d){var T=P.T,H={};P.T=H;try{var B=d(),J=P.S;J!==null&&J(H,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(Rl,ml)}catch(ll){ml(ll)}finally{T!==null&&H.types!==null&&(T.types=H.types),P.T=T}},$.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},$.use=function(d){return P.H.use(d)},$.useActionState=function(d,T,H){return P.H.useActionState(d,T,H)},$.useCallback=function(d,T){return P.H.useCallback(d,T)},$.useContext=function(d){return P.H.useContext(d)},$.useDebugValue=function(){},$.useDeferredValue=function(d,T){return P.H.useDeferredValue(d,T)},$.useEffect=function(d,T){return P.H.useEffect(d,T)},$.useEffectEvent=function(d){return P.H.useEffectEvent(d)},$.useId=function(){return P.H.useId()},$.useImperativeHandle=function(d,T,H){return P.H.useImperativeHandle(d,T,H)},$.useInsertionEffect=function(d,T){return P.H.useInsertionEffect(d,T)},$.useLayoutEffect=function(d,T){return P.H.useLayoutEffect(d,T)},$.useMemo=function(d,T){return P.H.useMemo(d,T)},$.useOptimistic=function(d,T){return P.H.useOptimistic(d,T)},$.useReducer=function(d,T,H){return P.H.useReducer(d,T,H)},$.useRef=function(d){return P.H.useRef(d)},$.useState=function(d){return P.H.useState(d)},$.useSyncExternalStore=function(d,T,H){return P.H.useSyncExternalStore(d,T,H)},$.useTransition=function(){return P.H.useTransition()},$.version="19.2.6",$}var Zd;function Df(){return Zd||(Zd=1,Af.exports=B0()),Af.exports}var _f={exports:{}},et={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and 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 Ld;function Y0(){if(Ld)return et;Ld=1;var f=Df();function h(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var U=2;U<arguments.length;U++)y+="&args[]="+encodeURIComponent(arguments[U])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function b(){}var o={d:{f:b,r:function(){throw Error(h(522))},D:b,C:b,L:b,m:b,X:b,S:b,M:b},p:0,findDOMNode:null},x=Symbol.for("react.portal");function E(v,y,U){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:x,key:R==null?null:""+R,children:v,containerInfo:y,implementation:U}}var D=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function N(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,et.createPortal=function(v,y){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(h(299));return E(v,y,null,U)},et.flushSync=function(v){var y=D.T,U=o.p;try{if(D.T=null,o.p=2,v)return v()}finally{D.T=y,o.p=U,o.d.f()}},et.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(v,y))},et.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},et.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var U=y.as,R=N(U,y.crossOrigin),L=typeof y.integrity=="string"?y.integrity:void 0,Z=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;U==="style"?o.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:Z}):U==="script"&&o.d.X(v,{crossOrigin:R,integrity:L,fetchPriority:Z,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},et.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var U=N(y.as,y.crossOrigin);o.d.M(v,{crossOrigin:U,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(v)},et.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var U=y.as,R=N(U,y.crossOrigin);o.d.L(v,U,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},et.preloadModule=function(v,y){if(typeof v=="string")if(y){var U=N(y.as,y.crossOrigin);o.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:U,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(v)},et.requestFormReset=function(v){o.d.r(v)},et.unstable_batchedUpdates=function(v,y){return v(y)},et.useFormState=function(v,y,U){return D.H.useFormState(v,y,U)},et.useFormStatus=function(){return D.H.useHostTransitionStatus()},et.version="19.2.6",et}var Vd;function G0(){if(Vd)return _f.exports;Vd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(h){console.error(h)}}return f(),_f.exports=Y0(),_f.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Kd;function Q0(){if(Kd)return Gn;Kd=1;var f=q0(),h=Df(),b=G0();function o(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function E(l){var t=l,e=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;while(l)}return t.tag===3?e:null}function D(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function N(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function v(l){if(E(l)!==l)throw Error(o(188))}function y(l){var t=l.alternate;if(!t){if(t=E(l),t===null)throw Error(o(188));return t!==l?null:l}for(var e=l,a=t;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return v(n),l;if(u===a)return v(n),t;u=u.sibling}throw Error(o(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,s=n.child;s;){if(s===e){i=!0,e=n,a=u;break}if(s===a){i=!0,a=n,e=u;break}s=s.sibling}if(!i){for(s=u.child;s;){if(s===e){i=!0,e=u,a=n;break}if(s===a){i=!0,a=u,e=n;break}s=s.sibling}if(!i)throw Error(o(189))}}if(e.alternate!==a)throw Error(o(190))}if(e.tag!==3)throw Error(o(188));return e.stateNode.current===e?l:t}function U(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=U(l),t!==null)return t;l=l.sibling}return null}var R=Object.assign,L=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),Ul=Symbol.for("react.profiler"),nt=Symbol.for("react.consumer"),jl=Symbol.for("react.context"),Ml=Symbol.for("react.forward_ref"),Cl=Symbol.for("react.suspense"),Rl=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Pl=Symbol.for("react.lazy"),mt=Symbol.for("react.activity"),Xt=Symbol.for("react.memo_cache_sentinel"),yt=Symbol.iterator;function Jl(l){return l===null||typeof l!="object"?null:(l=yt&&l[yt]||l["@@iterator"],typeof l=="function"?l:null)}var Bt=Symbol.for("react.client.reference");function lt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Bt?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case I:return"Fragment";case Ul:return"Profiler";case at:return"StrictMode";case Cl:return"Suspense";case Rl:return"SuspenseList";case mt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case k:return"Portal";case jl:return l.displayName||"Context";case nt:return(l._context.displayName||"Context")+".Consumer";case Ml:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case P:return t=l.displayName||null,t!==null?t:lt(l.type)||"Memo";case Pl:t=l._payload,l=l._init;try{return lt(l(t))}catch{}}return null}var it=Array.isArray,A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=b.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ml=[],fl=-1;function d(l){return{current:l}}function T(l){0>fl||(l.current=ml[fl],ml[fl]=null,fl--)}function H(l,t){fl++,ml[fl]=l.current,l.current=t}var B=d(null),J=d(null),ll=d(null),sl=d(null);function wl(l,t){switch(H(ll,t),H(J,l),H(B,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?id(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=id(t),l=cd(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}T(B),H(B,l)}function Tl(){T(B),T(J),T(ll)}function Ye(l){l.memoizedState!==null&&H(sl,l);var t=B.current,e=cd(t,l.type);t!==e&&(H(J,l),H(B,e))}function G(l){J.current===l&&(T(B),T(J)),sl.current===l&&(T(sl),Rn._currentValue=K)}var Y,ul;function Al(l){if(Y===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Y=t&&t[1]||"",ul=-1<e.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Y+l+ul}var Gl=!1;function Ql(l,t){if(!l||Gl)return"";Gl=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(z){var j=z}Reflect.construct(l,[],O)}else{try{O.call()}catch(z){j=z}l.call(O.prototype)}}else{try{throw Error()}catch(z){j=z}(O=l())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(z){if(z&&j&&typeof z.stack=="string")return[z.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],s=u[1];if(i&&s){var r=i.split(`
44
+ `),S=s.split(`
45
+ `);for(n=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===r.length||n===S.length)for(a=r.length-1,n=S.length-1;1<=a&&0<=n&&r[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(r[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||r[a]!==S[n]){var _=`
46
+ `+r[a].replace(" at new "," at ");return l.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",l.displayName)),_}while(1<=a&&0<=n);break}}}finally{Gl=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Al(e):""}function tt(l,t){switch(l.tag){case 26:case 27:case 5:return Al(l.type);case 16:return Al("Lazy");case 13:return l.child!==t&&t!==null?Al("Suspense Fallback"):Al("Suspense");case 19:return Al("SuspenseList");case 0:case 15:return Ql(l.type,!1);case 11:return Ql(l.type.render,!1);case 1:return Ql(l.type,!0);case 31:return Al("Activity");default:return""}}function il(l){try{var t="",e=null;do t+=tt(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var dl=Object.prototype.hasOwnProperty,re=f.unstable_scheduleCallback,La=f.unstable_cancelCallback,Va=f.unstable_shouldYield,fi=f.unstable_requestPaint,vt=f.unstable_now,dh=f.unstable_getCurrentPriorityLevel,Bf=f.unstable_ImmediatePriority,Yf=f.unstable_UserBlockingPriority,Ln=f.unstable_NormalPriority,hh=f.unstable_LowPriority,Gf=f.unstable_IdlePriority,mh=f.log,yh=f.unstable_setDisableYieldValue,Ka=null,pt=null;function de(l){if(typeof mh=="function"&&yh(l),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Ka,l)}catch{}}var gt=Math.clz32?Math.clz32:gh,vh=Math.log,ph=Math.LN2;function gh(l){return l>>>=0,l===0?32:31-(vh(l)/ph|0)|0}var Vn=256,Kn=262144,Jn=4194304;function Ge(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function wn(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var n=0,u=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var s=a&134217727;return s!==0?(a=s&~u,a!==0?n=Ge(a):(i&=s,i!==0?n=Ge(i):e||(e=s&~l,e!==0&&(n=Ge(e))))):(s=a&~u,s!==0?n=Ge(s):i!==0?n=Ge(i):e||(e=a&~l,e!==0&&(n=Ge(e)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,e=t&-t,u>=e||u===32&&(e&4194048)!==0)?t:n}function Ja(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Sh(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qf(){var l=Jn;return Jn<<=1,(Jn&62914560)===0&&(Jn=4194304),l}function si(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function wa(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function bh(l,t,e,a,n,u){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var s=l.entanglements,r=l.expirationTimes,S=l.hiddenUpdates;for(e=i&~e;0<e;){var _=31-gt(e),O=1<<_;s[_]=0,r[_]=-1;var j=S[_];if(j!==null)for(S[_]=null,_=0;_<j.length;_++){var z=j[_];z!==null&&(z.lane&=-536870913)}e&=~O}a!==0&&Xf(l,a,0),u!==0&&n===0&&l.tag!==0&&(l.suspendedLanes|=u&~(i&~t))}function Xf(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-gt(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function Zf(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-gt(e),n=1<<a;n&t|l[a]&t&&(l[a]|=t),e&=~n}}function Lf(l,t){var e=t&-t;return e=(e&42)!==0?1:oi(e),(e&(l.suspendedLanes|t))!==0?0:e}function oi(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function ri(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Vf(){var l=C.p;return l!==0?l:(l=window.event,l===void 0?32:Od(l.type))}function Kf(l,t){var e=C.p;try{return C.p=l,t()}finally{C.p=e}}var he=Math.random().toString(36).slice(2),kl="__reactFiber$"+he,ct="__reactProps$"+he,na="__reactContainer$"+he,di="__reactEvents$"+he,jh="__reactListeners$"+he,xh="__reactHandles$"+he,Jf="__reactResources$"+he,ka="__reactMarker$"+he;function hi(l){delete l[kl],delete l[ct],delete l[di],delete l[jh],delete l[xh]}function ua(l){var t=l[kl];if(t)return t;for(var e=l.parentNode;e;){if(t=e[na]||e[kl]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(l=md(l);l!==null;){if(e=l[kl])return e;l=md(l)}return t}l=e,e=l.parentNode}return null}function ia(l){if(l=l[kl]||l[na]){var t=l.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return l}return null}function $a(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(o(33))}function ca(l){var t=l[Jf];return t||(t=l[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Zl(l){l[ka]=!0}var wf=new Set,kf={};function Qe(l,t){fa(l,t),fa(l+"Capture",t)}function fa(l,t){for(kf[l]=t,l=0;l<t.length;l++)wf.add(t[l])}var Nh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$f={},Wf={};function zh(l){return dl.call(Wf,l)?!0:dl.call($f,l)?!1:Nh.test(l)?Wf[l]=!0:($f[l]=!0,!1)}function kn(l,t,e){if(zh(t))if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+e)}}function $n(l,t,e){if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+e)}}function Jt(l,t,e,a){if(a===null)l.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(e);return}l.setAttributeNS(t,e,""+a)}}function At(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Ff(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Th(l,t,e){var a=Object.getOwnPropertyDescriptor(l.constructor.prototype,t);if(!l.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(l,t,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function mi(l){if(!l._valueTracker){var t=Ff(l)?"checked":"value";l._valueTracker=Th(l,t,""+l[t])}}function If(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=Ff(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function Wn(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Ah=/[\n"\\]/g;function _t(l){return l.replace(Ah,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yi(l,t,e,a,n,u,i,s){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+At(t)):l.value!==""+At(t)&&(l.value=""+At(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?vi(l,i,At(t)):e!=null?vi(l,i,At(e)):a!=null&&l.removeAttribute("value"),n==null&&u!=null&&(l.defaultChecked=!!u),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?l.name=""+At(s):l.removeAttribute("name")}function Pf(l,t,e,a,n,u,i,s){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(l.type=u),t!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){mi(l);return}e=e!=null?""+At(e):"",t=t!=null?""+At(t):e,s||t===l.value||(l.value=t),l.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=s?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),mi(l)}function vi(l,t,e){t==="number"&&Wn(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function sa(l,t,e,a){if(l=l.options,t){t={};for(var n=0;n<e.length;n++)t["$"+e[n]]=!0;for(e=0;e<l.length;e++)n=t.hasOwnProperty("$"+l[e].value),l[e].selected!==n&&(l[e].selected=n),n&&a&&(l[e].defaultSelected=!0)}else{for(e=""+At(e),t=null,n=0;n<l.length;n++){if(l[n].value===e){l[n].selected=!0,a&&(l[n].defaultSelected=!0);return}t!==null||l[n].disabled||(t=l[n])}t!==null&&(t.selected=!0)}}function ls(l,t,e){if(t!=null&&(t=""+At(t),t!==l.value&&(l.value=t),e==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=e!=null?""+At(e):""}function ts(l,t,e,a){if(t==null){if(a!=null){if(e!=null)throw Error(o(92));if(it(a)){if(1<a.length)throw Error(o(93));a=a[0]}e=a}e==null&&(e=""),t=e}e=At(t),l.defaultValue=e,a=l.textContent,a===e&&a!==""&&a!==null&&(l.value=a),mi(l)}function oa(l,t){if(t){var e=l.firstChild;if(e&&e===l.lastChild&&e.nodeType===3){e.nodeValue=t;return}}l.textContent=t}var _h=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function es(l,t,e){var a=t.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":a?l.setProperty(t,e):typeof e!="number"||e===0||_h.has(t)?t==="float"?l.cssFloat=e:l[t]=(""+e).trim():l[t]=e+"px"}function as(l,t,e){if(t!=null&&typeof t!="object")throw Error(o(62));if(l=l.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&e[n]!==a&&es(l,n,a)}else for(var u in t)t.hasOwnProperty(u)&&es(l,u,t[u])}function pi(l){if(l.indexOf("-")===-1)return!1;switch(l){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 Eh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fn(l){return Mh.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function wt(){}var gi=null;function Si(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var ra=null,da=null;function ns(l){var t=ia(l);if(t&&(l=t.stateNode)){var e=l[ct]||null;l:switch(l=t.stateNode,t.type){case"input":if(yi(l,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),t=e.name,e.type==="radio"&&t!=null){for(e=l;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<e.length;t++){var a=e[t];if(a!==l&&a.form===l.form){var n=a[ct]||null;if(!n)throw Error(o(90));yi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<e.length;t++)a=e[t],a.form===l.form&&If(a)}break l;case"textarea":ls(l,e.value,e.defaultValue);break l;case"select":t=e.value,t!=null&&sa(l,!!e.multiple,t,!1)}}}var bi=!1;function us(l,t,e){if(bi)return l(t,e);bi=!0;try{var a=l(t);return a}finally{if(bi=!1,(ra!==null||da!==null)&&(Yu(),ra&&(t=ra,l=da,da=ra=null,ns(t),l)))for(t=0;t<l.length;t++)ns(l[t])}}function Wa(l,t){var e=l.stateNode;if(e===null)return null;var a=e[ct]||null;if(a===null)return null;e=a[t];l:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(e&&typeof e!="function")throw Error(o(231,t,typeof e));return e}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ji=!1;if(kt)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){ji=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{ji=!1}var me=null,xi=null,In=null;function is(){if(In)return In;var l,t=xi,e=t.length,a,n="value"in me?me.value:me.textContent,u=n.length;for(l=0;l<e&&t[l]===n[l];l++);var i=e-l;for(a=1;a<=i&&t[e-a]===n[u-a];a++);return In=n.slice(l,1<a?1-a:void 0)}function Pn(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function lu(){return!0}function cs(){return!1}function ft(l){function t(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var s in l)l.hasOwnProperty(s)&&(e=l[s],this[s]=e?e(u):u[s]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?lu:cs,this.isPropagationStopped=cs,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),t}var Xe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tu=ft(Xe),Ia=R({},Xe,{view:0,detail:0}),Oh=ft(Ia),Ni,zi,Pa,eu=R({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ai,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Pa&&(Pa&&l.type==="mousemove"?(Ni=l.screenX-Pa.screenX,zi=l.screenY-Pa.screenY):zi=Ni=0,Pa=l),Ni)},movementY:function(l){return"movementY"in l?l.movementY:zi}}),fs=ft(eu),Dh=R({},eu,{dataTransfer:0}),Uh=ft(Dh),Ch=R({},Ia,{relatedTarget:0}),Ti=ft(Ch),Rh=R({},Xe,{animationName:0,elapsedTime:0,pseudoElement:0}),Hh=ft(Rh),qh=R({},Xe,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Bh=ft(qh),Yh=R({},Xe,{data:0}),ss=ft(Yh),Gh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qh={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"},Xh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zh(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=Xh[l])?!!t[l]:!1}function Ai(){return Zh}var Lh=R({},Ia,{key:function(l){if(l.key){var t=Gh[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Pn(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Qh[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ai,charCode:function(l){return l.type==="keypress"?Pn(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Pn(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Vh=ft(Lh),Kh=R({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),os=ft(Kh),Jh=R({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ai}),wh=ft(Jh),kh=R({},Xe,{propertyName:0,elapsedTime:0,pseudoElement:0}),$h=ft(kh),Wh=R({},eu,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Fh=ft(Wh),Ih=R({},Xe,{newState:0,oldState:0}),Ph=ft(Ih),lm=[9,13,27,32],_i=kt&&"CompositionEvent"in window,ln=null;kt&&"documentMode"in document&&(ln=document.documentMode);var tm=kt&&"TextEvent"in window&&!ln,rs=kt&&(!_i||ln&&8<ln&&11>=ln),ds=" ",hs=!1;function ms(l,t){switch(l){case"keyup":return lm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ys(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ha=!1;function em(l,t){switch(l){case"compositionend":return ys(t);case"keypress":return t.which!==32?null:(hs=!0,ds);case"textInput":return l=t.data,l===ds&&hs?null:l;default:return null}}function am(l,t){if(ha)return l==="compositionend"||!_i&&ms(l,t)?(l=is(),In=xi=me=null,ha=!1,l):null;switch(l){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 rs&&t.locale!=="ko"?null:t.data;default:return null}}var nm={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 vs(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!nm[l.type]:t==="textarea"}function ps(l,t,e,a){ra?da?da.push(a):da=[a]:ra=a,t=Ku(t,"onChange"),0<t.length&&(e=new tu("onChange","change",null,e,a),l.push({event:e,listeners:t}))}var tn=null,en=null;function um(l){ld(l,0)}function au(l){var t=$a(l);if(If(t))return l}function gs(l,t){if(l==="change")return t}var Ss=!1;if(kt){var Ei;if(kt){var Mi="oninput"in document;if(!Mi){var bs=document.createElement("div");bs.setAttribute("oninput","return;"),Mi=typeof bs.oninput=="function"}Ei=Mi}else Ei=!1;Ss=Ei&&(!document.documentMode||9<document.documentMode)}function js(){tn&&(tn.detachEvent("onpropertychange",xs),en=tn=null)}function xs(l){if(l.propertyName==="value"&&au(en)){var t=[];ps(t,en,l,Si(l)),us(um,t)}}function im(l,t,e){l==="focusin"?(js(),tn=t,en=e,tn.attachEvent("onpropertychange",xs)):l==="focusout"&&js()}function cm(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return au(en)}function fm(l,t){if(l==="click")return au(t)}function sm(l,t){if(l==="input"||l==="change")return au(t)}function om(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var St=typeof Object.is=="function"?Object.is:om;function an(l,t){if(St(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var e=Object.keys(l),a=Object.keys(t);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!dl.call(t,n)||!St(l[n],t[n]))return!1}return!0}function Ns(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function zs(l,t){var e=Ns(l);l=0;for(var a;e;){if(e.nodeType===3){if(a=l+e.textContent.length,l<=t&&a>=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=Ns(e)}}function Ts(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?Ts(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function As(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Wn(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=Wn(l.document)}return t}function Oi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var rm=kt&&"documentMode"in document&&11>=document.documentMode,ma=null,Di=null,nn=null,Ui=!1;function _s(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Ui||ma==null||ma!==Wn(a)||(a=ma,"selectionStart"in a&&Oi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),nn&&an(nn,a)||(nn=a,a=Ku(Di,"onSelect"),0<a.length&&(t=new tu("onSelect","select",null,t,e),l.push({event:t,listeners:a}),t.target=ma)))}function Ze(l,t){var e={};return e[l.toLowerCase()]=t.toLowerCase(),e["Webkit"+l]="webkit"+t,e["Moz"+l]="moz"+t,e}var ya={animationend:Ze("Animation","AnimationEnd"),animationiteration:Ze("Animation","AnimationIteration"),animationstart:Ze("Animation","AnimationStart"),transitionrun:Ze("Transition","TransitionRun"),transitionstart:Ze("Transition","TransitionStart"),transitioncancel:Ze("Transition","TransitionCancel"),transitionend:Ze("Transition","TransitionEnd")},Ci={},Es={};kt&&(Es=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function Le(l){if(Ci[l])return Ci[l];if(!ya[l])return l;var t=ya[l],e;for(e in t)if(t.hasOwnProperty(e)&&e in Es)return Ci[l]=t[e];return l}var Ms=Le("animationend"),Os=Le("animationiteration"),Ds=Le("animationstart"),dm=Le("transitionrun"),hm=Le("transitionstart"),mm=Le("transitioncancel"),Us=Le("transitionend"),Cs=new Map,Ri="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ri.push("scrollEnd");function Yt(l,t){Cs.set(l,t),Qe(t,[l])}var nu=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Et=[],va=0,Hi=0;function uu(){for(var l=va,t=Hi=va=0;t<l;){var e=Et[t];Et[t++]=null;var a=Et[t];Et[t++]=null;var n=Et[t];Et[t++]=null;var u=Et[t];if(Et[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&Rs(e,n,u)}}function iu(l,t,e,a){Et[va++]=l,Et[va++]=t,Et[va++]=e,Et[va++]=a,Hi|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function qi(l,t,e,a){return iu(l,t,e,a),cu(l)}function Ve(l,t){return iu(l,null,null,t),cu(l)}function Rs(l,t,e){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=l.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(l=u.stateNode,l===null||l._visibility&1||(n=!0)),l=u,u=u.return;return l.tag===3?(u=l.stateNode,n&&t!==null&&(n=31-gt(e),l=u.hiddenUpdates,a=l[n],a===null?l[n]=[t]:a.push(t),t.lane=e|536870912),u):null}function cu(l){if(50<_n)throw _n=0,Kc=null,Error(o(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var pa={};function ym(l,t,e,a){this.tag=l,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(l,t,e,a){return new ym(l,t,e,a)}function Bi(l){return l=l.prototype,!(!l||!l.isReactComponent)}function $t(l,t){var e=l.alternate;return e===null?(e=bt(l.tag,t,l.key,l.mode),e.elementType=l.elementType,e.type=l.type,e.stateNode=l.stateNode,e.alternate=l,l.alternate=e):(e.pendingProps=t,e.type=l.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=l.flags&65011712,e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=l.sibling,e.index=l.index,e.ref=l.ref,e.refCleanup=l.refCleanup,e}function Hs(l,t){l.flags&=65011714;var e=l.alternate;return e===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,l.type=e.type,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function fu(l,t,e,a,n,u){var i=0;if(a=l,typeof l=="function")Bi(l)&&(i=1);else if(typeof l=="string")i=b0(l,e,B.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case mt:return l=bt(31,e,t,n),l.elementType=mt,l.lanes=u,l;case I:return Ke(e.children,n,u,t);case at:i=8,n|=24;break;case Ul:return l=bt(12,e,t,n|2),l.elementType=Ul,l.lanes=u,l;case Cl:return l=bt(13,e,t,n),l.elementType=Cl,l.lanes=u,l;case Rl:return l=bt(19,e,t,n),l.elementType=Rl,l.lanes=u,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case jl:i=10;break l;case nt:i=9;break l;case Ml:i=11;break l;case P:i=14;break l;case Pl:i=16,a=null;break l}i=29,e=Error(o(130,l===null?"null":typeof l,"")),a=null}return t=bt(i,e,t,n),t.elementType=l,t.type=a,t.lanes=u,t}function Ke(l,t,e,a){return l=bt(7,l,a,t),l.lanes=e,l}function Yi(l,t,e){return l=bt(6,l,null,t),l.lanes=e,l}function qs(l){var t=bt(18,null,null,0);return t.stateNode=l,t}function Gi(l,t,e){return t=bt(4,l.children!==null?l.children:[],l.key,t),t.lanes=e,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var Bs=new WeakMap;function Mt(l,t){if(typeof l=="object"&&l!==null){var e=Bs.get(l);return e!==void 0?e:(t={value:l,source:t,stack:il(t)},Bs.set(l,t),t)}return{value:l,source:t,stack:il(t)}}var ga=[],Sa=0,su=null,un=0,Ot=[],Dt=0,ye=null,Zt=1,Lt="";function Wt(l,t){ga[Sa++]=un,ga[Sa++]=su,su=l,un=t}function Ys(l,t,e){Ot[Dt++]=Zt,Ot[Dt++]=Lt,Ot[Dt++]=ye,ye=l;var a=Zt;l=Lt;var n=32-gt(a)-1;a&=~(1<<n),e+=1;var u=32-gt(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Zt=1<<32-gt(t)+n|e<<n|a,Lt=u+l}else Zt=1<<u|e<<n|a,Lt=l}function Qi(l){l.return!==null&&(Wt(l,1),Ys(l,1,0))}function Xi(l){for(;l===su;)su=ga[--Sa],ga[Sa]=null,un=ga[--Sa],ga[Sa]=null;for(;l===ye;)ye=Ot[--Dt],Ot[Dt]=null,Lt=Ot[--Dt],Ot[Dt]=null,Zt=Ot[--Dt],Ot[Dt]=null}function Gs(l,t){Ot[Dt++]=Zt,Ot[Dt++]=Lt,Ot[Dt++]=ye,Zt=t.id,Lt=t.overflow,ye=l}var $l=null,xl=null,cl=!1,ve=null,Ut=!1,Zi=Error(o(519));function pe(l){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(Mt(t,l)),Zi}function Qs(l){var t=l.stateNode,e=l.type,a=l.memoizedProps;switch(t[kl]=l,t[ct]=a,e){case"dialog":el("cancel",t),el("close",t);break;case"iframe":case"object":case"embed":el("load",t);break;case"video":case"audio":for(e=0;e<Mn.length;e++)el(Mn[e],t);break;case"source":el("error",t);break;case"img":case"image":case"link":el("error",t),el("load",t);break;case"details":el("toggle",t);break;case"input":el("invalid",t),Pf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":el("invalid",t);break;case"textarea":el("invalid",t),ts(t,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||t.textContent===""+e||a.suppressHydrationWarning===!0||nd(t.textContent,e)?(a.popover!=null&&(el("beforetoggle",t),el("toggle",t)),a.onScroll!=null&&el("scroll",t),a.onScrollEnd!=null&&el("scrollend",t),a.onClick!=null&&(t.onclick=wt),t=!0):t=!1,t||pe(l,!0)}function Xs(l){for($l=l.return;$l;)switch($l.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:$l=$l.return}}function ba(l){if(l!==$l)return!1;if(!cl)return Xs(l),cl=!0,!1;var t=l.tag,e;if((e=t!==3&&t!==27)&&((e=t===5)&&(e=l.type,e=!(e!=="form"&&e!=="button")||cf(l.type,l.memoizedProps)),e=!e),e&&xl&&pe(l),Xs(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));xl=hd(l)}else if(t===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));xl=hd(l)}else t===27?(t=xl,De(l.type)?(l=df,df=null,xl=l):xl=t):xl=$l?Rt(l.stateNode.nextSibling):null;return!0}function Je(){xl=$l=null,cl=!1}function Li(){var l=ve;return l!==null&&(dt===null?dt=l:dt.push.apply(dt,l),ve=null),l}function cn(l){ve===null?ve=[l]:ve.push(l)}var Vi=d(null),we=null,Ft=null;function ge(l,t,e){H(Vi,t._currentValue),t._currentValue=e}function It(l){l._currentValue=Vi.current,T(Vi)}function Ki(l,t,e){for(;l!==null;){var a=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),l===e)break;l=l.return}}function Ji(l,t,e,a){var n=l.child;for(n!==null&&(n.return=l);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;l:for(;u!==null;){var s=u;u=n;for(var r=0;r<t.length;r++)if(s.context===t[r]){u.lanes|=e,s=u.alternate,s!==null&&(s.lanes|=e),Ki(u.return,e,l),a||(i=null);break l}u=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Ki(i,e,l),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===l){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ja(l,t,e,a){l=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var s=n.type;St(n.pendingProps.value,i.value)||(l!==null?l.push(s):l=[s])}}else if(n===sl.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(l!==null?l.push(Rn):l=[Rn])}n=n.return}l!==null&&Ji(t,l,e,a),t.flags|=262144}function ou(l){for(l=l.firstContext;l!==null;){if(!St(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function ke(l){we=l,Ft=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Wl(l){return Zs(we,l)}function ru(l,t){return we===null&&ke(l),Zs(l,t)}function Zs(l,t){var e=t._currentValue;if(t={context:t,memoizedValue:e,next:null},Ft===null){if(l===null)throw Error(o(308));Ft=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Ft=Ft.next=t;return e}var vm=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(e,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(e){return e()})}},pm=f.unstable_scheduleCallback,gm=f.unstable_NormalPriority,Hl={$$typeof:jl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wi(){return{controller:new vm,data:new Map,refCount:0}}function fn(l){l.refCount--,l.refCount===0&&pm(gm,function(){l.controller.abort()})}var sn=null,ki=0,xa=0,Na=null;function Sm(l,t){if(sn===null){var e=sn=[];ki=0,xa=Fc(),Na={status:"pending",value:void 0,then:function(a){e.push(a)}}}return ki++,t.then(Ls,Ls),t}function Ls(){if(--ki===0&&sn!==null){Na!==null&&(Na.status="fulfilled");var l=sn;sn=null,xa=0,Na=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function bm(l,t){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<e.length;n++)(0,e[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var Vs=A.S;A.S=function(l,t){Er=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Sm(l,t),Vs!==null&&Vs(l,t)};var $e=d(null);function $i(){var l=$e.current;return l!==null?l:bl.pooledCache}function du(l,t){t===null?H($e,$e.current):H($e,t.pool)}function Ks(){var l=$i();return l===null?null:{parent:Hl._currentValue,pool:l}}var za=Error(o(460)),Wi=Error(o(474)),hu=Error(o(542)),mu={then:function(){}};function Js(l){return l=l.status,l==="fulfilled"||l==="rejected"}function ws(l,t,e){switch(e=l[e],e===void 0?l.push(t):e!==t&&(t.then(wt,wt),t=e),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,$s(l),l;default:if(typeof t.status=="string")t.then(wt,wt);else{if(l=bl,l!==null&&100<l.shellSuspendCounter)throw Error(o(482));l=t,l.status="pending",l.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,$s(l),l}throw Fe=t,za}}function We(l){try{var t=l._init;return t(l._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Fe=e,za):e}}var Fe=null;function ks(){if(Fe===null)throw Error(o(459));var l=Fe;return Fe=null,l}function $s(l){if(l===za||l===hu)throw Error(o(483))}var Ta=null,on=0;function yu(l){var t=on;return on+=1,Ta===null&&(Ta=[]),ws(Ta,l,t)}function rn(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function vu(l,t){throw t.$$typeof===L?Error(o(525)):(l=Object.prototype.toString.call(t),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Ws(l){function t(p,m){if(l){var g=p.deletions;g===null?(p.deletions=[m],p.flags|=16):g.push(m)}}function e(p,m){if(!l)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function a(p){for(var m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function n(p,m){return p=$t(p,m),p.index=0,p.sibling=null,p}function u(p,m,g){return p.index=g,l?(g=p.alternate,g!==null?(g=g.index,g<m?(p.flags|=67108866,m):g):(p.flags|=67108866,m)):(p.flags|=1048576,m)}function i(p){return l&&p.alternate===null&&(p.flags|=67108866),p}function s(p,m,g,M){return m===null||m.tag!==6?(m=Yi(g,p.mode,M),m.return=p,m):(m=n(m,g),m.return=p,m)}function r(p,m,g,M){var V=g.type;return V===I?_(p,m,g.props.children,M,g.key):m!==null&&(m.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===Pl&&We(V)===m.type)?(m=n(m,g.props),rn(m,g),m.return=p,m):(m=fu(g.type,g.key,g.props,null,p.mode,M),rn(m,g),m.return=p,m)}function S(p,m,g,M){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=Gi(g,p.mode,M),m.return=p,m):(m=n(m,g.children||[]),m.return=p,m)}function _(p,m,g,M,V){return m===null||m.tag!==7?(m=Ke(g,p.mode,M,V),m.return=p,m):(m=n(m,g),m.return=p,m)}function O(p,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Yi(""+m,p.mode,g),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Z:return g=fu(m.type,m.key,m.props,null,p.mode,g),rn(g,m),g.return=p,g;case k:return m=Gi(m,p.mode,g),m.return=p,m;case Pl:return m=We(m),O(p,m,g)}if(it(m)||Jl(m))return m=Ke(m,p.mode,g,null),m.return=p,m;if(typeof m.then=="function")return O(p,yu(m),g);if(m.$$typeof===jl)return O(p,ru(p,m),g);vu(p,m)}return null}function j(p,m,g,M){var V=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return V!==null?null:s(p,m,""+g,M);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Z:return g.key===V?r(p,m,g,M):null;case k:return g.key===V?S(p,m,g,M):null;case Pl:return g=We(g),j(p,m,g,M)}if(it(g)||Jl(g))return V!==null?null:_(p,m,g,M,null);if(typeof g.then=="function")return j(p,m,yu(g),M);if(g.$$typeof===jl)return j(p,m,ru(p,g),M);vu(p,g)}return null}function z(p,m,g,M,V){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return p=p.get(g)||null,s(m,p,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Z:return p=p.get(M.key===null?g:M.key)||null,r(m,p,M,V);case k:return p=p.get(M.key===null?g:M.key)||null,S(m,p,M,V);case Pl:return M=We(M),z(p,m,g,M,V)}if(it(M)||Jl(M))return p=p.get(g)||null,_(m,p,M,V,null);if(typeof M.then=="function")return z(p,m,g,yu(M),V);if(M.$$typeof===jl)return z(p,m,g,ru(m,M),V);vu(m,M)}return null}function q(p,m,g,M){for(var V=null,ol=null,Q=m,F=m=0,nl=null;Q!==null&&F<g.length;F++){Q.index>F?(nl=Q,Q=null):nl=Q.sibling;var rl=j(p,Q,g[F],M);if(rl===null){Q===null&&(Q=nl);break}l&&Q&&rl.alternate===null&&t(p,Q),m=u(rl,m,F),ol===null?V=rl:ol.sibling=rl,ol=rl,Q=nl}if(F===g.length)return e(p,Q),cl&&Wt(p,F),V;if(Q===null){for(;F<g.length;F++)Q=O(p,g[F],M),Q!==null&&(m=u(Q,m,F),ol===null?V=Q:ol.sibling=Q,ol=Q);return cl&&Wt(p,F),V}for(Q=a(Q);F<g.length;F++)nl=z(Q,p,F,g[F],M),nl!==null&&(l&&nl.alternate!==null&&Q.delete(nl.key===null?F:nl.key),m=u(nl,m,F),ol===null?V=nl:ol.sibling=nl,ol=nl);return l&&Q.forEach(function(qe){return t(p,qe)}),cl&&Wt(p,F),V}function w(p,m,g,M){if(g==null)throw Error(o(151));for(var V=null,ol=null,Q=m,F=m=0,nl=null,rl=g.next();Q!==null&&!rl.done;F++,rl=g.next()){Q.index>F?(nl=Q,Q=null):nl=Q.sibling;var qe=j(p,Q,rl.value,M);if(qe===null){Q===null&&(Q=nl);break}l&&Q&&qe.alternate===null&&t(p,Q),m=u(qe,m,F),ol===null?V=qe:ol.sibling=qe,ol=qe,Q=nl}if(rl.done)return e(p,Q),cl&&Wt(p,F),V;if(Q===null){for(;!rl.done;F++,rl=g.next())rl=O(p,rl.value,M),rl!==null&&(m=u(rl,m,F),ol===null?V=rl:ol.sibling=rl,ol=rl);return cl&&Wt(p,F),V}for(Q=a(Q);!rl.done;F++,rl=g.next())rl=z(Q,p,F,rl.value,M),rl!==null&&(l&&rl.alternate!==null&&Q.delete(rl.key===null?F:rl.key),m=u(rl,m,F),ol===null?V=rl:ol.sibling=rl,ol=rl);return l&&Q.forEach(function(D0){return t(p,D0)}),cl&&Wt(p,F),V}function Sl(p,m,g,M){if(typeof g=="object"&&g!==null&&g.type===I&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Z:l:{for(var V=g.key;m!==null;){if(m.key===V){if(V=g.type,V===I){if(m.tag===7){e(p,m.sibling),M=n(m,g.props.children),M.return=p,p=M;break l}}else if(m.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===Pl&&We(V)===m.type){e(p,m.sibling),M=n(m,g.props),rn(M,g),M.return=p,p=M;break l}e(p,m);break}else t(p,m);m=m.sibling}g.type===I?(M=Ke(g.props.children,p.mode,M,g.key),M.return=p,p=M):(M=fu(g.type,g.key,g.props,null,p.mode,M),rn(M,g),M.return=p,p=M)}return i(p);case k:l:{for(V=g.key;m!==null;){if(m.key===V)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){e(p,m.sibling),M=n(m,g.children||[]),M.return=p,p=M;break l}else{e(p,m);break}else t(p,m);m=m.sibling}M=Gi(g,p.mode,M),M.return=p,p=M}return i(p);case Pl:return g=We(g),Sl(p,m,g,M)}if(it(g))return q(p,m,g,M);if(Jl(g)){if(V=Jl(g),typeof V!="function")throw Error(o(150));return g=V.call(g),w(p,m,g,M)}if(typeof g.then=="function")return Sl(p,m,yu(g),M);if(g.$$typeof===jl)return Sl(p,m,ru(p,g),M);vu(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(e(p,m.sibling),M=n(m,g),M.return=p,p=M):(e(p,m),M=Yi(g,p.mode,M),M.return=p,p=M),i(p)):e(p,m)}return function(p,m,g,M){try{on=0;var V=Sl(p,m,g,M);return Ta=null,V}catch(Q){if(Q===za||Q===hu)throw Q;var ol=bt(29,Q,null,p.mode);return ol.lanes=M,ol.return=p,ol}finally{}}}var Ie=Ws(!0),Fs=Ws(!1),Se=!1;function Fi(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ii(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function be(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function je(l,t,e){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(hl&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=cu(l),Rs(l,null,e),t}return iu(l,a,t,e),cu(l)}function dn(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Zf(l,e)}}function Pi(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=t:u=u.next=t}else n=u=t;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var lc=!1;function hn(){if(lc){var l=Na;if(l!==null)throw l}}function mn(l,t,e,a){lc=!1;var n=l.updateQueue;Se=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var r=s,S=r.next;r.next=null,i===null?u=S:i.next=S,i=r;var _=l.alternate;_!==null&&(_=_.updateQueue,s=_.lastBaseUpdate,s!==i&&(s===null?_.firstBaseUpdate=S:s.next=S,_.lastBaseUpdate=r))}if(u!==null){var O=n.baseState;i=0,_=S=r=null,s=u;do{var j=s.lane&-536870913,z=j!==s.lane;if(z?(al&j)===j:(a&j)===j){j!==0&&j===xa&&(lc=!0),_!==null&&(_=_.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});l:{var q=l,w=s;j=t;var Sl=e;switch(w.tag){case 1:if(q=w.payload,typeof q=="function"){O=q.call(Sl,O,j);break l}O=q;break l;case 3:q.flags=q.flags&-65537|128;case 0:if(q=w.payload,j=typeof q=="function"?q.call(Sl,O,j):q,j==null)break l;O=R({},O,j);break l;case 2:Se=!0}}j=s.callback,j!==null&&(l.flags|=64,z&&(l.flags|=8192),z=n.callbacks,z===null?n.callbacks=[j]:z.push(j))}else z={lane:j,tag:s.tag,payload:s.payload,callback:s.callback,next:null},_===null?(S=_=z,r=O):_=_.next=z,i|=j;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;z=s,s=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);_===null&&(r=O),n.baseState=r,n.firstBaseUpdate=S,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),Ae|=i,l.lanes=i,l.memoizedState=O}}function Is(l,t){if(typeof l!="function")throw Error(o(191,l));l.call(t)}function Ps(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;l<e.length;l++)Is(e[l],t)}var Aa=d(null),pu=d(0);function lo(l,t){l=ce,H(pu,l),H(Aa,t),ce=l|t.baseLanes}function tc(){H(pu,ce),H(Aa,Aa.current)}function ec(){ce=pu.current,T(Aa),T(pu)}var jt=d(null),Ct=null;function xe(l){var t=l.alternate;H(Ol,Ol.current&1),H(jt,l),Ct===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(Ct=l)}function ac(l){H(Ol,Ol.current),H(jt,l),Ct===null&&(Ct=l)}function to(l){l.tag===22?(H(Ol,Ol.current),H(jt,l),Ct===null&&(Ct=l)):Ne()}function Ne(){H(Ol,Ol.current),H(jt,jt.current)}function xt(l){T(jt),Ct===l&&(Ct=null),T(Ol)}var Ol=d(0);function gu(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||of(e)||rf(e)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pt=0,W=null,pl=null,ql=null,Su=!1,_a=!1,Pe=!1,bu=0,yn=0,Ea=null,jm=0;function _l(){throw Error(o(321))}function nc(l,t){if(t===null)return!1;for(var e=0;e<t.length&&e<l.length;e++)if(!St(l[e],t[e]))return!1;return!0}function uc(l,t,e,a,n,u){return Pt=u,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=l===null||l.memoizedState===null?Go:bc,Pe=!1,u=e(a,n),Pe=!1,_a&&(u=ao(t,e,a,n)),eo(l),u}function eo(l){A.H=gn;var t=pl!==null&&pl.next!==null;if(Pt=0,ql=pl=W=null,Su=!1,yn=0,Ea=null,t)throw Error(o(300));l===null||Bl||(l=l.dependencies,l!==null&&ou(l)&&(Bl=!0))}function ao(l,t,e,a){W=l;var n=0;do{if(_a&&(Ea=null),yn=0,_a=!1,25<=n)throw Error(o(301));if(n+=1,ql=pl=null,l.updateQueue!=null){var u=l.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Qo,u=t(e,a)}while(_a);return u}function xm(){var l=A.H,t=l.useState()[0];return t=typeof t.then=="function"?vn(t):t,l=l.useState()[0],(pl!==null?pl.memoizedState:null)!==l&&(W.flags|=1024),t}function ic(){var l=bu!==0;return bu=0,l}function cc(l,t,e){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~e}function fc(l){if(Su){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}Su=!1}Pt=0,ql=pl=W=null,_a=!1,yn=bu=0,Ea=null}function ut(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ql===null?W.memoizedState=ql=l:ql=ql.next=l,ql}function Dl(){if(pl===null){var l=W.alternate;l=l!==null?l.memoizedState:null}else l=pl.next;var t=ql===null?W.memoizedState:ql.next;if(t!==null)ql=t,pl=l;else{if(l===null)throw W.alternate===null?Error(o(467)):Error(o(310));pl=l,l={memoizedState:pl.memoizedState,baseState:pl.baseState,baseQueue:pl.baseQueue,queue:pl.queue,next:null},ql===null?W.memoizedState=ql=l:ql=ql.next=l}return ql}function ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vn(l){var t=yn;return yn+=1,Ea===null&&(Ea=[]),l=ws(Ea,l,t),t=W,(ql===null?t.memoizedState:ql.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Go:bc),l}function xu(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return vn(l);if(l.$$typeof===jl)return Wl(l)}throw Error(o(438,String(l)))}function sc(l){var t=null,e=W.updateQueue;if(e!==null&&(t=e.memoCache),t==null){var a=W.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),e===null&&(e=ju(),W.updateQueue=e),e.memoCache=t,e=t.data[t.index],e===void 0)for(e=t.data[t.index]=Array(l),a=0;a<l;a++)e[a]=Xt;return t.index++,e}function le(l,t){return typeof t=="function"?t(l):t}function Nu(l){var t=Dl();return oc(t,pl,l)}function oc(l,t,e){var a=l.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=l.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=l.baseState,n===null)l.memoizedState=u;else{t=n.next;var s=i=null,r=null,S=t,_=!1;do{var O=S.lane&-536870913;if(O!==S.lane?(al&O)===O:(Pt&O)===O){var j=S.revertLane;if(j===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),O===xa&&(_=!0);else if((Pt&j)===j){S=S.next,j===xa&&(_=!0);continue}else O={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},r===null?(s=r=O,i=u):r=r.next=O,W.lanes|=j,Ae|=j;O=S.action,Pe&&e(u,O),u=S.hasEagerState?S.eagerState:e(u,O)}else j={lane:O,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},r===null?(s=r=j,i=u):r=r.next=j,W.lanes|=O,Ae|=O;S=S.next}while(S!==null&&S!==t);if(r===null?i=u:r.next=s,!St(u,l.memoizedState)&&(Bl=!0,_&&(e=Na,e!==null)))throw e;l.memoizedState=u,l.baseState=i,l.baseQueue=r,a.lastRenderedState=u}return n===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function rc(l){var t=Dl(),e=t.queue;if(e===null)throw Error(o(311));e.lastRenderedReducer=l;var a=e.dispatch,n=e.pending,u=t.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=l(u,i.action),i=i.next;while(i!==n);St(u,t.memoizedState)||(Bl=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),e.lastRenderedState=u}return[u,a]}function no(l,t,e){var a=W,n=Dl(),u=cl;if(u){if(e===void 0)throw Error(o(407));e=e()}else e=t();var i=!St((pl||n).memoizedState,e);if(i&&(n.memoizedState=e,Bl=!0),n=n.queue,mc(co.bind(null,a,n,l),[l]),n.getSnapshot!==t||i||ql!==null&&ql.memoizedState.tag&1){if(a.flags|=2048,Ma(9,{destroy:void 0},io.bind(null,a,n,e,t),null),bl===null)throw Error(o(349));u||(Pt&127)!==0||uo(a,t,e)}return e}function uo(l,t,e){l.flags|=16384,l={getSnapshot:t,value:e},t=W.updateQueue,t===null?(t=ju(),W.updateQueue=t,t.stores=[l]):(e=t.stores,e===null?t.stores=[l]:e.push(l))}function io(l,t,e,a){t.value=e,t.getSnapshot=a,fo(t)&&so(l)}function co(l,t,e){return e(function(){fo(t)&&so(l)})}function fo(l){var t=l.getSnapshot;l=l.value;try{var e=t();return!St(l,e)}catch{return!0}}function so(l){var t=Ve(l,2);t!==null&&ht(t,l,2)}function dc(l){var t=ut();if(typeof l=="function"){var e=l;if(l=e(),Pe){de(!0);try{e()}finally{de(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:le,lastRenderedState:l},t}function oo(l,t,e,a){return l.baseState=e,oc(l,pl,typeof a=="function"?a:le)}function Nm(l,t,e,a,n){if(Au(l))throw Error(o(485));if(l=t.action,l!==null){var u={payload:n,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};A.T!==null?e(!0):u.isTransition=!1,a(u),e=t.pending,e===null?(u.next=t.pending=u,ro(t,u)):(u.next=e.next,t.pending=e.next=u)}}function ro(l,t){var e=t.action,a=t.payload,n=l.state;if(t.isTransition){var u=A.T,i={};A.T=i;try{var s=e(n,a),r=A.S;r!==null&&r(i,s),ho(l,t,s)}catch(S){hc(l,t,S)}finally{u!==null&&i.types!==null&&(u.types=i.types),A.T=u}}else try{u=e(n,a),ho(l,t,u)}catch(S){hc(l,t,S)}}function ho(l,t,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){mo(l,t,a)},function(a){return hc(l,t,a)}):mo(l,t,e)}function mo(l,t,e){t.status="fulfilled",t.value=e,yo(t),l.state=e,t=l.pending,t!==null&&(e=t.next,e===t?l.pending=null:(e=e.next,t.next=e,ro(l,e)))}function hc(l,t,e){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=e,yo(t),t=t.next;while(t!==a)}l.action=null}function yo(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function vo(l,t){return t}function po(l,t){if(cl){var e=bl.formState;if(e!==null){l:{var a=W;if(cl){if(xl){t:{for(var n=xl,u=Ut;n.nodeType!==8;){if(!u){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){xl=Rt(n.nextSibling),a=n.data==="F!";break l}}pe(a)}a=!1}a&&(t=e[0])}}return e=ut(),e.memoizedState=e.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:t},e.queue=a,e=qo.bind(null,W,a),a.dispatch=e,a=dc(!1),u=Sc.bind(null,W,!1,a.queue),a=ut(),n={state:t,dispatch:null,action:l,pending:null},a.queue=n,e=Nm.bind(null,W,n,u,e),n.dispatch=e,a.memoizedState=l,[t,e,!1]}function go(l){var t=Dl();return So(t,pl,l)}function So(l,t,e){if(t=oc(l,t,vo)[0],l=Nu(le)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=vn(t)}catch(i){throw i===za?hu:i}else a=t;t=Dl();var n=t.queue,u=n.dispatch;return e!==t.memoizedState&&(W.flags|=2048,Ma(9,{destroy:void 0},zm.bind(null,n,e),null)),[a,u,l]}function zm(l,t){l.action=t}function bo(l){var t=Dl(),e=pl;if(e!==null)return So(t,e,l);Dl(),t=t.memoizedState,e=Dl();var a=e.queue.dispatch;return e.memoizedState=l,[t,a,!1]}function Ma(l,t,e,a){return l={tag:l,create:e,deps:a,inst:t,next:null},t=W.updateQueue,t===null&&(t=ju(),W.updateQueue=t),e=t.lastEffect,e===null?t.lastEffect=l.next=l:(a=e.next,e.next=l,l.next=a,t.lastEffect=l),l}function jo(){return Dl().memoizedState}function zu(l,t,e,a){var n=ut();W.flags|=l,n.memoizedState=Ma(1|t,{destroy:void 0},e,a===void 0?null:a)}function Tu(l,t,e,a){var n=Dl();a=a===void 0?null:a;var u=n.memoizedState.inst;pl!==null&&a!==null&&nc(a,pl.memoizedState.deps)?n.memoizedState=Ma(t,u,e,a):(W.flags|=l,n.memoizedState=Ma(1|t,u,e,a))}function xo(l,t){zu(8390656,8,l,t)}function mc(l,t){Tu(2048,8,l,t)}function Tm(l){W.flags|=4;var t=W.updateQueue;if(t===null)t=ju(),W.updateQueue=t,t.events=[l];else{var e=t.events;e===null?t.events=[l]:e.push(l)}}function No(l){var t=Dl().memoizedState;return Tm({ref:t,nextImpl:l}),function(){if((hl&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function zo(l,t){return Tu(4,2,l,t)}function To(l,t){return Tu(4,4,l,t)}function Ao(l,t){if(typeof t=="function"){l=l();var e=t(l);return function(){typeof e=="function"?e():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function _o(l,t,e){e=e!=null?e.concat([l]):null,Tu(4,4,Ao.bind(null,t,l),e)}function yc(){}function Eo(l,t){var e=Dl();t=t===void 0?null:t;var a=e.memoizedState;return t!==null&&nc(t,a[1])?a[0]:(e.memoizedState=[l,t],l)}function Mo(l,t){var e=Dl();t=t===void 0?null:t;var a=e.memoizedState;if(t!==null&&nc(t,a[1]))return a[0];if(a=l(),Pe){de(!0);try{l()}finally{de(!1)}}return e.memoizedState=[a,t],a}function vc(l,t,e){return e===void 0||(Pt&1073741824)!==0&&(al&261930)===0?l.memoizedState=t:(l.memoizedState=e,l=Or(),W.lanes|=l,Ae|=l,e)}function Oo(l,t,e,a){return St(e,t)?e:Aa.current!==null?(l=vc(l,e,a),St(l,t)||(Bl=!0),l):(Pt&42)===0||(Pt&1073741824)!==0&&(al&261930)===0?(Bl=!0,l.memoizedState=e):(l=Or(),W.lanes|=l,Ae|=l,t)}function Do(l,t,e,a,n){var u=C.p;C.p=u!==0&&8>u?u:8;var i=A.T,s={};A.T=s,Sc(l,!1,t,e);try{var r=n(),S=A.S;if(S!==null&&S(s,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var _=bm(r,a);pn(l,t,_,Tt(l))}else pn(l,t,a,Tt(l))}catch(O){pn(l,t,{then:function(){},status:"rejected",reason:O},Tt())}finally{C.p=u,i!==null&&s.types!==null&&(i.types=s.types),A.T=i}}function Am(){}function pc(l,t,e,a){if(l.tag!==5)throw Error(o(476));var n=Uo(l).queue;Do(l,n,t,K,e===null?Am:function(){return Co(l),e(a)})}function Uo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:le,lastRenderedState:K},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:le,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Co(l){var t=Uo(l);t.next===null&&(t=l.alternate.memoizedState),pn(l,t.next.queue,{},Tt())}function gc(){return Wl(Rn)}function Ro(){return Dl().memoizedState}function Ho(){return Dl().memoizedState}function _m(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=Tt();l=be(e);var a=je(t,l,e);a!==null&&(ht(a,t,e),dn(a,t,e)),t={cache:wi()},l.payload=t;return}t=t.return}}function Em(l,t,e){var a=Tt();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},Au(l)?Bo(t,e):(e=qi(l,t,e,a),e!==null&&(ht(e,l,a),Yo(e,t,a)))}function qo(l,t,e){var a=Tt();pn(l,t,e,a)}function pn(l,t,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(Au(l))Bo(t,n);else{var u=l.alternate;if(l.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,s=u(i,e);if(n.hasEagerState=!0,n.eagerState=s,St(s,i))return iu(l,t,n,0),bl===null&&uu(),!1}catch{}finally{}if(e=qi(l,t,n,a),e!==null)return ht(e,l,a),Yo(e,t,a),!0}return!1}function Sc(l,t,e,a){if(a={lane:2,revertLane:Fc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Au(l)){if(t)throw Error(o(479))}else t=qi(l,e,a,2),t!==null&&ht(t,l,2)}function Au(l){var t=l.alternate;return l===W||t!==null&&t===W}function Bo(l,t){_a=Su=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function Yo(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Zf(l,e)}}var gn={readContext:Wl,use:xu,useCallback:_l,useContext:_l,useEffect:_l,useImperativeHandle:_l,useLayoutEffect:_l,useInsertionEffect:_l,useMemo:_l,useReducer:_l,useRef:_l,useState:_l,useDebugValue:_l,useDeferredValue:_l,useTransition:_l,useSyncExternalStore:_l,useId:_l,useHostTransitionStatus:_l,useFormState:_l,useActionState:_l,useOptimistic:_l,useMemoCache:_l,useCacheRefresh:_l};gn.useEffectEvent=_l;var Go={readContext:Wl,use:xu,useCallback:function(l,t){return ut().memoizedState=[l,t===void 0?null:t],l},useContext:Wl,useEffect:xo,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,zu(4194308,4,Ao.bind(null,t,l),e)},useLayoutEffect:function(l,t){return zu(4194308,4,l,t)},useInsertionEffect:function(l,t){zu(4,2,l,t)},useMemo:function(l,t){var e=ut();t=t===void 0?null:t;var a=l();if(Pe){de(!0);try{l()}finally{de(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=ut();if(e!==void 0){var n=e(t);if(Pe){de(!0);try{e(t)}finally{de(!1)}}}else n=t;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=Em.bind(null,W,l),[a.memoizedState,l]},useRef:function(l){var t=ut();return l={current:l},t.memoizedState=l},useState:function(l){l=dc(l);var t=l.queue,e=qo.bind(null,W,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:yc,useDeferredValue:function(l,t){var e=ut();return vc(e,l,t)},useTransition:function(){var l=dc(!1);return l=Do.bind(null,W,l.queue,!0,!1),ut().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=W,n=ut();if(cl){if(e===void 0)throw Error(o(407));e=e()}else{if(e=t(),bl===null)throw Error(o(349));(al&127)!==0||uo(a,t,e)}n.memoizedState=e;var u={value:e,getSnapshot:t};return n.queue=u,xo(co.bind(null,a,u,l),[l]),a.flags|=2048,Ma(9,{destroy:void 0},io.bind(null,a,u,e,t),null),e},useId:function(){var l=ut(),t=bl.identifierPrefix;if(cl){var e=Lt,a=Zt;e=(a&~(1<<32-gt(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=bu++,0<e&&(t+="H"+e.toString(32)),t+="_"}else e=jm++,t="_"+t+"r_"+e.toString(32)+"_";return l.memoizedState=t},useHostTransitionStatus:gc,useFormState:po,useActionState:po,useOptimistic:function(l){var t=ut();t.memoizedState=t.baseState=l;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=e,t=Sc.bind(null,W,!0,e),e.dispatch=t,[l,t]},useMemoCache:sc,useCacheRefresh:function(){return ut().memoizedState=_m.bind(null,W)},useEffectEvent:function(l){var t=ut(),e={impl:l};return t.memoizedState=e,function(){if((hl&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}},bc={readContext:Wl,use:xu,useCallback:Eo,useContext:Wl,useEffect:mc,useImperativeHandle:_o,useInsertionEffect:zo,useLayoutEffect:To,useMemo:Mo,useReducer:Nu,useRef:jo,useState:function(){return Nu(le)},useDebugValue:yc,useDeferredValue:function(l,t){var e=Dl();return Oo(e,pl.memoizedState,l,t)},useTransition:function(){var l=Nu(le)[0],t=Dl().memoizedState;return[typeof l=="boolean"?l:vn(l),t]},useSyncExternalStore:no,useId:Ro,useHostTransitionStatus:gc,useFormState:go,useActionState:go,useOptimistic:function(l,t){var e=Dl();return oo(e,pl,l,t)},useMemoCache:sc,useCacheRefresh:Ho};bc.useEffectEvent=No;var Qo={readContext:Wl,use:xu,useCallback:Eo,useContext:Wl,useEffect:mc,useImperativeHandle:_o,useInsertionEffect:zo,useLayoutEffect:To,useMemo:Mo,useReducer:rc,useRef:jo,useState:function(){return rc(le)},useDebugValue:yc,useDeferredValue:function(l,t){var e=Dl();return pl===null?vc(e,l,t):Oo(e,pl.memoizedState,l,t)},useTransition:function(){var l=rc(le)[0],t=Dl().memoizedState;return[typeof l=="boolean"?l:vn(l),t]},useSyncExternalStore:no,useId:Ro,useHostTransitionStatus:gc,useFormState:bo,useActionState:bo,useOptimistic:function(l,t){var e=Dl();return pl!==null?oo(e,pl,l,t):(e.baseState=l,[l,e.queue.dispatch])},useMemoCache:sc,useCacheRefresh:Ho};Qo.useEffectEvent=No;function jc(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:R({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var xc={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=Tt(),n=be(a);n.payload=t,e!=null&&(n.callback=e),t=je(l,n,a),t!==null&&(ht(t,l,a),dn(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=Tt(),n=be(a);n.tag=1,n.payload=t,e!=null&&(n.callback=e),t=je(l,n,a),t!==null&&(ht(t,l,a),dn(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=Tt(),a=be(e);a.tag=2,t!=null&&(a.callback=t),t=je(l,a,e),t!==null&&(ht(t,l,e),dn(t,l,e))}};function Xo(l,t,e,a,n,u,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!an(e,a)||!an(n,u):!0}function Zo(l,t,e,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,a),t.state!==l&&xc.enqueueReplaceState(t,t.state,null)}function la(l,t){var e=t;if("ref"in t){e={};for(var a in t)a!=="ref"&&(e[a]=t[a])}if(l=l.defaultProps){e===t&&(e=R({},e));for(var n in l)e[n]===void 0&&(e[n]=l[n])}return e}function Lo(l){nu(l)}function Vo(l){console.error(l)}function Ko(l){nu(l)}function _u(l,t){try{var e=l.onUncaughtError;e(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Jo(l,t,e){try{var a=l.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Nc(l,t,e){return e=be(e),e.tag=3,e.payload={element:null},e.callback=function(){_u(l,t)},e}function wo(l){return l=be(l),l.tag=3,l}function ko(l,t,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;l.payload=function(){return n(u)},l.callback=function(){Jo(t,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){Jo(t,e,a),typeof n!="function"&&(_e===null?_e=new Set([this]):_e.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function Mm(l,t,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&ja(t,e,n,!0),e=jt.current,e!==null){switch(e.tag){case 31:case 13:return Ct===null?Gu():e.alternate===null&&El===0&&(El=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===mu?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),kc(l,a,n)),!1;case 22:return e.flags|=65536,a===mu?e.flags|=16384:(t=e.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=t):(e=t.retryQueue,e===null?t.retryQueue=new Set([a]):e.add(a)),kc(l,a,n)),!1}throw Error(o(435,e.tag))}return kc(l,a,n),Gu(),!1}if(cl)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Zi&&(l=Error(o(422),{cause:a}),cn(Mt(l,e)))):(a!==Zi&&(t=Error(o(423),{cause:a}),cn(Mt(t,e))),l=l.current.alternate,l.flags|=65536,n&=-n,l.lanes|=n,a=Mt(a,e),n=Nc(l.stateNode,a,n),Pi(l,n),El!==4&&(El=2)),!1;var u=Error(o(520),{cause:a});if(u=Mt(u,e),An===null?An=[u]:An.push(u),El!==4&&(El=2),t===null)return!0;a=Mt(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=n&-n,e.lanes|=l,l=Nc(e.stateNode,a,l),Pi(e,l),!1;case 1:if(t=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(_e===null||!_e.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=wo(n),ko(n,l,e,a),Pi(e,n),!1}e=e.return}while(e!==null);return!1}var zc=Error(o(461)),Bl=!1;function Fl(l,t,e,a){t.child=l===null?Fs(t,null,e,a):Ie(t,l.child,e,a)}function $o(l,t,e,a,n){e=e.render;var u=t.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return ke(t),a=uc(l,t,e,i,u,n),s=ic(),l!==null&&!Bl?(cc(l,t,n),te(l,t,n)):(cl&&s&&Qi(t),t.flags|=1,Fl(l,t,a,n),t.child)}function Wo(l,t,e,a,n){if(l===null){var u=e.type;return typeof u=="function"&&!Bi(u)&&u.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=u,Fo(l,t,u,a,n)):(l=fu(e.type,null,a,t,t.mode,n),l.ref=t.ref,l.return=t,t.child=l)}if(u=l.child,!Uc(l,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:an,e(i,a)&&l.ref===t.ref)return te(l,t,n)}return t.flags|=1,l=$t(u,a),l.ref=t.ref,l.return=t,t.child=l}function Fo(l,t,e,a,n){if(l!==null){var u=l.memoizedProps;if(an(u,a)&&l.ref===t.ref)if(Bl=!1,t.pendingProps=a=u,Uc(l,n))(l.flags&131072)!==0&&(Bl=!0);else return t.lanes=l.lanes,te(l,t,n)}return Tc(l,t,e,a,n)}function Io(l,t,e,a){var n=a.children,u=l!==null?l.memoizedState:null;if(l===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,l!==null){for(a=t.child=l.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Po(l,t,u,e,a)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&du(t,u!==null?u.cachePool:null),u!==null?lo(t,u):tc(),to(t);else return a=t.lanes=536870912,Po(l,t,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(du(t,u.cachePool),lo(t,u),Ne(),t.memoizedState=null):(l!==null&&du(t,null),tc(),Ne());return Fl(l,t,n,e),t.child}function Sn(l,t){return l!==null&&l.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Po(l,t,e,a,n){var u=$i();return u=u===null?null:{parent:Hl._currentValue,pool:u},t.memoizedState={baseLanes:e,cachePool:u},l!==null&&du(t,null),tc(),to(t),l!==null&&ja(l,t,a,!0),t.childLanes=n,null}function Eu(l,t){return t=Ou({mode:t.mode,children:t.children},l.mode),t.ref=l.ref,l.child=t,t.return=l,t}function lr(l,t,e){return Ie(t,l.child,null,e),l=Eu(t,t.pendingProps),l.flags|=2,xt(t),t.memoizedState=null,l}function Om(l,t,e){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,l===null){if(cl){if(a.mode==="hidden")return l=Eu(t,a),t.lanes=536870912,Sn(null,l);if(ac(t),(l=xl)?(l=dd(l,Ut),l=l!==null&&l.data==="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:ye!==null?{id:Zt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},e=qs(l),e.return=t,t.child=e,$l=t,xl=null)):l=null,l===null)throw pe(t);return t.lanes=536870912,null}return Eu(t,a)}var u=l.memoizedState;if(u!==null){var i=u.dehydrated;if(ac(t),n)if(t.flags&256)t.flags&=-257,t=lr(l,t,e);else if(t.memoizedState!==null)t.child=l.child,t.flags|=128,t=null;else throw Error(o(558));else if(Bl||ja(l,t,e,!1),n=(e&l.childLanes)!==0,Bl||n){if(a=bl,a!==null&&(i=Lf(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ve(l,i),ht(a,l,i),zc;Gu(),t=lr(l,t,e)}else l=u.treeContext,xl=Rt(i.nextSibling),$l=t,cl=!0,ve=null,Ut=!1,l!==null&&Gs(t,l),t=Eu(t,a),t.flags|=4096;return t}return l=$t(l.child,{mode:a.mode,children:a.children}),l.ref=t.ref,t.child=l,l.return=t,l}function Mu(l,t){var e=t.ref;if(e===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(o(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function Tc(l,t,e,a,n){return ke(t),e=uc(l,t,e,a,void 0,n),a=ic(),l!==null&&!Bl?(cc(l,t,n),te(l,t,n)):(cl&&a&&Qi(t),t.flags|=1,Fl(l,t,e,n),t.child)}function tr(l,t,e,a,n,u){return ke(t),t.updateQueue=null,e=ao(t,a,e,n),eo(l),a=ic(),l!==null&&!Bl?(cc(l,t,u),te(l,t,u)):(cl&&a&&Qi(t),t.flags|=1,Fl(l,t,e,u),t.child)}function er(l,t,e,a,n){if(ke(t),t.stateNode===null){var u=pa,i=e.contextType;typeof i=="object"&&i!==null&&(u=Wl(i)),u=new e(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=xc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Fi(t),i=e.contextType,u.context=typeof i=="object"&&i!==null?Wl(i):pa,u.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(jc(t,e,i,a),u.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&xc.enqueueReplaceState(u,u.state,null),mn(t,a,u,n),hn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){u=t.stateNode;var s=t.memoizedProps,r=la(e,s);u.props=r;var S=u.context,_=e.contextType;i=pa,typeof _=="object"&&_!==null&&(i=Wl(_));var O=e.getDerivedStateFromProps;_=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s||S!==i)&&Zo(t,u,a,i),Se=!1;var j=t.memoizedState;u.state=j,mn(t,a,u,n),hn(),S=t.memoizedState,s||j!==S||Se?(typeof O=="function"&&(jc(t,e,O,a),S=t.memoizedState),(r=Se||Xo(t,e,r,a,j,S,i))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=i,a=r):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Ii(l,t),i=t.memoizedProps,_=la(e,i),u.props=_,O=t.pendingProps,j=u.context,S=e.contextType,r=pa,typeof S=="object"&&S!==null&&(r=Wl(S)),s=e.getDerivedStateFromProps,(S=typeof s=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==O||j!==r)&&Zo(t,u,a,r),Se=!1,j=t.memoizedState,u.state=j,mn(t,a,u,n),hn();var z=t.memoizedState;i!==O||j!==z||Se||l!==null&&l.dependencies!==null&&ou(l.dependencies)?(typeof s=="function"&&(jc(t,e,s,a),z=t.memoizedState),(_=Se||Xo(t,e,_,a,j,z,r)||l!==null&&l.dependencies!==null&&ou(l.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,r),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,r)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&j===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&j===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=r,a=_):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&j===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&j===l.memoizedState||(t.flags|=1024),a=!1)}return u=a,Mu(l,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,l!==null&&a?(t.child=Ie(t,l.child,null,n),t.child=Ie(t,null,e,n)):Fl(l,t,e,n),t.memoizedState=u.state,l=t.child):l=te(l,t,n),l}function ar(l,t,e,a){return Je(),t.flags|=256,Fl(l,t,e,a),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _c(l){return{baseLanes:l,cachePool:Ks()}}function Ec(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=zt),l}function nr(l,t,e){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=l!==null&&l.memoizedState===null?!1:(Ol.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(cl){if(n?xe(t):Ne(),(l=xl)?(l=dd(l,Ut),l=l!==null&&l.data!=="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:ye!==null?{id:Zt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},e=qs(l),e.return=t,t.child=e,$l=t,xl=null)):l=null,l===null)throw pe(t);return rf(l)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Ne(),n=t.mode,s=Ou({mode:"hidden",children:s},n),a=Ke(a,n,e,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=_c(e),a.childLanes=Ec(l,i,e),t.memoizedState=Ac,Sn(null,a)):(xe(t),Mc(t,s))}var r=l.memoizedState;if(r!==null&&(s=r.dehydrated,s!==null)){if(u)t.flags&256?(xe(t),t.flags&=-257,t=Oc(l,t,e)):t.memoizedState!==null?(Ne(),t.child=l.child,t.flags|=128,t=null):(Ne(),s=a.fallback,n=t.mode,a=Ou({mode:"visible",children:a.children},n),s=Ke(s,n,e,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Ie(t,l.child,null,e),a=t.child,a.memoizedState=_c(e),a.childLanes=Ec(l,i,e),t.memoizedState=Ac,t=Sn(null,a));else if(xe(t),rf(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var S=i.dgst;i=S,a=Error(o(419)),a.stack="",a.digest=i,cn({value:a,source:null,stack:null}),t=Oc(l,t,e)}else if(Bl||ja(l,t,e,!1),i=(e&l.childLanes)!==0,Bl||i){if(i=bl,i!==null&&(a=Lf(i,e),a!==0&&a!==r.retryLane))throw r.retryLane=a,Ve(l,a),ht(i,l,a),zc;of(s)||Gu(),t=Oc(l,t,e)}else of(s)?(t.flags|=192,t.child=l.child,t=null):(l=r.treeContext,xl=Rt(s.nextSibling),$l=t,cl=!0,ve=null,Ut=!1,l!==null&&Gs(t,l),t=Mc(t,a.children),t.flags|=4096);return t}return n?(Ne(),s=a.fallback,n=t.mode,r=l.child,S=r.sibling,a=$t(r,{mode:"hidden",children:a.children}),a.subtreeFlags=r.subtreeFlags&65011712,S!==null?s=$t(S,s):(s=Ke(s,n,e,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,Sn(null,a),a=t.child,s=l.child.memoizedState,s===null?s=_c(e):(n=s.cachePool,n!==null?(r=Hl._currentValue,n=n.parent!==r?{parent:r,pool:r}:n):n=Ks(),s={baseLanes:s.baseLanes|e,cachePool:n}),a.memoizedState=s,a.childLanes=Ec(l,i,e),t.memoizedState=Ac,Sn(l.child,a)):(xe(t),e=l.child,l=e.sibling,e=$t(e,{mode:"visible",children:a.children}),e.return=t,e.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=e,t.memoizedState=null,e)}function Mc(l,t){return t=Ou({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function Ou(l,t){return l=bt(22,l,null,t),l.lanes=0,l}function Oc(l,t,e){return Ie(t,l.child,null,e),l=Mc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function ur(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Ki(l.return,t,e)}function Dc(l,t,e,a,n,u){var i=l.memoizedState;i===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function ir(l,t,e){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Ol.current,s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,H(Ol,i),Fl(l,t,a,e),a=cl?un:0,!s&&l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&ur(l,e,t);else if(l.tag===19)ur(l,e,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n){case"forwards":for(e=t.child,n=null;e!==null;)l=e.alternate,l!==null&&gu(l)===null&&(n=e),e=e.sibling;e=n,e===null?(n=t.child,t.child=null):(n=e.sibling,e.sibling=null),Dc(t,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=t.child,t.child=null;n!==null;){if(l=n.alternate,l!==null&&gu(l)===null){t.child=n;break}l=n.sibling,n.sibling=e,e=n,n=l}Dc(t,!0,e,null,u,a);break;case"together":Dc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function te(l,t,e){if(l!==null&&(t.dependencies=l.dependencies),Ae|=t.lanes,(e&t.childLanes)===0)if(l!==null){if(ja(l,t,e,!1),(e&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(o(153));if(t.child!==null){for(l=t.child,e=$t(l,l.pendingProps),t.child=e,e.return=t;l.sibling!==null;)l=l.sibling,e=e.sibling=$t(l,l.pendingProps),e.return=t;e.sibling=null}return t.child}function Uc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&ou(l)))}function Dm(l,t,e){switch(t.tag){case 3:wl(t,t.stateNode.containerInfo),ge(t,Hl,l.memoizedState.cache),Je();break;case 27:case 5:Ye(t);break;case 4:wl(t,t.stateNode.containerInfo);break;case 10:ge(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ac(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xe(t),t.flags|=128,null):(e&t.child.childLanes)!==0?nr(l,t,e):(xe(t),l=te(l,t,e),l!==null?l.sibling:null);xe(t);break;case 19:var n=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(ja(l,t,e,!1),a=(e&t.childLanes)!==0),n){if(a)return ir(l,t,e);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Ol,Ol.current),a)break;return null;case 22:return t.lanes=0,Io(l,t,e,t.pendingProps);case 24:ge(t,Hl,l.memoizedState.cache)}return te(l,t,e)}function cr(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)Bl=!0;else{if(!Uc(l,e)&&(t.flags&128)===0)return Bl=!1,Dm(l,t,e);Bl=(l.flags&131072)!==0}else Bl=!1,cl&&(t.flags&1048576)!==0&&Ys(t,un,t.index);switch(t.lanes=0,t.tag){case 16:l:{var a=t.pendingProps;if(l=We(t.elementType),t.type=l,typeof l=="function")Bi(l)?(a=la(l,a),t.tag=1,t=er(null,t,l,a,e)):(t.tag=0,t=Tc(null,t,l,a,e));else{if(l!=null){var n=l.$$typeof;if(n===Ml){t.tag=11,t=$o(null,t,l,a,e);break l}else if(n===P){t.tag=14,t=Wo(null,t,l,a,e);break l}}throw t=lt(l)||l,Error(o(306,t,""))}}return t;case 0:return Tc(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,n=la(a,t.pendingProps),er(l,t,a,n,e);case 3:l:{if(wl(t,t.stateNode.containerInfo),l===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Ii(l,t),mn(t,a,null,e);var i=t.memoizedState;if(a=i.cache,ge(t,Hl,a),a!==u.cache&&Ji(t,[Hl],e,!0),hn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ar(l,t,a,e);break l}else if(a!==n){n=Mt(Error(o(424)),t),cn(n),t=ar(l,t,a,e);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xl=Rt(l.firstChild),$l=t,cl=!0,ve=null,Ut=!0,e=Fs(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Je(),a===n){t=te(l,t,e);break l}Fl(l,t,a,e)}t=t.child}return t;case 26:return Mu(l,t),l===null?(e=gd(t.type,null,t.pendingProps,null))?t.memoizedState=e:cl||(e=t.type,l=t.pendingProps,a=Ju(ll.current).createElement(e),a[kl]=t,a[ct]=l,Il(a,e,l),Zl(a),t.stateNode=a):t.memoizedState=gd(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Ye(t),l===null&&cl&&(a=t.stateNode=yd(t.type,t.pendingProps,ll.current),$l=t,Ut=!0,n=xl,De(t.type)?(df=n,xl=Rt(a.firstChild)):xl=n),Fl(l,t,t.pendingProps.children,e),Mu(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&cl&&((n=a=xl)&&(a=c0(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,$l=t,xl=Rt(a.firstChild),Ut=!1,n=!0):n=!1),n||pe(t)),Ye(t),n=t.type,u=t.pendingProps,i=l!==null?l.memoizedProps:null,a=u.children,cf(n,u)?a=null:i!==null&&cf(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=uc(l,t,xm,null,null,e),Rn._currentValue=n),Mu(l,t),Fl(l,t,a,e),t.child;case 6:return l===null&&cl&&((l=e=xl)&&(e=f0(e,t.pendingProps,Ut),e!==null?(t.stateNode=e,$l=t,xl=null,l=!0):l=!1),l||pe(t)),null;case 13:return nr(l,t,e);case 4:return wl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=Ie(t,null,a,e):Fl(l,t,a,e),t.child;case 11:return $o(l,t,t.type,t.pendingProps,e);case 7:return Fl(l,t,t.pendingProps,e),t.child;case 8:return Fl(l,t,t.pendingProps.children,e),t.child;case 12:return Fl(l,t,t.pendingProps.children,e),t.child;case 10:return a=t.pendingProps,ge(t,t.type,a.value),Fl(l,t,a.children,e),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,ke(t),n=Wl(n),a=a(n),t.flags|=1,Fl(l,t,a,e),t.child;case 14:return Wo(l,t,t.type,t.pendingProps,e);case 15:return Fo(l,t,t.type,t.pendingProps,e);case 19:return ir(l,t,e);case 31:return Om(l,t,e);case 22:return Io(l,t,e,t.pendingProps);case 24:return ke(t),a=Wl(Hl),l===null?(n=$i(),n===null&&(n=bl,u=wi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),t.memoizedState={parent:a,cache:n},Fi(t),ge(t,Hl,n)):((l.lanes&e)!==0&&(Ii(l,t),mn(t,null,null,e),hn()),n=l.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ge(t,Hl,a)):(a=u.cache,ge(t,Hl,a),a!==n.cache&&Ji(t,[Hl],e,!0))),Fl(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ee(l){l.flags|=4}function Cc(l,t,e,a,n){if((t=(l.mode&32)!==0)&&(t=!1),t){if(l.flags|=16777216,(n&335544128)===n)if(l.stateNode.complete)l.flags|=8192;else if(Rr())l.flags|=8192;else throw Fe=mu,Wi}else l.flags&=-16777217}function fr(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Nd(t))if(Rr())l.flags|=8192;else throw Fe=mu,Wi}function Du(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?Qf():536870912,l.lanes|=t,Ca|=t)}function bn(l,t){if(!cl)switch(l.tailMode){case"hidden":t=l.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?l.tail=null:e.sibling=null;break;case"collapsed":e=l.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function Nl(l){var t=l.alternate!==null&&l.alternate.child===l.child,e=0,a=0;if(t)for(var n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=l,n=n.sibling;else for(n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=l,n=n.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function Um(l,t,e){var a=t.pendingProps;switch(Xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nl(t),null;case 1:return Nl(t),null;case 3:return e=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Hl),Tl(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(l===null||l.child===null)&&(ba(t)?ee(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Li())),Nl(t),null;case 26:var n=t.type,u=t.memoizedState;return l===null?(ee(t),u!==null?(Nl(t),fr(t,u)):(Nl(t),Cc(t,n,null,a,e))):u?u!==l.memoizedState?(ee(t),Nl(t),fr(t,u)):(Nl(t),t.flags&=-16777217):(l=l.memoizedProps,l!==a&&ee(t),Nl(t),Cc(t,n,l,a,e)),null;case 27:if(G(t),e=ll.current,n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&ee(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Nl(t),null}l=B.current,ba(t)?Qs(t):(l=yd(n,a,e),t.stateNode=l,ee(t))}return Nl(t),null;case 5:if(G(t),n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&ee(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Nl(t),null}if(u=B.current,ba(t))Qs(t);else{var i=Ju(ll.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[kl]=t,u[ct]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;l:switch(Il(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&ee(t)}}return Nl(t),Cc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&ee(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(l=ll.current,ba(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,n=$l,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[kl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||nd(l.nodeValue,e)),l||pe(t,!0)}else l=Ju(l).createTextNode(a),l[kl]=t,t.stateNode=l}return Nl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(a=ba(t),e!==null){if(l===null){if(!a)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(557));l[kl]=t}else Je(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nl(t),l=!1}else e=Li(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Nl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=ba(t),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[kl]=t}else Je(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nl(t),n=!1}else n=Li(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),Du(t,t.updateQueue),Nl(t),null);case 4:return Tl(),l===null&&tf(t.stateNode.containerInfo),Nl(t),null;case 10:return It(t.type),Nl(t),null;case 19:if(T(Ol),a=t.memoizedState,a===null)return Nl(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)bn(a,!1);else{if(El!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(u=gu(l),u!==null){for(t.flags|=128,bn(a,!1),l=u.updateQueue,t.updateQueue=l,Du(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Hs(e,l),e=e.sibling;return H(Ol,Ol.current&1|2),cl&&Wt(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&vt()>qu&&(t.flags|=128,n=!0,bn(a,!1),t.lanes=4194304)}else{if(!n)if(l=gu(u),l!==null){if(t.flags|=128,n=!0,l=l.updateQueue,t.updateQueue=l,Du(t,l),bn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!cl)return Nl(t),null}else 2*vt()-a.renderingStartTime>qu&&e!==536870912&&(t.flags|=128,n=!0,bn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(l=a.last,l!==null?l.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=vt(),l.sibling=null,e=Ol.current,H(Ol,n?e&1|2:e&1),cl&&Wt(t,a.treeForkCount),l):(Nl(t),null);case 22:case 23:return xt(t),ec(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(e&536870912)!==0&&(t.flags&128)===0&&(Nl(t),t.subtreeFlags&6&&(t.flags|=8192)):Nl(t),e=t.updateQueue,e!==null&&Du(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==e&&(t.flags|=2048),l!==null&&T($e),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),It(Hl),Nl(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Cm(l,t){switch(Xi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return It(Hl),Tl(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return G(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(o(340));Je()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(xt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Je()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return T(Ol),null;case 4:return Tl(),null;case 10:return It(t.type),null;case 22:case 23:return xt(t),ec(),l!==null&&T($e),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return It(Hl),null;case 25:return null;default:return null}}function sr(l,t){switch(Xi(t),t.tag){case 3:It(Hl),Tl();break;case 26:case 27:case 5:G(t);break;case 4:Tl();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:T(Ol);break;case 10:It(t.type);break;case 22:case 23:xt(t),ec(),l!==null&&T($e);break;case 24:It(Hl)}}function jn(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&l)===l){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(s){vl(t,t.return,s)}}function ze(l,t,e){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&l)===l){var i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var r=e,S=s;try{S()}catch(_){vl(n,r,_)}}}a=a.next}while(a!==u)}}catch(_){vl(t,t.return,_)}}function or(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{Ps(t,e)}catch(a){vl(l,l.return,a)}}}function rr(l,t,e){e.props=la(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){vl(l,t,a)}}function xn(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof e=="function"?l.refCleanup=e(a):e.current=a}}catch(n){vl(l,t,n)}}function Vt(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){vl(l,t,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){vl(l,t,n)}else e.current=null}function dr(l){var t=l.type,e=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break l;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){vl(l,l.return,n)}}function Rc(l,t,e){try{var a=l.stateNode;t0(a,l.type,e,t),a[ct]=t}catch(n){vl(l,l.return,n)}}function hr(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&De(l.type)||l.tag===4}function Hc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||hr(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&De(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function qc(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(l,t):(t=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.appendChild(l),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=wt));else if(a!==4&&(a===27&&De(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(qc(l,t,e),l=l.sibling;l!==null;)qc(l,t,e),l=l.sibling}function Uu(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?e.insertBefore(l,t):e.appendChild(l);else if(a!==4&&(a===27&&De(l.type)&&(e=l.stateNode),l=l.child,l!==null))for(Uu(l,t,e),l=l.sibling;l!==null;)Uu(l,t,e),l=l.sibling}function mr(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Il(t,a,e),t[kl]=l,t[ct]=e}catch(u){vl(l,l.return,u)}}var ae=!1,Yl=!1,Bc=!1,yr=typeof WeakSet=="function"?WeakSet:Set,Ll=null;function Rm(l,t){if(l=l.containerInfo,nf=Pu,l=As(l),Oi(l)){if("selectionStart"in l)var e={start:l.selectionStart,end:l.selectionEnd};else l:{e=(e=l.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break l}var i=0,s=-1,r=-1,S=0,_=0,O=l,j=null;t:for(;;){for(var z;O!==e||n!==0&&O.nodeType!==3||(s=i+n),O!==u||a!==0&&O.nodeType!==3||(r=i+a),O.nodeType===3&&(i+=O.nodeValue.length),(z=O.firstChild)!==null;)j=O,O=z;for(;;){if(O===l)break t;if(j===e&&++S===n&&(s=i),j===u&&++_===a&&(r=i),(z=O.nextSibling)!==null)break;O=j,j=O.parentNode}O=z}e=s===-1||r===-1?null:{start:s,end:r}}else e=null}e=e||{start:0,end:0}}else e=null;for(uf={focusedElem:l,selectionRange:e},Pu=!1,Ll=t;Ll!==null;)if(t=Ll,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Ll=l;else for(;Ll!==null;){switch(t=Ll,u=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(e=0;e<l.length;e++)n=l[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&u!==null){l=void 0,e=t,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var q=la(e.type,n);l=a.getSnapshotBeforeUpdate(q,u),a.__reactInternalSnapshotBeforeUpdate=l}catch(w){vl(e,e.return,w)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,e=l.nodeType,e===9)sf(l);else if(e===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":sf(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(o(163))}if(l=t.sibling,l!==null){l.return=t.return,Ll=l;break}Ll=t.return}}function vr(l,t,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:ue(l,e),a&4&&jn(5,e);break;case 1:if(ue(l,e),a&4)if(l=e.stateNode,t===null)try{l.componentDidMount()}catch(i){vl(e,e.return,i)}else{var n=la(e.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(n,t,l.__reactInternalSnapshotBeforeUpdate)}catch(i){vl(e,e.return,i)}}a&64&&or(e),a&512&&xn(e,e.return);break;case 3:if(ue(l,e),a&64&&(l=e.updateQueue,l!==null)){if(t=null,e.child!==null)switch(e.child.tag){case 27:case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}try{Ps(l,t)}catch(i){vl(e,e.return,i)}}break;case 27:t===null&&a&4&&mr(e);case 26:case 5:ue(l,e),t===null&&a&4&&dr(e),a&512&&xn(e,e.return);break;case 12:ue(l,e);break;case 31:ue(l,e),a&4&&Sr(l,e);break;case 13:ue(l,e),a&4&&br(l,e),a&64&&(l=e.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(e=Lm.bind(null,e),s0(l,e))));break;case 22:if(a=e.memoizedState!==null||ae,!a){t=t!==null&&t.memoizedState!==null||Yl,n=ae;var u=Yl;ae=a,(Yl=t)&&!u?ie(l,e,(e.subtreeFlags&8772)!==0):ue(l,e),ae=n,Yl=u}break;case 30:break;default:ue(l,e)}}function pr(l){var t=l.alternate;t!==null&&(l.alternate=null,pr(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&hi(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var zl=null,st=!1;function ne(l,t,e){for(e=e.child;e!==null;)gr(l,t,e),e=e.sibling}function gr(l,t,e){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Ka,e)}catch{}switch(e.tag){case 26:Yl||Vt(e,t),ne(l,t,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Yl||Vt(e,t);var a=zl,n=st;De(e.type)&&(zl=e.stateNode,st=!1),ne(l,t,e),Dn(e.stateNode),zl=a,st=n;break;case 5:Yl||Vt(e,t);case 6:if(a=zl,n=st,zl=null,ne(l,t,e),zl=a,st=n,zl!==null)if(st)try{(zl.nodeType===9?zl.body:zl.nodeName==="HTML"?zl.ownerDocument.body:zl).removeChild(e.stateNode)}catch(u){vl(e,t,u)}else try{zl.removeChild(e.stateNode)}catch(u){vl(e,t,u)}break;case 18:zl!==null&&(st?(l=zl,od(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.stateNode),Xa(l)):od(zl,e.stateNode));break;case 4:a=zl,n=st,zl=e.stateNode.containerInfo,st=!0,ne(l,t,e),zl=a,st=n;break;case 0:case 11:case 14:case 15:ze(2,e,t),Yl||ze(4,e,t),ne(l,t,e);break;case 1:Yl||(Vt(e,t),a=e.stateNode,typeof a.componentWillUnmount=="function"&&rr(e,t,a)),ne(l,t,e);break;case 21:ne(l,t,e);break;case 22:Yl=(a=Yl)||e.memoizedState!==null,ne(l,t,e),Yl=a;break;default:ne(l,t,e)}}function Sr(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Xa(l)}catch(e){vl(t,t.return,e)}}}function br(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Xa(l)}catch(e){vl(t,t.return,e)}}function Hm(l){switch(l.tag){case 31:case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new yr),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new yr),t;default:throw Error(o(435,l.tag))}}function Cu(l,t){var e=Hm(l);t.forEach(function(a){if(!e.has(a)){e.add(a);var n=Vm.bind(null,l,a);a.then(n,n)}})}function ot(l,t){var e=t.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=l,i=t,s=i;l:for(;s!==null;){switch(s.tag){case 27:if(De(s.type)){zl=s.stateNode,st=!1;break l}break;case 5:zl=s.stateNode,st=!1;break l;case 3:case 4:zl=s.stateNode.containerInfo,st=!0;break l}s=s.return}if(zl===null)throw Error(o(160));gr(u,i,n),zl=null,st=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jr(t,l),t=t.sibling}var Gt=null;function jr(l,t){var e=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:ot(t,l),rt(l),a&4&&(ze(3,l,l.return),jn(3,l),ze(5,l,l.return));break;case 1:ot(t,l),rt(l),a&512&&(Yl||e===null||Vt(e,e.return)),a&64&&ae&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(e=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=Gt;if(ot(t,l),rt(l),a&512&&(Yl||e===null||Vt(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=l.memoizedState,e===null)if(a===null)if(l.stateNode===null){l:{a=l.type,e=l.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[ka]||u[kl]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Il(u,a,e),u[kl]=l,Zl(u),a=u;break l;case"link":var i=jd("link","href",n).get(a+(e.href||""));if(i){for(var s=0;s<i.length;s++)if(u=i[s],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(s,1);break t}}u=n.createElement(a),Il(u,a,e),n.head.appendChild(u);break;case"meta":if(i=jd("meta","content",n).get(a+(e.content||""))){for(s=0;s<i.length;s++)if(u=i[s],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(s,1);break t}}u=n.createElement(a),Il(u,a,e),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[kl]=l,Zl(u),a=u}l.stateNode=a}else xd(n,l.type,l.stateNode);else l.stateNode=bd(n,a,l.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?xd(n,l.type,l.stateNode):bd(n,a,l.memoizedProps)):a===null&&l.stateNode!==null&&Rc(l,l.memoizedProps,e.memoizedProps)}break;case 27:ot(t,l),rt(l),a&512&&(Yl||e===null||Vt(e,e.return)),e!==null&&a&4&&Rc(l,l.memoizedProps,e.memoizedProps);break;case 5:if(ot(t,l),rt(l),a&512&&(Yl||e===null||Vt(e,e.return)),l.flags&32){n=l.stateNode;try{oa(n,"")}catch(q){vl(l,l.return,q)}}a&4&&l.stateNode!=null&&(n=l.memoizedProps,Rc(l,n,e!==null?e.memoizedProps:n)),a&1024&&(Bc=!0);break;case 6:if(ot(t,l),rt(l),a&4){if(l.stateNode===null)throw Error(o(162));a=l.memoizedProps,e=l.stateNode;try{e.nodeValue=a}catch(q){vl(l,l.return,q)}}break;case 3:if($u=null,n=Gt,Gt=wu(t.containerInfo),ot(t,l),Gt=n,rt(l),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Xa(t.containerInfo)}catch(q){vl(l,l.return,q)}Bc&&(Bc=!1,xr(l));break;case 4:a=Gt,Gt=wu(l.stateNode.containerInfo),ot(t,l),rt(l),Gt=a;break;case 12:ot(t,l),rt(l);break;case 31:ot(t,l),rt(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Cu(l,a)));break;case 13:ot(t,l),rt(l),l.child.flags&8192&&l.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(Hu=vt()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Cu(l,a)));break;case 22:n=l.memoizedState!==null;var r=e!==null&&e.memoizedState!==null,S=ae,_=Yl;if(ae=S||n,Yl=_||r,ot(t,l),Yl=_,ae=S,rt(l),a&8192)l:for(t=l.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(e===null||r||ae||Yl||ta(l)),e=null,t=l;;){if(t.tag===5||t.tag===26){if(e===null){r=e=t;try{if(u=r.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=r.stateNode;var O=r.memoizedProps.style,j=O!=null&&O.hasOwnProperty("display")?O.display:null;s.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(q){vl(r,r.return,q)}}}else if(t.tag===6){if(e===null){r=t;try{r.stateNode.nodeValue=n?"":r.memoizedProps}catch(q){vl(r,r.return,q)}}}else if(t.tag===18){if(e===null){r=t;try{var z=r.stateNode;n?rd(z,!0):rd(r.stateNode,!1)}catch(q){vl(r,r.return,q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;e===t&&(e=null),t=t.return}e===t&&(e=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=l.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,Cu(l,e))));break;case 19:ot(t,l),rt(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,Cu(l,a)));break;case 30:break;case 21:break;default:ot(t,l),rt(l)}}function rt(l){var t=l.flags;if(t&2){try{for(var e,a=l.return;a!==null;){if(hr(a)){e=a;break}a=a.return}if(e==null)throw Error(o(160));switch(e.tag){case 27:var n=e.stateNode,u=Hc(l);Uu(l,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(oa(i,""),e.flags&=-33);var s=Hc(l);Uu(l,s,i);break;case 3:case 4:var r=e.stateNode.containerInfo,S=Hc(l);qc(l,S,r);break;default:throw Error(o(161))}}catch(_){vl(l,l.return,_)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function xr(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;xr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function ue(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vr(l,t.alternate,t),t=t.sibling}function ta(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:ze(4,t,t.return),ta(t);break;case 1:Vt(t,t.return);var e=t.stateNode;typeof e.componentWillUnmount=="function"&&rr(t,t.return,e),ta(t);break;case 27:Dn(t.stateNode);case 26:case 5:Vt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(t)}l=l.sibling}}function ie(l,t,e){for(e=e&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=l,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:ie(n,u,e),jn(4,u);break;case 1:if(ie(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(S){vl(a,a.return,S)}if(a=u,n=a.updateQueue,n!==null){var s=a.stateNode;try{var r=n.shared.hiddenCallbacks;if(r!==null)for(n.shared.hiddenCallbacks=null,n=0;n<r.length;n++)Is(r[n],s)}catch(S){vl(a,a.return,S)}}e&&i&64&&or(u),xn(u,u.return);break;case 27:mr(u);case 26:case 5:ie(n,u,e),e&&a===null&&i&4&&dr(u),xn(u,u.return);break;case 12:ie(n,u,e);break;case 31:ie(n,u,e),e&&i&4&&Sr(n,u);break;case 13:ie(n,u,e),e&&i&4&&br(n,u);break;case 22:u.memoizedState===null&&ie(n,u,e),xn(u,u.return);break;case 30:break;default:ie(n,u,e)}t=t.sibling}}function Yc(l,t){var e=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==e&&(l!=null&&l.refCount++,e!=null&&fn(e))}function Gc(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&fn(l))}function Qt(l,t,e,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nr(l,t,e,a),t=t.sibling}function Nr(l,t,e,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(l,t,e,a),n&2048&&jn(9,t);break;case 1:Qt(l,t,e,a);break;case 3:Qt(l,t,e,a),n&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&fn(l)));break;case 12:if(n&2048){Qt(l,t,e,a),l=t.stateNode;try{var u=t.memoizedProps,i=u.id,s=u.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(r){vl(t,t.return,r)}}else Qt(l,t,e,a);break;case 31:Qt(l,t,e,a);break;case 13:Qt(l,t,e,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?Qt(l,t,e,a):Nn(l,t):u._visibility&2?Qt(l,t,e,a):(u._visibility|=2,Oa(l,t,e,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Yc(i,t);break;case 24:Qt(l,t,e,a),n&2048&&Gc(t.alternate,t);break;default:Qt(l,t,e,a)}}function Oa(l,t,e,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=l,i=t,s=e,r=a,S=i.flags;switch(i.tag){case 0:case 11:case 15:Oa(u,i,s,r,n),jn(8,i);break;case 23:break;case 22:var _=i.stateNode;i.memoizedState!==null?_._visibility&2?Oa(u,i,s,r,n):Nn(u,i):(_._visibility|=2,Oa(u,i,s,r,n)),n&&S&2048&&Yc(i.alternate,i);break;case 24:Oa(u,i,s,r,n),n&&S&2048&&Gc(i.alternate,i);break;default:Oa(u,i,s,r,n)}t=t.sibling}}function Nn(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var e=l,a=t,n=a.flags;switch(a.tag){case 22:Nn(e,a),n&2048&&Yc(a.alternate,a);break;case 24:Nn(e,a),n&2048&&Gc(a.alternate,a);break;default:Nn(e,a)}t=t.sibling}}var zn=8192;function Da(l,t,e){if(l.subtreeFlags&zn)for(l=l.child;l!==null;)zr(l,t,e),l=l.sibling}function zr(l,t,e){switch(l.tag){case 26:Da(l,t,e),l.flags&zn&&l.memoizedState!==null&&j0(e,Gt,l.memoizedState,l.memoizedProps);break;case 5:Da(l,t,e);break;case 3:case 4:var a=Gt;Gt=wu(l.stateNode.containerInfo),Da(l,t,e),Gt=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,Da(l,t,e),zn=a):Da(l,t,e));break;default:Da(l,t,e)}}function Tr(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function Tn(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Ll=a,_r(a,l)}Tr(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Ar(l),l=l.sibling}function Ar(l){switch(l.tag){case 0:case 11:case 15:Tn(l),l.flags&2048&&ze(9,l,l.return);break;case 3:Tn(l);break;case 12:Tn(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,Ru(l)):Tn(l);break;default:Tn(l)}}function Ru(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Ll=a,_r(a,l)}Tr(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:ze(8,t,t.return),Ru(t);break;case 22:e=t.stateNode,e._visibility&2&&(e._visibility&=-3,Ru(t));break;default:Ru(t)}l=l.sibling}}function _r(l,t){for(;Ll!==null;){var e=Ll;switch(e.tag){case 0:case 11:case 15:ze(8,e,t);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fn(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Ll=a;else l:for(e=l;Ll!==null;){a=Ll;var n=a.sibling,u=a.return;if(pr(a),a===e){Ll=null;break l}if(n!==null){n.return=u,Ll=n;break l}Ll=u}}}var qm={getCacheForType:function(l){var t=Wl(Hl),e=t.data.get(l);return e===void 0&&(e=l(),t.data.set(l,e)),e},cacheSignal:function(){return Wl(Hl).controller.signal}},Bm=typeof WeakMap=="function"?WeakMap:Map,hl=0,bl=null,tl=null,al=0,yl=0,Nt=null,Te=!1,Ua=!1,Qc=!1,ce=0,El=0,Ae=0,ea=0,Xc=0,zt=0,Ca=0,An=null,dt=null,Zc=!1,Hu=0,Er=0,qu=1/0,Bu=null,_e=null,Xl=0,Ee=null,Ra=null,fe=0,Lc=0,Vc=null,Mr=null,_n=0,Kc=null;function Tt(){return(hl&2)!==0&&al!==0?al&-al:A.T!==null?Fc():Vf()}function Or(){if(zt===0)if((al&536870912)===0||cl){var l=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),zt=l}else zt=536870912;return l=jt.current,l!==null&&(l.flags|=32),zt}function ht(l,t,e){(l===bl&&(yl===2||yl===9)||l.cancelPendingCommit!==null)&&(Ha(l,0),Me(l,al,zt,!1)),wa(l,e),((hl&2)===0||l!==bl)&&(l===bl&&((hl&2)===0&&(ea|=e),El===4&&Me(l,al,zt,!1)),Kt(l))}function Dr(l,t,e){if((hl&6)!==0)throw Error(o(327));var a=!e&&(t&127)===0&&(t&l.expiredLanes)===0||Ja(l,t),n=a?Qm(l,t):wc(l,t,!0),u=a;do{if(n===0){Ua&&!a&&Me(l,t,0,!1);break}else{if(e=l.current.alternate,u&&!Ym(e)){n=wc(l,t,!1),u=!1;continue}if(n===2){if(u=t,l.errorRecoveryDisabledLanes&u)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var s=l;n=An;var r=s.current.memoizedState.isDehydrated;if(r&&(Ha(s,i).flags|=256),i=wc(s,i,!1),i!==2){if(Qc&&!r){s.errorRecoveryDisabledLanes|=u,ea|=u,n=4;break l}u=dt,dt=n,u!==null&&(dt===null?dt=u:dt.push.apply(dt,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ha(l,0),Me(l,t,0,!0);break}l:{switch(a=l,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Me(a,t,zt,!Te);break l;case 2:dt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Hu+300-vt(),10<n)){if(Me(a,t,zt,!Te),wn(a,0,!0)!==0)break l;fe=t,a.timeoutHandle=fd(Ur.bind(null,a,e,dt,Bu,Zc,t,zt,ea,Ca,Te,u,"Throttled",-0,0),n);break l}Ur(a,e,dt,Bu,Zc,t,zt,ea,Ca,Te,u,null,-0,0)}}break}while(!0);Kt(l)}function Ur(l,t,e,a,n,u,i,s,r,S,_,O,j,z){if(l.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wt},zr(t,u,O);var q=(u&62914560)===u?Hu-vt():(u&4194048)===u?Er-vt():0;if(q=x0(O,q),q!==null){fe=u,l.cancelPendingCommit=q(Qr.bind(null,l,t,u,e,a,n,i,s,r,_,O,null,j,z)),Me(l,u,i,!S);return}}Qr(l,t,u,e,a,n,i,s,r)}function Ym(l){for(var t=l;;){var e=t.tag;if((e===0||e===11||e===15)&&t.flags&16384&&(e=t.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!St(u(),n))return!1}catch{return!1}}if(e=t.child,t.subtreeFlags&16384&&e!==null)e.return=t,t=e;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Me(l,t,e,a){t&=~Xc,t&=~ea,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var n=t;0<n;){var u=31-gt(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&Xf(l,e,t)}function Yu(){return(hl&6)===0?(En(0),!1):!0}function Jc(){if(tl!==null){if(yl===0)var l=tl.return;else l=tl,Ft=we=null,fc(l),Ta=null,on=0,l=tl;for(;l!==null;)sr(l.alternate,l),l=l.return;tl=null}}function Ha(l,t){var e=l.timeoutHandle;e!==-1&&(l.timeoutHandle=-1,n0(e)),e=l.cancelPendingCommit,e!==null&&(l.cancelPendingCommit=null,e()),fe=0,Jc(),bl=l,tl=e=$t(l.current,null),al=t,yl=0,Nt=null,Te=!1,Ua=Ja(l,t),Qc=!1,Ca=zt=Xc=ea=Ae=El=0,dt=An=null,Zc=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var n=31-gt(a),u=1<<n;t|=l[n],a&=~u}return ce=t,uu(),e}function Cr(l,t){W=null,A.H=gn,t===za||t===hu?(t=ks(),yl=3):t===Wi?(t=ks(),yl=4):yl=t===zc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nt=t,tl===null&&(El=1,_u(l,Mt(t,l.current)))}function Rr(){var l=jt.current;return l===null?!0:(al&4194048)===al?Ct===null:(al&62914560)===al||(al&536870912)!==0?l===Ct:!1}function Hr(){var l=A.H;return A.H=gn,l===null?gn:l}function qr(){var l=A.A;return A.A=qm,l}function Gu(){El=4,Te||(al&4194048)!==al&&jt.current!==null||(Ua=!0),(Ae&134217727)===0&&(ea&134217727)===0||bl===null||Me(bl,al,zt,!1)}function wc(l,t,e){var a=hl;hl|=2;var n=Hr(),u=qr();(bl!==l||al!==t)&&(Bu=null,Ha(l,t)),t=!1;var i=El;l:do try{if(yl!==0&&tl!==null){var s=tl,r=Nt;switch(yl){case 8:Jc(),i=6;break l;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var S=yl;if(yl=0,Nt=null,qa(l,s,r,S),e&&Ua){i=0;break l}break;default:S=yl,yl=0,Nt=null,qa(l,s,r,S)}}Gm(),i=El;break}catch(_){Cr(l,_)}while(!0);return t&&l.shellSuspendCounter++,Ft=we=null,hl=a,A.H=n,A.A=u,tl===null&&(bl=null,al=0,uu()),i}function Gm(){for(;tl!==null;)Br(tl)}function Qm(l,t){var e=hl;hl|=2;var a=Hr(),n=qr();bl!==l||al!==t?(Bu=null,qu=vt()+500,Ha(l,t)):Ua=Ja(l,t);l:do try{if(yl!==0&&tl!==null){t=tl;var u=Nt;t:switch(yl){case 1:yl=0,Nt=null,qa(l,t,u,1);break;case 2:case 9:if(Js(u)){yl=0,Nt=null,Yr(t);break}t=function(){yl!==2&&yl!==9||bl!==l||(yl=7),Kt(l)},u.then(t,t);break l;case 3:yl=7;break l;case 4:yl=5;break l;case 7:Js(u)?(yl=0,Nt=null,Yr(t)):(yl=0,Nt=null,qa(l,t,u,7));break;case 5:var i=null;switch(tl.tag){case 26:i=tl.memoizedState;case 5:case 27:var s=tl;if(i?Nd(i):s.stateNode.complete){yl=0,Nt=null;var r=s.sibling;if(r!==null)tl=r;else{var S=s.return;S!==null?(tl=S,Qu(S)):tl=null}break t}}yl=0,Nt=null,qa(l,t,u,5);break;case 6:yl=0,Nt=null,qa(l,t,u,6);break;case 8:Jc(),El=6;break l;default:throw Error(o(462))}}Xm();break}catch(_){Cr(l,_)}while(!0);return Ft=we=null,A.H=a,A.A=n,hl=e,tl!==null?0:(bl=null,al=0,uu(),El)}function Xm(){for(;tl!==null&&!Va();)Br(tl)}function Br(l){var t=cr(l.alternate,l,ce);l.memoizedProps=l.pendingProps,t===null?Qu(l):tl=t}function Yr(l){var t=l,e=t.alternate;switch(t.tag){case 15:case 0:t=tr(e,t,t.pendingProps,t.type,void 0,al);break;case 11:t=tr(e,t,t.pendingProps,t.type.render,t.ref,al);break;case 5:fc(t);default:sr(e,t),t=tl=Hs(t,ce),t=cr(e,t,ce)}l.memoizedProps=l.pendingProps,t===null?Qu(l):tl=t}function qa(l,t,e,a){Ft=we=null,fc(t),Ta=null,on=0;var n=t.return;try{if(Mm(l,n,t,e,al)){El=1,_u(l,Mt(e,l.current)),tl=null;return}}catch(u){if(n!==null)throw tl=n,u;El=1,_u(l,Mt(e,l.current)),tl=null;return}t.flags&32768?(cl||a===1?l=!0:Ua||(al&536870912)!==0?l=!1:(Te=l=!0,(a===2||a===9||a===3||a===6)&&(a=jt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Gr(t,l)):Qu(t)}function Qu(l){var t=l;do{if((t.flags&32768)!==0){Gr(t,Te);return}l=t.return;var e=Um(t.alternate,t,ce);if(e!==null){tl=e;return}if(t=t.sibling,t!==null){tl=t;return}tl=t=l}while(t!==null);El===0&&(El=5)}function Gr(l,t){do{var e=Cm(l.alternate,l);if(e!==null){e.flags&=32767,tl=e;return}if(e=l.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!t&&(l=l.sibling,l!==null)){tl=l;return}tl=l=e}while(l!==null);El=6,tl=null}function Qr(l,t,e,a,n,u,i,s,r){l.cancelPendingCommit=null;do Xu();while(Xl!==0);if((hl&6)!==0)throw Error(o(327));if(t!==null){if(t===l.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Hi,bh(l,e,u,i,s,r),l===bl&&(tl=bl=null,al=0),Ra=t,Ee=l,fe=e,Lc=u,Vc=n,Mr=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Km(Ln,function(){return Kr(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=C.p,C.p=2,i=hl,hl|=4;try{Rm(l,t,e)}finally{hl=i,C.p=n,A.T=a}}Xl=1,Xr(),Zr(),Lr()}}function Xr(){if(Xl===1){Xl=0;var l=Ee,t=Ra,e=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||e){e=A.T,A.T=null;var a=C.p;C.p=2;var n=hl;hl|=4;try{jr(t,l);var u=uf,i=As(l.containerInfo),s=u.focusedElem,r=u.selectionRange;if(i!==s&&s&&s.ownerDocument&&Ts(s.ownerDocument.documentElement,s)){if(r!==null&&Oi(s)){var S=r.start,_=r.end;if(_===void 0&&(_=S),"selectionStart"in s)s.selectionStart=S,s.selectionEnd=Math.min(_,s.value.length);else{var O=s.ownerDocument||document,j=O&&O.defaultView||window;if(j.getSelection){var z=j.getSelection(),q=s.textContent.length,w=Math.min(r.start,q),Sl=r.end===void 0?w:Math.min(r.end,q);!z.extend&&w>Sl&&(i=Sl,Sl=w,w=i);var p=zs(s,w),m=zs(s,Sl);if(p&&m&&(z.rangeCount!==1||z.anchorNode!==p.node||z.anchorOffset!==p.offset||z.focusNode!==m.node||z.focusOffset!==m.offset)){var g=O.createRange();g.setStart(p.node,p.offset),z.removeAllRanges(),w>Sl?(z.addRange(g),z.extend(m.node,m.offset)):(g.setEnd(m.node,m.offset),z.addRange(g))}}}}for(O=[],z=s;z=z.parentNode;)z.nodeType===1&&O.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<O.length;s++){var M=O[s];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}Pu=!!nf,uf=nf=null}finally{hl=n,C.p=a,A.T=e}}l.current=t,Xl=2}}function Zr(){if(Xl===2){Xl=0;var l=Ee,t=Ra,e=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||e){e=A.T,A.T=null;var a=C.p;C.p=2;var n=hl;hl|=4;try{vr(l,t.alternate,t)}finally{hl=n,C.p=a,A.T=e}}Xl=3}}function Lr(){if(Xl===4||Xl===3){Xl=0,fi();var l=Ee,t=Ra,e=fe,a=Mr;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xl=5:(Xl=0,Ra=Ee=null,Vr(l,l.pendingLanes));var n=l.pendingLanes;if(n===0&&(_e=null),ri(e),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Ka,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=A.T,n=C.p,C.p=2,A.T=null;try{for(var u=l.onRecoverableError,i=0;i<a.length;i++){var s=a[i];u(s.value,{componentStack:s.stack})}}finally{A.T=t,C.p=n}}(fe&3)!==0&&Xu(),Kt(l),n=l.pendingLanes,(e&261930)!==0&&(n&42)!==0?l===Kc?_n++:(_n=0,Kc=l):_n=0,En(0)}}function Vr(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,fn(t)))}function Xu(){return Xr(),Zr(),Lr(),Kr()}function Kr(){if(Xl!==5)return!1;var l=Ee,t=Lc;Lc=0;var e=ri(fe),a=A.T,n=C.p;try{C.p=32>e?32:e,A.T=null,e=Vc,Vc=null;var u=Ee,i=fe;if(Xl=0,Ra=Ee=null,fe=0,(hl&6)!==0)throw Error(o(331));var s=hl;if(hl|=4,Ar(u.current),Nr(u,u.current,i,e),hl=s,En(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Ka,u)}catch{}return!0}finally{C.p=n,A.T=a,Vr(l,t)}}function Jr(l,t,e){t=Mt(e,t),t=Nc(l.stateNode,t,2),l=je(l,t,2),l!==null&&(wa(l,2),Kt(l))}function vl(l,t,e){if(l.tag===3)Jr(l,l,e);else for(;t!==null;){if(t.tag===3){Jr(t,l,e);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(_e===null||!_e.has(a))){l=Mt(e,l),e=wo(2),a=je(t,e,2),a!==null&&(ko(e,a,t,l),wa(a,2),Kt(a));break}}t=t.return}}function kc(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new Bm;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(e)||(Qc=!0,n.add(e),l=Zm.bind(null,l,t,e),t.then(l,l))}function Zm(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,bl===l&&(al&e)===e&&(El===4||El===3&&(al&62914560)===al&&300>vt()-Hu?(hl&2)===0&&Ha(l,0):Xc|=e,Ca===al&&(Ca=0)),Kt(l)}function wr(l,t){t===0&&(t=Qf()),l=Ve(l,t),l!==null&&(wa(l,t),Kt(l))}function Lm(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),wr(l,e)}function Vm(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),wr(l,e)}function Km(l,t){return re(l,t)}var Zu=null,Ba=null,$c=!1,Lu=!1,Wc=!1,Oe=0;function Kt(l){l!==Ba&&l.next===null&&(Ba===null?Zu=Ba=l:Ba=Ba.next=l),Lu=!0,$c||($c=!0,wm())}function En(l,t){if(!Wc&&Lu){Wc=!0;do for(var e=!1,a=Zu;a!==null;){if(l!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,s=a.pingedLanes;u=(1<<31-gt(42|l)+1)-1,u&=n&~(i&~s),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Fr(a,u))}else u=al,u=wn(a,a===bl?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ja(a,u)||(e=!0,Fr(a,u));a=a.next}while(e);Wc=!1}}function Jm(){kr()}function kr(){Lu=$c=!1;var l=0;Oe!==0&&a0()&&(l=Oe);for(var t=vt(),e=null,a=Zu;a!==null;){var n=a.next,u=$r(a,t);u===0?(a.next=null,e===null?Zu=n:e.next=n,n===null&&(Ba=e)):(e=a,(l!==0||(u&3)!==0)&&(Lu=!0)),a=n}Xl!==0&&Xl!==5||En(l),Oe!==0&&(Oe=0)}function $r(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,u=l.pendingLanes&-62914561;0<u;){var i=31-gt(u),s=1<<i,r=n[i];r===-1?((s&e)===0||(s&a)!==0)&&(n[i]=Sh(s,t)):r<=t&&(l.expiredLanes|=s),u&=~s}if(t=bl,e=al,e=wn(l,l===t?e:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,e===0||l===t&&(yl===2||yl===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&La(a),l.callbackNode=null,l.callbackPriority=0;if((e&3)===0||Ja(l,e)){if(t=e&-e,t===l.callbackPriority)return t;switch(a!==null&&La(a),ri(e)){case 2:case 8:e=Yf;break;case 32:e=Ln;break;case 268435456:e=Gf;break;default:e=Ln}return a=Wr.bind(null,l),e=re(e,a),l.callbackPriority=t,l.callbackNode=e,t}return a!==null&&a!==null&&La(a),l.callbackPriority=2,l.callbackNode=null,2}function Wr(l,t){if(Xl!==0&&Xl!==5)return l.callbackNode=null,l.callbackPriority=0,null;var e=l.callbackNode;if(Xu()&&l.callbackNode!==e)return null;var a=al;return a=wn(l,l===bl?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(Dr(l,a,t),$r(l,vt()),l.callbackNode!=null&&l.callbackNode===e?Wr.bind(null,l):null)}function Fr(l,t){if(Xu())return null;Dr(l,t,!0)}function wm(){u0(function(){(hl&6)!==0?re(Bf,Jm):kr()})}function Fc(){if(Oe===0){var l=xa;l===0&&(l=Vn,Vn<<=1,(Vn&261888)===0&&(Vn=256)),Oe=l}return Oe}function Ir(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Fn(""+l)}function Pr(l,t){var e=t.ownerDocument.createElement("input");return e.name=t.name,e.value=t.value,l.id&&e.setAttribute("form",l.id),t.parentNode.insertBefore(e,t),l=new FormData(l),e.parentNode.removeChild(e),l}function km(l,t,e,a,n){if(t==="submit"&&e&&e.stateNode===n){var u=Ir((n[ct]||null).action),i=a.submitter;i&&(t=(t=i[ct]||null)?Ir(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var s=new tu("action","action",null,a,n);l.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Oe!==0){var r=i?Pr(n,i):new FormData(n);pc(e,{pending:!0,data:r,method:n.method,action:u},null,r)}}else typeof u=="function"&&(s.preventDefault(),r=i?Pr(n,i):new FormData(n),pc(e,{pending:!0,data:r,method:n.method,action:u},u,r))},currentTarget:n}]})}}for(var Ic=0;Ic<Ri.length;Ic++){var Pc=Ri[Ic],$m=Pc.toLowerCase(),Wm=Pc[0].toUpperCase()+Pc.slice(1);Yt($m,"on"+Wm)}Yt(Ms,"onAnimationEnd"),Yt(Os,"onAnimationIteration"),Yt(Ds,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(dm,"onTransitionRun"),Yt(hm,"onTransitionStart"),Yt(mm,"onTransitionCancel"),Yt(Us,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),Fm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mn));function ld(l,t){t=(t&4)!==0;for(var e=0;e<l.length;e++){var a=l[e],n=a.event;a=a.listeners;l:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],r=s.instance,S=s.currentTarget;if(s=s.listener,r!==u&&n.isPropagationStopped())break l;u=s,n.currentTarget=S;try{u(n)}catch(_){nu(_)}n.currentTarget=null,u=r}else for(i=0;i<a.length;i++){if(s=a[i],r=s.instance,S=s.currentTarget,s=s.listener,r!==u&&n.isPropagationStopped())break l;u=s,n.currentTarget=S;try{u(n)}catch(_){nu(_)}n.currentTarget=null,u=r}}}}function el(l,t){var e=t[di];e===void 0&&(e=t[di]=new Set);var a=l+"__bubble";e.has(a)||(td(t,l,2,!1),e.add(a))}function lf(l,t,e){var a=0;t&&(a|=4),td(e,l,a,t)}var Vu="_reactListening"+Math.random().toString(36).slice(2);function tf(l){if(!l[Vu]){l[Vu]=!0,wf.forEach(function(e){e!=="selectionchange"&&(Fm.has(e)||lf(e,!1,l),lf(e,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[Vu]||(t[Vu]=!0,lf("selectionchange",!1,t))}}function td(l,t,e,a){switch(Od(t)){case 2:var n=T0;break;case 8:n=A0;break;default:n=pf}e=n.bind(null,t,e,l),n=void 0,!ji||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?l.addEventListener(t,e,{capture:!0,passive:n}):l.addEventListener(t,e,!0):n!==void 0?l.addEventListener(t,e,{passive:n}):l.addEventListener(t,e,!1)}function ef(l,t,e,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)l:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var r=i.tag;if((r===3||r===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=ua(s),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){a=u=i;continue l}s=s.parentNode}}a=a.return}us(function(){var S=u,_=Si(e),O=[];l:{var j=Cs.get(l);if(j!==void 0){var z=tu,q=l;switch(l){case"keypress":if(Pn(e)===0)break l;case"keydown":case"keyup":z=Vh;break;case"focusin":q="focus",z=Ti;break;case"focusout":q="blur",z=Ti;break;case"beforeblur":case"afterblur":z=Ti;break;case"click":if(e.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=fs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Uh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=wh;break;case Ms:case Os:case Ds:z=Hh;break;case Us:z=$h;break;case"scroll":case"scrollend":z=Oh;break;case"wheel":z=Fh;break;case"copy":case"cut":case"paste":z=Bh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=os;break;case"toggle":case"beforetoggle":z=Ph}var w=(t&4)!==0,Sl=!w&&(l==="scroll"||l==="scrollend"),p=w?j!==null?j+"Capture":null:j;w=[];for(var m=S,g;m!==null;){var M=m;if(g=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||g===null||p===null||(M=Wa(m,p),M!=null&&w.push(On(m,M,g))),Sl)break;m=m.return}0<w.length&&(j=new z(j,q,null,e,_),O.push({event:j,listeners:w}))}}if((t&7)===0){l:{if(j=l==="mouseover"||l==="pointerover",z=l==="mouseout"||l==="pointerout",j&&e!==gi&&(q=e.relatedTarget||e.fromElement)&&(ua(q)||q[na]))break l;if((z||j)&&(j=_.window===_?_:(j=_.ownerDocument)?j.defaultView||j.parentWindow:window,z?(q=e.relatedTarget||e.toElement,z=S,q=q?ua(q):null,q!==null&&(Sl=E(q),w=q.tag,q!==Sl||w!==5&&w!==27&&w!==6)&&(q=null)):(z=null,q=S),z!==q)){if(w=fs,M="onMouseLeave",p="onMouseEnter",m="mouse",(l==="pointerout"||l==="pointerover")&&(w=os,M="onPointerLeave",p="onPointerEnter",m="pointer"),Sl=z==null?j:$a(z),g=q==null?j:$a(q),j=new w(M,m+"leave",z,e,_),j.target=Sl,j.relatedTarget=g,M=null,ua(_)===S&&(w=new w(p,m+"enter",q,e,_),w.target=g,w.relatedTarget=Sl,M=w),Sl=M,z&&q)t:{for(w=Im,p=z,m=q,g=0,M=p;M;M=w(M))g++;M=0;for(var V=m;V;V=w(V))M++;for(;0<g-M;)p=w(p),g--;for(;0<M-g;)m=w(m),M--;for(;g--;){if(p===m||m!==null&&p===m.alternate){w=p;break t}p=w(p),m=w(m)}w=null}else w=null;z!==null&&ed(O,j,z,w,!1),q!==null&&Sl!==null&&ed(O,Sl,q,w,!0)}}l:{if(j=S?$a(S):window,z=j.nodeName&&j.nodeName.toLowerCase(),z==="select"||z==="input"&&j.type==="file")var ol=gs;else if(vs(j))if(Ss)ol=sm;else{ol=cm;var Q=im}else z=j.nodeName,!z||z.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?S&&pi(S.elementType)&&(ol=gs):ol=fm;if(ol&&(ol=ol(l,S))){ps(O,ol,e,_);break l}Q&&Q(l,j,S),l==="focusout"&&S&&j.type==="number"&&S.memoizedProps.value!=null&&vi(j,"number",j.value)}switch(Q=S?$a(S):window,l){case"focusin":(vs(Q)||Q.contentEditable==="true")&&(ma=Q,Di=S,nn=null);break;case"focusout":nn=Di=ma=null;break;case"mousedown":Ui=!0;break;case"contextmenu":case"mouseup":case"dragend":Ui=!1,_s(O,e,_);break;case"selectionchange":if(rm)break;case"keydown":case"keyup":_s(O,e,_)}var F;if(_i)l:{switch(l){case"compositionstart":var nl="onCompositionStart";break l;case"compositionend":nl="onCompositionEnd";break l;case"compositionupdate":nl="onCompositionUpdate";break l}nl=void 0}else ha?ms(l,e)&&(nl="onCompositionEnd"):l==="keydown"&&e.keyCode===229&&(nl="onCompositionStart");nl&&(rs&&e.locale!=="ko"&&(ha||nl!=="onCompositionStart"?nl==="onCompositionEnd"&&ha&&(F=is()):(me=_,xi="value"in me?me.value:me.textContent,ha=!0)),Q=Ku(S,nl),0<Q.length&&(nl=new ss(nl,l,null,e,_),O.push({event:nl,listeners:Q}),F?nl.data=F:(F=ys(e),F!==null&&(nl.data=F)))),(F=tm?em(l,e):am(l,e))&&(nl=Ku(S,"onBeforeInput"),0<nl.length&&(Q=new ss("onBeforeInput","beforeinput",null,e,_),O.push({event:Q,listeners:nl}),Q.data=F)),km(O,l,S,e,_)}ld(O,t)})}function On(l,t,e){return{instance:l,listener:t,currentTarget:e}}function Ku(l,t){for(var e=t+"Capture",a=[];l!==null;){var n=l,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Wa(l,e),n!=null&&a.unshift(On(l,n,u)),n=Wa(l,t),n!=null&&a.push(On(l,n,u))),l.tag===3)return a;l=l.return}return[]}function Im(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function ed(l,t,e,a,n){for(var u=t._reactName,i=[];e!==null&&e!==a;){var s=e,r=s.alternate,S=s.stateNode;if(s=s.tag,r!==null&&r===a)break;s!==5&&s!==26&&s!==27||S===null||(r=S,n?(S=Wa(e,u),S!=null&&i.unshift(On(e,S,r))):n||(S=Wa(e,u),S!=null&&i.push(On(e,S,r)))),e=e.return}i.length!==0&&l.push({event:t,listeners:i})}var Pm=/\r\n?/g,l0=/\u0000|\uFFFD/g;function ad(l){return(typeof l=="string"?l:""+l).replace(Pm,`
49
+ `).replace(l0,"")}function nd(l,t){return t=ad(t),ad(l)===t}function gl(l,t,e,a,n,u){switch(e){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||oa(l,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&oa(l,""+a);break;case"className":$n(l,"class",a);break;case"tabIndex":$n(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$n(l,e,a);break;case"style":as(l,a,u);break;case"data":if(t!=="object"){$n(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||e!=="href")){l.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Fn(""+a),l.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(e,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(e==="formAction"?(t!=="input"&&gl(l,t,"name",n.name,n,null),gl(l,t,"formEncType",n.formEncType,n,null),gl(l,t,"formMethod",n.formMethod,n,null),gl(l,t,"formTarget",n.formTarget,n,null)):(gl(l,t,"encType",n.encType,n,null),gl(l,t,"method",n.method,n,null),gl(l,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Fn(""+a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=wt);break;case"onScroll":a!=null&&el("scroll",l);break;case"onScrollEnd":a!=null&&el("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));l.innerHTML=e}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}e=Fn(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""+a):l.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""):l.removeAttribute(e);break;case"capture":case"download":a===!0?l.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(e,a):l.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(e):l.setAttribute(e,a);break;case"popover":el("beforetoggle",l),el("toggle",l),kn(l,"popover",a);break;case"xlinkActuate":Jt(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jt(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jt(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jt(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jt(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jt(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jt(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jt(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jt(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":kn(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=Eh.get(e)||e,kn(l,e,a))}}function af(l,t,e,a,n,u){switch(e){case"style":as(l,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));l.innerHTML=e}}break;case"children":typeof a=="string"?oa(l,a):(typeof a=="number"||typeof a=="bigint")&&oa(l,""+a);break;case"onScroll":a!=null&&el("scroll",l);break;case"onScrollEnd":a!=null&&el("scrollend",l);break;case"onClick":a!=null&&(l.onclick=wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.hasOwnProperty(e))l:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),t=e.slice(2,n?e.length-7:void 0),u=l[ct]||null,u=u!=null?u[e]:null,typeof u=="function"&&l.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in l?l[e]=null:l.hasAttribute(e)&&l.removeAttribute(e)),l.addEventListener(t,a,n);break l}e in l?l[e]=a:a===!0?l.setAttribute(e,""):kn(l,e,a)}}}function Il(l,t,e){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":el("error",l),el("load",l);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:gl(l,t,u,i,e,null)}}n&&gl(l,t,"srcSet",e.srcSet,e,null),a&&gl(l,t,"src",e.src,e,null);return;case"input":el("invalid",l);var s=u=i=n=null,r=null,S=null;for(a in e)if(e.hasOwnProperty(a)){var _=e[a];if(_!=null)switch(a){case"name":n=_;break;case"type":i=_;break;case"checked":r=_;break;case"defaultChecked":S=_;break;case"value":u=_;break;case"defaultValue":s=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:gl(l,t,a,_,e,null)}}Pf(l,u,s,r,S,i,n,!1);return;case"select":el("invalid",l),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(s=e[n],s!=null))switch(n){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:gl(l,t,n,s,e,null)}t=u,e=i,l.multiple=!!a,t!=null?sa(l,!!a,t,!1):e!=null&&sa(l,!!a,e,!0);return;case"textarea":el("invalid",l),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(s=e[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:gl(l,t,i,s,e,null)}ts(l,a,n,u);return;case"option":for(r in e)if(e.hasOwnProperty(r)&&(a=e[r],a!=null))switch(r){case"selected":l.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:gl(l,t,r,a,e,null)}return;case"dialog":el("beforetoggle",l),el("toggle",l),el("cancel",l),el("close",l);break;case"iframe":case"object":el("load",l);break;case"video":case"audio":for(a=0;a<Mn.length;a++)el(Mn[a],l);break;case"image":el("error",l),el("load",l);break;case"details":el("toggle",l);break;case"embed":case"source":case"link":el("error",l),el("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in e)if(e.hasOwnProperty(S)&&(a=e[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:gl(l,t,S,a,e,null)}return;default:if(pi(t)){for(_ in e)e.hasOwnProperty(_)&&(a=e[_],a!==void 0&&af(l,t,_,a,e,void 0));return}}for(s in e)e.hasOwnProperty(s)&&(a=e[s],a!=null&&gl(l,t,s,a,e,null))}function t0(l,t,e,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,s=null,r=null,S=null,_=null;for(z in e){var O=e[z];if(e.hasOwnProperty(z)&&O!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":r=O;default:a.hasOwnProperty(z)||gl(l,t,z,null,a,O)}}for(var j in a){var z=a[j];if(O=e[j],a.hasOwnProperty(j)&&(z!=null||O!=null))switch(j){case"type":u=z;break;case"name":n=z;break;case"checked":S=z;break;case"defaultChecked":_=z;break;case"value":i=z;break;case"defaultValue":s=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:z!==O&&gl(l,t,j,z,a,O)}}yi(l,i,s,r,S,_,u,n);return;case"select":z=i=s=j=null;for(u in e)if(r=e[u],e.hasOwnProperty(u)&&r!=null)switch(u){case"value":break;case"multiple":z=r;default:a.hasOwnProperty(u)||gl(l,t,u,null,a,r)}for(n in a)if(u=a[n],r=e[n],a.hasOwnProperty(n)&&(u!=null||r!=null))switch(n){case"value":j=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:u!==r&&gl(l,t,n,u,a,r)}t=s,e=i,a=z,j!=null?sa(l,!!e,j,!1):!!a!=!!e&&(t!=null?sa(l,!!e,t,!0):sa(l,!!e,e?[]:"",!1));return;case"textarea":z=j=null;for(s in e)if(n=e[s],e.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:gl(l,t,s,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":j=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&gl(l,t,i,n,a,u)}ls(l,j,z);return;case"option":for(var q in e)if(j=e[q],e.hasOwnProperty(q)&&j!=null&&!a.hasOwnProperty(q))switch(q){case"selected":l.selected=!1;break;default:gl(l,t,q,null,a,j)}for(r in a)if(j=a[r],z=e[r],a.hasOwnProperty(r)&&j!==z&&(j!=null||z!=null))switch(r){case"selected":l.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:gl(l,t,r,j,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w in e)j=e[w],e.hasOwnProperty(w)&&j!=null&&!a.hasOwnProperty(w)&&gl(l,t,w,null,a,j);for(S in a)if(j=a[S],z=e[S],a.hasOwnProperty(S)&&j!==z&&(j!=null||z!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,t));break;default:gl(l,t,S,j,a,z)}return;default:if(pi(t)){for(var Sl in e)j=e[Sl],e.hasOwnProperty(Sl)&&j!==void 0&&!a.hasOwnProperty(Sl)&&af(l,t,Sl,void 0,a,j);for(_ in a)j=a[_],z=e[_],!a.hasOwnProperty(_)||j===z||j===void 0&&z===void 0||af(l,t,_,j,a,z);return}}for(var p in e)j=e[p],e.hasOwnProperty(p)&&j!=null&&!a.hasOwnProperty(p)&&gl(l,t,p,null,a,j);for(O in a)j=a[O],z=e[O],!a.hasOwnProperty(O)||j===z||j==null&&z==null||gl(l,t,O,j,a,z)}function ud(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e0(){if(typeof performance.getEntriesByType=="function"){for(var l=0,t=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,s=n.duration;if(u&&s&&ud(i)){for(i=0,s=n.responseEnd,a+=1;a<e.length;a++){var r=e[a],S=r.startTime;if(S>s)break;var _=r.transferSize,O=r.initiatorType;_&&ud(O)&&(r=r.responseEnd,i+=_*(r<s?1:(s-S)/(r-S)))}if(--a,t+=8*(u+i)/(n.duration/1e3),l++,10<l)break}}if(0<l)return t/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var nf=null,uf=null;function Ju(l){return l.nodeType===9?l:l.ownerDocument}function id(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cd(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function cf(l,t){return l==="textarea"||l==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ff=null;function a0(){var l=window.event;return l&&l.type==="popstate"?l===ff?!1:(ff=l,!0):(ff=null,!1)}var fd=typeof setTimeout=="function"?setTimeout:void 0,n0=typeof clearTimeout=="function"?clearTimeout:void 0,sd=typeof Promise=="function"?Promise:void 0,u0=typeof queueMicrotask=="function"?queueMicrotask:typeof sd<"u"?function(l){return sd.resolve(null).then(l).catch(i0)}:fd;function i0(l){setTimeout(function(){throw l})}function De(l){return l==="head"}function od(l,t){var e=t,a=0;do{var n=e.nextSibling;if(l.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){l.removeChild(n),Xa(t);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")Dn(l.ownerDocument.documentElement);else if(e==="head"){e=l.ownerDocument.head,Dn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[ka]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&Dn(l.ownerDocument.body);e=n}while(e);Xa(t)}function rd(l,t){var e=l;l=0;do{var a=e.nextSibling;if(e.nodeType===1?t?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(t?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(l===0)break;l--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||l++;e=a}while(e)}function sf(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var e=t;switch(t=t.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":sf(e),hi(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}l.removeChild(e)}}function c0(l,t,e,a){for(;l.nodeType===1;){var n=e;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[ka])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(u=l.getAttribute("rel"),u==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(u!==n.rel||l.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||l.getAttribute("title")!==(n.title==null?null:n.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(u=l.getAttribute("src"),(u!==(n.src==null?null:n.src)||l.getAttribute("type")!==(n.type==null?null:n.type)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&l.getAttribute("name")===u)return l}else return l;if(l=Rt(l.nextSibling),l===null)break}return null}function f0(l,t,e){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=Rt(l.nextSibling),l===null))return null;return l}function dd(l,t){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=Rt(l.nextSibling),l===null))return null;return l}function of(l){return l.data==="$?"||l.data==="$~"}function rf(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function s0(l,t){var e=l.ownerDocument;if(l.data==="$~")l._reactRetry=t;else if(l.data!=="$?"||e.readyState!=="loading")t();else{var a=function(){t(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}function Rt(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return l}var df=null;function hd(l){l=l.nextSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="/$"||e==="/&"){if(t===0)return Rt(l.nextSibling);t--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||t++}l=l.nextSibling}return null}function md(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(t===0)return l;t--}else e!=="/$"&&e!=="/&"||t++}l=l.previousSibling}return null}function yd(l,t,e){switch(t=Ju(e),l){case"html":if(l=t.documentElement,!l)throw Error(o(452));return l;case"head":if(l=t.head,!l)throw Error(o(453));return l;case"body":if(l=t.body,!l)throw Error(o(454));return l;default:throw Error(o(451))}}function Dn(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);hi(l)}var Ht=new Map,vd=new Set;function wu(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var se=C.d;C.d={f:o0,r:r0,D:d0,C:h0,L:m0,m:y0,X:p0,S:v0,M:g0};function o0(){var l=se.f(),t=Yu();return l||t}function r0(l){var t=ia(l);t!==null&&t.tag===5&&t.type==="form"?Co(t):se.r(l)}var Ya=typeof document>"u"?null:document;function pd(l,t,e){var a=Ya;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+l+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),vd.has(n)||(vd.add(n),l={rel:l,crossOrigin:e,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Il(t,"link",l),Zl(t),a.head.appendChild(t)))}}function d0(l){se.D(l),pd("dns-prefetch",l,null)}function h0(l,t){se.C(l,t),pd("preconnect",l,t)}function m0(l,t,e){se.L(l,t,e);var a=Ya;if(a&&l&&t){var n='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+_t(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+_t(e.imageSizes)+'"]')):n+='[href="'+_t(l)+'"]';var u=n;switch(t){case"style":u=Ga(l);break;case"script":u=Qa(l)}Ht.has(u)||(l=R({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),Ht.set(u,l),a.querySelector(n)!==null||t==="style"&&a.querySelector(Un(u))||t==="script"&&a.querySelector(Cn(u))||(t=a.createElement("link"),Il(t,"link",l),Zl(t),a.head.appendChild(t)))}}function y0(l,t){se.m(l,t);var e=Ya;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Qa(l)}if(!Ht.has(u)&&(l=R({rel:"modulepreload",href:l},t),Ht.set(u,l),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(Cn(u)))return}a=e.createElement("link"),Il(a,"link",l),Zl(a),e.head.appendChild(a)}}}function v0(l,t,e){se.S(l,t,e);var a=Ya;if(a&&l){var n=ca(a).hoistableStyles,u=Ga(l);t=t||"default";var i=n.get(u);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(Un(u)))s.loading=5;else{l=R({rel:"stylesheet",href:l,"data-precedence":t},e),(e=Ht.get(u))&&hf(l,e);var r=i=a.createElement("link");Zl(r),Il(r,"link",l),r._p=new Promise(function(S,_){r.onload=S,r.onerror=_}),r.addEventListener("load",function(){s.loading|=1}),r.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ku(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(u,i)}}}function p0(l,t){se.X(l,t);var e=Ya;if(e&&l){var a=ca(e).hoistableScripts,n=Qa(l),u=a.get(n);u||(u=e.querySelector(Cn(n)),u||(l=R({src:l,async:!0},t),(t=Ht.get(n))&&mf(l,t),u=e.createElement("script"),Zl(u),Il(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function g0(l,t){se.M(l,t);var e=Ya;if(e&&l){var a=ca(e).hoistableScripts,n=Qa(l),u=a.get(n);u||(u=e.querySelector(Cn(n)),u||(l=R({src:l,async:!0,type:"module"},t),(t=Ht.get(n))&&mf(l,t),u=e.createElement("script"),Zl(u),Il(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function gd(l,t,e,a){var n=(n=ll.current)?wu(n):null;if(!n)throw Error(o(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=Ga(e.href),e=ca(n).hoistableStyles,a=e.get(t),a||(a={type:"style",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=Ga(e.href);var u=ca(n).hoistableStyles,i=u.get(l);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,i),(u=n.querySelector(Un(l)))&&!u._p&&(i.instance=u,i.state.loading=5),Ht.has(l)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Ht.set(l,e),u||S0(n,l,e,i.state))),t&&a===null)throw Error(o(528,""));return i}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qa(e),e=ca(n).hoistableScripts,a=e.get(t),a||(a={type:"script",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,l))}}function Ga(l){return'href="'+_t(l)+'"'}function Un(l){return'link[rel="stylesheet"]['+l+"]"}function Sd(l){return R({},l,{"data-precedence":l.precedence,precedence:null})}function S0(l,t,e,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Il(t,"link",e),Zl(t),l.head.appendChild(t))}function Qa(l){return'[src="'+_t(l)+'"]'}function Cn(l){return"script[async]"+l}function bd(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+_t(e.href)+'"]');if(a)return t.instance=a,Zl(a),a;var n=R({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Zl(a),Il(a,"style",n),ku(a,e.precedence,l),t.instance=a;case"stylesheet":n=Ga(e.href);var u=l.querySelector(Un(n));if(u)return t.state.loading|=4,t.instance=u,Zl(u),u;a=Sd(e),(n=Ht.get(n))&&hf(a,n),u=(l.ownerDocument||l).createElement("link"),Zl(u);var i=u;return i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),Il(u,"link",a),t.state.loading|=4,ku(u,e.precedence,l),t.instance=u;case"script":return u=Qa(e.src),(n=l.querySelector(Cn(u)))?(t.instance=n,Zl(n),n):(a=e,(n=Ht.get(u))&&(a=R({},e),mf(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Zl(n),Il(n,"link",a),l.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ku(a,e.precedence,l));return t.instance}function ku(l,t,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)u=s;else if(u!==n)break}u?u.parentNode.insertBefore(l,u.nextSibling):(t=e.nodeType===9?e.head:e,t.insertBefore(l,t.firstChild))}function hf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function mf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var $u=null;function jd(l,t,e){if($u===null){var a=new Map,n=$u=new Map;n.set(e,a)}else n=$u,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(l))return a;for(a.set(l,null),e=e.getElementsByTagName(l),n=0;n<e.length;n++){var u=e[n];if(!(u[ka]||u[kl]||l==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=l+i;var s=a.get(i);s?s.push(u):a.set(i,[u])}}return a}function xd(l,t,e){l=l.ownerDocument||l,l.head.insertBefore(e,t==="title"?l.querySelector("head > title"):null)}function b0(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nd(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function j0(l,t,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=Ga(a.href),u=t.querySelector(Un(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Wu.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Zl(u);return}u=t.ownerDocument||t,a=Sd(a),(n=Ht.get(n))&&hf(a,n),u=u.createElement("link"),Zl(u);var i=u;i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),Il(u,"link",a),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Wu.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var yf=0;function x0(l,t){return l.stylesheets&&l.count===0&&Iu(l,l.stylesheets),0<l.count||0<l.imgCount?function(e){var a=setTimeout(function(){if(l.stylesheets&&Iu(l,l.stylesheets),l.unsuspend){var u=l.unsuspend;l.unsuspend=null,u()}},6e4+t);0<l.imgBytes&&yf===0&&(yf=62500*e0());var n=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Iu(l,l.stylesheets),l.unsuspend)){var u=l.unsuspend;l.unsuspend=null,u()}},(l.imgBytes>yf?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Iu(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Fu=null;function Iu(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Fu=new Map,t.forEach(N0,l),Fu=null,Wu.call(l))}function N0(l,t){if(!(t.state.loading&4)){var e=Fu.get(l);if(e)var a=e.get(null);else{e=new Map,Fu.set(l,e);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Wu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(n,l.firstChild)),t.state.loading|=4}}var Rn={$$typeof:jl,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function z0(l,t,e,a,n,u,i,s,r){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=si(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=si(0),this.hiddenUpdates=si(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function zd(l,t,e,a,n,u,i,s,r,S,_,O){return l=new z0(l,t,e,i,r,S,_,O,s),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),l.current=u,u.stateNode=l,t=wi(),t.refCount++,l.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:t},Fi(u),l}function Td(l){return l?(l=pa,l):pa}function Ad(l,t,e,a,n,u){n=Td(n),a.context===null?a.context=n:a.pendingContext=n,a=be(t),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=je(l,a,t),e!==null&&(ht(e,l,t),dn(e,l,t))}function _d(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var e=l.retryLane;l.retryLane=e!==0&&e<t?e:t}}function vf(l,t){_d(l,t),(l=l.alternate)&&_d(l,t)}function Ed(l){if(l.tag===13||l.tag===31){var t=Ve(l,67108864);t!==null&&ht(t,l,67108864),vf(l,67108864)}}function Md(l){if(l.tag===13||l.tag===31){var t=Tt();t=oi(t);var e=Ve(l,t);e!==null&&ht(e,l,t),vf(l,t)}}var Pu=!0;function T0(l,t,e,a){var n=A.T;A.T=null;var u=C.p;try{C.p=2,pf(l,t,e,a)}finally{C.p=u,A.T=n}}function A0(l,t,e,a){var n=A.T;A.T=null;var u=C.p;try{C.p=8,pf(l,t,e,a)}finally{C.p=u,A.T=n}}function pf(l,t,e,a){if(Pu){var n=gf(a);if(n===null)ef(l,t,a,li,e),Dd(l,a);else if(E0(n,l,t,e,a))a.stopPropagation();else if(Dd(l,a),t&4&&-1<_0.indexOf(l)){for(;n!==null;){var u=ia(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ge(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var r=1<<31-gt(i);s.entanglements[1]|=r,i&=~r}Kt(u),(hl&6)===0&&(qu=vt()+500,En(0))}}break;case 31:case 13:s=Ve(u,2),s!==null&&ht(s,u,2),Yu(),vf(u,2)}if(u=gf(a),u===null&&ef(l,t,a,li,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else ef(l,t,a,null,e)}}function gf(l){return l=Si(l),Sf(l)}var li=null;function Sf(l){if(li=null,l=ua(l),l!==null){var t=E(l);if(t===null)l=null;else{var e=t.tag;if(e===13){if(l=D(t),l!==null)return l;l=null}else if(e===31){if(l=N(t),l!==null)return l;l=null}else if(e===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return li=l,null}function Od(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dh()){case Bf:return 2;case Yf:return 8;case Ln:case hh:return 32;case Gf:return 268435456;default:return 32}default:return 32}}var bf=!1,Ue=null,Ce=null,Re=null,Hn=new Map,qn=new Map,He=[],_0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Dd(l,t){switch(l){case"focusin":case"focusout":Ue=null;break;case"dragenter":case"dragleave":Ce=null;break;case"mouseover":case"mouseout":Re=null;break;case"pointerover":case"pointerout":Hn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qn.delete(t.pointerId)}}function Bn(l,t,e,a,n,u){return l===null||l.nativeEvent!==u?(l={blockedOn:t,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ia(t),t!==null&&Ed(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),l)}function E0(l,t,e,a,n){switch(t){case"focusin":return Ue=Bn(Ue,l,t,e,a,n),!0;case"dragenter":return Ce=Bn(Ce,l,t,e,a,n),!0;case"mouseover":return Re=Bn(Re,l,t,e,a,n),!0;case"pointerover":var u=n.pointerId;return Hn.set(u,Bn(Hn.get(u)||null,l,t,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,qn.set(u,Bn(qn.get(u)||null,l,t,e,a,n)),!0}return!1}function Ud(l){var t=ua(l.target);if(t!==null){var e=E(t);if(e!==null){if(t=e.tag,t===13){if(t=D(e),t!==null){l.blockedOn=t,Kf(l.priority,function(){Md(e)});return}}else if(t===31){if(t=N(e),t!==null){l.blockedOn=t,Kf(l.priority,function(){Md(e)});return}}else if(t===3&&e.stateNode.current.memoizedState.isDehydrated){l.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}l.blockedOn=null}function ti(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var e=gf(l.nativeEvent);if(e===null){e=l.nativeEvent;var a=new e.constructor(e.type,e);gi=a,e.target.dispatchEvent(a),gi=null}else return t=ia(e),t!==null&&Ed(t),l.blockedOn=e,!1;t.shift()}return!0}function Cd(l,t,e){ti(l)&&e.delete(t)}function M0(){bf=!1,Ue!==null&&ti(Ue)&&(Ue=null),Ce!==null&&ti(Ce)&&(Ce=null),Re!==null&&ti(Re)&&(Re=null),Hn.forEach(Cd),qn.forEach(Cd)}function ei(l,t){l.blockedOn===t&&(l.blockedOn=null,bf||(bf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,M0)))}var ai=null;function Rd(l){ai!==l&&(ai=l,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){ai===l&&(ai=null);for(var t=0;t<l.length;t+=3){var e=l[t],a=l[t+1],n=l[t+2];if(typeof a!="function"){if(Sf(a||e)===null)continue;break}var u=ia(e);u!==null&&(l.splice(t,3),t-=3,pc(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Xa(l){function t(r){return ei(r,l)}Ue!==null&&ei(Ue,l),Ce!==null&&ei(Ce,l),Re!==null&&ei(Re,l),Hn.forEach(t),qn.forEach(t);for(var e=0;e<He.length;e++){var a=He[e];a.blockedOn===l&&(a.blockedOn=null)}for(;0<He.length&&(e=He[0],e.blockedOn===null);)Ud(e),e.blockedOn===null&&He.shift();if(e=(l.ownerDocument||l).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[ct]||null;if(typeof u=="function")i||Rd(e);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[ct]||null)s=i.formAction;else if(Sf(n)!==null)continue}else s=i.action;typeof s=="function"?e[a+1]=s:(e.splice(a,3),a-=3),Rd(e)}}}function Hd(){function l(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function jf(l){this._internalRoot=l}ni.prototype.render=jf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(o(409));var e=t.current,a=Tt();Ad(e,a,l,t,null,null)},ni.prototype.unmount=jf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;Ad(l.current,2,null,l,null,null),Yu(),t[na]=null}};function ni(l){this._internalRoot=l}ni.prototype.unstable_scheduleHydration=function(l){if(l){var t=Vf();l={blockedOn:null,target:l,priority:t};for(var e=0;e<He.length&&t!==0&&t<He[e].priority;e++);He.splice(e,0,l),e===0&&Ud(l)}};var qd=h.version;if(qd!=="19.2.6")throw Error(o(527,qd,"19.2.6"));C.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=y(t),l=l!==null?U(l):null,l=l===null?null:l.stateNode,l};var O0={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ui.isDisabled&&ui.supportsFiber)try{Ka=ui.inject(O0),pt=ui}catch{}}return Gn.createRoot=function(l,t){if(!x(l))throw Error(o(299));var e=!1,a="",n=Lo,u=Vo,i=Ko;return t!=null&&(t.unstable_strictMode===!0&&(e=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zd(l,1,!1,null,null,e,a,null,n,u,i,Hd),l[na]=t.current,tf(l),new jf(t)},Gn.hydrateRoot=function(l,t,e){if(!x(l))throw Error(o(299));var a=!1,n="",u=Lo,i=Vo,s=Ko,r=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError),e.formState!==void 0&&(r=e.formState)),t=zd(l,1,!0,t,e??null,a,n,r,u,i,s,Hd),t.context=Td(null),e=t.current,a=Tt(),a=oi(a),n=be(a),n.callback=null,je(e,n,a),e=a,t.current.lanes=e,wa(t,e),Kt(t),l[na]=t.current,tf(l),new ni(t)},Gn.version="19.2.6",Gn}var Jd;function X0(){if(Jd)return Nf.exports;Jd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(h){console.error(h)}}return f(),Nf.exports=Q0(),Nf.exports}var Z0=X0(),X=Df();const aa=U0(X);function Fd(f){const h=[];for(const D of f)for(const N of D.steps??[])h.push(N);h.sort((D,N)=>new Date(D.started_at).getTime()-new Date(N.started_at).getTime());const b=new Map;if(h.length===0)return b;const o=D=>{const N=Rf(D);return(Array.isArray(N.prompt)?N.prompt:[]).map(y=>JSON.stringify({role:y.role,content:y.content}))},x=(D,N)=>{if(D.length===0||D.length>N.length)return!1;for(let v=0;v<D.length;v++)if(D[v]!==N[v])return!1;return!0};let E=o(h[0]);b.set(h[0].id,"main");for(let D=1;D<h.length;D++){const N=o(h[D]);x(E,N)?(b.set(h[D].id,"main"),E=N):b.set(h[D].id,"sub")}return b}function Qn(f){return f==null?"—":f<1e3?f+"ms":(f/1e3).toFixed(2)+"s"}function Be(f){return f==null?"0":f<1e3?String(f):f<1e4?(f/1e3).toFixed(2)+"k":(f/1e3).toFixed(1)+"k"}function qt(f){return f?new Date(f).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"—"}function ii(f){if(f.isInProgress){const b=new Date(f.started_at).getTime();return Date.now()-b}let h=0;for(const b of f.steps||[])h+=b.duration_ms||0;return h}function L0(f){let h=0,b=0;for(const o of f.steps||[]){const x=lh(o);h+=th(x),b+=eh(x)}return{input:h,output:b}}function ci(f){var h;(h=navigator.clipboard)==null||h.writeText(f).catch(()=>{})}function Uf(f){var o,x;const h=(o=f.parsedMetadata)==null?void 0:o.topic;if(typeof h=="string"&&h.length>0)return h;const b=(x=f.first)==null?void 0:x.firstMessage;return b?b.length>60?b.slice(0,59)+"…":b:f.id}function oe(f){if(!f)return null;try{return JSON.parse(f)}catch{return f}}function V0(f){return(JSON.stringify(f,null,2)??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/("(\\u[\da-fA-F]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false)\b|\bnull\b|-?\d+(\.\d+)?([eE][+\-]?\d+)?)/g,o=>{let x="n";return o.startsWith('"')?x=o.endsWith(":")?"k":"s":o==="true"||o==="false"?x="b":o==="null"&&(x="nu"),`<span class="${x}">${o}</span>`})}function Xn({value:f,max:h=360}){if(f==null)return aa.createElement("div",{className:"json",style:{color:"var(--fg-faint)"}},"null");const b=V0(f);return aa.createElement("pre",{className:"json",style:{maxHeight:h},dangerouslySetInnerHTML:{__html:b}})}function K0(f){if(!f)return"";let h=f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");h=h.replace(/```([a-z]*)?\n([\s\S]*?)```/g,(v,y,U)=>`<pre><code>${U.replace(/\n$/,"")}</code></pre>`),h=h.replace(/^### (.*)$/gm,"<h3>$1</h3>"),h=h.replace(/^## (.*)$/gm,"<h2>$1</h2>"),h=h.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>"),h=h.replace(new RegExp("(?<!\\*)\\*([^*\\n]+)\\*(?!\\*)","g"),"<em>$1</em>"),h=h.replace(/`([^`]+)`/g,"<code>$1</code>");const b=h.split(/\n/),o=[];let x=!1,E=!1,D=!1;for(const v of b){if(v.startsWith("<pre>")){D=!0,o.push(v);continue}if(v.endsWith("</pre>")){D=!1,o.push(v);continue}if(D){o.push(v);continue}const y=v.match(/^[-*]\s+(.*)$/),U=v.match(/^\d+\.\s+(.*)$/);if(y){x||(o.push("<ul>"),x=!0),o.push("<li>"+y[1]+"</li>");continue}else x&&(o.push("</ul>"),x=!1);if(U){E||(o.push("<ol>"),E=!0),o.push("<li>"+U[1]+"</li>");continue}else E&&(o.push("</ol>"),E=!1);o.push(v)}return x&&o.push("</ul>"),E&&o.push("</ol>"),o.join(`
50
+ `).split(/\n\n+/).map(v=>/^<(h\d|ul|ol|pre)/.test(v.trim())?v:"<p>"+v.replace(/\n/g,"<br/>")+"</p>").join("")}function Cf({children:f,streaming:h=!1}){const b=K0(f||"");return aa.createElement("div",{className:"md"},[aa.createElement("span",{key:"h",dangerouslySetInnerHTML:{__html:b}}),h?aa.createElement("span",{key:"c",className:"stream-cursor"}):null])}function Id(f,h=64){if(f==null)return"";if(typeof f=="string"){const x=oe(f);return x&&typeof x=="object"?Id(x,h):f.length>h?f.slice(0,h)+"…":f}if(typeof f!="object")return String(f);const b=Object.entries(f);if(b.length===0)return"";const o=[];for(const[x,E]of b){let D;typeof E=="string"?D=`"${E.length>18?E.slice(0,18)+"…":E}"`:typeof E=="number"||typeof E=="boolean"?D=String(E):E===null?D="null":D=Array.isArray(E)?`[${E.length}]`:"{…}";const N=`${x}: ${D}`;if([...o,N].join(", ").length+2>h){o.push("…");break}o.push(N)}return o.join(", ")}function J0(f,h=64){return Id(f,h)}function w0(f,h=80){if(f==null)return"(null)";if(typeof f=="string")return f.length>h?f.slice(0,h)+"…":f;const b=JSON.stringify(f);return b.length>h?b.slice(0,h)+"…":b}function k0(f){const h=[];for(const N of f)if(N.steps)for(const v of N.steps)h.push({run:N,step:v});h.sort((N,v)=>new Date(N.step.started_at).getTime()-new Date(v.step.started_at).getTime());const b=Fd(f),o=N=>b.get(N)==="sub",x=[],E=new Set,D=new Set;for(const{run:N,step:v}of h){const y=o(v.id);if(!E.has(N.id)){const Z=$0(N)??N.firstMessage??"";Z&&x.push({id:`${N.id}:user`,kind:"user",run:N,runId:N.id,step:v,stepId:v.id,text:Z,timestamp:v.started_at,isSubagent:y}),E.add(N.id)}const U=W0(v.input);let R=0;for(const Z of U){if(!Z||typeof Z!="object")continue;const k=Z;if(Array.isArray(k.content))for(const I of k.content)(I==null?void 0:I.type)==="tool-result"&&I.toolCallId&&!D.has(I.toolCallId)&&(x.push({id:`${N.id}:${v.id}:tr${R++}:${I.toolCallId}`,kind:"tool-result",run:N,runId:N.id,step:v,stepId:v.id,part:I,timestamp:v.started_at,isSubagent:y}),D.add(I.toolCallId))}const L=Pd(v.output);Array.isArray(L)?L.forEach((Z,k)=>{Z.type==="tool-call"?x.push({id:`${N.id}:${v.id}:out${k}`,kind:"tool-call",run:N,runId:N.id,step:v,stepId:v.id,part:Z,timestamp:v.started_at,isSubagent:y}):Z.type==="reasoning"||Z.type==="thinking"?x.push({id:`${N.id}:${v.id}:out${k}`,kind:"reasoning",run:N,runId:N.id,step:v,stepId:v.id,part:Z,timestamp:v.started_at,isSubagent:y}):Z.type==="text"&&x.push({id:`${N.id}:${v.id}:out${k}`,kind:"text",run:N,runId:N.id,step:v,stepId:v.id,part:Z,timestamp:v.started_at,isSubagent:y})}):typeof L=="string"&&L.length>0&&x.push({id:`${N.id}:${v.id}:out0`,kind:"text",run:N,runId:N.id,step:v,stepId:v.id,part:{type:"text",text:L},timestamp:v.started_at,isSubagent:y}),v.error&&x.push({id:`${N.id}:${v.id}:err`,kind:v.error==="Request aborted"?"aborted":"error",run:N,runId:N.id,step:v,stepId:v.id,text:v.error,isSubagent:y,timestamp:v.started_at})}return x}function $0(f){const h=f.steps||[];for(let b=h.length-1;b>=0;b--){const o=h[b],x=Rf(o),E=Array.isArray(x.prompt)?x.prompt:[];for(let D=E.length-1;D>=0;D--){const N=E[D];if(!(!N||N.role!=="user")){if(typeof N.content=="string")return N.content;if(Array.isArray(N.content)){for(const v of N.content)if(v&&v.type==="text"&&typeof v.text=="string")return v.text}}}}return null}function W0(f){const h=oe(f);return Array.isArray(h==null?void 0:h.prompt)?h.prompt:[]}function Pd(f){const h=oe(f);if(!h)return null;const b=h.content;if(typeof b=="string"||Array.isArray(b))return b;const o=[];if(Array.isArray(h.reasoningParts))for(const x of h.reasoningParts)o.push(x);if(Array.isArray(h.toolCalls))for(const x of h.toolCalls)o.push(x);if(Array.isArray(h.textParts))for(const x of h.textParts)o.push(x);return o.length?o:null}function Rf(f){const h=oe(f.input);return h&&typeof h=="object"?h:{}}function F0(f){const h=oe(f.output);return h&&typeof h=="object"?h:{}}function lh(f){const h=oe(f.usage);return!h||typeof h!="object"?null:h}function th(f){var h;return f?typeof f.inputTokens=="number"?f.inputTokens:((h=f.inputTokens)==null?void 0:h.total)||0:0}function eh(f){var h;return f?typeof f.outputTokens=="number"?f.outputTokens:((h=f.outputTokens)==null?void 0:h.total)||0:0}function I0(f){if(f)return typeof f=="string"?f:f.unified||f.raw}/**
51
+ * @license lucide-react v0.556.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const P0=f=>f.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ly=f=>f.replace(/^([A-Z])|[\s-_]+(\w)/g,(h,b,o)=>o?o.toUpperCase():b.toLowerCase()),wd=f=>{const h=ly(f);return h.charAt(0).toUpperCase()+h.slice(1)},ah=(...f)=>f.filter((h,b,o)=>!!h&&h.trim()!==""&&o.indexOf(h)===b).join(" ").trim(),ty=f=>{for(const h in f)if(h.startsWith("aria-")||h==="role"||h==="title")return!0};/**
56
+ * @license lucide-react v0.556.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */var ey={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
61
+ * @license lucide-react v0.556.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const ay=X.forwardRef(({color:f="currentColor",size:h=24,strokeWidth:b=2,absoluteStrokeWidth:o,className:x="",children:E,iconNode:D,...N},v)=>X.createElement("svg",{ref:v,...ey,width:h,height:h,stroke:f,strokeWidth:o?Number(b)*24/Number(h):b,className:ah("lucide",x),...!E&&!ty(N)&&{"aria-hidden":"true"},...N},[...D.map(([y,U])=>X.createElement(y,U)),...Array.isArray(E)?E:[E]]));/**
66
+ * @license lucide-react v0.556.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Vl=(f,h)=>{const b=X.forwardRef(({className:o,...x},E)=>X.createElement(ay,{ref:E,iconNode:h,className:ah(`lucide-${P0(wd(f))}`,`lucide-${f}`,o),...x}));return b.displayName=wd(f),b};/**
71
+ * @license lucide-react v0.556.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const ny=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],uy=Vl("activity",ny);/**
76
+ * @license lucide-react v0.556.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const iy=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],cy=Vl("brain",iy);/**
81
+ * @license lucide-react v0.556.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const fy=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sy=Vl("chevron-down",fy);/**
86
+ * @license lucide-react v0.556.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const oy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ry=Vl("chevron-right",oy);/**
91
+ * @license lucide-react v0.556.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const dy=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],hy=Vl("clipboard-copy",dy);/**
96
+ * @license lucide-react v0.556.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const my=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],yy=Vl("copy",my);/**
101
+ * @license lucide-react v0.556.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const vy=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],py=Vl("corner-down-left",vy);/**
106
+ * @license lucide-react v0.556.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const gy=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Sy=Vl("list",gy);/**
111
+ * @license lucide-react v0.556.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const by=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],jy=Vl("refresh-cw",by);/**
116
+ * @license lucide-react v0.556.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const xy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ny=Vl("search",xy);/**
121
+ * @license lucide-react v0.556.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const zy=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ty=Vl("settings",zy);/**
126
+ * @license lucide-react v0.556.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Ay=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],_y=Vl("sparkles",Ay);/**
131
+ * @license lucide-react v0.556.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Ey=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],My=Vl("square",Ey);/**
136
+ * @license lucide-react v0.556.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Oy=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Dy=Vl("trash-2",Oy);/**
141
+ * @license lucide-react v0.556.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Uy=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Cy=Vl("triangle-alert",Uy);/**
146
+ * @license lucide-react v0.556.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Ry=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Hy=Vl("type",Ry);/**
151
+ * @license lucide-react v0.556.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const qy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],By=Vl("user",qy);/**
156
+ * @license lucide-react v0.556.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const Yy=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Gy=Vl("wrench",Yy),Kl=f=>({size:h=14,...b})=>aa.createElement(f,{size:h,strokeWidth:1.75,...b}),Qy=Kl(uy),Mf=Kl(Cy),nh=Kl(py),uh=Kl(cy),Xy=Kl(ry),Zy=Kl(sy),Ly=Kl(Ty),Vy=Kl(yy),Ky=Kl(hy),Jy=Kl(Sy),wy=Kl(jy),ky=Kl(Ny),Hf=Kl(_y),Of=Kl(My),ih=Kl(Hy),kd=Kl(Dy),ch=Kl(By),qf=Kl(Gy);function $y({threads:f,activeThreadId:h,onSelectThread:b,searchRef:o,hasMore:x,loadingMore:E,onLoadMore:D}){const[N,v]=X.useState(""),y=X.useMemo(()=>{if(!N.trim())return f;const U=N.toLowerCase();return f.filter(R=>Uf(R).toLowerCase().includes(U)||R.id.toLowerCase().includes(U)||(R.parsedMetadata?JSON.stringify(R.parsedMetadata).toLowerCase().includes(U):!1)||R.runs.some(L=>(L.firstMessage||"").toLowerCase().includes(U)||(L.steps||[]).some(Z=>(Z.model_id||"").toLowerCase().includes(U))))},[f,N]);return c.jsxs("div",{className:"sidebar",children:[c.jsxs("div",{className:"sidebar-head",children:[c.jsx("span",{children:"Threads"}),c.jsx("span",{className:"count",children:f.length})]}),c.jsxs("div",{className:"sidebar-search",children:[c.jsx(ky,{size:13,style:{color:"var(--fg-faint)"}}),c.jsx("input",{ref:o,placeholder:"Filter threads…",value:N,onChange:U=>v(U.target.value),spellCheck:!1}),c.jsx("span",{className:"kbd",children:"/"})]}),c.jsx("div",{className:"runs",children:y.length===0?c.jsx("div",{style:{padding:16,color:"var(--fg-faint)",fontSize:12,textAlign:"center"},children:"No matching threads."}):c.jsxs(c.Fragment,{children:[y.map(U=>c.jsx(Wy,{thread:U,active:U.id===h,onClick:()=>b(U.id)},U.id)),x&&!N.trim()?c.jsx("button",{className:"sidebar-load-more",onClick:D,disabled:E,children:E?"Loading…":"Load more"}):null]})})]})}function Wy({thread:f,active:h,onClick:b}){const o=f.runs.some(N=>{var v;return N.hasError&&!((v=N.steps)!=null&&v.some(y=>y.error==="Request aborted"))}),x=f.runs.some(N=>{var v;return(v=N.steps)==null?void 0:v.some(y=>y.error==="Request aborted")}),E=Uf(f),D=f.id.startsWith("auto-");return c.jsx("div",{className:"run-card thread-card"+(h?" active":""),onClick:b,children:c.jsxs("div",{className:"run-main",children:[c.jsx("div",{className:"run-title",children:E}),c.jsx("div",{className:"run-meta",children:c.jsx("span",{className:"mono tiny"+(D?" auto":""),children:f.id})}),c.jsxs("div",{className:"run-meta",children:[c.jsxs("span",{children:[f.runs.length," run",f.runs.length===1?"":"s"]}),c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{children:qt(f.last.started_at)}),o?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{className:"err",children:"error"})]}):null,x?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{className:"warn",children:"aborted"})]}):null]})]})})}function Fy({messages:f,selectedStepKey:h,focusedMsgId:b,onSelect:o,scrollKey:x}){const E=X.useRef({}),D=X.useRef(null);X.useEffect(()=>{if(!b)return;const v=E.current[b];v&&v.scrollIntoView({block:"center",behavior:"smooth"})},[b,x]);const N=X.useMemo(()=>{const v=[];let y=null;for(const U of f){const R=`${U.runId}:${U.stepId||"noop"}`;!y||y.key!==R?(y={key:R,runId:U.runId,stepId:U.stepId,msgs:[U]},v.push(y)):y.msgs.push(U)}return v},[f]);return c.jsx("div",{className:"chat-scroll",ref:D,children:c.jsx("div",{className:"chat-inner",children:N.map(v=>c.jsx(aa.Fragment,{children:c.jsx("div",{className:"step-group"+(v.key===h?" selected":""),"data-step-key":v.key,onClick:()=>o(v.msgs[0]),children:v.msgs.map(y=>c.jsx("div",{className:"cm-wrap",ref:U=>{E.current[y.id]=U},onClick:U=>{U.stopPropagation(),o(y)},children:c.jsx(Iy,{msg:y,focused:y.id===b})},y.id))})},v.key))})})}function Iy({msg:f,focused:h}){var E,D;const b=h?" focused":"",o=f.isSubagent?" subagent":"",x=f.isSubagent?c.jsx("span",{className:"sub-badge",children:"SUBAGENT"}):null;if(f.kind==="user")return c.jsxs("div",{className:"cm cm-user"+b+o,children:[c.jsxs("div",{className:"cm-meta",children:[x,c.jsx(ch,{size:11}),c.jsx("span",{children:"You"}),c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{children:qt(f.timestamp)})]}),c.jsx("div",{className:"cm-body",children:f.text})]});if(f.kind==="text"){const N=((E=f.part)==null?void 0:E.text)||f.text||"";return c.jsxs("div",{className:"cm cm-text"+b+o,children:[c.jsxs("div",{className:"cm-meta",children:[x,c.jsx(Hf,{size:11}),c.jsx("span",{children:((D=f.step)==null?void 0:D.model_id)??"assistant"}),c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{children:qt(f.timestamp)})]}),c.jsx("div",{className:"cm-body",children:c.jsx(Cf,{children:N})})]})}if(f.kind==="tool-call"){const N=f.part,v=N.args??N.input;return c.jsxs("div",{className:"cm cm-tool-call"+b+o,children:[c.jsxs("div",{className:"cm-meta",children:[x,c.jsx(qf,{size:11}),c.jsx("span",{children:"tool call"}),N.toolCallId?c.jsx("span",{className:"tc-id",children:N.toolCallId}):null,c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{children:qt(f.timestamp)})]}),c.jsxs("div",{className:"cm-tool-line",children:[c.jsx("span",{className:"tc-name",children:N.toolName}),c.jsxs("span",{className:"tc-args",children:["(",J0(v),")"]})]})]})}if(f.kind==="tool-result"){const N=f.part,v=N.result??N.output;return c.jsxs("div",{className:"cm cm-tool-result"+b+o,children:[c.jsxs("div",{className:"cm-meta",children:[x,c.jsx(nh,{size:11}),c.jsx("span",{children:"tool result"}),N.toolCallId?c.jsx("span",{className:"tc-id matched",children:N.toolCallId}):null,c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{children:qt(f.timestamp)})]}),c.jsxs("div",{className:"cm-tool-line",children:[N.toolName?c.jsx("span",{className:"tc-name",children:N.toolName}):null,c.jsxs("span",{className:"tc-args",children:["→ ",w0(v)]})]})]})}if(f.kind==="reasoning"){const N=f.part,v=N.text??N.thinking??N.reasoning??"";return c.jsxs("div",{className:"cm cm-reasoning"+b+o,children:[c.jsxs("div",{className:"cm-meta",children:[x,c.jsx(uh,{size:11}),c.jsx("span",{children:"reasoning"}),c.jsx("span",{className:"sep",children:"·"}),c.jsxs("span",{children:[v.length," chars"]})]}),c.jsx("div",{className:"cm-body cm-reasoning-text",children:v.length>220?v.slice(0,220)+"…":v})]})}return f.kind==="error"||f.kind==="aborted"?c.jsxs("div",{className:`cm cm-${f.kind}`+b+o,children:[c.jsxs("div",{className:"cm-meta",children:[x,f.kind==="aborted"?c.jsx(Of,{size:11}):c.jsx(Mf,{size:11}),c.jsx("span",{children:f.kind}),c.jsx("span",{className:"sep",children:"·"}),c.jsx("span",{children:qt(f.timestamp)})]}),c.jsx("div",{className:"cm-body",children:f.text})]}):null}function Py({thread:f,view:h,onChangeView:b}){const o=f.runs.reduce((Z,k)=>Z+(k.stepCount||0),0),x=f.runs.reduce((Z,k)=>{const I=L0(k);return Z.input+=I.input,Z.output+=I.output,Z},{input:0,output:0}),E=f.runs.reduce((Z,k)=>Z+ii(k),0),D=f.runs.some(Z=>Z.hasError),N=Uf(f),v=f.parsedMetadata,y=v?Object.entries(v):[],U=f.id.startsWith("auto-"),R=f.first.started_at,L=f.last.started_at;return c.jsxs("div",{className:"thread-head-full",style:{gap:"8px"},children:[c.jsxs("div",{className:"th-row1",children:[c.jsx("div",{className:"thread-head-title",title:N,children:N}),c.jsxs("div",{className:"tabs",children:[c.jsxs("button",{className:h==="chat"?"active":"",onClick:()=>b("chat"),title:"Chat view",children:[c.jsx(Hf,{size:12})," Chat"]}),c.jsxs("button",{className:h==="list"?"active":"",onClick:()=>b("list"),title:"List view",children:[c.jsx(Jy,{size:12})," List"]}),c.jsxs("button",{className:h==="timeline"?"active":"",onClick:()=>b("timeline"),title:"Timeline view",children:[c.jsx(Qy,{size:12})," Timeline"]})]})]}),c.jsxs("div",{className:"th-row2",children:[c.jsx("span",{className:"th-id",onClick:()=>ci(f.id),title:"copy thread_id",children:c.jsx("span",{className:"mono"+(U?" auto":""),children:f.id})}),c.jsx("span",{className:"th-sep"}),c.jsxs("span",{className:"th-stat",children:[c.jsx("span",{className:"v",children:f.runs.length})," runs"]}),c.jsxs("span",{className:"th-stat",children:[c.jsx("span",{className:"v",children:o})," steps"]}),c.jsx("span",{className:"th-stat",children:c.jsx("span",{className:"v",children:Qn(E)})}),c.jsxs("span",{className:"th-stat",children:[c.jsx("span",{className:"v",children:Be(x.input+x.output)})," tok"]}),c.jsx("span",{className:"th-sep"}),c.jsxs("span",{className:"th-stat",title:"created_at "+R,children:[c.jsx("span",{className:"th-k",children:"created"})," ",c.jsx("span",{className:"v",children:qt(R)})]}),c.jsxs("span",{className:"th-stat",title:"updated_at "+L,children:[c.jsx("span",{className:"th-k",children:"updated"})," ",c.jsx("span",{className:"v",children:qt(L)})]}),D?c.jsx("span",{className:"th-bad",children:"errors"}):null,y.length>0?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"th-sep"}),c.jsx("span",{className:"th-meta-label",title:"thread.metadata (JSON, first-writer-wins)",children:"meta"}),c.jsx("span",{className:"th-meta-pills",children:y.map(([Z,k])=>c.jsxs("span",{className:"th-pill",children:[c.jsx("span",{className:"k",children:Z}),c.jsx("span",{className:"v",children:String(k)})]},Z))})]}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"th-sep"}),c.jsx("span",{className:"th-meta-empty",children:"no metadata"})]})]})]})}function l1({thread:f,view:h,selectedStepKey:b,focusedMsgId:o,onSelectMessage:x,onSelectStep:E,scrollKey:D}){const N=X.useMemo(()=>k0(f.runs),[f]),v=X.useMemo(()=>Fd(f.runs),[f]);return c.jsx("div",{className:"middle",children:h==="chat"?c.jsx(Fy,{messages:N,selectedStepKey:b,focusedMsgId:o,onSelect:x,onSelectStep:E,scrollKey:D}):h==="list"?c.jsx(t1,{thread:f,roles:v,selectedStepKey:b,onSelectStep:E}):c.jsx(e1,{thread:f,roles:v,selectedStepKey:b,onSelectStep:E})})}const fh=(f,h)=>{const b=f.steps??[];return b.length===0?!1:b.every(o=>h.get(o.id)==="sub")};function t1({thread:f,roles:h,selectedStepKey:b,onSelectStep:o}){return c.jsx("div",{className:"run-list-mid",children:f.runs.map((x,E)=>{var L,Z;const D=(L=x.steps)==null?void 0:L[0],N=ii(x),v=(Z=x.steps)==null?void 0:Z.some(k=>k.error==="Request aborted"),y=x.hasError&&!v,U=!!b&&b.startsWith(x.id+":"),R=fh(x,h);return c.jsxs("div",{className:"run-row-compact"+(U?" selected":"")+(y?" errored":"")+(v?" aborted":"")+(R?" subagent":""),onClick:()=>D&&o(x.id,D.id),children:[c.jsx("span",{className:"rrc-idx",children:E+1}),c.jsx("span",{className:"rrc-title",children:x.firstMessage||x.function_id}),c.jsx("span",{className:"rrc-meta",children:x.stepCount}),c.jsx("span",{className:"rrc-meta",children:Qn(N)}),c.jsx("span",{className:"rrc-time",children:qt(x.started_at)})]},x.id)})})}function e1({thread:f,roles:h,selectedStepKey:b,onSelectStep:o}){const x=X.useMemo(()=>{let y=1/0,U=-1/0;for(const L of f.runs){const Z=new Date(L.started_at).getTime(),k=Z+ii(L);Z<y&&(y=Z),k>U&&(U=k)}if(y===1/0)return{t0:0,t1:1,total:1};const R=Math.max(U-y,1);return{t0:y,t1:U,total:R}},[f]),E=x.total;let D;E<1e4?D=2e3:E<6e4?D=1e4:E<6e5?D=6e4:E<36e5?D=6e5:D=18e5;const N=[];for(let y=0;y<=E+1;y+=D)N.push(y);const v=y=>E<6e4?(y/1e3).toFixed(0)+"s":E<36e5?Math.floor(y/6e4)+"m":(y/36e5).toFixed(1)+"h";return c.jsxs("div",{className:"ttl-scroll",children:[c.jsx("div",{className:"ttl-axis-wrap",children:c.jsx("div",{className:"ttl-axis",children:N.map((y,U)=>c.jsx("div",{className:"ttl-tick",style:{left:y/E*100+"%"},children:v(y)},U))})}),c.jsx("div",{className:"ttl-runs",children:f.runs.map((y,U)=>{var Cl,Rl;const R=(Cl=y.steps)==null?void 0:Cl.some(P=>P.error==="Request aborted"),L=y.hasError&&!R,Z=new Date(y.started_at).getTime(),k=ii(y),I=Z+k,at=(Z-x.t0)/E*100,Ul=Math.max((I-Z)/E*100,.6),nt=(Rl=y.steps)==null?void 0:Rl[0],jl=!!b&&b.startsWith(y.id+":"),Ml=fh(y,h);return c.jsxs("div",{className:"ttl-runline"+(jl?" selected":"")+(Ml?" subagent":""),onClick:()=>nt&&o(y.id,nt.id),children:[c.jsxs("div",{className:"ttl-rl-label",children:[c.jsx("span",{className:"ttl-rl-idx"+(Ml?" subagent":""),children:U+1}),c.jsx("span",{className:"ttl-rl-title",children:y.firstMessage||y.function_id||y.id})]}),c.jsx("div",{className:"ttl-rl-track",children:c.jsx("div",{className:"ttl-rl-bar"+(L?" err":"")+(R?" ab":"")+(jl?" selected":"")+(Ml?" subagent":""),style:{left:at+"%",width:Ul+"%"},title:`${y.firstMessage||y.function_id||y.id} · ${y.stepCount} steps · ${Qn(k)} · ${qt(y.started_at)}`,children:c.jsxs("span",{className:"ttl-rl-bar-inner",children:[c.jsx("span",{className:"ttl-rl-bar-dur",children:Qn(k)}),c.jsxs("span",{className:"ttl-rl-bar-steps",children:[y.stepCount,"st"]})]})})}),c.jsx("div",{className:"ttl-rl-meta",children:qt(y.started_at)})]},y.id)})}),c.jsxs("div",{className:"ttl-legend",children:[c.jsxs("span",{children:[c.jsx("i",{className:"dot orch"})," run"]}),c.jsxs("span",{children:[c.jsx("i",{className:"dot err"})," error"]}),c.jsxs("span",{children:[c.jsx("i",{className:"dot ab"})," aborted"]})]})]})}function a1({msg:f}){const h=f.role||"user",b=h==="user"?ch:h==="system"?Ly:h==="assistant"?Hf:h==="tool"?qf:null;return c.jsxs("div",{className:"msg "+(h==="system"?"system":""),children:[c.jsxs("div",{className:"msg-role",children:[b?c.jsx(b,{size:10}):null,h]}),c.jsx("div",{className:"msg-content",children:typeof f.content=="string"?f.content:Array.isArray(f.content)?f.content.map((o,x)=>o.type==="tool-call"?c.jsx(oh,{part:o,highlight:null,onHl:$d},x):o.type==="tool-result"?c.jsx(rh,{part:o,highlight:null,onHl:$d},x):c.jsx("div",{children:"text"in o&&o.text||JSON.stringify(o)},x)):JSON.stringify(f.content)})]})}function $d(){}function n1({prompt:f,tools:h,temperature:b,responseFormat:o}){if(!f||f.length===0)return c.jsx("div",{style:{color:"var(--fg-faint)"},children:"(empty)"});const x=(h||[]).map(E=>typeof E=="string"?E:(E==null?void 0:E.name)||JSON.stringify(E));return c.jsxs("div",{children:[f.map((E,D)=>c.jsx(a1,{msg:E},D)),x.length||b!=null||o?c.jsxs("div",{className:"msg",style:{background:"transparent",border:"1px dashed var(--border)"},children:[c.jsx("div",{className:"msg-role",children:"params"}),c.jsxs("div",{className:"msg-content",style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--fg-muted)"},children:[x.length?c.jsxs("div",{children:["tools: ",x.join(", ")]}):null,b!=null?c.jsxs("div",{children:["temperature: ",b]}):null,o?c.jsxs("div",{children:["responseFormat: ",JSON.stringify(o)]}):null]})]}):null]})}function Zn({kind:f,icon:h,name:b,tail:o,idChip:x,defaultOpen:E=!0,children:D}){const[N,v]=X.useState(E);return c.jsxs("div",{className:`part ${f} ${N?"":"collapsed"}`,children:[c.jsxs("div",{className:"part-head",onClick:()=>v(!N),children:[h,c.jsx("span",{className:"name",children:b}),x,c.jsx("span",{className:"tail",children:o}),c.jsx(Zy,{size:11,className:"chev",style:{transform:N?"":"rotate(-90deg)",color:"currentColor"}})]}),N?c.jsx("div",{className:"part-body",children:D}):null]})}function sh({id:f,kind:h="call",highlight:b,onHl:o}){if(!f)return null;const x=h==="result";return c.jsx("span",{className:`tool-call-id ${x?"matched":""} ${b===f?"highlight":""}`,onMouseEnter:()=>o==null?void 0:o(f),onMouseLeave:()=>o==null?void 0:o(null),onClick:E=>{E.stopPropagation(),ci(f)},title:"click to copy",children:f})}function oh({part:f,highlight:h,onHl:b}){let o=f.args??f.input;if(typeof o=="string"){const x=oe(o);x&&typeof x=="object"&&(o=x)}return c.jsx(Zn,{kind:"tool-call",icon:c.jsx(qf,{size:12}),name:`tool · ${f.toolName}`,idChip:c.jsx(sh,{id:f.toolCallId,kind:"call",highlight:h,onHl:b}),tail:null,children:c.jsx(Xn,{value:o})})}function rh({part:f,highlight:h,onHl:b}){const o=f.result??f.output;return c.jsx(Zn,{kind:"tool-result",icon:c.jsx(nh,{size:12}),name:`tool-result · ${f.toolName??""}`,idChip:c.jsx(sh,{id:f.toolCallId,kind:"result",highlight:h,onHl:b}),tail:null,children:typeof o=="string"?c.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:12,whiteSpace:"pre-wrap"},children:o}):c.jsx(Xn,{value:o})})}function u1({part:f}){const h=f.text??f.thinking??f.reasoning??"";return c.jsx(Zn,{kind:"reasoning",icon:c.jsx(uh,{size:12}),name:"reasoning",tail:`${h.length} chars`,defaultOpen:!1,children:c.jsx("div",{className:"reasoning-text",children:h})})}function i1({part:f,streaming:h=!1}){var b;return c.jsx(Zn,{kind:"text-out",icon:c.jsx(ih,{size:12}),name:"text",tail:h?"streaming…":`${((b=f.text)==null?void 0:b.length)||0} chars`,defaultOpen:!0,children:c.jsx(Cf,{streaming:h,children:f.text})})}function c1({step:f,highlight:h,onHl:b}){var D;const o=Pd(f.output),x=f.duration_ms===null&&!f.error;if(!o||Array.isArray(o)&&o.length===0)return c.jsx("div",{style:{color:"var(--fg-faint)",fontSize:12},children:"(no content)"});const E=oe(f.input);if(typeof o=="string"){const N=((D=E==null?void 0:E.responseFormat)==null?void 0:D.type)==="json";return c.jsx(Zn,{kind:"text-out",icon:c.jsx(ih,{size:12}),name:N?"json":"text",tail:`${o.length} chars`,defaultOpen:!0,children:N?c.jsx(Xn,{value:(()=>{try{return JSON.parse(o)}catch{return o}})()}):c.jsx(Cf,{streaming:x,children:o})})}return c.jsx(c.Fragment,{children:o.map((N,v)=>N.type==="tool-call"?c.jsx(oh,{part:N,highlight:h,onHl:b},v):N.type==="tool-result"?c.jsx(rh,{part:N,highlight:h,onHl:b},v):N.type==="reasoning"||N.type==="thinking"?c.jsx(u1,{part:N},v):N.type==="text"?c.jsx(i1,{part:N,streaming:x&&v===o.length-1},v):null)})}function f1({usage:f}){var E,D;if(!f)return c.jsx("div",{style:{color:"var(--fg-faint)"},children:"—"});const h=typeof f.inputTokens=="number"?f.inputTokens:((E=f.inputTokens)==null?void 0:E.total)||0,b=typeof f.outputTokens=="number"?f.outputTokens:((D=f.outputTokens)==null?void 0:D.total)||0,o=typeof f.inputTokens=="object"&&f.inputTokens?f.inputTokens:{cacheRead:void 0,cacheWrite:void 0},x=typeof f.outputTokens=="object"&&f.outputTokens?f.outputTokens:{reasoning:void 0};return c.jsxs("div",{className:"usage-grid",children:[c.jsxs("div",{className:"usage-card",children:[c.jsx("div",{className:"l",children:"input"}),c.jsx("div",{className:"v",children:Be(h)}),c.jsxs("div",{className:"bd",children:[o.cacheRead!=null?c.jsxs("span",{children:["cache read · ",Be(o.cacheRead)]}):null,o.cacheWrite!=null?c.jsxs("span",{children:["cache write · ",Be(o.cacheWrite)]}):null]})]}),c.jsxs("div",{className:"usage-card",children:[c.jsx("div",{className:"l",children:"output"}),c.jsx("div",{className:"v",children:Be(b)}),c.jsx("div",{className:"bd",children:x.reasoning!=null?c.jsxs("span",{children:["reasoning · ",Be(x.reasoning)]}):null})]})]})}function s1({step:f,run:h,thread:b}){var jl,Ml;const[o,x]=X.useState("io"),[E,D]=X.useState(null);X.useEffect(()=>{D(null)},[f==null?void 0:f.id]);const N=X.useMemo(()=>f?Rf(f):null,[f]),v=X.useMemo(()=>f?F0(f):null,[f]),y=X.useMemo(()=>f?lh(f):null,[f]);if(!f||!h||!N||!v)return c.jsx("div",{className:"details empty",children:c.jsxs("div",{className:"empty-card",style:{textAlign:"center",padding:24},children:[c.jsx("h2",{style:{color:"var(--fg)"},children:"No step selected"}),c.jsx("p",{children:"Click any chat message or list row."})]})});const U=f.error==="Request aborted",R=!!f.error&&!U,L=I0(v.finishReason),Z=th(y),k=eh(y),I=Array.isArray(N.prompt)?N.prompt.length:0,at=((jl=h.steps)==null?void 0:jl.length)??h.stepCount??0,Ul=b!=null&&b.runs?b.runs.findIndex(Cl=>Cl.id===h.id):-1,nt=((Ml=b==null?void 0:b.runs)==null?void 0:Ml.length)??0;return c.jsxs("div",{className:"step-pane-root",children:[c.jsx("div",{className:"step-pane-head",children:c.jsxs("div",{className:"sph-row sph-row-crumb",children:[c.jsxs("div",{className:"sph-row-left",children:[Ul>=0&&nt>0?c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"sph-crumb-run",children:["Run ",c.jsx("span",{className:"mono",children:Ul+1}),c.jsxs("span",{className:"sph-crumb-of",children:[" / ",nt]})]}),h.function_id?c.jsx("span",{className:"sph-crumb-fn",title:"function_id: "+h.function_id,children:h.function_id}):null,c.jsx(Xy,{size:9})]}):null,c.jsxs("span",{className:"sph-crumb-step",children:["Step ",c.jsx("span",{className:"mono",children:f.step_number}),c.jsxs("span",{className:"sph-crumb-of",children:[" / ",at]})]}),R?c.jsxs("span",{className:"sph-status err",children:[c.jsx(Mf,{size:10})," error"]}):null,U?c.jsxs("span",{className:"sph-status ab",children:[c.jsx(Of,{size:10})," aborted"]}):null,c.jsx("span",{className:"sph-ts",children:qt(f.started_at)})]}),c.jsxs("div",{className:"sph-row-right",children:[c.jsxs("div",{className:"sph-metric",children:[c.jsx("span",{className:"sph-metric-l",children:"dur"}),c.jsx("span",{className:"sph-metric-v",children:Qn(f.duration_ms)})]}),c.jsx("span",{className:"sph-sep"}),c.jsxs("div",{className:"sph-metric",children:[c.jsx("span",{className:"sph-metric-l",children:"in"}),c.jsx("span",{className:"sph-metric-v",children:Be(Z)}),c.jsx("span",{className:"sph-metric-l",style:{marginLeft:4},children:"out"}),c.jsx("span",{className:"sph-metric-v",children:Be(k)})]}),c.jsx("button",{className:"sph-id-btn",onClick:()=>ci(f.id),title:"copy step id · "+f.id,children:c.jsx(Ky,{size:15})})]})]})}),c.jsxs("div",{className:"step-tabs sph-tabs",children:[c.jsx("button",{className:o==="io"?"active":"",onClick:()=>x("io"),children:"I/O"}),c.jsx("button",{className:o==="usage"?"active":"",onClick:()=>x("usage"),children:"Usage"}),c.jsx("button",{className:o==="raw"?"active":"",onClick:()=>x("raw"),children:"Raw"}),c.jsx("div",{style:{flex:1}}),o==="raw"?c.jsxs("button",{onClick:()=>ci(JSON.stringify(f,null,2)),className:"d-small-btn",title:"copy step JSON",children:[c.jsx(Vy,{size:11})," copy"]}):null]}),c.jsx("div",{className:"step-pane-body",children:o==="io"?c.jsxs("div",{className:"sp-io",children:[c.jsxs("div",{className:"sp-meta-strip",children:[c.jsx("span",{className:"model-badge",children:f.model_id}),c.jsx("span",{className:"type-badge "+(f.type||""),children:f.type}),f.provider?c.jsxs("span",{className:"sp-meta-item",children:[c.jsx("span",{className:"sp-meta-k",children:"provider"})," ",f.provider]}):null,L?c.jsxs("span",{className:"sp-meta-item",children:[c.jsx("span",{className:"sp-meta-k",children:"finish"})," ",L]}):null]}),c.jsxs("div",{className:"sp-section",children:[c.jsxs("div",{className:"sp-section-head",children:[c.jsx("span",{children:"Input"}),c.jsxs("span",{className:"sph-meta",children:[I," message",I===1?"":"s"]})]}),c.jsx(n1,{prompt:N.prompt,tools:N.tools,temperature:N.temperature})]}),c.jsxs("div",{className:"sp-section",children:[c.jsxs("div",{className:"sp-section-head",children:[c.jsx("span",{children:"Output"}),L?c.jsx("span",{className:"sph-meta",children:L}):null]}),c.jsx(c1,{step:f,highlight:E,onHl:D}),f.error?c.jsxs("div",{className:"error-pane "+(U?"warn":""),style:{marginTop:10},children:[U?c.jsx(Of,{size:12}):c.jsx(Mf,{size:12}),c.jsxs("div",{children:[c.jsx("div",{style:{fontWeight:600,marginBottom:2},children:U?"Aborted":"Error"}),c.jsx("div",{style:{color:"currentColor",opacity:.85},children:f.error})]})]}):null]})]}):o==="usage"?c.jsxs("div",{className:"sp-padded",children:[c.jsx(f1,{usage:y}),c.jsxs("div",{className:"sp-meta-grid",children:[c.jsx("span",{className:"k",children:"step_id"}),c.jsx("span",{className:"mono",children:f.id}),c.jsx("span",{className:"k",children:"run_id"}),c.jsx("span",{className:"mono",children:f.run_id||h.id}),c.jsx("span",{className:"k",children:"type"}),c.jsx("span",{children:f.type}),c.jsx("span",{className:"k",children:"model_id"}),c.jsx("span",{children:f.model_id}),c.jsx("span",{className:"k",children:"provider"}),c.jsx("span",{children:f.provider??"—"}),c.jsx("span",{className:"k",children:"duration_ms"}),c.jsx("span",{children:f.duration_ms??"—"}),c.jsx("span",{className:"k",children:"finish"}),c.jsx("span",{children:L??"—"})]}),c.jsx("div",{className:"sp-block-head",children:"provider_options"}),f.provider_options?c.jsx(Xn,{value:oe(f.provider_options),max:200}):c.jsx("div",{className:"sp-empty",children:"null"}),c.jsx("div",{className:"sp-block-head",children:"raw fields"}),c.jsxs("div",{className:"sp-raw-grid",children:[c.jsx(Ef,{label:"raw_request",value:f.raw_request}),c.jsx(Ef,{label:"raw_response",value:f.raw_response}),c.jsx(Ef,{label:"raw_chunks",value:f.raw_chunks})]})]}):c.jsx("div",{className:"sp-padded",children:c.jsx(Xn,{value:f,max:9999})})})]})}function Ef({label:f,value:h}){return h==null?c.jsxs("div",{className:"raw-row",children:[c.jsx("span",{className:"raw-row-k",children:f}),c.jsx("span",{className:"raw-row-empty",children:"null"})]}):c.jsxs("div",{className:"raw-row inline",children:[c.jsx("span",{className:"raw-row-k",children:f}),c.jsxs("span",{className:"raw-row-inline",children:[c.jsxs("span",{className:"raw-inline-len mono",children:[h.length," chars"]}),c.jsx("span",{className:"raw-inline-peek mono",children:h.length>80?h.slice(0,80)+"…":h})]})]})}const Wd=50,Za=()=>({items:[],total:0,hasMore:!1});function o1(){const[f,h]=X.useState(Za),[b,o]=X.useState(Za),[x,E]=X.useState(()=>new Map),[D,N]=X.useState(null),[v,y]=X.useState(null),[U,R]=X.useState(null),[L,Z]=X.useState(()=>{try{const G=localStorage.getItem("ailog.view");if(G==="chat"||G==="list"||G==="timeline")return G}catch{}return"chat"}),[k,I]=X.useState("thread"),[at,Ul]=X.useState(0),[nt,jl]=X.useState(Date.now()),[Ml,Cl]=X.useState(!1),[Rl,P]=X.useState(0),[Pl,mt]=X.useState(!0),[Xt,yt]=X.useState(!1),Jl=X.useRef(null),Bt=X.useRef(null),lt=f.items,it=b.items,A=X.useCallback(async G=>{try{const Y=await fetch(`/api/runs?offset=${G}&limit=${Wd}`);return Y.ok?await Y.json():null}catch(Y){return console.error("Failed to fetch runs:",Y),null}},[]),C=X.useCallback(async G=>{try{const Y=await fetch(`/api/threads?offset=${G}&limit=${Wd}`);return Y.ok?await Y.json():null}catch(Y){return console.error("Failed to fetch threads:",Y),null}},[]),K=X.useCallback(async()=>{mt(!0);const[G,Y]=await Promise.all([A(0),C(0)]);G&&h({items:G.items,total:G.total,hasMore:G.hasMore}),Y&&o({items:Y.items,total:Y.total,hasMore:Y.hasMore}),mt(!1)},[A,C]),ml=X.useCallback(async()=>{if(Xt||!b.hasMore)return;yt(!0);const G=b.items.length,Y=f.items.length,[ul,Al]=await Promise.all([C(G),A(Y)]);ul&&o(Gl=>({items:[...Gl.items,...ul.items],total:ul.total,hasMore:ul.hasMore})),Al&&h(Gl=>({items:[...Gl.items,...Al.items],total:Al.total,hasMore:Al.hasMore})),yt(!1)},[A,C,Xt,f.items.length,b.hasMore,b.items.length]),fl=X.useCallback(async G=>{try{const Y=await fetch(`/api/runs/${G}`);if(!Y.ok)return null;const ul=await Y.json();return E(Al=>{const Gl=new Map(Al);return Gl.set(G,ul),Gl}),ul}catch(Y){return console.error("Failed to fetch run detail:",Y),null}},[]);X.useEffect(()=>{K()},[K]),X.useEffect(()=>{const G=setInterval(()=>jl(Date.now()),1e3);return()=>clearInterval(G)},[]);const d=X.useMemo(()=>{const G=il=>{const dl=x.get(il.id);return{...il,steps:dl==null?void 0:dl.steps}},Y=(il,dl)=>new Date(il.started_at).getTime()-new Date(dl.started_at).getTime(),ul=new Map;for(const il of lt){const dl=G(il),re=ul.get(il.thread_id);re?re.push(dl):ul.set(il.thread_id,[dl])}const Al=il=>{if(!il)return null;try{const dl=JSON.parse(il);return dl&&typeof dl=="object"?dl:null}catch{return null}},Gl=(il,dl,re)=>{dl.sort(Y);const La=dl[0],Va=dl[dl.length-1];return{id:il,title:Va.firstMessage||Va.function_id||il,runs:dl,first:La,last:Va,loading:dl.some(fi=>fi.steps===void 0),parsedMetadata:Al(re??null)}},Ql=[],tt=new Set;for(const il of it){const dl=ul.get(il.id);!dl||dl.length===0||(Ql.push(Gl(il.id,dl,il.metadata)),tt.add(il.id))}for(const[il,dl]of ul)tt.has(il)||Ql.push(Gl(il,dl,null));return Ql.sort((il,dl)=>new Date(dl.last.started_at).getTime()-new Date(il.last.started_at).getTime())},[lt,it,x]),T=X.useMemo(()=>d.find(G=>G.id===D)||(d.length>0?d[0]:null),[d,D]);X.useEffect(()=>{!D&&d.length>0&&N(d[0].id)},[d,D]),X.useEffect(()=>{if(T)for(const G of T.runs)x.has(G.id)||fl(G.id)},[T,fl,x]),X.useEffect(()=>{var ul;if(!T){y(null),R(null),Bt.current=null;return}if(Bt.current===T.id)return;const G=T.runs[T.runs.length-1],Y=(ul=G==null?void 0:G.steps)==null?void 0:ul[0];G&&Y&&(y(`${G.id}:${Y.id}`),R(null),Ul(Al=>Al+1),Bt.current=T.id)},[T]);const{selectedRun:H,selectedStep:B}=X.useMemo(()=>{var Gl;if(!T||!v)return{selectedRun:null,selectedStep:null};const[G,Y]=v.split(":"),ul=T.runs.find(Ql=>Ql.id===G)||null,Al=((Gl=ul==null?void 0:ul.steps)==null?void 0:Gl.find(Ql=>Ql.id===Y))||null;return{selectedRun:ul,selectedStep:Al}},[T,v]),J=X.useMemo(()=>{if(!T)return[];const G=[];for(const Y of T.runs)for(const ul of Y.steps||[])G.push({runId:Y.id,stepId:ul.id,key:`${Y.id}:${ul.id}`,startedAt:ul.started_at});return G.sort((Y,ul)=>new Date(Y.startedAt).getTime()-new Date(ul.startedAt).getTime()),G},[T]);X.useEffect(()=>{try{localStorage.setItem("ailog.view",L)}catch{}},[L]),X.useEffect(()=>{function G(Y){var Al,Gl;const ul=Y.target;if(!((Al=ul==null?void 0:ul.matches)!=null&&Al.call(ul,"input, textarea"))){if(Y.key==="/"){Y.preventDefault(),(Gl=Jl.current)==null||Gl.focus();return}if(k==="thread")if(Y.key==="j"||Y.key==="ArrowDown"){Y.preventDefault();const Ql=d.findIndex(il=>il.id===D),tt=d[Math.min(Ql+1,d.length-1)];tt&&N(tt.id)}else if(Y.key==="k"||Y.key==="ArrowUp"){Y.preventDefault();const Ql=d.findIndex(il=>il.id===D),tt=d[Math.max(Ql-1,0)];tt&&N(tt.id)}else(Y.key==="ArrowRight"||Y.key==="l"||Y.key==="Enter")&&J.length>0&&(Y.preventDefault(),I("step"),v||y(J[0].key));else if(Y.key==="j"||Y.key==="ArrowDown"){Y.preventDefault();const Ql=J.findIndex(il=>il.key===v),tt=J[Math.min(Ql+1,J.length-1)];tt&&(y(tt.key),R(null))}else if(Y.key==="k"||Y.key==="ArrowUp"){Y.preventDefault();const Ql=J.findIndex(il=>il.key===v),tt=J[Math.max(Ql-1,0)];tt&&(y(tt.key),R(null))}else(Y.key==="ArrowLeft"||Y.key==="h"||Y.key==="Escape")&&(Y.preventDefault(),I("thread"))}}return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[d,D,k,J,v]);const ll=X.useCallback(async()=>{if(P(G=>G+1),jl(Date.now()),E(new Map),h(Za()),o(Za()),await K(),T)for(const G of T.runs)fl(G.id)},[T,K,fl]),sl=X.useCallback(async()=>{await fetch("/api/clear",{method:"POST"}),h(Za()),o(Za()),E(new Map),N(null),y(null),Cl(!1)},[]),wl=X.useCallback(G=>{y(`${G.runId}:${G.stepId||""}`),R(G.id),I("step")},[]),Tl=X.useCallback((G,Y)=>{y(`${G}:${Y}`),R(null),I("step")},[]),Ye=X.useCallback(G=>{N(G),I("thread")},[]);return c.jsxs("div",{className:"app focus-"+k,children:[c.jsxs("div",{className:"topbar",children:[c.jsx("div",{className:"brand",children:c.jsx("span",{children:"ailog"})}),c.jsx("div",{className:"topbar-spacer"}),c.jsxs("div",{className:"topbar-actions",children:[c.jsxs("button",{className:"btn",onClick:ll,title:"Refresh runs",children:[c.jsx(wy,{size:13,style:Rl?{animation:"spin 0.6s ease"}:void 0},Rl),"Refresh"]}),c.jsxs("button",{className:"btn danger",onClick:()=>Cl(!0),disabled:lt.length===0,title:"Clear all runs",children:[c.jsx(kd,{size:13})," Clear"]})]})]}),c.jsxs("div",{className:"body",children:[c.jsx($y,{threads:d,activeThreadId:(T==null?void 0:T.id)||null,onSelectThread:Ye,searchRef:Jl,hasMore:b.hasMore,loadingMore:Xt,onLoadMore:ml}),Pl?c.jsx("div",{className:"empty-spread",children:c.jsx("div",{className:"empty-card",style:{textAlign:"center",padding:24},children:c.jsx("p",{style:{color:"var(--fg-faint)"},children:"Loading…"})})}):lt.length===0?c.jsx("div",{className:"empty-spread dot-bg",children:c.jsx(r1,{})}):T?c.jsxs(c.Fragment,{children:[c.jsx(Py,{thread:T,view:L,onChangeView:Z}),c.jsx("div",{onMouseDown:()=>I("step"),style:{display:"contents"},children:c.jsx(l1,{thread:T,view:L,selectedStepKey:v,focusedMsgId:U,onSelectMessage:wl,onSelectStep:Tl,scrollKey:at})}),c.jsx("div",{className:"run-details-pane",children:c.jsx(s1,{step:B,run:H,thread:T})})]}):null]}),Ml?c.jsx("div",{className:"dialog-backdrop",onClick:()=>Cl(!1),children:c.jsxs("div",{className:"dialog",onClick:G=>G.stopPropagation(),children:[c.jsx("h3",{children:"Clear all runs?"}),c.jsxs("p",{children:["This removes every captured run from"," ",c.jsx("span",{style:{fontFamily:"var(--mono)"},children:".ailog/"})," and cannot be undone."]}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{className:"btn ghost-border",onClick:()=>Cl(!1),children:"Cancel"}),c.jsxs("button",{className:"btn dangerous",onClick:sl,children:[c.jsx(kd,{size:12})," Clear ",lt.length," run",lt.length===1?"":"s"]})]})]})}):null]})}function r1(){return c.jsx("div",{className:"empty",children:c.jsxs("div",{className:"empty-card",children:[c.jsx("h2",{children:"No runs yet"}),c.jsxs("p",{children:["ailog is listening on"," ",c.jsx("span",{className:"kbd-inline",children:"localhost:4985"}),". Wrap your AI SDK calls to start recording:"]}),c.jsxs("div",{className:"install",children:[c.jsxs("div",{children:[c.jsx("span",{className:"d",children:"$ "}),c.jsx("span",{className:"c",children:"npm i -D @ailog/cli ailog"})]}),c.jsx("div",{style:{height:8}}),c.jsx("div",{children:c.jsx("span",{className:"d",children:"// in your code"})}),c.jsxs("div",{children:[c.jsx("span",{className:"c",children:"import"})," ","{",c.jsx("span",{children:" aiSdkMiddleware "}),"}"," ",c.jsx("span",{className:"c",children:"from"}),' "ailog";']}),c.jsx("div",{}),c.jsxs("div",{children:[c.jsx("span",{className:"c",children:"const"})," result ",c.jsx("span",{className:"d",children:"="})," ",c.jsx("span",{className:"c",children:"await"})," generateText(","{"]}),c.jsxs("div",{children:["  model: wrapLanguageModel(","{"]}),c.jsx("div",{children:'    model: anthropic("claude-opus-4-7"),'}),c.jsxs("div",{children:["    middleware: aiSdkMiddleware(","{",' functionId: "chat" ',"}","),"]}),c.jsxs("div",{children:["  ","}","),"]}),c.jsx("div",{children:"  prompt,"}),c.jsxs("div",{children:["}",");"]})]}),c.jsxs("p",{style:{marginTop:14,fontSize:12,color:"var(--fg-faint)"},children:["Click ",c.jsx("span",{className:"kbd-inline",children:"Refresh"})," after a call lands."]})]})})}Z0.createRoot(document.getElementById("root")).render(c.jsx(o1,{}));