@jungjaehoon/mama-os 0.20.1 → 0.22.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 (264) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +12 -4
  3. package/dist/agent/agent-loop.d.ts.map +1 -1
  4. package/dist/agent/agent-loop.js +76 -11
  5. package/dist/agent/agent-loop.js.map +1 -1
  6. package/dist/agent/code-act/host-bridge.d.ts.map +1 -1
  7. package/dist/agent/code-act/host-bridge.js +88 -3
  8. package/dist/agent/code-act/host-bridge.js.map +1 -1
  9. package/dist/agent/codex-mcp-process.d.ts +1 -0
  10. package/dist/agent/codex-mcp-process.d.ts.map +1 -1
  11. package/dist/agent/codex-mcp-process.js +3 -2
  12. package/dist/agent/codex-mcp-process.js.map +1 -1
  13. package/dist/agent/gateway-tool-executor.d.ts +24 -11
  14. package/dist/agent/gateway-tool-executor.d.ts.map +1 -1
  15. package/dist/agent/gateway-tool-executor.js +349 -30
  16. package/dist/agent/gateway-tool-executor.js.map +1 -1
  17. package/dist/agent/gateway-tools.md +7 -2
  18. package/dist/agent/model-runner.d.ts +8 -0
  19. package/dist/agent/model-runner.d.ts.map +1 -1
  20. package/dist/agent/model-runner.js.map +1 -1
  21. package/dist/agent/os-agent-capabilities.md +13 -12
  22. package/dist/agent/persistent-cli-adapter.d.ts +6 -0
  23. package/dist/agent/persistent-cli-adapter.d.ts.map +1 -1
  24. package/dist/agent/persistent-cli-adapter.js +21 -10
  25. package/dist/agent/persistent-cli-adapter.js.map +1 -1
  26. package/dist/agent/tool-registry.d.ts.map +1 -1
  27. package/dist/agent/tool-registry.js +33 -2
  28. package/dist/agent/tool-registry.js.map +1 -1
  29. package/dist/agent/types.d.ts +30 -2
  30. package/dist/agent/types.d.ts.map +1 -1
  31. package/dist/agent/types.js.map +1 -1
  32. package/dist/api/graph-api.d.ts.map +1 -1
  33. package/dist/api/graph-api.js +78 -5
  34. package/dist/api/graph-api.js.map +1 -1
  35. package/dist/api/index.d.ts +8 -1
  36. package/dist/api/index.d.ts.map +1 -1
  37. package/dist/api/index.js +18 -12
  38. package/dist/api/index.js.map +1 -1
  39. package/dist/api/operator-handler.d.ts +19 -0
  40. package/dist/api/operator-handler.d.ts.map +1 -0
  41. package/dist/api/operator-handler.js +106 -0
  42. package/dist/api/operator-handler.js.map +1 -0
  43. package/dist/api/operator-summary.d.ts +3 -0
  44. package/dist/api/operator-summary.d.ts.map +1 -0
  45. package/dist/api/operator-summary.js +72 -0
  46. package/dist/api/operator-summary.js.map +1 -0
  47. package/dist/api/operator-tasks-handler.d.ts +7 -0
  48. package/dist/api/operator-tasks-handler.d.ts.map +1 -0
  49. package/dist/api/operator-tasks-handler.js +165 -0
  50. package/dist/api/operator-tasks-handler.js.map +1 -0
  51. package/dist/api/report-handler.d.ts +7 -0
  52. package/dist/api/report-handler.d.ts.map +1 -1
  53. package/dist/api/report-handler.js +30 -0
  54. package/dist/api/report-handler.js.map +1 -1
  55. package/dist/api/report-persistence.d.ts +17 -0
  56. package/dist/api/report-persistence.d.ts.map +1 -0
  57. package/dist/api/report-persistence.js +91 -0
  58. package/dist/api/report-persistence.js.map +1 -0
  59. package/dist/cli/commands/start.d.ts.map +1 -1
  60. package/dist/cli/commands/start.js +402 -250
  61. package/dist/cli/commands/start.js.map +1 -1
  62. package/dist/cli/config/config-manager.d.ts.map +1 -1
  63. package/dist/cli/config/config-manager.js +93 -55
  64. package/dist/cli/config/config-manager.js.map +1 -1
  65. package/dist/cli/config/types.d.ts +17 -2
  66. package/dist/cli/config/types.d.ts.map +1 -1
  67. package/dist/cli/config/types.js +4 -0
  68. package/dist/cli/config/types.js.map +1 -1
  69. package/dist/cli/runtime/agent-loop-init.d.ts +3 -1
  70. package/dist/cli/runtime/agent-loop-init.d.ts.map +1 -1
  71. package/dist/cli/runtime/agent-loop-init.js +16 -7
  72. package/dist/cli/runtime/agent-loop-init.js.map +1 -1
  73. package/dist/cli/runtime/api-routes-init.d.ts.map +1 -1
  74. package/dist/cli/runtime/api-routes-init.js +503 -259
  75. package/dist/cli/runtime/api-routes-init.js.map +1 -1
  76. package/dist/cli/runtime/api-server-init.d.ts.map +1 -1
  77. package/dist/cli/runtime/api-server-init.js +12 -7
  78. package/dist/cli/runtime/api-server-init.js.map +1 -1
  79. package/dist/cli/runtime/connector-init.d.ts +19 -1
  80. package/dist/cli/runtime/connector-init.d.ts.map +1 -1
  81. package/dist/cli/runtime/connector-init.js +32 -2
  82. package/dist/cli/runtime/connector-init.js.map +1 -1
  83. package/dist/cli/runtime/gateway-init.d.ts.map +1 -1
  84. package/dist/cli/runtime/gateway-init.js +3 -1
  85. package/dist/cli/runtime/gateway-init.js.map +1 -1
  86. package/dist/cli/runtime/memory-agent-init.d.ts +2 -1
  87. package/dist/cli/runtime/memory-agent-init.d.ts.map +1 -1
  88. package/dist/cli/runtime/memory-agent-init.js +15 -3
  89. package/dist/cli/runtime/memory-agent-init.js.map +1 -1
  90. package/dist/cli/runtime/message-router-config.d.ts +4 -0
  91. package/dist/cli/runtime/message-router-config.d.ts.map +1 -0
  92. package/dist/cli/runtime/message-router-config.js +11 -0
  93. package/dist/cli/runtime/message-router-config.js.map +1 -0
  94. package/dist/cli/runtime/scheduler-init.d.ts.map +1 -1
  95. package/dist/cli/runtime/scheduler-init.js +12 -12
  96. package/dist/cli/runtime/scheduler-init.js.map +1 -1
  97. package/dist/connectors/framework/polling-scheduler.d.ts.map +1 -1
  98. package/dist/connectors/framework/polling-scheduler.js +53 -2
  99. package/dist/connectors/framework/polling-scheduler.js.map +1 -1
  100. package/dist/connectors/framework/types.d.ts +8 -0
  101. package/dist/connectors/framework/types.d.ts.map +1 -1
  102. package/dist/connectors/kagemusha/query-tools.d.ts.map +1 -1
  103. package/dist/connectors/kagemusha/query-tools.js +14 -3
  104. package/dist/connectors/kagemusha/query-tools.js.map +1 -1
  105. package/dist/connectors/slack/index.d.ts.map +1 -1
  106. package/dist/connectors/slack/index.js +3 -1
  107. package/dist/connectors/slack/index.js.map +1 -1
  108. package/dist/connectors/trello/index.d.ts.map +1 -1
  109. package/dist/connectors/trello/index.js +6 -2
  110. package/dist/connectors/trello/index.js.map +1 -1
  111. package/dist/db/agent-store.d.ts +5 -0
  112. package/dist/db/agent-store.d.ts.map +1 -1
  113. package/dist/db/agent-store.js +6 -3
  114. package/dist/db/agent-store.js.map +1 -1
  115. package/dist/db/migrations/agent-activity-tool-name.d.ts +8 -0
  116. package/dist/db/migrations/agent-activity-tool-name.d.ts.map +1 -0
  117. package/dist/db/migrations/agent-activity-tool-name.js +24 -0
  118. package/dist/db/migrations/agent-activity-tool-name.js.map +1 -0
  119. package/dist/db/migrations/wiki-artifacts.d.ts +3 -0
  120. package/dist/db/migrations/wiki-artifacts.d.ts.map +1 -0
  121. package/dist/db/migrations/wiki-artifacts.js +24 -0
  122. package/dist/db/migrations/wiki-artifacts.js.map +1 -0
  123. package/dist/envelope/run-guard.d.ts +10 -0
  124. package/dist/envelope/run-guard.d.ts.map +1 -0
  125. package/dist/envelope/run-guard.js +19 -0
  126. package/dist/envelope/run-guard.js.map +1 -0
  127. package/dist/gateways/message-router.d.ts.map +1 -1
  128. package/dist/gateways/message-router.js +15 -3
  129. package/dist/gateways/message-router.js.map +1 -1
  130. package/dist/gateways/types.d.ts +4 -0
  131. package/dist/gateways/types.d.ts.map +1 -1
  132. package/dist/multi-agent/agent-event-bus.d.ts +14 -0
  133. package/dist/multi-agent/agent-event-bus.d.ts.map +1 -1
  134. package/dist/multi-agent/agent-event-bus.js +34 -0
  135. package/dist/multi-agent/agent-event-bus.js.map +1 -1
  136. package/dist/multi-agent/conductor-persona.js +2 -2
  137. package/dist/multi-agent/dashboard-agent-persona.d.ts +6 -2
  138. package/dist/multi-agent/dashboard-agent-persona.d.ts.map +1 -1
  139. package/dist/multi-agent/dashboard-agent-persona.js +65 -32
  140. package/dist/multi-agent/dashboard-agent-persona.js.map +1 -1
  141. package/dist/multi-agent/memory-agent-persona.d.ts +1 -1
  142. package/dist/multi-agent/memory-agent-persona.d.ts.map +1 -1
  143. package/dist/multi-agent/memory-agent-persona.js +25 -4
  144. package/dist/multi-agent/memory-agent-persona.js.map +1 -1
  145. package/dist/multi-agent/runtime-process.d.ts +4 -2
  146. package/dist/multi-agent/runtime-process.d.ts.map +1 -1
  147. package/dist/multi-agent/runtime-process.js +7 -4
  148. package/dist/multi-agent/runtime-process.js.map +1 -1
  149. package/dist/multi-agent/types.d.ts +1 -1
  150. package/dist/multi-agent/wiki-agent-persona.d.ts +7 -1
  151. package/dist/multi-agent/wiki-agent-persona.d.ts.map +1 -1
  152. package/dist/multi-agent/wiki-agent-persona.js +82 -68
  153. package/dist/multi-agent/wiki-agent-persona.js.map +1 -1
  154. package/dist/operator/action-verifier.d.ts +50 -0
  155. package/dist/operator/action-verifier.d.ts.map +1 -0
  156. package/dist/operator/action-verifier.js +68 -0
  157. package/dist/operator/action-verifier.js.map +1 -0
  158. package/dist/operator/board-reconcile.d.ts +62 -0
  159. package/dist/operator/board-reconcile.d.ts.map +1 -0
  160. package/dist/operator/board-reconcile.js +160 -0
  161. package/dist/operator/board-reconcile.js.map +1 -0
  162. package/dist/operator/board-slot-instructions.d.ts +26 -0
  163. package/dist/operator/board-slot-instructions.d.ts.map +1 -0
  164. package/dist/operator/board-slot-instructions.js +76 -0
  165. package/dist/operator/board-slot-instructions.js.map +1 -0
  166. package/dist/operator/connector-delta-repo.d.ts +33 -0
  167. package/dist/operator/connector-delta-repo.d.ts.map +1 -0
  168. package/dist/operator/connector-delta-repo.js +0 -0
  169. package/dist/operator/connector-delta-repo.js.map +1 -0
  170. package/dist/operator/mama-memory-port.d.ts +13 -0
  171. package/dist/operator/mama-memory-port.d.ts.map +1 -0
  172. package/dist/operator/mama-memory-port.js +35 -0
  173. package/dist/operator/mama-memory-port.js.map +1 -0
  174. package/dist/operator/operator-interfaces.d.ts +136 -0
  175. package/dist/operator/operator-interfaces.d.ts.map +1 -0
  176. package/dist/operator/operator-interfaces.js +15 -0
  177. package/dist/operator/operator-interfaces.js.map +1 -0
  178. package/dist/operator/operator-trigger-loop.d.ts +119 -0
  179. package/dist/operator/operator-trigger-loop.d.ts.map +1 -0
  180. package/dist/operator/operator-trigger-loop.js +267 -0
  181. package/dist/operator/operator-trigger-loop.js.map +1 -0
  182. package/dist/operator/report-run.d.ts +78 -0
  183. package/dist/operator/report-run.d.ts.map +1 -0
  184. package/dist/operator/report-run.js +141 -0
  185. package/dist/operator/report-run.js.map +1 -0
  186. package/dist/operator/report-scheduler.d.ts +66 -0
  187. package/dist/operator/report-scheduler.d.ts.map +1 -0
  188. package/dist/operator/report-scheduler.js +135 -0
  189. package/dist/operator/report-scheduler.js.map +1 -0
  190. package/dist/operator/situation-report.d.ts +90 -0
  191. package/dist/operator/situation-report.d.ts.map +1 -0
  192. package/dist/operator/situation-report.js +221 -0
  193. package/dist/operator/situation-report.js.map +1 -0
  194. package/dist/operator/task-ledger.d.ts +96 -0
  195. package/dist/operator/task-ledger.d.ts.map +1 -0
  196. package/dist/operator/task-ledger.js +277 -0
  197. package/dist/operator/task-ledger.js.map +1 -0
  198. package/dist/operator/trigger-author.d.ts +45 -0
  199. package/dist/operator/trigger-author.d.ts.map +1 -0
  200. package/dist/operator/trigger-author.js +217 -0
  201. package/dist/operator/trigger-author.js.map +1 -0
  202. package/dist/operator/trigger-evolve.d.ts +31 -0
  203. package/dist/operator/trigger-evolve.d.ts.map +1 -0
  204. package/dist/operator/trigger-evolve.js +51 -0
  205. package/dist/operator/trigger-evolve.js.map +1 -0
  206. package/dist/operator/trigger-fire.d.ts +29 -0
  207. package/dist/operator/trigger-fire.d.ts.map +1 -0
  208. package/dist/operator/trigger-fire.js +41 -0
  209. package/dist/operator/trigger-fire.js.map +1 -0
  210. package/dist/operator/trigger-matcher.d.ts +19 -0
  211. package/dist/operator/trigger-matcher.d.ts.map +1 -0
  212. package/dist/operator/trigger-matcher.js +61 -0
  213. package/dist/operator/trigger-matcher.js.map +1 -0
  214. package/dist/operator/trigger-registry.d.ts +36 -0
  215. package/dist/operator/trigger-registry.d.ts.map +1 -0
  216. package/dist/operator/trigger-registry.js +135 -0
  217. package/dist/operator/trigger-registry.js.map +1 -0
  218. package/dist/operator/trigger-review.d.ts +23 -0
  219. package/dist/operator/trigger-review.d.ts.map +1 -0
  220. package/dist/operator/trigger-review.js +127 -0
  221. package/dist/operator/trigger-review.js.map +1 -0
  222. package/dist/operator/trigger-types.d.ts +84 -0
  223. package/dist/operator/trigger-types.d.ts.map +1 -0
  224. package/dist/operator/trigger-types.js +14 -0
  225. package/dist/operator/trigger-types.js.map +1 -0
  226. package/dist/scheduler/cron-worker.d.ts.map +1 -1
  227. package/dist/scheduler/cron-worker.js +3 -1
  228. package/dist/scheduler/cron-worker.js.map +1 -1
  229. package/dist/security/security-monitor.d.ts.map +1 -1
  230. package/dist/security/security-monitor.js +1 -0
  231. package/dist/security/security-monitor.js.map +1 -1
  232. package/dist/wiki/obsidian-writer.d.ts +1 -1
  233. package/dist/wiki/obsidian-writer.d.ts.map +1 -1
  234. package/dist/wiki/obsidian-writer.js +67 -27
  235. package/dist/wiki/obsidian-writer.js.map +1 -1
  236. package/dist/wiki/path-safety.d.ts +2 -0
  237. package/dist/wiki/path-safety.d.ts.map +1 -0
  238. package/dist/wiki/path-safety.js +40 -0
  239. package/dist/wiki/path-safety.js.map +1 -0
  240. package/dist/wiki/types.d.ts +4 -2
  241. package/dist/wiki/types.d.ts.map +1 -1
  242. package/dist/wiki/types.js +1 -1
  243. package/dist/wiki/types.js.map +1 -1
  244. package/dist/wiki-artifacts/normalization.d.ts +8 -0
  245. package/dist/wiki-artifacts/normalization.d.ts.map +1 -0
  246. package/dist/wiki-artifacts/normalization.js +41 -0
  247. package/dist/wiki-artifacts/normalization.js.map +1 -0
  248. package/dist/wiki-artifacts/types.d.ts +52 -0
  249. package/dist/wiki-artifacts/types.d.ts.map +1 -0
  250. package/dist/wiki-artifacts/types.js +3 -0
  251. package/dist/wiki-artifacts/types.js.map +1 -0
  252. package/dist/wiki-artifacts/wiki-publish-adapter.d.ts +14 -0
  253. package/dist/wiki-artifacts/wiki-publish-adapter.d.ts.map +1 -0
  254. package/dist/wiki-artifacts/wiki-publish-adapter.js +71 -0
  255. package/dist/wiki-artifacts/wiki-publish-adapter.js.map +1 -0
  256. package/package.json +5 -3
  257. package/public/ui/assets/index-CKOJQYXA.css +1 -0
  258. package/public/ui/assets/index-OSgiwL24.js +62 -0
  259. package/public/ui/index.html +14 -0
  260. package/public/ui/theme-init.js +20 -0
  261. package/public/viewer/js/utils/api.js +2 -2
  262. package/public/viewer/src/utils/api.ts +9 -2
  263. package/public/viewer/sw.js +1 -1
  264. package/public/viewer/viewer.html +17 -27
