leduo-patrol 2.2.1 → 2.2.4

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 (179) hide show
  1. package/README.md +11 -2
  2. package/dist/server/__tests__/acp-session.test.js +115 -0
  3. package/dist/server/__tests__/activity-monitor.test.js +13 -1
  4. package/dist/server/__tests__/session-manager.test.js +380 -1
  5. package/dist/server/acp-session.js +476 -0
  6. package/dist/server/activity-monitor.js +22 -7
  7. package/dist/server/index.js +57 -1
  8. package/dist/server/session-manager.js +1301 -121
  9. package/dist/web/assets/index-Bll9nc_X.js +21 -0
  10. package/dist/web/assets/index-y1qgSOLv.css +1 -0
  11. package/dist/web/index.html +2 -2
  12. package/package.json +3 -1
  13. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
  14. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/README.md +53 -0
  15. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +823 -0
  16. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.js +965 -0
  17. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
  18. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
  19. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +839 -0
  20. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
  21. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
  22. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +225 -0
  23. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
  24. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
  25. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +130 -0
  26. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
  27. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +35 -0
  28. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +5 -0
  29. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
  30. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +27 -0
  31. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +28 -0
  32. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
  33. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +2870 -0
  34. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
  35. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
  36. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +5333 -0
  37. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +1554 -0
  38. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
  39. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +24 -0
  40. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.js +64 -0
  41. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
  42. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/package.json +66 -0
  43. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/schema/schema.json +4125 -0
  44. package/vendor/claude-code-acp/node_modules/@types/node/LICENSE +21 -0
  45. package/vendor/claude-code-acp/node_modules/@types/node/README.md +15 -0
  46. package/vendor/claude-code-acp/node_modules/@types/node/assert/strict.d.ts +105 -0
  47. package/vendor/claude-code-acp/node_modules/@types/node/assert.d.ts +955 -0
  48. package/vendor/claude-code-acp/node_modules/@types/node/async_hooks.d.ts +623 -0
  49. package/vendor/claude-code-acp/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  50. package/vendor/claude-code-acp/node_modules/@types/node/buffer.d.ts +1810 -0
  51. package/vendor/claude-code-acp/node_modules/@types/node/child_process.d.ts +1428 -0
  52. package/vendor/claude-code-acp/node_modules/@types/node/cluster.d.ts +486 -0
  53. package/vendor/claude-code-acp/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  54. package/vendor/claude-code-acp/node_modules/@types/node/console.d.ts +151 -0
  55. package/vendor/claude-code-acp/node_modules/@types/node/constants.d.ts +20 -0
  56. package/vendor/claude-code-acp/node_modules/@types/node/crypto.d.ts +4065 -0
  57. package/vendor/claude-code-acp/node_modules/@types/node/dgram.d.ts +564 -0
  58. package/vendor/claude-code-acp/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  59. package/vendor/claude-code-acp/node_modules/@types/node/dns/promises.d.ts +503 -0
  60. package/vendor/claude-code-acp/node_modules/@types/node/dns.d.ts +922 -0
  61. package/vendor/claude-code-acp/node_modules/@types/node/domain.d.ts +166 -0
  62. package/vendor/claude-code-acp/node_modules/@types/node/events.d.ts +1054 -0
  63. package/vendor/claude-code-acp/node_modules/@types/node/fs/promises.d.ts +1329 -0
  64. package/vendor/claude-code-acp/node_modules/@types/node/fs.d.ts +4676 -0
  65. package/vendor/claude-code-acp/node_modules/@types/node/globals.d.ts +150 -0
  66. package/vendor/claude-code-acp/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  67. package/vendor/claude-code-acp/node_modules/@types/node/http.d.ts +2167 -0
  68. package/vendor/claude-code-acp/node_modules/@types/node/http2.d.ts +2480 -0
  69. package/vendor/claude-code-acp/node_modules/@types/node/https.d.ts +405 -0
  70. package/vendor/claude-code-acp/node_modules/@types/node/index.d.ts +115 -0
  71. package/vendor/claude-code-acp/node_modules/@types/node/inspector/promises.d.ts +41 -0
  72. package/vendor/claude-code-acp/node_modules/@types/node/inspector.d.ts +224 -0
  73. package/vendor/claude-code-acp/node_modules/@types/node/inspector.generated.d.ts +4226 -0
  74. package/vendor/claude-code-acp/node_modules/@types/node/module.d.ts +819 -0
  75. package/vendor/claude-code-acp/node_modules/@types/node/net.d.ts +933 -0
  76. package/vendor/claude-code-acp/node_modules/@types/node/os.d.ts +507 -0
  77. package/vendor/claude-code-acp/node_modules/@types/node/package.json +155 -0
  78. package/vendor/claude-code-acp/node_modules/@types/node/path/posix.d.ts +8 -0
  79. package/vendor/claude-code-acp/node_modules/@types/node/path/win32.d.ts +8 -0
  80. package/vendor/claude-code-acp/node_modules/@types/node/path.d.ts +187 -0
  81. package/vendor/claude-code-acp/node_modules/@types/node/perf_hooks.d.ts +643 -0
  82. package/vendor/claude-code-acp/node_modules/@types/node/process.d.ts +2161 -0
  83. package/vendor/claude-code-acp/node_modules/@types/node/punycode.d.ts +117 -0
  84. package/vendor/claude-code-acp/node_modules/@types/node/querystring.d.ts +152 -0
  85. package/vendor/claude-code-acp/node_modules/@types/node/quic.d.ts +910 -0
  86. package/vendor/claude-code-acp/node_modules/@types/node/readline/promises.d.ts +161 -0
  87. package/vendor/claude-code-acp/node_modules/@types/node/readline.d.ts +541 -0
  88. package/vendor/claude-code-acp/node_modules/@types/node/repl.d.ts +415 -0
  89. package/vendor/claude-code-acp/node_modules/@types/node/sea.d.ts +162 -0
  90. package/vendor/claude-code-acp/node_modules/@types/node/sqlite.d.ts +955 -0
  91. package/vendor/claude-code-acp/node_modules/@types/node/stream/consumers.d.ts +38 -0
  92. package/vendor/claude-code-acp/node_modules/@types/node/stream/promises.d.ts +211 -0
  93. package/vendor/claude-code-acp/node_modules/@types/node/stream/web.d.ts +296 -0
  94. package/vendor/claude-code-acp/node_modules/@types/node/stream.d.ts +1760 -0
  95. package/vendor/claude-code-acp/node_modules/@types/node/string_decoder.d.ts +67 -0
  96. package/vendor/claude-code-acp/node_modules/@types/node/test/reporters.d.ts +96 -0
  97. package/vendor/claude-code-acp/node_modules/@types/node/test.d.ts +2240 -0
  98. package/vendor/claude-code-acp/node_modules/@types/node/timers/promises.d.ts +108 -0
  99. package/vendor/claude-code-acp/node_modules/@types/node/timers.d.ts +159 -0
  100. package/vendor/claude-code-acp/node_modules/@types/node/tls.d.ts +1198 -0
  101. package/vendor/claude-code-acp/node_modules/@types/node/trace_events.d.ts +197 -0
  102. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  103. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  104. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  105. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/index.d.ts +117 -0
  106. package/vendor/claude-code-acp/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  107. package/vendor/claude-code-acp/node_modules/@types/node/ts5.7/index.d.ts +117 -0
  108. package/vendor/claude-code-acp/node_modules/@types/node/tty.d.ts +250 -0
  109. package/vendor/claude-code-acp/node_modules/@types/node/url.d.ts +519 -0
  110. package/vendor/claude-code-acp/node_modules/@types/node/util/types.d.ts +558 -0
  111. package/vendor/claude-code-acp/node_modules/@types/node/util.d.ts +1662 -0
  112. package/vendor/claude-code-acp/node_modules/@types/node/v8.d.ts +983 -0
  113. package/vendor/claude-code-acp/node_modules/@types/node/vm.d.ts +1208 -0
  114. package/vendor/claude-code-acp/node_modules/@types/node/wasi.d.ts +202 -0
  115. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  116. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  117. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/console.d.ts +9 -0
  118. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  119. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  120. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  121. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/events.d.ts +106 -0
  122. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  123. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  124. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  125. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  126. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  127. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  128. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  129. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  130. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/url.d.ts +24 -0
  131. package/vendor/claude-code-acp/node_modules/@types/node/worker_threads.d.ts +717 -0
  132. package/vendor/claude-code-acp/node_modules/@types/node/zlib.d.ts +618 -0
  133. package/vendor/claude-code-acp/node_modules/undici-types/LICENSE +21 -0
  134. package/vendor/claude-code-acp/node_modules/undici-types/README.md +6 -0
  135. package/vendor/claude-code-acp/node_modules/undici-types/agent.d.ts +32 -0
  136. package/vendor/claude-code-acp/node_modules/undici-types/api.d.ts +43 -0
  137. package/vendor/claude-code-acp/node_modules/undici-types/balanced-pool.d.ts +29 -0
  138. package/vendor/claude-code-acp/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  139. package/vendor/claude-code-acp/node_modules/undici-types/cache.d.ts +36 -0
  140. package/vendor/claude-code-acp/node_modules/undici-types/client-stats.d.ts +15 -0
  141. package/vendor/claude-code-acp/node_modules/undici-types/client.d.ts +108 -0
  142. package/vendor/claude-code-acp/node_modules/undici-types/connector.d.ts +34 -0
  143. package/vendor/claude-code-acp/node_modules/undici-types/content-type.d.ts +21 -0
  144. package/vendor/claude-code-acp/node_modules/undici-types/cookies.d.ts +30 -0
  145. package/vendor/claude-code-acp/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  146. package/vendor/claude-code-acp/node_modules/undici-types/dispatcher.d.ts +276 -0
  147. package/vendor/claude-code-acp/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  148. package/vendor/claude-code-acp/node_modules/undici-types/errors.d.ts +161 -0
  149. package/vendor/claude-code-acp/node_modules/undici-types/eventsource.d.ts +66 -0
  150. package/vendor/claude-code-acp/node_modules/undici-types/fetch.d.ts +211 -0
  151. package/vendor/claude-code-acp/node_modules/undici-types/formdata.d.ts +108 -0
  152. package/vendor/claude-code-acp/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  153. package/vendor/claude-code-acp/node_modules/undici-types/global-origin.d.ts +7 -0
  154. package/vendor/claude-code-acp/node_modules/undici-types/h2c-client.d.ts +73 -0
  155. package/vendor/claude-code-acp/node_modules/undici-types/handlers.d.ts +15 -0
  156. package/vendor/claude-code-acp/node_modules/undici-types/header.d.ts +160 -0
  157. package/vendor/claude-code-acp/node_modules/undici-types/index.d.ts +80 -0
  158. package/vendor/claude-code-acp/node_modules/undici-types/interceptors.d.ts +39 -0
  159. package/vendor/claude-code-acp/node_modules/undici-types/mock-agent.d.ts +68 -0
  160. package/vendor/claude-code-acp/node_modules/undici-types/mock-call-history.d.ts +111 -0
  161. package/vendor/claude-code-acp/node_modules/undici-types/mock-client.d.ts +27 -0
  162. package/vendor/claude-code-acp/node_modules/undici-types/mock-errors.d.ts +12 -0
  163. package/vendor/claude-code-acp/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  164. package/vendor/claude-code-acp/node_modules/undici-types/mock-pool.d.ts +27 -0
  165. package/vendor/claude-code-acp/node_modules/undici-types/package.json +55 -0
  166. package/vendor/claude-code-acp/node_modules/undici-types/patch.d.ts +29 -0
  167. package/vendor/claude-code-acp/node_modules/undici-types/pool-stats.d.ts +19 -0
  168. package/vendor/claude-code-acp/node_modules/undici-types/pool.d.ts +41 -0
  169. package/vendor/claude-code-acp/node_modules/undici-types/proxy-agent.d.ts +29 -0
  170. package/vendor/claude-code-acp/node_modules/undici-types/readable.d.ts +68 -0
  171. package/vendor/claude-code-acp/node_modules/undici-types/retry-agent.d.ts +8 -0
  172. package/vendor/claude-code-acp/node_modules/undici-types/retry-handler.d.ts +125 -0
  173. package/vendor/claude-code-acp/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  174. package/vendor/claude-code-acp/node_modules/undici-types/util.d.ts +18 -0
  175. package/vendor/claude-code-acp/node_modules/undici-types/utility.d.ts +7 -0
  176. package/vendor/claude-code-acp/node_modules/undici-types/webidl.d.ts +341 -0
  177. package/vendor/claude-code-acp/node_modules/undici-types/websocket.d.ts +186 -0
  178. package/dist/web/assets/index-B5Dh2E8j.css +0 -1
  179. package/dist/web/assets/index-xPPPaEde.js +0 -13