@@ -0,0 +1,62 @@
1
+ var Xy=n=>{throw TypeError(n)};var hf=(n,u,r)=>u.has(n)||Xy("Cannot "+r);var E=(n,u,r)=>(hf(n,u,"read from private field"),r?r.call(n):u.get(n)),it=(n,u,r)=>u.has(n)?Xy("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(n):u.set(n,r),I=(n,u,r,c)=>(hf(n,u,"write to private field"),c?c.call(n,r):u.set(n,r),r),yt=(n,u,r)=>(hf(n,u,"access private method"),r);var kr=(n,u,r,c)=>({set _(f){I(n,u,f,r)},get _(){return E(n,u,c)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function r(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=r(f);fetch(f.href,d)}})();var mf={exports:{}},us={};/**
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 Ky;function U0(){if(Ky)return us;Ky=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(c,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:n,type:c,key:m,ref:f!==void 0?f:null,props:d}}return us.Fragment=u,us.jsx=r,us.jsxs=r,us}var Zy;function j0(){return Zy||(Zy=1,mf.exports=U0()),mf.exports}var v=j0(),yf={exports:{}},ft={};/**
10
+ * @license React
11
+ * react.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 Vy;function L0(){if(Vy)return ft;Vy=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),N=Symbol.iterator;function U(T){return T===null||typeof T!="object"?null:(T=N&&T[N]||T["@@iterator"],typeof T=="function"?T:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(T,G,W){this.props=T,this.context=G,this.refs=X,this.updater=W||H}q.prototype.isReactComponent={},q.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function K(){}K.prototype=q.prototype;function Z(T,G,W){this.props=T,this.context=G,this.refs=X,this.updater=W||H}var V=Z.prototype=new K;V.constructor=Z,Y(V,q.prototype),V.isPureReactComponent=!0;var k=Array.isArray;function P(){}var et={H:null,A:null,T:null,S:null},st=Object.prototype.hasOwnProperty;function gt(T,G,W){var at=W.ref;return{$$typeof:n,type:T,key:G,ref:at!==void 0?at:null,props:W}}function Ot(T,G){return gt(T.type,G,T.props)}function Jt(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function Bt(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return G[W]})}var je=/\/+/g;function fe(T,G){return typeof T=="object"&&T!==null&&T.key!=null?Bt(""+T.key):G.toString(36)}function zt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(P,P):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function j(T,G,W,at,ot){var pt=typeof T;(pt==="undefined"||pt==="boolean")&&(T=null);var Nt=!1;if(T===null)Nt=!0;else switch(pt){case"bigint":case"string":case"number":Nt=!0;break;case"object":switch(T.$$typeof){case n:case u:Nt=!0;break;case R:return Nt=T._init,j(Nt(T._payload),G,W,at,ot)}}if(Nt)return ot=ot(T),Nt=at===""?"."+fe(T,0):at,k(ot)?(W="",Nt!=null&&(W=Nt.replace(je,"$&/")+"/"),j(ot,G,W,"",function(Al){return Al})):ot!=null&&(Jt(ot)&&(ot=Ot(ot,W+(ot.key==null||T&&T.key===ot.key?"":(""+ot.key).replace(je,"$&/")+"/")+Nt)),G.push(ot)),1;Nt=0;var ve=at===""?".":at+":";if(k(T))for(var $t=0;$t<T.length;$t++)at=T[$t],pt=ve+fe(at,$t),Nt+=j(at,G,W,pt,ot);else if($t=U(T),typeof $t=="function")for(T=$t.call(T),$t=0;!(at=T.next()).done;)at=at.value,pt=ve+fe(at,$t++),Nt+=j(at,G,W,pt,ot);else if(pt==="object"){if(typeof T.then=="function")return j(zt(T),G,W,at,ot);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Nt}function $(T,G,W){if(T==null)return T;var at=[],ot=0;return j(T,at,"","",function(pt){return G.call(W,pt,ot++)}),at}function ct(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var wt=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},jt={map:$,forEach:function(T,G,W){$(T,function(){G.apply(this,arguments)},W)},count:function(T){var G=0;return $(T,function(){G++}),G},toArray:function(T){return $(T,function(G){return G})||[]},only:function(T){if(!Jt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ft.Activity=b,ft.Children=jt,ft.Component=q,ft.Fragment=r,ft.Profiler=f,ft.PureComponent=Z,ft.StrictMode=c,ft.Suspense=p,ft.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,ft.__COMPILER_RUNTIME={__proto__:null,c:function(T){return et.H.useMemoCache(T)}},ft.cache=function(T){return function(){return T.apply(null,arguments)}},ft.cacheSignal=function(){return null},ft.cloneElement=function(T,G,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var at=Y({},T.props),ot=T.key;if(G!=null)for(pt in G.key!==void 0&&(ot=""+G.key),G)!st.call(G,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&G.ref===void 0||(at[pt]=G[pt]);var pt=arguments.length-2;if(pt===1)at.children=W;else if(1<pt){for(var Nt=Array(pt),ve=0;ve<pt;ve++)Nt[ve]=arguments[ve+2];at.children=Nt}return gt(T.type,ot,at)},ft.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},ft.createElement=function(T,G,W){var at,ot={},pt=null;if(G!=null)for(at in G.key!==void 0&&(pt=""+G.key),G)st.call(G,at)&&at!=="key"&&at!=="__self"&&at!=="__source"&&(ot[at]=G[at]);var Nt=arguments.length-2;if(Nt===1)ot.children=W;else if(1<Nt){for(var ve=Array(Nt),$t=0;$t<Nt;$t++)ve[$t]=arguments[$t+2];ot.children=ve}if(T&&T.defaultProps)for(at in Nt=T.defaultProps,Nt)ot[at]===void 0&&(ot[at]=Nt[at]);return gt(T,pt,ot)},ft.createRef=function(){return{current:null}},ft.forwardRef=function(T){return{$$typeof:x,render:T}},ft.isValidElement=Jt,ft.lazy=function(T){return{$$typeof:R,_payload:{_status:-1,_result:T},_init:ct}},ft.memo=function(T,G){return{$$typeof:g,type:T,compare:G===void 0?null:G}},ft.startTransition=function(T){var G=et.T,W={};et.T=W;try{var at=T(),ot=et.S;ot!==null&&ot(W,at),typeof at=="object"&&at!==null&&typeof at.then=="function"&&at.then(P,wt)}catch(pt){wt(pt)}finally{G!==null&&W.types!==null&&(G.types=W.types),et.T=G}},ft.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},ft.use=function(T){return et.H.use(T)},ft.useActionState=function(T,G,W){return et.H.useActionState(T,G,W)},ft.useCallback=function(T,G){return et.H.useCallback(T,G)},ft.useContext=function(T){return et.H.useContext(T)},ft.useDebugValue=function(){},ft.useDeferredValue=function(T,G){return et.H.useDeferredValue(T,G)},ft.useEffect=function(T,G){return et.H.useEffect(T,G)},ft.useEffectEvent=function(T){return et.H.useEffectEvent(T)},ft.useId=function(){return et.H.useId()},ft.useImperativeHandle=function(T,G,W){return et.H.useImperativeHandle(T,G,W)},ft.useInsertionEffect=function(T,G){return et.H.useInsertionEffect(T,G)},ft.useLayoutEffect=function(T,G){return et.H.useLayoutEffect(T,G)},ft.useMemo=function(T,G){return et.H.useMemo(T,G)},ft.useOptimistic=function(T,G){return et.H.useOptimistic(T,G)},ft.useReducer=function(T,G,W){return et.H.useReducer(T,G,W)},ft.useRef=function(T){return et.H.useRef(T)},ft.useState=function(T){return et.H.useState(T)},ft.useSyncExternalStore=function(T,G,W){return et.H.useSyncExternalStore(T,G,W)},ft.useTransition=function(){return et.H.useTransition()},ft.version="19.2.7",ft}var ky;function $f(){return ky||(ky=1,yf.exports=L0()),yf.exports}var _=$f(),pf={exports:{}},ss={},gf={exports:{}},vf={};/**
18
+ * @license React
19
+ * scheduler.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 Jy;function H0(){return Jy||(Jy=1,(function(n){function u(j,$){var ct=j.length;j.push($);t:for(;0<ct;){var wt=ct-1>>>1,jt=j[wt];if(0<f(jt,$))j[wt]=$,j[ct]=jt,ct=wt;else break t}}function r(j){return j.length===0?null:j[0]}function c(j){if(j.length===0)return null;var $=j[0],ct=j.pop();if(ct!==$){j[0]=ct;t:for(var wt=0,jt=j.length,T=jt>>>1;wt<T;){var G=2*(wt+1)-1,W=j[G],at=G+1,ot=j[at];if(0>f(W,ct))at<jt&&0>f(ot,W)?(j[wt]=ot,j[at]=ct,wt=at):(j[wt]=W,j[G]=ct,wt=G);else if(at<jt&&0>f(ot,ct))j[wt]=ot,j[at]=ct,wt=at;else break t}}return $}function f(j,$){var ct=j.sortIndex-$.sortIndex;return ct!==0?ct:j.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var m=Date,x=m.now();n.unstable_now=function(){return m.now()-x}}var p=[],g=[],R=1,b=null,N=3,U=!1,H=!1,Y=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function V(j){for(var $=r(g);$!==null;){if($.callback===null)c(g);else if($.startTime<=j)c(g),$.sortIndex=$.expirationTime,u(p,$);else break;$=r(g)}}function k(j){if(Y=!1,V(j),!H)if(r(p)!==null)H=!0,P||(P=!0,Bt());else{var $=r(g);$!==null&&zt(k,$.startTime-j)}}var P=!1,et=-1,st=5,gt=-1;function Ot(){return X?!0:!(n.unstable_now()-gt<st)}function Jt(){if(X=!1,P){var j=n.unstable_now();gt=j;var $=!0;try{t:{H=!1,Y&&(Y=!1,K(et),et=-1),U=!0;var ct=N;try{e:{for(V(j),b=r(p);b!==null&&!(b.expirationTime>j&&Ot());){var wt=b.callback;if(typeof wt=="function"){b.callback=null,N=b.priorityLevel;var jt=wt(b.expirationTime<=j);if(j=n.unstable_now(),typeof jt=="function"){b.callback=jt,V(j),$=!0;break e}b===r(p)&&c(p),V(j)}else c(p);b=r(p)}if(b!==null)$=!0;else{var T=r(g);T!==null&&zt(k,T.startTime-j),$=!1}}break t}finally{b=null,N=ct,U=!1}$=void 0}}finally{$?Bt():P=!1}}}var Bt;if(typeof Z=="function")Bt=function(){Z(Jt)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,fe=je.port2;je.port1.onmessage=Jt,Bt=function(){fe.postMessage(null)}}else Bt=function(){q(Jt,0)};function zt(j,$){et=q(function(){j(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):st=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_next=function(j){switch(N){case 1:case 2:case 3:var $=3;break;default:$=N}var ct=N;N=$;try{return j()}finally{N=ct}},n.unstable_requestPaint=function(){X=!0},n.unstable_runWithPriority=function(j,$){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ct=N;N=j;try{return $()}finally{N=ct}},n.unstable_scheduleCallback=function(j,$,ct){var wt=n.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?wt+ct:wt):ct=wt,j){case 1:var jt=-1;break;case 2:jt=250;break;case 5:jt=1073741823;break;case 4:jt=1e4;break;default:jt=5e3}return jt=ct+jt,j={id:R++,callback:$,priorityLevel:j,startTime:ct,expirationTime:jt,sortIndex:-1},ct>wt?(j.sortIndex=ct,u(g,j),r(p)===null&&j===r(g)&&(Y?(K(et),et=-1):Y=!0,zt(k,ct-wt))):(j.sortIndex=jt,u(p,j),H||U||(H=!0,P||(P=!0,Bt()))),j},n.unstable_shouldYield=Ot,n.unstable_wrapCallback=function(j){var $=N;return function(){var ct=N;N=$;try{return j.apply(this,arguments)}finally{N=ct}}}})(vf)),vf}var Fy;function B0(){return Fy||(Fy=1,gf.exports=H0()),gf.exports}var bf={exports:{}},ze={};/**
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 $y;function q0(){if($y)return ze;$y=1;var n=$f();function u(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)g+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(p,g,R){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:p,containerInfo:g,implementation:R}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ze.createPortal=function(p,g){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(u(299));return d(p,g,null,R)},ze.flushSync=function(p){var g=m.T,R=c.p;try{if(m.T=null,c.p=2,p)return p()}finally{m.T=g,c.p=R,c.d.f()}},ze.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,c.d.C(p,g))},ze.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},ze.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var R=g.as,b=x(R,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,U=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;R==="style"?c.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:N,fetchPriority:U}):R==="script"&&c.d.X(p,{crossOrigin:b,integrity:N,fetchPriority:U,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ze.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var R=x(g.as,g.crossOrigin);c.d.M(p,{crossOrigin:R,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&c.d.M(p)},ze.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var R=g.as,b=x(R,g.crossOrigin);c.d.L(p,R,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ze.preloadModule=function(p,g){if(typeof p=="string")if(g){var R=x(g.as,g.crossOrigin);c.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:R,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else c.d.m(p)},ze.requestFormReset=function(p){c.d.r(p)},ze.unstable_batchedUpdates=function(p,g){return p(g)},ze.useFormState=function(p,g,R){return m.H.useFormState(p,g,R)},ze.useFormStatus=function(){return m.H.useHostTransitionStatus()},ze.version="19.2.7",ze}var Wy;function Q0(){if(Wy)return bf.exports;Wy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),bf.exports=q0(),bf.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 Iy;function Y0(){if(Iy)return ss;Iy=1;var n=B0(),u=$f(),r=Q0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(d(t)!==t)throw Error(c(188))}function g(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var a=t,l=e;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return p(i),t;if(s===l)return p(i),e;s=s.sibling}throw Error(c(188))}if(a.return!==l.return)a=i,l=s;else{for(var o=!1,h=i.child;h;){if(h===a){o=!0,a=i,l=s;break}if(h===l){o=!0,l=i,a=s;break}h=h.sibling}if(!o){for(h=s.child;h;){if(h===a){o=!0,a=s,l=i;break}if(h===l){o=!0,l=s,a=i;break}h=h.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?t:e}function R(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,N=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),gt=Symbol.for("react.activity"),Ot=Symbol.for("react.memo_cache_sentinel"),Jt=Symbol.iterator;function Bt(t){return t===null||typeof t!="object"?null:(t=Jt&&t[Jt]||t["@@iterator"],typeof t=="function"?t:null)}var je=Symbol.for("react.client.reference");function fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===je?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case q:return"Profiler";case X:return"StrictMode";case k:return"Suspense";case P:return"SuspenseList";case gt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case H:return"Portal";case Z:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case V:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:fe(t.type)||"Memo";case st:e=t._payload,t=t._init;try{return fe(t(e))}catch{}}return null}var zt=Array.isArray,j=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ct={pending:!1,data:null,method:null,action:null},wt=[],jt=-1;function T(t){return{current:t}}function G(t){0>jt||(t.current=wt[jt],wt[jt]=null,jt--)}function W(t,e){jt++,wt[jt]=t.current,t.current=e}var at=T(null),ot=T(null),pt=T(null),Nt=T(null);function ve(t,e){switch(W(pt,e),W(ot,t),W(at,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dy(e),t=hy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(at),W(at,t)}function $t(){G(at),G(ot),G(pt)}function Al(t){t.memoizedState!==null&&W(Nt,t);var e=at.current,a=hy(e,t.type);e!==a&&(W(ot,t),W(at,a))}function Gt(t){ot.current===t&&(G(at),G(ot)),Nt.current===t&&(G(Nt),as._currentValue=ct)}var ti,Zt;function Ma(t){if(ti===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ti=e&&e[1]||"",Zt=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ti+t+Zt}var Kt=!1;function Ja(t,e){if(!t||Kt)return"";Kt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(w){var z=w}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(w){z=w}t.call(Q.prototype)}}else{try{throw Error()}catch(w){z=w}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(w){if(w&&z&&typeof w.stack=="string")return[w.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],h=s[1];if(o&&h){var S=o.split(`
44
+ `),M=h.split(`
45
+ `);for(i=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;if(l===S.length||i===M.length)for(l=S.length-1,i=M.length-1;1<=l&&0<=i&&S[l]!==M[i];)i--;for(;1<=l&&0<=i;l--,i--)if(S[l]!==M[i]){if(l!==1||i!==1)do if(l--,i--,0>i||S[l]!==M[i]){var L=`
46
+ `+S[l].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=l&&0<=i);break}}}finally{Kt=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ma(a):""}function Cs(t,e){switch(t.tag){case 26:case 27:case 5:return Ma(t.type);case 16:return Ma("Lazy");case 13:return t.child!==e&&e!==null?Ma("Suspense Fallback"):Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 15:return Ja(t.type,!1);case 11:return Ja(t.type.render,!1);case 1:return Ja(t.type,!0);case 31:return Ma("Activity");default:return""}}function xa(t){try{var e="",a=null;do e+=Cs(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var ei=Object.prototype.hasOwnProperty,pn=n.unstable_scheduleCallback,ai=n.unstable_cancelCallback,Ms=n.unstable_shouldYield,Da=n.unstable_requestPaint,de=n.unstable_now,Fa=n.unstable_getCurrentPriorityLevel,li=n.unstable_ImmediatePriority,ni=n.unstable_UserBlockingPriority,_l=n.unstable_NormalPriority,fu=n.unstable_LowPriority,$a=n.unstable_IdlePriority,ii=n.log,ui=n.unstable_setDisableYieldValue,Rl=null,Me=null;function Ea(t){if(typeof ii=="function"&&ui(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(Rl,t)}catch{}}var Ee=Math.clz32?Math.clz32:oa,du=Math.log,Ol=Math.LN2;function oa(t){return t>>>=0,t===0?32:31-(du(t)/Ol|0)|0}var Nl=256,gn=262144,vn=4194304;function Ta(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function bn(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var i=0,s=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var h=l&134217727;return h!==0?(l=h&~s,l!==0?i=Ta(l):(o&=h,o!==0?i=Ta(o):a||(a=h&~t,a!==0&&(i=Ta(a))))):(h=l&~s,h!==0?i=Ta(h):o!==0?i=Ta(o):a||(a=l&~t,a!==0&&(i=Ta(a)))),i===0?0:e!==0&&e!==i&&(e&s)===0&&(s=i&-i,a=e&-e,s>=a||s===32&&(a&4194048)!==0)?e:i}function za(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function si(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Ie(){var t=vn;return vn<<=1,(vn&62914560)===0&&(vn=4194304),t}function wa(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Wa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function hu(t,e,a,l,i,s){var o=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var h=t.entanglements,S=t.expirationTimes,M=t.hiddenUpdates;for(a=o&~a;0<a;){var L=31-Ee(a),Q=1<<L;h[L]=0,S[L]=-1;var z=M[L];if(z!==null)for(M[L]=null,L=0;L<z.length;L++){var w=z[L];w!==null&&(w.lane&=-536870913)}a&=~Q}l!==0&&Ds(t,l,0),s!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=s&~(o&~e))}function Ds(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ee(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function mu(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Ee(a),i=1<<l;i&e|t[l]&e&&(t[l]|=e),a&=~i}}function ri(t,e){var a=e&-e;return a=(a&42)!==0?1:ci(a),(a&(t.suspendedLanes|e))!==0?0:a}function ci(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Sn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function zs(){var t=$.p;return t!==0?t:(t=window.event,t===void 0?32:Ly(t.type))}function Cl(t,e){var a=$.p;try{return $.p=t,e()}finally{$.p=a}}var Ua=Math.random().toString(36).slice(2),he="__reactFiber$"+Ua,vt="__reactProps$"+Ua,Pe="__reactContainer$"+Ua,yu="__reactEvents$"+Ua,ws="__reactListeners$"+Ua,pu="__reactHandles$"+Ua,gu="__reactResources$"+Ua,Ml="__reactMarker$"+Ua;function vu(t){delete t[he],delete t[vt],delete t[yu],delete t[ws],delete t[pu]}function Dl(t){var e=t[he];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Pe]||a[he]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Sy(t);t!==null;){if(a=t[he])return a;t=Sy(t)}return e}t=a,a=t.parentNode}return null}function zl(t){if(t=t[he]||t[Pe]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function xn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Le(t){var e=t[gu];return e||(e=t[gu]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function le(t){t[Ml]=!0}var ja=new Set,Us={};function Ia(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(Us[t]=e,t=0;t<e.length;t++)ja.add(e[t])}var js=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]*$"),En={},oi={};function fi(t){return ei.call(oi,t)?!0:ei.call(En,t)?!1:js.test(t)?oi[t]=!0:(En[t]=!0,!1)}function Aa(t,e,a){if(fi(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function La(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function me(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ls(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Hs(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,s=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function di(t){if(!t._valueTracker){var e=Ls(t)?"checked":"value";t._valueTracker=Hs(t,e,""+t[e])}}function Bs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=Ls(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Tn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var rc=/[\n"\\]/g;function Ge(t){return t.replace(rc,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function hi(t,e,a,l,i,s,o,h){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?_n(t,o,Ye(e)):a!=null?_n(t,o,Ye(a)):l!=null&&t.removeAttribute("value"),i==null&&s!=null&&(t.defaultChecked=!!s),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ye(h):t.removeAttribute("name")}function An(t,e,a,l,i,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){di(t);return}a=a!=null?""+Ye(a):"",e=e!=null?""+Ye(e):a,h||e===t.value||(t.value=e),t.defaultValue=e}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=h?t.checked:!!l,t.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),di(t)}function _n(t,e,a){e==="number"&&Tn(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function F(t,e,a,l){if(t=t.options,e){e={};for(var i=0;i<a.length;i++)e["$"+a[i]]=!0;for(a=0;a<t.length;a++)i=e.hasOwnProperty("$"+t[a].value),t[a].selected!==i&&(t[a].selected=i),i&&l&&(t[a].defaultSelected=!0)}else{for(a=""+Ye(a),e=null,i=0;i<t.length;i++){if(t[i].value===a){t[i].selected=!0,l&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function y(t,e,a){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Ye(a):""}function D(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(c(92));if(zt(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=Ye(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),di(t)}function J(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var lt=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 dt(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||lt.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function xt(t,e,a){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var i in e)l=e[i],e.hasOwnProperty(i)&&a[i]!==l&&dt(t,i,l)}else for(var s in e)e.hasOwnProperty(s)&&dt(t,s,e[s])}function It(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Pt=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"]]),Xe=/^[\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 De(t){return Xe.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ta(){}var ye=null;function cc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var mi=null,yi=null;function fd(t){var e=zl(t);if(e&&(t=e.stateNode)){var a=t[vt]||null;t:switch(t=e.stateNode,e.type){case"input":if(hi(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ge(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var i=l[vt]||null;if(!i)throw Error(c(90));hi(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&Bs(l)}break t;case"textarea":y(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&F(t,!!a.multiple,e,!1)}}}var oc=!1;function dd(t,e,a){if(oc)return t(e,a);oc=!0;try{var l=t(e);return l}finally{if(oc=!1,(mi!==null||yi!==null)&&(_r(),mi&&(e=mi,t=yi,yi=mi=null,fd(e),t)))for(e=0;e<t.length;e++)fd(t[e])}}function bu(t,e){var a=t.stateNode;if(a===null)return null;var l=a[vt]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(c(231,e,typeof a));return a}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fc=!1;if(tl)try{var Su={};Object.defineProperty(Su,"passive",{get:function(){fc=!0}}),window.addEventListener("test",Su,Su),window.removeEventListener("test",Su,Su)}catch{fc=!1}var wl=null,dc=null,qs=null;function hd(){if(qs)return qs;var t,e=dc,a=e.length,l,i="value"in wl?wl.value:wl.textContent,s=i.length;for(t=0;t<a&&e[t]===i[t];t++);var o=a-t;for(l=1;l<=o&&e[a-l]===i[s-l];l++);return qs=i.slice(t,1<l?1-l:void 0)}function Qs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ys(){return!0}function md(){return!1}function Ke(t){function e(a,l,i,s,o){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(a=t[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ys:md,this.isPropagationStopped=md,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ys)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),e}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=Ke(Rn),xu=b({},Rn,{view:0,detail:0}),zg=Ke(xu),hc,mc,Eu,Xs=b({},xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Eu&&(Eu&&t.type==="mousemove"?(hc=t.screenX-Eu.screenX,mc=t.screenY-Eu.screenY):mc=hc=0,Eu=t),hc)},movementY:function(t){return"movementY"in t?t.movementY:mc}}),yd=Ke(Xs),wg=b({},Xs,{dataTransfer:0}),Ug=Ke(wg),jg=b({},xu,{relatedTarget:0}),yc=Ke(jg),Lg=b({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hg=Ke(Lg),Bg=b({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),qg=Ke(Bg),Qg=b({},Rn,{data:0}),pd=Ke(Qg),Yg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gg={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"},Xg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Xg[t])?!!e[t]:!1}function pc(){return Kg}var Zg=b({},xu,{key:function(t){if(t.key){var e=Yg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Qs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(t){return t.type==="keypress"?Qs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Qs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Vg=Ke(Zg),kg=b({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gd=Ke(kg),Jg=b({},xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),Fg=Ke(Jg),$g=b({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wg=Ke($g),Ig=b({},Xs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Pg=Ke(Ig),tv=b({},Rn,{newState:0,oldState:0}),ev=Ke(tv),av=[9,13,27,32],gc=tl&&"CompositionEvent"in window,Tu=null;tl&&"documentMode"in document&&(Tu=document.documentMode);var lv=tl&&"TextEvent"in window&&!Tu,vd=tl&&(!gc||Tu&&8<Tu&&11>=Tu),bd=" ",Sd=!1;function xd(t,e){switch(t){case"keyup":return av.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ed(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var pi=!1;function nv(t,e){switch(t){case"compositionend":return Ed(e);case"keypress":return e.which!==32?null:(Sd=!0,bd);case"textInput":return t=e.data,t===bd&&Sd?null:t;default:return null}}function iv(t,e){if(pi)return t==="compositionend"||!gc&&xd(t,e)?(t=hd(),qs=dc=wl=null,pi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vd&&e.locale!=="ko"?null:e.data;default:return null}}var uv={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 Td(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!uv[t.type]:e==="textarea"}function Ad(t,e,a,l){mi?yi?yi.push(l):yi=[l]:mi=l,e=zr(e,"onChange"),0<e.length&&(a=new Gs("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Au=null,_u=null;function sv(t){uy(t,0)}function Ks(t){var e=xn(t);if(Bs(e))return t}function _d(t,e){if(t==="change")return e}var Rd=!1;if(tl){var vc;if(tl){var bc="oninput"in document;if(!bc){var Od=document.createElement("div");Od.setAttribute("oninput","return;"),bc=typeof Od.oninput=="function"}vc=bc}else vc=!1;Rd=vc&&(!document.documentMode||9<document.documentMode)}function Nd(){Au&&(Au.detachEvent("onpropertychange",Cd),_u=Au=null)}function Cd(t){if(t.propertyName==="value"&&Ks(_u)){var e=[];Ad(e,_u,t,cc(t)),dd(sv,e)}}function rv(t,e,a){t==="focusin"?(Nd(),Au=e,_u=a,Au.attachEvent("onpropertychange",Cd)):t==="focusout"&&Nd()}function cv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ks(_u)}function ov(t,e){if(t==="click")return Ks(e)}function fv(t,e){if(t==="input"||t==="change")return Ks(e)}function dv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ea=typeof Object.is=="function"?Object.is:dv;function Ru(t,e){if(ea(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!ei.call(e,i)||!ea(t[i],e[i]))return!1}return!0}function Md(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Dd(t,e){var a=Md(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Md(a)}}function zd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Tn(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Tn(t.document)}return e}function Sc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var hv=tl&&"documentMode"in document&&11>=document.documentMode,gi=null,xc=null,Ou=null,Ec=!1;function Ud(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ec||gi==null||gi!==Tn(l)||(l=gi,"selectionStart"in l&&Sc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ou&&Ru(Ou,l)||(Ou=l,l=zr(xc,"onSelect"),0<l.length&&(e=new Gs("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=gi)))}function On(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var vi={animationend:On("Animation","AnimationEnd"),animationiteration:On("Animation","AnimationIteration"),animationstart:On("Animation","AnimationStart"),transitionrun:On("Transition","TransitionRun"),transitionstart:On("Transition","TransitionStart"),transitioncancel:On("Transition","TransitionCancel"),transitionend:On("Transition","TransitionEnd")},Tc={},jd={};tl&&(jd=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Nn(t){if(Tc[t])return Tc[t];if(!vi[t])return t;var e=vi[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in jd)return Tc[t]=e[a];return t}var Ld=Nn("animationend"),Hd=Nn("animationiteration"),Bd=Nn("animationstart"),mv=Nn("transitionrun"),yv=Nn("transitionstart"),pv=Nn("transitioncancel"),qd=Nn("transitionend"),Qd=new Map,Ac="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(" ");Ac.push("scrollEnd");function _a(t,e){Qd.set(t,e),Ia(e,[t])}var Zs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fa=[],bi=0,_c=0;function Vs(){for(var t=bi,e=_c=bi=0;e<t;){var a=fa[e];fa[e++]=null;var l=fa[e];fa[e++]=null;var i=fa[e];fa[e++]=null;var s=fa[e];if(fa[e++]=null,l!==null&&i!==null){var o=l.pending;o===null?i.next=i:(i.next=o.next,o.next=i),l.pending=i}s!==0&&Yd(a,i,s)}}function ks(t,e,a,l){fa[bi++]=t,fa[bi++]=e,fa[bi++]=a,fa[bi++]=l,_c|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Rc(t,e,a,l){return ks(t,e,a,l),Js(t)}function Cn(t,e){return ks(t,null,null,e),Js(t)}function Yd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var i=!1,s=t.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(i=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,i&&e!==null&&(i=31-Ee(a),t=s.hiddenUpdates,l=t[i],l===null?t[i]=[e]:l.push(e),e.lane=a|536870912),s):null}function Js(t){if(50<Fu)throw Fu=0,Lo=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Si={};function gv(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function aa(t,e,a,l){return new gv(t,e,a,l)}function Oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function el(t,e){var a=t.alternate;return a===null?(a=aa(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Gd(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Fs(t,e,a,l,i,s){var o=0;if(l=t,typeof t=="function")Oc(t)&&(o=1);else if(typeof t=="string")o=E0(t,a,at.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case gt:return t=aa(31,a,e,i),t.elementType=gt,t.lanes=s,t;case Y:return Mn(a.children,i,s,e);case X:o=8,i|=24;break;case q:return t=aa(12,a,e,i|2),t.elementType=q,t.lanes=s,t;case k:return t=aa(13,a,e,i),t.elementType=k,t.lanes=s,t;case P:return t=aa(19,a,e,i),t.elementType=P,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z:o=10;break t;case K:o=9;break t;case V:o=11;break t;case et:o=14;break t;case st:o=16,l=null;break t}o=29,a=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=aa(o,a,e,i),e.elementType=t,e.type=l,e.lanes=s,e}function Mn(t,e,a,l){return t=aa(7,t,l,e),t.lanes=a,t}function Nc(t,e,a){return t=aa(6,t,null,e),t.lanes=a,t}function Xd(t){var e=aa(18,null,null,0);return e.stateNode=t,e}function Cc(t,e,a){return e=aa(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Kd=new WeakMap;function da(t,e){if(typeof t=="object"&&t!==null){var a=Kd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:xa(e)},Kd.set(t,e),e)}return{value:t,source:e,stack:xa(e)}}var xi=[],Ei=0,$s=null,Nu=0,ha=[],ma=0,Ul=null,Ha=1,Ba="";function al(t,e){xi[Ei++]=Nu,xi[Ei++]=$s,$s=t,Nu=e}function Zd(t,e,a){ha[ma++]=Ha,ha[ma++]=Ba,ha[ma++]=Ul,Ul=t;var l=Ha;t=Ba;var i=32-Ee(l)-1;l&=~(1<<i),a+=1;var s=32-Ee(e)+i;if(30<s){var o=i-i%5;s=(l&(1<<o)-1).toString(32),l>>=o,i-=o,Ha=1<<32-Ee(e)+i|a<<i|l,Ba=s+t}else Ha=1<<s|a<<i|l,Ba=t}function Mc(t){t.return!==null&&(al(t,1),Zd(t,1,0))}function Dc(t){for(;t===$s;)$s=xi[--Ei],xi[Ei]=null,Nu=xi[--Ei],xi[Ei]=null;for(;t===Ul;)Ul=ha[--ma],ha[ma]=null,Ba=ha[--ma],ha[ma]=null,Ha=ha[--ma],ha[ma]=null}function Vd(t,e){ha[ma++]=Ha,ha[ma++]=Ba,ha[ma++]=Ul,Ha=e.id,Ba=e.overflow,Ul=t}var Te=null,Vt=null,At=!1,jl=null,ya=!1,zc=Error(c(519));function Ll(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cu(da(e,t)),zc}function kd(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[he]=t,e[vt]=l,a){case"dialog":St("cancel",e),St("close",e);break;case"iframe":case"object":case"embed":St("load",e);break;case"video":case"audio":for(a=0;a<Wu.length;a++)St(Wu[a],e);break;case"source":St("error",e);break;case"img":case"image":case"link":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"input":St("invalid",e),An(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":St("invalid",e);break;case"textarea":St("invalid",e),D(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||oy(e.textContent,a)?(l.popover!=null&&(St("beforetoggle",e),St("toggle",e)),l.onScroll!=null&&St("scroll",e),l.onScrollEnd!=null&&St("scrollend",e),l.onClick!=null&&(e.onclick=ta),e=!0):e=!1,e||Ll(t,!0)}function Jd(t){for(Te=t.return;Te;)switch(Te.tag){case 5:case 31:case 13:ya=!1;return;case 27:case 3:ya=!0;return;default:Te=Te.return}}function Ti(t){if(t!==Te)return!1;if(!At)return Jd(t),At=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Wo(t.type,t.memoizedProps)),a=!a),a&&Vt&&Ll(t),Jd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Vt=by(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Vt=by(t)}else e===27?(e=Vt,$l(t.type)?(t=af,af=null,Vt=t):Vt=e):Vt=Te?ga(t.stateNode.nextSibling):null;return!0}function Dn(){Vt=Te=null,At=!1}function wc(){var t=jl;return t!==null&&(Je===null?Je=t:Je.push.apply(Je,t),jl=null),t}function Cu(t){jl===null?jl=[t]:jl.push(t)}var Uc=T(null),zn=null,ll=null;function Hl(t,e,a){W(Uc,e._currentValue),e._currentValue=a}function nl(t){t._currentValue=Uc.current,G(Uc)}function jc(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Lc(t,e,a,l){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;t:for(;s!==null;){var h=s;s=i;for(var S=0;S<e.length;S++)if(h.context===e[S]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),jc(s.return,a,t),l||(o=null);break t}s=h.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),jc(o,a,t),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Ai(t,e,a,l){t=null;for(var i=e,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=i.type;ea(i.pendingProps.value,o.value)||(t!==null?t.push(h):t=[h])}}else if(i===Nt.current){if(o=i.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(as):t=[as])}i=i.return}t!==null&&Lc(e,t,a,l),e.flags|=262144}function Ws(t){for(t=t.firstContext;t!==null;){if(!ea(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wn(t){zn=t,ll=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ae(t){return Fd(zn,t)}function Is(t,e){return zn===null&&wn(t),Fd(t,e)}function Fd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ll===null){if(t===null)throw Error(c(308));ll=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ll=ll.next=e;return a}var vv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},bv=n.unstable_scheduleCallback,Sv=n.unstable_NormalPriority,ue={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new vv,data:new Map,refCount:0}}function Mu(t){t.refCount--,t.refCount===0&&bv(Sv,function(){t.controller.abort()})}var Du=null,Bc=0,_i=0,Ri=null;function xv(t,e){if(Du===null){var a=Du=[];Bc=0,_i=Go(),Ri={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Bc++,e.then($d,$d),e}function $d(){if(--Bc===0&&Du!==null){Ri!==null&&(Ri.status="fulfilled");var t=Du;Du=null,_i=0,Ri=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ev(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var i=0;i<a.length;i++)(0,a[i])(e)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Wd=j.S;j.S=function(t,e){Um=de(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&xv(t,e),Wd!==null&&Wd(t,e)};var Un=T(null);function qc(){var t=Un.current;return t!==null?t:Xt.pooledCache}function Ps(t,e){e===null?W(Un,Un.current):W(Un,e.pool)}function Id(){var t=qc();return t===null?null:{parent:ue._currentValue,pool:t}}var Oi=Error(c(460)),Qc=Error(c(474)),tr=Error(c(542)),er={then:function(){}};function Pd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function th(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ta,ta),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ah(t),t;default:if(typeof e.status=="string")e.then(ta,ta);else{if(t=Xt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=l}},function(l){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ah(t),t}throw Ln=e,Oi}}function jn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ln=a,Oi):a}}var Ln=null;function eh(){if(Ln===null)throw Error(c(459));var t=Ln;return Ln=null,t}function ah(t){if(t===Oi||t===tr)throw Error(c(483))}var Ni=null,zu=0;function ar(t){var e=zu;return zu+=1,Ni===null&&(Ni=[]),th(Ni,t,e)}function wu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function lr(t,e){throw e.$$typeof===N?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function lh(t){function e(O,A){if(t){var C=O.deletions;C===null?(O.deletions=[A],O.flags|=16):C.push(A)}}function a(O,A){if(!t)return null;for(;A!==null;)e(O,A),A=A.sibling;return null}function l(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function i(O,A){return O=el(O,A),O.index=0,O.sibling=null,O}function s(O,A,C){return O.index=C,t?(C=O.alternate,C!==null?(C=C.index,C<A?(O.flags|=67108866,A):C):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function o(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function h(O,A,C,B){return A===null||A.tag!==6?(A=Nc(C,O.mode,B),A.return=O,A):(A=i(A,C),A.return=O,A)}function S(O,A,C,B){var ut=C.type;return ut===Y?L(O,A,C.props.children,B,C.key):A!==null&&(A.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===st&&jn(ut)===A.type)?(A=i(A,C.props),wu(A,C),A.return=O,A):(A=Fs(C.type,C.key,C.props,null,O.mode,B),wu(A,C),A.return=O,A)}function M(O,A,C,B){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Cc(C,O.mode,B),A.return=O,A):(A=i(A,C.children||[]),A.return=O,A)}function L(O,A,C,B,ut){return A===null||A.tag!==7?(A=Mn(C,O.mode,B,ut),A.return=O,A):(A=i(A,C),A.return=O,A)}function Q(O,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Nc(""+A,O.mode,C),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case U:return C=Fs(A.type,A.key,A.props,null,O.mode,C),wu(C,A),C.return=O,C;case H:return A=Cc(A,O.mode,C),A.return=O,A;case st:return A=jn(A),Q(O,A,C)}if(zt(A)||Bt(A))return A=Mn(A,O.mode,C,null),A.return=O,A;if(typeof A.then=="function")return Q(O,ar(A),C);if(A.$$typeof===Z)return Q(O,Is(O,A),C);lr(O,A)}return null}function z(O,A,C,B){var ut=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ut!==null?null:h(O,A,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case U:return C.key===ut?S(O,A,C,B):null;case H:return C.key===ut?M(O,A,C,B):null;case st:return C=jn(C),z(O,A,C,B)}if(zt(C)||Bt(C))return ut!==null?null:L(O,A,C,B,null);if(typeof C.then=="function")return z(O,A,ar(C),B);if(C.$$typeof===Z)return z(O,A,Is(O,C),B);lr(O,C)}return null}function w(O,A,C,B,ut){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return O=O.get(C)||null,h(A,O,""+B,ut);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case U:return O=O.get(B.key===null?C:B.key)||null,S(A,O,B,ut);case H:return O=O.get(B.key===null?C:B.key)||null,M(A,O,B,ut);case st:return B=jn(B),w(O,A,C,B,ut)}if(zt(B)||Bt(B))return O=O.get(C)||null,L(A,O,B,ut,null);if(typeof B.then=="function")return w(O,A,C,ar(B),ut);if(B.$$typeof===Z)return w(O,A,C,Is(A,B),ut);lr(A,B)}return null}function tt(O,A,C,B){for(var ut=null,Ct=null,nt=A,mt=A=0,Tt=null;nt!==null&&mt<C.length;mt++){nt.index>mt?(Tt=nt,nt=null):Tt=nt.sibling;var Mt=z(O,nt,C[mt],B);if(Mt===null){nt===null&&(nt=Tt);break}t&&nt&&Mt.alternate===null&&e(O,nt),A=s(Mt,A,mt),Ct===null?ut=Mt:Ct.sibling=Mt,Ct=Mt,nt=Tt}if(mt===C.length)return a(O,nt),At&&al(O,mt),ut;if(nt===null){for(;mt<C.length;mt++)nt=Q(O,C[mt],B),nt!==null&&(A=s(nt,A,mt),Ct===null?ut=nt:Ct.sibling=nt,Ct=nt);return At&&al(O,mt),ut}for(nt=l(nt);mt<C.length;mt++)Tt=w(nt,O,mt,C[mt],B),Tt!==null&&(t&&Tt.alternate!==null&&nt.delete(Tt.key===null?mt:Tt.key),A=s(Tt,A,mt),Ct===null?ut=Tt:Ct.sibling=Tt,Ct=Tt);return t&&nt.forEach(function(en){return e(O,en)}),At&&al(O,mt),ut}function rt(O,A,C,B){if(C==null)throw Error(c(151));for(var ut=null,Ct=null,nt=A,mt=A=0,Tt=null,Mt=C.next();nt!==null&&!Mt.done;mt++,Mt=C.next()){nt.index>mt?(Tt=nt,nt=null):Tt=nt.sibling;var en=z(O,nt,Mt.value,B);if(en===null){nt===null&&(nt=Tt);break}t&&nt&&en.alternate===null&&e(O,nt),A=s(en,A,mt),Ct===null?ut=en:Ct.sibling=en,Ct=en,nt=Tt}if(Mt.done)return a(O,nt),At&&al(O,mt),ut;if(nt===null){for(;!Mt.done;mt++,Mt=C.next())Mt=Q(O,Mt.value,B),Mt!==null&&(A=s(Mt,A,mt),Ct===null?ut=Mt:Ct.sibling=Mt,Ct=Mt);return At&&al(O,mt),ut}for(nt=l(nt);!Mt.done;mt++,Mt=C.next())Mt=w(nt,O,mt,Mt.value,B),Mt!==null&&(t&&Mt.alternate!==null&&nt.delete(Mt.key===null?mt:Mt.key),A=s(Mt,A,mt),Ct===null?ut=Mt:Ct.sibling=Mt,Ct=Mt);return t&&nt.forEach(function(w0){return e(O,w0)}),At&&al(O,mt),ut}function Yt(O,A,C,B){if(typeof C=="object"&&C!==null&&C.type===Y&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case U:t:{for(var ut=C.key;A!==null;){if(A.key===ut){if(ut=C.type,ut===Y){if(A.tag===7){a(O,A.sibling),B=i(A,C.props.children),B.return=O,O=B;break t}}else if(A.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===st&&jn(ut)===A.type){a(O,A.sibling),B=i(A,C.props),wu(B,C),B.return=O,O=B;break t}a(O,A);break}else e(O,A);A=A.sibling}C.type===Y?(B=Mn(C.props.children,O.mode,B,C.key),B.return=O,O=B):(B=Fs(C.type,C.key,C.props,null,O.mode,B),wu(B,C),B.return=O,O=B)}return o(O);case H:t:{for(ut=C.key;A!==null;){if(A.key===ut)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){a(O,A.sibling),B=i(A,C.children||[]),B.return=O,O=B;break t}else{a(O,A);break}else e(O,A);A=A.sibling}B=Cc(C,O.mode,B),B.return=O,O=B}return o(O);case st:return C=jn(C),Yt(O,A,C,B)}if(zt(C))return tt(O,A,C,B);if(Bt(C)){if(ut=Bt(C),typeof ut!="function")throw Error(c(150));return C=ut.call(C),rt(O,A,C,B)}if(typeof C.then=="function")return Yt(O,A,ar(C),B);if(C.$$typeof===Z)return Yt(O,A,Is(O,C),B);lr(O,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(a(O,A.sibling),B=i(A,C),B.return=O,O=B):(a(O,A),B=Nc(C,O.mode,B),B.return=O,O=B),o(O)):a(O,A)}return function(O,A,C,B){try{zu=0;var ut=Yt(O,A,C,B);return Ni=null,ut}catch(nt){if(nt===Oi||nt===tr)throw nt;var Ct=aa(29,nt,null,O.mode);return Ct.lanes=B,Ct.return=O,Ct}finally{}}}var Hn=lh(!0),nh=lh(!1),Bl=!1;function Yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ql(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ql(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Dt&2)!==0){var i=l.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),l.pending=e,e=Js(t),Yd(t,null,a),e}return ks(t,l,e,a),Js(t)}function Uu(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,mu(t,a)}}function Xc(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?i=s=e:s=s.next=e}else i=s=e;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Kc=!1;function ju(){if(Kc){var t=Ri;if(t!==null)throw t}}function Lu(t,e,a,l){Kc=!1;var i=t.updateQueue;Bl=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var S=h,M=S.next;S.next=null,o===null?s=M:o.next=M,o=S;var L=t.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==o&&(h===null?L.firstBaseUpdate=M:h.next=M,L.lastBaseUpdate=S))}if(s!==null){var Q=i.baseState;o=0,L=M=S=null,h=s;do{var z=h.lane&-536870913,w=z!==h.lane;if(w?(Et&z)===z:(l&z)===z){z!==0&&z===_i&&(Kc=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var tt=t,rt=h;z=e;var Yt=a;switch(rt.tag){case 1:if(tt=rt.payload,typeof tt=="function"){Q=tt.call(Yt,Q,z);break t}Q=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=rt.payload,z=typeof tt=="function"?tt.call(Yt,Q,z):tt,z==null)break t;Q=b({},Q,z);break t;case 2:Bl=!0}}z=h.callback,z!==null&&(t.flags|=64,w&&(t.flags|=8192),w=i.callbacks,w===null?i.callbacks=[z]:w.push(z))}else w={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(M=L=w,S=Q):L=L.next=w,o|=z;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;w=h,h=w.next,w.next=null,i.lastBaseUpdate=w,i.shared.pending=null}}while(!0);L===null&&(S=Q),i.baseState=S,i.firstBaseUpdate=M,i.lastBaseUpdate=L,s===null&&(i.shared.lanes=0),Zl|=o,t.lanes=o,t.memoizedState=Q}}function ih(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function uh(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)ih(a[t],e)}var Ci=T(null),nr=T(0);function sh(t,e){t=hl,W(nr,t),W(Ci,e),hl=t|e.baseLanes}function Zc(){W(nr,hl),W(Ci,Ci.current)}function Vc(){hl=nr.current,G(Ci),G(nr)}var la=T(null),pa=null;function Yl(t){var e=t.alternate;W(ne,ne.current&1),W(la,t),pa===null&&(e===null||Ci.current!==null||e.memoizedState!==null)&&(pa=t)}function kc(t){W(ne,ne.current),W(la,t),pa===null&&(pa=t)}function rh(t){t.tag===22?(W(ne,ne.current),W(la,t),pa===null&&(pa=t)):Gl()}function Gl(){W(ne,ne.current),W(la,la.current)}function na(t){G(la),pa===t&&(pa=null),G(ne)}var ne=T(0);function ir(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||tf(a)||ef(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var il=0,ht=null,qt=null,se=null,ur=!1,Mi=!1,Bn=!1,sr=0,Hu=0,Di=null,Tv=0;function te(){throw Error(c(321))}function Jc(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!ea(t[a],e[a]))return!1;return!0}function Fc(t,e,a,l,i,s){return il=s,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?Zh:oo,Bn=!1,s=a(l,i),Bn=!1,Mi&&(s=oh(e,a,l,i)),ch(t),s}function ch(t){j.H=Qu;var e=qt!==null&&qt.next!==null;if(il=0,se=qt=ht=null,ur=!1,Hu=0,Di=null,e)throw Error(c(300));t===null||re||(t=t.dependencies,t!==null&&Ws(t)&&(re=!0))}function oh(t,e,a,l){ht=t;var i=0;do{if(Mi&&(Di=null),Hu=0,Mi=!1,25<=i)throw Error(c(301));if(i+=1,se=qt=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}j.H=Vh,s=e(a,l)}while(Mi);return s}function Av(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?Bu(e):e,t=t.useState()[0],(qt!==null?qt.memoizedState:null)!==t&&(ht.flags|=1024),e}function $c(){var t=sr!==0;return sr=0,t}function Wc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ic(t){if(ur){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ur=!1}il=0,se=qt=ht=null,Mi=!1,Hu=sr=0,Di=null}function He(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?ht.memoizedState=se=t:se=se.next=t,se}function ie(){if(qt===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var e=se===null?ht.memoizedState:se.next;if(e!==null)se=e,qt=t;else{if(t===null)throw ht.alternate===null?Error(c(467)):Error(c(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},se===null?ht.memoizedState=se=t:se=se.next=t}return se}function rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bu(t){var e=Hu;return Hu+=1,Di===null&&(Di=[]),t=th(Di,t,e),e=ht,(se===null?e.memoizedState:se.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?Zh:oo),t}function cr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Bu(t);if(t.$$typeof===Z)return Ae(t)}throw Error(c(438,String(t)))}function Pc(t){var e=null,a=ht.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=ht.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=rr(),ht.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=Ot;return e.index++,a}function ul(t,e){return typeof e=="function"?e(t):e}function or(t){var e=ie();return to(e,qt,t)}function to(t,e,a){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var i=t.baseQueue,s=l.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}e.baseQueue=i=s,l.pending=null}if(s=t.baseState,i===null)t.memoizedState=s;else{e=i.next;var h=o=null,S=null,M=e,L=!1;do{var Q=M.lane&-536870913;if(Q!==M.lane?(Et&Q)===Q:(il&Q)===Q){var z=M.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Q===_i&&(L=!0);else if((il&z)===z){M=M.next,z===_i&&(L=!0);continue}else Q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(h=S=Q,o=s):S=S.next=Q,ht.lanes|=z,Zl|=z;Q=M.action,Bn&&a(s,Q),s=M.hasEagerState?M.eagerState:a(s,Q)}else z={lane:Q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(h=S=z,o=s):S=S.next=z,ht.lanes|=Q,Zl|=Q;M=M.next}while(M!==null&&M!==e);if(S===null?o=s:S.next=h,!ea(s,t.memoizedState)&&(re=!0,L&&(a=Ri,a!==null)))throw a;t.memoizedState=s,t.baseState=o,t.baseQueue=S,l.lastRenderedState=s}return i===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function eo(t){var e=ie(),a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=t;var l=a.dispatch,i=a.pending,s=e.memoizedState;if(i!==null){a.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);ea(s,e.memoizedState)||(re=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),a.lastRenderedState=s}return[s,l]}function fh(t,e,a){var l=ht,i=ie(),s=At;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=e();var o=!ea((qt||i).memoizedState,a);if(o&&(i.memoizedState=a,re=!0),i=i.queue,no(mh.bind(null,l,i,t),[t]),i.getSnapshot!==e||o||se!==null&&se.memoizedState.tag&1){if(l.flags|=2048,zi(9,{destroy:void 0},hh.bind(null,l,i,a,e),null),Xt===null)throw Error(c(349));s||(il&127)!==0||dh(l,e,a)}return a}function dh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ht.updateQueue,e===null?(e=rr(),ht.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function hh(t,e,a,l){e.value=a,e.getSnapshot=l,yh(e)&&ph(t)}function mh(t,e,a){return a(function(){yh(e)&&ph(t)})}function yh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ea(t,a)}catch{return!0}}function ph(t){var e=Cn(t,2);e!==null&&Fe(e,t,2)}function ao(t){var e=He();if(typeof t=="function"){var a=t;if(t=a(),Bn){Ea(!0);try{a()}finally{Ea(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:t},e}function gh(t,e,a,l){return t.baseState=a,to(t,qt,typeof l=="function"?l:ul)}function _v(t,e,a,l,i){if(hr(t))throw Error(c(485));if(t=e.action,t!==null){var s={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};j.T!==null?a(!0):s.isTransition=!1,l(s),a=e.pending,a===null?(s.next=e.pending=s,vh(e,s)):(s.next=a.next,e.pending=a.next=s)}}function vh(t,e){var a=e.action,l=e.payload,i=t.state;if(e.isTransition){var s=j.T,o={};j.T=o;try{var h=a(i,l),S=j.S;S!==null&&S(o,h),bh(t,e,h)}catch(M){lo(t,e,M)}finally{s!==null&&o.types!==null&&(s.types=o.types),j.T=s}}else try{s=a(i,l),bh(t,e,s)}catch(M){lo(t,e,M)}}function bh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Sh(t,e,l)},function(l){return lo(t,e,l)}):Sh(t,e,a)}function Sh(t,e,a){e.status="fulfilled",e.value=a,xh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,vh(t,a)))}function lo(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,xh(e),e=e.next;while(e!==l)}t.action=null}function xh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Eh(t,e){return e}function Th(t,e){if(At){var a=Xt.formState;if(a!==null){t:{var l=ht;if(At){if(Vt){e:{for(var i=Vt,s=ya;i.nodeType!==8;){if(!s){i=null;break e}if(i=ga(i.nextSibling),i===null){i=null;break e}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Vt=ga(i.nextSibling),l=i.data==="F!";break t}}Ll(l)}l=!1}l&&(e=a[0])}}return a=He(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:e},a.queue=l,a=Gh.bind(null,ht,l),l.dispatch=a,l=ao(!1),s=co.bind(null,ht,!1,l.queue),l=He(),i={state:e,dispatch:null,action:t,pending:null},l.queue=i,a=_v.bind(null,ht,i,s,a),i.dispatch=a,l.memoizedState=t,[e,a,!1]}function Ah(t){var e=ie();return _h(e,qt,t)}function _h(t,e,a){if(e=to(t,e,Eh)[0],t=or(ul)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Bu(e)}catch(o){throw o===Oi?tr:o}else l=e;e=ie();var i=e.queue,s=i.dispatch;return a!==e.memoizedState&&(ht.flags|=2048,zi(9,{destroy:void 0},Rv.bind(null,i,a),null)),[l,s,t]}function Rv(t,e){t.action=e}function Rh(t){var e=ie(),a=qt;if(a!==null)return _h(e,a,t);ie(),e=e.memoizedState,a=ie();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function zi(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=ht.updateQueue,e===null&&(e=rr(),ht.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Oh(){return ie().memoizedState}function fr(t,e,a,l){var i=He();ht.flags|=t,i.memoizedState=zi(1|e,{destroy:void 0},a,l===void 0?null:l)}function dr(t,e,a,l){var i=ie();l=l===void 0?null:l;var s=i.memoizedState.inst;qt!==null&&l!==null&&Jc(l,qt.memoizedState.deps)?i.memoizedState=zi(e,s,a,l):(ht.flags|=t,i.memoizedState=zi(1|e,s,a,l))}function Nh(t,e){fr(8390656,8,t,e)}function no(t,e){dr(2048,8,t,e)}function Ov(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=rr(),ht.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Ch(t){var e=ie().memoizedState;return Ov({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Mh(t,e){return dr(4,2,t,e)}function Dh(t,e){return dr(4,4,t,e)}function zh(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function wh(t,e,a){a=a!=null?a.concat([t]):null,dr(4,4,zh.bind(null,e,t),a)}function io(){}function Uh(t,e){var a=ie();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Jc(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function jh(t,e){var a=ie();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Jc(e,l[1]))return l[0];if(l=t(),Bn){Ea(!0);try{t()}finally{Ea(!1)}}return a.memoizedState=[l,e],l}function uo(t,e,a){return a===void 0||(il&1073741824)!==0&&(Et&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Lm(),ht.lanes|=t,Zl|=t,a)}function Lh(t,e,a,l){return ea(a,e)?a:Ci.current!==null?(t=uo(t,a,l),ea(t,e)||(re=!0),t):(il&42)===0||(il&1073741824)!==0&&(Et&261930)===0?(re=!0,t.memoizedState=a):(t=Lm(),ht.lanes|=t,Zl|=t,e)}function Hh(t,e,a,l,i){var s=$.p;$.p=s!==0&&8>s?s:8;var o=j.T,h={};j.T=h,co(t,!1,e,a);try{var S=i(),M=j.S;if(M!==null&&M(h,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=Ev(S,l);qu(t,e,L,sa(t))}else qu(t,e,l,sa(t))}catch(Q){qu(t,e,{then:function(){},status:"rejected",reason:Q},sa())}finally{$.p=s,o!==null&&h.types!==null&&(o.types=h.types),j.T=o}}function Nv(){}function so(t,e,a,l){if(t.tag!==5)throw Error(c(476));var i=Bh(t).queue;Hh(t,i,e,ct,a===null?Nv:function(){return qh(t),a(l)})}function Bh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ct,baseState:ct,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:ct},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qh(t){var e=Bh(t);e.next===null&&(e=t.alternate.memoizedState),qu(t,e.next.queue,{},sa())}function ro(){return Ae(as)}function Qh(){return ie().memoizedState}function Yh(){return ie().memoizedState}function Cv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=sa();t=ql(a);var l=Ql(e,t,a);l!==null&&(Fe(l,e,a),Uu(l,e,a)),e={cache:Hc()},t.payload=e;return}e=e.return}}function Mv(t,e,a){var l=sa();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},hr(t)?Xh(e,a):(a=Rc(t,e,a,l),a!==null&&(Fe(a,t,l),Kh(a,e,l)))}function Gh(t,e,a){var l=sa();qu(t,e,a,l)}function qu(t,e,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(hr(t))Xh(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,h=s(o,a);if(i.hasEagerState=!0,i.eagerState=h,ea(h,o))return ks(t,e,i,0),Xt===null&&Vs(),!1}catch{}finally{}if(a=Rc(t,e,i,l),a!==null)return Fe(a,t,l),Kh(a,e,l),!0}return!1}function co(t,e,a,l){if(l={lane:2,revertLane:Go(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},hr(t)){if(e)throw Error(c(479))}else e=Rc(t,a,l,2),e!==null&&Fe(e,t,2)}function hr(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function Xh(t,e){Mi=ur=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Kh(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,mu(t,a)}}var Qu={readContext:Ae,use:cr,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useLayoutEffect:te,useInsertionEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useSyncExternalStore:te,useId:te,useHostTransitionStatus:te,useFormState:te,useActionState:te,useOptimistic:te,useMemoCache:te,useCacheRefresh:te};Qu.useEffectEvent=te;var Zh={readContext:Ae,use:cr,useCallback:function(t,e){return He().memoizedState=[t,e===void 0?null:e],t},useContext:Ae,useEffect:Nh,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,fr(4194308,4,zh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return fr(4194308,4,t,e)},useInsertionEffect:function(t,e){fr(4,2,t,e)},useMemo:function(t,e){var a=He();e=e===void 0?null:e;var l=t();if(Bn){Ea(!0);try{t()}finally{Ea(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=He();if(a!==void 0){var i=a(e);if(Bn){Ea(!0);try{a(e)}finally{Ea(!1)}}}else i=e;return l.memoizedState=l.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},l.queue=t,t=t.dispatch=Mv.bind(null,ht,t),[l.memoizedState,t]},useRef:function(t){var e=He();return t={current:t},e.memoizedState=t},useState:function(t){t=ao(t);var e=t.queue,a=Gh.bind(null,ht,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:io,useDeferredValue:function(t,e){var a=He();return uo(a,t,e)},useTransition:function(){var t=ao(!1);return t=Hh.bind(null,ht,t.queue,!0,!1),He().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=ht,i=He();if(At){if(a===void 0)throw Error(c(407));a=a()}else{if(a=e(),Xt===null)throw Error(c(349));(Et&127)!==0||dh(l,e,a)}i.memoizedState=a;var s={value:a,getSnapshot:e};return i.queue=s,Nh(mh.bind(null,l,s,t),[t]),l.flags|=2048,zi(9,{destroy:void 0},hh.bind(null,l,s,a,e),null),a},useId:function(){var t=He(),e=Xt.identifierPrefix;if(At){var a=Ba,l=Ha;a=(l&~(1<<32-Ee(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=sr++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Tv++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ro,useFormState:Th,useActionState:Th,useOptimistic:function(t){var e=He();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=co.bind(null,ht,!0,a),a.dispatch=e,[t,e]},useMemoCache:Pc,useCacheRefresh:function(){return He().memoizedState=Cv.bind(null,ht)},useEffectEvent:function(t){var e=He(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},oo={readContext:Ae,use:cr,useCallback:Uh,useContext:Ae,useEffect:no,useImperativeHandle:wh,useInsertionEffect:Mh,useLayoutEffect:Dh,useMemo:jh,useReducer:or,useRef:Oh,useState:function(){return or(ul)},useDebugValue:io,useDeferredValue:function(t,e){var a=ie();return Lh(a,qt.memoizedState,t,e)},useTransition:function(){var t=or(ul)[0],e=ie().memoizedState;return[typeof t=="boolean"?t:Bu(t),e]},useSyncExternalStore:fh,useId:Qh,useHostTransitionStatus:ro,useFormState:Ah,useActionState:Ah,useOptimistic:function(t,e){var a=ie();return gh(a,qt,t,e)},useMemoCache:Pc,useCacheRefresh:Yh};oo.useEffectEvent=Ch;var Vh={readContext:Ae,use:cr,useCallback:Uh,useContext:Ae,useEffect:no,useImperativeHandle:wh,useInsertionEffect:Mh,useLayoutEffect:Dh,useMemo:jh,useReducer:eo,useRef:Oh,useState:function(){return eo(ul)},useDebugValue:io,useDeferredValue:function(t,e){var a=ie();return qt===null?uo(a,t,e):Lh(a,qt.memoizedState,t,e)},useTransition:function(){var t=eo(ul)[0],e=ie().memoizedState;return[typeof t=="boolean"?t:Bu(t),e]},useSyncExternalStore:fh,useId:Qh,useHostTransitionStatus:ro,useFormState:Rh,useActionState:Rh,useOptimistic:function(t,e){var a=ie();return qt!==null?gh(a,qt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Pc,useCacheRefresh:Yh};Vh.useEffectEvent=Ch;function fo(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:b({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var ho={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=sa(),i=ql(l);i.payload=e,a!=null&&(i.callback=a),e=Ql(t,i,l),e!==null&&(Fe(e,t,l),Uu(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=sa(),i=ql(l);i.tag=1,i.payload=e,a!=null&&(i.callback=a),e=Ql(t,i,l),e!==null&&(Fe(e,t,l),Uu(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=sa(),l=ql(a);l.tag=2,e!=null&&(l.callback=e),e=Ql(t,l,a),e!==null&&(Fe(e,t,a),Uu(e,t,a))}};function kh(t,e,a,l,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,s,o):e.prototype&&e.prototype.isPureReactComponent?!Ru(a,l)||!Ru(i,s):!0}function Jh(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&ho.enqueueReplaceState(e,e.state,null)}function qn(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=b({},a));for(var i in t)a[i]===void 0&&(a[i]=t[i])}return a}function Fh(t){Zs(t)}function $h(t){console.error(t)}function Wh(t){Zs(t)}function mr(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Ih(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function mo(t,e,a){return a=ql(a),a.tag=3,a.payload={element:null},a.callback=function(){mr(t,e)},a}function Ph(t){return t=ql(t),t.tag=3,t}function tm(t,e,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=l.value;t.payload=function(){return i(s)},t.callback=function(){Ih(e,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Ih(e,a,l),typeof i!="function"&&(Vl===null?Vl=new Set([this]):Vl.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Dv(t,e,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Ai(e,a,i,!0),a=la.current,a!==null){switch(a.tag){case 31:case 13:return pa===null?Rr():a.alternate===null&&ee===0&&(ee=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===er?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),qo(t,l,i)),!1;case 22:return a.flags|=65536,l===er?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),qo(t,l,i)),!1}throw Error(c(435,a.tag))}return qo(t,l,i),Rr(),!1}if(At)return e=la.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,l!==zc&&(t=Error(c(422),{cause:l}),Cu(da(t,a)))):(l!==zc&&(e=Error(c(423),{cause:l}),Cu(da(e,a))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,l=da(l,a),i=mo(t.stateNode,l,i),Xc(t,i),ee!==4&&(ee=2)),!1;var s=Error(c(520),{cause:l});if(s=da(s,a),Ju===null?Ju=[s]:Ju.push(s),ee!==4&&(ee=2),e===null)return!0;l=da(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=i&-i,a.lanes|=t,t=mo(a.stateNode,l,t),Xc(a,t),!1;case 1:if(e=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Vl===null||!Vl.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Ph(i),tm(i,t,a,l),Xc(a,i),!1}a=a.return}while(a!==null);return!1}var yo=Error(c(461)),re=!1;function _e(t,e,a,l){e.child=t===null?nh(e,null,a,l):Hn(e,t.child,a,l)}function em(t,e,a,l,i){a=a.render;var s=e.ref;if("ref"in l){var o={};for(var h in l)h!=="ref"&&(o[h]=l[h])}else o=l;return wn(e),l=Fc(t,e,a,o,s,i),h=$c(),t!==null&&!re?(Wc(t,e,i),sl(t,e,i)):(At&&h&&Mc(e),e.flags|=1,_e(t,e,l,i),e.child)}function am(t,e,a,l,i){if(t===null){var s=a.type;return typeof s=="function"&&!Oc(s)&&s.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=s,lm(t,e,s,l,i)):(t=Fs(a.type,null,l,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!To(t,i)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:Ru,a(o,l)&&t.ref===e.ref)return sl(t,e,i)}return e.flags|=1,t=el(s,l),t.ref=e.ref,t.return=e,e.child=t}function lm(t,e,a,l,i){if(t!==null){var s=t.memoizedProps;if(Ru(s,l)&&t.ref===e.ref)if(re=!1,e.pendingProps=l=s,To(t,i))(t.flags&131072)!==0&&(re=!0);else return e.lanes=t.lanes,sl(t,e,i)}return po(t,e,a,l,i)}function nm(t,e,a,l){var i=l.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,t!==null){for(l=e.child=t.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~s}else l=0,e.child=null;return im(t,e,s,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ps(e,s!==null?s.cachePool:null),s!==null?sh(e,s):Zc(),rh(e);else return l=e.lanes=536870912,im(t,e,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Ps(e,s.cachePool),sh(e,s),Gl(),e.memoizedState=null):(t!==null&&Ps(e,null),Zc(),Gl());return _e(t,e,i,a),e.child}function Yu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function im(t,e,a,l,i){var s=qc();return s=s===null?null:{parent:ue._currentValue,pool:s},e.memoizedState={baseLanes:a,cachePool:s},t!==null&&Ps(e,null),Zc(),rh(e),t!==null&&Ai(t,e,l,!0),e.childLanes=i,null}function yr(t,e){return e=gr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function um(t,e,a){return Hn(e,t.child,null,a),t=yr(e,e.pendingProps),t.flags|=2,na(e),e.memoizedState=null,t}function zv(t,e,a){var l=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(At){if(l.mode==="hidden")return t=yr(e,l),e.lanes=536870912,Yu(null,t);if(kc(e),(t=Vt)?(t=vy(t,ya),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ul!==null?{id:Ha,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=Xd(t),a.return=e,e.child=a,Te=e,Vt=null)):t=null,t===null)throw Ll(e);return e.lanes=536870912,null}return yr(e,l)}var s=t.memoizedState;if(s!==null){var o=s.dehydrated;if(kc(e),i)if(e.flags&256)e.flags&=-257,e=um(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(re||Ai(t,e,a,!1),i=(a&t.childLanes)!==0,re||i){if(l=Xt,l!==null&&(o=ri(l,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,Cn(t,o),Fe(l,t,o),yo;Rr(),e=um(t,e,a)}else t=s.treeContext,Vt=ga(o.nextSibling),Te=e,At=!0,jl=null,ya=!1,t!==null&&Vd(e,t),e=yr(e,l),e.flags|=4096;return e}return t=el(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function pr(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function po(t,e,a,l,i){return wn(e),a=Fc(t,e,a,l,void 0,i),l=$c(),t!==null&&!re?(Wc(t,e,i),sl(t,e,i)):(At&&l&&Mc(e),e.flags|=1,_e(t,e,a,i),e.child)}function sm(t,e,a,l,i,s){return wn(e),e.updateQueue=null,a=oh(e,l,a,i),ch(t),l=$c(),t!==null&&!re?(Wc(t,e,s),sl(t,e,s)):(At&&l&&Mc(e),e.flags|=1,_e(t,e,a,s),e.child)}function rm(t,e,a,l,i){if(wn(e),e.stateNode===null){var s=Si,o=a.contextType;typeof o=="object"&&o!==null&&(s=Ae(o)),s=new a(l,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ho,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=l,s.state=e.memoizedState,s.refs={},Yc(e),o=a.contextType,s.context=typeof o=="object"&&o!==null?Ae(o):Si,s.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(fo(e,a,o,l),s.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&ho.enqueueReplaceState(s,s.state,null),Lu(e,l,s,i),ju(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){s=e.stateNode;var h=e.memoizedProps,S=qn(a,h);s.props=S;var M=s.context,L=a.contextType;o=Si,typeof L=="object"&&L!==null&&(o=Ae(L));var Q=a.getDerivedStateFromProps;L=typeof Q=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,L||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||M!==o)&&Jh(e,s,l,o),Bl=!1;var z=e.memoizedState;s.state=z,Lu(e,l,s,i),ju(),M=e.memoizedState,h||z!==M||Bl?(typeof Q=="function"&&(fo(e,a,Q,l),M=e.memoizedState),(S=Bl||kh(e,a,S,l,z,M,o))?(L||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=M),s.props=l,s.state=M,s.context=o,l=S):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{s=e.stateNode,Gc(t,e),o=e.memoizedProps,L=qn(a,o),s.props=L,Q=e.pendingProps,z=s.context,M=a.contextType,S=Si,typeof M=="object"&&M!==null&&(S=Ae(M)),h=a.getDerivedStateFromProps,(M=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==Q||z!==S)&&Jh(e,s,l,S),Bl=!1,z=e.memoizedState,s.state=z,Lu(e,l,s,i),ju();var w=e.memoizedState;o!==Q||z!==w||Bl||t!==null&&t.dependencies!==null&&Ws(t.dependencies)?(typeof h=="function"&&(fo(e,a,h,l),w=e.memoizedState),(L=Bl||kh(e,a,L,l,z,w,S)||t!==null&&t.dependencies!==null&&Ws(t.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,w,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,w,S)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=w),s.props=l,s.state=w,s.context=S,l=L):(typeof s.componentDidUpdate!="function"||o===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return s=l,pr(t,e),l=(e.flags&128)!==0,s||l?(s=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&l?(e.child=Hn(e,t.child,null,i),e.child=Hn(e,null,a,i)):_e(t,e,a,i),e.memoizedState=s.state,t=e.child):t=sl(t,e,i),t}function cm(t,e,a,l){return Dn(),e.flags|=256,_e(t,e,a,l),e.child}var go={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vo(t){return{baseLanes:t,cachePool:Id()}}function bo(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ua),t}function om(t,e,a){var l=e.pendingProps,i=!1,s=(e.flags&128)!==0,o;if((o=s)||(o=t!==null&&t.memoizedState===null?!1:(ne.current&2)!==0),o&&(i=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(At){if(i?Yl(e):Gl(),(t=Vt)?(t=vy(t,ya),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ul!==null?{id:Ha,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=Xd(t),a.return=e,e.child=a,Te=e,Vt=null)):t=null,t===null)throw Ll(e);return ef(t)?e.lanes=32:e.lanes=536870912,null}var h=l.children;return l=l.fallback,i?(Gl(),i=e.mode,h=gr({mode:"hidden",children:h},i),l=Mn(l,i,a,null),h.return=e,l.return=e,h.sibling=l,e.child=h,l=e.child,l.memoizedState=vo(a),l.childLanes=bo(t,o,a),e.memoizedState=go,Yu(null,l)):(Yl(e),So(e,h))}var S=t.memoizedState;if(S!==null&&(h=S.dehydrated,h!==null)){if(s)e.flags&256?(Yl(e),e.flags&=-257,e=xo(t,e,a)):e.memoizedState!==null?(Gl(),e.child=t.child,e.flags|=128,e=null):(Gl(),h=l.fallback,i=e.mode,l=gr({mode:"visible",children:l.children},i),h=Mn(h,i,a,null),h.flags|=2,l.return=e,h.return=e,l.sibling=h,e.child=l,Hn(e,t.child,null,a),l=e.child,l.memoizedState=vo(a),l.childLanes=bo(t,o,a),e.memoizedState=go,e=Yu(null,l));else if(Yl(e),ef(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var M=o.dgst;o=M,l=Error(c(419)),l.stack="",l.digest=o,Cu({value:l,source:null,stack:null}),e=xo(t,e,a)}else if(re||Ai(t,e,a,!1),o=(a&t.childLanes)!==0,re||o){if(o=Xt,o!==null&&(l=ri(o,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,Cn(t,l),Fe(o,t,l),yo;tf(h)||Rr(),e=xo(t,e,a)}else tf(h)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Vt=ga(h.nextSibling),Te=e,At=!0,jl=null,ya=!1,t!==null&&Vd(e,t),e=So(e,l.children),e.flags|=4096);return e}return i?(Gl(),h=l.fallback,i=e.mode,S=t.child,M=S.sibling,l=el(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,M!==null?h=el(M,h):(h=Mn(h,i,a,null),h.flags|=2),h.return=e,l.return=e,l.sibling=h,e.child=l,Yu(null,l),l=e.child,h=t.child.memoizedState,h===null?h=vo(a):(i=h.cachePool,i!==null?(S=ue._currentValue,i=i.parent!==S?{parent:S,pool:S}:i):i=Id(),h={baseLanes:h.baseLanes|a,cachePool:i}),l.memoizedState=h,l.childLanes=bo(t,o,a),e.memoizedState=go,Yu(t.child,l)):(Yl(e),a=t.child,t=a.sibling,a=el(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=a,e.memoizedState=null,a)}function So(t,e){return e=gr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function gr(t,e){return t=aa(22,t,null,e),t.lanes=0,t}function xo(t,e,a){return Hn(e,t.child,null,a),t=So(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fm(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),jc(t.return,e,a)}function Eo(t,e,a,l,i,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=i,o.treeForkCount=s)}function dm(t,e,a){var l=e.pendingProps,i=l.revealOrder,s=l.tail;l=l.children;var o=ne.current,h=(o&2)!==0;if(h?(o=o&1|2,e.flags|=128):o&=1,W(ne,o),_e(t,e,l,a),l=At?Nu:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fm(t,a,e);else if(t.tag===19)fm(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(a=e.child,i=null;a!==null;)t=a.alternate,t!==null&&ir(t)===null&&(i=a),a=a.sibling;a=i,a===null?(i=e.child,e.child=null):(i=a.sibling,a.sibling=null),Eo(e,!1,i,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&ir(t)===null){e.child=i;break}t=i.sibling,i.sibling=a,a=i,i=t}Eo(e,!0,a,null,s,l);break;case"together":Eo(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function sl(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Zl|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Ai(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,a=el(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=el(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function To(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ws(t)))}function wv(t,e,a){switch(e.tag){case 3:ve(e,e.stateNode.containerInfo),Hl(e,ue,t.memoizedState.cache),Dn();break;case 27:case 5:Al(e);break;case 4:ve(e,e.stateNode.containerInfo);break;case 10:Hl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,kc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Yl(e),e.flags|=128,null):(a&e.child.childLanes)!==0?om(t,e,a):(Yl(e),t=sl(t,e,a),t!==null?t.sibling:null);Yl(e);break;case 19:var i=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Ai(t,e,a,!1),l=(a&e.childLanes)!==0),i){if(l)return dm(t,e,a);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(ne,ne.current),l)break;return null;case 22:return e.lanes=0,nm(t,e,a,e.pendingProps);case 24:Hl(e,ue,t.memoizedState.cache)}return sl(t,e,a)}function hm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)re=!0;else{if(!To(t,a)&&(e.flags&128)===0)return re=!1,wv(t,e,a);re=(t.flags&131072)!==0}else re=!1,At&&(e.flags&1048576)!==0&&Zd(e,Nu,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=jn(e.elementType),e.type=t,typeof t=="function")Oc(t)?(l=qn(t,l),e.tag=1,e=rm(null,e,t,l,a)):(e.tag=0,e=po(null,e,t,l,a));else{if(t!=null){var i=t.$$typeof;if(i===V){e.tag=11,e=em(null,e,t,l,a);break t}else if(i===et){e.tag=14,e=am(null,e,t,l,a);break t}}throw e=fe(t)||t,Error(c(306,e,""))}}return e;case 0:return po(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,i=qn(l,e.pendingProps),rm(t,e,l,i,a);case 3:t:{if(ve(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var s=e.memoizedState;i=s.element,Gc(t,e),Lu(e,l,null,a);var o=e.memoizedState;if(l=o.cache,Hl(e,ue,l),l!==s.cache&&Lc(e,[ue],a,!0),ju(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=cm(t,e,l,a);break t}else if(l!==i){i=da(Error(c(424)),e),Cu(i),e=cm(t,e,l,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Vt=ga(t.firstChild),Te=e,At=!0,jl=null,ya=!0,a=nh(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Dn(),l===i){e=sl(t,e,a);break t}_e(t,e,l,a)}e=e.child}return e;case 26:return pr(t,e),t===null?(a=Ay(e.type,null,e.pendingProps,null))?e.memoizedState=a:At||(a=e.type,t=e.pendingProps,l=wr(pt.current).createElement(a),l[he]=e,l[vt]=t,Re(l,a,t),le(l),e.stateNode=l):e.memoizedState=Ay(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Al(e),t===null&&At&&(l=e.stateNode=xy(e.type,e.pendingProps,pt.current),Te=e,ya=!0,i=Vt,$l(e.type)?(af=i,Vt=ga(l.firstChild)):Vt=i),_e(t,e,e.pendingProps.children,a),pr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((i=l=Vt)&&(l=c0(l,e.type,e.pendingProps,ya),l!==null?(e.stateNode=l,Te=e,Vt=ga(l.firstChild),ya=!1,i=!0):i=!1),i||Ll(e)),Al(e),i=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,l=s.children,Wo(i,s)?l=null:o!==null&&Wo(i,o)&&(e.flags|=32),e.memoizedState!==null&&(i=Fc(t,e,Av,null,null,a),as._currentValue=i),pr(t,e),_e(t,e,l,a),e.child;case 6:return t===null&&At&&((t=a=Vt)&&(a=o0(a,e.pendingProps,ya),a!==null?(e.stateNode=a,Te=e,Vt=null,t=!0):t=!1),t||Ll(e)),null;case 13:return om(t,e,a);case 4:return ve(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Hn(e,null,l,a):_e(t,e,l,a),e.child;case 11:return em(t,e,e.type,e.pendingProps,a);case 7:return _e(t,e,e.pendingProps,a),e.child;case 8:return _e(t,e,e.pendingProps.children,a),e.child;case 12:return _e(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Hl(e,e.type,l.value),_e(t,e,l.children,a),e.child;case 9:return i=e.type._context,l=e.pendingProps.children,wn(e),i=Ae(i),l=l(i),e.flags|=1,_e(t,e,l,a),e.child;case 14:return am(t,e,e.type,e.pendingProps,a);case 15:return lm(t,e,e.type,e.pendingProps,a);case 19:return dm(t,e,a);case 31:return zv(t,e,a);case 22:return nm(t,e,a,e.pendingProps);case 24:return wn(e),l=Ae(ue),t===null?(i=qc(),i===null&&(i=Xt,s=Hc(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),e.memoizedState={parent:l,cache:i},Yc(e),Hl(e,ue,i)):((t.lanes&a)!==0&&(Gc(t,e),Lu(e,null,null,a),ju()),i=t.memoizedState,s=e.memoizedState,i.parent!==l?(i={parent:l,cache:l},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Hl(e,ue,l)):(l=s.cache,Hl(e,ue,l),l!==i.cache&&Lc(e,[ue],a,!0))),_e(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function rl(t){t.flags|=4}function Ao(t,e,a,l,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(Qm())t.flags|=8192;else throw Ln=er,Qc}else t.flags&=-16777217}function mm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Cy(e))if(Qm())t.flags|=8192;else throw Ln=er,Qc}function vr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ie():536870912,t.lanes|=e,Li|=e)}function Gu(t,e){if(!At)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function kt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var i=t.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Uv(t,e,a){var l=e.pendingProps;switch(Dc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(e),null;case 1:return kt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),nl(ue),$t(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ti(e)?rl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,wc())),kt(e),null;case 26:var i=e.type,s=e.memoizedState;return t===null?(rl(e),s!==null?(kt(e),mm(e,s)):(kt(e),Ao(e,i,null,l,a))):s?s!==t.memoizedState?(rl(e),kt(e),mm(e,s)):(kt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&rl(e),kt(e),Ao(e,i,t,l,a)),null;case 27:if(Gt(e),a=pt.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&rl(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return kt(e),null}t=at.current,Ti(e)?kd(e):(t=xy(i,l,a),e.stateNode=t,rl(e))}return kt(e),null;case 5:if(Gt(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&rl(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return kt(e),null}if(s=at.current,Ti(e))kd(e);else{var o=wr(pt.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(i,{is:l.is}):o.createElement(i)}}s[he]=e,s[vt]=l;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=s;t:switch(Re(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&rl(e)}}return kt(e),Ao(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&rl(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=pt.current,Ti(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,i=Te,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}t[he]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||oy(t.nodeValue,a)),t||Ll(e,!0)}else t=wr(t).createTextNode(l),t[he]=e,e.stateNode=t}return kt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ti(e),a!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[he]=e}else Dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),t=!1}else a=wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(na(e),e):(na(e),null);if((e.flags&128)!==0)throw Error(c(558))}return kt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Ti(e),l!==null&&l.dehydrated!==null){if(t===null){if(!i)throw Error(c(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[he]=e}else Dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),i=!1}else i=wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(na(e),e):(na(e),null)}return na(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),vr(e,e.updateQueue),kt(e),null);case 4:return $t(),t===null&&Vo(e.stateNode.containerInfo),kt(e),null;case 10:return nl(e.type),kt(e),null;case 19:if(G(ne),l=e.memoizedState,l===null)return kt(e),null;if(i=(e.flags&128)!==0,s=l.rendering,s===null)if(i)Gu(l,!1);else{if(ee!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=ir(t),s!==null){for(e.flags|=128,Gu(l,!1),t=s.updateQueue,e.updateQueue=t,vr(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Gd(a,t),a=a.sibling;return W(ne,ne.current&1|2),At&&al(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&de()>Tr&&(e.flags|=128,i=!0,Gu(l,!1),e.lanes=4194304)}else{if(!i)if(t=ir(s),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,vr(e,t),Gu(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!At)return kt(e),null}else 2*de()-l.renderingStartTime>Tr&&a!==536870912&&(e.flags|=128,i=!0,Gu(l,!1),e.lanes=4194304);l.isBackwards?(s.sibling=e.child,e.child=s):(t=l.last,t!==null?t.sibling=s:e.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=de(),t.sibling=null,a=ne.current,W(ne,i?a&1|2:a&1),At&&al(e,l.treeForkCount),t):(kt(e),null);case 22:case 23:return na(e),Vc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(kt(e),e.subtreeFlags&6&&(e.flags|=8192)):kt(e),a=e.updateQueue,a!==null&&vr(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&G(Un),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),nl(ue),kt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function jv(t,e){switch(Dc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return nl(ue),$t(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Gt(e),null;case 31:if(e.memoizedState!==null){if(na(e),e.alternate===null)throw Error(c(340));Dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(na(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G(ne),null;case 4:return $t(),null;case 10:return nl(e.type),null;case 22:case 23:return na(e),Vc(),t!==null&&G(Un),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return nl(ue),null;case 25:return null;default:return null}}function ym(t,e){switch(Dc(e),e.tag){case 3:nl(ue),$t();break;case 26:case 27:case 5:Gt(e);break;case 4:$t();break;case 31:e.memoizedState!==null&&na(e);break;case 13:na(e);break;case 19:G(ne);break;case 10:nl(e.type);break;case 22:case 23:na(e),Vc(),t!==null&&G(Un);break;case 24:nl(ue)}}function Xu(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&t)===t){l=void 0;var s=a.create,o=a.inst;l=s(),o.destroy=l}a=a.next}while(a!==i)}}catch(h){Ht(e,e.return,h)}}function Xl(t,e,a){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&t)===t){var o=l.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,i=e;var S=a,M=h;try{M()}catch(L){Ht(i,S,L)}}}l=l.next}while(l!==s)}}catch(L){Ht(e,e.return,L)}}function pm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{uh(e,a)}catch(l){Ht(t,t.return,l)}}}function gm(t,e,a){a.props=qn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Ht(t,e,l)}}function Ku(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(i){Ht(t,e,i)}}function qa(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ht(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ht(t,e,i)}else a.current=null}function vm(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ht(t,t.return,i)}}function _o(t,e,a){try{var l=t.stateNode;l0(l,t.type,a,e),l[vt]=e}catch(i){Ht(t,t.return,i)}}function bm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&$l(t.type)||t.tag===4}function Ro(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||bm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&$l(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Oo(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=ta));else if(l!==4&&(l===27&&$l(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Oo(t,e,a),t=t.sibling;t!==null;)Oo(t,e,a),t=t.sibling}function br(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&$l(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(br(t,e,a),t=t.sibling;t!==null;)br(t,e,a),t=t.sibling}function Sm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Re(e,l,a),e[he]=t,e[vt]=a}catch(s){Ht(t,t.return,s)}}var cl=!1,ce=!1,No=!1,xm=typeof WeakSet=="function"?WeakSet:Set,be=null;function Lv(t,e){if(t=t.containerInfo,Fo=Qr,t=wd(t),Sc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break t}var o=0,h=-1,S=-1,M=0,L=0,Q=t,z=null;e:for(;;){for(var w;Q!==a||i!==0&&Q.nodeType!==3||(h=o+i),Q!==s||l!==0&&Q.nodeType!==3||(S=o+l),Q.nodeType===3&&(o+=Q.nodeValue.length),(w=Q.firstChild)!==null;)z=Q,Q=w;for(;;){if(Q===t)break e;if(z===a&&++M===i&&(h=o),z===s&&++L===l&&(S=o),(w=Q.nextSibling)!==null)break;Q=z,z=Q.parentNode}Q=w}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for($o={focusedElem:t,selectionRange:a},Qr=!1,be=e;be!==null;)if(e=be,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,be=t;else for(;be!==null;){switch(e=be,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)i=t[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,a=e,i=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var tt=qn(a.type,i);t=l.getSnapshotBeforeUpdate(tt,s),l.__reactInternalSnapshotBeforeUpdate=t}catch(rt){Ht(a,a.return,rt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Po(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Po(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,be=t;break}be=e.return}}function Em(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:fl(t,a),l&4&&Xu(5,a);break;case 1:if(fl(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Ht(a,a.return,o)}else{var i=qn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Ht(a,a.return,o)}}l&64&&pm(a),l&512&&Ku(a,a.return);break;case 3:if(fl(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{uh(t,e)}catch(o){Ht(a,a.return,o)}}break;case 27:e===null&&l&4&&Sm(a);case 26:case 5:fl(t,a),e===null&&l&4&&vm(a),l&512&&Ku(a,a.return);break;case 12:fl(t,a);break;case 31:fl(t,a),l&4&&_m(t,a);break;case 13:fl(t,a),l&4&&Rm(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Zv.bind(null,a),f0(t,a))));break;case 22:if(l=a.memoizedState!==null||cl,!l){e=e!==null&&e.memoizedState!==null||ce,i=cl;var s=ce;cl=l,(ce=e)&&!s?dl(t,a,(a.subtreeFlags&8772)!==0):fl(t,a),cl=i,ce=s}break;case 30:break;default:fl(t,a)}}function Tm(t){var e=t.alternate;e!==null&&(t.alternate=null,Tm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&vu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ft=null,Ze=!1;function ol(t,e,a){for(a=a.child;a!==null;)Am(t,e,a),a=a.sibling}function Am(t,e,a){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(Rl,a)}catch{}switch(a.tag){case 26:ce||qa(a,e),ol(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ce||qa(a,e);var l=Ft,i=Ze;$l(a.type)&&(Ft=a.stateNode,Ze=!1),ol(t,e,a),Pu(a.stateNode),Ft=l,Ze=i;break;case 5:ce||qa(a,e);case 6:if(l=Ft,i=Ze,Ft=null,ol(t,e,a),Ft=l,Ze=i,Ft!==null)if(Ze)try{(Ft.nodeType===9?Ft.body:Ft.nodeName==="HTML"?Ft.ownerDocument.body:Ft).removeChild(a.stateNode)}catch(s){Ht(a,e,s)}else try{Ft.removeChild(a.stateNode)}catch(s){Ht(a,e,s)}break;case 18:Ft!==null&&(Ze?(t=Ft,py(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ki(t)):py(Ft,a.stateNode));break;case 4:l=Ft,i=Ze,Ft=a.stateNode.containerInfo,Ze=!0,ol(t,e,a),Ft=l,Ze=i;break;case 0:case 11:case 14:case 15:Xl(2,a,e),ce||Xl(4,a,e),ol(t,e,a);break;case 1:ce||(qa(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&gm(a,e,l)),ol(t,e,a);break;case 21:ol(t,e,a);break;case 22:ce=(l=ce)||a.memoizedState!==null,ol(t,e,a),ce=l;break;default:ol(t,e,a)}}function _m(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ki(t)}catch(a){Ht(e,e.return,a)}}}function Rm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ki(t)}catch(a){Ht(e,e.return,a)}}function Hv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xm),e;default:throw Error(c(435,t.tag))}}function Sr(t,e){var a=Hv(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var i=Vv.bind(null,t,l);l.then(i,i)}})}function Ve(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],s=t,o=e,h=o;t:for(;h!==null;){switch(h.tag){case 27:if($l(h.type)){Ft=h.stateNode,Ze=!1;break t}break;case 5:Ft=h.stateNode,Ze=!1;break t;case 3:case 4:Ft=h.stateNode.containerInfo,Ze=!0;break t}h=h.return}if(Ft===null)throw Error(c(160));Am(s,o,i),Ft=null,Ze=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Om(e,t),e=e.sibling}var Ra=null;function Om(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ve(e,t),ke(t),l&4&&(Xl(3,t,t.return),Xu(3,t),Xl(5,t,t.return));break;case 1:Ve(e,t),ke(t),l&512&&(ce||a===null||qa(a,a.return)),l&64&&cl&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Ra;if(Ve(e,t),ke(t),l&512&&(ce||a===null||qa(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,i=i.ownerDocument||i;e:switch(l){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Ml]||s[he]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(l),i.head.insertBefore(s,i.querySelector("head > title"))),Re(s,l,a),s[he]=t,le(s),l=s;break t;case"link":var o=Oy("link","href",i).get(l+(a.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(h,1);break e}}s=i.createElement(l),Re(s,l,a),i.head.appendChild(s);break;case"meta":if(o=Oy("meta","content",i).get(l+(a.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(h,1);break e}}s=i.createElement(l),Re(s,l,a),i.head.appendChild(s);break;default:throw Error(c(468,l))}s[he]=t,le(s),l=s}t.stateNode=l}else Ny(i,t.type,t.stateNode);else t.stateNode=Ry(i,l,t.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?Ny(i,t.type,t.stateNode):Ry(i,l,t.memoizedProps)):l===null&&t.stateNode!==null&&_o(t,t.memoizedProps,a.memoizedProps)}break;case 27:Ve(e,t),ke(t),l&512&&(ce||a===null||qa(a,a.return)),a!==null&&l&4&&_o(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Ve(e,t),ke(t),l&512&&(ce||a===null||qa(a,a.return)),t.flags&32){i=t.stateNode;try{J(i,"")}catch(tt){Ht(t,t.return,tt)}}l&4&&t.stateNode!=null&&(i=t.memoizedProps,_o(t,i,a!==null?a.memoizedProps:i)),l&1024&&(No=!0);break;case 6:if(Ve(e,t),ke(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(tt){Ht(t,t.return,tt)}}break;case 3:if(Lr=null,i=Ra,Ra=Ur(e.containerInfo),Ve(e,t),Ra=i,ke(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ki(e.containerInfo)}catch(tt){Ht(t,t.return,tt)}No&&(No=!1,Nm(t));break;case 4:l=Ra,Ra=Ur(t.stateNode.containerInfo),Ve(e,t),ke(t),Ra=l;break;case 12:Ve(e,t),ke(t);break;case 31:Ve(e,t),ke(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Sr(t,l)));break;case 13:Ve(e,t),ke(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Er=de()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Sr(t,l)));break;case 22:i=t.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,M=cl,L=ce;if(cl=M||i,ce=L||S,Ve(e,t),ce=L,cl=M,ke(t),l&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(a===null||S||cl||ce||Qn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){S=a=e;try{if(s=S.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=S.stateNode;var Q=S.memoizedProps.style,z=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(tt){Ht(S,S.return,tt)}}}else if(e.tag===6){if(a===null){S=e;try{S.stateNode.nodeValue=i?"":S.memoizedProps}catch(tt){Ht(S,S.return,tt)}}}else if(e.tag===18){if(a===null){S=e;try{var w=S.stateNode;i?gy(w,!0):gy(S.stateNode,!1)}catch(tt){Ht(S,S.return,tt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Sr(t,a))));break;case 19:Ve(e,t),ke(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Sr(t,l)));break;case 30:break;case 21:break;default:Ve(e,t),ke(t)}}function ke(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(bm(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,s=Ro(t);br(t,s,i);break;case 5:var o=a.stateNode;a.flags&32&&(J(o,""),a.flags&=-33);var h=Ro(t);br(t,h,o);break;case 3:case 4:var S=a.stateNode.containerInfo,M=Ro(t);Oo(t,M,S);break;default:throw Error(c(161))}}catch(L){Ht(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Nm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Nm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Em(t,e.alternate,e),e=e.sibling}function Qn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Xl(4,e,e.return),Qn(e);break;case 1:qa(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&gm(e,e.return,a),Qn(e);break;case 27:Pu(e.stateNode);case 26:case 5:qa(e,e.return),Qn(e);break;case 22:e.memoizedState===null&&Qn(e);break;case 30:Qn(e);break;default:Qn(e)}t=t.sibling}}function dl(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,i=t,s=e,o=s.flags;switch(s.tag){case 0:case 11:case 15:dl(i,s,a),Xu(4,s);break;case 1:if(dl(i,s,a),l=s,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Ht(l,l.return,M)}if(l=s,i=l.updateQueue,i!==null){var h=l.stateNode;try{var S=i.shared.hiddenCallbacks;if(S!==null)for(i.shared.hiddenCallbacks=null,i=0;i<S.length;i++)ih(S[i],h)}catch(M){Ht(l,l.return,M)}}a&&o&64&&pm(s),Ku(s,s.return);break;case 27:Sm(s);case 26:case 5:dl(i,s,a),a&&l===null&&o&4&&vm(s),Ku(s,s.return);break;case 12:dl(i,s,a);break;case 31:dl(i,s,a),a&&o&4&&_m(i,s);break;case 13:dl(i,s,a),a&&o&4&&Rm(i,s);break;case 22:s.memoizedState===null&&dl(i,s,a),Ku(s,s.return);break;case 30:break;default:dl(i,s,a)}e=e.sibling}}function Co(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Mu(a))}function Mo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Mu(t))}function Oa(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(t,e,a,l),e=e.sibling}function Cm(t,e,a,l){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Oa(t,e,a,l),i&2048&&Xu(9,e);break;case 1:Oa(t,e,a,l);break;case 3:Oa(t,e,a,l),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Mu(t)));break;case 12:if(i&2048){Oa(t,e,a,l),t=e.stateNode;try{var s=e.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Ht(e,e.return,S)}}else Oa(t,e,a,l);break;case 31:Oa(t,e,a,l);break;case 13:Oa(t,e,a,l);break;case 23:break;case 22:s=e.stateNode,o=e.alternate,e.memoizedState!==null?s._visibility&2?Oa(t,e,a,l):Zu(t,e):s._visibility&2?Oa(t,e,a,l):(s._visibility|=2,wi(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Co(o,e);break;case 24:Oa(t,e,a,l),i&2048&&Mo(e.alternate,e);break;default:Oa(t,e,a,l)}}function wi(t,e,a,l,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,o=e,h=a,S=l,M=o.flags;switch(o.tag){case 0:case 11:case 15:wi(s,o,h,S,i),Xu(8,o);break;case 23:break;case 22:var L=o.stateNode;o.memoizedState!==null?L._visibility&2?wi(s,o,h,S,i):Zu(s,o):(L._visibility|=2,wi(s,o,h,S,i)),i&&M&2048&&Co(o.alternate,o);break;case 24:wi(s,o,h,S,i),i&&M&2048&&Mo(o.alternate,o);break;default:wi(s,o,h,S,i)}e=e.sibling}}function Zu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,i=l.flags;switch(l.tag){case 22:Zu(a,l),i&2048&&Co(l.alternate,l);break;case 24:Zu(a,l),i&2048&&Mo(l.alternate,l);break;default:Zu(a,l)}e=e.sibling}}var Vu=8192;function Ui(t,e,a){if(t.subtreeFlags&Vu)for(t=t.child;t!==null;)Mm(t,e,a),t=t.sibling}function Mm(t,e,a){switch(t.tag){case 26:Ui(t,e,a),t.flags&Vu&&t.memoizedState!==null&&T0(a,Ra,t.memoizedState,t.memoizedProps);break;case 5:Ui(t,e,a);break;case 3:case 4:var l=Ra;Ra=Ur(t.stateNode.containerInfo),Ui(t,e,a),Ra=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Vu,Vu=16777216,Ui(t,e,a),Vu=l):Ui(t,e,a));break;default:Ui(t,e,a)}}function Dm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ku(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];be=l,wm(l,t)}Dm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(t),t=t.sibling}function zm(t){switch(t.tag){case 0:case 11:case 15:ku(t),t.flags&2048&&Xl(9,t,t.return);break;case 3:ku(t);break;case 12:ku(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,xr(t)):ku(t);break;default:ku(t)}}function xr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];be=l,wm(l,t)}Dm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Xl(8,e,e.return),xr(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,xr(e));break;default:xr(e)}t=t.sibling}}function wm(t,e){for(;be!==null;){var a=be;switch(a.tag){case 0:case 11:case 15:Xl(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Mu(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,be=l;else t:for(a=t;be!==null;){l=be;var i=l.sibling,s=l.return;if(Tm(l),l===a){be=null;break t}if(i!==null){i.return=s,be=i;break t}be=s}}}var Bv={getCacheForType:function(t){var e=Ae(ue),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return Ae(ue).controller.signal}},qv=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Xt=null,bt=null,Et=0,Lt=0,ia=null,Kl=!1,ji=!1,Do=!1,hl=0,ee=0,Zl=0,Yn=0,zo=0,ua=0,Li=0,Ju=null,Je=null,wo=!1,Er=0,Um=0,Tr=1/0,Ar=null,Vl=null,pe=0,kl=null,Hi=null,ml=0,Uo=0,jo=null,jm=null,Fu=0,Lo=null;function sa(){return(Dt&2)!==0&&Et!==0?Et&-Et:j.T!==null?Go():zs()}function Lm(){if(ua===0)if((Et&536870912)===0||At){var t=gn;gn<<=1,(gn&3932160)===0&&(gn=262144),ua=t}else ua=536870912;return t=la.current,t!==null&&(t.flags|=32),ua}function Fe(t,e,a){(t===Xt&&(Lt===2||Lt===9)||t.cancelPendingCommit!==null)&&(Bi(t,0),Jl(t,Et,ua,!1)),Wa(t,a),((Dt&2)===0||t!==Xt)&&(t===Xt&&((Dt&2)===0&&(Yn|=a),ee===4&&Jl(t,Et,ua,!1)),Qa(t))}function Hm(t,e,a){if((Dt&6)!==0)throw Error(c(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||za(t,e),i=l?Gv(t,e):Bo(t,e,!0),s=l;do{if(i===0){ji&&!l&&Jl(t,e,0,!1);break}else{if(a=t.current.alternate,s&&!Qv(a)){i=Bo(t,e,!1),s=!1;continue}if(i===2){if(s=e,t.errorRecoveryDisabledLanes&s)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var h=t;i=Ju;var S=h.current.memoizedState.isDehydrated;if(S&&(Bi(h,o).flags|=256),o=Bo(h,o,!1),o!==2){if(Do&&!S){h.errorRecoveryDisabledLanes|=s,Yn|=s,i=4;break t}s=Je,Je=i,s!==null&&(Je===null?Je=s:Je.push.apply(Je,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){Bi(t,0),Jl(t,e,0,!0);break}t:{switch(l=t,s=i,s){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Jl(l,e,ua,!Kl);break t;case 2:Je=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(i=Er+300-de(),10<i)){if(Jl(l,e,ua,!Kl),bn(l,0,!0)!==0)break t;ml=e,l.timeoutHandle=my(Bm.bind(null,l,a,Je,Ar,wo,e,ua,Yn,Li,Kl,s,"Throttled",-0,0),i);break t}Bm(l,a,Je,Ar,wo,e,ua,Yn,Li,Kl,s,null,-0,0)}}break}while(!0);Qa(t)}function Bm(t,e,a,l,i,s,o,h,S,M,L,Q,z,w){if(t.timeoutHandle=-1,Q=e.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ta},Mm(e,s,Q);var tt=(s&62914560)===s?Er-de():(s&4194048)===s?Um-de():0;if(tt=A0(Q,tt),tt!==null){ml=s,t.cancelPendingCommit=tt(Vm.bind(null,t,e,s,a,l,i,o,h,S,L,Q,null,z,w)),Jl(t,s,o,!M);return}}Vm(t,e,s,a,l,i,o,h,S)}function Qv(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],s=i.getSnapshot;i=i.value;try{if(!ea(s(),i))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Jl(t,e,a,l){e&=~zo,e&=~Yn,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var i=e;0<i;){var s=31-Ee(i),o=1<<s;l[s]=-1,i&=~o}a!==0&&Ds(t,a,e)}function _r(){return(Dt&6)===0?($u(0),!1):!0}function Ho(){if(bt!==null){if(Lt===0)var t=bt.return;else t=bt,ll=zn=null,Ic(t),Ni=null,zu=0,t=bt;for(;t!==null;)ym(t.alternate,t),t=t.return;bt=null}}function Bi(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,u0(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),ml=0,Ho(),Xt=t,bt=a=el(t.current,null),Et=e,Lt=0,ia=null,Kl=!1,ji=za(t,e),Do=!1,Li=ua=zo=Yn=Zl=ee=0,Je=Ju=null,wo=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var i=31-Ee(l),s=1<<i;e|=t[i],l&=~s}return hl=e,Vs(),a}function qm(t,e){ht=null,j.H=Qu,e===Oi||e===tr?(e=eh(),Lt=3):e===Qc?(e=eh(),Lt=4):Lt=e===yo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ia=e,bt===null&&(ee=1,mr(t,da(e,t.current)))}function Qm(){var t=la.current;return t===null?!0:(Et&4194048)===Et?pa===null:(Et&62914560)===Et||(Et&536870912)!==0?t===pa:!1}function Ym(){var t=j.H;return j.H=Qu,t===null?Qu:t}function Gm(){var t=j.A;return j.A=Bv,t}function Rr(){ee=4,Kl||(Et&4194048)!==Et&&la.current!==null||(ji=!0),(Zl&134217727)===0&&(Yn&134217727)===0||Xt===null||Jl(Xt,Et,ua,!1)}function Bo(t,e,a){var l=Dt;Dt|=2;var i=Ym(),s=Gm();(Xt!==t||Et!==e)&&(Ar=null,Bi(t,e)),e=!1;var o=ee;t:do try{if(Lt!==0&&bt!==null){var h=bt,S=ia;switch(Lt){case 8:Ho(),o=6;break t;case 3:case 2:case 9:case 6:la.current===null&&(e=!0);var M=Lt;if(Lt=0,ia=null,qi(t,h,S,M),a&&ji){o=0;break t}break;default:M=Lt,Lt=0,ia=null,qi(t,h,S,M)}}Yv(),o=ee;break}catch(L){qm(t,L)}while(!0);return e&&t.shellSuspendCounter++,ll=zn=null,Dt=l,j.H=i,j.A=s,bt===null&&(Xt=null,Et=0,Vs()),o}function Yv(){for(;bt!==null;)Xm(bt)}function Gv(t,e){var a=Dt;Dt|=2;var l=Ym(),i=Gm();Xt!==t||Et!==e?(Ar=null,Tr=de()+500,Bi(t,e)):ji=za(t,e);t:do try{if(Lt!==0&&bt!==null){e=bt;var s=ia;e:switch(Lt){case 1:Lt=0,ia=null,qi(t,e,s,1);break;case 2:case 9:if(Pd(s)){Lt=0,ia=null,Km(e);break}e=function(){Lt!==2&&Lt!==9||Xt!==t||(Lt=7),Qa(t)},s.then(e,e);break t;case 3:Lt=7;break t;case 4:Lt=5;break t;case 7:Pd(s)?(Lt=0,ia=null,Km(e)):(Lt=0,ia=null,qi(t,e,s,7));break;case 5:var o=null;switch(bt.tag){case 26:o=bt.memoizedState;case 5:case 27:var h=bt;if(o?Cy(o):h.stateNode.complete){Lt=0,ia=null;var S=h.sibling;if(S!==null)bt=S;else{var M=h.return;M!==null?(bt=M,Or(M)):bt=null}break e}}Lt=0,ia=null,qi(t,e,s,5);break;case 6:Lt=0,ia=null,qi(t,e,s,6);break;case 8:Ho(),ee=6;break t;default:throw Error(c(462))}}Xv();break}catch(L){qm(t,L)}while(!0);return ll=zn=null,j.H=l,j.A=i,Dt=a,bt!==null?0:(Xt=null,Et=0,Vs(),ee)}function Xv(){for(;bt!==null&&!Ms();)Xm(bt)}function Xm(t){var e=hm(t.alternate,t,hl);t.memoizedProps=t.pendingProps,e===null?Or(t):bt=e}function Km(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=sm(a,e,e.pendingProps,e.type,void 0,Et);break;case 11:e=sm(a,e,e.pendingProps,e.type.render,e.ref,Et);break;case 5:Ic(e);default:ym(a,e),e=bt=Gd(e,hl),e=hm(a,e,hl)}t.memoizedProps=t.pendingProps,e===null?Or(t):bt=e}function qi(t,e,a,l){ll=zn=null,Ic(e),Ni=null,zu=0;var i=e.return;try{if(Dv(t,i,e,a,Et)){ee=1,mr(t,da(a,t.current)),bt=null;return}}catch(s){if(i!==null)throw bt=i,s;ee=1,mr(t,da(a,t.current)),bt=null;return}e.flags&32768?(At||l===1?t=!0:ji||(Et&536870912)!==0?t=!1:(Kl=t=!0,(l===2||l===9||l===3||l===6)&&(l=la.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zm(e,t)):Or(e)}function Or(t){var e=t;do{if((e.flags&32768)!==0){Zm(e,Kl);return}t=e.return;var a=Uv(e.alternate,e,hl);if(a!==null){bt=a;return}if(e=e.sibling,e!==null){bt=e;return}bt=e=t}while(e!==null);ee===0&&(ee=5)}function Zm(t,e){do{var a=jv(t.alternate,t);if(a!==null){a.flags&=32767,bt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){bt=t;return}bt=t=a}while(t!==null);ee=6,bt=null}function Vm(t,e,a,l,i,s,o,h,S){t.cancelPendingCommit=null;do Nr();while(pe!==0);if((Dt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(s=e.lanes|e.childLanes,s|=_c,hu(t,a,s,o,h,S),t===Xt&&(bt=Xt=null,Et=0),Hi=e,kl=t,ml=a,Uo=s,jo=i,jm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,kv(_l,function(){return Wm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,i=$.p,$.p=2,o=Dt,Dt|=4;try{Lv(t,e,a)}finally{Dt=o,$.p=i,j.T=l}}pe=1,km(),Jm(),Fm()}}function km(){if(pe===1){pe=0;var t=kl,e=Hi,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var l=$.p;$.p=2;var i=Dt;Dt|=4;try{Om(e,t);var s=$o,o=wd(t.containerInfo),h=s.focusedElem,S=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&zd(h.ownerDocument.documentElement,h)){if(S!==null&&Sc(h)){var M=S.start,L=S.end;if(L===void 0&&(L=M),"selectionStart"in h)h.selectionStart=M,h.selectionEnd=Math.min(L,h.value.length);else{var Q=h.ownerDocument||document,z=Q&&Q.defaultView||window;if(z.getSelection){var w=z.getSelection(),tt=h.textContent.length,rt=Math.min(S.start,tt),Yt=S.end===void 0?rt:Math.min(S.end,tt);!w.extend&&rt>Yt&&(o=Yt,Yt=rt,rt=o);var O=Dd(h,rt),A=Dd(h,Yt);if(O&&A&&(w.rangeCount!==1||w.anchorNode!==O.node||w.anchorOffset!==O.offset||w.focusNode!==A.node||w.focusOffset!==A.offset)){var C=Q.createRange();C.setStart(O.node,O.offset),w.removeAllRanges(),rt>Yt?(w.addRange(C),w.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),w.addRange(C))}}}}for(Q=[],w=h;w=w.parentNode;)w.nodeType===1&&Q.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Q.length;h++){var B=Q[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Qr=!!Fo,$o=Fo=null}finally{Dt=i,$.p=l,j.T=a}}t.current=e,pe=2}}function Jm(){if(pe===2){pe=0;var t=kl,e=Hi,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var l=$.p;$.p=2;var i=Dt;Dt|=4;try{Em(t,e.alternate,e)}finally{Dt=i,$.p=l,j.T=a}}pe=3}}function Fm(){if(pe===4||pe===3){pe=0,Da();var t=kl,e=Hi,a=ml,l=jm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?pe=5:(pe=0,Hi=kl=null,$m(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Vl=null),Sn(a),e=e.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=j.T,i=$.p,$.p=2,j.T=null;try{for(var s=t.onRecoverableError,o=0;o<l.length;o++){var h=l[o];s(h.value,{componentStack:h.stack})}}finally{j.T=e,$.p=i}}(ml&3)!==0&&Nr(),Qa(t),i=t.pendingLanes,(a&261930)!==0&&(i&42)!==0?t===Lo?Fu++:(Fu=0,Lo=t):Fu=0,$u(0)}}function $m(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Mu(e)))}function Nr(){return km(),Jm(),Fm(),Wm()}function Wm(){if(pe!==5)return!1;var t=kl,e=Uo;Uo=0;var a=Sn(ml),l=j.T,i=$.p;try{$.p=32>a?32:a,j.T=null,a=jo,jo=null;var s=kl,o=ml;if(pe=0,Hi=kl=null,ml=0,(Dt&6)!==0)throw Error(c(331));var h=Dt;if(Dt|=4,zm(s.current),Cm(s,s.current,o,a),Dt=h,$u(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(Rl,s)}catch{}return!0}finally{$.p=i,j.T=l,$m(t,e)}}function Im(t,e,a){e=da(a,e),e=mo(t.stateNode,e,2),t=Ql(t,e,2),t!==null&&(Wa(t,2),Qa(t))}function Ht(t,e,a){if(t.tag===3)Im(t,t,a);else for(;e!==null;){if(e.tag===3){Im(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Vl===null||!Vl.has(l))){t=da(a,t),a=Ph(2),l=Ql(e,a,2),l!==null&&(tm(a,l,e,t),Wa(l,2),Qa(l));break}}e=e.return}}function qo(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new qv;var i=new Set;l.set(e,i)}else i=l.get(e),i===void 0&&(i=new Set,l.set(e,i));i.has(a)||(Do=!0,i.add(a),t=Kv.bind(null,t,e,a),e.then(t,t))}function Kv(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Xt===t&&(Et&a)===a&&(ee===4||ee===3&&(Et&62914560)===Et&&300>de()-Er?(Dt&2)===0&&Bi(t,0):zo|=a,Li===Et&&(Li=0)),Qa(t)}function Pm(t,e){e===0&&(e=Ie()),t=Cn(t,e),t!==null&&(Wa(t,e),Qa(t))}function Zv(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Pm(t,a)}function Vv(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,i=t.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),Pm(t,a)}function kv(t,e){return pn(t,e)}var Cr=null,Qi=null,Qo=!1,Mr=!1,Yo=!1,Fl=0;function Qa(t){t!==Qi&&t.next===null&&(Qi===null?Cr=Qi=t:Qi=Qi.next=t),Mr=!0,Qo||(Qo=!0,Fv())}function $u(t,e){if(!Yo&&Mr){Yo=!0;do for(var a=!1,l=Cr;l!==null;){if(t!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var o=l.suspendedLanes,h=l.pingedLanes;s=(1<<31-Ee(42|t)+1)-1,s&=i&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,ly(l,s))}else s=Et,s=bn(l,l===Xt?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||za(l,s)||(a=!0,ly(l,s));l=l.next}while(a);Yo=!1}}function Jv(){ty()}function ty(){Mr=Qo=!1;var t=0;Fl!==0&&i0()&&(t=Fl);for(var e=de(),a=null,l=Cr;l!==null;){var i=l.next,s=ey(l,e);s===0?(l.next=null,a===null?Cr=i:a.next=i,i===null&&(Qi=a)):(a=l,(t!==0||(s&3)!==0)&&(Mr=!0)),l=i}pe!==0&&pe!==5||$u(t),Fl!==0&&(Fl=0)}function ey(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var o=31-Ee(s),h=1<<o,S=i[o];S===-1?((h&a)===0||(h&l)!==0)&&(i[o]=si(h,e)):S<=e&&(t.expiredLanes|=h),s&=~h}if(e=Xt,a=Et,a=bn(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Lt===2||Lt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ai(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||za(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&ai(l),Sn(a)){case 2:case 8:a=ni;break;case 32:a=_l;break;case 268435456:a=$a;break;default:a=_l}return l=ay.bind(null,t),a=pn(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&ai(l),t.callbackPriority=2,t.callbackNode=null,2}function ay(t,e){if(pe!==0&&pe!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Nr()&&t.callbackNode!==a)return null;var l=Et;return l=bn(t,t===Xt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Hm(t,l,e),ey(t,de()),t.callbackNode!=null&&t.callbackNode===a?ay.bind(null,t):null)}function ly(t,e){if(Nr())return null;Hm(t,e,!0)}function Fv(){s0(function(){(Dt&6)!==0?pn(li,Jv):ty()})}function Go(){if(Fl===0){var t=_i;t===0&&(t=Nl,Nl<<=1,(Nl&261888)===0&&(Nl=256)),Fl=t}return Fl}function ny(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:De(""+t)}function iy(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function $v(t,e,a,l,i){if(e==="submit"&&a&&a.stateNode===i){var s=ny((i[vt]||null).action),o=l.submitter;o&&(e=(e=o[vt]||null)?ny(e.formAction):o.getAttribute("formAction"),e!==null&&(s=e,o=null));var h=new Gs("action","action",null,l,i);t.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fl!==0){var S=o?iy(i,o):new FormData(i);so(a,{pending:!0,data:S,method:i.method,action:s},null,S)}}else typeof s=="function"&&(h.preventDefault(),S=o?iy(i,o):new FormData(i),so(a,{pending:!0,data:S,method:i.method,action:s},s,S))},currentTarget:i}]})}}for(var Xo=0;Xo<Ac.length;Xo++){var Ko=Ac[Xo],Wv=Ko.toLowerCase(),Iv=Ko[0].toUpperCase()+Ko.slice(1);_a(Wv,"on"+Iv)}_a(Ld,"onAnimationEnd"),_a(Hd,"onAnimationIteration"),_a(Bd,"onAnimationStart"),_a("dblclick","onDoubleClick"),_a("focusin","onFocus"),_a("focusout","onBlur"),_a(mv,"onTransitionRun"),_a(yv,"onTransitionStart"),_a(pv,"onTransitionCancel"),_a(qd,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wu="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(" "),Pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wu));function uy(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],i=l.event;l=l.listeners;t:{var s=void 0;if(e)for(var o=l.length-1;0<=o;o--){var h=l[o],S=h.instance,M=h.currentTarget;if(h=h.listener,S!==s&&i.isPropagationStopped())break t;s=h,i.currentTarget=M;try{s(i)}catch(L){Zs(L)}i.currentTarget=null,s=S}else for(o=0;o<l.length;o++){if(h=l[o],S=h.instance,M=h.currentTarget,h=h.listener,S!==s&&i.isPropagationStopped())break t;s=h,i.currentTarget=M;try{s(i)}catch(L){Zs(L)}i.currentTarget=null,s=S}}}}function St(t,e){var a=e[yu];a===void 0&&(a=e[yu]=new Set);var l=t+"__bubble";a.has(l)||(sy(e,t,2,!1),a.add(l))}function Zo(t,e,a){var l=0;e&&(l|=4),sy(a,t,l,e)}var Dr="_reactListening"+Math.random().toString(36).slice(2);function Vo(t){if(!t[Dr]){t[Dr]=!0,ja.forEach(function(a){a!=="selectionchange"&&(Pv.has(a)||Zo(a,!1,t),Zo(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Dr]||(e[Dr]=!0,Zo("selectionchange",!1,e))}}function sy(t,e,a,l){switch(Ly(e)){case 2:var i=O0;break;case 8:i=N0;break;default:i=rf}a=i.bind(null,e,a,t),i=void 0,!fc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),l?i!==void 0?t.addEventListener(e,a,{capture:!0,passive:i}):t.addEventListener(e,a,!0):i!==void 0?t.addEventListener(e,a,{passive:i}):t.addEventListener(e,a,!1)}function ko(t,e,a,l,i){var s=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var h=l.stateNode.containerInfo;if(h===i)break;if(o===4)for(o=l.return;o!==null;){var S=o.tag;if((S===3||S===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;h!==null;){if(o=Dl(h),o===null)return;if(S=o.tag,S===5||S===6||S===26||S===27){l=s=o;continue t}h=h.parentNode}}l=l.return}dd(function(){var M=s,L=cc(a),Q=[];t:{var z=Qd.get(t);if(z!==void 0){var w=Gs,tt=t;switch(t){case"keypress":if(Qs(a)===0)break t;case"keydown":case"keyup":w=Vg;break;case"focusin":tt="focus",w=yc;break;case"focusout":tt="blur",w=yc;break;case"beforeblur":case"afterblur":w=yc;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Ug;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Fg;break;case Ld:case Hd:case Bd:w=Hg;break;case qd:w=Wg;break;case"scroll":case"scrollend":w=zg;break;case"wheel":w=Pg;break;case"copy":case"cut":case"paste":w=qg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=gd;break;case"toggle":case"beforetoggle":w=ev}var rt=(e&4)!==0,Yt=!rt&&(t==="scroll"||t==="scrollend"),O=rt?z!==null?z+"Capture":null:z;rt=[];for(var A=M,C;A!==null;){var B=A;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||O===null||(B=bu(A,O),B!=null&&rt.push(Iu(A,B,C))),Yt)break;A=A.return}0<rt.length&&(z=new w(z,tt,null,a,L),Q.push({event:z,listeners:rt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",w=t==="mouseout"||t==="pointerout",z&&a!==ye&&(tt=a.relatedTarget||a.fromElement)&&(Dl(tt)||tt[Pe]))break t;if((w||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,w?(tt=a.relatedTarget||a.toElement,w=M,tt=tt?Dl(tt):null,tt!==null&&(Yt=d(tt),rt=tt.tag,tt!==Yt||rt!==5&&rt!==27&&rt!==6)&&(tt=null)):(w=null,tt=M),w!==tt)){if(rt=yd,B="onMouseLeave",O="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(rt=gd,B="onPointerLeave",O="onPointerEnter",A="pointer"),Yt=w==null?z:xn(w),C=tt==null?z:xn(tt),z=new rt(B,A+"leave",w,a,L),z.target=Yt,z.relatedTarget=C,B=null,Dl(L)===M&&(rt=new rt(O,A+"enter",tt,a,L),rt.target=C,rt.relatedTarget=Yt,B=rt),Yt=B,w&&tt)e:{for(rt=t0,O=w,A=tt,C=0,B=O;B;B=rt(B))C++;B=0;for(var ut=A;ut;ut=rt(ut))B++;for(;0<C-B;)O=rt(O),C--;for(;0<B-C;)A=rt(A),B--;for(;C--;){if(O===A||A!==null&&O===A.alternate){rt=O;break e}O=rt(O),A=rt(A)}rt=null}else rt=null;w!==null&&ry(Q,z,w,rt,!1),tt!==null&&Yt!==null&&ry(Q,Yt,tt,rt,!0)}}t:{if(z=M?xn(M):window,w=z.nodeName&&z.nodeName.toLowerCase(),w==="select"||w==="input"&&z.type==="file")var Ct=_d;else if(Td(z))if(Rd)Ct=fv;else{Ct=cv;var nt=rv}else w=z.nodeName,!w||w.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&It(M.elementType)&&(Ct=_d):Ct=ov;if(Ct&&(Ct=Ct(t,M))){Ad(Q,Ct,a,L);break t}nt&&nt(t,z,M),t==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&_n(z,"number",z.value)}switch(nt=M?xn(M):window,t){case"focusin":(Td(nt)||nt.contentEditable==="true")&&(gi=nt,xc=M,Ou=null);break;case"focusout":Ou=xc=gi=null;break;case"mousedown":Ec=!0;break;case"contextmenu":case"mouseup":case"dragend":Ec=!1,Ud(Q,a,L);break;case"selectionchange":if(hv)break;case"keydown":case"keyup":Ud(Q,a,L)}var mt;if(gc)t:{switch(t){case"compositionstart":var Tt="onCompositionStart";break t;case"compositionend":Tt="onCompositionEnd";break t;case"compositionupdate":Tt="onCompositionUpdate";break t}Tt=void 0}else pi?xd(t,a)&&(Tt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Tt="onCompositionStart");Tt&&(vd&&a.locale!=="ko"&&(pi||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&pi&&(mt=hd()):(wl=L,dc="value"in wl?wl.value:wl.textContent,pi=!0)),nt=zr(M,Tt),0<nt.length&&(Tt=new pd(Tt,t,null,a,L),Q.push({event:Tt,listeners:nt}),mt?Tt.data=mt:(mt=Ed(a),mt!==null&&(Tt.data=mt)))),(mt=lv?nv(t,a):iv(t,a))&&(Tt=zr(M,"onBeforeInput"),0<Tt.length&&(nt=new pd("onBeforeInput","beforeinput",null,a,L),Q.push({event:nt,listeners:Tt}),nt.data=mt)),$v(Q,t,M,a,L)}uy(Q,e)})}function Iu(t,e,a){return{instance:t,listener:e,currentTarget:a}}function zr(t,e){for(var a=e+"Capture",l=[];t!==null;){var i=t,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=bu(t,a),i!=null&&l.unshift(Iu(t,i,s)),i=bu(t,e),i!=null&&l.push(Iu(t,i,s))),t.tag===3)return l;t=t.return}return[]}function t0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ry(t,e,a,l,i){for(var s=e._reactName,o=[];a!==null&&a!==l;){var h=a,S=h.alternate,M=h.stateNode;if(h=h.tag,S!==null&&S===l)break;h!==5&&h!==26&&h!==27||M===null||(S=M,i?(M=bu(a,s),M!=null&&o.unshift(Iu(a,M,S))):i||(M=bu(a,s),M!=null&&o.push(Iu(a,M,S)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var e0=/\r\n?/g,a0=/\u0000|\uFFFD/g;function cy(t){return(typeof t=="string"?t:""+t).replace(e0,`
49
+ `).replace(a0,"")}function oy(t,e){return e=cy(e),cy(t)===e}function Qt(t,e,a,l,i,s){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||J(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&J(t,""+l);break;case"className":La(t,"class",l);break;case"tabIndex":La(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":La(t,a,l);break;case"style":xt(t,l,s);break;case"data":if(e!=="object"){La(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=De(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(e!=="input"&&Qt(t,e,"name",i.name,i,null),Qt(t,e,"formEncType",i.formEncType,i,null),Qt(t,e,"formMethod",i.formMethod,i,null),Qt(t,e,"formTarget",i.formTarget,i,null)):(Qt(t,e,"encType",i.encType,i,null),Qt(t,e,"method",i.method,i,null),Qt(t,e,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=De(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=ta);break;case"onScroll":l!=null&&St("scroll",t);break;case"onScrollEnd":l!=null&&St("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=De(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":St("beforetoggle",t),St("toggle",t),Aa(t,"popover",l);break;case"xlinkActuate":me(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":me(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":me(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":me(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":me(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":me(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":me(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":me(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":me(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Aa(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Pt.get(a)||a,Aa(t,a,l))}}function Jo(t,e,a,l,i,s){switch(a){case"style":xt(t,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"children":typeof l=="string"?J(t,l):(typeof l=="number"||typeof l=="bigint")&&J(t,""+l);break;case"onScroll":l!=null&&St("scroll",t);break;case"onScrollEnd":l!=null&&St("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ta);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Us.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),e=a.slice(2,i?a.length-7:void 0),s=t[vt]||null,s=s!=null?s[a]:null,typeof s=="function"&&t.removeEventListener(e,s,i),typeof l=="function")){typeof s!="function"&&s!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,i);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Aa(t,a,l)}}}function Re(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",t),St("load",t);var l=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Qt(t,e,s,o,a,null)}}i&&Qt(t,e,"srcSet",a.srcSet,a,null),l&&Qt(t,e,"src",a.src,a,null);return;case"input":St("invalid",t);var h=s=o=i=null,S=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var L=a[l];if(L!=null)switch(l){case"name":i=L;break;case"type":o=L;break;case"checked":S=L;break;case"defaultChecked":M=L;break;case"value":s=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(c(137,e));break;default:Qt(t,e,l,L,a,null)}}An(t,s,h,S,M,o,i,!1);return;case"select":St("invalid",t),l=o=s=null;for(i in a)if(a.hasOwnProperty(i)&&(h=a[i],h!=null))switch(i){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":l=h;default:Qt(t,e,i,h,a,null)}e=s,a=o,t.multiple=!!l,e!=null?F(t,!!l,e,!1):a!=null&&F(t,!!l,a,!0);return;case"textarea":St("invalid",t),s=i=l=null;for(o in a)if(a.hasOwnProperty(o)&&(h=a[o],h!=null))switch(o){case"value":l=h;break;case"defaultValue":i=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Qt(t,e,o,h,a,null)}D(t,l,i,s);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Qt(t,e,S,l,a,null)}return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(l=0;l<Wu.length;l++)St(Wu[l],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Qt(t,e,M,l,a,null)}return;default:if(It(e)){for(L in a)a.hasOwnProperty(L)&&(l=a[L],l!==void 0&&Jo(t,e,L,l,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(l=a[h],l!=null&&Qt(t,e,h,l,a,null))}function l0(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,h=null,S=null,M=null,L=null;for(w in a){var Q=a[w];if(a.hasOwnProperty(w)&&Q!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":S=Q;default:l.hasOwnProperty(w)||Qt(t,e,w,null,l,Q)}}for(var z in l){var w=l[z];if(Q=a[z],l.hasOwnProperty(z)&&(w!=null||Q!=null))switch(z){case"type":s=w;break;case"name":i=w;break;case"checked":M=w;break;case"defaultChecked":L=w;break;case"value":o=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:w!==Q&&Qt(t,e,z,w,l,Q)}}hi(t,o,h,S,M,L,s,i);return;case"select":w=o=h=z=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":w=S;default:l.hasOwnProperty(s)||Qt(t,e,s,null,l,S)}for(i in l)if(s=l[i],S=a[i],l.hasOwnProperty(i)&&(s!=null||S!=null))switch(i){case"value":z=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==S&&Qt(t,e,i,s,l,S)}e=h,a=o,l=w,z!=null?F(t,!!a,z,!1):!!l!=!!a&&(e!=null?F(t,!!a,e,!0):F(t,!!a,a?[]:"",!1));return;case"textarea":w=z=null;for(h in a)if(i=a[h],a.hasOwnProperty(h)&&i!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Qt(t,e,h,null,l,i)}for(o in l)if(i=l[o],s=a[o],l.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":z=i;break;case"defaultValue":w=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==s&&Qt(t,e,o,i,l,s)}y(t,z,w);return;case"option":for(var tt in a)if(z=a[tt],a.hasOwnProperty(tt)&&z!=null&&!l.hasOwnProperty(tt))switch(tt){case"selected":t.selected=!1;break;default:Qt(t,e,tt,null,l,z)}for(S in l)if(z=l[S],w=a[S],l.hasOwnProperty(S)&&z!==w&&(z!=null||w!=null))switch(S){case"selected":t.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Qt(t,e,S,z,l,w)}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 rt in a)z=a[rt],a.hasOwnProperty(rt)&&z!=null&&!l.hasOwnProperty(rt)&&Qt(t,e,rt,null,l,z);for(M in l)if(z=l[M],w=a[M],l.hasOwnProperty(M)&&z!==w&&(z!=null||w!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,e));break;default:Qt(t,e,M,z,l,w)}return;default:if(It(e)){for(var Yt in a)z=a[Yt],a.hasOwnProperty(Yt)&&z!==void 0&&!l.hasOwnProperty(Yt)&&Jo(t,e,Yt,void 0,l,z);for(L in l)z=l[L],w=a[L],!l.hasOwnProperty(L)||z===w||z===void 0&&w===void 0||Jo(t,e,L,z,l,w);return}}for(var O in a)z=a[O],a.hasOwnProperty(O)&&z!=null&&!l.hasOwnProperty(O)&&Qt(t,e,O,null,l,z);for(Q in l)z=l[Q],w=a[Q],!l.hasOwnProperty(Q)||z===w||z==null&&w==null||Qt(t,e,Q,z,l,w)}function fy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function n0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],s=i.transferSize,o=i.initiatorType,h=i.duration;if(s&&h&&fy(o)){for(o=0,h=i.responseEnd,l+=1;l<a.length;l++){var S=a[l],M=S.startTime;if(M>h)break;var L=S.transferSize,Q=S.initiatorType;L&&fy(Q)&&(S=S.responseEnd,o+=L*(S<h?1:(h-M)/(S-M)))}if(--l,e+=8*(s+o)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Fo=null,$o=null;function wr(t){return t.nodeType===9?t:t.ownerDocument}function dy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hy(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Wo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Io=null;function i0(){var t=window.event;return t&&t.type==="popstate"?t===Io?!1:(Io=t,!0):(Io=null,!1)}var my=typeof setTimeout=="function"?setTimeout:void 0,u0=typeof clearTimeout=="function"?clearTimeout:void 0,yy=typeof Promise=="function"?Promise:void 0,s0=typeof queueMicrotask=="function"?queueMicrotask:typeof yy<"u"?function(t){return yy.resolve(null).then(t).catch(r0)}:my;function r0(t){setTimeout(function(){throw t})}function $l(t){return t==="head"}function py(t,e){var a=e,l=0;do{var i=a.nextSibling;if(t.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(i),Ki(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Pu(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Pu(a);for(var s=a.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[Ml]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Pu(t.ownerDocument.body);a=i}while(a);Ki(e)}function gy(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function Po(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Po(a),vu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function c0(t,e,a,l){for(;t.nodeType===1;){var i=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ml])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=ga(t.nextSibling),t===null)break}return null}function o0(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=ga(t.nextSibling),t===null))return null;return t}function vy(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=ga(t.nextSibling),t===null))return null;return t}function tf(t){return t.data==="$?"||t.data==="$~"}function ef(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function f0(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function ga(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var af=null;function by(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return ga(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Sy(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function xy(t,e,a){switch(e=wr(a),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Pu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);vu(t)}var va=new Map,Ey=new Set;function Ur(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yl=$.d;$.d={f:d0,r:h0,D:m0,C:y0,L:p0,m:g0,X:b0,S:v0,M:S0};function d0(){var t=yl.f(),e=_r();return t||e}function h0(t){var e=zl(t);e!==null&&e.tag===5&&e.type==="form"?qh(e):yl.r(t)}var Yi=typeof document>"u"?null:document;function Ty(t,e,a){var l=Yi;if(l&&typeof e=="string"&&e){var i=Ge(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),Ey.has(i)||(Ey.add(i),t={rel:t,crossOrigin:a,href:e},l.querySelector(i)===null&&(e=l.createElement("link"),Re(e,"link",t),le(e),l.head.appendChild(e)))}}function m0(t){yl.D(t),Ty("dns-prefetch",t,null)}function y0(t,e){yl.C(t,e),Ty("preconnect",t,e)}function p0(t,e,a){yl.L(t,e,a);var l=Yi;if(l&&t&&e){var i='link[rel="preload"][as="'+Ge(e)+'"]';e==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Ge(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Ge(a.imageSizes)+'"]')):i+='[href="'+Ge(t)+'"]';var s=i;switch(e){case"style":s=Gi(t);break;case"script":s=Xi(t)}va.has(s)||(t=b({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),va.set(s,t),l.querySelector(i)!==null||e==="style"&&l.querySelector(ts(s))||e==="script"&&l.querySelector(es(s))||(e=l.createElement("link"),Re(e,"link",t),le(e),l.head.appendChild(e)))}}function g0(t,e){yl.m(t,e);var a=Yi;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ge(l)+'"][href="'+Ge(t)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Xi(t)}if(!va.has(s)&&(t=b({rel:"modulepreload",href:t},e),va.set(s,t),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(es(s)))return}l=a.createElement("link"),Re(l,"link",t),le(l),a.head.appendChild(l)}}}function v0(t,e,a){yl.S(t,e,a);var l=Yi;if(l&&t){var i=Le(l).hoistableStyles,s=Gi(t);e=e||"default";var o=i.get(s);if(!o){var h={loading:0,preload:null};if(o=l.querySelector(ts(s)))h.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},a),(a=va.get(s))&&lf(t,a);var S=o=l.createElement("link");le(S),Re(S,"link",t),S._p=new Promise(function(M,L){S.onload=M,S.onerror=L}),S.addEventListener("load",function(){h.loading|=1}),S.addEventListener("error",function(){h.loading|=2}),h.loading|=4,jr(o,e,l)}o={type:"stylesheet",instance:o,count:1,state:h},i.set(s,o)}}}function b0(t,e){yl.X(t,e);var a=Yi;if(a&&t){var l=Le(a).hoistableScripts,i=Xi(t),s=l.get(i);s||(s=a.querySelector(es(i)),s||(t=b({src:t,async:!0},e),(e=va.get(i))&&nf(t,e),s=a.createElement("script"),le(s),Re(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function S0(t,e){yl.M(t,e);var a=Yi;if(a&&t){var l=Le(a).hoistableScripts,i=Xi(t),s=l.get(i);s||(s=a.querySelector(es(i)),s||(t=b({src:t,async:!0,type:"module"},e),(e=va.get(i))&&nf(t,e),s=a.createElement("script"),le(s),Re(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Ay(t,e,a,l){var i=(i=pt.current)?Ur(i):null;if(!i)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=Gi(a.href),a=Le(i).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Gi(a.href);var s=Le(i).hoistableStyles,o=s.get(t);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,o),(s=i.querySelector(ts(t)))&&!s._p&&(o.instance=s,o.state.loading=5),va.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},va.set(t,a),s||x0(i,t,a,o.state))),e&&l===null)throw Error(c(528,""));return o}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Xi(a),a=Le(i).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Gi(t){return'href="'+Ge(t)+'"'}function ts(t){return'link[rel="stylesheet"]['+t+"]"}function _y(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function x0(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),Re(e,"link",a),le(e),t.head.appendChild(e))}function Xi(t){return'[src="'+Ge(t)+'"]'}function es(t){return"script[async]"+t}function Ry(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ge(a.href)+'"]');if(l)return e.instance=l,le(l),l;var i=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),le(l),Re(l,"style",i),jr(l,a.precedence,t),e.instance=l;case"stylesheet":i=Gi(a.href);var s=t.querySelector(ts(i));if(s)return e.state.loading|=4,e.instance=s,le(s),s;l=_y(a),(i=va.get(i))&&lf(l,i),s=(t.ownerDocument||t).createElement("link"),le(s);var o=s;return o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),Re(s,"link",l),e.state.loading|=4,jr(s,a.precedence,t),e.instance=s;case"script":return s=Xi(a.src),(i=t.querySelector(es(s)))?(e.instance=i,le(i),i):(l=a,(i=va.get(s))&&(l=b({},a),nf(l,i)),t=t.ownerDocument||t,i=t.createElement("script"),le(i),Re(i,"link",l),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,jr(l,a.precedence,t));return e.instance}function jr(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,o=0;o<l.length;o++){var h=l[o];if(h.dataset.precedence===e)s=h;else if(s!==i)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function lf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function nf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Lr=null;function Oy(t,e,a){if(Lr===null){var l=new Map,i=Lr=new Map;i.set(a,l)}else i=Lr,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),i=0;i<a.length;i++){var s=a[i];if(!(s[Ml]||s[he]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(e)||"";o=t+o;var h=l.get(o);h?h.push(s):l.set(o,[s])}}return l}function Ny(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function E0(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Cy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function T0(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Gi(l.href),s=e.querySelector(ts(i));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Hr.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=s,le(s);return}s=e.ownerDocument||e,l=_y(l),(i=va.get(i))&&lf(l,i),s=s.createElement("link"),le(s);var o=s;o._p=new Promise(function(h,S){o.onload=h,o.onerror=S}),Re(s,"link",l),a.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Hr.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var uf=0;function A0(t,e){return t.stylesheets&&t.count===0&&qr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&qr(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&uf===0&&(uf=62500*n0());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&qr(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>uf?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Hr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Br=null;function qr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Br=new Map,e.forEach(_0,t),Br=null,Hr.call(t))}function _0(t,e){if(!(e.state.loading&4)){var a=Br.get(t);if(a)var l=a.get(null);else{a=new Map,Br.set(t,a);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}i=e.instance,o=i.getAttribute("data-precedence"),s=a.get(o)||l,s===l&&a.set(null,i),a.set(o,i),this.count++,l=Hr.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),s?s.parentNode.insertBefore(i,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var as={$$typeof:Z,Provider:null,Consumer:null,_currentValue:ct,_currentValue2:ct,_threadCount:0};function R0(t,e,a,l,i,s,o,h,S){this.tag=1,this.containerInfo=t,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=wa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wa(0),this.hiddenUpdates=wa(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function My(t,e,a,l,i,s,o,h,S,M,L,Q){return t=new R0(t,e,a,o,S,M,L,Q,h),e=1,s===!0&&(e|=24),s=aa(3,null,null,e),t.current=s,s.stateNode=t,e=Hc(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:e},Yc(s),t}function Dy(t){return t?(t=Si,t):Si}function zy(t,e,a,l,i,s){i=Dy(i),l.context===null?l.context=i:l.pendingContext=i,l=ql(e),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Ql(t,l,e),a!==null&&(Fe(a,t,e),Uu(a,t,e))}function wy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function sf(t,e){wy(t,e),(t=t.alternate)&&wy(t,e)}function Uy(t){if(t.tag===13||t.tag===31){var e=Cn(t,67108864);e!==null&&Fe(e,t,67108864),sf(t,67108864)}}function jy(t){if(t.tag===13||t.tag===31){var e=sa();e=ci(e);var a=Cn(t,e);a!==null&&Fe(a,t,e),sf(t,e)}}var Qr=!0;function O0(t,e,a,l){var i=j.T;j.T=null;var s=$.p;try{$.p=2,rf(t,e,a,l)}finally{$.p=s,j.T=i}}function N0(t,e,a,l){var i=j.T;j.T=null;var s=$.p;try{$.p=8,rf(t,e,a,l)}finally{$.p=s,j.T=i}}function rf(t,e,a,l){if(Qr){var i=cf(l);if(i===null)ko(t,e,l,Yr,a),Hy(t,l);else if(M0(i,t,e,a,l))l.stopPropagation();else if(Hy(t,l),e&4&&-1<C0.indexOf(t)){for(;i!==null;){var s=zl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=Ta(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var S=1<<31-Ee(o);h.entanglements[1]|=S,o&=~S}Qa(s),(Dt&6)===0&&(Tr=de()+500,$u(0))}}break;case 31:case 13:h=Cn(s,2),h!==null&&Fe(h,s,2),_r(),sf(s,2)}if(s=cf(l),s===null&&ko(t,e,l,Yr,a),s===i)break;i=s}i!==null&&l.stopPropagation()}else ko(t,e,l,null,a)}}function cf(t){return t=cc(t),of(t)}var Yr=null;function of(t){if(Yr=null,t=Dl(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=m(e),t!==null)return t;t=null}else if(a===31){if(t=x(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Yr=t,null}function Ly(t){switch(t){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(Fa()){case li:return 2;case ni:return 8;case _l:case fu:return 32;case $a:return 268435456;default:return 32}default:return 32}}var ff=!1,Wl=null,Il=null,Pl=null,ls=new Map,ns=new Map,tn=[],C0="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 Hy(t,e){switch(t){case"focusin":case"focusout":Wl=null;break;case"dragenter":case"dragleave":Il=null;break;case"mouseover":case"mouseout":Pl=null;break;case"pointerover":case"pointerout":ls.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(e.pointerId)}}function is(t,e,a,l,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[i]},e!==null&&(e=zl(e),e!==null&&Uy(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function M0(t,e,a,l,i){switch(e){case"focusin":return Wl=is(Wl,t,e,a,l,i),!0;case"dragenter":return Il=is(Il,t,e,a,l,i),!0;case"mouseover":return Pl=is(Pl,t,e,a,l,i),!0;case"pointerover":var s=i.pointerId;return ls.set(s,is(ls.get(s)||null,t,e,a,l,i)),!0;case"gotpointercapture":return s=i.pointerId,ns.set(s,is(ns.get(s)||null,t,e,a,l,i)),!0}return!1}function By(t){var e=Dl(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=m(a),e!==null){t.blockedOn=e,Cl(t.priority,function(){jy(a)});return}}else if(e===31){if(e=x(a),e!==null){t.blockedOn=e,Cl(t.priority,function(){jy(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=cf(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);ye=l,a.target.dispatchEvent(l),ye=null}else return e=zl(a),e!==null&&Uy(e),t.blockedOn=a,!1;e.shift()}return!0}function qy(t,e,a){Gr(t)&&a.delete(e)}function D0(){ff=!1,Wl!==null&&Gr(Wl)&&(Wl=null),Il!==null&&Gr(Il)&&(Il=null),Pl!==null&&Gr(Pl)&&(Pl=null),ls.forEach(qy),ns.forEach(qy)}function Xr(t,e){t.blockedOn===e&&(t.blockedOn=null,ff||(ff=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,D0)))}var Kr=null;function Qy(t){Kr!==t&&(Kr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Kr===t&&(Kr=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],i=t[e+2];if(typeof l!="function"){if(of(l||a)===null)continue;break}var s=zl(a);s!==null&&(t.splice(e,3),e-=3,so(s,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function Ki(t){function e(S){return Xr(S,t)}Wl!==null&&Xr(Wl,t),Il!==null&&Xr(Il,t),Pl!==null&&Xr(Pl,t),ls.forEach(e),ns.forEach(e);for(var a=0;a<tn.length;a++){var l=tn[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<tn.length&&(a=tn[0],a.blockedOn===null);)By(a),a.blockedOn===null&&tn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],s=a[l+1],o=i[vt]||null;if(typeof s=="function")o||Qy(a);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[vt]||null)h=o.formAction;else if(of(i)!==null)continue}else h=o.action;typeof h=="function"?a[l+1]=h:(a.splice(l,3),l-=3),Qy(a)}}}function Yy(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function df(t){this._internalRoot=t}Zr.prototype.render=df.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var a=e.current,l=sa();zy(a,l,t,e,null,null)},Zr.prototype.unmount=df.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zy(t.current,2,null,t,null,null),_r(),e[Pe]=null}};function Zr(t){this._internalRoot=t}Zr.prototype.unstable_scheduleHydration=function(t){if(t){var e=zs();t={blockedOn:null,target:t,priority:e};for(var a=0;a<tn.length&&e!==0&&e<tn[a].priority;a++);tn.splice(a,0,t),a===0&&By(t)}};var Gy=u.version;if(Gy!=="19.2.7")throw Error(c(527,Gy,"19.2.7"));$.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=g(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var z0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{Rl=Vr.inject(z0),Me=Vr}catch{}}return ss.createRoot=function(t,e){if(!f(t))throw Error(c(299));var a=!1,l="",i=Fh,s=$h,o=Wh;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=My(t,1,!1,null,null,a,l,null,i,s,o,Yy),t[Pe]=e.current,Vo(t),new df(e)},ss.hydrateRoot=function(t,e,a){if(!f(t))throw Error(c(299));var l=!1,i="",s=Fh,o=$h,h=Wh,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),e=My(t,1,!0,e,a??null,l,i,S,s,o,h,Yy),e.context=Dy(null),a=e.current,l=sa(),l=ci(l),i=ql(l),i.callback=null,Ql(a,i,l),a=l,e.current.lanes=a,Wa(e,a),Qa(e),t[Pe]=e.current,Vo(t),new Zr(e)},ss.version="19.2.7",ss}var Py;function G0(){if(Py)return pf.exports;Py=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),pf.exports=Y0(),pf.exports}var X0=G0();/**
50
+ * react-router v7.18.1
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Wf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Vp=/^[\\/]{2}/;function K0(n,u){return u+n.replace(/\\/g,"/")}var tp="popstate";function ep(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Z0(n={}){function u(c,f){var g;let d=(g=f.state)==null?void 0:g.masked,{pathname:m,search:x,hash:p}=d||c.location;return Nf("",{pathname:m,search:x,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default",d?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,f){return typeof f=="string"?f:ys(f)}return k0(u,r,null,n)}function Wt(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function Va(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function V0(){return Math.random().toString(36).substring(2,10)}function ap(n,u){return{usr:n.state,key:n.key,idx:u,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Nf(n,u,r=null,c,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?ru(u):u,state:r,key:u&&u.key||c||V0(),mask:f}}function ys({pathname:n="/",search:u="",hash:r=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function ru(n){let u={};if(n){let r=n.indexOf("#");r>=0&&(u.hash=n.substring(r),n=n.substring(0,r));let c=n.indexOf("?");c>=0&&(u.search=n.substring(c),n=n.substring(0,c)),n&&(u.pathname=n)}return u}function k0(n,u,r,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,m=f.history,x="POP",p=null,g=R();g==null&&(g=0,m.replaceState({...m.state,idx:g},""));function R(){return(m.state||{idx:null}).idx}function b(){x="POP";let X=R(),q=X==null?null:X-g;g=X,p&&p({action:x,location:Y.location,delta:q})}function N(X,q){x="PUSH";let K=ep(X)?X:Nf(Y.location,X,q);g=R()+1;let Z=ap(K,g),V=Y.createHref(K.mask||K);try{m.pushState(Z,"",V)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;f.location.assign(V)}d&&p&&p({action:x,location:Y.location,delta:1})}function U(X,q){x="REPLACE";let K=ep(X)?X:Nf(Y.location,X,q);g=R();let Z=ap(K,g),V=Y.createHref(K.mask||K);m.replaceState(Z,"",V),d&&p&&p({action:x,location:Y.location,delta:0})}function H(X){return J0(f,X)}let Y={get action(){return x},get location(){return n(f,m)},listen(X){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(tp,b),p=X,()=>{f.removeEventListener(tp,b),p=null}},createHref(X){return u(f,X)},createURL:H,encodeLocation(X){let q=H(X);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:N,replace:U,go(X){return m.go(X)}};return Y}function J0(n,u,r=!1){let c="http://localhost";n&&(c=n.location.origin!=="null"?n.location.origin:n.location.href),Wt(c,"No window.location.(origin|href) available to create URL");let f=typeof u=="string"?u:ys(u);return f=f.replace(/ $/,"%20"),!r&&Vp.test(f)&&(f=c+f),new URL(f,c)}function kp(n,u,r="/"){return F0(n,u,r,!1)}function F0(n,u,r,c,f){let d=typeof u=="string"?ru(u):u,m=El(d.pathname||"/",r);if(m==null)return null;let x=$0(n),p=null,g=sb(m);for(let R=0;p==null&&R<x.length;++R)p=ub(x[R],g,c);return p}function $0(n){let u=Jp(n);return W0(u),u}function Jp(n,u=[],r=[],c="",f=!1){let d=(m,x,p=f,g)=>{let R={relativePath:g===void 0?m.path||"":g,caseSensitive:m.caseSensitive===!0,childrenIndex:x,route:m};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(c)&&p)return;Wt(R.relativePath.startsWith(c),`Absolute route path "${R.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(c.length)}let b=Ca([c,R.relativePath]),N=r.concat(R);m.children&&m.children.length>0&&(Wt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Jp(m.children,u,N,b,p)),!(m.path==null&&!m.index)&&u.push({path:b,score:nb(b,m.index),routesMeta:N.map((U,H)=>{let[Y,X]=Wp(U.relativePath,U.caseSensitive,H===N.length-1);return{...U,matcher:Y,compiledParams:X}})})};return n.forEach((m,x)=>{var p;if(m.path===""||!((p=m.path)!=null&&p.includes("?")))d(m,x);else for(let g of Fp(m.path))d(m,x,!0,g)}),u}function Fp(n){let u=n.split("/");if(u.length===0)return[];let[r,...c]=u,f=r.endsWith("?"),d=r.replace(/\?$/,"");if(c.length===0)return f?[d,""]:[d];let m=Fp(c.join("/")),x=[];return x.push(...m.map(p=>p===""?d:[d,p].join("/"))),f&&x.push(...m),x.map(p=>n.startsWith("/")&&p===""?"/":p)}function W0(n){n.sort((u,r)=>u.score!==r.score?r.score-u.score:ib(u.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var I0=/^:[\w-]+$/,P0=3,tb=2,eb=1,ab=10,lb=-2,lp=n=>n==="*";function nb(n,u){let r=n.split("/"),c=r.length;return r.some(lp)&&(c+=lb),u&&(c+=tb),r.filter(f=>!lp(f)).reduce((f,d)=>f+(I0.test(d)?P0:d===""?eb:ab),c)}function ib(n,u){return n.length===u.length&&n.slice(0,-1).every((c,f)=>c===u[f])?n[n.length-1]-u[u.length-1]:0}function ub(n,u,r=!1){let{routesMeta:c}=n,f={},d="/",m=[];for(let x=0;x<c.length;++x){let p=c[x],g=x===c.length-1,R=d==="/"?u:u.slice(d.length)||"/",b={path:p.relativePath,caseSensitive:p.caseSensitive,end:g},N=p.matcher&&p.compiledParams?$p(b,R,p.matcher,p.compiledParams):ec(b,R),U=p.route;if(!N&&g&&r&&!c[c.length-1].route.index&&(N=ec({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},R)),!N)return null;Object.assign(f,N.params),m.push({params:f,pathname:Ca([d,N.pathname]),pathnameBase:ob(Ca([d,N.pathnameBase])),route:U}),N.pathnameBase!=="/"&&(d=Ca([d,N.pathnameBase]))}return m}function ec(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,c]=Wp(n.path,n.caseSensitive,n.end);return $p(n,u,r,c)}function $p(n,u,r,c){let f=u.match(r);if(!f)return null;let d=f[0],m=d.replace(/(.)\/+$/,"$1"),x=f.slice(1);return{params:c.reduce((g,{paramName:R,isOptional:b},N)=>{if(R==="*"){let H=x[N]||"";m=d.slice(0,d.length-H.length).replace(/(.)\/+$/,"$1")}const U=x[N];return b&&!U?g[R]=void 0:g[R]=(U||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:m,pattern:n}}function Wp(n,u=!1,r=!0){Va(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,x,p,g,R)=>{if(c.push({paramName:x,isOptional:p!=null}),p){let b=R.charAt(g+m.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),c]}function sb(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Va(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),n}}function El(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let r=u.endsWith("/")?u.length-1:u.length,c=n.charAt(r);return c&&c!=="/"?null:n.slice(r)||"/"}function rb(n,u="/"){let{pathname:r,search:c="",hash:f=""}=typeof n=="string"?ru(n):n,d;return r?(r=Pp(r),r.startsWith("/")?d=np(r.substring(1),"/"):d=np(r,u)):d=u,{pathname:d,search:fb(c),hash:db(f)}}function np(n,u){let r=ac(u).split("/");return n.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function Sf(n,u,r,c){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cb(n){return n.filter((u,r)=>r===0||u.route.path&&u.route.path.length>0)}function Ip(n){let u=cb(n);return u.map((r,c)=>c===u.length-1?r.pathname:r.pathnameBase)}function If(n,u,r,c=!1){let f;typeof n=="string"?f=ru(n):(f={...n},Wt(!f.pathname||!f.pathname.includes("?"),Sf("?","pathname","search",f)),Wt(!f.pathname||!f.pathname.includes("#"),Sf("#","pathname","hash",f)),Wt(!f.search||!f.search.includes("#"),Sf("#","search","hash",f)));let d=n===""||f.pathname==="",m=d?"/":f.pathname,x;if(m==null)x=r;else{let b=u.length-1;if(!c&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),b-=1;f.pathname=N.join("/")}x=b>=0?u[b]:"/"}let p=rb(f,x),g=m&&m!=="/"&&m.endsWith("/"),R=(d||m===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||R)&&(p.pathname+="/"),p}var Pp=n=>n.replace(/[\\/]{2,}/g,"/"),Ca=n=>Pp(n.join("/")),ac=n=>n.replace(/\/+$/,""),ob=n=>ac(n).replace(/^\/*/,"/"),fb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,db=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,hb=class{constructor(n,u,r,c=!1){this.status=n,this.statusText=u||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function mb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function yb(n){let u=n.map(r=>r.route.path).filter(Boolean);return Ca(u)||"/"}var tg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function eg(n,u){let r=n;if(typeof r!="string"||!Wf.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,f=!1;if(tg)try{let d=new URL(window.location.href),m=Vp.test(r)?new URL(K0(r,d.protocol)):new URL(r),x=El(m.pathname,u);m.origin===d.origin&&x!=null?r=x+m.search+m.hash:f=!0}catch{Va(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ag=["POST","PUT","PATCH","DELETE"];new Set(ag);var pb=["GET",...ag];new Set(pb);var gb=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function vb(n){try{return gb.includes(new URL(n).protocol)}catch{return!1}}var cu=_.createContext(null);cu.displayName="DataRouter";var ic=_.createContext(null);ic.displayName="DataRouterState";var lg=_.createContext(!1);function bb(){return _.useContext(lg)}var ng=_.createContext({isTransitioning:!1});ng.displayName="ViewTransition";var Sb=_.createContext(new Map);Sb.displayName="Fetchers";var xb=_.createContext(null);xb.displayName="Await";var Sa=_.createContext(null);Sa.displayName="Navigation";var As=_.createContext(null);As.displayName="Location";var ka=_.createContext({outlet:null,matches:[],isDataRoute:!1});ka.displayName="Route";var Pf=_.createContext(null);Pf.displayName="RouteError";var ig="REACT_ROUTER_ERROR",Eb="REDIRECT",Tb="ROUTE_ERROR_RESPONSE";function Ab(n){if(n.startsWith(`${ig}:${Eb}:{`))try{let u=JSON.parse(n.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function _b(n){if(n.startsWith(`${ig}:${Tb}:{`))try{let u=JSON.parse(n.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new hb(u.status,u.statusText,u.data)}catch{}}function Rb(n,{relative:u}={}){Wt(_s(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=_.useContext(Sa),{hash:f,pathname:d,search:m}=Rs(n,{relative:u}),x=d;return r!=="/"&&(x=d==="/"?r:Ca([r,d])),c.createHref({pathname:x,search:m,hash:f})}function _s(){return _.useContext(As)!=null}function Tl(){return Wt(_s(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(As).location}var ug="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sg(n){_.useContext(Sa).static||_.useLayoutEffect(n)}function rg(){let{isDataRoute:n}=_.useContext(ka);return n?Yb():Ob()}function Ob(){Wt(_s(),"useNavigate() may be used only in the context of a <Router> component.");let n=_.useContext(cu),{basename:u,navigator:r}=_.useContext(Sa),{matches:c}=_.useContext(ka),{pathname:f}=Tl(),d=JSON.stringify(Ip(c)),m=_.useRef(!1);return sg(()=>{m.current=!0}),_.useCallback((p,g={})=>{if(Va(m.current,ug),!m.current)return;if(typeof p=="number"){r.go(p);return}let R=If(p,JSON.parse(d),f,g.relative==="path");n==null&&u!=="/"&&(R.pathname=R.pathname==="/"?u:Ca([u,R.pathname])),(g.replace?r.replace:r.push)(R,g.state,g)},[u,r,d,f,n])}var Nb=_.createContext(null);function Cb(n){let u=_.useContext(ka).outlet;return _.useMemo(()=>u&&_.createElement(Nb.Provider,{value:n},u),[u,n])}function Rs(n,{relative:u}={}){let{matches:r}=_.useContext(ka),{pathname:c}=Tl(),f=JSON.stringify(Ip(r));return _.useMemo(()=>If(n,JSON.parse(f),c,u==="path"),[n,f,c,u])}function Mb(n,u){return cg(n,u)}function cg(n,u,r){var X;Wt(_s(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=_.useContext(Sa),{matches:f}=_.useContext(ka),d=f[f.length-1],m=d?d.params:{},x=d?d.pathname:"/",p=d?d.pathnameBase:"/",g=d&&d.route;{let q=g&&g.path||"";fg(x,!g||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let R=Tl(),b;if(u){let q=typeof u=="string"?ru(u):u;Wt(p==="/"||((X=q.pathname)==null?void 0:X.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${q.pathname}" was given in the \`location\` prop.`),b=q}else b=R;let N=b.pathname||"/",U=N;if(p!=="/"){let q=p.replace(/^\//,"").split("/");U="/"+N.replace(/^\//,"").split("/").slice(q.length).join("/")}let H=r&&r.state.matches.length?r.state.matches.map(q=>Object.assign(q,{route:r.manifest[q.route.id]||q.route})):kp(n,{pathname:U});Va(g||H!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Va(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Y=jb(H&&H.map(q=>Object.assign({},q,{params:Object.assign({},m,q.params),pathname:Ca([p,c.encodeLocation?c.encodeLocation(q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?p:Ca([p,c.encodeLocation?c.encodeLocation(q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),f,r);return u&&Y?_.createElement(As.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},Y):Y}function Db(){let n=Qb(),u=mb(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:d},"ErrorBoundary")," or"," ",_.createElement("code",{style:d},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},u),r?_.createElement("pre",{style:f},r):null,m)}var zb=_.createElement(Db,null),og=class extends _.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.onError?this.props.onError(n,u):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=_b(n.digest);r&&(n=r)}let u=n!==void 0?_.createElement(ka.Provider,{value:this.props.routeContext},_.createElement(Pf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?_.createElement(wb,{error:n},u):u}};og.contextType=lg;var xf=new WeakMap;function wb({children:n,error:u}){let{basename:r}=_.useContext(Sa);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let c=Ab(u.digest);if(c){let f=xf.get(u);if(f)throw f;let d=eg(c.location,r),m=d.absoluteURL||d.to;if(vb(m))throw new Error("Invalid redirect location");if(tg&&!xf.get(u))if(d.isExternal||c.reloadDocument)window.location.href=m;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:c.replace}));throw xf.set(u,x),x}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m}`})}}return n}function Ub({routeContext:n,match:u,children:r}){let c=_.useContext(cu);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),_.createElement(ka.Provider,{value:n},r)}function jb(n,u=[],r){let c=r==null?void 0:r.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(u.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let f=n,d=c==null?void 0:c.errors;if(d!=null){let R=f.findIndex(b=>b.route.id&&(d==null?void 0:d[b.route.id])!==void 0);Wt(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,R+1))}let m=!1,x=-1;if(r&&c){m=c.renderFallback;for(let R=0;R<f.length;R++){let b=f[R];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(x=R),b.route.id){let{loaderData:N,errors:U}=c,H=b.route.loader&&!N.hasOwnProperty(b.route.id)&&(!U||U[b.route.id]===void 0);if(b.route.lazy||H){r.isStatic&&(m=!0),x>=0?f=f.slice(0,x+1):f=[f[0]];break}}}}let p=r==null?void 0:r.onError,g=c&&p?(R,b)=>{var N,U;p(R,{location:c.location,params:((U=(N=c.matches)==null?void 0:N[0])==null?void 0:U.params)??{},pattern:yb(c.matches),errorInfo:b})}:void 0;return f.reduceRight((R,b,N)=>{let U,H=!1,Y=null,X=null;c&&(U=d&&b.route.id?d[b.route.id]:void 0,Y=b.route.errorElement||zb,m&&(x<0&&N===0?(fg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,X=null):x===N&&(H=!0,X=b.route.hydrateFallbackElement||null)));let q=u.concat(f.slice(0,N+1)),K=()=>{let Z;return U?Z=Y:H?Z=X:b.route.Component?Z=_.createElement(b.route.Component,null):b.route.element?Z=b.route.element:Z=R,_.createElement(Ub,{match:b,routeContext:{outlet:R,matches:q,isDataRoute:c!=null},children:Z})};return c&&(b.route.ErrorBoundary||b.route.errorElement||N===0)?_.createElement(og,{location:c.location,revalidation:c.revalidation,component:Y,error:U,children:K(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:g}):K()},null)}function td(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lb(n){let u=_.useContext(cu);return Wt(u,td(n)),u}function Hb(n){let u=_.useContext(ic);return Wt(u,td(n)),u}function Bb(n){let u=_.useContext(ka);return Wt(u,td(n)),u}function ed(n){let u=Bb(n),r=u.matches[u.matches.length-1];return Wt(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function qb(){return ed("useRouteId")}function Qb(){var c;let n=_.useContext(Pf),u=Hb("useRouteError"),r=ed("useRouteError");return n!==void 0?n:(c=u.errors)==null?void 0:c[r]}function Yb(){let{router:n}=Lb("useNavigate"),u=ed("useNavigate"),r=_.useRef(!1);return sg(()=>{r.current=!0}),_.useCallback(async(f,d={})=>{Va(r.current,ug),r.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:u,...d}))},[n,u])}var ip={};function fg(n,u,r){!u&&!ip[n]&&(ip[n]=!0,Va(!1,r))}_.memo(Gb);function Gb({routes:n,manifest:u,future:r,state:c,isStatic:f,onError:d}){return cg(n,void 0,{manifest:u,state:c,isStatic:f,onError:d})}function Xb(n){return Cb(n.context)}function ds(n){Wt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Kb({basename:n="/",children:u=null,location:r,navigationType:c="POP",navigator:f,static:d=!1,useTransitions:m}){Wt(!_s(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=n.replace(/^\/*/,"/"),p=_.useMemo(()=>({basename:x,navigator:f,static:d,useTransitions:m,future:{}}),[x,f,d,m]);typeof r=="string"&&(r=ru(r));let{pathname:g="/",search:R="",hash:b="",state:N=null,key:U="default",mask:H}=r,Y=_.useMemo(()=>{let X=El(g,x);return X==null?null:{location:{pathname:X,search:R,hash:b,state:N,key:U,mask:H},navigationType:c}},[x,g,R,b,N,U,c,H]);return Va(Y!=null,`<Router basename="${x}"> is not able to match the URL "${g}${R}${b}" because it does not start with the basename, so the <Router> won't render anything.`),Y==null?null:_.createElement(Sa.Provider,{value:p},_.createElement(As.Provider,{children:u,value:Y}))}function Zb({children:n,location:u}){return Mb(Cf(n),u)}function Cf(n,u=[]){let r=[];return _.Children.forEach(n,(c,f)=>{if(!_.isValidElement(c))return;let d=[...u,f];if(c.type===_.Fragment){r.push.apply(r,Cf(c.props.children,d));return}Wt(c.type===ds,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Wt(!c.props.index||!c.props.children,"An index route cannot have child routes.");let m={id:c.props.id||d.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(m.children=Cf(c.props.children,d)),r.push(m)}),r}var Ir="get",Pr="application/x-www-form-urlencoded";function uc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Vb(n){return uc(n)&&n.tagName.toLowerCase()==="button"}function kb(n){return uc(n)&&n.tagName.toLowerCase()==="form"}function Jb(n){return uc(n)&&n.tagName.toLowerCase()==="input"}function Fb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function $b(n,u){return n.button===0&&(!u||u==="_self")&&!Fb(n)}var Jr=null;function Wb(){if(Jr===null)try{new FormData(document.createElement("form"),0),Jr=!1}catch{Jr=!0}return Jr}var Ib=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ef(n){return n!=null&&!Ib.has(n)?(Va(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pr}"`),null):n}function Pb(n,u){let r,c,f,d,m;if(kb(n)){let x=n.getAttribute("action");c=x?El(x,u):null,r=n.getAttribute("method")||Ir,f=Ef(n.getAttribute("enctype"))||Pr,d=new FormData(n)}else if(Vb(n)||Jb(n)&&(n.type==="submit"||n.type==="image")){let x=n.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||x.getAttribute("action");if(c=p?El(p,u):null,r=n.getAttribute("formmethod")||x.getAttribute("method")||Ir,f=Ef(n.getAttribute("formenctype"))||Ef(x.getAttribute("enctype"))||Pr,d=new FormData(x,n),!Wb()){let{name:g,type:R,value:b}=n;if(R==="image"){let N=g?`${g}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else g&&d.append(g,b)}}else{if(uc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ir,c=null,f=Pr,m=n}return d&&f==="text/plain"&&(m=d,d=void 0),{action:c,method:r.toLowerCase(),encType:f,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ad(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function dg(n,u,r,c){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:u&&El(f.pathname,u)==="/"?f.pathname=`${ac(u)}/_root.${c}`:f.pathname=`${ac(f.pathname)}.${c}`,f}async function tS(n,u){if(n.id in u)return u[n.id];try{let r=await import(n.module);return u[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function aS(n,u,r){let c=await Promise.all(n.map(async f=>{let d=u.routes[f.route.id];if(d){let m=await tS(d,r);return m.links?m.links():[]}return[]}));return uS(c.flat(1).filter(eS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function up(n,u,r,c,f,d){let m=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,x=(p,g)=>{var R;return r[g].pathname!==p.pathname||((R=r[g].route.path)==null?void 0:R.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return d==="assets"?u.filter((p,g)=>m(p,g)||x(p,g)):d==="data"?u.filter((p,g)=>{var b;let R=c.routes[p.route.id];if(!R||!R.hasLoader)return!1;if(m(p,g)||x(p,g))return!0;if(p.route.shouldRevalidate){let N=p.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function lS(n,u,{includeHydrateFallback:r}={}){return nS(n.map(c=>{let f=u.routes[c.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function nS(n){return[...new Set(n)]}function iS(n){let u={},r=Object.keys(n).sort();for(let c of r)u[c]=n[c];return u}function uS(n,u){let r=new Set;return new Set(u),n.reduce((c,f)=>{let d=JSON.stringify(iS(f));return r.has(d)||(r.add(d),c.push({key:d,link:f})),c},[])}function ld(){let n=_.useContext(cu);return ad(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function sS(){let n=_.useContext(ic);return ad(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var nd=_.createContext(void 0);nd.displayName="FrameworkContext";function sc(){let n=_.useContext(nd);return ad(n,"You must render this element inside a <HydratedRouter> element"),n}function rS(n,u){let r=_.useContext(nd),[c,f]=_.useState(!1),[d,m]=_.useState(!1),{onFocus:x,onBlur:p,onMouseEnter:g,onMouseLeave:R,onTouchStart:b}=u,N=_.useRef(null);_.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let Y=q=>{q.forEach(K=>{m(K.isIntersecting)})},X=new IntersectionObserver(Y,{threshold:.5});return N.current&&X.observe(N.current),()=>{X.disconnect()}}},[n]),_.useEffect(()=>{if(c){let Y=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(Y)}}},[c]);let U=()=>{f(!0)},H=()=>{f(!1),m(!1)};return r?n!=="intent"?[d,N,{}]:[d,N,{onFocus:rs(x,U),onBlur:rs(p,H),onMouseEnter:rs(g,U),onMouseLeave:rs(R,H),onTouchStart:rs(b,U)}]:[!1,N,{}]}function rs(n,u){return r=>{n&&n(r),r.defaultPrevented||u(r)}}function cS({page:n,...u}){let r=bb(),{nonce:c}=sc(),{router:f}=ld(),d=_.useMemo(()=>kp(f.routes,n,f.basename),[f.routes,n,f.basename]);return d?(u.nonce==null&&c&&(u={...u,nonce:c}),r?_.createElement(fS,{page:n,matches:d,...u}):_.createElement(dS,{page:n,matches:d,...u})):null}function oS(n){let{manifest:u,routeModules:r}=sc(),[c,f]=_.useState([]);return _.useEffect(()=>{let d=!1;return aS(n,u,r).then(m=>{d||f(m)}),()=>{d=!0}},[n,u,r]),c}function fS({page:n,matches:u,...r}){let c=Tl(),{future:f}=sc(),{basename:d}=ld(),m=_.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let x=dg(n,d,f.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,g=[];for(let R of u)typeof R.route.shouldRevalidate=="function"?p=!0:g.push(R.route.id);return p&&g.length>0&&x.searchParams.set("_routes",g.join(",")),[x.pathname+x.search]},[d,f.v8_trailingSlashAwareDataRequests,n,c,u]);return _.createElement(_.Fragment,null,m.map(x=>_.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})))}function dS({page:n,matches:u,...r}){let c=Tl(),{future:f,manifest:d,routeModules:m}=sc(),{basename:x}=ld(),{loaderData:p,matches:g}=sS(),R=_.useMemo(()=>up(n,u,g,d,c,"data"),[n,u,g,d,c]),b=_.useMemo(()=>up(n,u,g,d,c,"assets"),[n,u,g,d,c]),N=_.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let Y=new Set,X=!1;if(u.forEach(K=>{var V;let Z=d.routes[K.route.id];!Z||!Z.hasLoader||(!R.some(k=>k.route.id===K.route.id)&&K.route.id in p&&((V=m[K.route.id])!=null&&V.shouldRevalidate)||Z.hasClientLoader?X=!0:Y.add(K.route.id))}),Y.size===0)return[];let q=dg(n,x,f.v8_trailingSlashAwareDataRequests,"data");return X&&Y.size>0&&q.searchParams.set("_routes",u.filter(K=>Y.has(K.route.id)).map(K=>K.route.id).join(",")),[q.pathname+q.search]},[x,f.v8_trailingSlashAwareDataRequests,p,c,d,R,u,n,m]),U=_.useMemo(()=>lS(b,d),[b,d]),H=oS(b);return _.createElement(_.Fragment,null,N.map(Y=>_.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...r})),U.map(Y=>_.createElement("link",{key:Y,rel:"modulepreload",href:Y,...r})),H.map(({key:Y,link:X})=>_.createElement("link",{key:Y,nonce:r.nonce,...X,crossOrigin:X.crossOrigin??r.crossOrigin})))}function hS(...n){return u=>{n.forEach(r=>{typeof r=="function"?r(u):r!=null&&(r.current=u)})}}var mS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mS&&(window.__reactRouterVersion="7.18.1")}catch{}function yS({basename:n,children:u,useTransitions:r,window:c}){let f=_.useRef();f.current==null&&(f.current=Z0({window:c,v5Compat:!0}));let d=f.current,[m,x]=_.useState({action:d.action,location:d.location}),p=_.useCallback(g=>{r===!1?x(g):_.startTransition(()=>x(g))},[r]);return _.useLayoutEffect(()=>d.listen(p),[d,p]),_.createElement(Kb,{basename:n,children:u,location:m.location,navigationType:m.action,navigator:d,useTransitions:r})}var hg=_.forwardRef(function({onClick:u,discover:r="render",prefetch:c="none",relative:f,reloadDocument:d,replace:m,mask:x,state:p,target:g,to:R,preventScrollReset:b,viewTransition:N,defaultShouldRevalidate:U,...H},Y){let{basename:X,navigator:q,useTransitions:K}=_.useContext(Sa),Z=typeof R=="string"&&Wf.test(R),V=eg(R,X);R=V.to;let k=Rb(R,{relative:f}),P=Tl(),et=null;if(x){let zt=If(x,[],P.mask?P.mask.pathname:"/",!0);X!=="/"&&(zt.pathname=zt.pathname==="/"?X:Ca([X,zt.pathname])),et=q.createHref(zt)}let[st,gt,Ot]=rS(c,H),Jt=vS(R,{replace:m,mask:x,state:p,target:g,preventScrollReset:b,relative:f,viewTransition:N,defaultShouldRevalidate:U,useTransitions:K});function Bt(zt){u&&u(zt),zt.defaultPrevented||Jt(zt)}let je=!(V.isExternal||d),fe=_.createElement("a",{...H,...Ot,href:(je?et:void 0)||V.absoluteURL||k,onClick:je?Bt:u,ref:hS(Y,gt),target:g,"data-discover":!Z&&r==="render"?"true":void 0});return st&&!Z?_.createElement(_.Fragment,null,fe,_.createElement(cS,{page:k})):fe});hg.displayName="Link";var Mf=_.forwardRef(function({"aria-current":u="page",caseSensitive:r=!1,className:c="",end:f=!1,style:d,to:m,viewTransition:x,children:p,...g},R){let b=Rs(m,{relative:g.relative}),N=Tl(),U=_.useContext(ic),{navigator:H,basename:Y}=_.useContext(Sa),X=U!=null&&TS(b)&&x===!0,q=H.encodeLocation?H.encodeLocation(b).pathname:b.pathname,K=N.pathname,Z=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;r||(K=K.toLowerCase(),Z=Z?Z.toLowerCase():null,q=q.toLowerCase()),Z&&Y&&(Z=El(Z,Y)||Z);const V=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let k=K===q||!f&&K.startsWith(q)&&K.charAt(V)==="/",P=Z!=null&&(Z===q||!f&&Z.startsWith(q)&&Z.charAt(q.length)==="/"),et={isActive:k,isPending:P,isTransitioning:X},st=k?u:void 0,gt;typeof c=="function"?gt=c(et):gt=[c,k?"active":null,P?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let Ot=typeof d=="function"?d(et):d;return _.createElement(hg,{...g,"aria-current":st,className:gt,ref:R,style:Ot,to:m,viewTransition:x},typeof p=="function"?p(et):p)});Mf.displayName="NavLink";var pS=_.forwardRef(({discover:n="render",fetcherKey:u,navigate:r,reloadDocument:c,replace:f,state:d,method:m=Ir,action:x,onSubmit:p,relative:g,preventScrollReset:R,viewTransition:b,defaultShouldRevalidate:N,...U},H)=>{let{useTransitions:Y}=_.useContext(Sa),X=xS(),q=ES(x,{relative:g}),K=m.toLowerCase()==="get"?"get":"post",Z=typeof x=="string"&&Wf.test(x),V=k=>{if(p&&p(k),k.defaultPrevented)return;k.preventDefault();let P=k.nativeEvent.submitter,et=(P==null?void 0:P.getAttribute("formmethod"))||m,st=()=>X(P||k.currentTarget,{fetcherKey:u,method:et,navigate:r,replace:f,state:d,relative:g,preventScrollReset:R,viewTransition:b,defaultShouldRevalidate:N});Y&&r!==!1?_.startTransition(()=>st()):st()};return _.createElement("form",{ref:H,method:K,action:q,onSubmit:c?p:V,...U,"data-discover":!Z&&n==="render"?"true":void 0})});pS.displayName="Form";function gS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mg(n){let u=_.useContext(cu);return Wt(u,gS(n)),u}function vS(n,{target:u,replace:r,mask:c,state:f,preventScrollReset:d,relative:m,viewTransition:x,defaultShouldRevalidate:p,useTransitions:g}={}){let R=rg(),b=Tl(),N=Rs(n,{relative:m});return _.useCallback(U=>{if($b(U,u)){U.preventDefault();let H=r!==void 0?r:ys(b)===ys(N),Y=()=>R(n,{replace:H,mask:c,state:f,preventScrollReset:d,relative:m,viewTransition:x,defaultShouldRevalidate:p});g?_.startTransition(()=>Y()):Y()}},[b,R,N,r,c,f,u,n,d,m,x,p,g])}var bS=0,SS=()=>`__${String(++bS)}__`;function xS(){let{router:n}=mg("useSubmit"),{basename:u}=_.useContext(Sa),r=qb(),c=n.fetch,f=n.navigate;return _.useCallback(async(d,m={})=>{let{action:x,method:p,encType:g,formData:R,body:b}=Pb(d,u);if(m.navigate===!1){let N=m.fetcherKey||SS();await c(N,r,m.action||x,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:R,body:b,formMethod:m.method||p,formEncType:m.encType||g,flushSync:m.flushSync})}else await f(m.action||x,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:R,body:b,formMethod:m.method||p,formEncType:m.encType||g,replace:m.replace,state:m.state,fromRouteId:r,flushSync:m.flushSync,viewTransition:m.viewTransition})},[c,f,u,r])}function ES(n,{relative:u}={}){let{basename:r}=_.useContext(Sa),c=_.useContext(ka);Wt(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),d={...Rs(n||".",{relative:u})},m=Tl();if(n==null){d.search=m.search;let x=new URLSearchParams(d.search),p=x.getAll("index");if(p.some(R=>R==="")){x.delete("index"),p.filter(b=>b).forEach(b=>x.append("index",b));let R=x.toString();d.search=R?`?${R}`:""}}return(!n||n===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:Ca([r,d.pathname])),ys(d)}function TS(n,{relative:u}={}){let r=_.useContext(ng);Wt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=mg("useViewTransitionState"),f=Rs(n,{relative:u});if(!r.isTransitioning)return!1;let d=El(r.currentLocation.pathname,c)||r.currentLocation.pathname,m=El(r.nextLocation.pathname,c)||r.nextLocation.pathname;return ec(f.pathname,m)!=null||ec(f.pathname,d)!=null}var ou=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kn,un,Ji,jp,AS=(jp=class extends ou{constructor(){super();it(this,Kn);it(this,un);it(this,Ji);I(this,Ji,u=>{if(typeof window<"u"&&window.addEventListener){const r=()=>u();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,un)||this.setEventListener(E(this,Ji))}onUnsubscribe(){var u;this.hasListeners()||((u=E(this,un))==null||u.call(this),I(this,un,void 0))}setEventListener(u){var r;I(this,Ji,u),(r=E(this,un))==null||r.call(this),I(this,un,u(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(u){E(this,Kn)!==u&&(I(this,Kn,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(r=>{r(u)})}isFocused(){var u;return typeof E(this,Kn)=="boolean"?E(this,Kn):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},Kn=new WeakMap,un=new WeakMap,Ji=new WeakMap,jp),id=new AS,_S={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},sn,Ff,Lp,RS=(Lp=class{constructor(){it(this,sn,_S);it(this,Ff,!1)}setTimeoutProvider(n){I(this,sn,n)}setTimeout(n,u){return E(this,sn).setTimeout(n,u)}clearTimeout(n){E(this,sn).clearTimeout(n)}setInterval(n,u){return E(this,sn).setInterval(n,u)}clearInterval(n){E(this,sn).clearInterval(n)}},sn=new WeakMap,Ff=new WeakMap,Lp),Xn=new RS;function OS(n){setTimeout(n,0)}var NS=typeof window>"u"||"Deno"in globalThis;function Qe(){}function CS(n,u){return typeof n=="function"?n(u):n}function Df(n){return typeof n=="number"&&n>=0&&n!==1/0}function yg(n,u){return Math.max(n+(u||0)-Date.now(),0)}function yn(n,u){return typeof n=="function"?n(u):n}function ca(n,u){return typeof n=="function"?n(u):n}function sp(n,u){const{type:r="all",exact:c,fetchStatus:f,predicate:d,queryKey:m,stale:x}=n;if(m){if(c){if(u.queryHash!==ud(m,u.options))return!1}else if(!ps(u.queryKey,m))return!1}if(r!=="all"){const p=u.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof x=="boolean"&&u.isStale()!==x||f&&f!==u.state.fetchStatus||d&&!d(u))}function rp(n,u){const{exact:r,status:c,predicate:f,mutationKey:d}=n;if(d){if(!u.options.mutationKey)return!1;if(r){if(Pn(u.options.mutationKey)!==Pn(d))return!1}else if(!ps(u.options.mutationKey,d))return!1}return!(c&&u.state.status!==c||f&&!f(u))}function ud(n,u){return((u==null?void 0:u.queryKeyHashFn)||Pn)(n)}function Pn(n){return JSON.stringify(n,(u,r)=>zf(r)?Object.keys(r).sort().reduce((c,f)=>(c[f]=r[f],c),{}):r)}function ps(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(r=>ps(n[r],u[r])):!1}var MS=Object.prototype.hasOwnProperty;function pg(n,u,r=0){if(n===u)return n;if(r>500)return u;const c=cp(n)&&cp(u);if(!c&&!(zf(n)&&zf(u)))return u;const d=(c?n:Object.keys(n)).length,m=c?u:Object.keys(u),x=m.length,p=c?new Array(x):{};let g=0;for(let R=0;R<x;R++){const b=c?R:m[R],N=n[b],U=u[b];if(N===U){p[b]=N,(c?R<d:MS.call(n,b))&&g++;continue}if(N===null||U===null||typeof N!="object"||typeof U!="object"){p[b]=U;continue}const H=pg(N,U,r+1);p[b]=H,H===N&&g++}return d===x&&g===d?n:p}function lc(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const r in n)if(n[r]!==u[r])return!1;return!0}function cp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function zf(n){if(!op(n))return!1;const u=n.constructor;if(u===void 0)return!0;const r=u.prototype;return!(!op(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function op(n){return Object.prototype.toString.call(n)==="[object Object]"}function DS(n){return new Promise(u=>{Xn.setTimeout(u,n)})}function wf(n,u,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,u):r.structuralSharing!==!1?pg(n,u):u}function zS(n,u,r=0){const c=[...n,u];return r&&c.length>r?c.slice(1):c}function wS(n,u,r=0){const c=[u,...n];return r&&c.length>r?c.slice(0,-1):c}var sd=Symbol();function gg(n,u){return!n.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!n.queryFn||n.queryFn===sd?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function rd(n,u){return typeof n=="function"?n(...u):!!n}function US(n,u,r){let c=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=u()),c||(c=!0,f.aborted?r():f.addEventListener("abort",r,{once:!0})),f)}),n}var gs=(()=>{let n=()=>NS;return{isServer(){return n()},setIsServer(u){n=u}}})();function Uf(){let n,u;const r=new Promise((f,d)=>{n=f,u=d});r.status="pending",r.catch(()=>{});function c(f){Object.assign(r,f),delete r.resolve,delete r.reject}return r.resolve=f=>{c({status:"fulfilled",value:f}),n(f)},r.reject=f=>{c({status:"rejected",reason:f}),u(f)},r}var jS=OS;function LS(){let n=[],u=0,r=x=>{x()},c=x=>{x()},f=jS;const d=x=>{u?n.push(x):f(()=>{r(x)})},m=()=>{const x=n;n=[],x.length&&f(()=>{c(()=>{x.forEach(p=>{r(p)})})})};return{batch:x=>{let p;u++;try{p=x()}finally{u--,u||m()}return p},batchCalls:x=>(...p)=>{d(()=>{x(...p)})},schedule:d,setNotifyFunction:x=>{r=x},setBatchNotifyFunction:x=>{c=x},setScheduler:x=>{f=x}}}var ge=LS(),Fi,rn,$i,Hp,HS=(Hp=class extends ou{constructor(){super();it(this,Fi,!0);it(this,rn);it(this,$i);I(this,$i,u=>{if(typeof window<"u"&&window.addEventListener){const r=()=>u(!0),c=()=>u(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){E(this,rn)||this.setEventListener(E(this,$i))}onUnsubscribe(){var u;this.hasListeners()||((u=E(this,rn))==null||u.call(this),I(this,rn,void 0))}setEventListener(u){var r;I(this,$i,u),(r=E(this,rn))==null||r.call(this),I(this,rn,u(this.setOnline.bind(this)))}setOnline(u){E(this,Fi)!==u&&(I(this,Fi,u),this.listeners.forEach(c=>{c(u)}))}isOnline(){return E(this,Fi)}},Fi=new WeakMap,rn=new WeakMap,$i=new WeakMap,Hp),nc=new HS;function BS(n){return Math.min(1e3*2**n,3e4)}function vg(n){return(n??"online")==="online"?nc.isOnline():!0}var jf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function bg(n){let u=!1,r=0,c;const f=Uf(),d=()=>f.status!=="pending",m=Y=>{var X;if(!d()){const q=new jf(Y);N(q),(X=n.onCancel)==null||X.call(n,q)}},x=()=>{u=!0},p=()=>{u=!1},g=()=>id.isFocused()&&(n.networkMode==="always"||nc.isOnline())&&n.canRun(),R=()=>vg(n.networkMode)&&n.canRun(),b=Y=>{d()||(c==null||c(),f.resolve(Y))},N=Y=>{d()||(c==null||c(),f.reject(Y))},U=()=>new Promise(Y=>{var X;c=q=>{(d()||g())&&Y(q)},(X=n.onPause)==null||X.call(n)}).then(()=>{var Y;c=void 0,d()||(Y=n.onContinue)==null||Y.call(n)}),H=()=>{if(d())return;let Y;const X=r===0?n.initialPromise:void 0;try{Y=X??n.fn()}catch(q){Y=Promise.reject(q)}Promise.resolve(Y).then(b).catch(q=>{var P;if(d())return;const K=n.retry??(gs.isServer()?0:3),Z=n.retryDelay??BS,V=typeof Z=="function"?Z(r,q):Z,k=K===!0||typeof K=="number"&&r<K||typeof K=="function"&&K(r,q);if(u||!k){N(q);return}r++,(P=n.onFail)==null||P.call(n,r,q),DS(V).then(()=>g()?void 0:U()).then(()=>{u?N(q):H()})})};return{promise:f,status:()=>f.status,cancel:m,continue:()=>(c==null||c(),f),cancelRetry:x,continueRetry:p,canStart:R,start:()=>(R()?H():U().then(H),f)}}var Zn,Bp,Sg=(Bp=class{constructor(){it(this,Zn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Df(this.gcTime)&&I(this,Zn,Xn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(gs.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,Zn)!==void 0&&(Xn.clearTimeout(E(this,Zn)),I(this,Zn,void 0))}},Zn=new WeakMap,Bp);function qS(n){return{onFetch:(u,r)=>{var R,b,N,U,H;const c=u.options,f=(N=(b=(R=u.fetchOptions)==null?void 0:R.meta)==null?void 0:b.fetchMore)==null?void 0:N.direction,d=((U=u.state.data)==null?void 0:U.pages)||[],m=((H=u.state.data)==null?void 0:H.pageParams)||[];let x={pages:[],pageParams:[]},p=0;const g=async()=>{let Y=!1;const X=Z=>{US(Z,()=>u.signal,()=>Y=!0)},q=gg(u.options,u.fetchOptions),K=async(Z,V,k)=>{if(Y)return Promise.reject(u.signal.reason);if(V==null&&Z.pages.length)return Promise.resolve(Z);const et=(()=>{const Jt={client:u.client,queryKey:u.queryKey,pageParam:V,direction:k?"backward":"forward",meta:u.options.meta};return X(Jt),Jt})(),st=await q(et),{maxPages:gt}=u.options,Ot=k?wS:zS;return{pages:Ot(Z.pages,st,gt),pageParams:Ot(Z.pageParams,V,gt)}};if(f&&d.length){const Z=f==="backward",V=Z?QS:fp,k={pages:d,pageParams:m},P=V(c,k);x=await K(k,P,Z)}else{const Z=n??d.length;do{const V=p===0?m[0]??c.initialPageParam:fp(c,x);if(p>0&&V==null)break;x=await K(x,V),p++}while(p<Z)}return x};u.options.persister?u.fetchFn=()=>{var Y,X;return(X=(Y=u.options).persister)==null?void 0:X.call(Y,g,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},r)}:u.fetchFn=g}}}function fp(n,{pages:u,pageParams:r}){const c=u.length-1;return u.length>0?n.getNextPageParam(u[c],u,r[c],r):void 0}function QS(n,{pages:u,pageParams:r}){var c;return u.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,u[0],u,r[0],r):void 0}var Wi,Vn,Ii,ba,kn,xe,bs,Jn,ra,xg,pl,qp,YS=(qp=class extends Sg{constructor(u){super();it(this,ra);it(this,Wi);it(this,Vn);it(this,Ii);it(this,ba);it(this,kn);it(this,xe);it(this,bs);it(this,Jn);I(this,Jn,!1),I(this,bs,u.defaultOptions),this.setOptions(u.options),this.observers=[],I(this,kn,u.client),I(this,ba,E(this,kn).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,I(this,Vn,hp(this.options)),this.state=u.state??E(this,Vn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return E(this,Wi)}get promise(){var u;return(u=E(this,xe))==null?void 0:u.promise}setOptions(u){if(this.options={...E(this,bs),...u},u!=null&&u._type&&I(this,Wi,u._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=hp(this.options);r.data!==void 0&&(this.setState(dp(r.data,r.dataUpdatedAt)),I(this,Vn,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,ba).remove(this)}setData(u,r){const c=wf(this.state.data,u,this.options);return yt(this,ra,pl).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(u){yt(this,ra,pl).call(this,{type:"setState",state:u})}cancel(u){var c,f;const r=(c=E(this,xe))==null?void 0:c.promise;return(f=E(this,xe))==null||f.cancel(u),r?r.then(Qe).catch(Qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,Vn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(u=>ca(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>yn(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!yg(this.state.dataUpdatedAt,u)}onFocus(){var r;const u=this.observers.find(c=>c.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(r=E(this,xe))==null||r.continue()}onOnline(){var r;const u=this.observers.find(c=>c.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(r=E(this,xe))==null||r.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),E(this,ba).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(r=>r!==u),this.observers.length||(E(this,xe)&&(E(this,Jn)||yt(this,ra,xg).call(this)?E(this,xe).cancel({revert:!0}):E(this,xe).cancelRetry()),this.scheduleGc()),E(this,ba).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||yt(this,ra,pl).call(this,{type:"invalidate"})}async fetch(u,r){var g,R,b,N,U,H,Y,X,q,K,Z;if(this.state.fetchStatus!=="idle"&&((g=E(this,xe))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,xe))return E(this,xe).continueRetry(),E(this,xe).promise}if(u&&this.setOptions(u),!this.options.queryFn){const V=this.observers.find(k=>k.options.queryFn);V&&this.setOptions(V.options)}const c=new AbortController,f=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(I(this,Jn,!0),c.signal)})},d=()=>{const V=gg(this.options,r),P=(()=>{const et={client:E(this,kn),queryKey:this.queryKey,meta:this.meta};return f(et),et})();return I(this,Jn,!1),this.options.persister?this.options.persister(V,P,this):V(P)},x=(()=>{const V={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,kn),state:this.state,fetchFn:d};return f(V),V})(),p=E(this,Wi)==="infinite"?qS(this.options.pages):this.options.behavior;p==null||p.onFetch(x,this),I(this,Ii,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((R=x.fetchOptions)==null?void 0:R.meta))&&yt(this,ra,pl).call(this,{type:"fetch",meta:(b=x.fetchOptions)==null?void 0:b.meta}),I(this,xe,bg({initialPromise:r==null?void 0:r.initialPromise,fn:x.fetchFn,onCancel:V=>{V instanceof jf&&V.revert&&this.setState({...E(this,Ii),fetchStatus:"idle"}),c.abort()},onFail:(V,k)=>{yt(this,ra,pl).call(this,{type:"failed",failureCount:V,error:k})},onPause:()=>{yt(this,ra,pl).call(this,{type:"pause"})},onContinue:()=>{yt(this,ra,pl).call(this,{type:"continue"})},retry:x.options.retry,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode,canRun:()=>!0}));try{const V=await E(this,xe).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(U=(N=E(this,ba).config).onSuccess)==null||U.call(N,V,this),(Y=(H=E(this,ba).config).onSettled)==null||Y.call(H,V,this.state.error,this),V}catch(V){if(V instanceof jf){if(V.silent)return E(this,xe).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw yt(this,ra,pl).call(this,{type:"error",error:V}),(q=(X=E(this,ba).config).onError)==null||q.call(X,V,this),(Z=(K=E(this,ba).config).onSettled)==null||Z.call(K,this.state.data,V,this),V}finally{this.scheduleGc()}}},Wi=new WeakMap,Vn=new WeakMap,Ii=new WeakMap,ba=new WeakMap,kn=new WeakMap,xe=new WeakMap,bs=new WeakMap,Jn=new WeakMap,ra=new WeakSet,xg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},pl=function(u){const r=c=>{switch(u.type){case"failed":return{...c,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Eg(c.data,this.options),fetchMeta:u.meta??null};case"success":const f={...c,...dp(u.data,u.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return I(this,Ii,u.manual?f:void 0),f;case"error":const d=u.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...u.state}}};this.state=r(this.state),ge.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),E(this,ba).notify({query:this,type:"updated",action:u})})},qp);function Eg(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vg(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function dp(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hp(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,r=u!==void 0,c=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $e,_t,Ss,qe,Fn,Pi,gl,cn,xs,tu,eu,$n,Wn,on,au,Ut,hs,Lf,Hf,Bf,qf,Qf,Yf,Gf,Tg,Qp,GS=(Qp=class extends ou{constructor(u,r){super();it(this,Ut);it(this,$e);it(this,_t);it(this,Ss);it(this,qe);it(this,Fn);it(this,Pi);it(this,gl);it(this,cn);it(this,xs);it(this,tu);it(this,eu);it(this,$n);it(this,Wn);it(this,on);it(this,au,new Set);this.options=r,I(this,$e,u),I(this,cn,null),I(this,gl,Uf()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,_t).addObserver(this),mp(E(this,_t),this.options)?yt(this,Ut,hs).call(this):this.updateResult(),yt(this,Ut,qf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xf(E(this,_t),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xf(E(this,_t),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,yt(this,Ut,Qf).call(this),yt(this,Ut,Yf).call(this),E(this,_t).removeObserver(this)}setOptions(u){const r=this.options,c=E(this,_t);if(this.options=E(this,$e).defaultQueryOptions(u),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ca(this.options.enabled,E(this,_t))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");yt(this,Ut,Gf).call(this),E(this,_t).setOptions(this.options),r._defaulted&&!lc(this.options,r)&&E(this,$e).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,_t),observer:this});const f=this.hasListeners();f&&yp(E(this,_t),c,this.options,r)&&yt(this,Ut,hs).call(this),this.updateResult(),f&&(E(this,_t)!==c||ca(this.options.enabled,E(this,_t))!==ca(r.enabled,E(this,_t))||yn(this.options.staleTime,E(this,_t))!==yn(r.staleTime,E(this,_t)))&&yt(this,Ut,Lf).call(this);const d=yt(this,Ut,Hf).call(this);f&&(E(this,_t)!==c||ca(this.options.enabled,E(this,_t))!==ca(r.enabled,E(this,_t))||d!==E(this,on))&&yt(this,Ut,Bf).call(this,d)}getOptimisticResult(u){const r=E(this,$e).getQueryCache().build(E(this,$e),u),c=this.createResult(r,u);return KS(this,c)&&(I(this,qe,c),I(this,Pi,this.options),I(this,Fn,E(this,_t).state)),c}getCurrentResult(){return E(this,qe)}trackResult(u,r){return new Proxy(u,{get:(c,f)=>(this.trackProp(f),r==null||r(f),f==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,gl).status==="pending"&&E(this,gl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,f))})}trackProp(u){E(this,au).add(u)}getCurrentQuery(){return E(this,_t)}refetch({...u}={}){return this.fetch({...u})}fetchOptimistic(u){const r=E(this,$e).defaultQueryOptions(u),c=E(this,$e).getQueryCache().build(E(this,$e),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(u){return yt(this,Ut,hs).call(this,{...u,cancelRefetch:u.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,qe)))}createResult(u,r){var gt;const c=E(this,_t),f=this.options,d=E(this,qe),m=E(this,Fn),x=E(this,Pi),g=u!==c?u.state:E(this,Ss),{state:R}=u;let b={...R},N=!1,U;if(r._optimisticResults){const Ot=this.hasListeners(),Jt=!Ot&&mp(u,r),Bt=Ot&&yp(u,c,r,f);(Jt||Bt)&&(b={...b,...Eg(R.data,u.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:H,errorUpdatedAt:Y,status:X}=b;U=b.data;let q=!1;if(r.placeholderData!==void 0&&U===void 0&&X==="pending"){let Ot;d!=null&&d.isPlaceholderData&&r.placeholderData===(x==null?void 0:x.placeholderData)?(Ot=d.data,q=!0):Ot=typeof r.placeholderData=="function"?r.placeholderData((gt=E(this,eu))==null?void 0:gt.state.data,E(this,eu)):r.placeholderData,Ot!==void 0&&(X="success",U=wf(d==null?void 0:d.data,Ot,r),N=!0)}if(r.select&&U!==void 0&&!q)if(d&&U===(m==null?void 0:m.data)&&r.select===E(this,xs))U=E(this,tu);else try{I(this,xs,r.select),U=r.select(U),U=wf(d==null?void 0:d.data,U,r),I(this,tu,U),I(this,cn,null)}catch(Ot){I(this,cn,Ot)}E(this,cn)&&(H=E(this,cn),U=E(this,tu),Y=Date.now(),X="error");const K=b.fetchStatus==="fetching",Z=X==="pending",V=X==="error",k=Z&&K,P=U!==void 0,st={status:X,fetchStatus:b.fetchStatus,isPending:Z,isSuccess:X==="success",isError:V,isInitialLoading:k,isLoading:k,data:U,dataUpdatedAt:b.dataUpdatedAt,error:H,errorUpdatedAt:Y,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:u.isFetched(),isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:K,isRefetching:K&&!Z,isLoadingError:V&&!P,isPaused:b.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:V&&P,isStale:cd(u,r),refetch:this.refetch,promise:E(this,gl),isEnabled:ca(r.enabled,u)!==!1};if(this.options.experimental_prefetchInRender){const Ot=st.data!==void 0,Jt=st.status==="error"&&!Ot,Bt=zt=>{Jt?zt.reject(st.error):Ot&&zt.resolve(st.data)},je=()=>{const zt=I(this,gl,st.promise=Uf());Bt(zt)},fe=E(this,gl);switch(fe.status){case"pending":u.queryHash===c.queryHash&&Bt(fe);break;case"fulfilled":(Jt||st.data!==fe.value)&&je();break;case"rejected":(!Jt||st.error!==fe.reason)&&je();break}}return st}updateResult(){const u=E(this,qe),r=this.createResult(E(this,_t),this.options);if(I(this,Fn,E(this,_t).state),I(this,Pi,this.options),E(this,Fn).data!==void 0&&I(this,eu,E(this,_t)),lc(r,u))return;I(this,qe,r);const c=()=>{if(!u)return!0;const{notifyOnChangeProps:f}=this.options,d=typeof f=="function"?f():f;if(d==="all"||!d&&!E(this,au).size)return!0;const m=new Set(d??E(this,au));return this.options.throwOnError&&m.add("error"),Object.keys(E(this,qe)).some(x=>{const p=x;return E(this,qe)[p]!==u[p]&&m.has(p)})};yt(this,Ut,Tg).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&yt(this,Ut,qf).call(this)}},$e=new WeakMap,_t=new WeakMap,Ss=new WeakMap,qe=new WeakMap,Fn=new WeakMap,Pi=new WeakMap,gl=new WeakMap,cn=new WeakMap,xs=new WeakMap,tu=new WeakMap,eu=new WeakMap,$n=new WeakMap,Wn=new WeakMap,on=new WeakMap,au=new WeakMap,Ut=new WeakSet,hs=function(u){yt(this,Ut,Gf).call(this);let r=E(this,_t).fetch(this.options,u);return u!=null&&u.throwOnError||(r=r.catch(Qe)),r},Lf=function(){yt(this,Ut,Qf).call(this);const u=yn(this.options.staleTime,E(this,_t));if(gs.isServer()||E(this,qe).isStale||!Df(u))return;const c=yg(E(this,qe).dataUpdatedAt,u)+1;I(this,$n,Xn.setTimeout(()=>{E(this,qe).isStale||this.updateResult()},c))},Hf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,_t)):this.options.refetchInterval)??!1},Bf=function(u){yt(this,Ut,Yf).call(this),I(this,on,u),!(gs.isServer()||ca(this.options.enabled,E(this,_t))===!1||!Df(E(this,on))||E(this,on)===0)&&I(this,Wn,Xn.setInterval(()=>{(this.options.refetchIntervalInBackground||id.isFocused())&&yt(this,Ut,hs).call(this)},E(this,on)))},qf=function(){yt(this,Ut,Lf).call(this),yt(this,Ut,Bf).call(this,yt(this,Ut,Hf).call(this))},Qf=function(){E(this,$n)!==void 0&&(Xn.clearTimeout(E(this,$n)),I(this,$n,void 0))},Yf=function(){E(this,Wn)!==void 0&&(Xn.clearInterval(E(this,Wn)),I(this,Wn,void 0))},Gf=function(){const u=E(this,$e).getQueryCache().build(E(this,$e),this.options);if(u===E(this,_t))return;const r=E(this,_t);I(this,_t,u),I(this,Ss,u.state),this.hasListeners()&&(r==null||r.removeObserver(this),u.addObserver(this))},Tg=function(u){ge.batch(()=>{u.listeners&&this.listeners.forEach(r=>{r(E(this,qe))}),E(this,$e).getQueryCache().notify({query:E(this,_t),type:"observerResultsUpdated"})})},Qp);function XS(n,u){return ca(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&ca(u.retryOnMount,n)===!1)}function mp(n,u){return XS(n,u)||n.state.data!==void 0&&Xf(n,u,u.refetchOnMount)}function Xf(n,u,r){if(ca(u.enabled,n)!==!1&&yn(u.staleTime,n)!=="static"){const c=typeof r=="function"?r(n):r;return c==="always"||c!==!1&&cd(n,u)}return!1}function yp(n,u,r,c){return(n!==u||ca(c.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&cd(n,r)}function cd(n,u){return ca(u.enabled,n)!==!1&&n.isStaleByTime(yn(u.staleTime,n))}function KS(n,u){return!lc(n.getCurrentResult(),u)}var Es,Xa,Ue,In,Ka,ln,Yp,ZS=(Yp=class extends Sg{constructor(u){super();it(this,Ka);it(this,Es);it(this,Xa);it(this,Ue);it(this,In);I(this,Es,u.client),this.mutationId=u.mutationId,I(this,Ue,u.mutationCache),I(this,Xa,[]),this.state=u.state||Ag(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){E(this,Xa).includes(u)||(E(this,Xa).push(u),this.clearGcTimeout(),E(this,Ue).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){I(this,Xa,E(this,Xa).filter(r=>r!==u)),this.scheduleGc(),E(this,Ue).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){E(this,Xa).length||(this.state.status==="pending"?this.scheduleGc():E(this,Ue).remove(this))}continue(){var u;return((u=E(this,In))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var m,x,p,g,R,b,N,U,H,Y,X,q,K,Z,V,k,P,et;const r=()=>{yt(this,Ka,ln).call(this,{type:"continue"})},c={client:E(this,Es),meta:this.options.meta,mutationKey:this.options.mutationKey};I(this,In,bg({fn:()=>this.options.mutationFn?this.options.mutationFn(u,c):Promise.reject(new Error("No mutationFn found")),onFail:(st,gt)=>{yt(this,Ka,ln).call(this,{type:"failed",failureCount:st,error:gt})},onPause:()=>{yt(this,Ka,ln).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Ue).canRun(this)}));const f=this.state.status==="pending",d=!E(this,In).canStart();try{if(f)r();else{yt(this,Ka,ln).call(this,{type:"pending",variables:u,isPaused:d}),E(this,Ue).config.onMutate&&await E(this,Ue).config.onMutate(u,this,c);const gt=await((x=(m=this.options).onMutate)==null?void 0:x.call(m,u,c));gt!==this.state.context&&yt(this,Ka,ln).call(this,{type:"pending",context:gt,variables:u,isPaused:d})}const st=await E(this,In).start();return await((g=(p=E(this,Ue).config).onSuccess)==null?void 0:g.call(p,st,u,this.state.context,this,c)),await((b=(R=this.options).onSuccess)==null?void 0:b.call(R,st,u,this.state.context,c)),await((U=(N=E(this,Ue).config).onSettled)==null?void 0:U.call(N,st,null,this.state.variables,this.state.context,this,c)),await((Y=(H=this.options).onSettled)==null?void 0:Y.call(H,st,null,u,this.state.context,c)),yt(this,Ka,ln).call(this,{type:"success",data:st}),st}catch(st){try{await((q=(X=E(this,Ue).config).onError)==null?void 0:q.call(X,st,u,this.state.context,this,c))}catch(gt){Promise.reject(gt)}try{await((Z=(K=this.options).onError)==null?void 0:Z.call(K,st,u,this.state.context,c))}catch(gt){Promise.reject(gt)}try{await((k=(V=E(this,Ue).config).onSettled)==null?void 0:k.call(V,void 0,st,this.state.variables,this.state.context,this,c))}catch(gt){Promise.reject(gt)}try{await((et=(P=this.options).onSettled)==null?void 0:et.call(P,void 0,st,u,this.state.context,c))}catch(gt){Promise.reject(gt)}throw yt(this,Ka,ln).call(this,{type:"error",error:st}),st}finally{E(this,Ue).runNext(this)}}},Es=new WeakMap,Xa=new WeakMap,Ue=new WeakMap,In=new WeakMap,Ka=new WeakSet,ln=function(u){const r=c=>{switch(u.type){case"failed":return{...c,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...c,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:u.error,failureCount:c.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ge.batch(()=>{E(this,Xa).forEach(c=>{c.onMutationUpdate(u)}),E(this,Ue).notify({mutation:this,type:"updated",action:u})})},Yp);function Ag(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vl,Na,Ts,Gp,VS=(Gp=class extends ou{constructor(u={}){super();it(this,vl);it(this,Na);it(this,Ts);this.config=u,I(this,vl,new Set),I(this,Na,new Map),I(this,Ts,0)}build(u,r,c){const f=new ZS({client:u,mutationCache:this,mutationId:++kr(this,Ts)._,options:u.defaultMutationOptions(r),state:c});return this.add(f),f}add(u){E(this,vl).add(u);const r=Fr(u);if(typeof r=="string"){const c=E(this,Na).get(r);c?c.push(u):E(this,Na).set(r,[u])}this.notify({type:"added",mutation:u})}remove(u){if(E(this,vl).delete(u)){const r=Fr(u);if(typeof r=="string"){const c=E(this,Na).get(r);if(c)if(c.length>1){const f=c.indexOf(u);f!==-1&&c.splice(f,1)}else c[0]===u&&E(this,Na).delete(r)}}this.notify({type:"removed",mutation:u})}canRun(u){const r=Fr(u);if(typeof r=="string"){const c=E(this,Na).get(r),f=c==null?void 0:c.find(d=>d.state.status==="pending");return!f||f===u}else return!0}runNext(u){var c;const r=Fr(u);if(typeof r=="string"){const f=(c=E(this,Na).get(r))==null?void 0:c.find(d=>d!==u&&d.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ge.batch(()=>{E(this,vl).forEach(u=>{this.notify({type:"removed",mutation:u})}),E(this,vl).clear(),E(this,Na).clear()})}getAll(){return Array.from(E(this,vl))}find(u){const r={exact:!0,...u};return this.getAll().find(c=>rp(r,c))}findAll(u={}){return this.getAll().filter(r=>rp(u,r))}notify(u){ge.batch(()=>{this.listeners.forEach(r=>{r(u)})})}resumePausedMutations(){const u=this.getAll().filter(r=>r.state.isPaused);return ge.batch(()=>Promise.all(u.map(r=>r.continue().catch(Qe))))}},vl=new WeakMap,Na=new WeakMap,Ts=new WeakMap,Gp);function Fr(n){var u;return(u=n.options.scope)==null?void 0:u.id}var bl,fn,We,Sl,xl,tc,Kf,Xp,kS=(Xp=class extends ou{constructor(r,c){super();it(this,xl);it(this,bl);it(this,fn);it(this,We);it(this,Sl);I(this,bl,r),this.setOptions(c),this.bindMethods(),yt(this,xl,tc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var f;const c=this.options;this.options=E(this,bl).defaultMutationOptions(r),lc(this.options,c)||E(this,bl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,We),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Pn(c.mutationKey)!==Pn(this.options.mutationKey)?this.reset():((f=E(this,We))==null?void 0:f.state.status)==="pending"&&E(this,We).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,We))==null||r.removeObserver(this)}onMutationUpdate(r){yt(this,xl,tc).call(this),yt(this,xl,Kf).call(this,r)}getCurrentResult(){return E(this,fn)}reset(){var r;(r=E(this,We))==null||r.removeObserver(this),I(this,We,void 0),yt(this,xl,tc).call(this),yt(this,xl,Kf).call(this)}mutate(r,c){var f;return I(this,Sl,c),(f=E(this,We))==null||f.removeObserver(this),I(this,We,E(this,bl).getMutationCache().build(E(this,bl),this.options)),E(this,We).addObserver(this),E(this,We).execute(r)}},bl=new WeakMap,fn=new WeakMap,We=new WeakMap,Sl=new WeakMap,xl=new WeakSet,tc=function(){var c;const r=((c=E(this,We))==null?void 0:c.state)??Ag();I(this,fn,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Kf=function(r){ge.batch(()=>{var c,f,d,m,x,p,g,R;if(E(this,Sl)&&this.hasListeners()){const b=E(this,fn).variables,N=E(this,fn).context,U={client:E(this,bl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(f=(c=E(this,Sl)).onSuccess)==null||f.call(c,r.data,b,N,U)}catch(H){Promise.reject(H)}try{(m=(d=E(this,Sl)).onSettled)==null||m.call(d,r.data,null,b,N,U)}catch(H){Promise.reject(H)}}else if((r==null?void 0:r.type)==="error"){try{(p=(x=E(this,Sl)).onError)==null||p.call(x,r.error,b,N,U)}catch(H){Promise.reject(H)}try{(R=(g=E(this,Sl)).onSettled)==null||R.call(g,void 0,r.error,b,N,U)}catch(H){Promise.reject(H)}}}this.listeners.forEach(b=>{b(E(this,fn))})})},Xp),Za,Kp,JS=(Kp=class extends ou{constructor(u={}){super();it(this,Za);this.config=u,I(this,Za,new Map)}build(u,r,c){const f=r.queryKey,d=r.queryHash??ud(f,r);let m=this.get(d);return m||(m=new YS({client:u,queryKey:f,queryHash:d,options:u.defaultQueryOptions(r),state:c,defaultOptions:u.getQueryDefaults(f)}),this.add(m)),m}add(u){E(this,Za).has(u.queryHash)||(E(this,Za).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const r=E(this,Za).get(u.queryHash);r&&(u.destroy(),r===u&&E(this,Za).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){ge.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return E(this,Za).get(u)}getAll(){return[...E(this,Za).values()]}find(u){const r={exact:!0,...u};return this.getAll().find(c=>sp(r,c))}findAll(u={}){const r=this.getAll();return Object.keys(u).length>0?r.filter(c=>sp(u,c)):r}notify(u){ge.batch(()=>{this.listeners.forEach(r=>{r(u)})})}onFocus(){ge.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){ge.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},Za=new WeakMap,Kp),ae,dn,hn,lu,nu,mn,iu,uu,Zp,FS=(Zp=class{constructor(n={}){it(this,ae);it(this,dn);it(this,hn);it(this,lu);it(this,nu);it(this,mn);it(this,iu);it(this,uu);I(this,ae,n.queryCache||new JS),I(this,dn,n.mutationCache||new VS),I(this,hn,n.defaultOptions||{}),I(this,lu,new Map),I(this,nu,new Map),I(this,mn,0)}mount(){kr(this,mn)._++,E(this,mn)===1&&(I(this,iu,id.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,ae).onFocus())})),I(this,uu,nc.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,ae).onOnline())})))}unmount(){var n,u;kr(this,mn)._--,E(this,mn)===0&&((n=E(this,iu))==null||n.call(this),I(this,iu,void 0),(u=E(this,uu))==null||u.call(this),I(this,uu,void 0))}isFetching(n){return E(this,ae).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,dn).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const u=this.defaultQueryOptions({queryKey:n});return(r=E(this,ae).get(u.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),r=E(this,ae).build(this,u),c=r.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(yn(u.staleTime,r))&&this.prefetchQuery(u),Promise.resolve(c))}getQueriesData(n){return E(this,ae).findAll(n).map(({queryKey:u,state:r})=>{const c=r.data;return[u,c]})}setQueryData(n,u,r){const c=this.defaultQueryOptions({queryKey:n}),f=E(this,ae).get(c.queryHash),d=f==null?void 0:f.state.data,m=CS(u,d);if(m!==void 0)return E(this,ae).build(this,c).setData(m,{...r,manual:!0})}setQueriesData(n,u,r){return ge.batch(()=>E(this,ae).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,u,r)]))}getQueryState(n){var r;const u=this.defaultQueryOptions({queryKey:n});return(r=E(this,ae).get(u.queryHash))==null?void 0:r.state}removeQueries(n){const u=E(this,ae);ge.batch(()=>{u.findAll(n).forEach(r=>{u.remove(r)})})}resetQueries(n,u){const r=E(this,ae);return ge.batch(()=>(r.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const r={revert:!0,...u},c=ge.batch(()=>E(this,ae).findAll(n).map(f=>f.cancel(r)));return Promise.all(c).then(Qe).catch(Qe)}invalidateQueries(n,u={}){return ge.batch(()=>(E(this,ae).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},u)))}refetchQueries(n,u={}){const r={...u,cancelRefetch:u.cancelRefetch??!0},c=ge.batch(()=>E(this,ae).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,r);return r.throwOnError||(d=d.catch(Qe)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(Qe)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const r=E(this,ae).build(this,u);return r.isStaleByTime(yn(u.staleTime,r))?r.fetch(u):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Qe).catch(Qe)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Qe).catch(Qe)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return nc.isOnline()?E(this,dn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ae)}getMutationCache(){return E(this,dn)}getDefaultOptions(){return E(this,hn)}setDefaultOptions(n){I(this,hn,n)}setQueryDefaults(n,u){E(this,lu).set(Pn(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...E(this,lu).values()],r={};return u.forEach(c=>{ps(n,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(n,u){E(this,nu).set(Pn(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...E(this,nu).values()],r={};return u.forEach(c=>{ps(n,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const u={...E(this,hn).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=ud(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===sd&&(u.enabled=!1),u}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,hn).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,ae).clear(),E(this,dn).clear()}},ae=new WeakMap,dn=new WeakMap,hn=new WeakMap,lu=new WeakMap,nu=new WeakMap,mn=new WeakMap,iu=new WeakMap,uu=new WeakMap,Zp),_g=_.createContext(void 0),Os=n=>{const u=_.useContext(_g);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},$S=({client:n,children:u})=>(_.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),v.jsx(_g.Provider,{value:n,children:u})),Rg=_.createContext(!1),WS=()=>_.useContext(Rg);Rg.Provider;function IS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var PS=_.createContext(IS()),tx=()=>_.useContext(PS),ex=(n,u,r)=>{const c=r!=null&&r.state.error&&typeof n.throwOnError=="function"?rd(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||c)&&(u.isReset()||(n.retryOnMount=!1))},ax=n=>{_.useEffect(()=>{n.clearReset()},[n])},lx=({result:n,errorResetBoundary:u,throwOnError:r,query:c,suspense:f})=>n.isError&&!u.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||rd(r,[n.error,c])),nx=n=>{if(n.suspense){const r=f=>f==="static"?f:Math.max(f??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...f)=>r(c(...f)):r(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},ix=(n,u)=>n.isLoading&&n.isFetching&&!u,ux=(n,u)=>(n==null?void 0:n.suspense)&&u.isPending,pp=(n,u,r)=>u.fetchOptimistic(n).catch(()=>{r.clearReset()});function sx(n,u,r){var U,H,Y,X;const c=WS(),f=tx(),d=Os(),m=d.defaultQueryOptions(n);(H=(U=d.getDefaultOptions().queries)==null?void 0:U._experimental_beforeQuery)==null||H.call(U,m);const x=d.getQueryCache().get(m.queryHash),p=n.subscribed!==!1;m._optimisticResults=c?"isRestoring":p?"optimistic":void 0,nx(m),ex(m,f,x),ax(f);const g=!d.getQueryCache().get(m.queryHash),[R]=_.useState(()=>new u(d,m)),b=R.getOptimisticResult(m),N=!c&&p;if(_.useSyncExternalStore(_.useCallback(q=>{const K=N?R.subscribe(ge.batchCalls(q)):Qe;return R.updateResult(),K},[R,N]),()=>R.getCurrentResult(),()=>R.getCurrentResult()),_.useEffect(()=>{R.setOptions(m)},[m,R]),ux(m,b))throw pp(m,R,f);if(lx({result:b,errorResetBoundary:f,throwOnError:m.throwOnError,query:x,suspense:m.suspense}))throw b.error;if((X=(Y=d.getDefaultOptions().queries)==null?void 0:Y._experimental_afterQuery)==null||X.call(Y,m,b),m.experimental_prefetchInRender&&!gs.isServer()&&ix(b,c)){const q=g?pp(m,R,f):x==null?void 0:x.promise;q==null||q.catch(Qe).finally(()=>{R.updateResult()})}return m.notifyOnChangeProps?b:R.trackResult(b)}function od(n,u){return sx(n,GS)}function Og(n,u){const r=Os(),[c]=_.useState(()=>new kS(r,n));_.useEffect(()=>{c.setOptions(n)},[c,n]);const f=_.useSyncExternalStore(_.useCallback(m=>c.subscribe(ge.batchCalls(m)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=_.useCallback((m,x)=>{c.mutate(m,x).catch(Qe)},[c]);if(f.error&&rd(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}const Ng="mama-ui-theme";function rx(n){try{const u=n.getItem(Ng);return u==="light"||u==="dark"?u:null}catch{return null}}function cx(n,u){return n??(u?"dark":"light")}function ox(n,u){u.dataset.theme=n}function fx(n){return n==="light"?"dark":"light"}const gp=[{to:"/",label:"Board",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"},{to:"/triggers",label:"Triggers",d:"M13 10V3L4 14h7v7l9-11h-7z"},{to:"/tasks",label:"Tasks",d:"M9 11l3 3L22 4M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"}],dx=[{href:"/viewer",label:"Legacy viewer"}];function hx(){const[n,u]=_.useState(()=>{const d=document.documentElement.dataset.theme;if(d==="light"||d==="dark")return d;let m=null;try{m=rx(window.localStorage)}catch{m=null}const x=typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;return cx(m,x)}),r=()=>{const d=fx(n);ox(d,document.documentElement);try{window.localStorage.setItem(Ng,d)}catch{}u(d)},c=({isActive:d})=>`flex items-center gap-2 px-2 py-1.5 text-[13px] rounded-lg transition-all duration-150 ${d?"bg-sidebar-active text-text font-medium shadow-[var(--shadow-xs)]":"text-text-secondary hover:text-text hover:bg-sidebar-hover"}`,f=({isActive:d})=>`flex flex-col items-center justify-center gap-0.5 py-1.5 text-[10px] transition-colors ${d?"text-agent font-medium":"text-text-tertiary"}`;return v.jsxs(v.Fragment,{children:[v.jsxs("aside",{className:"hidden md:flex w-60 bg-sidebar flex-col flex-shrink-0 border-r border-sidebar-border",children:[v.jsx("div",{className:"px-3 pt-3 pb-1",children:v.jsxs("div",{className:"flex items-center gap-2.5 px-2 mb-3",children:[v.jsx("div",{className:"w-7 h-7 rounded-lg bg-agent flex items-center justify-center",children:v.jsx("span",{className:"text-on-agent text-xs font-bold",children:"M"})}),v.jsx("span",{className:"text-[14px] font-semibold text-text tracking-tight",children:"MAMA Operator"})]})}),v.jsxs("nav",{className:"flex-1 py-2 px-2 overflow-y-auto",children:[v.jsx("div",{className:"space-y-0.5",children:gp.map(d=>v.jsx(Mf,{to:d.to,end:d.to==="/",className:c,children:({isActive:m})=>v.jsxs(v.Fragment,{children:[v.jsx("svg",{className:`w-5 h-5 flex-shrink-0 ${m?"text-text":"text-text-tertiary"}`,fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:d.d})}),v.jsx("span",{className:"flex-1",children:d.label})]})},d.to))}),v.jsx("div",{className:"mt-4 pt-3 border-t border-sidebar-border space-y-0.5",children:dx.map(d=>v.jsx("a",{href:d.href,className:"flex items-center gap-2 px-2 py-1.5 text-[13px] rounded-lg text-text-tertiary hover:text-text hover:bg-sidebar-hover transition-colors",children:d.label},d.href))})]}),v.jsxs("div",{className:"px-3 py-3 border-t border-sidebar-border",children:[v.jsxs("button",{type:"button",onClick:r,"aria-label":`Switch to ${n==="dark"?"light":"dark"} theme`,className:"w-full flex items-center gap-2 px-2 py-1.5 text-[13px] rounded-lg text-text-secondary hover:text-text hover:bg-sidebar-hover transition-colors",children:[v.jsx("svg",{className:"w-5 h-5 text-text-tertiary",fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:n==="dark"?"M12 3v1.5m0 15V21m9-9h-1.5M4.5 12H3m15.364 6.364-1.06-1.06M6.696 6.696l-1.06-1.06m12.728 0-1.06 1.06M6.696 17.304l-1.06 1.06M16.5 12a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z":"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})}),v.jsx("span",{children:n==="dark"?"Light theme":"Dark theme"})]}),v.jsx("div",{className:"px-2 pt-2 text-[10px] text-text-tertiary",children:"MAMA Operator (beta)"})]})]}),v.jsxs("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 bg-surface border-t border-border z-50 flex justify-around",children:[gp.map(d=>v.jsx(Mf,{to:d.to,end:d.to==="/",className:f,children:({isActive:m})=>v.jsxs(v.Fragment,{children:[v.jsx("svg",{className:`w-5 h-5 ${m?"text-agent":"text-text-tertiary"}`,fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:d.d})}),v.jsx("span",{children:d.label})]})},d.to)),v.jsxs("button",{type:"button",onClick:r,"aria-label":`Switch to ${n==="dark"?"light":"dark"} theme`,className:"flex flex-col items-center justify-center gap-0.5 py-1.5 text-[10px] text-text-tertiary",children:[v.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:n==="dark"?"M12 3v1.5m0 15V21m9-9h-1.5M4.5 12H3m15.364 6.364-1.06-1.06M6.696 6.696l-1.06-1.06m12.728 0-1.06 1.06M6.696 17.304l-1.06 1.06M16.5 12a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z":"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})}),v.jsx("span",{children:"Theme"})]})]})]})}function mx(){return v.jsxs("div",{className:"flex h-full bg-bg",children:[v.jsx(hx,{}),v.jsx("main",{id:"app-scroll-container",className:"flex-1 min-w-0 overflow-y-auto pb-14 md:pb-0",children:v.jsx(Xb,{})})]})}async function Zi(n,u){const r=await fetch(n,{headers:{"content-type":"application/json"},...u});if(!r.ok)throw new Error(`API ${r.status}: ${await r.text()}`);return r.json()}const su={getReport:()=>Zi("/api/report"),getOperatorSummary:()=>Zi("/api/operator/summary"),listTriggers:()=>Zi("/api/operator/triggers"),listTasks:(n={})=>{const u=new URLSearchParams;return n.status&&u.set("status",n.status),n.source_channel&&u.set("source_channel",n.source_channel),u.set("limit",String(n.limit??50)),Zi(`/api/operator/tasks?${u.toString()}`)},updateTask:(n,u)=>Zi(`/api/operator/tasks/${n}`,{method:"PATCH",body:JSON.stringify(u)}),disableTrigger:async(n,u)=>(await Zi(`/api/operator/triggers/${encodeURIComponent(n)}/disable`,{method:"POST",body:JSON.stringify({reason:u})})).trigger};function yx(n){const u=new EventSource("/api/report/events");return u.addEventListener("report-update",r=>{try{n.onUpdate(JSON.parse(r.data))}catch{}}),n.onOpen&&u.addEventListener("open",n.onOpen),n.onDown&&u.addEventListener("error",n.onDown),()=>u.close()}const px=["briefing","action_required","decisions","pipeline"];function gx(n,u){const r=u;if(Array.isArray(r==null?void 0:r.slots)){const c={};for(const f of r.slots)c[f.slotId]=f;return c}if(r!=null&&r.deleted){const c={...n};return delete c[r.deleted],c}return r!=null&&r.slot&&r.html!==void 0?{...n,[r.slot]:{slotId:r.slot,html:r.html,priority:r.priority??0,updatedAt:Date.now()}}:n}function vx(n){const u=px,r=u.filter(f=>n[f]).map(f=>n[f]),c=Object.values(n).filter(f=>!u.includes(f.slotId)).sort((f,d)=>f.priority-d.priority);return[...r,...c]}/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function vp(n,u){(u==null||u>n.length)&&(u=n.length);for(var r=0,c=Array(u);r<u;r++)c[r]=n[r];return c}function bx(n){if(Array.isArray(n))return n}function Sx(n,u){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var c,f,d,m,x=[],p=!0,g=!1;try{if(d=(r=r.call(n)).next,u!==0)for(;!(p=(c=d.call(r)).done)&&(x.push(c.value),x.length!==u);p=!0);}catch(R){g=!0,f=R}finally{try{if(!p&&r.return!=null&&(m=r.return(),Object(m)!==m))return}finally{if(g)throw f}}return x}}function xx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ex(n,u){return bx(n)||Sx(n,u)||Tx(n,u)||xx()}function Tx(n,u){if(n){if(typeof n=="string")return vp(n,u);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vp(n,u):void 0}}const Cg=Object.entries,bp=Object.setPrototypeOf,Ax=Object.isFrozen,_x=Object.getPrototypeOf,Rx=Object.getOwnPropertyDescriptor;let Ne=Object.freeze,Ce=Object.seal,ki=Object.create,Mg=typeof Reflect<"u"&&Reflect,Zf=Mg.apply,Vf=Mg.construct;Ne||(Ne=function(u){return u});Ce||(Ce=function(u){return u});Zf||(Zf=function(u,r){for(var c=arguments.length,f=new Array(c>2?c-2:0),d=2;d<c;d++)f[d-2]=arguments[d];return u.apply(r,f)});Vf||(Vf=function(u){for(var r=arguments.length,c=new Array(r>1?r-1:0),f=1;f<r;f++)c[f-1]=arguments[f];return new u(...c)});const cs=oe(Array.prototype.forEach),Ox=oe(Array.prototype.lastIndexOf),Sp=oe(Array.prototype.pop),Vi=oe(Array.prototype.push),Nx=oe(Array.prototype.splice),nn=Array.isArray,ms=oe(String.prototype.toLowerCase),Tf=oe(String.prototype.toString),xp=oe(String.prototype.match),os=oe(String.prototype.replace),Ep=oe(String.prototype.indexOf),Cx=oe(String.prototype.trim),Mx=oe(Number.prototype.toString),Dx=oe(Boolean.prototype.toString),Tp=typeof BigInt>"u"?null:oe(BigInt.prototype.toString),Ap=typeof Symbol>"u"?null:oe(Symbol.prototype.toString),Se=oe(Object.prototype.hasOwnProperty),fs=oe(Object.prototype.toString),Oe=oe(RegExp.prototype.test),Gn=zx(TypeError);function oe(n){return function(u){u instanceof RegExp&&(u.lastIndex=0);for(var r=arguments.length,c=new Array(r>1?r-1:0),f=1;f<r;f++)c[f-1]=arguments[f];return Zf(n,u,c)}}function zx(n){return function(){for(var u=arguments.length,r=new Array(u),c=0;c<u;c++)r[c]=arguments[c];return Vf(n,r)}}function Rt(n,u){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ms;if(bp&&bp(n,null),!nn(u))return n;let c=u.length;for(;c--;){let f=u[c];if(typeof f=="string"){const d=r(f);d!==f&&(Ax(u)||(u[c]=d),f=d)}n[f]=!0}return n}function wx(n){for(let u=0;u<n.length;u++)Se(n,u)||(n[u]=null);return n}function Be(n){const u=ki(null);for(const c of Cg(n)){var r=Ex(c,2);const f=r[0],d=r[1];Se(n,f)&&(nn(d)?u[f]=wx(d):d&&typeof d=="object"&&d.constructor===Object?u[f]=Be(d):u[f]=d)}return u}function Ux(n){switch(typeof n){case"string":return n;case"number":return Mx(n);case"boolean":return Dx(n);case"bigint":return Tp?Tp(n):"0";case"symbol":return Ap?Ap(n):"Symbol()";case"undefined":return fs(n);case"function":case"object":{if(n===null)return fs(n);const u=n,r=Ga(u,"toString");if(typeof r=="function"){const c=r(u);return typeof c=="string"?c:fs(c)}return fs(n)}default:return fs(n)}}function Ga(n,u){for(;n!==null;){const c=Rx(n,u);if(c){if(c.get)return oe(c.get);if(typeof c.value=="function")return oe(c.value)}n=_x(n)}function r(){return null}return r}function jx(n){try{return Oe(n,""),!0}catch{return!1}}const _p=Ne(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Af=Ne(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_f=Ne(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Lx=Ne(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Rf=Ne(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Hx=Ne(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rp=Ne(["#text"]),Op=Ne(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Of=Ne(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Np=Ne(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$r=Ne(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bx=Ce(/{{[\w\W]*|^[\w\W]*}}/g),qx=Ce(/<%[\w\W]*|^[\w\W]*%>/g),Qx=Ce(/\${[\w\W]*/g),Yx=Ce(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gx=Ce(/^aria-[\-\w]+$/),Cp=Ce(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xx=Ce(/^(?:\w+script|data):/i),Kx=Ce(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zx=Ce(/^html$/i),Vx=Ce(/^[a-z][.\w]*(-[.\w]+)+$/i),Mp=Ce(/<[/\w!]/g),kx=Ce(/<[/\w]/g),Jx=Ce(/<\/no(script|embed|frames)/i),Fx=Ce(/\/>/i),Ya={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$x=function(){return typeof window>"u"?null:window},Wx=function(u,r){if(typeof u!="object"||typeof u.createPolicy!="function")return null;let c=null;const f="data-tt-policy-suffix";r&&r.hasAttribute(f)&&(c=r.getAttribute(f));const d="dompurify"+(c?"#"+c:"");try{return u.createPolicy(d,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},Dp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},an=function(u,r,c,f){return Se(u,r)&&nn(u[r])?Rt(f.base?Be(f.base):{},u[r],f.transform):c};function Dg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$x();const u=F=>Dg(F);if(u.version="3.4.11",u.removed=[],!n||!n.document||n.document.nodeType!==Ya.document||!n.Element)return u.isSupported=!1,u;let r=n.document;const c=r,f=c.currentScript;n.DocumentFragment;const d=n.HTMLTemplateElement,m=n.Node,x=n.Element,p=n.NodeFilter,g=n.NamedNodeMap;g===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const R=n.DOMParser,b=n.trustedTypes,N=x.prototype,U=Ga(N,"cloneNode"),H=Ga(N,"remove"),Y=Ga(N,"nextSibling"),X=Ga(N,"childNodes"),q=Ga(N,"parentNode"),K=Ga(N,"shadowRoot"),Z=Ga(N,"attributes"),V=m&&m.prototype?Ga(m.prototype,"nodeType"):null,k=m&&m.prototype?Ga(m.prototype,"nodeName"):null;if(typeof d=="function"){const F=r.createElement("template");F.content&&F.content.ownerDocument&&(r=F.content.ownerDocument)}let P,et="",st,gt=!1,Ot=0;const Jt=function(){if(Ot>0)throw Gn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Bt=function(y){Jt(),Ot++;try{return P.createHTML(y)}finally{Ot--}},je=function(y){Jt(),Ot++;try{return P.createScriptURL(y)}finally{Ot--}},fe=function(){return gt||(st=Wx(b,f),gt=!0),st},zt=r,j=zt.implementation,$=zt.createNodeIterator,ct=zt.createDocumentFragment,wt=zt.getElementsByTagName,jt=c.importNode;let T=Dp();u.isSupported=typeof Cg=="function"&&typeof q=="function"&&j&&j.createHTMLDocument!==void 0;const G=Bx,W=qx,at=Qx,ot=Yx,pt=Gx,Nt=Xx,ve=Kx,$t=Vx;let Al=Cp,Gt=null;const ti=Rt({},[..._p,...Af,..._f,...Rf,...Rp]);let Zt=null;const Ma=Rt({},[...Op,...Of,...Np,...$r]);let Kt=Object.seal(ki(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ja=null,Cs=null;const xa=Object.seal(ki(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ei=!0,pn=!0,ai=!1,Ms=!0,Da=!1,de=!0,Fa=!1,li=!1,ni=null,_l=null,fu=!1,$a=!1,ii=!1,ui=!1,Rl=!0,Me=!1;const Ea="user-content-";let Ee=!0,du=!1,Ol={},oa=null;const Nl=Rt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let gn=null;const vn=Rt({},["audio","video","img","source","image","track"]);let Ta=null;const bn=Rt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),za="http://www.w3.org/1998/Math/MathML",si="http://www.w3.org/2000/svg",Ie="http://www.w3.org/1999/xhtml";let wa=Ie,Wa=!1,hu=null;const Ds=Rt({},[za,si,Ie],Tf),mu=Ne(["mi","mo","mn","ms","mtext"]);let ri=Rt({},mu);const ci=Ne(["annotation-xml"]);let Sn=Rt({},ci);const zs=Rt({},["title","style","font","a","script"]);let Cl=null;const Ua=["application/xhtml+xml","text/html"],he="text/html";let vt=null,Pe=null;const yu=r.createElement("form"),ws=function(y){return y instanceof RegExp||y instanceof Function},pu=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Pe&&Pe===y)return;(!y||typeof y!="object")&&(y={}),y=Be(y),Cl=Ua.indexOf(y.PARSER_MEDIA_TYPE)===-1?he:y.PARSER_MEDIA_TYPE,vt=Cl==="application/xhtml+xml"?Tf:ms,Gt=an(y,"ALLOWED_TAGS",ti,{transform:vt}),Zt=an(y,"ALLOWED_ATTR",Ma,{transform:vt}),hu=an(y,"ALLOWED_NAMESPACES",Ds,{transform:Tf}),Ta=an(y,"ADD_URI_SAFE_ATTR",bn,{transform:vt,base:bn}),gn=an(y,"ADD_DATA_URI_TAGS",vn,{transform:vt,base:vn}),oa=an(y,"FORBID_CONTENTS",Nl,{transform:vt}),Ja=an(y,"FORBID_TAGS",Be({}),{transform:vt}),Cs=an(y,"FORBID_ATTR",Be({}),{transform:vt}),Ol=Se(y,"USE_PROFILES")?y.USE_PROFILES&&typeof y.USE_PROFILES=="object"?Be(y.USE_PROFILES):y.USE_PROFILES:!1,ei=y.ALLOW_ARIA_ATTR!==!1,pn=y.ALLOW_DATA_ATTR!==!1,ai=y.ALLOW_UNKNOWN_PROTOCOLS||!1,Ms=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Da=y.SAFE_FOR_TEMPLATES||!1,de=y.SAFE_FOR_XML!==!1,Fa=y.WHOLE_DOCUMENT||!1,$a=y.RETURN_DOM||!1,ii=y.RETURN_DOM_FRAGMENT||!1,ui=y.RETURN_TRUSTED_TYPE||!1,fu=y.FORCE_BODY||!1,Rl=y.SANITIZE_DOM!==!1,Me=y.SANITIZE_NAMED_PROPS||!1,Ee=y.KEEP_CONTENT!==!1,du=y.IN_PLACE||!1,Al=jx(y.ALLOWED_URI_REGEXP)?y.ALLOWED_URI_REGEXP:Cp,wa=typeof y.NAMESPACE=="string"?y.NAMESPACE:Ie,ri=Se(y,"MATHML_TEXT_INTEGRATION_POINTS")&&y.MATHML_TEXT_INTEGRATION_POINTS&&typeof y.MATHML_TEXT_INTEGRATION_POINTS=="object"?Be(y.MATHML_TEXT_INTEGRATION_POINTS):Rt({},mu),Sn=Se(y,"HTML_INTEGRATION_POINTS")&&y.HTML_INTEGRATION_POINTS&&typeof y.HTML_INTEGRATION_POINTS=="object"?Be(y.HTML_INTEGRATION_POINTS):Rt({},ci);const D=Se(y,"CUSTOM_ELEMENT_HANDLING")&&y.CUSTOM_ELEMENT_HANDLING&&typeof y.CUSTOM_ELEMENT_HANDLING=="object"?Be(y.CUSTOM_ELEMENT_HANDLING):ki(null);if(Kt=ki(null),Se(D,"tagNameCheck")&&ws(D.tagNameCheck)&&(Kt.tagNameCheck=D.tagNameCheck),Se(D,"attributeNameCheck")&&ws(D.attributeNameCheck)&&(Kt.attributeNameCheck=D.attributeNameCheck),Se(D,"allowCustomizedBuiltInElements")&&typeof D.allowCustomizedBuiltInElements=="boolean"&&(Kt.allowCustomizedBuiltInElements=D.allowCustomizedBuiltInElements),Ce(Kt),Da&&(pn=!1),ii&&($a=!0),Ol&&(Gt=Rt({},Rp),Zt=ki(null),Ol.html===!0&&(Rt(Gt,_p),Rt(Zt,Op)),Ol.svg===!0&&(Rt(Gt,Af),Rt(Zt,Of),Rt(Zt,$r)),Ol.svgFilters===!0&&(Rt(Gt,_f),Rt(Zt,Of),Rt(Zt,$r)),Ol.mathMl===!0&&(Rt(Gt,Rf),Rt(Zt,Np),Rt(Zt,$r))),xa.tagCheck=null,xa.attributeCheck=null,Se(y,"ADD_TAGS")&&(typeof y.ADD_TAGS=="function"?xa.tagCheck=y.ADD_TAGS:nn(y.ADD_TAGS)&&(Gt===ti&&(Gt=Be(Gt)),Rt(Gt,y.ADD_TAGS,vt))),Se(y,"ADD_ATTR")&&(typeof y.ADD_ATTR=="function"?xa.attributeCheck=y.ADD_ATTR:nn(y.ADD_ATTR)&&(Zt===Ma&&(Zt=Be(Zt)),Rt(Zt,y.ADD_ATTR,vt))),Se(y,"ADD_URI_SAFE_ATTR")&&nn(y.ADD_URI_SAFE_ATTR)&&Rt(Ta,y.ADD_URI_SAFE_ATTR,vt),Se(y,"FORBID_CONTENTS")&&nn(y.FORBID_CONTENTS)&&(oa===Nl&&(oa=Be(oa)),Rt(oa,y.FORBID_CONTENTS,vt)),Se(y,"ADD_FORBID_CONTENTS")&&nn(y.ADD_FORBID_CONTENTS)&&(oa===Nl&&(oa=Be(oa)),Rt(oa,y.ADD_FORBID_CONTENTS,vt)),Ee&&(Gt["#text"]=!0),Fa&&Rt(Gt,["html","head","body"]),Gt.table&&(Rt(Gt,["tbody"]),delete Ja.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const J=P;P=y.TRUSTED_TYPES_POLICY;try{et=Bt("")}catch(lt){throw P=J,lt}}else y.TRUSTED_TYPES_POLICY===null?(P=void 0,et=""):(P===void 0&&(P=fe()),P&&typeof et=="string"&&(et=Bt("")));Ne&&Ne(y),Pe=y},gu=Rt({},[...Af,..._f,...Lx]),Ml=Rt({},[...Rf,...Hx]),vu=function(y,D,J){return D.namespaceURI===Ie?y==="svg":D.namespaceURI===za?y==="svg"&&(J==="annotation-xml"||ri[J]):!!gu[y]},Dl=function(y,D,J){return D.namespaceURI===Ie?y==="math":D.namespaceURI===si?y==="math"&&Sn[J]:!!Ml[y]},zl=function(y,D,J){return D.namespaceURI===si&&!Sn[J]||D.namespaceURI===za&&!ri[J]?!1:!Ml[y]&&(zs[y]||!gu[y])},xn=function(y){let D=q(y);(!D||!D.tagName)&&(D={namespaceURI:wa,tagName:"template"});const J=ms(y.tagName),lt=ms(D.tagName);return hu[y.namespaceURI]?y.namespaceURI===si?vu(J,D,lt):y.namespaceURI===za?Dl(J,D,lt):y.namespaceURI===Ie?zl(J,D,lt):!!(Cl==="application/xhtml+xml"&&hu[y.namespaceURI]):!1},Le=function(y){Vi(u.removed,{element:y});try{q(y).removeChild(y)}catch{if(H(y),!q(y))throw Gn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},le=function(y){const D=X(y);if(D){const lt=[];cs(D,dt=>{Vi(lt,dt)}),cs(lt,dt=>{try{H(dt)}catch{}})}const J=Z(y);if(J)for(let lt=J.length-1;lt>=0;--lt){const dt=J[lt],xt=dt&&dt.name;if(typeof xt=="string")try{y.removeAttribute(xt)}catch{}}},ja=function(y,D){try{Vi(u.removed,{attribute:D.getAttributeNode(y),from:D})}catch{Vi(u.removed,{attribute:null,from:D})}if(D.removeAttribute(y),y==="is")if($a||ii)try{Le(D)}catch{}else try{D.setAttribute(y,"")}catch{}},Us=function(y){const D=Z(y);if(D)for(let J=D.length-1;J>=0;--J){const lt=D[J],dt=lt&&lt.name;if(!(typeof dt!="string"||Zt[vt(dt)]))try{y.removeAttribute(dt)}catch{}}},Ia=function(y){const D=[y];for(;D.length>0;){const J=D.pop();(V?V(J):J.nodeType)===Ya.element&&Us(J);const dt=X(J);if(dt)for(let xt=dt.length-1;xt>=0;--xt)D.push(dt[xt])}},Pa=function(y){let D=null,J=null;if(fu)y="<remove></remove>"+y;else{const xt=xp(y,/^[\r\n\t ]+/);J=xt&&xt[0]}Cl==="application/xhtml+xml"&&wa===Ie&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");const lt=P?Bt(y):y;if(wa===Ie)try{D=new R().parseFromString(lt,Cl)}catch{}if(!D||!D.documentElement){D=j.createDocument(wa,"template",null);try{D.documentElement.innerHTML=Wa?et:lt}catch{}}const dt=D.body||D.documentElement;return y&&J&&dt.insertBefore(r.createTextNode(J),dt.childNodes[0]||null),wa===Ie?wt.call(D,Fa?"html":"body")[0]:Fa?D.documentElement:dt},js=function(y){return $.call(y.ownerDocument||y,y,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},En=function(y){return y=os(y,G," "),y=os(y,W," "),y=os(y,at," "),y},oi=function(y){var D;y.normalize();const J=$.call(y.ownerDocument||y,y,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null);let lt=J.nextNode();for(;lt;)lt.data=En(lt.data),lt=J.nextNode();const dt=(D=y.querySelectorAll)===null||D===void 0?void 0:D.call(y,"template");dt&&cs(dt,xt=>{Aa(xt.content)&&oi(xt.content)})},fi=function(y){const D=k?k(y):null;return typeof D!="string"||vt(D)!=="form"?!1:typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||y.attributes!==Z(y)||typeof y.removeAttribute!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function"||y.nodeType!==V(y)||y.childNodes!==X(y)},Aa=function(y){if(!V||typeof y!="object"||y===null)return!1;try{return V(y)===Ya.documentFragment}catch{return!1}},La=function(y){if(!V||typeof y!="object"||y===null)return!1;try{return typeof V(y)=="number"}catch{return!1}};function me(F,y,D){F.length!==0&&cs(F,J=>{J.call(u,y,D,Pe)})}const Ye=function(y,D){return!!(de&&y.hasChildNodes()&&!La(y.firstElementChild)&&Oe(Mp,y.textContent)&&Oe(Mp,y.innerHTML)||de&&y.namespaceURI===Ie&&D==="style"&&La(y.firstElementChild)||y.nodeType===Ya.processingInstruction||de&&y.nodeType===Ya.comment&&Oe(kx,y.data))},Ls=function(y,D){if(!Ja[D]&&Tn(D)&&(Kt.tagNameCheck instanceof RegExp&&Oe(Kt.tagNameCheck,D)||Kt.tagNameCheck instanceof Function&&Kt.tagNameCheck(D)))return!1;if(Ee&&!oa[D]){const J=q(y),lt=X(y);if(lt&&J){const dt=lt.length;for(let xt=dt-1;xt>=0;--xt){const It=du?lt[xt]:U(lt[xt],!0);J.insertBefore(It,Y(y))}}}return Le(y),!0},Hs=function(y){if(me(T.beforeSanitizeElements,y,null),fi(y))return Le(y),!0;const D=vt(k?k(y):y.nodeName);if(me(T.uponSanitizeElement,y,{tagName:D,allowedTags:Gt}),Ye(y,D))return Le(y),!0;if(Ja[D]||!(xa.tagCheck instanceof Function&&xa.tagCheck(D))&&!Gt[D])return Ls(y,D);if((V?V(y):y.nodeType)===Ya.element&&!xn(y)||(D==="noscript"||D==="noembed"||D==="noframes")&&Oe(Jx,y.innerHTML))return Le(y),!0;if(Da&&y.nodeType===Ya.text){const lt=En(y.textContent);y.textContent!==lt&&(Vi(u.removed,{element:y.cloneNode()}),y.textContent=lt)}return me(T.afterSanitizeElements,y,null),!1},di=function(y,D,J){if(Cs[D]||Rl&&(D==="id"||D==="name")&&(J in r||J in yu))return!1;const lt=Zt[D]||xa.attributeCheck instanceof Function&&xa.attributeCheck(D,y);if(!(pn&&Oe(ot,D))){if(!(ei&&Oe(pt,D))){if(lt){if(!Ta[D]){if(!Oe(Al,os(J,ve,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&y!=="script"&&Ep(J,"data:")===0&&gn[y])){if(!(ai&&!Oe(Nt,os(J,ve,"")))){if(J)return!1}}}}}else if(!(Tn(y)&&(Kt.tagNameCheck instanceof RegExp&&Oe(Kt.tagNameCheck,y)||Kt.tagNameCheck instanceof Function&&Kt.tagNameCheck(y))&&(Kt.attributeNameCheck instanceof RegExp&&Oe(Kt.attributeNameCheck,D)||Kt.attributeNameCheck instanceof Function&&Kt.attributeNameCheck(D,y))||D==="is"&&Kt.allowCustomizedBuiltInElements&&(Kt.tagNameCheck instanceof RegExp&&Oe(Kt.tagNameCheck,J)||Kt.tagNameCheck instanceof Function&&Kt.tagNameCheck(J))))return!1}}return!0},Bs=Rt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Tn=function(y){return!Bs[ms(y)]&&Oe($t,y)},rc=function(y,D,J,lt){if(P&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!J)switch(b.getAttributeType(y,D)){case"TrustedHTML":return Bt(lt);case"TrustedScriptURL":return je(lt)}return lt},Ge=function(y,D,J,lt){try{J?y.setAttributeNS(J,D,lt):y.setAttribute(D,lt),fi(y)?Le(y):Sp(u.removed)}catch{ja(D,y)}},hi=function(y){me(T.beforeSanitizeAttributes,y,null);const D=y.attributes;if(!D||fi(y))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Zt,forceKeepAttr:void 0};let lt=D.length;const dt=vt(y.nodeName);for(;lt--;){const xt=D[lt],It=xt.name,Pt=xt.namespaceURI,Xe=xt.value,De=vt(It),ta=Xe;let ye=It==="value"?ta:Cx(ta);if(J.attrName=De,J.attrValue=ye,J.keepAttr=!0,J.forceKeepAttr=void 0,me(T.uponSanitizeAttribute,y,J),ye=J.attrValue,Me&&(De==="id"||De==="name")&&Ep(ye,Ea)!==0&&(ja(It,y),ye=Ea+ye),de&&Oe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ye)){ja(It,y);continue}if(De==="attributename"&&xp(ye,"href")){ja(It,y);continue}if(!J.forceKeepAttr){if(!J.keepAttr){ja(It,y);continue}if(!Ms&&Oe(Fx,ye)){ja(It,y);continue}if(Da&&(ye=En(ye)),!di(dt,De,ye)){ja(It,y);continue}ye=rc(dt,De,Pt,ye),ye!==ta&&Ge(y,It,Pt,ye)}}me(T.afterSanitizeAttributes,y,null)},An=function(y){let D=null;const J=js(y);for(me(T.beforeSanitizeShadowDOM,y,null);D=J.nextNode();)if(me(T.uponSanitizeShadowNode,D,null),Hs(D),hi(D),Aa(D.content)&&An(D.content),(V?V(D):D.nodeType)===Ya.element){const dt=K(D);Aa(dt)&&(_n(dt),An(dt))}me(T.afterSanitizeShadowDOM,y,null)},_n=function(y){const D=[{node:y,shadow:null}];for(;D.length>0;){const J=D.pop();if(J.shadow){An(J.shadow);continue}const lt=J.node,xt=(V?V(lt):lt.nodeType)===Ya.element,It=X(lt);if(It)for(let Pt=It.length-1;Pt>=0;--Pt)D.push({node:It[Pt],shadow:null});if(xt){const Pt=k?k(lt):null;if(typeof Pt=="string"&&vt(Pt)==="template"){const Xe=lt.content;Aa(Xe)&&D.push({node:Xe,shadow:null})}}if(xt){const Pt=K(lt);Aa(Pt)&&D.push({node:null,shadow:Pt},{node:Pt,shadow:null})}}};return u.sanitize=function(F){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,J=null,lt=null,dt=null;if(Wa=!F,Wa&&(F="<!-->"),typeof F!="string"&&!La(F)&&(F=Ux(F),typeof F!="string"))throw Gn("dirty is not a string, aborting");if(!u.isSupported)return F;li?(Gt=ni,Zt=_l):pu(y),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(Gt=Be(Gt)),T.uponSanitizeAttribute.length>0&&(Zt=Be(Zt)),u.removed=[];const xt=du&&typeof F!="string"&&La(F);if(xt){const Xe=k?k(F):F.nodeName;if(typeof Xe=="string"){const De=vt(Xe);if(!Gt[De]||Ja[De])throw Gn("root node is forbidden and cannot be sanitized in-place")}if(fi(F))throw Gn("root node is clobbered and cannot be sanitized in-place");try{_n(F)}catch(De){throw le(F),De}}else if(La(F))D=Pa("<!---->"),J=D.ownerDocument.importNode(F,!0),J.nodeType===Ya.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?D=J:D.appendChild(J),_n(J);else{if(!$a&&!Da&&!Fa&&F.indexOf("<")===-1)return P&&ui?Bt(F):F;if(D=Pa(F),!D)return $a?null:ui?et:""}D&&fu&&Le(D.firstChild);const It=js(xt?F:D);try{for(;lt=It.nextNode();)Hs(lt),hi(lt),Aa(lt.content)&&An(lt.content)}catch(Xe){throw xt&&le(F),Xe}if(xt)return cs(u.removed,Xe=>{Xe.element&&Ia(Xe.element)}),Da&&oi(F),F;if($a){if(Da&&oi(D),ii)for(dt=ct.call(D.ownerDocument);D.firstChild;)dt.appendChild(D.firstChild);else dt=D;return(Zt.shadowroot||Zt.shadowrootmode)&&(dt=jt.call(c,dt,!0)),dt}let Pt=Fa?D.outerHTML:D.innerHTML;return Fa&&Gt["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&Oe(Zx,D.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
62
+ `+Pt),Da&&(Pt=En(Pt)),P&&ui?Bt(Pt):Pt},u.setConfig=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pu(F),li=!0,ni=Gt,_l=Zt},u.clearConfig=function(){Pe=null,li=!1,ni=null,_l=null,P=st,et=""},u.isValidAttribute=function(F,y,D){Pe||pu({});const J=vt(F),lt=vt(y);return di(J,lt,D)},u.addHook=function(F,y){typeof y=="function"&&Se(T,F)&&Vi(T[F],y)},u.removeHook=function(F,y){if(Se(T,F)){if(y!==void 0){const D=Ox(T[F],y);return D===-1?void 0:Nx(T[F],D,1)[0]}return Sp(T[F])}},u.removeHooks=function(F){Se(T,F)&&(T[F]=[])},u.removeAllHooks=function(){T=Dp()},u}var Ix=Dg();function Px(n){return Ix.sanitize(n,{FORBID_TAGS:["script","iframe","object","embed","form","link","meta","base"],ALLOW_DATA_ATTR:!1,USE_PROFILES:{html:!0}})}function Wr({label:n,value:u,tone:r="default"}){const c=r==="success"?"text-success":r==="warning"?"text-warning-text":r==="danger"?"text-danger":"text-text";return v.jsxs("div",{className:"bg-surface rounded-xl px-4 py-3 shadow-[var(--shadow-xs)] border border-border",children:[v.jsx("div",{className:"text-[11px] text-text-tertiary",children:n}),v.jsx("div",{className:`text-lg font-semibold ${c}`,children:u})]})}const kf=6e4,vs=60*kf,Jf=24*vs;function t1(n,u){if(!Number.isFinite(u))return"bg-surface-secondary text-text-tertiary";const r=Math.max(0,n-u);return r<vs?"bg-agent-light text-agent":r<=6*vs?"bg-surface-secondary text-text-tertiary":"bg-warning-soft text-warning-text"}function Ns(n,u){if(!Number.isFinite(u))return"unknown";const r=Math.max(0,n-u);return r<kf?"just now":r<vs?`${Math.floor(r/kf)}m ago`:r<Jf?`${Math.floor(r/vs)}h ago`:`${Math.floor(r/Jf)}d ago`}function e1(n,u){if(!u||!/^\d{4}-\d{2}-\d{2}$/.test(u)||!Number.isFinite(n))return"-";const[r,c,f]=u.split("-").map(Number),d=Date.UTC(r,c-1,f),m=new Date(d);if(m.getUTCFullYear()!==r||m.getUTCMonth()!==c-1||m.getUTCDate()!==f)return"-";const x=new Date(n),p=Date.UTC(x.getFullYear(),x.getMonth(),x.getDate()),g=Math.round((d-p)/Jf);return g===0?"D-day":g>0?`D-${g}`:`D+${Math.abs(g)}`}const a1=/#(\d+)(?![A-Za-z0-9_])/g;function l1(n){const u=[];let r=0;for(const c of n.matchAll(a1)){const f=c.index;f>r&&u.push({type:"text",value:n.slice(r,f)}),u.push({type:"task",value:c[0],taskId:c[1]}),r=f+c[0].length}return(r<n.length||u.length===0)&&u.push({type:"text",value:n.slice(r)}),u}function n1(n){const u=n.ownerDocument,r=[],c=f=>{if(f.nodeType===1){const d=f;if(d.removeAttribute("data-task-id"),["A","CODE","PRE"].includes(d.tagName.toUpperCase()))return}if(f.nodeType===3){r.push(f);return}for(const d of Array.from(f.childNodes))c(d)};c(n);for(const f of r){const d=l1(f.data);if(!d.some(x=>x.type==="task"))continue;const m=u.createDocumentFragment();for(const x of d){if(x.type==="text"){m.append(u.createTextNode(x.value));continue}const p=u.createElement("a");p.href=`/ui/tasks#task-${x.taskId}`,p.setAttribute("data-task-id",x.taskId),p.className="task-reference-link",p.textContent=x.value,m.append(p)}f.replaceWith(m)}}const zp="mama-ui-collapsed-slots",i1={briefing:"Briefing",action_required:"Action required",decisions:"Decisions",pipeline:"Pipeline"};function u1(n){if(n===null)return new Set;try{const u=JSON.parse(n);return Array.isArray(u)?new Set(u.filter(r=>typeof r=="string"&&r.length>0)):new Set}catch{return new Set}}function s1(n){return JSON.stringify(Array.from(n).sort())}function r1(n,u){const r=new Set(n);return r.has(u)?r.delete(u):r.add(u),r}function c1(n,u){return new Set(Array.from(n).filter(r=>u.has(r)))}function o1(n){const u=i1[n];if(u)return u;const r=n.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[^A-Za-z0-9]+/g," ").trim().toLowerCase();return r?r.charAt(0).toUpperCase()+r.slice(1):"Report"}function f1({slot:n,now:u,collapsed:r,onToggle:c}){const f=_.useRef(null),d=rg(),m=_.useId();return _.useEffect(()=>{const x=f.current;if(!x||(x.innerHTML=Px(n.html),n.slotId!=="pipeline"))return;n1(x);const p=g=>{if(g.button!==0||g.metaKey||g.ctrlKey||g.shiftKey||g.altKey)return;const R=g.target instanceof Element?g.target.closest("[data-task-id]"):null,b=R instanceof HTMLElement?R.dataset.taskId:void 0;!b||!/^\d+$/.test(b)||(g.preventDefault(),d(`/tasks#task-${b}`))};return x.addEventListener("click",p),()=>x.removeEventListener("click",p)},[d,n.html,n.slotId]),v.jsxs("section",{className:"min-w-0 bg-surface rounded-xl border border-border shadow-[var(--shadow-xs)] p-4","data-slot":n.slotId,children:[v.jsxs("button",{type:"button",className:"flex w-full items-center justify-between gap-3 rounded-lg mb-2 text-left","aria-expanded":!r,"aria-controls":m,onClick:()=>c(n.slotId),children:[v.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[v.jsx("svg",{className:`h-4 w-4 flex-shrink-0 text-text-tertiary transition-transform ${r?"":"rotate-90"}`,fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})}),v.jsx("span",{className:"truncate text-sm font-semibold text-text",children:o1(n.slotId)})]}),v.jsx("span",{className:`flex-shrink-0 text-[10px] font-medium rounded-full px-2 py-0.5 ${t1(u,n.updatedAt)}`,children:Ns(u,n.updatedAt)})]}),v.jsx("div",{id:m,ref:f,className:"report-slot-content",hidden:r})]})}function d1(){return v.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-6 py-16",children:[v.jsx("h2",{className:"text-lg font-semibold text-text mb-2",children:"No reports published yet"}),v.jsx("p",{className:"text-sm text-text-secondary max-w-md",children:"Slots appear here once an agent publishes them via report_publish. The heartbeat briefing or the dashboard agent fills the first slot."})]})}function h1(){const[n,u]=_.useState({}),[r,c]=_.useState(!0),[f,d]=_.useState(null),[m,x]=_.useState("reconnecting"),[p,g]=_.useState(()=>Date.now()),[R,b]=_.useState(()=>{try{return u1(window.localStorage.getItem(zp))}catch{return new Set}}),N=Os();_.useEffect(()=>{try{window.localStorage.setItem(zp,s1(R))}catch{}},[R]);const U=_.useCallback(async()=>{try{const K=await su.getReport(),Z={};for(const k of K.slots??[])Z[k.slotId]=k;u(Z),b(k=>c1(k,new Set(Object.keys(Z))));const V=Math.max(0,...(K.slots??[]).map(k=>k.updatedAt));V>0&&d(V)}catch{}finally{c(!1)}},[]);_.useEffect(()=>{U()},[U]),_.useEffect(()=>{const K=window.setInterval(()=>g(Date.now()),3e4);return()=>window.clearInterval(K)},[]),_.useEffect(()=>yx({onUpdate:Z=>{u(V=>gx(V,Z)),d(Date.now()),N.invalidateQueries({queryKey:["operatorSummary"]})},onOpen:()=>{x("live"),U(),N.invalidateQueries({queryKey:["operatorSummary"]})},onDown:()=>x("reconnecting")}),[U,N]);const{data:H}=od({queryKey:["operatorSummary"],queryFn:su.getOperatorSummary,refetchInterval:6e4}),Y=vx(n),X=_.useCallback(K=>{b(Z=>r1(Z,K))},[]),q=_.useCallback(()=>{U(),N.invalidateQueries({queryKey:["operatorSummary"]})},[U,N]);return v.jsxs("div",{className:"flex flex-col h-full min-w-0",children:[v.jsxs("div",{className:"flex items-center justify-between gap-2 px-4 py-3 border-b border-border flex-shrink-0 bg-surface",children:[v.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[v.jsx("h1",{className:"text-base font-semibold text-text",children:"Operator Board"}),v.jsx("span",{role:"status","aria-live":"polite",className:`text-[10px] font-semibold tracking-wide rounded-full px-2 py-0.5 ${m==="live"?"bg-success-soft text-success-text":"bg-warning-soft text-warning-text"}`,children:m==="live"?"LIVE":"RECONNECTING"}),f&&v.jsxs("span",{className:"text-[10px] text-text-tertiary whitespace-nowrap",children:["updated ",Ns(p,f)]})]}),v.jsx("button",{type:"button",onClick:q,className:"text-xs px-3 py-1.5 rounded bg-surface-hover hover:bg-surface-selected text-text-secondary transition-colors",children:"Refresh"})]}),v.jsx("div",{className:"flex-1 overflow-y-auto",children:v.jsxs("div",{className:"p-4 max-w-4xl min-w-0 mx-auto",children:[v.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-4",children:[v.jsx(Wr,{label:"Action required",value:(H==null?void 0:H.report.actionRequired)??"-",tone:H&&H.report.actionRequired>0?"warning":"default"}),v.jsx(Wr,{label:"Unconfirmed tasks",value:(H==null?void 0:H.tasks.unconfirmed)??"-",tone:H&&H.tasks.unconfirmed>0?"warning":"default"}),v.jsx(Wr,{label:"Failed trigger runs",value:(H==null?void 0:H.triggers.failed)??"-",tone:H&&H.triggers.failed>0?"danger":"default"}),v.jsx(Wr,{label:"Active triggers",value:(H==null?void 0:H.triggers.active)??"-"})]}),r?v.jsx("div",{className:"flex items-center justify-center py-16 text-sm text-text-tertiary",children:"Loading report..."}):Y.length===0?v.jsx(d1,{}):v.jsx("div",{className:"space-y-3",children:Y.map(K=>v.jsx(f1,{slot:K,now:p,collapsed:R.has(K.slotId),onToggle:X},K.slotId))})]})})]})}function m1(n){return!n}function y1(n){return n.current?!1:(n.current=!0,!0)}function p1(n){n.current=!1}const g1={active:"bg-success-soft text-success-text",disabled:"bg-surface-secondary text-text-secondary dark:text-text-tertiary",superseded:"bg-warning-soft text-warning-text"};function wp(n){return new Date(n).toLocaleString()}function we({label:n,children:u}){return v.jsxs("div",{children:[v.jsx("dt",{className:"text-[11px] font-semibold uppercase tracking-wide text-text-secondary",children:n}),v.jsx("dd",{className:"mt-1 break-words text-sm text-text",children:u})]})}function v1({trigger:n,now:u,opener:r,fallbackFocusRef:c,disabling:f,disableError:d,onDisable:m,onDismiss:x}){const p=_.useRef(null),g=_.useRef(null),R=_.useRef(!1),[b,N]=_.useState("");_.useEffect(()=>{var k;const K=p.current;if(!K)return;m1(K.open)&&(K.showModal(),(k=g.current)==null||k.focus());const Z=document.getElementById("app-scroll-container"),V=(Z==null?void 0:Z.style.overflowY)??"";return Z&&(Z.style.overflowY="hidden"),()=>{Z&&(Z.style.overflowY=V)}},[n.id]);const U=()=>{var K;(K=p.current)!=null&&K.open&&p.current.close()},H=()=>{x(),window.queueMicrotask(()=>{var K;r!=null&&r.isConnected?r.focus():(K=c.current)==null||K.focus()})},Y=async K=>{K.preventDefault();const Z=b.trim();if(!(!Z||f||!y1(R)))try{await m(n.id,Z),N("")}catch{return}finally{p1(R)}},X=Math.max(0,n.fired-n.succeeded-n.failed),q=n.match.scopeChannelIds??[];return v.jsx("dialog",{ref:p,className:"trigger-drawer","aria-labelledby":"trigger-drawer-title","aria-describedby":"trigger-drawer-description",onCancel:K=>{K.preventDefault(),U()},onClose:H,onClick:K=>{K.target===K.currentTarget&&U()},children:v.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-surface text-text",children:[v.jsxs("header",{className:"flex items-start justify-between gap-4 border-b border-border px-5 py-4",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("h2",{id:"trigger-drawer-title",className:"break-words text-lg font-semibold text-text",children:n.kind}),v.jsx("p",{id:"trigger-drawer-description",className:"mt-1 text-xs text-text-secondary",children:"Persisted trigger configuration and aggregate activity."})]}),v.jsx("button",{ref:g,type:"button",autoFocus:!0,onClick:U,className:"shrink-0 rounded-lg border border-border bg-surface-secondary px-3 py-1.5 text-xs font-medium text-text-secondary hover:bg-surface-hover",children:"Close"})]}),v.jsxs("div",{className:"min-h-0 flex-1 space-y-6 overflow-y-auto px-5 py-5",children:[v.jsxs("section",{"aria-labelledby":"trigger-identity-heading",children:[v.jsx("h3",{id:"trigger-identity-heading",className:"text-sm font-semibold text-text",children:"Identity"}),v.jsxs("dl",{className:"mt-3 grid grid-cols-2 gap-4",children:[v.jsx(we,{label:"Kind",children:n.kind}),v.jsx(we,{label:"ID",children:v.jsx("span",{className:"break-all",children:n.id})}),v.jsx(we,{label:"Status",children:v.jsx("span",{className:`rounded-full px-2 py-1 text-xs font-medium ${g1[n.status]}`,children:n.status})}),v.jsx(we,{label:"Author",children:n.authoredBy})]})]}),v.jsxs("section",{"aria-labelledby":"trigger-timing-heading",children:[v.jsx("h3",{id:"trigger-timing-heading",className:"text-sm font-semibold text-text",children:"Timing"}),v.jsxs("dl",{className:"mt-3 space-y-3",children:[v.jsx(we,{label:"Created",children:wp(n.createdAt)}),v.jsxs(we,{label:"Updated",children:[wp(n.updatedAt)," (",Ns(u,n.updatedAt),")"]})]})]}),v.jsxs("section",{"aria-labelledby":"trigger-activity-heading",children:[v.jsx("h3",{id:"trigger-activity-heading",className:"text-sm font-semibold text-text",children:"Aggregate activity"}),v.jsxs("dl",{className:"mt-3 grid grid-cols-2 gap-4",children:[v.jsx(we,{label:"Fired",children:n.fired}),v.jsx(we,{label:"Succeeded",children:n.succeeded}),v.jsx(we,{label:"Failed",children:n.failed}),v.jsx(we,{label:"Neutral / unclassified",children:X})]})]}),v.jsxs("section",{"aria-labelledby":"trigger-memory-heading",children:[v.jsx("h3",{id:"trigger-memory-heading",className:"text-sm font-semibold text-text",children:"Memory query"}),v.jsx("p",{className:"mt-2 whitespace-pre-wrap break-words text-sm text-text-secondary",children:n.memoryQuery})]}),v.jsxs("section",{"aria-labelledby":"trigger-match-heading",children:[v.jsx("h3",{id:"trigger-match-heading",className:"text-sm font-semibold text-text",children:"Match configuration"}),v.jsxs("dl",{className:"mt-3 space-y-3",children:[v.jsx(we,{label:"Keywords",children:n.match.keywords.length>0?n.match.keywords.join(", "):"None"}),v.jsx(we,{label:"Keyword mode",children:n.match.keywordMode}),v.jsx(we,{label:"Minimum confidence",children:n.match.minConfidence}),v.jsx(we,{label:"Scope channel IDs",children:q.length>0?q.join(", "):"All channels"})]})]}),v.jsxs("section",{"aria-labelledby":"trigger-evidence-heading",children:[v.jsx("h3",{id:"trigger-evidence-heading",className:"text-sm font-semibold text-text",children:"Required evidence"}),n.requiredEvidence.length>0?v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-sm text-text-secondary",children:n.requiredEvidence.map(K=>v.jsx("li",{className:"break-words",children:K},K))}):v.jsx("p",{className:"mt-2 text-sm text-text-secondary",children:"None"})]}),v.jsxs("section",{"aria-labelledby":"trigger-procedure-heading",children:[v.jsx("h3",{id:"trigger-procedure-heading",className:"text-sm font-semibold text-text",children:"Procedure"}),n.procedure.length>0?v.jsx("ol",{className:"mt-2 list-decimal space-y-3 pl-5",children:n.procedure.map((K,Z)=>v.jsxs("li",{className:"pl-1 text-sm text-text-secondary",children:[v.jsx("div",{className:"font-medium text-text",children:K.action}),v.jsx("div",{className:"mt-0.5 break-words",children:K.description})]},`${K.action}-${Z}`))}):v.jsx("p",{className:"mt-2 text-sm text-text-secondary",children:"No procedure steps"})]}),v.jsxs("section",{"aria-labelledby":"trigger-provenance-heading",children:[v.jsx("h3",{id:"trigger-provenance-heading",className:"text-sm font-semibold text-text",children:"Provenance"}),v.jsxs("dl",{className:"mt-3 space-y-3",children:[v.jsx(we,{label:"Created from",children:n.provenance.createdFrom}),v.jsx(we,{label:"Note",children:n.provenance.note||"None"})]})]}),n.disabledReason&&v.jsxs("section",{"aria-labelledby":"trigger-disabled-heading",children:[v.jsx("h3",{id:"trigger-disabled-heading",className:"text-sm font-semibold text-text",children:"Disabled reason"}),v.jsx("p",{className:"mt-2 break-words text-sm text-text-secondary",children:n.disabledReason})]}),n.status==="active"&&v.jsxs("section",{"aria-labelledby":"trigger-disable-heading",className:"border-t border-border pt-5",children:[v.jsx("h3",{id:"trigger-disable-heading",className:"text-sm font-semibold text-text",children:"Disable trigger"}),v.jsxs("form",{className:"mt-3 space-y-3",onSubmit:Y,children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"trigger-disable-reason",className:"text-xs text-text-secondary",children:"Reason"}),v.jsx("input",{id:"trigger-disable-reason",value:b,onChange:K=>N(K.target.value),required:!0,className:"mt-1 w-full rounded-lg border border-border bg-surface-selected px-3 py-2 text-sm text-text focus:outline-none focus:ring-2 focus:ring-agent"})]}),v.jsx("button",{type:"submit",disabled:!b.trim()||f,className:"rounded-lg bg-danger px-3 py-2 text-xs font-medium text-on-agent hover:opacity-80 disabled:opacity-40",children:f?"Disabling...":"Confirm disable"}),f&&v.jsx("p",{"aria-live":"polite",className:"text-xs text-text-secondary",children:"Disabling trigger..."}),d&&v.jsx("p",{role:"alert",className:"text-xs text-danger",children:d})]})]})]})]})})}const b1={active:"bg-success-soft text-success-text",disabled:"bg-surface-secondary text-text-secondary dark:text-text-tertiary",superseded:"bg-warning-soft text-warning-text"};function S1({trigger:n,now:u,onOpen:r}){const c=_.useRef(null),f=n.match.keywords.join(", ");return v.jsxs("tr",{className:"cursor-pointer border-b border-border last:border-0 hover:bg-surface-hover",onClick:()=>{c.current&&r(n.id,c.current)},children:[v.jsxs("td",{className:"min-w-64 px-3 py-3",children:[v.jsx("button",{ref:c,type:"button","aria-haspopup":"dialog",onClick:d=>{d.stopPropagation(),r(n.id,d.currentTarget)},className:"block max-w-80 text-left text-sm font-medium text-agent-hover underline-offset-2 hover:underline dark:text-agent",children:n.kind}),v.jsx("div",{className:"mt-1 max-w-80 truncate text-[11px] text-text-secondary dark:text-text-tertiary",children:f||"No keywords"})]}),v.jsx("td",{className:"whitespace-nowrap px-3 py-3",children:v.jsx("span",{className:`rounded-full px-2 py-1 text-xs font-medium ${b1[n.status]}`,children:n.status})}),v.jsx("td",{className:"whitespace-nowrap px-3 py-3 text-xs text-text-secondary",children:n.fired}),v.jsxs("td",{className:"whitespace-nowrap px-3 py-3 text-xs text-text-secondary",children:[n.succeeded," / ",n.failed]}),v.jsx("td",{className:"whitespace-nowrap px-3 py-3 text-xs text-text-secondary dark:text-text-tertiary",children:Ns(u,n.updatedAt)}),v.jsx("td",{className:"whitespace-nowrap px-3 py-3 text-xs text-text-secondary",children:n.authoredBy})]})}function x1(n,u,r){const c=u.trim().toLocaleLowerCase();return n.filter(f=>r!=="all"&&f.status!==r?!1:c?f.kind.toLocaleLowerCase().includes(c)||f.match.keywords.some(d=>d.toLocaleLowerCase().includes(c)):!0)}const E1=[{value:"all",label:"All"},{value:"active",label:"Active"},{value:"disabled",label:"Disabled"},{value:"superseded",label:"Superseded"}];function T1(){var V;const[n,u]=_.useState(""),[r,c]=_.useState("all"),[f,d]=_.useState(null),[m,x]=_.useState(null),[p,g]=_.useState(()=>Date.now()),R=_.useRef(null),b=Os(),N=od({queryKey:["operatorTriggers"],queryFn:su.listTriggers,refetchInterval:3e4}),U=Og({mutationFn:({id:k,reason:P})=>su.disableTrigger(k,P),onSuccess:k=>{b.setQueryData(["operatorTriggers"],P=>P&&{triggers:P.triggers.map(et=>et.id===k.id?k:et)}),b.invalidateQueries({queryKey:["operatorTriggers"]}),b.invalidateQueries({queryKey:["operatorSummary"]})}});_.useEffect(()=>{const k=window.setInterval(()=>g(Date.now()),3e4);return()=>window.clearInterval(k)},[]);const H=((V=N.data)==null?void 0:V.triggers)??[],Y=_.useMemo(()=>x1(H,n,r),[H,n,r]),X=f?H.find(k=>k.id===f)??null:null;_.useEffect(()=>{!N.data||!f||X||(d(null),window.queueMicrotask(()=>{var k;m!=null&&m.isConnected?m.focus():(k=R.current)==null||k.focus()}))},[m,N.data,f,X]);const q=(k,P)=>{U.reset(),x(P),d(k)},K=()=>{U.reset(),d(null),x(null)},Z=U.error?U.error instanceof Error?U.error.message:"Unable to disable trigger":null;return v.jsxs("div",{className:"flex min-h-full min-w-0 flex-col",children:[v.jsxs("header",{className:"border-b border-border bg-surface px-4 py-4",children:[v.jsx("h1",{className:"text-base font-semibold text-text",children:"Triggers"}),v.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:"Search persisted trigger configuration and aggregate outcomes."})]}),v.jsx("div",{className:"flex-1 p-4",children:v.jsxs("div",{className:"mx-auto max-w-6xl",children:[v.jsxs("div",{className:"mb-4 flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",children:[v.jsxs("div",{className:"w-full sm:max-w-sm",children:[v.jsx("label",{htmlFor:"trigger-search",className:"text-xs font-medium text-text-secondary",children:"Search triggers"}),v.jsx("input",{ref:R,id:"trigger-search",type:"search","aria-label":"Search triggers",value:n,onChange:k=>u(k.target.value),placeholder:"Search kind or keyword",className:"mt-1 w-full rounded-lg border border-border bg-surface px-3 py-2 text-sm text-text focus:outline-none focus:ring-2 focus:ring-agent"})]}),v.jsx("div",{className:"flex flex-wrap gap-2","aria-label":"Filter triggers by status",children:E1.map(k=>{const P=r===k.value;return v.jsx("button",{type:"button","aria-pressed":P,onClick:()=>c(k.value),className:`rounded-full px-3 py-1.5 text-xs font-medium transition-colors ${P?"bg-agent-hover text-on-agent dark:bg-agent":"bg-surface text-text-secondary hover:bg-surface-hover"}`,children:k.label},k.value)})})]}),v.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-surface shadow-[var(--shadow-xs)]",children:N.isPending?v.jsx("div",{className:"px-4 py-16 text-center text-sm text-text-secondary",children:"Loading triggers..."}):N.isError?v.jsx("div",{role:"alert",className:"px-4 py-16 text-center text-sm text-warning-text",children:N.error instanceof Error?N.error.message:"Unable to load triggers"}):H.length===0?v.jsxs("div",{className:"px-4 py-16 text-center",children:[v.jsx("div",{className:"text-sm font-medium text-text",children:"No triggers yet"}),v.jsx("div",{className:"mt-1 text-xs text-text-secondary",children:"The registry will populate when the agent authors a trigger."})]}):Y.length===0?v.jsxs("div",{className:"px-4 py-16 text-center",children:[v.jsx("div",{className:"text-sm font-medium text-text",children:"No matching triggers"}),v.jsx("div",{className:"mt-1 text-xs text-text-secondary",children:"Clear the search or select All to see more triggers."})]}):v.jsx("div",{className:"overflow-x-auto",children:v.jsxs("table",{className:"task-table",children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{children:"Trigger"}),v.jsx("th",{children:"Status"}),v.jsx("th",{children:"Fires"}),v.jsx("th",{children:"Success / Fail"}),v.jsx("th",{children:"Updated"}),v.jsx("th",{children:"Author"})]})}),v.jsx("tbody",{children:Y.map(k=>v.jsx(S1,{trigger:k,now:p,onOpen:q},k.id))})]})})})]})}),X&&v.jsx(v1,{trigger:X,now:p,opener:m,fallbackFocusRef:R,disabling:U.isPending,disableError:Z,onDisable:(k,P)=>U.mutateAsync({id:k,reason:P}),onDismiss:K})]})}const A1=["pending","in_progress","review","blocked","done","cancelled"],_1={pending:"bg-surface-secondary text-text-secondary",in_progress:"bg-agent-light text-agent-hover dark:text-agent",review:"bg-warning-soft text-warning-text",blocked:"bg-warning-soft text-warning-text",done:"bg-success-soft text-success-text",cancelled:"bg-surface-secondary text-text-secondary dark:text-text-tertiary"},R1={high:"bg-warning-soft text-warning-text",normal:"bg-surface-secondary text-text-secondary",low:"bg-surface-secondary text-text-secondary dark:text-text-tertiary"};function O1(n){return n.replace("_"," ")}function N1({task:n,now:u,pending:r,error:c,onPatch:f}){const d=n.auto_created&&!n.confirmed;return v.jsxs("tr",{id:`task-${n.id}`,className:"scroll-mt-4 border-b border-border last:border-0",children:[v.jsxs("td",{className:"px-3 py-3 text-xs font-medium text-text-secondary dark:text-text-tertiary whitespace-nowrap",children:["#",n.id]}),v.jsxs("td",{className:"px-3 py-3 min-w-56",children:[v.jsx("div",{className:"text-sm font-medium text-text",children:n.title}),d&&v.jsx("div",{className:"mt-0.5 text-[11px] font-medium text-warning-text",children:"(unconfirmed)"}),n.latest_event&&v.jsx("div",{className:"mt-1 max-w-80 truncate text-[11px] text-text-secondary dark:text-text-tertiary",children:n.latest_event})]}),v.jsx("td",{className:"px-3 py-3 whitespace-nowrap",children:v.jsx("select",{"aria-label":`Status for task ${n.id}`,value:n.status,disabled:r,onChange:m=>f(n,{status:m.target.value}),className:`rounded-full border-0 px-2 py-1 text-xs font-medium disabled:opacity-50 ${_1[n.status]}`,children:A1.map(m=>v.jsx("option",{value:m,children:O1(m)},m))})}),v.jsx("td",{className:"px-3 py-3 whitespace-nowrap",children:v.jsx("span",{className:`rounded-full px-2 py-1 text-xs font-medium ${R1[n.priority]}`,children:n.priority})}),v.jsx("td",{className:"px-3 py-3 text-xs text-text-secondary whitespace-nowrap",children:n.assignee||"unassigned"}),v.jsxs("td",{className:"px-3 py-3 text-xs text-text-secondary whitespace-nowrap",children:[v.jsx("div",{children:n.due_date||"-"}),v.jsx("div",{className:"text-[11px] text-text-secondary dark:text-text-tertiary",children:e1(u,n.due_date)})]}),v.jsx("td",{className:"px-3 py-3 max-w-48 truncate text-xs text-text-secondary",children:n.source_channel||"-"}),v.jsx("td",{className:"px-3 py-3 text-xs text-text-secondary dark:text-text-tertiary whitespace-nowrap",children:Ns(u,n.updated_at)}),v.jsxs("td",{className:"px-3 py-3 whitespace-nowrap",children:[d&&v.jsx("button",{type:"button",disabled:r,onClick:()=>f(n,{confirmed:!0}),className:"rounded-lg bg-agent-hover px-2.5 py-1.5 text-xs font-medium text-on-agent hover:bg-agent-hover dark:bg-agent disabled:opacity-50",children:r?"Saving...":"Approve"}),c&&v.jsx("div",{role:"alert",className:"mt-1 max-w-48 whitespace-normal text-[11px] text-warning-text",children:c})]})]})}function C1(n,u,r){const c=n.tasks.findIndex(d=>d.id===r.id);return u===null||u===r.status?c===-1?{tasks:[r,...n.tasks]}:{tasks:n.tasks.map(d=>d.id===r.id?r:d)}:c===-1?n:{tasks:n.tasks.filter(d=>d.id!==r.id)}}function M1(n,u,r){if(!n.startsWith("#task-")||u===n)return u;const c=r(n.slice(1));return c?(c.scrollIntoView({block:"center"}),n):u}function D1(n,u){const r=new Map(n);return r.set(u,{pending:!0}),r}function Up(n,u,r){const c=new Map(n);return r?c.set(u,{pending:!1,error:r}):c.delete(u),c}const z1=[{value:null,label:"All"},{value:"pending",label:"Pending"},{value:"in_progress",label:"In progress"},{value:"review",label:"Review"},{value:"blocked",label:"Blocked"},{value:"done",label:"Done"},{value:"cancelled",label:"Cancelled"}];function w1(){const[n,u]=_.useState(null),[r,c]=_.useState(()=>Date.now()),[f,d]=_.useState(()=>new Map),m=Os(),x=_.useRef(null),p=od({queryKey:["operatorTasks",n],queryFn:()=>su.listTasks({status:n??void 0,limit:50}),refetchInterval:3e4}),g=Og({mutationFn:({task:b,patch:N})=>su.updateTask(b.id,N),onMutate:({task:b})=>{d(N=>D1(N,b.id))},onSuccess:({task:b},{task:N})=>{const U=m.getQueriesData({queryKey:["operatorTasks"]});for(const[H,Y]of U){if(!Y)continue;const X=H[1];m.setQueryData(H,C1(Y,X,b))}d(H=>Up(H,N.id)),m.invalidateQueries({queryKey:["operatorTasks"]})},onError:(b,{task:N})=>{const U=b instanceof Error?b.message:"Task update failed";d(H=>Up(H,N.id,U))}});_.useEffect(()=>{const b=window.setInterval(()=>c(Date.now()),3e4);return()=>window.clearInterval(b)},[]),_.useEffect(()=>{var b;(b=p.data)!=null&&b.tasks.length&&(x.current=M1(window.location.hash,x.current,N=>document.getElementById(N)))},[p.data]);const R=(b,N)=>{g.mutate({task:b,patch:N})};return v.jsxs("div",{className:"flex min-h-full min-w-0 flex-col",children:[v.jsxs("header",{className:"border-b border-border bg-surface px-4 py-4",children:[v.jsx("h1",{className:"text-base font-semibold text-text",children:"Tasks"}),v.jsx("p",{className:"mt-1 text-xs text-text-secondary",children:"Native operator ledger ordered by due date and priority."})]}),v.jsx("div",{className:"flex-1 p-4",children:v.jsxs("div",{className:"mx-auto max-w-6xl",children:[v.jsx("div",{className:"mb-4 flex flex-wrap gap-2","aria-label":"Filter tasks by status",children:z1.map(b=>{const N=n===b.value;return v.jsx("button",{type:"button","aria-pressed":N,onClick:()=>u(b.value),className:`rounded-full px-3 py-1.5 text-xs font-medium transition-colors ${N?"bg-agent-hover text-on-agent dark:bg-agent":"bg-surface text-text-secondary hover:bg-surface-hover"}`,children:b.label},b.label)})}),v.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-surface shadow-[var(--shadow-xs)]",children:p.isPending?v.jsx("div",{className:"px-4 py-16 text-center text-sm text-text-tertiary",children:"Loading tasks..."}):p.isError?v.jsx("div",{className:"px-4 py-16 text-center text-sm text-warning-text",children:p.error instanceof Error?p.error.message:"Unable to load tasks"}):p.data.tasks.length===0?v.jsxs("div",{className:"px-4 py-16 text-center",children:[v.jsx("div",{className:"text-sm font-medium text-text",children:"No tasks found"}),v.jsx("div",{className:"mt-1 text-xs text-text-tertiary",children:"Try another status filter or wait for the ledger to update."})]}):v.jsx("div",{className:"overflow-x-auto",children:v.jsxs("table",{className:"task-table",children:[v.jsx("thead",{children:v.jsxs("tr",{children:[v.jsx("th",{children:"ID"}),v.jsx("th",{children:"Task"}),v.jsx("th",{children:"Status"}),v.jsx("th",{children:"Priority"}),v.jsx("th",{children:"Assignee"}),v.jsx("th",{children:"Due"}),v.jsx("th",{children:"Source"}),v.jsx("th",{children:"Updated"}),v.jsx("th",{children:"Action"})]})}),v.jsx("tbody",{children:p.data.tasks.map(b=>{const N=f.get(b.id);return v.jsx(N1,{task:b,now:r,pending:(N==null?void 0:N.pending)===!0,error:N==null?void 0:N.error,onPatch:R},b.id)})})]})})})]})})]})}function U1(){return v.jsx(Zb,{children:v.jsxs(ds,{element:v.jsx(mx,{}),children:[v.jsx(ds,{index:!0,element:v.jsx(h1,{})}),v.jsx(ds,{path:"triggers",element:v.jsx(T1,{})}),v.jsx(ds,{path:"tasks",element:v.jsx(w1,{})})]})})}const j1=new FS;X0.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx($S,{client:j1,children:v.jsx(yS,{basename:"/ui",children:v.jsx(U1,{})})})}));