@@ -0,0 +1,21 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const y of document.querySelectorAll('link[rel="modulepreload"]'))r(y);new MutationObserver(y=>{for(const T of y)if(T.type==="childList")for(const M of T.addedNodes)M.tagName==="LINK"&&M.rel==="modulepreload"&&r(M)}).observe(document,{childList:!0,subtree:!0});function d(y){const T={};return y.integrity&&(T.integrity=y.integrity),y.referrerPolicy&&(T.referrerPolicy=y.referrerPolicy),y.crossOrigin==="use-credentials"?T.credentials="include":y.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function r(y){if(y.ep)return;y.ep=!0;const T=d(y);fetch(y.href,T)}})();function Um(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var go={exports:{}},Ai={};var hm;function Iy(){if(hm)return Ai;hm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(r,y,T){var M=null;if(T!==void 0&&(M=""+T),y.key!==void 0&&(M=""+y.key),"key"in y){T={};for(var V in y)V!=="key"&&(T[V]=y[V])}else T=y;return y=T.ref,{$$typeof:u,type:r,key:M,ref:y!==void 0?y:null,props:T}}return Ai.Fragment=o,Ai.jsx=d,Ai.jsxs=d,Ai}var ym;function Fy(){return ym||(ym=1,go.exports=Iy()),go.exports}var s=Fy(),So={exports:{}},te={};var pm;function Py(){if(pm)return te;pm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),M=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),q=Symbol.iterator;function L(g){return g===null||typeof g!="object"?null:(g=q&&g[q]||g["@@iterator"],typeof g=="function"?g:null)}var ne={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,ce={};function st(g,D,Q){this.props=g,this.context=D,this.refs=ce,this.updater=Q||ne}st.prototype.isReactComponent={},st.prototype.setState=function(g,D){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,D,"setState")},st.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function bt(){}bt.prototype=st.prototype;function qe(g,D,Q){this.props=g,this.context=D,this.refs=ce,this.updater=Q||ne}var Oe=qe.prototype=new bt;Oe.constructor=qe,he(Oe,st.prototype),Oe.isPureReactComponent=!0;var Ee=Array.isArray;function Pe(){}var ae={H:null,A:null,T:null,S:null},Be=Object.prototype.hasOwnProperty;function mt(g,D,Q){var X=Q.ref;return{$$typeof:u,type:g,key:D,ref:X!==void 0?X:null,props:Q}}function w(g,D){return mt(g.type,D,g.props)}function F(g){return typeof g=="object"&&g!==null&&g.$$typeof===u}function Ye(g){var D={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(Q){return D[Q]})}var lt=/\/+/g;function _t(g,D){return typeof g=="object"&&g!==null&&g.key!=null?Ye(""+g.key):D.toString(36)}function gt(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Pe,Pe):(g.status="pending",g.then(function(D){g.status==="pending"&&(g.status="fulfilled",g.value=D)},function(D){g.status==="pending"&&(g.status="rejected",g.reason=D)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function _(g,D,Q,X,P){var ue=typeof g;(ue==="undefined"||ue==="boolean")&&(g=null);var me=!1;if(g===null)me=!0;else switch(ue){case"bigint":case"string":case"number":me=!0;break;case"object":switch(g.$$typeof){case u:case o:me=!0;break;case U:return me=g._init,_(me(g._payload),D,Q,X,P)}}if(me)return P=P(g),me=X===""?"."+_t(g,0):X,Ee(P)?(Q="",me!=null&&(Q=me.replace(lt,"$&/")+"/"),_(P,D,Q,"",function(_l){return _l})):P!=null&&(F(P)&&(P=w(P,Q+(P.key==null||g&&g.key===P.key?"":(""+P.key).replace(lt,"$&/")+"/")+me)),D.push(P)),1;me=0;var nt=X===""?".":X+":";if(Ee(g))for(var je=0;je<g.length;je++)X=g[je],ue=nt+_t(X,je),me+=_(X,D,Q,ue,P);else if(je=L(g),typeof je=="function")for(g=je.call(g),je=0;!(X=g.next()).done;)X=X.value,ue=nt+_t(X,je++),me+=_(X,D,Q,ue,P);else if(ue==="object"){if(typeof g.then=="function")return _(gt(g),D,Q,X,P);throw D=String(g),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return me}function Y(g,D,Q){if(g==null)return g;var X=[],P=0;return _(g,X,"","",function(ue){return D.call(Q,ue,P++)}),X}function $(g){if(g._status===-1){var D=g._result;D=D(),D.then(function(Q){(g._status===0||g._status===-1)&&(g._status=1,g._result=Q)},function(Q){(g._status===0||g._status===-1)&&(g._status=2,g._result=Q)}),g._status===-1&&(g._status=0,g._result=D)}if(g._status===1)return g._result.default;throw g._result}var ve=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},Se={map:Y,forEach:function(g,D,Q){Y(g,function(){D.apply(this,arguments)},Q)},count:function(g){var D=0;return Y(g,function(){D++}),D},toArray:function(g){return Y(g,function(D){return D})||[]},only:function(g){if(!F(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return te.Activity=j,te.Children=Se,te.Component=st,te.Fragment=d,te.Profiler=y,te.PureComponent=qe,te.StrictMode=r,te.Suspense=H,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,te.__COMPILER_RUNTIME={__proto__:null,c:function(g){return ae.H.useMemoCache(g)}},te.cache=function(g){return function(){return g.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(g,D,Q){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var X=he({},g.props),P=g.key;if(D!=null)for(ue in D.key!==void 0&&(P=""+D.key),D)!Be.call(D,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&D.ref===void 0||(X[ue]=D[ue]);var ue=arguments.length-2;if(ue===1)X.children=Q;else if(1<ue){for(var me=Array(ue),nt=0;nt<ue;nt++)me[nt]=arguments[nt+2];X.children=me}return mt(g.type,P,X)},te.createContext=function(g){return g={$$typeof:M,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:T,_context:g},g},te.createElement=function(g,D,Q){var X,P={},ue=null;if(D!=null)for(X in D.key!==void 0&&(ue=""+D.key),D)Be.call(D,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(P[X]=D[X]);var me=arguments.length-2;if(me===1)P.children=Q;else if(1<me){for(var nt=Array(me),je=0;je<me;je++)nt[je]=arguments[je+2];P.children=nt}if(g&&g.defaultProps)for(X in me=g.defaultProps,me)P[X]===void 0&&(P[X]=me[X]);return mt(g,ue,P)},te.createRef=function(){return{current:null}},te.forwardRef=function(g){return{$$typeof:V,render:g}},te.isValidElement=F,te.lazy=function(g){return{$$typeof:U,_payload:{_status:-1,_result:g},_init:$}},te.memo=function(g,D){return{$$typeof:b,type:g,compare:D===void 0?null:D}},te.startTransition=function(g){var D=ae.T,Q={};ae.T=Q;try{var X=g(),P=ae.S;P!==null&&P(Q,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(Pe,ve)}catch(ue){ve(ue)}finally{D!==null&&Q.types!==null&&(D.types=Q.types),ae.T=D}},te.unstable_useCacheRefresh=function(){return ae.H.useCacheRefresh()},te.use=function(g){return ae.H.use(g)},te.useActionState=function(g,D,Q){return ae.H.useActionState(g,D,Q)},te.useCallback=function(g,D){return ae.H.useCallback(g,D)},te.useContext=function(g){return ae.H.useContext(g)},te.useDebugValue=function(){},te.useDeferredValue=function(g,D){return ae.H.useDeferredValue(g,D)},te.useEffect=function(g,D){return ae.H.useEffect(g,D)},te.useEffectEvent=function(g){return ae.H.useEffectEvent(g)},te.useId=function(){return ae.H.useId()},te.useImperativeHandle=function(g,D,Q){return ae.H.useImperativeHandle(g,D,Q)},te.useInsertionEffect=function(g,D){return ae.H.useInsertionEffect(g,D)},te.useLayoutEffect=function(g,D){return ae.H.useLayoutEffect(g,D)},te.useMemo=function(g,D){return ae.H.useMemo(g,D)},te.useOptimistic=function(g,D){return ae.H.useOptimistic(g,D)},te.useReducer=function(g,D,Q){return ae.H.useReducer(g,D,Q)},te.useRef=function(g){return ae.H.useRef(g)},te.useState=function(g){return ae.H.useState(g)},te.useSyncExternalStore=function(g,D,Q){return ae.H.useSyncExternalStore(g,D,Q)},te.useTransition=function(){return ae.H.useTransition()},te.version="19.2.4",te}var vm;function Ro(){return vm||(vm=1,So.exports=Py()),So.exports}var B=Ro();const ep=Um(B);var bo={exports:{}},Ni={},To={exports:{}},xo={};var gm;function tp(){return gm||(gm=1,(function(u){function o(_,Y){var $=_.length;_.push(Y);e:for(;0<$;){var ve=$-1>>>1,Se=_[ve];if(0<y(Se,Y))_[ve]=Y,_[$]=Se,$=ve;else break e}}function d(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var Y=_[0],$=_.pop();if($!==Y){_[0]=$;e:for(var ve=0,Se=_.length,g=Se>>>1;ve<g;){var D=2*(ve+1)-1,Q=_[D],X=D+1,P=_[X];if(0>y(Q,$))X<Se&&0>y(P,Q)?(_[ve]=P,_[X]=$,ve=X):(_[ve]=Q,_[D]=$,ve=D);else if(X<Se&&0>y(P,$))_[ve]=P,_[X]=$,ve=X;else break e}}return Y}function y(_,Y){var $=_.sortIndex-Y.sortIndex;return $!==0?$:_.id-Y.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;u.unstable_now=function(){return T.now()}}else{var M=Date,V=M.now();u.unstable_now=function(){return M.now()-V}}var H=[],b=[],U=1,j=null,q=3,L=!1,ne=!1,he=!1,ce=!1,st=typeof setTimeout=="function"?setTimeout:null,bt=typeof clearTimeout=="function"?clearTimeout:null,qe=typeof setImmediate<"u"?setImmediate:null;function Oe(_){for(var Y=d(b);Y!==null;){if(Y.callback===null)r(b);else if(Y.startTime<=_)r(b),Y.sortIndex=Y.expirationTime,o(H,Y);else break;Y=d(b)}}function Ee(_){if(he=!1,Oe(_),!ne)if(d(H)!==null)ne=!0,Pe||(Pe=!0,Ye());else{var Y=d(b);Y!==null&&gt(Ee,Y.startTime-_)}}var Pe=!1,ae=-1,Be=5,mt=-1;function w(){return ce?!0:!(u.unstable_now()-mt<Be)}function F(){if(ce=!1,Pe){var _=u.unstable_now();mt=_;var Y=!0;try{e:{ne=!1,he&&(he=!1,bt(ae),ae=-1),L=!0;var $=q;try{t:{for(Oe(_),j=d(H);j!==null&&!(j.expirationTime>_&&w());){var ve=j.callback;if(typeof ve=="function"){j.callback=null,q=j.priorityLevel;var Se=ve(j.expirationTime<=_);if(_=u.unstable_now(),typeof Se=="function"){j.callback=Se,Oe(_),Y=!0;break t}j===d(H)&&r(H),Oe(_)}else r(H);j=d(H)}if(j!==null)Y=!0;else{var g=d(b);g!==null&&gt(Ee,g.startTime-_),Y=!1}}break e}finally{j=null,q=$,L=!1}Y=void 0}}finally{Y?Ye():Pe=!1}}}var Ye;if(typeof qe=="function")Ye=function(){qe(F)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,_t=lt.port2;lt.port1.onmessage=F,Ye=function(){_t.postMessage(null)}}else Ye=function(){st(F,0)};function gt(_,Y){ae=st(function(){_(u.unstable_now())},Y)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(_){_.callback=null},u.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Be=0<_?Math.floor(1e3/_):5},u.unstable_getCurrentPriorityLevel=function(){return q},u.unstable_next=function(_){switch(q){case 1:case 2:case 3:var Y=3;break;default:Y=q}var $=q;q=Y;try{return _()}finally{q=$}},u.unstable_requestPaint=function(){ce=!0},u.unstable_runWithPriority=function(_,Y){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var $=q;q=_;try{return Y()}finally{q=$}},u.unstable_scheduleCallback=function(_,Y,$){var ve=u.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?ve+$:ve):$=ve,_){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=$+Se,_={id:U++,callback:Y,priorityLevel:_,startTime:$,expirationTime:Se,sortIndex:-1},$>ve?(_.sortIndex=$,o(b,_),d(H)===null&&_===d(b)&&(he?(bt(ae),ae=-1):he=!0,gt(Ee,$-ve))):(_.sortIndex=Se,o(H,_),ne||L||(ne=!0,Pe||(Pe=!0,Ye()))),_},u.unstable_shouldYield=w,u.unstable_wrapCallback=function(_){var Y=q;return function(){var $=q;q=Y;try{return _.apply(this,arguments)}finally{q=$}}}})(xo)),xo}var Sm;function lp(){return Sm||(Sm=1,To.exports=tp()),To.exports}var Eo={exports:{}},vt={};var bm;function np(){if(bm)return vt;bm=1;var u=Ro();function o(H){var b="https://react.dev/errors/"+H;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var U=2;U<arguments.length;U++)b+="&args[]="+encodeURIComponent(arguments[U])}return"Minified React error #"+H+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var r={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},y=Symbol.for("react.portal");function T(H,b,U){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y,key:j==null?null:""+j,children:H,containerInfo:b,implementation:U}}var M=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function V(H,b){if(H==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vt.createPortal=function(H,b){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(o(299));return T(H,b,null,U)},vt.flushSync=function(H){var b=M.T,U=r.p;try{if(M.T=null,r.p=2,H)return H()}finally{M.T=b,r.p=U,r.d.f()}},vt.preconnect=function(H,b){typeof H=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,r.d.C(H,b))},vt.prefetchDNS=function(H){typeof H=="string"&&r.d.D(H)},vt.preinit=function(H,b){if(typeof H=="string"&&b&&typeof b.as=="string"){var U=b.as,j=V(U,b.crossOrigin),q=typeof b.integrity=="string"?b.integrity:void 0,L=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;U==="style"?r.d.S(H,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:j,integrity:q,fetchPriority:L}):U==="script"&&r.d.X(H,{crossOrigin:j,integrity:q,fetchPriority:L,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},vt.preinitModule=function(H,b){if(typeof H=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var U=V(b.as,b.crossOrigin);r.d.M(H,{crossOrigin:U,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&r.d.M(H)},vt.preload=function(H,b){if(typeof H=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var U=b.as,j=V(U,b.crossOrigin);r.d.L(H,U,{crossOrigin:j,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},vt.preloadModule=function(H,b){if(typeof H=="string")if(b){var U=V(b.as,b.crossOrigin);r.d.m(H,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:U,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else r.d.m(H)},vt.requestFormReset=function(H){r.d.r(H)},vt.unstable_batchedUpdates=function(H,b){return H(b)},vt.useFormState=function(H,b,U){return M.H.useFormState(H,b,U)},vt.useFormStatus=function(){return M.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var Tm;function ap(){if(Tm)return Eo.exports;Tm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),Eo.exports=np(),Eo.exports}var xm;function ip(){if(xm)return Ni;xm=1;var u=lp(),o=Ro(),d=ap();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function T(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function M(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function V(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function H(e){if(T(e)!==e)throw Error(r(188))}function b(e){var t=e.alternate;if(!t){if(t=T(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return H(a),e;if(i===n)return H(a),t;i=i.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=i;else{for(var c=!1,f=a.child;f;){if(f===l){c=!0,l=a,n=i;break}if(f===n){c=!0,n=a,l=i;break}f=f.sibling}if(!c){for(f=i.child;f;){if(f===l){c=!0,l=i,n=a;break}if(f===n){c=!0,n=i,l=a;break}f=f.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function U(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=U(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,q=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),bt=Symbol.for("react.consumer"),qe=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),mt=Symbol.for("react.activity"),w=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function Ye(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var lt=Symbol.for("react.client.reference");function _t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===lt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case st:return"Profiler";case ce:return"StrictMode";case Ee:return"Suspense";case Pe:return"SuspenseList";case mt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ne:return"Portal";case qe:return e.displayName||"Context";case bt:return(e._context.displayName||"Context")+".Consumer";case Oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return t=e.displayName||null,t!==null?t:_t(e.type)||"Memo";case Be:t=e._payload,e=e._init;try{return _t(e(t))}catch{}}return null}var gt=Array.isArray,_=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},ve=[],Se=-1;function g(e){return{current:e}}function D(e){0>Se||(e.current=ve[Se],ve[Se]=null,Se--)}function Q(e,t){Se++,ve[Se]=e.current,e.current=t}var X=g(null),P=g(null),ue=g(null),me=g(null);function nt(e,t){switch(Q(ue,t),Q(P,e),Q(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bd(t),e=Ld(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(X),Q(X,e)}function je(){D(X),D(P),D(ue)}function _l(e){e.memoizedState!==null&&Q(me,e);var t=X.current,l=Ld(t,e.type);t!==l&&(Q(P,e),Q(X,l))}function Ml(e){P.current===e&&(D(X),D(P)),me.current===e&&(D(me),Ti._currentValue=$)}var mn,hn;function nl(e){if(mn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);mn=t&&t[1]||"",hn=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+mn+e+hn}var yn=!1;function pn(e,t){if(!e||yn)return"";yn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(N){var A=N}Reflect.construct(e,[],R)}else{try{R.call()}catch(N){A=N}e.call(R.prototype)}}else{try{throw Error()}catch(N){A=N}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(N){if(N&&A&&typeof N.stack=="string")return[N.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),c=i[0],f=i[1];if(c&&f){var h=c.split(`
4
+ `),E=f.split(`
5
+ `);for(a=n=0;n<h.length&&!h[n].includes("DetermineComponentFrameRoot");)n++;for(;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;if(n===h.length||a===E.length)for(n=h.length-1,a=E.length-1;1<=n&&0<=a&&h[n]!==E[a];)a--;for(;1<=n&&0<=a;n--,a--)if(h[n]!==E[a]){if(n!==1||a!==1)do if(n--,a--,0>a||h[n]!==E[a]){var z=`
6
+ `+h[n].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),z}while(1<=n&&0<=a);break}}}finally{yn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?nl(l):""}function Mi(e,t){switch(e.tag){case 26:case 27:case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return e.child!==t&&t!==null?nl("Suspense Fallback"):nl("Suspense");case 19:return nl("SuspenseList");case 0:case 15:return pn(e.type,!1);case 11:return pn(e.type.render,!1);case 1:return pn(e.type,!0);case 31:return nl("Activity");default:return""}}function Ol(e){try{var t="",l=null;do t+=Mi(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var vn=Object.prototype.hasOwnProperty,Aa=u.unstable_scheduleCallback,Dl=u.unstable_cancelCallback,Oi=u.unstable_shouldYield,mc=u.unstable_requestPaint,ht=u.unstable_now,Na=u.unstable_getCurrentPriorityLevel,Di=u.unstable_ImmediatePriority,Ca=u.unstable_UserBlockingPriority,Yn=u.unstable_NormalPriority,Ri=u.unstable_LowPriority,Ui=u.unstable_IdlePriority,Hi=u.log,hc=u.unstable_setDisableYieldValue,gn=null,at=null;function Mt(e){if(typeof Hi=="function"&&hc(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(gn,e)}catch{}}var yt=Math.clz32?Math.clz32:Bi,qi=Math.log,Ot=Math.LN2;function Bi(e){return e>>>=0,e===0?32:31-(qi(e)/Ot|0)|0}var Sn=256,bn=262144,Dt=4194304;function It(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qt(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=n&134217727;return f!==0?(n=f&~i,n!==0?a=It(n):(c&=f,c!==0?a=It(c):l||(l=f&~e,l!==0&&(a=It(l))))):(f=n&~i,f!==0?a=It(f):c!==0?a=It(c):l||(l=n&~e,l!==0&&(a=It(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function sl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function G(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function za(){var e=Dt;return Dt<<=1,(Dt&62914560)===0&&(Dt=4194304),e}function _a(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ve(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ma(e,t,l,n,a,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,h=e.expirationTimes,E=e.hiddenUpdates;for(l=c&~l;0<l;){var z=31-yt(l),R=1<<z;f[z]=0,h[z]=-1;var A=E[z];if(A!==null)for(E[z]=null,z=0;z<A.length;z++){var N=A[z];N!==null&&(N.lane&=-536870913)}l&=~R}n!==0&&Oa(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Oa(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-yt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Rl(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-yt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Li(e,t){var l=t&-t;return l=(l&42)!==0?1:Da(l),(l&(e.suspendedLanes|t))!==0?0:l}function Da(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ra(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ft(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:cm(e.type))}function wi(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var Gt=Math.random().toString(36).slice(2),Ue="__reactFiber$"+Gt,pt="__reactProps$"+Gt,Ul="__reactContainer$"+Gt,Tn="__reactEvents$"+Gt,yc="__reactListeners$"+Gt,pc="__reactHandles$"+Gt,Yi="__reactResources$"+Gt,_e="__reactMarker$"+Gt;function Qn(e){delete e[Ue],delete e[pt],delete e[Tn],delete e[yc],delete e[pc]}function ol(e){var t=e[Ue];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ul]||l[Ue]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Vd(e);e!==null;){if(l=e[Ue])return l;e=Vd(e)}return t}e=l,l=e.parentNode}return null}function fl(e){if(e=e[Ue]||e[Ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ql(e){var t=e[Yi];return t||(t=e[Yi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[_e]=!0}var Qi=new Set,Gi={};function rl(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(Gi[e]=t,e=0;e<t.length;e++)Qi.add(t[e])}var Ua=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]*$"),Xi={},Zi={};function Gn(e){return vn.call(Zi,e)?!0:vn.call(Xi,e)?!1:Ua.test(e)?Zi[e]=!0:(Xi[e]=!0,!1)}function xn(e,t,l){if(Gn(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Xn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Pt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vc(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ha(e){if(!e._valueTracker){var t=Zn(e)?"checked":"value";e._valueTracker=vc(e,t,""+e[t])}}function Vi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Zn(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Vn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ki=/[\n"\\]/g;function xt(e){return e.replace(Ki,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qa(e,t,l,n,a,i,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ba(e,c,Tt(t)):l!=null?Ba(e,c,Tt(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Tt(f):e.removeAttribute("name")}function ki(e,t,l,n,a,i,c,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ha(e);return}l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=f?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ha(e)}function Ba(e,t,l){t==="number"&&Vn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function dl(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Ji(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function La(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(gt(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Ha(e)}function Ll(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var wa=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 $i(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||wa.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Wi(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&$i(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&$i(e,i,t[i])}function m(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var p=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"]]),C=/^[\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 J(e){return C.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function W(){}var ee=null;function be(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var it=null,Le=null;function Ae(e){var t=fl(e);if(t&&(e=t.stateNode)){var l=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(qa(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[pt]||null;if(!a)throw Error(r(90));qa(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Vi(n)}break e;case"textarea":Ji(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&dl(e,!!l.multiple,t,!1)}}}var we=!1;function wl(e,t,l){if(we)return e(t,l);we=!0;try{var n=e(t);return n}finally{if(we=!1,(it!==null||Le!==null)&&(Bu(),it&&(t=it,e=Le,Le=it=null,Ae(t),e)))for(t=0;t<e.length;t++)Ae(e[t])}}function Rt(e,t){var l=e.stateNode;if(l===null)return null;var n=l[pt]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ut=!1;if(et)try{var En={};Object.defineProperty(En,"passive",{get:function(){ut=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{ut=!1}var Yl=null,gc=null,Ii=null;function Bo(){if(Ii)return Ii;var e,t=gc,l=t.length,n,a="value"in Yl?Yl.value:Yl.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var c=l-e;for(n=1;n<=c&&t[l-n]===a[i-n];n++);return Ii=a.slice(e,1<n?1-n:void 0)}function Fi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pi(){return!0}function Lo(){return!1}function Et(e){function t(l,n,a,i,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Pi:Lo,this.isPropagationStopped=Lo,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Pi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Pi)},persist:function(){},isPersistent:Pi}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eu=Et(jn),Ya=j({},jn,{view:0,detail:0}),$m=Et(Ya),Sc,bc,Qa,tu=j({},Ya,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qa&&(Qa&&e.type==="mousemove"?(Sc=e.screenX-Qa.screenX,bc=e.screenY-Qa.screenY):bc=Sc=0,Qa=e),Sc)},movementY:function(e){return"movementY"in e?e.movementY:bc}}),wo=Et(tu),Wm=j({},tu,{dataTransfer:0}),Im=Et(Wm),Fm=j({},Ya,{relatedTarget:0}),Tc=Et(Fm),Pm=j({},jn,{animationName:0,elapsedTime:0,pseudoElement:0}),eh=Et(Pm),th=j({},jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=Et(th),nh=j({},jn,{data:0}),Yo=Et(nh),ah={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ih={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"},uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ch(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uh[e])?!!t[e]:!1}function xc(){return ch}var sh=j({},Ya,{key:function(e){if(e.key){var t=ah[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ih[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return e.type==="keypress"?Fi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),oh=Et(sh),fh=j({},tu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qo=Et(fh),rh=j({},Ya,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),dh=Et(rh),mh=j({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),hh=Et(mh),yh=j({},tu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ph=Et(yh),vh=j({},jn,{newState:0,oldState:0}),gh=Et(vh),Sh=[9,13,27,32],Ec=et&&"CompositionEvent"in window,Ga=null;et&&"documentMode"in document&&(Ga=document.documentMode);var bh=et&&"TextEvent"in window&&!Ga,Go=et&&(!Ec||Ga&&8<Ga&&11>=Ga),Xo=" ",Zo=!1;function Vo(e,t){switch(e){case"keyup":return Sh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kn=!1;function Th(e,t){switch(e){case"compositionend":return Ko(t);case"keypress":return t.which!==32?null:(Zo=!0,Xo);case"textInput":return e=t.data,e===Xo&&Zo?null:e;default:return null}}function xh(e,t){if(Kn)return e==="compositionend"||!Ec&&Vo(e,t)?(e=Bo(),Ii=gc=Yl=null,Kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Go&&t.locale!=="ko"?null:t.data;default:return null}}var Eh={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 ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eh[e.type]:t==="textarea"}function Jo(e,t,l,n){it?Le?Le.push(n):Le=[n]:it=n,t=Zu(t,"onChange"),0<t.length&&(l=new eu("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Xa=null,Za=null;function jh(e){Od(e,0)}function lu(e){var t=Hl(e);if(Vi(t))return e}function $o(e,t){if(e==="change")return t}var Wo=!1;if(et){var jc;if(et){var Ac="oninput"in document;if(!Ac){var Io=document.createElement("div");Io.setAttribute("oninput","return;"),Ac=typeof Io.oninput=="function"}jc=Ac}else jc=!1;Wo=jc&&(!document.documentMode||9<document.documentMode)}function Fo(){Xa&&(Xa.detachEvent("onpropertychange",Po),Za=Xa=null)}function Po(e){if(e.propertyName==="value"&&lu(Za)){var t=[];Jo(t,Za,e,be(e)),wl(jh,t)}}function Ah(e,t,l){e==="focusin"?(Fo(),Xa=t,Za=l,Xa.attachEvent("onpropertychange",Po)):e==="focusout"&&Fo()}function Nh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lu(Za)}function Ch(e,t){if(e==="click")return lu(t)}function zh(e,t){if(e==="input"||e==="change")return lu(t)}function _h(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:_h;function Va(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!vn.call(t,a)||!Ut(e[a],t[a]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var l=ef(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ef(l)}}function lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Vn(e.document)}return t}function Nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mh=et&&"documentMode"in document&&11>=document.documentMode,kn=null,Cc=null,Ka=null,zc=!1;function af(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zc||kn==null||kn!==Vn(n)||(n=kn,"selectionStart"in n&&Nc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ka&&Va(Ka,n)||(Ka=n,n=Zu(Cc,"onSelect"),0<n.length&&(t=new eu("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=kn)))}function An(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Jn={animationend:An("Animation","AnimationEnd"),animationiteration:An("Animation","AnimationIteration"),animationstart:An("Animation","AnimationStart"),transitionrun:An("Transition","TransitionRun"),transitionstart:An("Transition","TransitionStart"),transitioncancel:An("Transition","TransitionCancel"),transitionend:An("Transition","TransitionEnd")},_c={},uf={};et&&(uf=document.createElement("div").style,"AnimationEvent"in window||(delete Jn.animationend.animation,delete Jn.animationiteration.animation,delete Jn.animationstart.animation),"TransitionEvent"in window||delete Jn.transitionend.transition);function Nn(e){if(_c[e])return _c[e];if(!Jn[e])return e;var t=Jn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in uf)return _c[e]=t[l];return e}var cf=Nn("animationend"),sf=Nn("animationiteration"),of=Nn("animationstart"),Oh=Nn("transitionrun"),Dh=Nn("transitionstart"),Rh=Nn("transitioncancel"),ff=Nn("transitionend"),rf=new Map,Mc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Mc.push("scrollEnd");function el(e,t){rf.set(e,t),rl(t,[e])}var nu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xt=[],$n=0,Oc=0;function au(){for(var e=$n,t=Oc=$n=0;t<e;){var l=Xt[t];Xt[t++]=null;var n=Xt[t];Xt[t++]=null;var a=Xt[t];Xt[t++]=null;var i=Xt[t];if(Xt[t++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}i!==0&&df(l,a,i)}}function iu(e,t,l,n){Xt[$n++]=e,Xt[$n++]=t,Xt[$n++]=l,Xt[$n++]=n,Oc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Dc(e,t,l,n){return iu(e,t,l,n),uu(e)}function Cn(e,t){return iu(e,null,null,t),uu(e)}function df(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-yt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function uu(e){if(50<hi)throw hi=0,Qs=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wn={};function Uh(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,l,n){return new Uh(e,t,l,n)}function Rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Ht(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function mf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cu(e,t,l,n,a,i){var c=0;if(n=e,typeof e=="function")Rc(e)&&(c=1);else if(typeof e=="string")c=wy(e,l,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case mt:return e=Ht(31,l,t,a),e.elementType=mt,e.lanes=i,e;case he:return zn(l.children,a,i,t);case ce:c=8,a|=24;break;case st:return e=Ht(12,l,t,a|2),e.elementType=st,e.lanes=i,e;case Ee:return e=Ht(13,l,t,a),e.elementType=Ee,e.lanes=i,e;case Pe:return e=Ht(19,l,t,a),e.elementType=Pe,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qe:c=10;break e;case bt:c=9;break e;case Oe:c=11;break e;case ae:c=14;break e;case Be:c=16,n=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=Ht(c,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function zn(e,t,l,n){return e=Ht(7,e,n,t),e.lanes=l,e}function Uc(e,t,l){return e=Ht(6,e,null,t),e.lanes=l,e}function hf(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function Hc(e,t,l){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yf=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var l=yf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ol(t)},yf.set(e,t),t)}return{value:e,source:t,stack:Ol(t)}}var In=[],Fn=0,su=null,ka=0,Vt=[],Kt=0,Ql=null,al=1,il="";function hl(e,t){In[Fn++]=ka,In[Fn++]=su,su=e,ka=t}function pf(e,t,l){Vt[Kt++]=al,Vt[Kt++]=il,Vt[Kt++]=Ql,Ql=e;var n=al;e=il;var a=32-yt(n)-1;n&=~(1<<a),l+=1;var i=32-yt(t)+a;if(30<i){var c=a-a%5;i=(n&(1<<c)-1).toString(32),n>>=c,a-=c,al=1<<32-yt(t)+a|l<<a|n,il=i+e}else al=1<<i|l<<a|n,il=e}function qc(e){e.return!==null&&(hl(e,1),pf(e,1,0))}function Bc(e){for(;e===su;)su=In[--Fn],In[Fn]=null,ka=In[--Fn],In[Fn]=null;for(;e===Ql;)Ql=Vt[--Kt],Vt[Kt]=null,il=Vt[--Kt],Vt[Kt]=null,al=Vt[--Kt],Vt[Kt]=null}function vf(e,t){Vt[Kt++]=al,Vt[Kt++]=il,Vt[Kt++]=Ql,al=t.id,il=t.overflow,Ql=e}var ot=null,De=null,de=!1,Gl=null,kt=!1,Lc=Error(r(519));function Xl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ja(Zt(t,e)),Lc}function gf(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[Ue]=e,t[pt]=n,l){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(l=0;l<pi.length;l++)oe(pi[l],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),ki(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),La(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||Hd(t.textContent,l)?(n.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),n.onScroll!=null&&oe("scroll",t),n.onScrollEnd!=null&&oe("scrollend",t),n.onClick!=null&&(t.onclick=W),t=!0):t=!1,t||Xl(e,!0)}function Sf(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:kt=!1;return;case 27:case 3:kt=!0;return;default:ot=ot.return}}function Pn(e){if(e!==ot)return!1;if(!de)return Sf(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||lo(e.type,e.memoizedProps)),l=!l),l&&De&&Xl(e),Sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=Zd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=Zd(e)}else t===27?(t=De,nn(e.type)?(e=co,co=null,De=e):De=t):De=ot?$t(e.stateNode.nextSibling):null;return!0}function _n(){De=ot=null,de=!1}function wc(){var e=Gl;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Gl=null),e}function Ja(e){Gl===null?Gl=[e]:Gl.push(e)}var Yc=g(null),Mn=null,yl=null;function Zl(e,t,l){Q(Yc,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=Yc.current,D(Yc)}function Qc(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Gc(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var c=a.child;i=i.firstContext;e:for(;i!==null;){var f=i;i=a;for(var h=0;h<t.length;h++)if(f.context===t[h]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),Qc(i.return,l,e),n||(c=null);break e}i=f.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(r(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),Qc(c,l,e),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===e){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function ea(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var f=a.type;Ut(a.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(a===me.current){if(c=a.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ti):e=[Ti])}a=a.return}e!==null&&Gc(t,e,l,n),t.flags|=262144}function ou(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function On(e){Mn=e,yl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return bf(Mn,e)}function fu(e,t){return Mn===null&&On(e),bf(e,t)}function bf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},yl===null){if(e===null)throw Error(r(308));yl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yl=yl.next=t;return l}var Hh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},qh=u.unstable_scheduleCallback,Bh=u.unstable_NormalPriority,ke={$$typeof:qe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xc(){return{controller:new Hh,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&qh(Bh,function(){e.controller.abort()})}var Wa=null,Zc=0,ta=0,la=null;function Lh(e,t){if(Wa===null){var l=Wa=[];Zc=0,ta=ks(),la={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Zc++,t.then(Tf,Tf),t}function Tf(){if(--Zc===0&&Wa!==null){la!==null&&(la.status="fulfilled");var e=Wa;Wa=null,ta=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wh(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var xf=_.S;_.S=function(e,t){id=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lh(e,t),xf!==null&&xf(e,t)};var Dn=g(null);function Vc(){var e=Dn.current;return e!==null?e:Me.pooledCache}function ru(e,t){t===null?Q(Dn,Dn.current):Q(Dn,t.pool)}function Ef(){var e=Vc();return e===null?null:{parent:ke._currentValue,pool:e}}var na=Error(r(460)),Kc=Error(r(474)),du=Error(r(542)),mu={then:function(){}};function jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Af(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(W,W),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cf(e),e;default:if(typeof t.status=="string")t.then(W,W);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cf(e),e}throw Un=t,na}}function Rn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Un=l,na):l}}var Un=null;function Nf(){if(Un===null)throw Error(r(459));var e=Un;return Un=null,e}function Cf(e){if(e===na||e===du)throw Error(r(483))}var aa=null,Ia=0;function hu(e){var t=Ia;return Ia+=1,aa===null&&(aa=[]),Af(aa,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yu(e,t){throw t.$$typeof===q?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zf(e){function t(S,v){if(e){var x=S.deletions;x===null?(S.deletions=[v],S.flags|=16):x.push(v)}}function l(S,v){if(!e)return null;for(;v!==null;)t(S,v),v=v.sibling;return null}function n(S){for(var v=new Map;S!==null;)S.key!==null?v.set(S.key,S):v.set(S.index,S),S=S.sibling;return v}function a(S,v){return S=ml(S,v),S.index=0,S.sibling=null,S}function i(S,v,x){return S.index=x,e?(x=S.alternate,x!==null?(x=x.index,x<v?(S.flags|=67108866,v):x):(S.flags|=67108866,v)):(S.flags|=1048576,v)}function c(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function f(S,v,x,O){return v===null||v.tag!==6?(v=Uc(x,S.mode,O),v.return=S,v):(v=a(v,x),v.return=S,v)}function h(S,v,x,O){var k=x.type;return k===he?z(S,v,x.props.children,O,x.key):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Be&&Rn(k)===v.type)?(v=a(v,x.props),Fa(v,x),v.return=S,v):(v=cu(x.type,x.key,x.props,null,S.mode,O),Fa(v,x),v.return=S,v)}function E(S,v,x,O){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Hc(x,S.mode,O),v.return=S,v):(v=a(v,x.children||[]),v.return=S,v)}function z(S,v,x,O,k){return v===null||v.tag!==7?(v=zn(x,S.mode,O,k),v.return=S,v):(v=a(v,x),v.return=S,v)}function R(S,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Uc(""+v,S.mode,x),v.return=S,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case L:return x=cu(v.type,v.key,v.props,null,S.mode,x),Fa(x,v),x.return=S,x;case ne:return v=Hc(v,S.mode,x),v.return=S,v;case Be:return v=Rn(v),R(S,v,x)}if(gt(v)||Ye(v))return v=zn(v,S.mode,x,null),v.return=S,v;if(typeof v.then=="function")return R(S,hu(v),x);if(v.$$typeof===qe)return R(S,fu(S,v),x);yu(S,v)}return null}function A(S,v,x,O){var k=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return k!==null?null:f(S,v,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case L:return x.key===k?h(S,v,x,O):null;case ne:return x.key===k?E(S,v,x,O):null;case Be:return x=Rn(x),A(S,v,x,O)}if(gt(x)||Ye(x))return k!==null?null:z(S,v,x,O,null);if(typeof x.then=="function")return A(S,v,hu(x),O);if(x.$$typeof===qe)return A(S,v,fu(S,x),O);yu(S,x)}return null}function N(S,v,x,O,k){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return S=S.get(x)||null,f(v,S,""+O,k);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case L:return S=S.get(O.key===null?x:O.key)||null,h(v,S,O,k);case ne:return S=S.get(O.key===null?x:O.key)||null,E(v,S,O,k);case Be:return O=Rn(O),N(S,v,x,O,k)}if(gt(O)||Ye(O))return S=S.get(x)||null,z(v,S,O,k,null);if(typeof O.then=="function")return N(S,v,x,hu(O),k);if(O.$$typeof===qe)return N(S,v,x,fu(v,O),k);yu(v,O)}return null}function Z(S,v,x,O){for(var k=null,ye=null,K=v,ie=v=0,re=null;K!==null&&ie<x.length;ie++){K.index>ie?(re=K,K=null):re=K.sibling;var pe=A(S,K,x[ie],O);if(pe===null){K===null&&(K=re);break}e&&K&&pe.alternate===null&&t(S,K),v=i(pe,v,ie),ye===null?k=pe:ye.sibling=pe,ye=pe,K=re}if(ie===x.length)return l(S,K),de&&hl(S,ie),k;if(K===null){for(;ie<x.length;ie++)K=R(S,x[ie],O),K!==null&&(v=i(K,v,ie),ye===null?k=K:ye.sibling=K,ye=K);return de&&hl(S,ie),k}for(K=n(K);ie<x.length;ie++)re=N(K,S,ie,x[ie],O),re!==null&&(e&&re.alternate!==null&&K.delete(re.key===null?ie:re.key),v=i(re,v,ie),ye===null?k=re:ye.sibling=re,ye=re);return e&&K.forEach(function(on){return t(S,on)}),de&&hl(S,ie),k}function I(S,v,x,O){if(x==null)throw Error(r(151));for(var k=null,ye=null,K=v,ie=v=0,re=null,pe=x.next();K!==null&&!pe.done;ie++,pe=x.next()){K.index>ie?(re=K,K=null):re=K.sibling;var on=A(S,K,pe.value,O);if(on===null){K===null&&(K=re);break}e&&K&&on.alternate===null&&t(S,K),v=i(on,v,ie),ye===null?k=on:ye.sibling=on,ye=on,K=re}if(pe.done)return l(S,K),de&&hl(S,ie),k;if(K===null){for(;!pe.done;ie++,pe=x.next())pe=R(S,pe.value,O),pe!==null&&(v=i(pe,v,ie),ye===null?k=pe:ye.sibling=pe,ye=pe);return de&&hl(S,ie),k}for(K=n(K);!pe.done;ie++,pe=x.next())pe=N(K,S,ie,pe.value,O),pe!==null&&(e&&pe.alternate!==null&&K.delete(pe.key===null?ie:pe.key),v=i(pe,v,ie),ye===null?k=pe:ye.sibling=pe,ye=pe);return e&&K.forEach(function(Wy){return t(S,Wy)}),de&&hl(S,ie),k}function ze(S,v,x,O){if(typeof x=="object"&&x!==null&&x.type===he&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case L:e:{for(var k=x.key;v!==null;){if(v.key===k){if(k=x.type,k===he){if(v.tag===7){l(S,v.sibling),O=a(v,x.props.children),O.return=S,S=O;break e}}else if(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Be&&Rn(k)===v.type){l(S,v.sibling),O=a(v,x.props),Fa(O,x),O.return=S,S=O;break e}l(S,v);break}else t(S,v);v=v.sibling}x.type===he?(O=zn(x.props.children,S.mode,O,x.key),O.return=S,S=O):(O=cu(x.type,x.key,x.props,null,S.mode,O),Fa(O,x),O.return=S,S=O)}return c(S);case ne:e:{for(k=x.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){l(S,v.sibling),O=a(v,x.children||[]),O.return=S,S=O;break e}else{l(S,v);break}else t(S,v);v=v.sibling}O=Hc(x,S.mode,O),O.return=S,S=O}return c(S);case Be:return x=Rn(x),ze(S,v,x,O)}if(gt(x))return Z(S,v,x,O);if(Ye(x)){if(k=Ye(x),typeof k!="function")throw Error(r(150));return x=k.call(x),I(S,v,x,O)}if(typeof x.then=="function")return ze(S,v,hu(x),O);if(x.$$typeof===qe)return ze(S,v,fu(S,x),O);yu(S,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(l(S,v.sibling),O=a(v,x),O.return=S,S=O):(l(S,v),O=Uc(x,S.mode,O),O.return=S,S=O),c(S)):l(S,v)}return function(S,v,x,O){try{Ia=0;var k=ze(S,v,x,O);return aa=null,k}catch(K){if(K===na||K===du)throw K;var ye=Ht(29,K,null,S.mode);return ye.lanes=O,ye.return=S,ye}}}var Hn=zf(!0),_f=zf(!1),Vl=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(ge&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=uu(e),df(e,null,l),t}return iu(e,n,t,l),uu(e)}function Pa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Rl(e,l)}}function $c(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Wc=!1;function ei(){if(Wc){var e=la;if(e!==null)throw e}}function ti(e,t,l,n){Wc=!1;var a=e.updateQueue;Vl=!1;var i=a.firstBaseUpdate,c=a.lastBaseUpdate,f=a.shared.pending;if(f!==null){a.shared.pending=null;var h=f,E=h.next;h.next=null,c===null?i=E:c.next=E,c=h;var z=e.alternate;z!==null&&(z=z.updateQueue,f=z.lastBaseUpdate,f!==c&&(f===null?z.firstBaseUpdate=E:f.next=E,z.lastBaseUpdate=h))}if(i!==null){var R=a.baseState;c=0,z=E=h=null,f=i;do{var A=f.lane&-536870913,N=A!==f.lane;if(N?(fe&A)===A:(n&A)===A){A!==0&&A===ta&&(Wc=!0),z!==null&&(z=z.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var Z=e,I=f;A=t;var ze=l;switch(I.tag){case 1:if(Z=I.payload,typeof Z=="function"){R=Z.call(ze,R,A);break e}R=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=I.payload,A=typeof Z=="function"?Z.call(ze,R,A):Z,A==null)break e;R=j({},R,A);break e;case 2:Vl=!0}}A=f.callback,A!==null&&(e.flags|=64,N&&(e.flags|=8192),N=a.callbacks,N===null?a.callbacks=[A]:N.push(A))}else N={lane:A,tag:f.tag,payload:f.payload,callback:f.callback,next:null},z===null?(E=z=N,h=R):z=z.next=N,c|=A;if(f=f.next,f===null){if(f=a.shared.pending,f===null)break;N=f,f=N.next,N.next=null,a.lastBaseUpdate=N,a.shared.pending=null}}while(!0);z===null&&(h=R),a.baseState=h,a.firstBaseUpdate=E,a.lastBaseUpdate=z,i===null&&(a.shared.lanes=0),Fl|=c,e.lanes=c,e.memoizedState=R}}function Mf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Of(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Mf(l[e],t)}var ia=g(null),pu=g(0);function Df(e,t){e=Al,Q(pu,e),Q(ia,t),Al=e|t.baseLanes}function Ic(){Q(pu,Al),Q(ia,ia.current)}function Fc(){Al=pu.current,D(ia),D(pu)}var qt=g(null),Jt=null;function Jl(e){var t=e.alternate;Q(Xe,Xe.current&1),Q(qt,e),Jt===null&&(t===null||ia.current!==null||t.memoizedState!==null)&&(Jt=e)}function Pc(e){Q(Xe,Xe.current),Q(qt,e),Jt===null&&(Jt=e)}function Rf(e){e.tag===22?(Q(Xe,Xe.current),Q(qt,e),Jt===null&&(Jt=e)):$l()}function $l(){Q(Xe,Xe.current),Q(qt,qt.current)}function Bt(e){D(qt),Jt===e&&(Jt=null),D(Xe)}var Xe=g(0);function vu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||io(l)||uo(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vl=0,le=null,Ne=null,Je=null,gu=!1,ua=!1,qn=!1,Su=0,li=0,ca=null,Yh=0;function Qe(){throw Error(r(321))}function es(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ut(e[l],t[l]))return!1;return!0}function ts(e,t,l,n,a,i){return vl=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?pr:ps,qn=!1,i=l(n,a),qn=!1,ua&&(i=Hf(t,l,n,a)),Uf(e),i}function Uf(e){_.H=ii;var t=Ne!==null&&Ne.next!==null;if(vl=0,Je=Ne=le=null,gu=!1,li=0,ca=null,t)throw Error(r(300));e===null||$e||(e=e.dependencies,e!==null&&ou(e)&&($e=!0))}function Hf(e,t,l,n){le=e;var a=0;do{if(ua&&(ca=null),li=0,ua=!1,25<=a)throw Error(r(301));if(a+=1,Je=Ne=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}_.H=vr,i=t(l,n)}while(ua);return i}function Qh(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(le.flags|=1024),t}function ls(){var e=Su!==0;return Su=0,e}function ns(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function as(e){if(gu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gu=!1}vl=0,Je=Ne=le=null,ua=!1,li=Su=0,ca=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?le.memoizedState=Je=e:Je=Je.next=e,Je}function Ze(){if(Ne===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Je===null?le.memoizedState:Je.next;if(t!==null)Je=t,Ne=e;else{if(e===null)throw le.alternate===null?Error(r(467)):Error(r(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Je===null?le.memoizedState=Je=e:Je=Je.next=e}return Je}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=li;return li+=1,ca===null&&(ca=[]),e=Af(ca,e,t),t=le,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?pr:ps),e}function Tu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===qe)return ft(e)}throw Error(r(438,String(e)))}function is(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=le.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bu(),le.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=w;return t.index++,l}function gl(e,t){return typeof t=="function"?t(e):t}function xu(e){var t=Ze();return us(t,Ne,e)}function us(e,t,l){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var c=a.next;a.next=i.next,i.next=c}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var f=c=null,h=null,E=t,z=!1;do{var R=E.lane&-536870913;if(R!==E.lane?(fe&R)===R:(vl&R)===R){var A=E.revertLane;if(A===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),R===ta&&(z=!0);else if((vl&A)===A){E=E.next,A===ta&&(z=!0);continue}else R={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},h===null?(f=h=R,c=i):h=h.next=R,le.lanes|=A,Fl|=A;R=E.action,qn&&l(i,R),i=E.hasEagerState?E.eagerState:l(i,R)}else A={lane:R,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},h===null?(f=h=A,c=i):h=h.next=A,le.lanes|=R,Fl|=R;E=E.next}while(E!==null&&E!==t);if(h===null?c=i:h.next=f,!Ut(i,e.memoizedState)&&($e=!0,z&&(l=la,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=h,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function cs(e){var t=Ze(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do i=e(i,c.action),c=c.next;while(c!==a);Ut(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function qf(e,t,l){var n=le,a=Ze(),i=de;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!Ut((Ne||a).memoizedState,l);if(c&&(a.memoizedState=l,$e=!0),a=a.queue,fs(wf.bind(null,n,a,e),[e]),a.getSnapshot!==t||c||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,sa(9,{destroy:void 0},Lf.bind(null,n,a,l,t),null),Me===null)throw Error(r(349));i||(vl&127)!==0||Bf(n,t,l)}return l}function Bf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=bu(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Lf(e,t,l,n){t.value=l,t.getSnapshot=n,Yf(t)&&Qf(e)}function wf(e,t,l){return l(function(){Yf(t)&&Qf(e)})}function Yf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ut(e,l)}catch{return!0}}function Qf(e){var t=Cn(e,2);t!==null&&zt(t,e,2)}function ss(e){var t=St();if(typeof e=="function"){var l=e;if(e=l(),qn){Mt(!0);try{l()}finally{Mt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:e},t}function Gf(e,t,l,n){return e.baseState=l,us(e,Ne,typeof n=="function"?n:gl)}function Gh(e,t,l,n,a){if(Au(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};_.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,Xf(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Xf(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=_.T,c={};_.T=c;try{var f=l(a,n),h=_.S;h!==null&&h(c,f),Zf(e,t,f)}catch(E){os(e,t,E)}finally{i!==null&&c.types!==null&&(i.types=c.types),_.T=i}}else try{i=l(a,n),Zf(e,t,i)}catch(E){os(e,t,E)}}function Zf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Vf(e,t,n)},function(n){return os(e,t,n)}):Vf(e,t,l)}function Vf(e,t,l){t.status="fulfilled",t.value=l,Kf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Xf(e,l)))}function os(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Kf(t),t=t.next;while(t!==n)}e.action=null}function Kf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kf(e,t){return t}function Jf(e,t){if(de){var l=Me.formState;if(l!==null){e:{var n=le;if(de){if(De){t:{for(var a=De,i=kt;a.nodeType!==8;){if(!i){a=null;break t}if(a=$t(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){De=$t(a.nextSibling),n=a.data==="F!";break e}}Xl(n)}n=!1}n&&(t=l[0])}}return l=St(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kf,lastRenderedState:t},l.queue=n,l=mr.bind(null,le,n),n.dispatch=l,n=ss(!1),i=ys.bind(null,le,!1,n.queue),n=St(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=Gh.bind(null,le,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function $f(e){var t=Ze();return Wf(t,Ne,e)}function Wf(e,t,l){if(t=us(e,t,kf)[0],e=xu(gl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ni(t)}catch(c){throw c===na?du:c}else n=t;t=Ze();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(le.flags|=2048,sa(9,{destroy:void 0},Xh.bind(null,a,l),null)),[n,i,e]}function Xh(e,t){e.action=t}function If(e){var t=Ze(),l=Ne;if(l!==null)return Wf(t,l,e);Ze(),t=t.memoizedState,l=Ze();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function sa(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=le.updateQueue,t===null&&(t=bu(),le.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Ff(){return Ze().memoizedState}function Eu(e,t,l,n){var a=St();le.flags|=e,a.memoizedState=sa(1|t,{destroy:void 0},l,n===void 0?null:n)}function ju(e,t,l,n){var a=Ze();n=n===void 0?null:n;var i=a.memoizedState.inst;Ne!==null&&n!==null&&es(n,Ne.memoizedState.deps)?a.memoizedState=sa(t,i,l,n):(le.flags|=e,a.memoizedState=sa(1|t,i,l,n))}function Pf(e,t){Eu(8390656,8,e,t)}function fs(e,t){ju(2048,8,e,t)}function Zh(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=bu(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function er(e){var t=Ze().memoizedState;return Zh({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function tr(e,t){return ju(4,2,e,t)}function lr(e,t){return ju(4,4,e,t)}function nr(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ar(e,t,l){l=l!=null?l.concat([e]):null,ju(4,4,nr.bind(null,t,e),l)}function rs(){}function ir(e,t){var l=Ze();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&es(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function ur(e,t){var l=Ze();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&es(t,n[1]))return n[0];if(n=e(),qn){Mt(!0);try{e()}finally{Mt(!1)}}return l.memoizedState=[n,t],n}function ds(e,t,l){return l===void 0||(vl&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=cd(),le.lanes|=e,Fl|=e,l)}function cr(e,t,l,n){return Ut(l,t)?l:ia.current!==null?(e=ds(e,l,n),Ut(e,t)||($e=!0),e):(vl&42)===0||(vl&1073741824)!==0&&(fe&261930)===0?($e=!0,e.memoizedState=l):(e=cd(),le.lanes|=e,Fl|=e,t)}function sr(e,t,l,n,a){var i=Y.p;Y.p=i!==0&&8>i?i:8;var c=_.T,f={};_.T=f,ys(e,!1,t,l);try{var h=a(),E=_.S;if(E!==null&&E(f,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var z=wh(h,n);ai(e,t,z,Yt(e))}else ai(e,t,n,Yt(e))}catch(R){ai(e,t,{then:function(){},status:"rejected",reason:R},Yt())}finally{Y.p=i,c!==null&&f.types!==null&&(c.types=f.types),_.T=c}}function Vh(){}function ms(e,t,l,n){if(e.tag!==5)throw Error(r(476));var a=or(e).queue;sr(e,a,t,$,l===null?Vh:function(){return fr(e),l(n)})}function or(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fr(e){var t=or(e);t.next===null&&(t=e.alternate.memoizedState),ai(e,t.next.queue,{},Yt())}function hs(){return ft(Ti)}function rr(){return Ze().memoizedState}function dr(){return Ze().memoizedState}function Kh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Yt();e=Kl(l);var n=kl(t,e,l);n!==null&&(zt(n,t,l),Pa(n,t,l)),t={cache:Xc()},e.payload=t;return}t=t.return}}function kh(e,t,l){var n=Yt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Au(e)?hr(t,l):(l=Dc(e,t,l,n),l!==null&&(zt(l,e,n),yr(l,t,n)))}function mr(e,t,l){var n=Yt();ai(e,t,l,n)}function ai(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Au(e))hr(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,f=i(c,l);if(a.hasEagerState=!0,a.eagerState=f,Ut(f,c))return iu(e,t,a,0),Me===null&&au(),!1}catch{}if(l=Dc(e,t,a,n),l!==null)return zt(l,e,n),yr(l,t,n),!0}return!1}function ys(e,t,l,n){if(n={lane:2,revertLane:ks(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Au(e)){if(t)throw Error(r(479))}else t=Dc(e,l,n,2),t!==null&&zt(t,e,2)}function Au(e){var t=e.alternate;return e===le||t!==null&&t===le}function hr(e,t){ua=gu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function yr(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Rl(e,l)}}var ii={readContext:ft,use:Tu,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ii.useEffectEvent=Qe;var pr={readContext:ft,use:Tu,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Pf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Eu(4194308,4,nr.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Eu(4194308,4,e,t)},useInsertionEffect:function(e,t){Eu(4,2,e,t)},useMemo:function(e,t){var l=St();t=t===void 0?null:t;var n=e();if(qn){Mt(!0);try{e()}finally{Mt(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=St();if(l!==void 0){var a=l(t);if(qn){Mt(!0);try{l(t)}finally{Mt(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=kh.bind(null,le,e),[n.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=ss(e);var t=e.queue,l=mr.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:rs,useDeferredValue:function(e,t){var l=St();return ds(l,e,t)},useTransition:function(){var e=ss(!1);return e=sr.bind(null,le,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=le,a=St();if(de){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Me===null)throw Error(r(349));(fe&127)!==0||Bf(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,Pf(wf.bind(null,n,i,e),[e]),n.flags|=2048,sa(9,{destroy:void 0},Lf.bind(null,n,i,l,t),null),l},useId:function(){var e=St(),t=Me.identifierPrefix;if(de){var l=il,n=al;l=(n&~(1<<32-yt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Su++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Yh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hs,useFormState:Jf,useActionState:Jf,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ys.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:is,useCacheRefresh:function(){return St().memoizedState=Kh.bind(null,le)},useEffectEvent:function(e){var t=St(),l={impl:e};return t.memoizedState=l,function(){if((ge&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ps={readContext:ft,use:Tu,useCallback:ir,useContext:ft,useEffect:fs,useImperativeHandle:ar,useInsertionEffect:tr,useLayoutEffect:lr,useMemo:ur,useReducer:xu,useRef:Ff,useState:function(){return xu(gl)},useDebugValue:rs,useDeferredValue:function(e,t){var l=Ze();return cr(l,Ne.memoizedState,e,t)},useTransition:function(){var e=xu(gl)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:qf,useId:rr,useHostTransitionStatus:hs,useFormState:$f,useActionState:$f,useOptimistic:function(e,t){var l=Ze();return Gf(l,Ne,e,t)},useMemoCache:is,useCacheRefresh:dr};ps.useEffectEvent=er;var vr={readContext:ft,use:Tu,useCallback:ir,useContext:ft,useEffect:fs,useImperativeHandle:ar,useInsertionEffect:tr,useLayoutEffect:lr,useMemo:ur,useReducer:cs,useRef:Ff,useState:function(){return cs(gl)},useDebugValue:rs,useDeferredValue:function(e,t){var l=Ze();return Ne===null?ds(l,e,t):cr(l,Ne.memoizedState,e,t)},useTransition:function(){var e=cs(gl)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:qf,useId:rr,useHostTransitionStatus:hs,useFormState:If,useActionState:If,useOptimistic:function(e,t){var l=Ze();return Ne!==null?Gf(l,Ne,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:is,useCacheRefresh:dr};vr.useEffectEvent=er;function vs(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:j({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var gs={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Yt(),a=Kl(n);a.payload=t,l!=null&&(a.callback=l),t=kl(e,a,n),t!==null&&(zt(t,e,n),Pa(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Yt(),a=Kl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=kl(e,a,n),t!==null&&(zt(t,e,n),Pa(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Yt(),n=Kl(l);n.tag=2,t!=null&&(n.callback=t),t=kl(e,n,l),t!==null&&(zt(t,e,l),Pa(t,e,l))}};function gr(e,t,l,n,a,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,c):t.prototype&&t.prototype.isPureReactComponent?!Va(l,n)||!Va(a,i):!0}function Sr(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&gs.enqueueReplaceState(t,t.state,null)}function Bn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=j({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function br(e){nu(e)}function Tr(e){console.error(e)}function xr(e){nu(e)}function Nu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Er(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Ss(e,t,l){return l=Kl(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(e,t)},l}function jr(e){return e=Kl(e),e.tag=3,e}function Ar(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){Er(t,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Er(t,l,n),typeof a!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})})}function Jh(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&ea(t,l,a,!0),l=qt.current,l!==null){switch(l.tag){case 31:case 13:return Jt===null?Lu():l.alternate===null&&Ge===0&&(Ge=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===mu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Zs(e,n,a)),!1;case 22:return l.flags|=65536,n===mu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Zs(e,n,a)),!1}throw Error(r(435,l.tag))}return Zs(e,n,a),Lu(),!1}if(de)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Lc&&(e=Error(r(422),{cause:n}),Ja(Zt(e,l)))):(n!==Lc&&(t=Error(r(423),{cause:n}),Ja(Zt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Zt(n,l),a=Ss(e.stateNode,n,a),$c(e,a),Ge!==4&&(Ge=2)),!1;var i=Error(r(520),{cause:n});if(i=Zt(i,l),mi===null?mi=[i]:mi.push(i),Ge!==4&&(Ge=2),t===null)return!0;n=Zt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Ss(l.stateNode,n,e),$c(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Pl===null||!Pl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=jr(a),Ar(a,e,l,n),$c(l,a),!1}l=l.return}while(l!==null);return!1}var bs=Error(r(461)),$e=!1;function rt(e,t,l,n){t.child=e===null?_f(t,null,l,n):Hn(t,e.child,l,n)}function Nr(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var c={};for(var f in n)f!=="ref"&&(c[f]=n[f])}else c=n;return On(t),n=ts(e,t,l,c,i,a),f=ls(),e!==null&&!$e?(ns(e,t,a),Sl(e,t,a)):(de&&f&&qc(t),t.flags|=1,rt(e,t,n,a),t.child)}function Cr(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Rc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,zr(e,t,i,n,a)):(e=cu(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!zs(e,a)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:Va,l(c,n)&&e.ref===t.ref)return Sl(e,t,a)}return t.flags|=1,e=ml(i,n),e.ref=t.ref,e.return=t,t.child=e}function zr(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(Va(i,n)&&e.ref===t.ref)if($e=!1,t.pendingProps=n=i,zs(e,a))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,Sl(e,t,a)}return Ts(e,t,l,n,a)}function _r(e,t,l,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return Mr(e,t,i,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ru(t,i!==null?i.cachePool:null),i!==null?Df(t,i):Ic(),Rf(t);else return n=t.lanes=536870912,Mr(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(ru(t,i.cachePool),Df(t,i),$l(),t.memoizedState=null):(e!==null&&ru(t,null),Ic(),$l());return rt(e,t,a,l),t.child}function ui(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mr(e,t,l,n,a){var i=Vc();return i=i===null?null:{parent:ke._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&ru(t,null),Ic(),Rf(t),e!==null&&ea(e,t,n,!0),t.childLanes=a,null}function Cu(e,t){return t=_u({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Or(e,t,l){return Hn(t,e.child,null,l),e=Cu(t,t.pendingProps),e.flags|=2,Bt(t),t.memoizedState=null,e}function $h(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(n.mode==="hidden")return e=Cu(t,n),t.lanes=536870912,ui(null,e);if(Pc(t),(e=De)?(e=Xd(e,kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ql!==null?{id:al,overflow:il}:null,retryLane:536870912,hydrationErrors:null},l=hf(e),l.return=t,t.child=l,ot=t,De=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return Cu(t,n)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Pc(t),a)if(t.flags&256)t.flags&=-257,t=Or(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if($e||ea(e,t,l,!1),a=(l&e.childLanes)!==0,$e||a){if(n=Me,n!==null&&(c=Li(n,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Cn(e,c),zt(n,e,c),bs;Lu(),t=Or(e,t,l)}else e=i.treeContext,De=$t(c.nextSibling),ot=t,de=!0,Gl=null,kt=!1,e!==null&&vf(t,e),t=Cu(t,n),t.flags|=4096;return t}return e=ml(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ts(e,t,l,n,a){return On(t),l=ts(e,t,l,n,void 0,a),n=ls(),e!==null&&!$e?(ns(e,t,a),Sl(e,t,a)):(de&&n&&qc(t),t.flags|=1,rt(e,t,l,a),t.child)}function Dr(e,t,l,n,a,i){return On(t),t.updateQueue=null,l=Hf(t,n,l,a),Uf(e),n=ls(),e!==null&&!$e?(ns(e,t,i),Sl(e,t,i)):(de&&n&&qc(t),t.flags|=1,rt(e,t,l,i),t.child)}function Rr(e,t,l,n,a){if(On(t),t.stateNode===null){var i=Wn,c=l.contextType;typeof c=="object"&&c!==null&&(i=ft(c)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=gs,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},kc(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?ft(c):Wn,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(vs(t,l,c,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&gs.enqueueReplaceState(i,i.state,null),ti(t,n,i,a),ei(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,h=Bn(l,f);i.props=h;var E=i.context,z=l.contextType;c=Wn,typeof z=="object"&&z!==null&&(c=ft(z));var R=l.getDerivedStateFromProps;z=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,z||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||E!==c)&&Sr(t,i,n,c),Vl=!1;var A=t.memoizedState;i.state=A,ti(t,n,i,a),ei(),E=t.memoizedState,f||A!==E||Vl?(typeof R=="function"&&(vs(t,l,R,n),E=t.memoizedState),(h=Vl||gr(t,l,h,n,A,E,c))?(z||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=E),i.props=n,i.state=E,i.context=c,n=h):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Jc(e,t),c=t.memoizedProps,z=Bn(l,c),i.props=z,R=t.pendingProps,A=i.context,E=l.contextType,h=Wn,typeof E=="object"&&E!==null&&(h=ft(E)),f=l.getDerivedStateFromProps,(E=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==R||A!==h)&&Sr(t,i,n,h),Vl=!1,A=t.memoizedState,i.state=A,ti(t,n,i,a),ei();var N=t.memoizedState;c!==R||A!==N||Vl||e!==null&&e.dependencies!==null&&ou(e.dependencies)?(typeof f=="function"&&(vs(t,l,f,n),N=t.memoizedState),(z=Vl||gr(t,l,z,n,A,N,h)||e!==null&&e.dependencies!==null&&ou(e.dependencies))?(E||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,N,h),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,N,h)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=N),i.props=n,i.state=N,i.context=h,n=z):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,zu(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Hn(t,e.child,null,a),t.child=Hn(t,null,l,a)):rt(e,t,l,a),t.memoizedState=i.state,e=t.child):e=Sl(e,t,a),e}function Ur(e,t,l,n){return _n(),t.flags|=256,rt(e,t,l,n),t.child}var xs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Es(e){return{baseLanes:e,cachePool:Ef()}}function js(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=wt),e}function Hr(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),c&&(a=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(a?Jl(t):$l(),(e=De)?(e=Xd(e,kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ql!==null?{id:al,overflow:il}:null,retryLane:536870912,hydrationErrors:null},l=hf(e),l.return=t,t.child=l,ot=t,De=null)):e=null,e===null)throw Xl(t);return uo(e)?t.lanes=32:t.lanes=536870912,null}var f=n.children;return n=n.fallback,a?($l(),a=t.mode,f=_u({mode:"hidden",children:f},a),n=zn(n,a,l,null),f.return=t,n.return=t,f.sibling=n,t.child=f,n=t.child,n.memoizedState=Es(l),n.childLanes=js(e,c,l),t.memoizedState=xs,ui(null,n)):(Jl(t),As(t,f))}var h=e.memoizedState;if(h!==null&&(f=h.dehydrated,f!==null)){if(i)t.flags&256?(Jl(t),t.flags&=-257,t=Ns(e,t,l)):t.memoizedState!==null?($l(),t.child=e.child,t.flags|=128,t=null):($l(),f=n.fallback,a=t.mode,n=_u({mode:"visible",children:n.children},a),f=zn(f,a,l,null),f.flags|=2,n.return=t,f.return=t,n.sibling=f,t.child=n,Hn(t,e.child,null,l),n=t.child,n.memoizedState=Es(l),n.childLanes=js(e,c,l),t.memoizedState=xs,t=ui(null,n));else if(Jl(t),uo(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var E=c.dgst;c=E,n=Error(r(419)),n.stack="",n.digest=c,Ja({value:n,source:null,stack:null}),t=Ns(e,t,l)}else if($e||ea(e,t,l,!1),c=(l&e.childLanes)!==0,$e||c){if(c=Me,c!==null&&(n=Li(c,l),n!==0&&n!==h.retryLane))throw h.retryLane=n,Cn(e,n),zt(c,e,n),bs;io(f)||Lu(),t=Ns(e,t,l)}else io(f)?(t.flags|=192,t.child=e.child,t=null):(e=h.treeContext,De=$t(f.nextSibling),ot=t,de=!0,Gl=null,kt=!1,e!==null&&vf(t,e),t=As(t,n.children),t.flags|=4096);return t}return a?($l(),f=n.fallback,a=t.mode,h=e.child,E=h.sibling,n=ml(h,{mode:"hidden",children:n.children}),n.subtreeFlags=h.subtreeFlags&65011712,E!==null?f=ml(E,f):(f=zn(f,a,l,null),f.flags|=2),f.return=t,n.return=t,n.sibling=f,t.child=n,ui(null,n),n=t.child,f=e.child.memoizedState,f===null?f=Es(l):(a=f.cachePool,a!==null?(h=ke._currentValue,a=a.parent!==h?{parent:h,pool:h}:a):a=Ef(),f={baseLanes:f.baseLanes|l,cachePool:a}),n.memoizedState=f,n.childLanes=js(e,c,l),t.memoizedState=xs,ui(e.child,n)):(Jl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function As(e,t){return t=_u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _u(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function Ns(e,t,l){return Hn(t,e.child,null,l),e=As(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qr(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Qc(e.return,t,l)}function Cs(e,t,l,n,a,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=l,c.tailMode=a,c.treeForkCount=i)}function Br(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var c=Xe.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,Q(Xe,c),rt(e,t,n,l),n=de?ka:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qr(e,l,t);else if(e.tag===19)qr(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&vu(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Cs(t,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&vu(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Cs(t,!0,l,null,i,n);break;case"together":Cs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Sl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Fl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function zs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ou(e)))}function Wh(e,t,l){switch(t.tag){case 3:nt(t,t.stateNode.containerInfo),Zl(t,ke,e.memoizedState.cache),_n();break;case 27:case 5:_l(t);break;case 4:nt(t,t.stateNode.containerInfo);break;case 10:Zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Hr(e,t,l):(Jl(t),e=Sl(e,t,l),e!==null?e.sibling:null);Jl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(ea(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return Br(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Q(Xe,Xe.current),n)break;return null;case 22:return t.lanes=0,_r(e,t,l,t.pendingProps);case 24:Zl(t,ke,e.memoizedState.cache)}return Sl(e,t,l)}function Lr(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!zs(e,l)&&(t.flags&128)===0)return $e=!1,Wh(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,de&&(t.flags&1048576)!==0&&pf(t,ka,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Rn(t.elementType),t.type=e,typeof e=="function")Rc(e)?(n=Bn(e,n),t.tag=1,t=Rr(null,t,e,n,l)):(t.tag=0,t=Ts(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===Oe){t.tag=11,t=Nr(null,t,e,n,l);break e}else if(a===ae){t.tag=14,t=Cr(null,t,e,n,l);break e}}throw t=_t(e)||e,Error(r(306,t,""))}}return t;case 0:return Ts(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Bn(n,t.pendingProps),Rr(e,t,n,a,l);case 3:e:{if(nt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,Jc(e,t),ti(t,n,null,l);var c=t.memoizedState;if(n=c.cache,Zl(t,ke,n),n!==i.cache&&Gc(t,[ke],l,!0),ei(),n=c.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Ur(e,t,n,l);break e}else if(n!==a){a=Zt(Error(r(424)),t),Ja(a),t=Ur(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,De=$t(e.firstChild),ot=t,de=!0,Gl=null,kt=!0,l=_f(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(_n(),n===a){t=Sl(e,t,l);break e}rt(e,t,n,l)}t=t.child}return t;case 26:return zu(e,t),e===null?(l=$d(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,n=Vu(ue.current).createElement(l),n[Ue]=t,n[pt]=e,dt(n,l,e),Ke(n),t.stateNode=n):t.memoizedState=$d(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _l(t),e===null&&de&&(n=t.stateNode=Kd(t.type,t.pendingProps,ue.current),ot=t,kt=!0,a=De,nn(t.type)?(co=a,De=$t(n.firstChild)):De=a),rt(e,t,t.pendingProps.children,l),zu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((a=n=De)&&(n=Ny(n,t.type,t.pendingProps,kt),n!==null?(t.stateNode=n,ot=t,De=$t(n.firstChild),kt=!1,a=!0):a=!1),a||Xl(t)),_l(t),a=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,n=i.children,lo(a,i)?n=null:c!==null&&lo(a,c)&&(t.flags|=32),t.memoizedState!==null&&(a=ts(e,t,Qh,null,null,l),Ti._currentValue=a),zu(e,t),rt(e,t,n,l),t.child;case 6:return e===null&&de&&((e=l=De)&&(l=Cy(l,t.pendingProps,kt),l!==null?(t.stateNode=l,ot=t,De=null,e=!0):e=!1),e||Xl(t)),null;case 13:return Hr(e,t,l);case 4:return nt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hn(t,null,n,l):rt(e,t,n,l),t.child;case 11:return Nr(e,t,t.type,t.pendingProps,l);case 7:return rt(e,t,t.pendingProps,l),t.child;case 8:return rt(e,t,t.pendingProps.children,l),t.child;case 12:return rt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Zl(t,t.type,n.value),rt(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,On(t),a=ft(a),n=n(a),t.flags|=1,rt(e,t,n,l),t.child;case 14:return Cr(e,t,t.type,t.pendingProps,l);case 15:return zr(e,t,t.type,t.pendingProps,l);case 19:return Br(e,t,l);case 31:return $h(e,t,l);case 22:return _r(e,t,l,t.pendingProps);case 24:return On(t),n=ft(ke),e===null?(a=Vc(),a===null&&(a=Me,i=Xc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},kc(t),Zl(t,ke,a)):((e.lanes&l)!==0&&(Jc(e,t),ti(t,null,null,l),ei()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Zl(t,ke,n)):(n=i.cache,Zl(t,ke,n),n!==a.cache&&Gc(t,[ke],l,!0))),rt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function bl(e){e.flags|=4}function _s(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(rd())e.flags|=8192;else throw Un=mu,Kc}else e.flags&=-16777217}function wr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!em(t))if(rd())e.flags|=8192;else throw Un=mu,Kc}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?za():536870912,e.lanes|=t,da|=t)}function ci(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Re(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function Ih(e,t,l){var n=t.pendingProps;switch(Bc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pl(ke),je(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Pn(t)?bl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wc())),Re(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(bl(t),i!==null?(Re(t),wr(t,i)):(Re(t),_s(t,a,null,n,l))):i?i!==e.memoizedState?(bl(t),Re(t),wr(t,i)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&bl(t),Re(t),_s(t,a,e,n,l)),null;case 27:if(Ml(t),l=ue.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&bl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Re(t),null}e=X.current,Pn(t)?gf(t):(e=Kd(a,n,l),t.stateNode=e,bl(t))}return Re(t),null;case 5:if(Ml(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&bl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Re(t),null}if(i=X.current,Pn(t))gf(t);else{var c=Vu(ue.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}i[Ue]=t,i[pt]=n;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(dt(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&bl(t)}}return Re(t),_s(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&bl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,Pn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=ot,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Ue]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Hd(e.nodeValue,l)),e||Xl(t,!0)}else e=Vu(e).createTextNode(n),e[Ue]=t,t.stateNode=e}return Re(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Pn(t),l!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ue]=t}else _n(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else l=wc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Bt(t),t):(Bt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Re(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Pn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[Ue]=t}else _n(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),a=!1}else a=wc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Bt(t),t):(Bt(t),null)}return Bt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Mu(t,t.updateQueue),Re(t),null);case 4:return je(),e===null&&Is(t.stateNode.containerInfo),Re(t),null;case 10:return pl(t.type),Re(t),null;case 19:if(D(Xe),n=t.memoizedState,n===null)return Re(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)ci(n,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=vu(e),i!==null){for(t.flags|=128,ci(n,!1),e=i.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)mf(l,e),l=l.sibling;return Q(Xe,Xe.current&1|2),de&&hl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ht()>Hu&&(t.flags|=128,a=!0,ci(n,!1),t.lanes=4194304)}else{if(!a)if(e=vu(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),ci(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!de)return Re(t),null}else 2*ht()-n.renderingStartTime>Hu&&l!==536870912&&(t.flags|=128,a=!0,ci(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ht(),e.sibling=null,l=Xe.current,Q(Xe,a?l&1|2:l&1),de&&hl(t,n.treeForkCount),e):(Re(t),null);case 22:case 23:return Bt(t),Fc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),l=t.updateQueue,l!==null&&Mu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&D(Dn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(ke),Re(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Fh(e,t){switch(Bc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(ke),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ml(t),null;case 31:if(t.memoizedState!==null){if(Bt(t),t.alternate===null)throw Error(r(340));_n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));_n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Xe),null;case 4:return je(),null;case 10:return pl(t.type),null;case 22:case 23:return Bt(t),Fc(),e!==null&&D(Dn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(ke),null;case 25:return null;default:return null}}function Yr(e,t){switch(Bc(t),t.tag){case 3:pl(ke),je();break;case 26:case 27:case 5:Ml(t);break;case 4:je();break;case 31:t.memoizedState!==null&&Bt(t);break;case 13:Bt(t);break;case 19:D(Xe);break;case 10:pl(t.type);break;case 22:case 23:Bt(t),Fc(),e!==null&&D(Dn);break;case 24:pl(ke)}}function si(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,c=l.inst;n=i(),c.destroy=n}l=l.next}while(l!==a)}}catch(f){xe(t,t.return,f)}}function Wl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var c=n.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,a=t;var h=l,E=f;try{E()}catch(z){xe(a,h,z)}}}n=n.next}while(n!==i)}}catch(z){xe(t,t.return,z)}}function Qr(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Of(t,l)}catch(n){xe(e,e.return,n)}}}function Gr(e,t,l){l.props=Bn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){xe(e,t,n)}}function oi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){xe(e,t,a)}}function ul(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){xe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){xe(e,t,a)}else l.current=null}function Xr(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){xe(e,e.return,a)}}function Ms(e,t,l){try{var n=e.stateNode;by(n,e.type,l,t),n[pt]=t}catch(a){xe(e,e.return,a)}}function Zr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nn(e.type)||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zr(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&nn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ds(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=W));else if(n!==4&&(n===27&&nn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ds(e,t,l),e=e.sibling;e!==null;)Ds(e,t,l),e=e.sibling}function Ou(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&nn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ou(e,t,l),e=e.sibling;e!==null;)Ou(e,t,l),e=e.sibling}function Vr(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);dt(t,n,l),t[Ue]=e,t[pt]=l}catch(i){xe(e,e.return,i)}}var Tl=!1,We=!1,Rs=!1,Kr=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Ph(e,t){if(e=e.containerInfo,eo=Fu,e=nf(e),Nc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,f=-1,h=-1,E=0,z=0,R=e,A=null;t:for(;;){for(var N;R!==l||a!==0&&R.nodeType!==3||(f=c+a),R!==i||n!==0&&R.nodeType!==3||(h=c+n),R.nodeType===3&&(c+=R.nodeValue.length),(N=R.firstChild)!==null;)A=R,R=N;for(;;){if(R===e)break t;if(A===l&&++E===a&&(f=c),A===i&&++z===n&&(h=c),(N=R.nextSibling)!==null)break;R=A,A=R.parentNode}R=N}l=f===-1||h===-1?null:{start:f,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(to={focusedElem:e,selectionRange:l},Fu=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var Z=Bn(l.type,a);e=n.getSnapshotBeforeUpdate(Z,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(I){xe(l,l.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ao(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ao(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function kr(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:El(e,l),n&4&&si(5,l);break;case 1:if(El(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){xe(l,l.return,c)}else{var a=Bn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){xe(l,l.return,c)}}n&64&&Qr(l),n&512&&oi(l,l.return);break;case 3:if(El(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Of(e,t)}catch(c){xe(l,l.return,c)}}break;case 27:t===null&&n&4&&Vr(l);case 26:case 5:El(e,l),t===null&&n&4&&Xr(l),n&512&&oi(l,l.return);break;case 12:El(e,l);break;case 31:El(e,l),n&4&&Wr(e,l);break;case 13:El(e,l),n&4&&Ir(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=sy.bind(null,l),zy(e,l))));break;case 22:if(n=l.memoizedState!==null||Tl,!n){t=t!==null&&t.memoizedState!==null||We,a=Tl;var i=We;Tl=n,(We=t)&&!i?jl(e,l,(l.subtreeFlags&8772)!==0):El(e,l),Tl=a,We=i}break;case 30:break;default:El(e,l)}}function Jr(e){var t=e.alternate;t!==null&&(e.alternate=null,Jr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qn(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,jt=!1;function xl(e,t,l){for(l=l.child;l!==null;)$r(e,t,l),l=l.sibling}function $r(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:We||ul(l,t),xl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||ul(l,t);var n=He,a=jt;nn(l.type)&&(He=l.stateNode,jt=!1),xl(e,t,l),gi(l.stateNode),He=n,jt=a;break;case 5:We||ul(l,t);case 6:if(n=He,a=jt,He=null,xl(e,t,l),He=n,jt=a,He!==null)if(jt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(l.stateNode)}catch(i){xe(l,t,i)}else try{He.removeChild(l.stateNode)}catch(i){xe(l,t,i)}break;case 18:He!==null&&(jt?(e=He,Qd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ba(e)):Qd(He,l.stateNode));break;case 4:n=He,a=jt,He=l.stateNode.containerInfo,jt=!0,xl(e,t,l),He=n,jt=a;break;case 0:case 11:case 14:case 15:Wl(2,l,t),We||Wl(4,l,t),xl(e,t,l);break;case 1:We||(ul(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Gr(l,t,n)),xl(e,t,l);break;case 21:xl(e,t,l);break;case 22:We=(n=We)||l.memoizedState!==null,xl(e,t,l),We=n;break;default:xl(e,t,l)}}function Wr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ba(e)}catch(l){xe(t,t.return,l)}}}function Ir(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ba(e)}catch(l){xe(t,t.return,l)}}function ey(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kr),t;default:throw Error(r(435,e.tag))}}function Du(e,t){var l=ey(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=oy.bind(null,e,n);n.then(a,a)}})}function At(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(nn(f.type)){He=f.stateNode,jt=!1;break e}break;case 5:He=f.stateNode,jt=!1;break e;case 3:case 4:He=f.stateNode.containerInfo,jt=!0;break e}f=f.return}if(He===null)throw Error(r(160));$r(i,c,a),He=null,jt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Fr(t,e),t=t.sibling}var tl=null;function Fr(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Nt(e),n&4&&(Wl(3,e,e.return),si(3,e),Wl(5,e,e.return));break;case 1:At(t,e),Nt(e),n&512&&(We||l===null||ul(l,l.return)),n&64&&Tl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=tl;if(At(t,e),Nt(e),n&512&&(We||l===null||ul(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[_e]||i[Ue]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),dt(i,n,l),i[Ue]=e,Ke(i),n=i;break e;case"link":var c=Fd("link","href",a).get(n+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(i=c[f],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(f,1);break t}}i=a.createElement(n),dt(i,n,l),a.head.appendChild(i);break;case"meta":if(c=Fd("meta","content",a).get(n+(l.content||""))){for(f=0;f<c.length;f++)if(i=c[f],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(f,1);break t}}i=a.createElement(n),dt(i,n,l),a.head.appendChild(i);break;default:throw Error(r(468,n))}i[Ue]=e,Ke(i),n=i}e.stateNode=n}else Pd(a,e.type,e.stateNode);else e.stateNode=Id(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?Pd(a,e.type,e.stateNode):Id(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Ms(e,e.memoizedProps,l.memoizedProps)}break;case 27:At(t,e),Nt(e),n&512&&(We||l===null||ul(l,l.return)),l!==null&&n&4&&Ms(e,e.memoizedProps,l.memoizedProps);break;case 5:if(At(t,e),Nt(e),n&512&&(We||l===null||ul(l,l.return)),e.flags&32){a=e.stateNode;try{Ll(a,"")}catch(Z){xe(e,e.return,Z)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Ms(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Rs=!0);break;case 6:if(At(t,e),Nt(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(Z){xe(e,e.return,Z)}}break;case 3:if(Ju=null,a=tl,tl=Ku(t.containerInfo),At(t,e),tl=a,Nt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(Z){xe(e,e.return,Z)}Rs&&(Rs=!1,Pr(e));break;case 4:n=tl,tl=Ku(e.stateNode.containerInfo),At(t,e),Nt(e),tl=n;break;case 12:At(t,e),Nt(e);break;case 31:At(t,e),Nt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Du(e,n)));break;case 13:At(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Uu=ht()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Du(e,n)));break;case 22:a=e.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,E=Tl,z=We;if(Tl=E||a,We=z||h,At(t,e),We=z,Tl=E,Nt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||h||Tl||We||Ln(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){h=l=t;try{if(i=h.stateNode,a)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=h.stateNode;var R=h.memoizedProps.style,A=R!=null&&R.hasOwnProperty("display")?R.display:null;f.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(Z){xe(h,h.return,Z)}}}else if(t.tag===6){if(l===null){h=t;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(Z){xe(h,h.return,Z)}}}else if(t.tag===18){if(l===null){h=t;try{var N=h.stateNode;a?Gd(N,!0):Gd(h.stateNode,!1)}catch(Z){xe(h,h.return,Z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Du(e,l))));break;case 19:At(t,e),Nt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Du(e,n)));break;case 30:break;case 21:break;default:At(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Zr(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,i=Os(e);Ou(e,i,a);break;case 5:var c=l.stateNode;l.flags&32&&(Ll(c,""),l.flags&=-33);var f=Os(e);Ou(e,f,c);break;case 3:case 4:var h=l.stateNode.containerInfo,E=Os(e);Ds(e,E,h);break;default:throw Error(r(161))}}catch(z){xe(e,e.return,z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pr(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function El(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)kr(e,t.alternate,t),t=t.sibling}function Ln(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wl(4,t,t.return),Ln(t);break;case 1:ul(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Gr(t,t.return,l),Ln(t);break;case 27:gi(t.stateNode);case 26:case 5:ul(t,t.return),Ln(t);break;case 22:t.memoizedState===null&&Ln(t);break;case 30:Ln(t);break;default:Ln(t)}e=e.sibling}}function jl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:jl(a,i,l),si(4,i);break;case 1:if(jl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(E){xe(n,n.return,E)}if(n=i,a=n.updateQueue,a!==null){var f=n.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)Mf(h[a],f)}catch(E){xe(n,n.return,E)}}l&&c&64&&Qr(i),oi(i,i.return);break;case 27:Vr(i);case 26:case 5:jl(a,i,l),l&&n===null&&c&4&&Xr(i),oi(i,i.return);break;case 12:jl(a,i,l);break;case 31:jl(a,i,l),l&&c&4&&Wr(a,i);break;case 13:jl(a,i,l),l&&c&4&&Ir(a,i);break;case 22:i.memoizedState===null&&jl(a,i,l),oi(i,i.return);break;case 30:break;default:jl(a,i,l)}t=t.sibling}}function Us(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&$a(l))}function Hs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function ll(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ed(e,t,l,n),t=t.sibling}function ed(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ll(e,t,l,n),a&2048&&si(9,t);break;case 1:ll(e,t,l,n);break;case 3:ll(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(a&2048){ll(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,f=i.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(h){xe(t,t.return,h)}}else ll(e,t,l,n);break;case 31:ll(e,t,l,n);break;case 13:ll(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?ll(e,t,l,n):fi(e,t):i._visibility&2?ll(e,t,l,n):(i._visibility|=2,oa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Us(c,t);break;case 24:ll(e,t,l,n),a&2048&&Hs(t.alternate,t);break;default:ll(e,t,l,n)}}function oa(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,f=l,h=n,E=c.flags;switch(c.tag){case 0:case 11:case 15:oa(i,c,f,h,a),si(8,c);break;case 23:break;case 22:var z=c.stateNode;c.memoizedState!==null?z._visibility&2?oa(i,c,f,h,a):fi(i,c):(z._visibility|=2,oa(i,c,f,h,a)),a&&E&2048&&Us(c.alternate,c);break;case 24:oa(i,c,f,h,a),a&&E&2048&&Hs(c.alternate,c);break;default:oa(i,c,f,h,a)}t=t.sibling}}function fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:fi(l,n),a&2048&&Us(n.alternate,n);break;case 24:fi(l,n),a&2048&&Hs(n.alternate,n);break;default:fi(l,n)}t=t.sibling}}var ri=8192;function fa(e,t,l){if(e.subtreeFlags&ri)for(e=e.child;e!==null;)td(e,t,l),e=e.sibling}function td(e,t,l){switch(e.tag){case 26:fa(e,t,l),e.flags&ri&&e.memoizedState!==null&&Yy(l,tl,e.memoizedState,e.memoizedProps);break;case 5:fa(e,t,l);break;case 3:case 4:var n=tl;tl=Ku(e.stateNode.containerInfo),fa(e,t,l),tl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ri,ri=16777216,fa(e,t,l),ri=n):fa(e,t,l));break;default:fa(e,t,l)}}function ld(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];ct=n,ad(n,e)}ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nd(e),e=e.sibling}function nd(e){switch(e.tag){case 0:case 11:case 15:di(e),e.flags&2048&&Wl(9,e,e.return);break;case 3:di(e);break;case 12:di(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ru(e)):di(e);break;default:di(e)}}function Ru(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];ct=n,ad(n,e)}ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wl(8,t,t.return),Ru(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ru(t));break;default:Ru(t)}e=e.sibling}}function ad(e,t){for(;ct!==null;){var l=ct;switch(l.tag){case 0:case 11:case 15:Wl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:$a(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,ct=n;else e:for(l=e;ct!==null;){n=ct;var a=n.sibling,i=n.return;if(Jr(n),n===l){ct=null;break e}if(a!==null){a.return=i,ct=a;break e}ct=i}}}var ty={getCacheForType:function(e){var t=ft(ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(ke).controller.signal}},ly=typeof WeakMap=="function"?WeakMap:Map,ge=0,Me=null,se=null,fe=0,Te=0,Lt=null,Il=!1,ra=!1,qs=!1,Al=0,Ge=0,Fl=0,wn=0,Bs=0,wt=0,da=0,mi=null,Ct=null,Ls=!1,Uu=0,id=0,Hu=1/0,qu=null,Pl=null,tt=0,en=null,ma=null,Nl=0,ws=0,Ys=null,ud=null,hi=0,Qs=null;function Yt(){return(ge&2)!==0&&fe!==0?fe&-fe:_.T!==null?ks():Ft()}function cd(){if(wt===0)if((fe&536870912)===0||de){var e=bn;bn<<=1,(bn&3932160)===0&&(bn=262144),wt=e}else wt=536870912;return e=qt.current,e!==null&&(e.flags|=32),wt}function zt(e,t,l){(e===Me&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(ha(e,0),tn(e,fe,wt,!1)),Ve(e,l),((ge&2)===0||e!==Me)&&(e===Me&&((ge&2)===0&&(wn|=l),Ge===4&&tn(e,fe,wt,!1)),cl(e))}function sd(e,t,l){if((ge&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||sl(e,t),a=n?iy(e,t):Xs(e,t,!0),i=n;do{if(a===0){ra&&!n&&tn(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!ny(l)){a=Xs(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;a=mi;var h=f.current.memoizedState.isDehydrated;if(h&&(ha(f,c).flags|=256),c=Xs(f,c,!1),c!==2){if(qs&&!h){f.errorRecoveryDisabledLanes|=i,wn|=i,a=4;break e}i=Ct,Ct=a,i!==null&&(Ct===null?Ct=i:Ct.push.apply(Ct,i))}a=c}if(i=!1,a!==2)continue}}if(a===1){ha(e,0),tn(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:tn(n,t,wt,!Il);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=Uu+300-ht(),10<a)){if(tn(n,t,wt,!Il),Qt(n,0,!0)!==0)break e;Nl=t,n.timeoutHandle=wd(od.bind(null,n,l,Ct,qu,Ls,t,wt,wn,da,Il,i,"Throttled",-0,0),a);break e}od(n,l,Ct,qu,Ls,t,wt,wn,da,Il,i,null,-0,0)}}break}while(!0);cl(e)}function od(e,t,l,n,a,i,c,f,h,E,z,R,A,N){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:W},td(t,i,R);var Z=(i&62914560)===i?Uu-ht():(i&4194048)===i?id-ht():0;if(Z=Qy(R,Z),Z!==null){Nl=i,e.cancelPendingCommit=Z(vd.bind(null,e,t,i,l,n,a,c,f,h,z,R,null,A,N)),tn(e,i,c,!E);return}}vd(e,t,i,l,n,a,c,f,h)}function ny(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!Ut(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tn(e,t,l,n){t&=~Bs,t&=~wn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-yt(a),c=1<<i;n[i]=-1,a&=~c}l!==0&&Oa(e,l,t)}function Bu(){return(ge&6)===0?(yi(0),!1):!0}function Gs(){if(se!==null){if(Te===0)var e=se.return;else e=se,yl=Mn=null,as(e),aa=null,Ia=0,e=se;for(;e!==null;)Yr(e.alternate,e),e=e.return;se=null}}function ha(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Ey(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Nl=0,Gs(),Me=e,se=l=ml(e.current,null),fe=t,Te=0,Lt=null,Il=!1,ra=sl(e,t),qs=!1,da=wt=Bs=wn=Fl=Ge=0,Ct=mi=null,Ls=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-yt(n),i=1<<a;t|=e[a],n&=~i}return Al=t,au(),l}function fd(e,t){le=null,_.H=ii,t===na||t===du?(t=Nf(),Te=3):t===Kc?(t=Nf(),Te=4):Te=t===bs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,se===null&&(Ge=1,Nu(e,Zt(t,e.current)))}function rd(){var e=qt.current;return e===null?!0:(fe&4194048)===fe?Jt===null:(fe&62914560)===fe||(fe&536870912)!==0?e===Jt:!1}function dd(){var e=_.H;return _.H=ii,e===null?ii:e}function md(){var e=_.A;return _.A=ty,e}function Lu(){Ge=4,Il||(fe&4194048)!==fe&&qt.current!==null||(ra=!0),(Fl&134217727)===0&&(wn&134217727)===0||Me===null||tn(Me,fe,wt,!1)}function Xs(e,t,l){var n=ge;ge|=2;var a=dd(),i=md();(Me!==e||fe!==t)&&(qu=null,ha(e,t)),t=!1;var c=Ge;e:do try{if(Te!==0&&se!==null){var f=se,h=Lt;switch(Te){case 8:Gs(),c=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var E=Te;if(Te=0,Lt=null,ya(e,f,h,E),l&&ra){c=0;break e}break;default:E=Te,Te=0,Lt=null,ya(e,f,h,E)}}ay(),c=Ge;break}catch(z){fd(e,z)}while(!0);return t&&e.shellSuspendCounter++,yl=Mn=null,ge=n,_.H=a,_.A=i,se===null&&(Me=null,fe=0,au()),c}function ay(){for(;se!==null;)hd(se)}function iy(e,t){var l=ge;ge|=2;var n=dd(),a=md();Me!==e||fe!==t?(qu=null,Hu=ht()+500,ha(e,t)):ra=sl(e,t);e:do try{if(Te!==0&&se!==null){t=se;var i=Lt;t:switch(Te){case 1:Te=0,Lt=null,ya(e,t,i,1);break;case 2:case 9:if(jf(i)){Te=0,Lt=null,yd(t);break}t=function(){Te!==2&&Te!==9||Me!==e||(Te=7),cl(e)},i.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:jf(i)?(Te=0,Lt=null,yd(t)):(Te=0,Lt=null,ya(e,t,i,7));break;case 5:var c=null;switch(se.tag){case 26:c=se.memoizedState;case 5:case 27:var f=se;if(c?em(c):f.stateNode.complete){Te=0,Lt=null;var h=f.sibling;if(h!==null)se=h;else{var E=f.return;E!==null?(se=E,wu(E)):se=null}break t}}Te=0,Lt=null,ya(e,t,i,5);break;case 6:Te=0,Lt=null,ya(e,t,i,6);break;case 8:Gs(),Ge=6;break e;default:throw Error(r(462))}}uy();break}catch(z){fd(e,z)}while(!0);return yl=Mn=null,_.H=n,_.A=a,ge=l,se!==null?0:(Me=null,fe=0,au(),Ge)}function uy(){for(;se!==null&&!Oi();)hd(se)}function hd(e){var t=Lr(e.alternate,e,Al);e.memoizedProps=e.pendingProps,t===null?wu(e):se=t}function yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Dr(l,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=Dr(l,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:as(t);default:Yr(l,t),t=se=mf(t,Al),t=Lr(l,t,Al)}e.memoizedProps=e.pendingProps,t===null?wu(e):se=t}function ya(e,t,l,n){yl=Mn=null,as(t),aa=null,Ia=0;var a=t.return;try{if(Jh(e,a,t,l,fe)){Ge=1,Nu(e,Zt(l,e.current)),se=null;return}}catch(i){if(a!==null)throw se=a,i;Ge=1,Nu(e,Zt(l,e.current)),se=null;return}t.flags&32768?(de||n===1?e=!0:ra||(fe&536870912)!==0?e=!1:(Il=e=!0,(n===2||n===9||n===3||n===6)&&(n=qt.current,n!==null&&n.tag===13&&(n.flags|=16384))),pd(t,e)):wu(t)}function wu(e){var t=e;do{if((t.flags&32768)!==0){pd(t,Il);return}e=t.return;var l=Ih(t.alternate,t,Al);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Ge===0&&(Ge=5)}function pd(e,t){do{var l=Fh(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);Ge=6,se=null}function vd(e,t,l,n,a,i,c,f,h){e.cancelPendingCommit=null;do Yu();while(tt!==0);if((ge&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=Oc,Ma(e,l,i,c,f,h),e===Me&&(se=Me=null,fe=0),ma=t,en=e,Nl=l,ws=i,Ys=a,ud=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fy(Yn,function(){return xd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null,a=Y.p,Y.p=2,c=ge,ge|=4;try{Ph(e,t,l)}finally{ge=c,Y.p=a,_.T=n}}tt=1,gd(),Sd(),bd()}}function gd(){if(tt===1){tt=0;var e=en,t=ma,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var n=Y.p;Y.p=2;var a=ge;ge|=4;try{Fr(t,e);var i=to,c=nf(e.containerInfo),f=i.focusedElem,h=i.selectionRange;if(c!==f&&f&&f.ownerDocument&&lf(f.ownerDocument.documentElement,f)){if(h!==null&&Nc(f)){var E=h.start,z=h.end;if(z===void 0&&(z=E),"selectionStart"in f)f.selectionStart=E,f.selectionEnd=Math.min(z,f.value.length);else{var R=f.ownerDocument||document,A=R&&R.defaultView||window;if(A.getSelection){var N=A.getSelection(),Z=f.textContent.length,I=Math.min(h.start,Z),ze=h.end===void 0?I:Math.min(h.end,Z);!N.extend&&I>ze&&(c=ze,ze=I,I=c);var S=tf(f,I),v=tf(f,ze);if(S&&v&&(N.rangeCount!==1||N.anchorNode!==S.node||N.anchorOffset!==S.offset||N.focusNode!==v.node||N.focusOffset!==v.offset)){var x=R.createRange();x.setStart(S.node,S.offset),N.removeAllRanges(),I>ze?(N.addRange(x),N.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),N.addRange(x))}}}}for(R=[],N=f;N=N.parentNode;)N.nodeType===1&&R.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<R.length;f++){var O=R[f];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Fu=!!eo,to=eo=null}finally{ge=a,Y.p=n,_.T=l}}e.current=t,tt=2}}function Sd(){if(tt===2){tt=0;var e=en,t=ma,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var n=Y.p;Y.p=2;var a=ge;ge|=4;try{kr(e,t.alternate,t)}finally{ge=a,Y.p=n,_.T=l}}tt=3}}function bd(){if(tt===4||tt===3){tt=0,mc();var e=en,t=ma,l=Nl,n=ud;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,ma=en=null,Td(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Pl=null),Ra(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=_.T,a=Y.p,Y.p=2,_.T=null;try{for(var i=e.onRecoverableError,c=0;c<n.length;c++){var f=n[c];i(f.value,{componentStack:f.stack})}}finally{_.T=t,Y.p=a}}(Nl&3)!==0&&Yu(),cl(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===Qs?hi++:(hi=0,Qs=e):hi=0,yi(0)}}function Td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Yu(){return gd(),Sd(),bd(),xd()}function xd(){if(tt!==5)return!1;var e=en,t=ws;ws=0;var l=Ra(Nl),n=_.T,a=Y.p;try{Y.p=32>l?32:l,_.T=null,l=Ys,Ys=null;var i=en,c=Nl;if(tt=0,ma=en=null,Nl=0,(ge&6)!==0)throw Error(r(331));var f=ge;if(ge|=4,nd(i.current),ed(i,i.current,c,l),ge=f,yi(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(gn,i)}catch{}return!0}finally{Y.p=a,_.T=n,Td(e,t)}}function Ed(e,t,l){t=Zt(l,t),t=Ss(e.stateNode,t,2),e=kl(e,t,2),e!==null&&(Ve(e,2),cl(e))}function xe(e,t,l){if(e.tag===3)Ed(e,e,l);else for(;t!==null;){if(t.tag===3){Ed(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Pl===null||!Pl.has(n))){e=Zt(l,e),l=jr(2),n=kl(t,l,2),n!==null&&(Ar(l,n,t,e),Ve(n,2),cl(n));break}}t=t.return}}function Zs(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new ly;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(qs=!0,a.add(l),e=cy.bind(null,e,t,l),t.then(e,e))}function cy(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(fe&l)===l&&(Ge===4||Ge===3&&(fe&62914560)===fe&&300>ht()-Uu?(ge&2)===0&&ha(e,0):Bs|=l,da===fe&&(da=0)),cl(e)}function jd(e,t){t===0&&(t=za()),e=Cn(e,t),e!==null&&(Ve(e,t),cl(e))}function sy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),jd(e,l)}function oy(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),jd(e,l)}function fy(e,t){return Aa(e,t)}var Qu=null,pa=null,Vs=!1,Gu=!1,Ks=!1,ln=0;function cl(e){e!==pa&&e.next===null&&(pa===null?Qu=pa=e:pa=pa.next=e),Gu=!0,Vs||(Vs=!0,dy())}function yi(e,t){if(!Ks&&Gu){Ks=!0;do for(var l=!1,n=Qu;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var c=n.suspendedLanes,f=n.pingedLanes;i=(1<<31-yt(42|e)+1)-1,i&=a&~(c&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,zd(n,i))}else i=fe,i=Qt(n,n===Me?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||sl(n,i)||(l=!0,zd(n,i));n=n.next}while(l);Ks=!1}}function ry(){Ad()}function Ad(){Gu=Vs=!1;var e=0;ln!==0&&xy()&&(e=ln);for(var t=ht(),l=null,n=Qu;n!==null;){var a=n.next,i=Nd(n,t);i===0?(n.next=null,l===null?Qu=a:l.next=a,a===null&&(pa=l)):(l=n,(e!==0||(i&3)!==0)&&(Gu=!0)),n=a}tt!==0&&tt!==5||yi(e),ln!==0&&(ln=0)}function Nd(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-yt(i),f=1<<c,h=a[c];h===-1?((f&l)===0||(f&n)!==0)&&(a[c]=G(f,t)):h<=t&&(e.expiredLanes|=f),i&=~f}if(t=Me,l=fe,l=Qt(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Dl(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||sl(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Dl(n),Ra(l)){case 2:case 8:l=Ca;break;case 32:l=Yn;break;case 268435456:l=Ui;break;default:l=Yn}return n=Cd.bind(null,e),l=Aa(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Dl(n),e.callbackPriority=2,e.callbackNode=null,2}function Cd(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Yu()&&e.callbackNode!==l)return null;var n=fe;return n=Qt(e,e===Me?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(sd(e,n,t),Nd(e,ht()),e.callbackNode!=null&&e.callbackNode===l?Cd.bind(null,e):null)}function zd(e,t){if(Yu())return null;sd(e,t,!0)}function dy(){jy(function(){(ge&6)!==0?Aa(Di,ry):Ad()})}function ks(){if(ln===0){var e=ta;e===0&&(e=Sn,Sn<<=1,(Sn&261888)===0&&(Sn=256)),ln=e}return ln}function _d(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:J(""+e)}function Md(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function my(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=_d((a[pt]||null).action),c=n.submitter;c&&(t=(t=c[pt]||null)?_d(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var f=new eu("action","action",null,n,a);e.push({event:f,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(ln!==0){var h=c?Md(a,c):new FormData(a);ms(l,{pending:!0,data:h,method:a.method,action:i},null,h)}}else typeof i=="function"&&(f.preventDefault(),h=c?Md(a,c):new FormData(a),ms(l,{pending:!0,data:h,method:a.method,action:i},i,h))},currentTarget:a}]})}}for(var Js=0;Js<Mc.length;Js++){var $s=Mc[Js],hy=$s.toLowerCase(),yy=$s[0].toUpperCase()+$s.slice(1);el(hy,"on"+yy)}el(cf,"onAnimationEnd"),el(sf,"onAnimationIteration"),el(of,"onAnimationStart"),el("dblclick","onDoubleClick"),el("focusin","onFocus"),el("focusout","onBlur"),el(Oh,"onTransitionRun"),el(Dh,"onTransitionStart"),el(Rh,"onTransitionCancel"),el(ff,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="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(" "),py=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function Od(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var c=n.length-1;0<=c;c--){var f=n[c],h=f.instance,E=f.currentTarget;if(f=f.listener,h!==i&&a.isPropagationStopped())break e;i=f,a.currentTarget=E;try{i(a)}catch(z){nu(z)}a.currentTarget=null,i=h}else for(c=0;c<n.length;c++){if(f=n[c],h=f.instance,E=f.currentTarget,f=f.listener,h!==i&&a.isPropagationStopped())break e;i=f,a.currentTarget=E;try{i(a)}catch(z){nu(z)}a.currentTarget=null,i=h}}}}function oe(e,t){var l=t[Tn];l===void 0&&(l=t[Tn]=new Set);var n=e+"__bubble";l.has(n)||(Dd(t,e,2,!1),l.add(n))}function Ws(e,t,l){var n=0;t&&(n|=4),Dd(l,e,n,t)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Is(e){if(!e[Xu]){e[Xu]=!0,Qi.forEach(function(l){l!=="selectionchange"&&(py.has(l)||Ws(l,!1,e),Ws(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xu]||(t[Xu]=!0,Ws("selectionchange",!1,t))}}function Dd(e,t,l,n){switch(cm(t)){case 2:var a=Zy;break;case 8:a=Vy;break;default:a=mo}l=a.bind(null,t,l,e),a=void 0,!ut||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Fs(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var f=n.stateNode.containerInfo;if(f===a)break;if(c===4)for(c=n.return;c!==null;){var h=c.tag;if((h===3||h===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;f!==null;){if(c=ol(f),c===null)return;if(h=c.tag,h===5||h===6||h===26||h===27){n=i=c;continue e}f=f.parentNode}}n=n.return}wl(function(){var E=i,z=be(l),R=[];e:{var A=rf.get(e);if(A!==void 0){var N=eu,Z=e;switch(e){case"keypress":if(Fi(l)===0)break e;case"keydown":case"keyup":N=oh;break;case"focusin":Z="focus",N=Tc;break;case"focusout":Z="blur",N=Tc;break;case"beforeblur":case"afterblur":N=Tc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=wo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=dh;break;case cf:case sf:case of:N=eh;break;case ff:N=hh;break;case"scroll":case"scrollend":N=$m;break;case"wheel":N=ph;break;case"copy":case"cut":case"paste":N=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Qo;break;case"toggle":case"beforetoggle":N=gh}var I=(t&4)!==0,ze=!I&&(e==="scroll"||e==="scrollend"),S=I?A!==null?A+"Capture":null:A;I=[];for(var v=E,x;v!==null;){var O=v;if(x=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||x===null||S===null||(O=Rt(v,S),O!=null&&I.push(vi(v,O,x))),ze)break;v=v.return}0<I.length&&(A=new N(A,Z,null,l,z),R.push({event:A,listeners:I}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",A&&l!==ee&&(Z=l.relatedTarget||l.fromElement)&&(ol(Z)||Z[Ul]))break e;if((N||A)&&(A=z.window===z?z:(A=z.ownerDocument)?A.defaultView||A.parentWindow:window,N?(Z=l.relatedTarget||l.toElement,N=E,Z=Z?ol(Z):null,Z!==null&&(ze=T(Z),I=Z.tag,Z!==ze||I!==5&&I!==27&&I!==6)&&(Z=null)):(N=null,Z=E),N!==Z)){if(I=wo,O="onMouseLeave",S="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(I=Qo,O="onPointerLeave",S="onPointerEnter",v="pointer"),ze=N==null?A:Hl(N),x=Z==null?A:Hl(Z),A=new I(O,v+"leave",N,l,z),A.target=ze,A.relatedTarget=x,O=null,ol(z)===E&&(I=new I(S,v+"enter",Z,l,z),I.target=x,I.relatedTarget=ze,O=I),ze=O,N&&Z)t:{for(I=vy,S=N,v=Z,x=0,O=S;O;O=I(O))x++;O=0;for(var k=v;k;k=I(k))O++;for(;0<x-O;)S=I(S),x--;for(;0<O-x;)v=I(v),O--;for(;x--;){if(S===v||v!==null&&S===v.alternate){I=S;break t}S=I(S),v=I(v)}I=null}else I=null;N!==null&&Rd(R,A,N,I,!1),Z!==null&&ze!==null&&Rd(R,ze,Z,I,!0)}}e:{if(A=E?Hl(E):window,N=A.nodeName&&A.nodeName.toLowerCase(),N==="select"||N==="input"&&A.type==="file")var ye=$o;else if(ko(A))if(Wo)ye=zh;else{ye=Nh;var K=Ah}else N=A.nodeName,!N||N.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?E&&m(E.elementType)&&(ye=$o):ye=Ch;if(ye&&(ye=ye(e,E))){Jo(R,ye,l,z);break e}K&&K(e,A,E),e==="focusout"&&E&&A.type==="number"&&E.memoizedProps.value!=null&&Ba(A,"number",A.value)}switch(K=E?Hl(E):window,e){case"focusin":(ko(K)||K.contentEditable==="true")&&(kn=K,Cc=E,Ka=null);break;case"focusout":Ka=Cc=kn=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,af(R,l,z);break;case"selectionchange":if(Mh)break;case"keydown":case"keyup":af(R,l,z)}var ie;if(Ec)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else Kn?Vo(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(Go&&l.locale!=="ko"&&(Kn||re!=="onCompositionStart"?re==="onCompositionEnd"&&Kn&&(ie=Bo()):(Yl=z,gc="value"in Yl?Yl.value:Yl.textContent,Kn=!0)),K=Zu(E,re),0<K.length&&(re=new Yo(re,e,null,l,z),R.push({event:re,listeners:K}),ie?re.data=ie:(ie=Ko(l),ie!==null&&(re.data=ie)))),(ie=bh?Th(e,l):xh(e,l))&&(re=Zu(E,"onBeforeInput"),0<re.length&&(K=new Yo("onBeforeInput","beforeinput",null,l,z),R.push({event:K,listeners:re}),K.data=ie)),my(R,e,E,l,z)}Od(R,t)})}function vi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zu(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Rt(e,l),a!=null&&n.unshift(vi(e,a,i)),a=Rt(e,t),a!=null&&n.push(vi(e,a,i))),e.tag===3)return n;e=e.return}return[]}function vy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rd(e,t,l,n,a){for(var i=t._reactName,c=[];l!==null&&l!==n;){var f=l,h=f.alternate,E=f.stateNode;if(f=f.tag,h!==null&&h===n)break;f!==5&&f!==26&&f!==27||E===null||(h=E,a?(E=Rt(l,i),E!=null&&c.unshift(vi(l,E,h))):a||(E=Rt(l,i),E!=null&&c.push(vi(l,E,h)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var gy=/\r\n?/g,Sy=/\u0000|\uFFFD/g;function Ud(e){return(typeof e=="string"?e:""+e).replace(gy,`
9
+ `).replace(Sy,"")}function Hd(e,t){return t=Ud(t),Ud(e)===t}function Ce(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Ll(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Ll(e,""+n);break;case"className":Xn(e,"class",n);break;case"tabIndex":Xn(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Xn(e,l,n);break;case"style":Wi(e,n,i);break;case"data":if(t!=="object"){Xn(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=J(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Ce(e,t,"name",a.name,a,null),Ce(e,t,"formEncType",a.formEncType,a,null),Ce(e,t,"formMethod",a.formMethod,a,null),Ce(e,t,"formTarget",a.formTarget,a,null)):(Ce(e,t,"encType",a.encType,a,null),Ce(e,t,"method",a.method,a,null),Ce(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=J(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=W);break;case"onScroll":n!=null&&oe("scroll",e);break;case"onScrollEnd":n!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=J(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":oe("beforetoggle",e),oe("toggle",e),xn(e,"popover",n);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":xn(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=p.get(l)||l,xn(e,l,n))}}function Ps(e,t,l,n,a,i){switch(l){case"style":Wi(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof n=="string"?Ll(e,n):(typeof n=="number"||typeof n=="bigint")&&Ll(e,""+n);break;case"onScroll":n!=null&&oe("scroll",e);break;case"onScrollEnd":n!=null&&oe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=W);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gi.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[pt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):xn(e,l,n)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,i,c,l,null)}}a&&Ce(e,t,"srcSet",l.srcSet,l,null),n&&Ce(e,t,"src",l.src,l,null);return;case"input":oe("invalid",e);var f=i=c=a=null,h=null,E=null;for(n in l)if(l.hasOwnProperty(n)){var z=l[n];if(z!=null)switch(n){case"name":a=z;break;case"type":c=z;break;case"checked":h=z;break;case"defaultChecked":E=z;break;case"value":i=z;break;case"defaultValue":f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Ce(e,t,n,z,l,null)}}ki(e,i,f,h,E,c,a,!1);return;case"select":oe("invalid",e),n=c=i=null;for(a in l)if(l.hasOwnProperty(a)&&(f=l[a],f!=null))switch(a){case"value":i=f;break;case"defaultValue":c=f;break;case"multiple":n=f;default:Ce(e,t,a,f,l,null)}t=i,l=c,e.multiple=!!n,t!=null?dl(e,!!n,t,!1):l!=null&&dl(e,!!n,l,!0);return;case"textarea":oe("invalid",e),i=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":n=f;break;case"defaultValue":a=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:Ce(e,t,c,f,l,null)}La(e,n,a,i);return;case"option":for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null)&&(h==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ce(e,t,h,n,l,null));return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(n=0;n<pi.length;n++)oe(pi[n],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(E in l)if(l.hasOwnProperty(E)&&(n=l[E],n!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,E,n,l,null)}return;default:if(m(t)){for(z in l)l.hasOwnProperty(z)&&(n=l[z],n!==void 0&&Ps(e,t,z,n,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(n=l[f],n!=null&&Ce(e,t,f,n,l,null))}function by(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,c=null,f=null,h=null,E=null,z=null;for(N in l){var R=l[N];if(l.hasOwnProperty(N)&&R!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":h=R;default:n.hasOwnProperty(N)||Ce(e,t,N,null,n,R)}}for(var A in n){var N=n[A];if(R=l[A],n.hasOwnProperty(A)&&(N!=null||R!=null))switch(A){case"type":i=N;break;case"name":a=N;break;case"checked":E=N;break;case"defaultChecked":z=N;break;case"value":c=N;break;case"defaultValue":f=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,t));break;default:N!==R&&Ce(e,t,A,N,n,R)}}qa(e,c,f,h,E,z,i,a);return;case"select":N=c=f=A=null;for(i in l)if(h=l[i],l.hasOwnProperty(i)&&h!=null)switch(i){case"value":break;case"multiple":N=h;default:n.hasOwnProperty(i)||Ce(e,t,i,null,n,h)}for(a in n)if(i=n[a],h=l[a],n.hasOwnProperty(a)&&(i!=null||h!=null))switch(a){case"value":A=i;break;case"defaultValue":f=i;break;case"multiple":c=i;default:i!==h&&Ce(e,t,a,i,n,h)}t=f,l=c,n=N,A!=null?dl(e,!!l,A,!1):!!n!=!!l&&(t!=null?dl(e,!!l,t,!0):dl(e,!!l,l?[]:"",!1));return;case"textarea":N=A=null;for(f in l)if(a=l[f],l.hasOwnProperty(f)&&a!=null&&!n.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Ce(e,t,f,null,n,a)}for(c in n)if(a=n[c],i=l[c],n.hasOwnProperty(c)&&(a!=null||i!=null))switch(c){case"value":A=a;break;case"defaultValue":N=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==i&&Ce(e,t,c,a,n,i)}Ji(e,A,N);return;case"option":for(var Z in l)A=l[Z],l.hasOwnProperty(Z)&&A!=null&&!n.hasOwnProperty(Z)&&(Z==="selected"?e.selected=!1:Ce(e,t,Z,null,n,A));for(h in n)A=n[h],N=l[h],n.hasOwnProperty(h)&&A!==N&&(A!=null||N!=null)&&(h==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ce(e,t,h,A,n,N));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 I in l)A=l[I],l.hasOwnProperty(I)&&A!=null&&!n.hasOwnProperty(I)&&Ce(e,t,I,null,n,A);for(E in n)if(A=n[E],N=l[E],n.hasOwnProperty(E)&&A!==N&&(A!=null||N!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:Ce(e,t,E,A,n,N)}return;default:if(m(t)){for(var ze in l)A=l[ze],l.hasOwnProperty(ze)&&A!==void 0&&!n.hasOwnProperty(ze)&&Ps(e,t,ze,void 0,n,A);for(z in n)A=n[z],N=l[z],!n.hasOwnProperty(z)||A===N||A===void 0&&N===void 0||Ps(e,t,z,A,n,N);return}}for(var S in l)A=l[S],l.hasOwnProperty(S)&&A!=null&&!n.hasOwnProperty(S)&&Ce(e,t,S,null,n,A);for(R in n)A=n[R],N=l[R],!n.hasOwnProperty(R)||A===N||A==null&&N==null||Ce(e,t,R,A,n,N)}function qd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ty(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,c=a.initiatorType,f=a.duration;if(i&&f&&qd(c)){for(c=0,f=a.responseEnd,n+=1;n<l.length;n++){var h=l[n],E=h.startTime;if(E>f)break;var z=h.transferSize,R=h.initiatorType;z&&qd(R)&&(h=h.responseEnd,c+=z*(h<f?1:(f-E)/(h-E)))}if(--n,t+=8*(i+c)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var eo=null,to=null;function Vu(e){return e.nodeType===9?e:e.ownerDocument}function Bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ld(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function lo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var no=null;function xy(){var e=window.event;return e&&e.type==="popstate"?e===no?!1:(no=e,!0):(no=null,!1)}var wd=typeof setTimeout=="function"?setTimeout:void 0,Ey=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,jy=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(Ay)}:wd;function Ay(e){setTimeout(function(){throw e})}function nn(e){return e==="head"}function Qd(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),ba(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")gi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,gi(l);for(var i=l.firstChild;i;){var c=i.nextSibling,f=i.nodeName;i[_e]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&gi(e.ownerDocument.body);l=a}while(l);ba(t)}function Gd(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function ao(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ao(l),Qn(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ny(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[_e])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function Cy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=$t(e.nextSibling),e===null))return null;return e}function Xd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function io(e){return e.data==="$?"||e.data==="$~"}function uo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function zy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var co=null;function Zd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return $t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Kd(e,t,l){switch(t=Vu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function gi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qn(e)}var Wt=new Map,kd=new Set;function Ku(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cl=Y.d;Y.d={f:_y,r:My,D:Oy,C:Dy,L:Ry,m:Uy,X:qy,S:Hy,M:By};function _y(){var e=Cl.f(),t=Bu();return e||t}function My(e){var t=fl(e);t!==null&&t.tag===5&&t.type==="form"?fr(t):Cl.r(e)}var va=typeof document>"u"?null:document;function Jd(e,t,l){var n=va;if(n&&typeof t=="string"&&t){var a=xt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),kd.has(a)||(kd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),dt(t,"link",e),Ke(t),n.head.appendChild(t)))}}function Oy(e){Cl.D(e),Jd("dns-prefetch",e,null)}function Dy(e,t){Cl.C(e,t),Jd("preconnect",e,t)}function Ry(e,t,l){Cl.L(e,t,l);var n=va;if(n&&e&&t){var a='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+xt(l.imageSizes)+'"]')):a+='[href="'+xt(e)+'"]';var i=a;switch(t){case"style":i=ga(e);break;case"script":i=Sa(e)}Wt.has(i)||(e=j({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Wt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Si(i))||t==="script"&&n.querySelector(bi(i))||(t=n.createElement("link"),dt(t,"link",e),Ke(t),n.head.appendChild(t)))}}function Uy(e,t){Cl.m(e,t);var l=va;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+xt(n)+'"][href="'+xt(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Sa(e)}if(!Wt.has(i)&&(e=j({rel:"modulepreload",href:e},t),Wt.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(bi(i)))return}n=l.createElement("link"),dt(n,"link",e),Ke(n),l.head.appendChild(n)}}}function Hy(e,t,l){Cl.S(e,t,l);var n=va;if(n&&e){var a=ql(n).hoistableStyles,i=ga(e);t=t||"default";var c=a.get(i);if(!c){var f={loading:0,preload:null};if(c=n.querySelector(Si(i)))f.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Wt.get(i))&&so(e,l);var h=c=n.createElement("link");Ke(h),dt(h,"link",e),h._p=new Promise(function(E,z){h.onload=E,h.onerror=z}),h.addEventListener("load",function(){f.loading|=1}),h.addEventListener("error",function(){f.loading|=2}),f.loading|=4,ku(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:f},a.set(i,c)}}}function qy(e,t){Cl.X(e,t);var l=va;if(l&&e){var n=ql(l).hoistableScripts,a=Sa(e),i=n.get(a);i||(i=l.querySelector(bi(a)),i||(e=j({src:e,async:!0},t),(t=Wt.get(a))&&oo(e,t),i=l.createElement("script"),Ke(i),dt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function By(e,t){Cl.M(e,t);var l=va;if(l&&e){var n=ql(l).hoistableScripts,a=Sa(e),i=n.get(a);i||(i=l.querySelector(bi(a)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Wt.get(a))&&oo(e,t),i=l.createElement("script"),Ke(i),dt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function $d(e,t,l,n){var a=(a=ue.current)?Ku(a):null;if(!a)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ga(l.href),l=ql(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ga(l.href);var i=ql(a).hoistableStyles,c=i.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=a.querySelector(Si(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Wt.set(e,l),i||Ly(a,e,l,c.state))),t&&n===null)throw Error(r(528,""));return c}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sa(l),l=ql(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ga(e){return'href="'+xt(e)+'"'}function Si(e){return'link[rel="stylesheet"]['+e+"]"}function Wd(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Ly(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),dt(t,"link",l),Ke(t),e.head.appendChild(t))}function Sa(e){return'[src="'+xt(e)+'"]'}function bi(e){return"script[async]"+e}function Id(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(n)return t.instance=n,Ke(n),n;var a=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ke(n),dt(n,"style",a),ku(n,l.precedence,e),t.instance=n;case"stylesheet":a=ga(l.href);var i=e.querySelector(Si(a));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;n=Wd(l),(a=Wt.get(a))&&so(n,a),i=(e.ownerDocument||e).createElement("link"),Ke(i);var c=i;return c._p=new Promise(function(f,h){c.onload=f,c.onerror=h}),dt(i,"link",n),t.state.loading|=4,ku(i,l.precedence,e),t.instance=i;case"script":return i=Sa(l.src),(a=e.querySelector(bi(i)))?(t.instance=a,Ke(a),a):(n=l,(a=Wt.get(i))&&(n=j({},l),oo(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ke(a),dt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ku(n,l.precedence,e));return t.instance}function ku(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,c=0;c<n.length;c++){var f=n[c];if(f.dataset.precedence===t)i=f;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function so(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function oo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ju=null;function Fd(e,t,l){if(Ju===null){var n=new Map,a=Ju=new Map;a.set(l,n)}else a=Ju,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[_e]||i[Ue]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var f=n.get(c);f?f.push(i):n.set(c,[i])}}return n}function Pd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function wy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Yy(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=ga(n.href),i=t.querySelector(Si(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$u.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ke(i);return}i=t.ownerDocument||t,n=Wd(n),(a=Wt.get(a))&&so(n,a),i=i.createElement("link"),Ke(i);var c=i;c._p=new Promise(function(f,h){c.onload=f,c.onerror=h}),dt(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=$u.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var fo=0;function Qy(e,t){return e.stylesheets&&e.count===0&&Iu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Iu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&fo===0&&(fo=62500*Ty());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Iu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>fo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function $u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Iu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wu=null;function Iu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wu=new Map,t.forEach(Gy,e),Wu=null,$u.call(e))}function Gy(e,t){if(!(t.state.loading&4)){var l=Wu.get(e);if(l)var n=l.get(null);else{l=new Map,Wu.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var c=a[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=t.instance,c=a.getAttribute("data-precedence"),i=l.get(c)||n,i===n&&l.set(null,a),l.set(c,a),this.count++,n=$u.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ti={$$typeof:qe,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function Xy(e,t,l,n,a,i,c,f,h){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_a(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_a(0),this.hiddenUpdates=_a(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function tm(e,t,l,n,a,i,c,f,h,E,z,R){return e=new Xy(e,t,l,c,h,E,z,R,f),t=1,i===!0&&(t|=24),i=Ht(3,null,null,t),e.current=i,i.stateNode=e,t=Xc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},kc(i),e}function lm(e){return e?(e=Wn,e):Wn}function nm(e,t,l,n,a,i){a=lm(a),n.context===null?n.context=a:n.pendingContext=a,n=Kl(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=kl(e,n,t),l!==null&&(zt(l,e,t),Pa(l,e,t))}function am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ro(e,t){am(e,t),(e=e.alternate)&&am(e,t)}function im(e){if(e.tag===13||e.tag===31){var t=Cn(e,67108864);t!==null&&zt(t,e,67108864),ro(e,67108864)}}function um(e){if(e.tag===13||e.tag===31){var t=Yt();t=Da(t);var l=Cn(e,t);l!==null&&zt(l,e,t),ro(e,t)}}var Fu=!0;function Zy(e,t,l,n){var a=_.T;_.T=null;var i=Y.p;try{Y.p=2,mo(e,t,l,n)}finally{Y.p=i,_.T=a}}function Vy(e,t,l,n){var a=_.T;_.T=null;var i=Y.p;try{Y.p=8,mo(e,t,l,n)}finally{Y.p=i,_.T=a}}function mo(e,t,l,n){if(Fu){var a=ho(n);if(a===null)Fs(e,t,n,Pu,l),sm(e,n);else if(ky(a,e,t,l,n))n.stopPropagation();else if(sm(e,n),t&4&&-1<Ky.indexOf(e)){for(;a!==null;){var i=fl(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=It(i.pendingLanes);if(c!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var h=1<<31-yt(c);f.entanglements[1]|=h,c&=~h}cl(i),(ge&6)===0&&(Hu=ht()+500,yi(0))}}break;case 31:case 13:f=Cn(i,2),f!==null&&zt(f,i,2),Bu(),ro(i,2)}if(i=ho(n),i===null&&Fs(e,t,n,Pu,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else Fs(e,t,n,null,l)}}function ho(e){return e=be(e),yo(e)}var Pu=null;function yo(e){if(Pu=null,e=ol(e),e!==null){var t=T(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=M(t),e!==null)return e;e=null}else if(l===31){if(e=V(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pu=e,null}function cm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Na()){case Di:return 2;case Ca:return 8;case Yn:case Ri:return 32;case Ui:return 268435456;default:return 32}default:return 32}}var po=!1,an=null,un=null,cn=null,xi=new Map,Ei=new Map,sn=[],Ky="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 sm(e,t){switch(e){case"focusin":case"focusout":an=null;break;case"dragenter":case"dragleave":un=null;break;case"mouseover":case"mouseout":cn=null;break;case"pointerover":case"pointerout":xi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ei.delete(t.pointerId)}}function ji(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=fl(t),t!==null&&im(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function ky(e,t,l,n,a){switch(t){case"focusin":return an=ji(an,e,t,l,n,a),!0;case"dragenter":return un=ji(un,e,t,l,n,a),!0;case"mouseover":return cn=ji(cn,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return xi.set(i,ji(xi.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Ei.set(i,ji(Ei.get(i)||null,e,t,l,n,a)),!0}return!1}function om(e){var t=ol(e.target);if(t!==null){var l=T(t);if(l!==null){if(t=l.tag,t===13){if(t=M(l),t!==null){e.blockedOn=t,wi(e.priority,function(){um(l)});return}}else if(t===31){if(t=V(l),t!==null){e.blockedOn=t,wi(e.priority,function(){um(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ec(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ho(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);ee=n,l.target.dispatchEvent(n),ee=null}else return t=fl(l),t!==null&&im(t),e.blockedOn=l,!1;t.shift()}return!0}function fm(e,t,l){ec(e)&&l.delete(t)}function Jy(){po=!1,an!==null&&ec(an)&&(an=null),un!==null&&ec(un)&&(un=null),cn!==null&&ec(cn)&&(cn=null),xi.forEach(fm),Ei.forEach(fm)}function tc(e,t){e.blockedOn===t&&(e.blockedOn=null,po||(po=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Jy)))}var lc=null;function rm(e){lc!==e&&(lc=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){lc===e&&(lc=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(yo(n||l)===null)continue;break}var i=fl(l);i!==null&&(e.splice(t,3),t-=3,ms(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ba(e){function t(h){return tc(h,e)}an!==null&&tc(an,e),un!==null&&tc(un,e),cn!==null&&tc(cn,e),xi.forEach(t),Ei.forEach(t);for(var l=0;l<sn.length;l++){var n=sn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<sn.length&&(l=sn[0],l.blockedOn===null);)om(l),l.blockedOn===null&&sn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],c=a[pt]||null;if(typeof i=="function")c||rm(l);else if(c){var f=null;if(i&&i.hasAttribute("formAction")){if(a=i,c=i[pt]||null)f=c.formAction;else if(yo(a)!==null)continue}else f=c.action;typeof f=="function"?l[n+1]=f:(l.splice(n,3),n-=3),rm(l)}}}function dm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return a=c})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function vo(e){this._internalRoot=e}nc.prototype.render=vo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,n=Yt();nm(l,n,e,t,null,null)},nc.prototype.unmount=vo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nm(e.current,2,null,e,null,null),Bu(),t[Ul]=null}};function nc(e){this._internalRoot=e}nc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ft();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sn.length&&t!==0&&t<sn[l].priority;l++);sn.splice(l,0,e),l===0&&om(e)}};var mm=o.version;if(mm!=="19.2.4")throw Error(r(527,mm,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=b(t),e=e!==null?U(e):null,e=e===null?null:e.stateNode,e};var $y={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{gn=ac.inject($y),at=ac}catch{}}return Ni.createRoot=function(e,t){if(!y(e))throw Error(r(299));var l=!1,n="",a=br,i=Tr,c=xr;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tm(e,1,!1,null,null,l,n,null,a,i,c,dm),e[Ul]=t.current,Is(e),new vo(t)},Ni.hydrateRoot=function(e,t,l){if(!y(e))throw Error(r(299));var n=!1,a="",i=br,c=Tr,f=xr,h=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),t=tm(e,1,!0,t,l??null,n,a,h,i,c,f,dm),t.context=lm(null),l=t.current,n=Yt(),n=Da(n),a=Kl(n),a.callback=null,kl(l,a,n),l=n,t.current.lanes=l,Ve(t,l),cl(t),e[Ul]=t.current,Is(e),new nc(t)},Ni.version="19.2.4",Ni}var Em;function up(){if(Em)return bo.exports;Em=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),bo.exports=ip(),bo.exports}var cp=up();const sp=Um(cp),op="modulepreload",fp=function(u){return"/"+u},jm={},ic=function(o,d,r){let y=Promise.resolve();if(d&&d.length>0){let b=function(U){return Promise.all(U.map(j=>Promise.resolve(j).then(q=>({status:"fulfilled",value:q}),q=>({status:"rejected",reason:q}))))};var M=b;document.getElementsByTagName("link");const V=document.querySelector("meta[property=csp-nonce]"),H=V?.nonce||V?.getAttribute("nonce");y=b(d.map(U=>{if(U=fp(U),U in jm)return;jm[U]=!0;const j=U.endsWith(".css"),q=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${U}"]${q}`))return;const L=document.createElement("link");if(L.rel=j?"stylesheet":op,j||(L.as="script"),L.crossOrigin="",L.href=U,H&&L.setAttribute("nonce",H),document.head.appendChild(L),j)return new Promise((ne,he)=>{L.addEventListener("load",ne),L.addEventListener("error",()=>he(new Error(`Unable to preload CSS for ${U}`)))})}))}function T(V){const H=new Event("vite:preloadError",{cancelable:!0});if(H.payload=V,window.dispatchEvent(H),!H.defaultPrevented)throw V}return y.then(V=>{for(const H of V||[])H.status==="rejected"&&T(H.reason);return o().catch(T)})},Hm="leduo_vscode_launch_config",qm="leduo_session_engine",jo=6,rp=960,dp=12,mp=13,hp=[{key:"escape",label:"Esc"},{key:"backspace",label:"Backspace"},{key:"tab",label:"Tab"},{key:"shiftTab",label:"Shift+Tab"},{key:"arrowUp",label:"↑"},{key:"arrowDown",label:"↓"},{key:"arrowLeft",label:"←"},{key:"arrowRight",label:"→"}];function Ta(u,o){const d=u.includes("?")?"&":"?";return`${u}${d}key=${encodeURIComponent(o)}`}function yp(u){return new URLSearchParams(u).get("key")??""}function Ao(){return yp(window.location.search)}function pp(u,o){const d=new URL(u,"http://localhost"),r=o.trim();return r?d.searchParams.set("key",r):d.searchParams.delete("key"),`${d.pathname}${d.search}${d.hash}`}function vp(u){window.history.replaceState(null,"",pp(window.location.href,u))}function gp(u){try{const o=localStorage.getItem(Hm);if(o){const d=JSON.parse(o);if(d.mode==="remote"||d.mode==="local")return d}}catch{}return{mode:u?"remote":"local",sshHost:u||""}}function Am(u="cli"){try{const o=localStorage.getItem(qm);if(o==="cli"||o==="acp")return o}catch{}return u}function Nm(u){try{localStorage.setItem(qm,u)}catch{}}function Sp(){const[u,o]=B.useState(()=>Ao()),[d,r]=B.useState(()=>Ao()),[y,T]=B.useState("connecting"),[M,V]=B.useState(null),[H,b]=B.useState([]),[U,j]=B.useState(null),[q,L]=B.useState([]),[ne,he]=B.useState(""),[ce,st]=B.useState(!1),[bt,qe]=B.useState(!1),[Oe,Ee]=B.useState("cli"),[Pe,ae]=B.useState(0),[Be,mt]=B.useState(null),[w,F]=B.useState(0),[Ye,lt]=B.useState(!1),[_t,gt]=B.useState(""),[_,Y]=B.useState(""),[$,ve]=B.useState(()=>Am("cli")),[Se,g]=B.useState(!1),[D,Q]=B.useState(""),[X,P]=B.useState([]),[ue,me]=B.useState(""),[nt,je]=B.useState(!1),[_l,Ml]=B.useState(""),[mn,hn]=B.useState([]),[nl,yn]=B.useState(null),[pn,Mi]=B.useState(null),[Ol,vn]=B.useState({mode:"local",sshHost:""}),[Aa,Dl]=B.useState(!1),[Oi,mc]=B.useState(""),[ht,Na]=B.useState(""),[Di,Ca]=B.useState(!1),[Yn,Ri]=B.useState(!1),[Ui,Hi]=B.useState(""),[hc,gn]=B.useState(null),[at,Mt]=B.useState(null),[yt,qi]=B.useState({}),[Ot,Bi]=B.useState(!1),Sn=B.useRef(null),bn=B.useRef(null),Dt=B.useRef(new Map),It=B.useRef(null),Qt=B.useRef(new Map),sl=B.useRef(null),G=B.useMemo(()=>H.find(m=>m.clientSessionId===U)??null,[H,U]),za=M?.availableSessionEngines??["cli"],_a=za.includes("acp"),Ve=ce&&!!G&&G?.engine==="cli",Ma=Up(U,y,G?.connectionState),Oa=!!(M?.enableShell&&(Ve||Ot)),Rl=ce&&!bt&&!!G,Li=!ce||G?.engine==="acp",Da=["shell",M?.enableShell&&Ot&&!Ve?"shell-has-terminal-drawer":""].filter(Boolean).join(" "),Ra=B.useMemo(()=>({top:w?`${w}px`:void 0,height:Be!=null?`${Be}px`:void 0}),[Be,w]),Ft=B.useMemo(()=>M?Mm(M.workspacePath,M.allowedRoots).root:"",[M]),[wi,Gt]=B.useState(""),Ue=B.useMemo(()=>!Ft||X.length===0?[]:X.map(m=>Bm(Ft,m.path)).filter(Boolean),[Ft,X]),pt=nt?Ue:Ue.slice(0,jo),Ul=Ue.length>jo,Tn=G?.workspacePath??M?.workspacePath??"",yc=!!Tn;B.useEffect(()=>{function m(){const p=Ao();o(p),r(p)}return window.addEventListener("popstate",m),()=>{window.removeEventListener("popstate",m)}},[]),B.useEffect(()=>{u&&fetch(Ta("/api/config",u)).then(m=>m.json()).then(m=>{V(m),vn(gp(m.sshHost));const p=Mm(m.workspacePath,m.allowedRoots);gt(m.workspacePath),Q(p.root),Gt(p.suffix),g(m.allowSkipPermissions??!1),ve(Am(m.defaultSessionEngine??"cli"))}).catch(()=>{})},[u]),B.useEffect(()=>{!u||!D||fetch(Ta(`/api/directories?root=${encodeURIComponent(D)}`,u)).then(m=>m.json()).then(m=>{P(m.directories),me("")}).catch(m=>{me(m instanceof Error?m.message:String(m))})},[u,D]),B.useEffect(()=>{const m=()=>{const p=window.matchMedia?.("(pointer: coarse)").matches??!1,C=navigator.maxTouchPoints??0;st(Om({viewportWidth:window.innerWidth,coarsePointer:p,touchPoints:C}))};return m(),window.addEventListener("resize",m),window.addEventListener("orientationchange",m),()=>{window.removeEventListener("resize",m),window.removeEventListener("orientationchange",m)}},[]),B.useEffect(()=>{ce||(qe(!1),ae(0),mt(null),F(0))},[ce]),B.useEffect(()=>{he(""),Ee("cli"),Ml(""),hn([]),ce&&U&&qe(!1)},[U,ce]),B.useEffect(()=>{if(!Ve){ae(0),mt(null),F(0);return}const m=window.visualViewport;if(!m)return;const p=()=>{const C=Math.max(0,window.innerHeight-m.height-m.offsetTop);ae(C),Ve&&(mt(m.height),F(m.offsetTop))};return p(),m.addEventListener("resize",p),m.addEventListener("scroll",p),window.addEventListener("orientationchange",p),()=>{m.removeEventListener("resize",p),m.removeEventListener("scroll",p),window.removeEventListener("orientationchange",p)}},[Ve]),B.useEffect(()=>{if(!Ve)return;const m=window.scrollY,p=document.body,C=document.documentElement,J=p.style.position,W=p.style.top,ee=p.style.left,be=p.style.right,it=p.style.width,Le=p.style.overflow,Ae=C.style.overflow,we=C.style.overscrollBehavior;return p.style.position="fixed",p.style.top=`-${m}px`,p.style.left="0",p.style.right="0",p.style.width="100%",p.style.overflow="hidden",C.style.overflow="hidden",C.style.overscrollBehavior="none",()=>{p.style.position=J,p.style.top=W,p.style.left=ee,p.style.right=be,p.style.width=it,p.style.overflow=Le,C.style.overflow=Ae,C.style.overscrollBehavior=we,window.scrollTo(0,m)}},[Ve]),B.useEffect(()=>{if(!u)return;const m=window.location.protocol==="https:"?"wss":"ws",p=new WebSocket(`${m}://${window.location.host}${Ta("/ws",u)}`);return sl.current=p,p.addEventListener("open",()=>{T("connected"),p.send(JSON.stringify({type:"hello"}))}),p.addEventListener("message",C=>{try{const J=JSON.parse(String(C.data));Yi(J)}catch{}}),p.addEventListener("close",()=>{T("closed")}),p.addEventListener("error",()=>{T("closed")}),()=>{sl.current=null,p.close()}},[u]);function pc(m){const p=Qt.current.get(m);if(!p)return;const C=p.terminal;if(typeof C.reset=="function"){C.reset();return}C.clear?.()}function Yi(m){switch(m.type){case"ready":b(m.payload.sessions.map(Ie)),m.payload.sessions.length>0&&!U&&!Om({viewportWidth:window.innerWidth,coarsePointer:window.matchMedia?.("(pointer: coarse)").matches??!1,touchPoints:navigator.maxTouchPoints??0})&&j(m.payload.sessions[0].clientSessionId);break;case"session_registered":case"session_updated":{const p=Ie(m.payload);b(C=>{const J=C.find(ee=>ee.clientSessionId===p.clientSessionId);return J&&J.engine==="acp"&&p.engine==="cli"&&pc(p.clientSessionId),!J?[...C,p]:C.map(ee=>ee.clientSessionId===p.clientSessionId?p:ee)}),m.type==="session_registered"&&j(p.clientSessionId);break}case"session_closed":b(p=>p.filter(C=>C.clientSessionId!==m.payload.clientSessionId)),j(p=>p===m.payload.clientSessionId?null:p);break;case"cli_output":{const p=Qt.current.get(m.payload.clientSessionId);p&&p.terminal.write(m.payload.data),b(C=>C.map(J=>J.clientSessionId===m.payload.clientSessionId&&J.connectionState!=="connected"?{...J,connectionState:"connected",updatedAt:new Date().toISOString()}:J));break}case"cli_exited":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?{...C,connectionState:"error",updatedAt:new Date().toISOString()}:C)),Qn("warning","CLI 已退出",`退出码: ${m.payload.exitCode}`,m.payload.clientSessionId);break;case"session_activity":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Ie({...C,activityState:m.payload.activityState}):C));break;case"session_id_updated":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Ie({...C,sessionId:m.payload.newSessionId}):C));break;case"prompt_started":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Xp(C,m.payload,m.payload.images):C));break;case"prompt_finished":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Zp(C,m.payload):C));break;case"session_update":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Wp(C,m.payload):C));break;case"session_mode_changed":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Ie({...C,acp:C.acp?{...C.acp,defaultModeId:m.payload.defaultModeId,currentModeId:m.payload.currentModeId}:C.acp}):C));break;case"permission_requested":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Vp(C,m.payload):C));break;case"permission_resolved":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Kp(C,m.payload):C));break;case"question_requested":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?kp(C,m.payload):C));break;case"question_answered":b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?Jp(C,m.payload):C));break;case"shell_output":{const p=Dt.current.get(m.payload.clientSessionId);p&&p.terminal.write(m.payload.data);break}case"shell_exited":{const p=Dt.current.get(m.payload.clientSessionId);p&&(p.alive=!1,p.terminal.write(`\r
10
+ [Shell exited with code ${m.payload.exitCode}]\r
11
+ `));break}case"error":m.payload.clientSessionId&&b(p=>p.map(C=>C.clientSessionId===m.payload.clientSessionId?$p(C,m.payload):C)),Qn("error","错误",m.payload.message,m.payload.clientSessionId);break}}function _e(m){const p=sl.current;return!p||p.readyState!==WebSocket.OPEN?!1:(p.send(JSON.stringify(m)),!0)}function Qn(m,p,C,J){const W=fn();L(ee=>[...ee.slice(-9),{id:W,kind:m,title:p,body:C,sessionId:J}]),setTimeout(()=>{L(ee=>ee.filter(be=>be.id!==W))},8e3)}function ol(m){return!U||!m?!1:_e({type:"cli_input",payload:{clientSessionId:U,data:m}})}function fl(m){return!U||!m?!1:_e({type:"shell_input",payload:{clientSessionId:U,data:m}})}function Hl(m){if(Ma)return;const p=Rp(ne,m);if(!p)return;(Oe==="shell"?fl(p):ol(p))&&he("")}function ql(){Hl(!0)}function Ke(){Hl(!1)}function Qi(m){if(Ma)return;const p=Dp(m);if(Oe==="shell"){fl(p);return}ol(p)}function Gi(){ce&&qe(m=>!m)}function rl(){M?.enableShell&&Bi(m=>!m)}function Bl(){M?.enableShell&&Ee(m=>m==="cli"?"shell":"cli")}function Ua(m){const p=Dt.current.get(m);p&&(p.resizeObserver.disconnect(),p.touchCleanup(),p.wrapper.removeEventListener("focusin",p.blurReadonlyHandler,!0),p.wrapper.removeEventListener("touchend",p.blurReadonlyHandler,!0),_e({type:"shell_stop",payload:{clientSessionId:m}}),p.terminal.dispose(),Dt.current.delete(m))}function Xi(){for(const m of Array.from(Dt.current.keys()))Ua(m)}function Zi(m){L(p=>p.filter(C=>C.id!==m))}function Gn(m){m.dataset.mobileReadonly=ce?"true":"false";const p=m.querySelector(".xterm-helper-textarea");p instanceof HTMLTextAreaElement&&(p.readOnly=ce,p.tabIndex=ce?-1:0,p.inputMode=ce?"none":"text",ce&&requestAnimationFrame(()=>{p.blur()}))}function xn(m){const p=m.querySelector(".xterm-viewport");if(!(p instanceof HTMLElement))return()=>{};const C={active:!1,startY:0,startScrollTop:0},J=be=>{if(m.dataset.mobileReadonly!=="true"||be.touches.length!==1){C.active=!1;return}const it=be.touches[0];C.active=!0,C.startY=it.clientY,C.startScrollTop=p.scrollTop},W=be=>{if(!C.active||m.dataset.mobileReadonly!=="true"||be.touches.length!==1)return;const Le=be.touches[0].clientY-C.startY;p.scrollTop=C.startScrollTop-Le,be.preventDefault()},ee=()=>{C.active=!1};return m.addEventListener("touchstart",J,{passive:!0,capture:!0}),m.addEventListener("touchmove",W,{passive:!1,capture:!0}),m.addEventListener("touchend",ee,{capture:!0}),m.addEventListener("touchcancel",ee,{capture:!0}),()=>{m.removeEventListener("touchstart",J,{capture:!0}),m.removeEventListener("touchmove",W,{capture:!0}),m.removeEventListener("touchend",ee,{capture:!0}),m.removeEventListener("touchcancel",ee,{capture:!0})}}function Xn(m=!1){if(!U)return;const p=Qt.current.get(U);if(!p)return;const C=p.fitAddon,J=p.terminal,W=p.element.querySelector(".xterm-viewport"),ee=W instanceof HTMLElement?W.scrollHeight-W.clientHeight-W.scrollTop<32:!1;m&&W instanceof HTMLElement&&(W.scrollTop=W.scrollHeight),C.fit(),J.refresh(0,Math.max(0,J.rows-1)),m&&W instanceof HTMLElement&&(W.scrollTop=W.scrollHeight),(m||ee)&&typeof J.scrollToBottom=="function"&&J.scrollToBottom(),_e({type:"cli_resize",payload:{clientSessionId:U,cols:J.cols,rows:J.rows}})}B.useEffect(()=>{if(!U||y!=="connected"||G?.engine!=="cli")return;const m=It.current;if(!m)return;const p=Qt.current.get(U);if(p){const W=p.fitAddon,ee=p.terminal;ee.options&&(ee.options.fontSize=No(ce)),Gn(p.element),m.innerHTML="",m.appendChild(p.element),requestAnimationFrame(()=>{W.fit(),ee.refresh(0,ee.rows-1),ce||ee.focus()}),_e({type:"cli_resize",payload:{clientSessionId:U,cols:ee.cols,rows:ee.rows}});return}let C=!1;const J=U;return(async()=>{const[W,ee]=await Promise.all([ic(()=>import("./xterm-B-qIQCd3.js"),[]),ic(()=>import("./addon-fit-DX4qG4td.js"),[])]);if(C)return;const be=W.Terminal,it=ee.FitAddon,Le=new it,Ae=new be({scrollback:5e3,cursorBlink:!1,cursorInactiveStyle:"none",fontFamily:'"IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontSize:No(ce),theme:{background:"#1a1a1a",foreground:"#e8e8e8",cursor:"#1a1a1a",cursorAccent:"#1a1a1a",selectionBackground:"rgba(216, 91, 52, 0.3)"}});Ae.loadAddon(Le);const we=document.createElement("div");we.style.width="100%",we.style.height="100%",m.innerHTML="",m.appendChild(we),Ae.open(we),Le.fit(),Gn(we);const wl=xn(we);let Rt=!1;we.addEventListener("keydown",ut=>{ut.key==="Escape"?(Rt=!0,ut.preventDefault()):Rt=!1},!0),we.addEventListener("focusout",()=>{Rt&&(Rt=!1,requestAnimationFrame(()=>{!C&&!ce&&Ae.focus()}))},!0),we.addEventListener("focusin",()=>{we.dataset.mobileReadonly==="true"&&requestAnimationFrame(()=>{const ut=we.querySelector(".xterm-helper-textarea");ut instanceof HTMLTextAreaElement&&ut.blur()})},!0),we.addEventListener("touchend",()=>{we.dataset.mobileReadonly==="true"&&requestAnimationFrame(()=>{const ut=we.querySelector(".xterm-helper-textarea");ut instanceof HTMLTextAreaElement&&ut.blur()})},!0),Qt.current.set(J,{terminal:Ae,fitAddon:Le,element:we}),_e({type:"cli_start",payload:{clientSessionId:J,cols:Ae.cols,rows:Ae.rows}}),Ae.onData(ut=>{_e({type:"cli_input",payload:{clientSessionId:J,data:ut}})}),Ae.onResize(({cols:ut,rows:En})=>{_e({type:"cli_resize",payload:{clientSessionId:J,cols:ut,rows:En}})});const et=new ResizeObserver(()=>{C||Le.fit()});et.observe(m),Ae.__resizeObserver=et,Ae.__touchScrollCleanup=wl})(),()=>{C=!0,m&&(m.innerHTML="")}},[U,G?.engine,y,ce,Oe]),B.useLayoutEffect(()=>{!U||y!=="connected"||G?.engine!=="cli"||Xn(Ve)},[U,y,Ve,Rl,Pe,Be,Oe,G?.engine]),B.useEffect(()=>{const m=new Set(H.map(p=>p.clientSessionId));for(const[p,C]of Qt.current.entries())if(!m.has(p)){const J=C.terminal,W=C.terminal.__resizeObserver,ee=C.terminal.__touchScrollCleanup;W?.disconnect(),ee?.(),J.dispose(),Qt.current.delete(p)}},[H]),B.useEffect(()=>{if(!Oa||!G||!M?.enableShell)return;const m=Ve?bn.current:Sn.current;if(!m)return;const p=Dt.current.get(G.clientSessionId);if(p?.alive)return Gn(p.wrapper),m.innerHTML="",m.appendChild(p.wrapper),requestAnimationFrame(()=>{const J=p.fitAddon,W=p.terminal;J.fit(),W.refresh?.(0,Math.max(0,W.rows-1)),_e({type:"shell_resize",payload:{clientSessionId:p.clientSessionId,cols:W.cols,rows:W.rows}})}),()=>{m&&(m.innerHTML="")};p&&!p.alive&&Ua(G.clientSessionId);let C=!1;return(async()=>{const[J,W]=await Promise.all([ic(()=>import("./xterm-B-qIQCd3.js"),[]),ic(()=>import("./addon-fit-DX4qG4td.js"),[])]);if(C)return;const ee=J.Terminal,be=W.FitAddon,it=new be,Le=new ee({scrollback:1e3,cursorBlink:!0,fontFamily:'"IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontSize:No(ce),theme:{background:"#1a1a1a",foreground:"#e8e8e8",cursor:"#d85b34",selectionBackground:"rgba(216, 91, 52, 0.3)"}});Le.loadAddon(it);const Ae=document.createElement("div");Ae.style.width="100%",Ae.style.height="100%",m.innerHTML="",m.appendChild(Ae),Le.open(Ae),it.fit(),Gn(Ae);const we=xn(Ae),wl=()=>{Ae.dataset.mobileReadonly==="true"&&requestAnimationFrame(()=>{const et=Ae.querySelector(".xterm-helper-textarea");et instanceof HTMLTextAreaElement&&et.blur()})};Ae.addEventListener("focusin",wl,!0),Ae.addEventListener("touchend",wl,!0);const Rt=new ResizeObserver(()=>{C||it.fit()});Rt.observe(Ae),Dt.current.set(G.clientSessionId,{clientSessionId:G.clientSessionId,terminal:Le,fitAddon:it,wrapper:Ae,resizeObserver:Rt,touchCleanup:we,blurReadonlyHandler:wl,alive:!0}),_e({type:"shell_start",payload:{clientSessionId:G.clientSessionId,cols:Le.cols,rows:Le.rows}}),Le.onData(et=>{_e({type:"shell_input",payload:{clientSessionId:G.clientSessionId,data:et}})}),Le.onResize(({cols:et,rows:ut})=>{_e({type:"shell_resize",payload:{clientSessionId:G.clientSessionId,cols:et,rows:ut}})})})(),()=>{C=!0,m&&(m.innerHTML="")}},[Oa,G?.clientSessionId,M?.enableShell,ce,Ve]),B.useEffect(()=>()=>{Xi()},[]),B.useEffect(()=>{const m=new Set(H.map(p=>p.clientSessionId));for(const p of Array.from(Dt.current.keys()))m.has(p)||Ua(p)},[H]);function Pt(){_t.trim()&&(Nm($),_e({type:"create_session",payload:{workspacePath:_t.trim(),title:_.trim()||void 0,allowSkipPermissions:Se,engine:$}}),lt(!1),Y(""),g(M?.allowSkipPermissions??!1))}function Tt(m){_e({type:"close_session",payload:{clientSessionId:m}})}function Zn(m){!G||G.engine===m||(Nm(m),_e({type:"switch_engine",payload:{clientSessionId:G.clientSessionId,engine:m}}))}function vc(m){!G||G.engine!=="acp"||_e({type:"set_mode",payload:{clientSessionId:G.clientSessionId,modeId:m}})}function Ha(){if(!G||G.engine!=="acp")return;const m=_l.trim();if(!m&&mn.length===0)return;const p=mn.map(C=>({data:C.data,mimeType:C.mimeType}));_e({type:"prompt",payload:{clientSessionId:G.clientSessionId,text:m,images:p}}),Ml(""),hn([])}function Vi(){!G||G.engine!=="acp"||_e({type:"cancel",payload:{clientSessionId:G.clientSessionId}})}function Vn(m){!G||G.engine!=="acp"||_e({type:"remove_queued_prompt",payload:{clientSessionId:G.clientSessionId,promptId:m}})}function Ki(m,p){_e({type:"permission",payload:{clientSessionId:m.clientSessionId,requestId:m.requestId,optionId:p}})}function xt(m,p){!G||G.engine!=="acp"||_e({type:"answer_question",payload:{clientSessionId:G.clientSessionId,questionId:m,answer:p}})}async function qa(m){const p=H.find(ee=>ee.clientSessionId===m),C=p?.acp;if(!p||p.engine!=="acp"||!C||C.historyStart<=0)return;const J=await fetch(Ta(`/api/session-history?clientSessionId=${encodeURIComponent(m)}&before=${C.historyStart}&limit=120`,u));if(!J.ok){const ee=await J.json().catch(()=>null);throw new Error(ee?.message??`请求失败 (${J.status})`)}const W=await J.json();b(ee=>ee.map(be=>be.clientSessionId!==m||be.engine!=="acp"||!be.acp?be:Ie({...be,acp:{...be.acp,timeline:[...W.items.map(Ym),...be.acp.timeline],historyStart:W.start,historyTotal:W.total}})))}function ki(m,p){m.stopPropagation(),Mt(p)}function Ba(){at&&(Tt(at),Mt(null))}function dl(){Mt(null)}function Ji(m,p){const C=p.replace(/\\/g,"/").replace(/\/+$/,"");if(!C)return null;if(m.mode==="local")return`vscode://file${C}`;const J=m.sshHost.trim();return J?`vscode://vscode-remote/${`ssh-remote+${encodeURIComponent(J)}`}${C}`:null}function La(m){const p=Ji(Ol,m);if(!p){mc("请先配置 VSCode 打开参数。"),Dl(!0);return}window.open(p,"_self")}function Ll(){localStorage.setItem(Hm,JSON.stringify(Ol)),Na("已保存。")}async function wa(){if(G){Ca(!0),Ri(!0),Hi("");try{const m=await fetch(Ta(`/api/session-diff/files?clientSessionId=${G.clientSessionId}`,u));if(!m.ok){const C=await m.json().catch(()=>null);throw new Error(C?.message??`请求失败 (${m.status})`)}const p=await m.json();gn(p),qi({})}catch(m){Hi(m instanceof Error?m.message:String(m))}finally{Ri(!1)}}}async function $i(m,p){const C=`${m}:${p}`,J=yt[C];if(J)return J;const W=await fetch(Ta(`/api/session-diff/file?clientSessionId=${G?.clientSessionId}&category=${m}&filePath=${encodeURIComponent(p)}`,u));if(!W.ok){const be=await W.json().catch(()=>null);throw new Error(be?.message??`请求失败 (${W.status})`)}const ee=await W.json();return qi(be=>({...be,[C]:ee})),ee}function Wi(m){m.preventDefault();const p=d.trim();p&&(vp(p),o(p),r(p),T("connecting"))}return u?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:Da,children:[s.jsxs("aside",{className:"panel masthead",children:[s.jsxs("div",{className:"brand-stack",children:[s.jsxs("div",{className:"brand-lockup",children:[s.jsx("img",{className:"brand-icon",src:"/assets/brand-icon.png",alt:"","aria-hidden":"true"}),s.jsxs("div",{className:"brand-copy",children:[s.jsx("p",{className:"eyebrow",children:"leduo-patrol"}),s.jsx("h1",{children:M?.appName??"乐多汪汪队"})]})]}),s.jsx("p",{className:"lede masthead-lede",children:"在一个控制台里并行查看多会话进展、差异和执行结果。"})]}),s.jsxs("div",{className:"status-grid",children:[s.jsx(zm,{label:"连接",value:y==="connected"?"已连接":y==="closed"?"断开":"连接中",tone:_p(y)}),s.jsx(zm,{label:"会话数",value:String(H.length)})]}),s.jsxs("div",{className:"masthead-actions",children:[s.jsx("button",{className:"primary masthead-action-btn",onClick:()=>lt(!0),children:"+ 新建会话"}),s.jsx("button",{className:"secondary masthead-action-btn",onClick:()=>Dl(!0),children:"VSCode 配置"})]}),H.length===0?s.jsx("div",{className:"empty",children:"暂无会话。点击上方按钮新建。"}):s.jsx("ul",{className:"session-list",children:H.map(m=>s.jsx("li",{children:s.jsxs("button",{className:`session-chip ${m.clientSessionId===U?"active":""}`,onClick:()=>j(m.clientSessionId),children:[s.jsx("button",{className:"session-chip-close",onClick:p=>ki(p,m.clientSessionId),title:"关闭会话",type:"button",children:"×"}),s.jsx("span",{className:"session-chip-title",title:m.title,children:xa(m.title)}),s.jsxs("span",{className:"session-chip-meta",children:[m.connectionState==="connected"?s.jsx(xp,{session:m}):m.connectionState==="connecting"?s.jsx("span",{className:"session-chip-tag session-chip-tag-connecting",children:"连接中"}):s.jsx("span",{className:"session-chip-tag session-chip-tag-error",children:"异常"}),s.jsx("span",{className:"session-chip-updated",children:zp(m.updatedAt)})]}),s.jsx("span",{className:"session-chip-workspace",title:m.workspacePath,children:M?Mp(m.workspacePath,M.allowedRoots):m.workspacePath})]})},m.clientSessionId))}),ce&&H.length>0&&!G?s.jsx("div",{className:"session-mobile-hint",children:"请选择会话开始交互。"}):null]}),Li?s.jsx("main",{className:"panel main-content",children:G&&!Ve?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"cli-toolbar",children:[s.jsxs("div",{className:"cli-toolbar-info",children:[s.jsxs("div",{className:"cli-toolbar-title-group",children:[s.jsx("h3",{className:"cli-toolbar-title",title:G.title,children:xa(G.title)}),s.jsxs("code",{className:"cli-toolbar-session-id",title:G.sessionId,children:["session: ",G.sessionId]})]}),s.jsx("code",{className:"cli-toolbar-path",title:G.workspacePath,children:G.workspacePath})]}),s.jsxs("div",{className:"cli-toolbar-actions",children:[s.jsxs("div",{className:"engine-switch-group",role:"group","aria-label":"会话引擎切换",children:[s.jsx("button",{className:`secondary engine-switch-button ${G.engine==="cli"?"active":""}`,type:"button",onClick:()=>Zn("cli"),disabled:!Co(G,"cli"),title:uc(G,"cli"),children:"CLI"}),s.jsx("button",{className:`secondary engine-switch-button ${G.engine==="acp"?"active":""}`,type:"button",onClick:()=>Zn("acp"),disabled:!Co(G,"acp"),title:uc(G,"acp"),children:"ACP"})]}),s.jsx("button",{className:"secondary session-open-vscode",onClick:()=>La(G.workspacePath),children:"VSCode"}),M?.enableShell?s.jsxs("button",{className:`secondary toolbar-icon-button session-terminal-trigger ${Ot?"active":""}`,type:"button",onClick:rl,"aria-pressed":Ot,title:Ot?"收起终端":"展开终端",children:[s.jsx("span",{"aria-hidden":"true",children:">_"}),s.jsx("span",{className:"sr-only",children:Ot?"收起终端":"展开终端"})]}):null,s.jsx("button",{className:"secondary session-diff-trigger",onClick:wa,children:"查看 Diff"}),s.jsx("button",{className:"secondary session-close",onClick:()=>Mt(G.clientSessionId),children:"关闭会话"})]})]}),G.engine==="cli"?s.jsx("div",{className:"cli-stage",children:s.jsx("div",{className:"cli-terminal-container",ref:It})}):s.jsx(Tp,{session:G,composer:_l,pendingImages:mn,onComposerChange:Ml,onComposerPaste:m=>hn(p=>[...p,...m]),onRemoveImage:m=>hn(p=>p.filter(C=>C.id!==m)),onSendPrompt:Ha,onCancelPrompt:Vi,onRemoveQueuedPrompt:Vn,onResolvePermission:Ki,onAnswerQuestion:xt,onLoadMoreHistory:qa,onOpenTimelineItem:Mi,onOpenPermissionDetail:yn,onChangeMode:vc})]}):s.jsx("div",{className:"empty main-empty",children:H.length>0?"选择左侧的会话开始交互。":"暂无会话。请先新建一个会话。"})}):null,Aa?s.jsx("div",{className:"modal-backdrop",onClick:()=>Dl(!1),children:s.jsxs("div",{className:"modal-card",onClick:m=>m.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsxs("div",{children:[s.jsx("h3",{children:"VSCode 打开配置"}),s.jsxs("p",{className:"modal-meta",children:["远程模式需要 SSH 用户与主机(如 ",s.jsx("code",{children:"dev@10.0.0.8"}),");本地模式会直接打开当前目录。"]})]}),s.jsx("button",{className:"secondary",onClick:()=>Dl(!1),children:"关闭"})]}),s.jsx("div",{className:"modal-scroll-body",children:s.jsxs("div",{className:"details",children:[s.jsx("label",{htmlFor:"vscode-open-mode",children:"打开模式"}),s.jsxs("select",{id:"vscode-open-mode",value:Ol.mode,onChange:m=>{const p=m.target.value==="remote"?"remote":"local";vn(C=>({...C,mode:p})),Na("")},children:[s.jsx("option",{value:"remote",children:"远程 SSH"}),s.jsx("option",{value:"local",children:"本地目录"})]}),Ol.mode==="remote"?s.jsxs(s.Fragment,{children:[s.jsx("label",{htmlFor:"vscode-open-ssh-host",children:"SSH 主机"}),s.jsx("input",{id:"vscode-open-ssh-host",placeholder:"如 user@server",value:Ol.sshHost,onChange:m=>{vn(p=>({...p,sshHost:m.target.value})),Na("")}})]}):null,s.jsxs("div",{className:"session-meta-item session-meta-item-wide",children:[s.jsx("span",{children:"当前一键打开目标"}),s.jsx("code",{children:Tn||"(未选择目录)"})]}),Oi?s.jsx("p",{className:"modal-meta",children:Oi}):null,ht?s.jsx("p",{className:"modal-meta",children:ht}):null,s.jsxs("div",{className:"session-meta-actions vscode-settings-actions",children:[s.jsx("button",{className:"secondary",onClick:()=>La(Tn),disabled:!yc,children:"立即打开当前目录"}),s.jsx("button",{className:"secondary",onClick:Ll,children:"保存配置"})]})]})})]})}):null,Ye?s.jsx("div",{className:"modal-backdrop",onClick:()=>{lt(!1),je(!1),g(M?.allowSkipPermissions??!1)},children:s.jsxs("div",{className:"modal-card",onClick:m=>m.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsx("div",{children:s.jsx("h3",{children:"新建会话"})}),s.jsx("button",{className:"secondary",onClick:()=>{lt(!1),je(!1),g(M?.allowSkipPermissions??!1)},children:"关闭"})]}),s.jsx("div",{className:"modal-scroll-body",children:s.jsxs("div",{className:"details",children:[s.jsx("label",{htmlFor:"create-workspace-suffix",children:"会话目录"}),s.jsxs("div",{className:"workspace-path-inline",children:[s.jsx("code",{className:"workspace-path-root",children:Ft||"(未配置允许根目录)"}),s.jsx("span",{className:"workspace-path-sep","aria-hidden":"true",children:"/"}),s.jsx("input",{id:"create-workspace-suffix",list:"create-workspace-suffix-suggestions",value:wi,placeholder:"例如 demo/new-session-showcase",onChange:m=>{const p=Ho(m.target.value);Gt(p);const C=_o(Ft,p),J=_m(Ft,p,X);gt(C),Q(J),je(!1)}})]}),s.jsx("datalist",{id:"create-workspace-suffix-suggestions",children:Ue.map(m=>s.jsx("option",{value:m},m))}),Ue.length>0?s.jsxs("div",{className:"workspace-suggestion-list",role:"list","aria-label":"目录候选",children:[pt.map(m=>s.jsx("button",{type:"button",className:"workspace-suggestion-item",onClick:()=>{Gt(m);const p=_o(Ft,m),C=_m(Ft,m,X);gt(p),Q(C),je(!1)},children:m},m)),Ul?s.jsx("button",{type:"button",className:"workspace-suggestion-item",onClick:()=>je(m=>!m),children:nt?"收起候选":`展开更多(+${Ue.length-jo})`}):null]}):null,s.jsx("label",{htmlFor:"create-session-title",children:"会话名"}),s.jsx("input",{id:"create-session-title",value:_,placeholder:"可选,例如 leduo-api",onChange:m=>Y(m.target.value)}),s.jsx("label",{htmlFor:"create-session-engine",children:"启动引擎"}),s.jsx("select",{id:"create-session-engine",value:$,onChange:m=>ve(m.target.value==="acp"?"acp":"cli"),children:za.map(m=>s.jsx("option",{value:m,children:m==="cli"?"CLI 终端":"ACP 结构化视图"},m))}),s.jsxs("div",{className:"checkbox-field",children:[s.jsxs("label",{className:"checkbox-label warning",children:[s.jsx("input",{type:"checkbox",checked:Se,onChange:m=>g(m.target.checked)}),s.jsx("span",{children:"允许YOLO模式"})]}),s.jsx("p",{className:"checkbox-hint warning",children:"启用后,可在会话中切换至YOLO模式,自动执行操作而无需确认。"})]}),ue?s.jsx("p",{children:ue}):null]})}),s.jsxs("div",{className:"modal-footer",children:[s.jsx("button",{className:"primary",onClick:Pt,disabled:!_t.trim(),children:"新建目录会话"}),s.jsx("button",{className:"secondary",type:"button",onClick:()=>{lt(!1),je(!1)},children:"取消"})]})]})}):null,Di?s.jsx(jp,{sessionTitle:G?xa(G.title):"当前会话",loading:Yn,error:Ui,snapshot:hc,fileDiffCache:yt,onLoadFileDiff:$i,onClose:()=>Ca(!1),onRefresh:wa}):null,pn?s.jsx(zv,{sessionTitle:pn.sessionTitle,item:pn.item,onClose:()=>Mi(null)}):null,nl?s.jsx(Mv,{sessionTitle:G?xa(G.title):"当前会话",permission:nl,onClose:()=>yn(null),onResolve:(m,p)=>{Ki(m,p),yn(null)}}):null,at?s.jsx("div",{className:"modal-backdrop",onClick:dl,children:s.jsxs("div",{className:"modal-card modal-card-small",onClick:m=>m.stopPropagation(),children:[s.jsx("div",{className:"modal-header",children:s.jsx("h3",{children:"确认关闭会话"})}),s.jsxs("div",{className:"modal-body",children:[s.jsx("p",{children:"确定要关闭此会话吗?关闭后无法恢复。"}),(()=>{const m=H.find(C=>C.clientSessionId===at),p=m?.engine==="acp"?m.acp?.queuedPrompts.length??0:0;return p<1?null:s.jsxs("p",{children:["当前还有 ",p," 条待发送队列,关闭后会一并丢弃。"]})})()]}),s.jsxs("div",{className:"modal-footer",children:[s.jsx("button",{className:"primary",onClick:Ba,children:"确认关闭"}),s.jsx("button",{className:"secondary",onClick:dl,children:"取消"})]})]})}):null,M?.enableShell&&Ot&&!Ve?s.jsxs("div",{className:"terminal-drawer terminal-drawer-open",children:[s.jsxs("div",{className:"terminal-drawer-header",children:[s.jsxs("button",{className:"terminal-drawer-toggle",type:"button",onClick:()=>Bi(m=>!m),"aria-expanded":Ot,title:Ot?"收起终端":"展开终端",children:[s.jsx("span",{className:"terminal-drawer-icon","aria-hidden":"true",children:Ot?"▼":"▲"}),s.jsx("span",{children:"终端"})]}),s.jsxs("span",{className:"terminal-drawer-note",children:["工作目录:",G?.workspacePath??M.workspacePath]})]}),Ot?s.jsx("div",{className:"terminal-viewport",ref:Sn}):null]}):null]}),Ve&&G?s.jsxs("div",{className:"mobile-terminal-fullscreen",style:Ra,children:[s.jsxs("div",{className:"mobile-terminal-fullscreen-header",children:[s.jsx("button",{className:"secondary mobile-terminal-back",type:"button",onClick:()=>j(null),children:"返回"}),s.jsxs("div",{className:"mobile-terminal-fullscreen-copy",children:[s.jsx("strong",{title:G.title,children:xa(G.title)}),s.jsx("span",{title:G.workspacePath,children:G.workspacePath})]}),s.jsxs("div",{className:"mobile-terminal-fullscreen-actions",children:[_a?s.jsx("button",{className:"secondary mobile-terminal-header-button mobile-terminal-engine-button",type:"button",onClick:()=>Zn("acp"),disabled:!Co(G,"acp"),title:uc(G,"acp"),"aria-label":uc(G,"acp"),children:"ACP"}):null,s.jsx("button",{className:"secondary mobile-terminal-header-button session-diff-trigger mobile-terminal-diff-trigger",type:"button",onClick:wa,children:"Diff"}),M?.enableShell?s.jsxs("button",{className:"secondary toolbar-icon-button mobile-terminal-mode-button",type:"button",onClick:Bl,title:Oe==="cli"?"切换到终端":"切换到 Claude Code",children:[s.jsx("span",{"aria-hidden":"true",children:Oe==="cli"?">_":"CC"}),s.jsx("span",{className:"sr-only",children:Oe==="cli"?"切换到终端":"切换到 Claude Code"})]}):null,s.jsxs("button",{className:`secondary mobile-terminal-toggle ${Rl?"active":""}`,type:"button",onClick:Gi,"aria-pressed":Rl,children:[s.jsxs("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"2"}),s.jsx("path",{d:"M6 9H7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M10 9H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M14 9H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M18 9H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M6 12H7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M10 12H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M14 12H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M18 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{d:"M9 15H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),s.jsx("span",{className:"sr-only",children:Rl?"收起输入":"移动输入"})]})]})]}),s.jsx("div",{className:"mobile-terminal-fullscreen-body",children:s.jsxs("div",{className:"cli-stage cli-stage-fullscreen",children:[s.jsxs("div",{className:"mobile-terminal-stage-viewport",children:[s.jsx("div",{className:`cli-terminal-container cli-terminal-container-fullscreen mobile-terminal-surface ${Oe==="shell"?"mobile-terminal-surface-hidden":""}`,ref:It}),M?.enableShell?s.jsxs("div",{className:`mobile-shell-stage mobile-terminal-surface ${Oe==="cli"?"mobile-terminal-surface-hidden":""}`,children:[s.jsxs("div",{className:"mobile-shell-panel-header",children:[s.jsxs("span",{className:"mobile-shell-panel-title",children:[s.jsx("span",{"aria-hidden":"true",children:">_"}),s.jsx("span",{children:"终端"})]}),s.jsx("code",{className:"mobile-shell-panel-path",title:G.workspacePath,children:G.workspacePath})]}),s.jsx("div",{className:"terminal-viewport terminal-viewport-mobile terminal-viewport-mobile-fullscreen",ref:bn})]}):null]}),Rl?s.jsx(bp,{draft:ne,disabled:Ma,keyboardInset:Pe,fullscreen:!0,onChangeDraft:he,onTypeDraft:Ke,onSendDraft:ql,onAction:Qi}):null]})})]}):null,s.jsx(Ep,{toasts:q,onDismiss:Zi,onNavigate:m=>j(m)})]}):s.jsx("div",{className:"access-gate",children:s.jsxs("div",{className:"panel access-gate-card",children:[s.jsx("h2",{children:M?.appName??"乐多汪汪队"}),s.jsx("p",{children:"请输入访问 key。提交后会自动写回当前 URL,后续刷新页面也能继续使用。"}),s.jsxs("form",{className:"access-gate-form",onSubmit:Wi,children:[s.jsx("label",{className:"access-gate-label",htmlFor:"access-key-input",children:"访问 key"}),s.jsx("input",{id:"access-key-input",type:"password",autoFocus:!0,autoComplete:"off",spellCheck:!1,value:d,onChange:m=>r(m.target.value),placeholder:"请输入访问 key"}),s.jsx("button",{className:"primary",type:"submit",disabled:!d.trim(),children:"进入控制台"})]}),s.jsxs("p",{className:"access-gate-hint",children:["也可以继续使用 URL 参数方式,例如 ",s.jsx("code",{children:"?key=YOUR_KEY"}),"。"]})]})})}function bp(u){const o={"--mobile-terminal-input-offset":`${u.keyboardInset}px`},d=u.draft.length>0;function r(y){y.key==="Enter"&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),u.onSendDraft())}return s.jsxs("div",{className:`mobile-terminal-input-shell ${u.fullscreen?"mobile-terminal-input-shell-fullscreen":""}`,style:o,children:[s.jsxs("div",{className:"mobile-terminal-input-compose",children:[s.jsx("label",{className:"sr-only",htmlFor:"mobile-terminal-input",children:"终端输入"}),s.jsx("textarea",{id:"mobile-terminal-input",value:u.draft,onChange:y=>u.onChangeDraft(y.target.value),onKeyDown:r,placeholder:"在这里粘贴命令、确认文字或多行文本",spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",rows:2,disabled:u.disabled}),d?s.jsxs("div",{className:"mobile-terminal-send-stack",children:[s.jsx("button",{className:"secondary mobile-terminal-send mobile-terminal-send-type",type:"button",onClick:u.onTypeDraft,disabled:u.disabled,children:"键入文本"}),s.jsx("button",{className:"primary mobile-terminal-send",type:"button",onClick:u.onSendDraft,disabled:u.disabled,children:"发送文本"})]}):s.jsx("button",{className:"primary mobile-terminal-send",type:"button",onClick:u.onSendDraft,disabled:u.disabled,children:"Enter"})]}),s.jsx("div",{className:"mobile-terminal-action-grid",role:"group","aria-label":"终端快捷按键",children:hp.map(y=>s.jsx("button",{className:`secondary mobile-terminal-action ${y.accent?"mobile-terminal-action-accent":""}`,type:"button",onClick:()=>u.onAction(y.key),disabled:u.disabled,children:y.label},y.key))})]})}function Tp(u){const o=u.session.acp??Lm(),d=xa(u.session.title),r=Ev(o.questions),[y,T]=B.useState({}),[M,V]=B.useState(!1),[H,b]=B.useState(!1),[U,j]=B.useState(0),q=o.timeline,L=B.useMemo(()=>lv(q),[q]),ne=B.useMemo(()=>cv(L),[L]),he=Qp(u.session),ce=o.queuedPrompts.length>0,st=he||ce,bt=B.useMemo(()=>bv(q),[q]),qe=B.useMemo(()=>Tv(km(q)),[q]),Oe=sc(u.composer),Ee=B.useMemo(()=>hv(u.composer,o.availableCommands),[u.composer,o.availableCommands]),Pe=B.useMemo(()=>pv(Ee,Oe),[Ee,Oe]);B.useEffect(()=>{T({}),b(!1),j(0)},[u.session.clientSessionId]),B.useEffect(()=>{j(0)},[u.composer,Ee.length,u.session.clientSessionId]);async function ae(w){const F=await Bp(w);F.length>0&&u.onComposerPaste(F)}function Be(w){u.onComposerChange(yv(u.composer,w))}async function mt(){V(!0);try{await u.onLoadMoreHistory(u.session.clientSessionId)}finally{V(!1)}}return s.jsxs("div",{className:`acp-legacy-shell ${bt?"":"acp-legacy-shell-no-sidebar"}`.trim(),children:[s.jsxs("main",{className:"transcript acp-legacy-transcript",children:[s.jsxs("div",{className:"timeline",children:[o.historyStart>0?s.jsx("button",{className:"history-loader secondary",type:"button",onClick:()=>{mt()},disabled:M,children:M?"正在加载更早历史...":`加载更多历史 (${o.historyStart} 条更早记录)`}):null,q.length===0?s.jsx("div",{className:"empty",children:"这个会话还没有执行记录。发送第一条指令后开始滚动展示。"}):L.map(w=>{const F=w.rootId?!!y[w.rootId]:!1;if(w.depth>0&&F)return null;const Ye=ne[w.item.id]??0;return s.jsx(Cv,{item:w.displayTitle?{...w.item,title:w.displayTitle}:w.item,depth:w.depth,childCount:Ye,collapsed:!!y[w.item.id],onToggleCollapse:Ye>0?()=>T(lt=>({...lt,[w.item.id]:!lt[w.item.id]})):void 0,statusHint:uv(w.item,Ye,!!y[w.item.id],he),onOpen:()=>u.onOpenTimelineItem({sessionTitle:d,item:w.item})},w.item.id)}),he?s.jsxs("div",{className:"timeline-running-indicator","aria-live":"polite",children:[s.jsx("span",{className:"timeline-running-dot","aria-hidden":"true"}),o.permissions.length>0||o.questions.length>0?"等待待处理中...":"正在运行中..."]}):null]}),o.permissions.length>0||r.length>0?s.jsxs("div",{className:"composer composer-pending-placeholder",children:[o.permissions.length>0?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"composer-pending-title",children:"待处理确认"}),s.jsx("div",{className:"composer-pending-list",children:o.permissions.map(w=>s.jsxs("section",{className:"composer-pending-item",children:[s.jsx("p",{className:"composer-pending-tool",title:rc(w.toolCall.title,w.toolCall.rawInput,w.toolCall.toolCallId),children:Vm(rc(w.toolCall.title,w.toolCall.rawInput,w.toolCall.toolCallId))}),s.jsxs("div",{className:"composer-pending-actions",children:[s.jsx("button",{className:"secondary",type:"button",onClick:()=>u.onOpenPermissionDetail(w),children:"查看详情"}),w.options.map(F=>s.jsx("button",{className:"secondary",type:"button",onClick:()=>u.onResolvePermission(w,F.optionId),children:F.name},F.optionId))]})]},w.requestId))})]}):null,r.length>0?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"composer-pending-title",children:"待回答问题"}),s.jsx("div",{className:"composer-pending-list",children:r.map(w=>s.jsx(_v,{questions:w,onSubmit:F=>jv(w,F,u.onAnswerQuestion)},w[0].groupId??w[0].questionId))})]}):null,ce?s.jsx(Cm,{prompts:o.queuedPrompts,onRemove:u.onRemoveQueuedPrompt}):null]}):s.jsxs("div",{className:"composer",children:[s.jsxs("div",{className:"composer-meta-row",children:[o.modes.length>0?s.jsx("select",{className:"acp-mode-select composer-mode-select",value:o.currentModeId,onChange:w=>u.onChangeMode(w.target.value),children:o.modes.map(w=>s.jsx("option",{value:w,children:w},w))}):null,s.jsxs("p",{className:"composer-capability-summary",children:["ACP 能力:",o.availableCommands.length]})]}),H&&Ee.length>0?s.jsx("div",{className:"composer-completions",role:"listbox","aria-label":"命令补全",children:Pe.map(w=>s.jsxs("div",{className:"composer-completion-section",children:[w.title?s.jsx("p",{className:"composer-completion-section-title",children:w.title}):null,w.items.map(({command:F,index:Ye})=>s.jsxs("button",{type:"button",className:`composer-completion-item ${Ye===U?"active":""}`,onMouseDown:lt=>{lt.preventDefault(),Be(F.name),b(!1)},children:[s.jsx("span",{children:gv(F.name,Oe)}),s.jsx("small",{children:F.description||"命令"})]},F.name))]},w.key))}):null,ce?s.jsx(Cm,{prompts:o.queuedPrompts,onRemove:u.onRemoveQueuedPrompt}):null,s.jsxs("div",{className:"composer-input-shell",children:[u.pendingImages.length>0?s.jsx("div",{className:"composer-image-previews",children:u.pendingImages.map((w,F)=>s.jsxs("div",{className:"composer-image-preview",children:[s.jsx("div",{className:"composer-image-preview-thumb",children:s.jsx("img",{src:w.dataUrl,alt:`待发送图片 ${F+1}`})}),s.jsx("button",{type:"button",className:"composer-image-preview-remove",title:"移除图片",onClick:()=>u.onRemoveImage(w.id),children:"移除"})]},w.id))}):null,s.jsx("textarea",{placeholder:he?"当前正在运行,可继续准备下一条指令…":"例如:分析这个目录的仓库结构,然后给我一个重构计划。",value:u.composer,onFocus:()=>{Ee.length>0&&b(!0)},onChange:w=>{const F=w.target.value;u.onComposerChange(F),b(!!sc(F))},onPaste:w=>{ae(w).catch(()=>{})},onKeyDown:w=>{if(w.key==="Enter"&&!w.shiftKey&&!w.metaKey&&!w.ctrlKey&&H&&Ee.length>0&&sc(u.composer)){w.preventDefault();const F=Ee[U]??Ee[0];F&&(Be(F.name),b(!1));return}if((w.metaKey||w.ctrlKey)&&w.key==="Enter"){u.onSendPrompt();return}if(w.key==="Escape"){b(!1);return}if(!(Ee.length<1)){if(w.key==="ArrowDown"){w.preventDefault(),b(!0),j(F=>(F+1)%Ee.length);return}if(w.key==="ArrowUp"){w.preventDefault(),b(!0),j(F=>(F-1+Ee.length)%Ee.length);return}if(w.key==="Tab"){w.preventDefault();const F=Ee[U]??Ee[0];F&&(Be(F.name),b(!1))}}}})]}),s.jsxs("div",{className:"composer-actions",children:[s.jsxs("button",{className:"primary composer-send",type:"button",onClick:u.onSendPrompt,disabled:!u.composer.trim()&&u.pendingImages.length===0,children:[st?"加入队列":"发送",s.jsx("kbd",{className:"composer-send-shortcut",children:"⌘↩"})]}),s.jsxs("button",{className:"secondary composer-cancel",type:"button",onClick:u.onCancelPrompt,disabled:!o.busy,children:[s.jsx("span",{"aria-hidden":"true",children:"⏹"}),"停止"]})]})]})]}),bt?s.jsx("aside",{className:"approvals acp-legacy-approvals",children:s.jsxs("section",{className:"details session-meta session-meta-card",children:[s.jsx("p",{className:"approval-label",children:"执行计划"}),qe.length>0?s.jsx("ol",{className:"session-plan-list",children:qe.map((w,F)=>s.jsxs("li",{className:"session-plan-list-item",children:[s.jsx("span",{className:`session-plan-status session-plan-status-${w.status}`,"aria-hidden":"true"}),s.jsx("span",{className:"session-plan-content",children:w.content})]},`${F}-${w.content}`))}):s.jsx("pre",{className:"session-plan-preview",children:bt})]})}):null]})}function Cm(u){return u.prompts.length===0?null:s.jsxs("section",{className:"composer-queued-prompts","aria-label":"待发送队列",children:[s.jsxs("div",{className:"composer-queued-prompts-header",children:[s.jsx("p",{className:"composer-pending-title",children:"待发送队列"}),s.jsx("span",{className:"composer-queued-prompts-count",children:u.prompts.length})]}),s.jsx("div",{className:"composer-queued-prompts-list",children:u.prompts.map(o=>{const d=o.images.length,r=wp(o),y=o.status==="sending"?"发送中":"排队中";return s.jsxs("div",{className:"composer-queued-prompt-item",children:[s.jsxs("div",{className:"composer-queued-prompt-copy",children:[s.jsxs("div",{className:"composer-queued-prompt-meta",children:[s.jsx("span",{className:`composer-queued-prompt-status composer-queued-prompt-status-${o.status}`,children:y}),s.jsx("span",{className:"composer-queued-prompt-mode",children:o.modeId}),d>0?s.jsxs("span",{className:"composer-queued-prompt-images",children:[d," 张图片"]}):null]}),s.jsx("p",{className:"composer-queued-prompt-text",children:r})]}),s.jsx("button",{className:"secondary composer-queued-prompt-remove",type:"button",onClick:()=>u.onRemove(o.id),disabled:o.status==="sending",children:"删除"})]},o.id)})})]})}function xp(u){const o=Yp(u.session);return s.jsx("span",{className:`session-chip-tag session-chip-tag-${o.tone}`,children:o.label})}function zm(u){return s.jsxs("div",{className:`status-card ${u.tone?`status-card-${u.tone}`:""}`,children:[s.jsx("span",{children:u.label}),s.jsx("strong",{children:u.value})]})}function Ep(u){return u.toasts.length===0?null:s.jsx("div",{className:"toast-container","aria-live":"polite","aria-atomic":"false",children:u.toasts.map(o=>s.jsxs("div",{className:`toast-item toast-${o.kind}`,role:"alert",children:[o.sessionId?s.jsxs("button",{className:"toast-content toast-content-clickable",type:"button",onClick:()=>u.onNavigate(o.sessionId),"aria-label":`跳转到会话:${o.body}`,children:[s.jsx("strong",{className:"toast-title",children:o.title}),s.jsx("span",{className:"toast-body",children:o.body})]}):s.jsxs("div",{className:"toast-content",children:[s.jsx("strong",{className:"toast-title",children:o.title}),s.jsx("span",{className:"toast-body",children:o.body})]}),s.jsx("button",{className:"toast-dismiss",onClick:()=>u.onDismiss(o.id),"aria-label":"关闭通知",type:"button",children:"×"})]},o.id))})}function jp(u){const[o,d]=B.useState("flat"),[r,y]=B.useState("workingTree"),[T,M]=B.useState(""),[V,H]=B.useState(!1),[b,U]=B.useState(""),j=B.useMemo(()=>u.snapshot?u.snapshot[r]:[],[r,u.snapshot]);B.useEffect(()=>{if(j.length===0){M("");return}j.some(L=>L.filePath===T)||M(j[0].filePath)},[j,T]),B.useEffect(()=>{if(o!=="byFile"||!T)return;const L=`${r}:${T}`;u.fileDiffCache[L]||(H(!0),U(""),u.onLoadFileDiff(r,T).catch(ne=>{U(ne instanceof Error?ne.message:String(ne))}).finally(()=>{H(!1)}))},[r,u,T,o]);const q=T?u.fileDiffCache[`${r}:${T}`]:null;return s.jsx("div",{className:"modal-backdrop",onClick:u.onClose,children:s.jsxs("div",{className:"modal-card",onClick:L=>L.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsxs("div",{className:"diff-title-wrap",children:[s.jsx("p",{className:"eyebrow",children:u.sessionTitle}),s.jsxs("h3",{children:["当前目录累计代码 Diff",u.snapshot?.workspaceReadonly?s.jsx("span",{className:"readonly-badge",children:"只读目录"}):null]}),u.snapshot?s.jsx("code",{className:"diff-title-path",children:u.snapshot.workspacePath}):null,u.snapshot&&u.snapshot.repositoryRoot!==u.snapshot.workspacePath?s.jsxs("p",{className:"modal-meta",children:["仓库根目录: ",u.snapshot.repositoryRoot]}):null]}),s.jsxs("div",{className:"modal-actions-inline",children:[s.jsx("button",{className:"secondary modal-btn-refresh",onClick:u.onRefresh,disabled:u.loading,children:"刷新"}),s.jsx("button",{className:"secondary modal-btn-close",onClick:u.onClose,children:"关闭"})]})]}),u.loading?s.jsx("p",{className:"modal-meta modal-meta-padded",children:"正在读取 Git Diff..."}):null,u.error?s.jsx("p",{className:"modal-meta modal-meta-padded",children:u.error}):null,u.snapshot?s.jsx("div",{className:"modal-scroll-body",children:s.jsxs("div",{className:"modal-body markdown-body",children:[s.jsxs("div",{className:"diff-toolbar-tabs",role:"tablist","aria-label":"Diff 查看模式",children:[s.jsx("button",{className:`diff-tab ${o==="flat"?"active":""}`,onClick:()=>d("flat"),role:"tab","aria-selected":o==="flat",type:"button",children:"平铺查看"}),s.jsx("button",{className:`diff-tab ${o==="byFile"?"active":""}`,onClick:()=>d("byFile"),role:"tab","aria-selected":o==="byFile",type:"button",children:"按文件查看"}),o==="byFile"?s.jsxs("select",{value:T,onChange:L=>M(L.target.value),children:[j.length===0?s.jsx("option",{value:"",children:"当前没有文件变更"}):null,j.map(L=>s.jsxs("option",{value:L.filePath,children:["[",L.changeType,"] ",L.filePath]},L.filePath))]}):null]}),s.jsxs("div",{className:"diff-toolbar-tabs",role:"tablist","aria-label":"Diff 分类",children:[s.jsxs("button",{className:`diff-tab ${r==="workingTree"?"active":""}`,onClick:()=>y("workingTree"),role:"tab","aria-selected":r==="workingTree",type:"button",children:["未暂存修改 (",u.snapshot.workingTree.length,")"]}),s.jsxs("button",{className:`diff-tab ${r==="staged"?"active":""}`,onClick:()=>y("staged"),role:"tab","aria-selected":r==="staged",type:"button",children:["已暂存修改 (",u.snapshot.staged.length,")"]}),s.jsxs("button",{className:`diff-tab ${r==="untracked"?"active":""}`,onClick:()=>y("untracked"),role:"tab","aria-selected":r==="untracked",type:"button",children:["未跟踪文件 (",u.snapshot.untracked.length,")"]})]}),o==="flat"?s.jsxs(s.Fragment,{children:[s.jsx("h4",{children:Ap(r)}),j.length===0?s.jsx("p",{children:"(空)"}):j.map(L=>s.jsx("p",{children:s.jsxs("code",{children:["[",L.changeType,"] ",L.filePath]})},`${r}:${L.filePath}`)),s.jsx("p",{className:"modal-meta",children:"按文件查看模式会按需加载单个文件 Diff,避免一次性读取整个仓库差异。"})]}):s.jsxs(s.Fragment,{children:[s.jsx("h4",{children:"文件 Diff"}),T?null:s.jsx("p",{children:"(空)"}),V?s.jsx("p",{children:"正在加载文件 Diff..."}):null,b?s.jsx("p",{className:"modal-meta",children:b}):null,q?.omitted?s.jsx("p",{className:"modal-meta",children:q.reason??"该文件 Diff 过大,已省略显示。"}):null,q&&!q.omitted?s.jsx(Np,{diff:q.diff}):null]})]})}):null]})})}function Ap(u){return u==="workingTree"?"未暂存修改 (working tree)":u==="staged"?"已暂存修改 (staged)":"未跟踪文件"}function Np(u){if(!u.diff.trim())return s.jsx("p",{children:"(空)"});const d=u.diff.replace(/\r\n/g,`
12
+ `).split(`
13
+ `);return s.jsx("pre",{className:"diff-block",children:s.jsx("code",{children:d.map((r,y)=>s.jsx("span",{className:`diff-line ${Cp(r)}`,children:r||" "},`${y}-${r}`))})})}function Cp(u){return u.startsWith("+++ ")||u.startsWith("--- ")?"diff-line-file":u.startsWith("@@ ")?"diff-line-hunk":u.startsWith("diff --git")||u.startsWith("index ")||u.startsWith("new file mode")||u.startsWith("deleted file mode")?"diff-line-header":u.startsWith("+")?"diff-line-add":u.startsWith("-")?"diff-line-remove":""}function fn(){const u=globalThis.crypto;return typeof u?.randomUUID=="function"?u.randomUUID():`lp-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function xa(u){return u.replace(/_/g,"_​")}function zp(u,o=Date.now()){const d=Date.parse(u);if(!Number.isFinite(d))return"刚刚";const r=Math.max(0,o-d),y=Math.floor(r/6e4);if(y<1)return"刚刚";if(y<60)return`${y} 分钟前`;const T=Math.floor(y/60);return T<24?`${T} 小时前`:`${Math.floor(T/24)} 天前`}function _p(u){return u==="connected"?"positive":u==="closed"||u==="error"?"negative":"neutral"}function Mp(u,o){const d=u.trim();if(!d)return u;const r=o.map(T=>T.trim()).filter(Boolean).sort((T,M)=>M.length-T.length).find(T=>Uo(T,d));if(!r)return d;if(d===r)return"…/";const y=d.slice(r.length).replace(/^\/+/,"");return y?`…/${y}`:"…/"}function rn(u){return u.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function Uo(u,o){return o===u||o.startsWith(`${u}/`)}function Bm(u,o){const d=rn(u),r=rn(o);return!Uo(d,r)||r===d?"":r.slice(d.length).replace(/^\/+/,"")}function Ho(u){return u.replace(/\\/g,"/").replace(/^\/+/,"").replace(/\/+$/,"")}function _o(u,o){const d=rn(u),r=Ho(o);return r?rn(`${d}/${r}`):d}function _m(u,o,d){const r=Ho(o),y=_o(u,r);if(!r)return y;const T=rn(y);return d.some(V=>rn(V.path)===T)?y:Op(y)}function Op(u){const o=u.replace(/[\\/]+$/,""),d=Math.max(o.lastIndexOf("/"),o.lastIndexOf("\\"));return d<=0?o.slice(0,1)||o:o.slice(0,d)}function Mm(u,o){const d=rn(u.trim()||"/"),r=o.map(H=>rn(H.trim())).filter(Boolean).sort((H,b)=>b.length-H.length),y=r.find(H=>Uo(H,d)),T=r[0]??"/",M=y??T,V=Bm(M,d);return{root:M,suffix:V}}function No(u){return u?dp:mp}function Om(u){return u.viewportWidth<=rp&&(u.coarsePointer||u.touchPoints>0)}function Dp(u){switch(u){case"backspace":return"";case"tab":return" ";case"shiftTab":return"\x1B[Z";case"escape":return"\x1B";case"arrowUp":return"\x1B[A";case"arrowDown":return"\x1B[B";case"arrowRight":return"\x1B[C";case"arrowLeft":return"\x1B[D";case"ctrlC":return"";default:return""}}function Rp(u,o){return u.length===0?o?"\r":"":`${u}${o?"\r":""}`}function Up(u,o,d){return!u||o!=="connected"||d!=null&&d!=="connected"}function Lm(){return{modes:[],defaultModeId:"default",currentModeId:"default",busy:!1,timeline:[],historyTotal:0,historyStart:0,permissions:[],questions:[],availableCommands:[],queuedPrompts:[],lastContentEventAt:void 0,completedAt:void 0}}function Hp(u){return{id:u.id,text:typeof u.text=="string"?u.text:"",images:Array.isArray(u.images)?u.images:[],modeId:typeof u.modeId=="string"&&u.modeId?u.modeId:"default",createdAt:typeof u.createdAt=="string"?u.createdAt:new Date().toISOString(),status:u.status==="sending"?"sending":"queued"}}function Ie(u){const o=u.engine==="acp"?"acp":"cli",d=o==="acp"?{...Lm(),...u.acp,modes:u.acp?.modes??[],timeline:u.acp?.timeline??[],permissions:u.acp?.permissions??[],questions:u.acp?.questions??[],availableCommands:u.acp?.availableCommands??[],queuedPrompts:Array.isArray(u.acp?.queuedPrompts)?u.acp.queuedPrompts.map(Hp):[]}:void 0;return{...u,engine:o,activityState:u.activityState??"idle",switchable:u.switchable??!oc({...u,engine:o,acp:d}),switchBlockedReason:u.switchBlockedReason??oc({...u,engine:o,acp:d})??void 0,acp:d}}function ja(u){if(typeof u=="string")return u;try{return JSON.stringify(u,null,2)}catch{return String(u)}}function qp(u){return Array.isArray(u)?u.map(o=>{if(typeof o=="string")return{name:o,description:"",inputType:"unstructured"};if(o&&typeof o=="object"&&!Array.isArray(o)){const d=o,r=typeof d.name=="string"?d.name:typeof d.command=="string"?d.command:"";return r?{name:r,description:typeof d.description=="string"?d.description:"",inputType:"unstructured"}:null}return null}).filter(o=>o!==null):[]}function Mo(u){if(typeof u=="string")return u;if(Array.isArray(u))return u.map(o=>Mo(o)).filter(Boolean).join(`
14
+ `);if(u&&typeof u=="object"){const o=u;if(typeof o.text=="string")return o.text;if(o.type==="resource"&&o.resource&&typeof o.resource=="object"){const d=o.resource;if(typeof d.text=="string")return d.text}}return ja(u)}async function Bp(u){const o=Array.from(u.clipboardData?.items??[]).filter(d=>d.type.startsWith("image/")).map(d=>d.getAsFile()).filter(d=>!!d);return o.length===0?[]:(u.preventDefault(),await Promise.all(o.map(d=>Lp(d))))}function Lp(u){return new Promise((o,d)=>{const r=new FileReader;r.onerror=()=>d(r.error??new Error("Failed to read image")),r.onload=()=>{const y=typeof r.result=="string"?r.result:"",T=y.indexOf(",");o({id:fn(),dataUrl:y,data:T>=0?y.slice(T+1):y,mimeType:u.type||"image/png"})},r.readAsDataURL(u)})}function wp(u){const o=u.text.trim();return o||(u.images.length>0?"(仅图片)":"(空消息)")}function Yp(u){return u.engine==="acp"&&u.acp?u.connectionState==="error"?{label:"异常",tone:"error"}:u.acp.permissions.length>0||u.acp.questions.length>0?{label:"待处理",tone:"pending"}:qo(u.acp)?{label:"运行中",tone:"running"}:u.acp.queuedPrompts.length>0?{label:"待发送",tone:"pending"}:{label:"空闲",tone:"connected"}:u.activityState==="running"?{label:"运行中",tone:"running"}:u.activityState==="pending"?{label:"待处理",tone:"pending"}:u.connectionState==="error"?{label:"异常",tone:"error"}:{label:"空闲",tone:"connected"}}function oc(u){return u.connectionState==="connecting"?"连接中":u.engine==="acp"&&u.acp?u.acp.permissions.length>0?"待审批":u.acp.questions.length>0?"待提问":qo(u.acp)?"运行中":u.acp.queuedPrompts.length>0?"队列未清空":null:u.activityState==="running"?"运行中":u.activityState==="pending"?"待处理":null}function Co(u,o){return u.engine!==o&&!oc(u)}function uc(u,o){if(u.engine===o)return`当前已在 ${o.toUpperCase()} 引擎`;const d=oc(u);return d?`当前不可切换:${d}`:`切换到 ${o.toUpperCase()}`}function Qp(u){return u.acp?!!(u.acp.permissions.length>0||u.acp.questions.length>0||qo(u.acp)):!1}function qo(u){if(!u.busy)return!1;const o=u.timeline.at(-1);return!(o?.kind==="system"&&o.title==="本轮完成")}function Gp(u){const o=u.trim().toLowerCase();return o==="pause_turn"||o==="pause-turn"||o.includes("permission")}function Xp(u,o,d){return u.engine!=="acp"||!u.acp?u:dn(Ie({...u,acp:{...u.acp,busy:!0}}),{id:o.promptId,kind:"user",title:"你",body:o.text,images:d})}function Zp(u,o){if(u.engine!=="acp"||!u.acp)return u;const d=Gp(o.stopReason);return dn(Ie({...u,acp:{...u.acp,busy:d,completedAt:d?u.acp.completedAt:Date.now()}}),{id:fn(),kind:"system",title:d?"等待待处理中":"本轮完成",body:o.stopReason})}function Vp(u,o){if(u.engine!=="acp"||!u.acp)return u;const d=Ie({...u,acp:{...u.acp,permissions:[...u.acp.permissions,o]}});return wm(d,{sessionUpdate:"tool_call",toolCallId:o.toolCall.toolCallId,title:o.toolCall.title,status:o.toolCall.status??"pending",rawInput:o.toolCall.rawInput})}function Kp(u,o){return u.engine!=="acp"||!u.acp?u:Ie({...u,acp:{...u.acp,permissions:u.acp.permissions.filter(d=>d.requestId!==o.requestId)}})}function kp(u,o){return u.engine!=="acp"||!u.acp?u:dn(Ie({...u,acp:{...u.acp,questions:[...u.acp.questions,o]}}),{id:o.questionId,kind:"system",title:"提问",body:o.header?`【${o.header}】${o.question}`:o.question,meta:"pending"})}function Jp(u,o){return u.engine!=="acp"||!u.acp?u:Ie({...u,acp:{...u.acp,questions:u.acp.questions.filter(d=>d.questionId!==o.questionId)}})}function $p(u,o){if(u.engine!=="acp"||!u.acp)return o.fatal?Ie({...u,connectionState:"error",updatedAt:new Date().toISOString()}):u;const d=Ie({...u,connectionState:o.fatal?"error":u.connectionState,acp:{...u.acp,busy:o.fatal?!1:u.acp.busy}});return dn(d,{id:fn(),kind:"error",title:o.fatal?"错误":"警告",body:o.message})}function dn(u,o){return u.engine!=="acp"||!u.acp?u:Ie({...u,acp:{...u.acp,timeline:[...u.acp.timeline,Ym(o)],historyTotal:Math.max(u.acp.historyTotal,u.acp.timeline.length+1)}})}function Dm(u,o,d,r,y){if(u.engine!=="acp"||!u.acp)return u;const T=u.acp.timeline.at(-1);return T&&T.kind===o&&T.title===d&&!T.meta&&(T.parentToolCallId??void 0)===y?Ie({...u,acp:{...u.acp,timeline:[...u.acp.timeline.slice(0,-1),{...T,body:T.body+r}]}}):dn(u,{id:fn(),kind:o,title:d,body:r,parentToolCallId:y})}function wm(u,o){if(u.engine!=="acp"||!u.acp)return u;const d=Ip(o),r=typeof o.toolCallId=="string"?o.toolCallId:null;if(r){let y=-1;for(let T=u.acp.timeline.length-1;T>=0;T-=1){const M=u.acp.timeline[T];if(M?.kind==="system"&&M.title==="本轮完成")break;if(M?.kind==="tool"&&Fp(M,d,r)){const V=_i(M);if(!Oo(V?.status??null)){y=T;break}y<0&&(y=T)}}if(y>=0){const T=[...u.acp.timeline];return T[y]=Pp(T[y]??d,d),Ie({...u,acp:{...u.acp,timeline:T}})}}return dn(u,d)}function Wp(u,o){if(u.engine!=="acp"||!u.acp)return u;const d=o.sessionUpdate==="agent_message_chunk"||o.sessionUpdate==="agent_thought_chunk"||o.sessionUpdate==="tool_call"||o.sessionUpdate==="tool_call_update"||o.sessionUpdate==="plan";let r=u;switch(d&&(r=Ie({...r,acp:{...r.acp,lastContentEventAt:Date.now()}})),o.sessionUpdate){case"available_commands_update":return Ie({...r,acp:{...r.acp,availableCommands:qp(o.availableCommands??o.supportedCommands??o.commands)}});case"agent_message_chunk":{const y=Mo(o.content);return y?Dm(r,"agent","Claude",y,cc(o)):r}case"agent_thought_chunk":{const y=Mo(o.content);return y?Dm(r,"thought","思路",y,cc(o)):r}case"tool_call":case"tool_call_update":return wm(r,o);case"plan":return dn(r,{id:fn(),kind:"system",title:"执行计划",body:ja(o.entries??o),parentToolCallId:cc(o)});case"current_mode_update":{const y=String(o.currentModeId??"").trim();return dn(Ie({...r,acp:{...r.acp,currentModeId:y||r.acp.currentModeId||"default",defaultModeId:y||r.acp.defaultModeId}}),{id:fn(),kind:"system",title:"模式切换",body:y||"unknown"})}default:return r}}function Ym(u){if(u.kind!=="tool")return u;const o=zi(u.body);return o?{...u,kind:"plan",title:o.title,body:o.body}:u}function zi(u){const o=zl(u);if(o!==null)return zi(o);if(Array.isArray(u)){for(const T of u){const M=zi(T);if(M)return M}return null}const d=Fe(u);if(!d)return null;if(typeof d.plan=="string")return{title:"计划确认",body:d.plan};const r=typeof d.file_path=="string"?d.file_path:typeof d.path=="string"?d.path:null,y=typeof d.content=="string"?d.content:typeof d.text=="string"?d.text:null;if(r?.includes("/.claude/plans/")&&y)return{title:"计划",body:y};for(const T of["rawInput","rawOutput","input","output","content"])if(T in d){const M=zi(d[T]);if(M)return M}return null}function zl(u){if(typeof u!="string")return null;const o=u.trim();if(!o.startsWith("{")&&!o.startsWith("["))return null;try{return JSON.parse(o)}catch{return null}}function Fe(u){return u&&typeof u=="object"&&!Array.isArray(u)?u:null}function cc(u){const o=Fe(u._meta),r=Fe(o?.claudeCode)?.parentToolUseId;return typeof r=="string"&&r?r:void 0}function Qm(u){return typeof u!="string"?"":u.replace(/^mcp__acp__/i,"")}function Ip(u){const o=Qm(u.title)||void 0,d=cc(u);return{id:fn(),kind:"tool",title:rc(o,u.rawInput,u.toolCallId),body:Zm({toolCallId:u.toolCallId,title:o,status:u.status,rawInput:u.rawInput,rawOutput:u.rawOutput,parentToolCallId:d}),meta:String(u.status??u.sessionUpdate),parentToolCallId:d}}function Fp(u,o,d){if(u.kind!=="tool"||o.kind!=="tool")return!1;const r=_i(u),y=_i(o);if(r?.toolCallId!==d||y?.toolCallId!==d)return!1;const T=Ea(r.rawTitle??r.title),M=Ea(y.rawTitle??y.title);return T===M}function Pp(u,o){const d=fc(u.body),r=fc(o.body),y=[...d,...r],T=o.parentToolCallId??u.parentToolCallId;return{...o,id:u.id,title:Gm(y,o.title),body:ja(y),parentToolCallId:T}}function fc(u){const o=zl(u);return Array.isArray(o)?o:o!==null?[o]:[u]}function Gm(u,o){for(let d=u.length-1;d>=0;d-=1){const r=Fe(u[d]);if(!r)continue;const y=Fe(r.rawInput)??Fe(zl(r.rawInput)),T=typeof y?.description=="string"?y.description.trim():"";if(T&&!Ea(T))return T}for(let d=u.length-1;d>=0;d-=1){const r=Fe(u[d]),y=typeof r?.title=="string"?r.title.trim():"";if(y)return y}return o}function rc(u,o,d){const r=Qm(u).trim(),y=Fe(o)??Fe(zl(o)),T=ev(r,y);if(T)return T;if(r&&!/^工具\s+tool_/.test(r)&&!/^tool_/.test(r))return r;const M=typeof y?.command=="string"?y.command:Array.isArray(y?.cmd)?y.cmd.filter(j=>typeof j=="string").join(" "):null,V=typeof y?.path=="string"?y.path:typeof y?.filePath=="string"?y.filePath:typeof y?.cwd=="string"?y.cwd:null,H=typeof y?.description=="string"?y.description:null,b=Array.isArray(y?.args)?y.args.filter(j=>typeof j=="string").join(" "):null;if(H)return H;const U=[M,V,b].filter(Boolean).join(" · ");return U||r||(typeof d=="string"?`工具 ${d}`:"工具调用")}function ev(u,o){if(!Ea(u))return null;const d=Xm(o);return d?`${u||"Task"} · ${d}`:u||"Task"}function Xm(u){if(!u)return null;for(const o of["title","description"]){const d=u[o];if(typeof d=="string"&&d.trim())return d.trim()}for(const o of["rawInput","input","args","payload","params"]){if(!(o in u))continue;const d=Fe(u[o])??Fe(zl(u[o])),r=Xm(d);if(r)return r}return null}function Zm(u){return ja({toolCallId:u.toolCallId,title:u.title,status:u.status,rawInput:u.rawInput,rawOutput:u.rawOutput,...u.parentToolCallId?{parentToolCallId:u.parentToolCallId}:void 0})}function tv(u){return Zm(u)}function Ea(u){const o=(u??"").toLowerCase();return o.includes("subagent")||o==="task"||o.includes(" task")}function Oo(u){const o=(u??"").toLowerCase();return o==="completed"||o==="failed"||o==="canceled"||o==="cancelled"}function _i(u){if(u.kind!=="tool")return null;const o=fc(u.body),d=[...o].reverse().map(V=>Fe(V)).find(V=>V!==null)??null,r=typeof d?.title=="string"?d.title:null,y=Gm(o,u.title)||u.title,T=typeof d?.status=="string"?d.status:u.meta??null,M=typeof d?.toolCallId=="string"?d.toolCallId:null;return{title:y,rawTitle:r,status:T,toolCallId:M}}function lv(u){const o=[],d=[],r=new Map;let y=null;for(const T of u){const M=_i(T),V=!!(M&&Ea(M.rawTitle??M.title));if(M?.toolCallId){const j=iv(M.title);if(j){let q=zo(d,T.parentToolCallId,M.toolCallId);if(!q&&T.parentToolCallId&&(q=r.get(T.parentToolCallId)??null),q){const L=o[q.rowIndex];L&&!L.displayTitle&&(L.displayTitle=`${L.item.title||"Task"} · ${j}`)}}}if(!!(M?.toolCallId&&Oo(M.status))){const j=nv(d,M?.toolCallId??null,!1);if(j){const q=o[j.rowIndex];q&&(q.item={...T,id:q.item.id}),y?.rootId===j.rootId&&(y=null);continue}}if(!V){let j=zo(d,T.parentToolCallId,M?.toolCallId);!j&&T.parentToolCallId&&(j=r.get(T.parentToolCallId)??null),!j&&d.length>1&&y&&d.some(L=>L.rootId===y?.rootId)&&(j=y),j&&(y=j),o.push({item:T,depth:j?j.depth+1:0,rootId:j?.rootId??null});continue}if(!M)continue;let b=zo(d,T.parentToolCallId,M.toolCallId,!1);!b&&T.parentToolCallId&&(b=r.get(T.parentToolCallId)??null);const U=b?b.depth+1:0;o.push({item:T,depth:U,rootId:b?.rootId??null}),M.toolCallId&&r.set(M.toolCallId,{rootId:T.id,toolCallId:M.toolCallId,rowIndex:o.length-1,depth:U}),Oo(M.status)||d.push({rootId:T.id,toolCallId:M.toolCallId,rowIndex:o.length-1,depth:U})}return av(o)}function nv(u,o,d=!0){if(o){let r=null;for(let y=u.length-1;y>=0;y-=1)if(u[y]?.toolCallId===o){const[T]=u.splice(y,1);T&&(r=T)}if(r)return r}return d&&u.length===1?u.pop()??null:null}function av(u){const o=new Map,d=[];for(const T of u)if(T.rootId){const M=o.get(T.rootId)??[];M.push(T),o.set(T.rootId,M)}else d.push(T);const r=[];function y(T){r.push(T);const M=o.get(T.item.id);if(M)for(const V of M)y(V)}for(const T of d)y(T);if(r.length<u.length){const T=new Set(r.map(M=>M.item.id));for(const M of u)T.has(M.item.id)||r.push(M)}return r}function zo(u,o,d,r=!0){if(o){for(let y=u.length-1;y>=0;y-=1)if(u[y]?.toolCallId===o)return u[y]}if(d){for(let y=u.length-1;y>=0;y-=1)if(u[y]?.toolCallId===d)return u[y]}return r&&u.length===1?u[0]:null}function iv(u){const o=(u??"").trim();return!o||Ea(o)||/^工具\s+tool_/.test(o)||/^tool_/.test(o)?null:o}function uv(u,o,d,r){if(u.kind!=="tool"||o<1||!d)return null;const y=_i(u)?.status?.toLowerCase()??"";return y==="completed"?"completed":y==="running"||r?"running":null}function cv(u){const o={};for(const d of u)d.rootId&&(o[d.rootId]=(o[d.rootId]??0)+1);return o}function Do(u){return u.replace(/\s+/g," ").trim()}function sv(u,o=280){const d=u.trim();return d?d.length<=o?d:`${d.slice(0,o)}…`:"(空)"}function Vm(u,o=220){const d=Do(u);return d.length<=o?d:`${d.slice(0,o-1)}…`}function ov(u,o){return o?sv(u.body):u.kind==="tool"?Do(u.title):Do(u.body)}function fv(u){return u.kind==="agent"||u.kind==="plan"}function Km(u){const o=u.replace(/\r\n/g,`
15
+ `).split(`
16
+ `),d=[];let r=[],y=[],T=[],M=!1;const V=()=>{r.length>0&&(d.push({kind:"paragraph",lines:r}),r=[])},H=()=>{y.length>0&&(d.push({kind:"list",lines:y}),y=[])};let b=0;for(;b<o.length;){const U=o[b]??"";if(U.startsWith("```")){V(),H(),M?(d.push({kind:"code",lines:T}),T=[],M=!1):M=!0,b+=1;continue}if(M){T.push(U),b+=1;continue}const j=o[b+1]??"";if(Rm(U)&&rv(j)){V(),H();const ne=dc(U),he=[];for(b+=2;b<o.length;){const ce=o[b]??"";if(!Rm(ce)||!ce.trim())break;he.push(dc(ce)),b+=1}d.push({kind:"table",headers:ne,rows:he});continue}const q=U.match(/^(#{1,6})\s+(.*)$/);if(q){V(),H(),d.push({kind:"heading",level:q[1].length,lines:[q[2]]}),b+=1;continue}const L=U.match(/^\s*[-*+]\s+(.*)$/);if(L){V(),y.push(L[1]),b+=1;continue}if(!U.trim()){V(),H(),b+=1;continue}H(),r.push(U),b+=1}return V(),H(),T.length>0&&d.push({kind:"code",lines:T}),d.map((U,j)=>{if(U.kind==="heading"){const q=Ci(U.lines[0]??"");switch(Math.min(U.level??3,6)){case 1:return s.jsx("h1",{children:q},`md-heading-${j}`);case 2:return s.jsx("h2",{children:q},`md-heading-${j}`);case 3:return s.jsx("h3",{children:q},`md-heading-${j}`);case 4:return s.jsx("h4",{children:q},`md-heading-${j}`);case 5:return s.jsx("h5",{children:q},`md-heading-${j}`);default:return s.jsx("h6",{children:q},`md-heading-${j}`)}}return U.kind==="list"?s.jsx("ul",{children:U.lines.map((q,L)=>s.jsx("li",{children:Ci(q)},`md-list-${j}-${L}`))},`md-list-${j}`):U.kind==="code"?s.jsx("pre",{children:s.jsx("code",{children:U.lines.join(`
17
+ `)})},`md-code-${j}`):U.kind==="table"?s.jsxs("table",{children:[s.jsx("thead",{children:s.jsx("tr",{children:U.headers.map((q,L)=>s.jsx("th",{children:Ci(q)},`md-table-${j}-h-${L}`))})}),s.jsx("tbody",{children:U.rows.map((q,L)=>s.jsx("tr",{children:U.headers.map((ne,he)=>s.jsx("td",{children:Ci(q[he]??"")},`md-table-${j}-r-${L}-c-${he}`))},`md-table-${j}-r-${L}`))})]},`md-table-${j}`):s.jsx("p",{children:Ci(U.lines.join(" "))},`md-paragraph-${j}`)})}function Rm(u){return u.includes("|")&&dc(u).length>0}function rv(u){const o=dc(u);return o.length===0?!1:o.every(d=>/^:?-{3,}:?$/.test(d))}function dc(u){return u.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(o=>o.trim())}function Ci(u){return u.split(/(\[[^\]]+\]\([^\)]+\)|`[^`]+`|\*\*[^*]+\*\*|\*[^*]+\*)/g).filter(Boolean).map((d,r)=>{const y=d.match(/^\[([^\]]+)\]\(([^\)]+)\)$/);return y?s.jsx("a",{href:y[2],target:"_blank",rel:"noreferrer",children:y[1]},`md-link-${r}`):d.startsWith("**")&&d.endsWith("**")&&d.length>4?s.jsx("strong",{children:d.slice(2,-2)},`md-bold-${r}`):d.startsWith("*")&&d.endsWith("*")&&d.length>2?s.jsx("em",{children:d.slice(1,-1)},`md-italic-${r}`):d.startsWith("`")&&d.endsWith("`")&&d.length>2?s.jsx("code",{children:d.slice(1,-1)},`md-inline-${r}`):s.jsx(B.Fragment,{children:d},`md-text-${r}`)})}function dv(u){return u.kind==="agent"||u.kind==="plan"}function mv(u,o){switch(u){case"user":return"你";case"agent":return"Claude";case"thought":return"思路";case"tool":return"工具";case"plan":return"计划";case"error":return"错误";default:return o}}function hv(u,o){const d=sc(u);if(!d)return[];if(d==="/")return o;const r=d.toLowerCase();return o.filter(y=>y.name.toLowerCase().startsWith(r)).slice(0,50)}function sc(u){return u.match(/(^|\s)(\/[^\s]*)$/)?.[2]??null}function yv(u,o){const d=o.trim();if(!d)return u;if(!u.trim())return`${d} `;const r=u.replace(/(^|\s)\/[^\s]*$/,(T,M)=>`${M}${d} `);if(r!==u)return r;const y=u.endsWith(" ")||u.endsWith(`
18
+ `)?"":" ";return`${u}${y}${d} `}function pv(u,o){return!o||u.length===0?[]:[{key:"all",title:null,items:u.map((d,r)=>({command:d,index:r}))}]}function vv(u,o){const d=(o??"").trim();return!d||!u.toLowerCase().startsWith(d.toLowerCase())?{matched:"",rest:u}:{matched:u.slice(0,d.length),rest:u.slice(d.length)}}function gv(u,o){const d=vv(u,o);return d.matched?s.jsxs(s.Fragment,{children:[s.jsx("strong",{className:"composer-completion-match",children:d.matched}),s.jsx("span",{className:"composer-completion-rest",children:d.rest})]}):u}function Sv(u,o=500){const r=(typeof u=="string"?u:ja(u)).trim();return r?r.length<=o?r:`${r.slice(0,o)}...(已截断,原始 ${r.length} 字符)`:"(空)"}function km(u){for(let o=u.length-1;o>=0;o-=1){const d=u[o];if(d?.kind==="system"&&d.title==="执行计划")return d.body}return null}function bv(u){const o=km(u);return o?Sv(o,1800):null}function Tv(u){const o=zl(u);return Array.isArray(o)?o.map(d=>{const r=Fe(d);if(!r)return null;const y=typeof r.content=="string"?r.content.trim():"";return y?{content:y,status:xv(r.status)}:null}).filter(d=>!!d):[]}function xv(u){const o=typeof u=="string"?u.toLowerCase():"";return o==="completed"?"completed":o==="in_progress"?"in_progress":o==="pending"?"pending":"unknown"}function Ev(u){const o=new Map;for(const d of u){const r=d.groupId??d.questionId,y=o.get(r)??[];y.push(d),o.set(r,y)}return[...o.values()]}function jv(u,o,d){const r=u.map(y=>{const T=y.header?`【${y.header}】`:"",M=o[y.questionId]??"";return`${T}${y.question}
19
+ → ${M}`});d(u[0].questionId,r.join(`
20
+
21
+ `))}function Av(u){return zi(u)?.body??null}function Nv(u){const o=[u],d=Fe(u)??Fe(zl(u));if(d){o.push(d.command,d.cmd,d.text,d.script);for(const r of["rawInput","input","args","payload","params"]){const y=Fe(d[r])??Fe(zl(d[r]));y&&o.push(y.command,y.cmd,y.text,y.script)}}for(const r of o)if(typeof r=="string"&&r.trim())return r.trim();return""}function Cv(u){const o=fv(u.item),d=`timeline-body ${o?"multiline":""}`;return s.jsxs("button",{className:`timeline-row ${u.item.kind} ${o?"timeline-row-multiline":""}`,style:{"--timeline-depth":String(u.depth??0)},type:"button",onClick:u.onOpen,children:[s.jsxs("span",{className:"timeline-kind",children:[mv(u.item.kind,u.item.title),u.childCount?s.jsxs("span",{className:"timeline-fold",role:"button",onClick:r=>{r.stopPropagation(),u.onToggleCollapse?.()},children:[u.collapsed?"▸":"▾"," 子项 ",u.childCount,u.statusHint==="running"?" · 运行中":u.statusHint==="completed"?" · 已完成":""]}):null]}),s.jsxs("span",{className:d,children:[ov(u.item,o),u.item.images&&u.item.images.length>0?s.jsxs("span",{className:"timeline-image-badge",children:[" 🖼 ",u.item.images.length]}):null]}),s.jsx("span",{className:"timeline-meta",children:u.item.meta??"查看"})]})}function Jm(u){const o=fc(u.body);let d=null,r=null,y=null,T=null,M=null,V;for(const b of[...o].reverse()){const U=Fe(b);if(!U)continue;!d&&typeof U.title=="string"&&U.title.trim()&&(d=U.title.trim()),!r&&typeof U.status=="string"&&U.status.trim()&&(r=U.status.trim()),V===void 0&&U.rawOutput!==void 0&&U.rawOutput!==null&&(V=U.rawOutput);const j=Fe(U.rawInput)??Fe(zl(U.rawInput));if(j){if(!y&&typeof j.description=="string"&&j.description.trim()&&(y=j.description.trim()),!T){if(typeof j.command=="string"&&j.command.trim())T=j.command.trim();else if(Array.isArray(j.cmd)){const q=j.cmd.filter(L=>typeof L=="string");q.length&&(T=q.join(" "))}}if(!M)for(const q of["path","filePath","file_path","cwd"]){const L=j[q];if(typeof L=="string"&&L.trim()){M=L.trim();break}}}}const H=V!=null?typeof V=="string"?V:ja(V):null;return s.jsxs("div",{className:"tool-detail-view",children:[s.jsxs("div",{className:"tool-detail-fields",children:[r?s.jsxs("div",{className:"tool-detail-row",children:[s.jsx("span",{className:"tool-detail-key",children:"状态"}),s.jsx("span",{className:`tool-detail-status tool-detail-status-${r.toLowerCase()}`,children:r})]}):null,y?s.jsxs("div",{className:"tool-detail-row",children:[s.jsx("span",{className:"tool-detail-key",children:"描述"}),s.jsx("span",{className:"tool-detail-val",children:y})]}):null,T?s.jsxs("div",{className:"tool-detail-row",children:[s.jsx("span",{className:"tool-detail-key",children:"命令"}),s.jsx("code",{className:"tool-detail-val tool-detail-code",children:T})]}):null,M?s.jsxs("div",{className:"tool-detail-row",children:[s.jsx("span",{className:"tool-detail-key",children:"路径"}),s.jsx("code",{className:"tool-detail-val tool-detail-code",children:M})]}):null]}),H!==null?s.jsxs("details",{className:"tool-detail-section",open:!0,children:[s.jsx("summary",{className:"tool-detail-summary",children:"输出"}),s.jsx("pre",{className:"modal-body tool-detail-content",children:H})]}):null,s.jsxs("details",{className:"tool-detail-section",children:[s.jsx("summary",{className:"tool-detail-summary",children:"原始数据"}),s.jsx("pre",{className:"modal-body tool-detail-content",children:u.body})]})]})}function zv(u){return s.jsx("div",{className:"modal-backdrop",onClick:u.onClose,children:s.jsxs("div",{className:"modal-card",onClick:o=>o.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsxs("div",{children:[s.jsx("p",{className:"eyebrow",children:u.sessionTitle}),s.jsx("h3",{children:u.item.title})]}),s.jsx("button",{className:"secondary",onClick:u.onClose,children:"关闭"})]}),s.jsxs("div",{className:"modal-scroll-body",children:[s.jsx("p",{className:"modal-meta",children:u.item.meta??"详细内容"}),u.item.images&&u.item.images.length>0?s.jsx("div",{className:"modal-attached-images",children:u.item.images.map((o,d)=>s.jsx("img",{src:`data:${o.mimeType};base64,${o.data}`,alt:`附件图片 ${d+1}`,className:"modal-attached-image"},d))}):null,u.item.kind==="tool"?s.jsx(Jm,{body:u.item.body}):dv(u.item)?s.jsx("div",{className:"modal-body markdown-body",children:Km(u.item.body)}):s.jsx("pre",{className:"modal-body",children:u.item.body})]})]})})}function _v(u){const[o,d]=B.useState({}),[r,y]=B.useState({}),[T,M]=B.useState({}),V=u.questions.every(j=>{const q=o[j.questionId];return q!==void 0&&q!==""});function H(j,q){d(L=>({...L,[j]:q})),y(L=>({...L,[j]:!1}))}function b(j){y(q=>({...q,[j]:!0})),d(q=>{const L={...q};return delete L[j],L})}function U(j,q){M(L=>({...L,[j]:q})),q.trim()?d(L=>({...L,[j]:q.trim()})):d(L=>{const ne={...L};return delete ne[j],ne})}return s.jsxs("section",{className:"multi-question-form",children:[u.questions.map(j=>{const q=o[j.questionId],L=r[j.questionId]??!1;return s.jsxs("div",{className:"question-panel",children:[j.header?s.jsx("p",{className:"question-header",children:j.header}):null,s.jsx("p",{className:"question-text",children:j.question}),j.options.length>0?s.jsxs("div",{className:"question-options",children:[j.options.map(ne=>s.jsxs("button",{className:`question-option-btn ${q===ne.label&&!L?"selected":""}`,type:"button",onClick:()=>H(j.questionId,ne.label),title:ne.description,children:[s.jsx("span",{className:"question-option-label",children:ne.label}),ne.description?s.jsx("span",{className:"question-option-desc",children:ne.description}):null]},ne.id)),s.jsx("button",{className:`question-option-btn question-custom-toggle ${L?"selected":""}`,type:"button",onClick:()=>b(j.questionId),children:s.jsx("span",{className:"question-option-label",children:"自定义回答"})})]}):null,L||j.options.length===0?s.jsx("div",{className:"question-custom-answer",children:s.jsx("input",{type:"text",className:"question-custom-input",placeholder:"输入自定义回答...",value:T[j.questionId]??"",onChange:ne=>U(j.questionId,ne.target.value)})}):null,q&&!L?s.jsxs("p",{className:"question-selected-answer",children:["已选:",q]}):null]},j.questionId)}),s.jsx("button",{className:"question-submit-all",type:"button",disabled:!V,onClick:()=>u.onSubmit(o),children:V?`提交全部 ${u.questions.length} 个回答`:`请回答所有问题 (${Object.keys(o).filter(j=>o[j]).length}/${u.questions.length})`})]})}function Mv(u){const o=rc(u.permission.toolCall.title,u.permission.toolCall.rawInput,u.permission.toolCall.toolCallId),d=tv({toolCallId:u.permission.toolCall.toolCallId,title:u.permission.toolCall.title,status:u.permission.toolCall.status??"pending",rawInput:u.permission.toolCall.rawInput}),r=Av(u.permission.toolCall.rawInput),y=Nv(u.permission.toolCall.rawInput);return s.jsx("div",{className:"modal-backdrop",onClick:u.onClose,children:s.jsxs("div",{className:"modal-card",onClick:T=>T.stopPropagation(),children:[s.jsxs("div",{className:"modal-header",children:[s.jsxs("div",{children:[s.jsx("p",{className:"eyebrow",children:u.sessionTitle}),s.jsx("h3",{title:o,children:Vm(o,100)})]}),s.jsx("button",{className:"secondary",onClick:u.onClose,children:"关闭"})]}),s.jsxs("div",{className:"modal-scroll-body",children:[s.jsx("p",{className:"modal-meta",children:"待处理确认"}),r?s.jsx("div",{className:"modal-body markdown-body",children:Km(r)}):s.jsx(Jm,{body:d}),y?s.jsxs(s.Fragment,{children:[s.jsx("label",{htmlFor:"permission-raw-command",children:"完整命令"}),s.jsx("textarea",{id:"permission-raw-command",className:"permission-command-textarea",value:y,readOnly:!0})]}):null]}),s.jsx("div",{className:"modal-footer",children:u.permission.options.map(T=>s.jsx("button",{className:"secondary",type:"button",onClick:()=>u.onResolve(u.permission,T.optionId),children:T.name},T.optionId))})]})})}sp.createRoot(document.getElementById("root")).render(s.jsx(ep.StrictMode,{children:s.jsx(Sp,{})}));