@jungjaehoon/mama-os 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +12 -4
  3. package/dist/agent/agent-loop.d.ts.map +1 -1
  4. package/dist/agent/agent-loop.js +76 -11
  5. package/dist/agent/agent-loop.js.map +1 -1
  6. package/dist/agent/code-act/host-bridge.d.ts.map +1 -1
  7. package/dist/agent/code-act/host-bridge.js +74 -0
  8. package/dist/agent/code-act/host-bridge.js.map +1 -1
  9. package/dist/agent/codex-mcp-process.d.ts +1 -0
  10. package/dist/agent/codex-mcp-process.d.ts.map +1 -1
  11. package/dist/agent/codex-mcp-process.js +3 -2
  12. package/dist/agent/codex-mcp-process.js.map +1 -1
  13. package/dist/agent/gateway-tool-executor.d.ts +16 -1
  14. package/dist/agent/gateway-tool-executor.d.ts.map +1 -1
  15. package/dist/agent/gateway-tool-executor.js +148 -2
  16. package/dist/agent/gateway-tool-executor.js.map +1 -1
  17. package/dist/agent/gateway-tools.md +6 -1
  18. package/dist/agent/model-runner.d.ts +8 -0
  19. package/dist/agent/model-runner.d.ts.map +1 -1
  20. package/dist/agent/model-runner.js.map +1 -1
  21. package/dist/agent/persistent-cli-adapter.d.ts +6 -0
  22. package/dist/agent/persistent-cli-adapter.d.ts.map +1 -1
  23. package/dist/agent/persistent-cli-adapter.js +21 -10
  24. package/dist/agent/persistent-cli-adapter.js.map +1 -1
  25. package/dist/agent/tool-registry.d.ts.map +1 -1
  26. package/dist/agent/tool-registry.js +32 -1
  27. package/dist/agent/tool-registry.js.map +1 -1
  28. package/dist/agent/types.d.ts +26 -2
  29. package/dist/agent/types.d.ts.map +1 -1
  30. package/dist/agent/types.js.map +1 -1
  31. package/dist/api/index.d.ts +1 -1
  32. package/dist/api/index.d.ts.map +1 -1
  33. package/dist/api/index.js +15 -13
  34. package/dist/api/index.js.map +1 -1
  35. package/dist/api/operator-handler.d.ts +2 -0
  36. package/dist/api/operator-handler.d.ts.map +1 -1
  37. package/dist/api/operator-handler.js +23 -5
  38. package/dist/api/operator-handler.js.map +1 -1
  39. package/dist/api/operator-summary.d.ts +3 -0
  40. package/dist/api/operator-summary.d.ts.map +1 -0
  41. package/dist/api/operator-summary.js +72 -0
  42. package/dist/api/operator-summary.js.map +1 -0
  43. package/dist/api/operator-tasks-handler.d.ts +7 -0
  44. package/dist/api/operator-tasks-handler.d.ts.map +1 -0
  45. package/dist/api/operator-tasks-handler.js +165 -0
  46. package/dist/api/operator-tasks-handler.js.map +1 -0
  47. package/dist/cli/commands/start.d.ts.map +1 -1
  48. package/dist/cli/commands/start.js +62 -12
  49. package/dist/cli/commands/start.js.map +1 -1
  50. package/dist/cli/runtime/agent-loop-init.d.ts +2 -1
  51. package/dist/cli/runtime/agent-loop-init.d.ts.map +1 -1
  52. package/dist/cli/runtime/agent-loop-init.js +16 -8
  53. package/dist/cli/runtime/agent-loop-init.js.map +1 -1
  54. package/dist/cli/runtime/api-routes-init.d.ts.map +1 -1
  55. package/dist/cli/runtime/api-routes-init.js +129 -13
  56. package/dist/cli/runtime/api-routes-init.js.map +1 -1
  57. package/dist/cli/runtime/gateway-init.d.ts.map +1 -1
  58. package/dist/cli/runtime/gateway-init.js +3 -1
  59. package/dist/cli/runtime/gateway-init.js.map +1 -1
  60. package/dist/cli/runtime/memory-agent-init.d.ts +2 -1
  61. package/dist/cli/runtime/memory-agent-init.d.ts.map +1 -1
  62. package/dist/cli/runtime/memory-agent-init.js +15 -3
  63. package/dist/cli/runtime/memory-agent-init.js.map +1 -1
  64. package/dist/connectors/framework/types.d.ts +8 -0
  65. package/dist/connectors/framework/types.d.ts.map +1 -1
  66. package/dist/connectors/slack/index.d.ts.map +1 -1
  67. package/dist/connectors/slack/index.js +3 -1
  68. package/dist/connectors/slack/index.js.map +1 -1
  69. package/dist/connectors/trello/index.d.ts.map +1 -1
  70. package/dist/connectors/trello/index.js +6 -2
  71. package/dist/connectors/trello/index.js.map +1 -1
  72. package/dist/db/agent-store.d.ts +5 -0
  73. package/dist/db/agent-store.d.ts.map +1 -1
  74. package/dist/db/agent-store.js +6 -3
  75. package/dist/db/agent-store.js.map +1 -1
  76. package/dist/db/migrations/agent-activity-tool-name.d.ts +8 -0
  77. package/dist/db/migrations/agent-activity-tool-name.d.ts.map +1 -0
  78. package/dist/db/migrations/agent-activity-tool-name.js +24 -0
  79. package/dist/db/migrations/agent-activity-tool-name.js.map +1 -0
  80. package/dist/envelope/run-guard.d.ts +10 -0
  81. package/dist/envelope/run-guard.d.ts.map +1 -0
  82. package/dist/envelope/run-guard.js +19 -0
  83. package/dist/envelope/run-guard.js.map +1 -0
  84. package/dist/multi-agent/agent-event-bus.d.ts +4 -0
  85. package/dist/multi-agent/agent-event-bus.d.ts.map +1 -1
  86. package/dist/multi-agent/agent-event-bus.js.map +1 -1
  87. package/dist/multi-agent/dashboard-agent-persona.d.ts.map +1 -1
  88. package/dist/multi-agent/dashboard-agent-persona.js +18 -5
  89. package/dist/multi-agent/dashboard-agent-persona.js.map +1 -1
  90. package/dist/multi-agent/runtime-process.d.ts +4 -2
  91. package/dist/multi-agent/runtime-process.d.ts.map +1 -1
  92. package/dist/multi-agent/runtime-process.js +7 -4
  93. package/dist/multi-agent/runtime-process.js.map +1 -1
  94. package/dist/operator/action-verifier.d.ts +50 -0
  95. package/dist/operator/action-verifier.d.ts.map +1 -0
  96. package/dist/operator/action-verifier.js +68 -0
  97. package/dist/operator/action-verifier.js.map +1 -0
  98. package/dist/operator/board-reconcile.d.ts +62 -0
  99. package/dist/operator/board-reconcile.d.ts.map +1 -0
  100. package/dist/operator/board-reconcile.js +160 -0
  101. package/dist/operator/board-reconcile.js.map +1 -0
  102. package/dist/operator/board-slot-instructions.d.ts +8 -0
  103. package/dist/operator/board-slot-instructions.d.ts.map +1 -1
  104. package/dist/operator/board-slot-instructions.js +25 -1
  105. package/dist/operator/board-slot-instructions.js.map +1 -1
  106. package/dist/operator/operator-trigger-loop.d.ts +15 -2
  107. package/dist/operator/operator-trigger-loop.d.ts.map +1 -1
  108. package/dist/operator/operator-trigger-loop.js +40 -1
  109. package/dist/operator/operator-trigger-loop.js.map +1 -1
  110. package/dist/operator/report-scheduler.d.ts +23 -0
  111. package/dist/operator/report-scheduler.d.ts.map +1 -1
  112. package/dist/operator/report-scheduler.js +56 -8
  113. package/dist/operator/report-scheduler.js.map +1 -1
  114. package/dist/operator/situation-report.d.ts +5 -1
  115. package/dist/operator/situation-report.d.ts.map +1 -1
  116. package/dist/operator/situation-report.js +12 -2
  117. package/dist/operator/situation-report.js.map +1 -1
  118. package/dist/operator/task-ledger.d.ts +96 -0
  119. package/dist/operator/task-ledger.d.ts.map +1 -0
  120. package/dist/operator/task-ledger.js +277 -0
  121. package/dist/operator/task-ledger.js.map +1 -0
  122. package/package.json +1 -1
  123. package/public/ui/assets/index-CKOJQYXA.css +1 -0
  124. package/public/ui/assets/index-OSgiwL24.js +62 -0
  125. package/public/ui/index.html +3 -2
  126. package/public/ui/theme-init.js +20 -0
  127. package/public/viewer/viewer.html +12 -28
  128. package/public/ui/assets/index-BDsaQNGd.js +0 -62
  129. package/public/ui/assets/index-C4URnm_X.css +0 -1
@@ -1,62 +0,0 @@
1
- var jy=u=>{throw TypeError(u)};var so=(u,i,s)=>i.has(u)||jy("Cannot "+s);var S=(u,i,s)=>(so(u,i,"read from private field"),s?s.call(u):i.get(u)),nt=(u,i,s)=>i.has(u)?jy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(u):i.set(u,s),W=(u,i,s,r)=>(so(u,i,"write to private field"),r?r.call(u,s):i.set(u,s),s),yt=(u,i,s)=>(so(u,i,"access private method"),s);var Gs=(u,i,s,r)=>({set _(o){W(u,i,o,s)},get _(){return S(u,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function s(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=s(o);fetch(o.href,d)}})();var ro={exports:{}},ac={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var By;function _0(){if(By)return ac;By=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,o,d){var y=null;if(d!==void 0&&(y=""+d),o.key!==void 0&&(y=""+o.key),"key"in o){d={};for(var b in o)b!=="key"&&(d[b]=o[b])}else d=o;return o=d.ref,{$$typeof:u,type:r,key:y,ref:o!==void 0?o:null,props:d}}return ac.Fragment=i,ac.jsx=s,ac.jsxs=s,ac}var qy;function R0(){return qy||(qy=1,ro.exports=_0()),ro.exports}var Y=R0(),fo={exports:{}},ot={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Gy;function O0(){if(Gy)return ot;Gy=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),z=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,Q={};function B(E,j,k){this.props=E,this.context=j,this.refs=Q,this.updater=k||Z}B.prototype.isReactComponent={},B.prototype.setState=function(E,j){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,j,"setState")},B.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function $(){}$.prototype=B.prototype;function J(E,j,k){this.props=E,this.context=j,this.refs=Q,this.updater=k||Z}var X=J.prototype=new $;X.constructor=J,G(X,B.prototype),X.isPureReactComponent=!0;var at=Array.isArray;function ut(){}var et={H:null,A:null,T:null,S:null},ct=Object.prototype.hasOwnProperty;function vt(E,j,k){var P=k.ref;return{$$typeof:u,type:E,key:j,ref:P!==void 0?P:null,props:k}}function xt(E,j){return vt(E.type,j,E.props)}function Ft(E){return typeof E=="object"&&E!==null&&E.$$typeof===u}function Bt(E){var j={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(k){return j[k]})}var Le=/\/+/g;function oe(E,j){return typeof E=="object"&&E!==null&&E.key!=null?Bt(""+E.key):j.toString(36)}function zt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ut,ut):(E.status="pending",E.then(function(j){E.status==="pending"&&(E.status="fulfilled",E.value=j)},function(j){E.status==="pending"&&(E.status="rejected",E.reason=j)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,j,k,P,ft){var pt=typeof E;(pt==="undefined"||pt==="boolean")&&(E=null);var Ct=!1;if(E===null)Ct=!0;else switch(pt){case"bigint":case"string":case"number":Ct=!0;break;case"object":switch(E.$$typeof){case u:case i:Ct=!0;break;case R:return Ct=E._init,U(Ct(E._payload),j,k,P,ft)}}if(Ct)return ft=ft(E),Ct=P===""?"."+oe(E,0):P,at(ft)?(k="",Ct!=null&&(k=Ct.replace(Le,"$&/")+"/"),U(ft,j,k,"",function(Aa){return Aa})):ft!=null&&(Ft(ft)&&(ft=xt(ft,k+(ft.key==null||E&&E.key===ft.key?"":(""+ft.key).replace(Le,"$&/")+"/")+Ct)),j.push(ft)),1;Ct=0;var ge=P===""?".":P+":";if(at(E))for(var Wt=0;Wt<E.length;Wt++)P=E[Wt],pt=ge+oe(P,Wt),Ct+=U(P,j,k,pt,ft);else if(Wt=q(E),typeof Wt=="function")for(E=Wt.call(E),Wt=0;!(P=E.next()).done;)P=P.value,pt=ge+oe(P,Wt++),Ct+=U(P,j,k,pt,ft);else if(pt==="object"){if(typeof E.then=="function")return U(zt(E),j,k,P,ft);throw j=String(E),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Ct}function F(E,j,k){if(E==null)return E;var P=[],ft=0;return U(E,P,"","",function(pt){return j.call(k,pt,ft++)}),P}function rt(E){if(E._status===-1){var j=E._result;j=j(),j.then(function(k){(E._status===0||E._status===-1)&&(E._status=1,E._result=k)},function(k){(E._status===0||E._status===-1)&&(E._status=2,E._result=k)}),E._status===-1&&(E._status=0,E._result=j)}if(E._status===1)return E._result.default;throw E._result}var Ut=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=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(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Ht={map:F,forEach:function(E,j,k){F(E,function(){j.apply(this,arguments)},k)},count:function(E){var j=0;return F(E,function(){j++}),j},toArray:function(E){return F(E,function(j){return j})||[]},only:function(E){if(!Ft(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=A,ot.Children=Ht,ot.Component=B,ot.Fragment=s,ot.Profiler=o,ot.PureComponent=J,ot.StrictMode=r,ot.Suspense=v,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return et.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,j,k){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=G({},E.props),ft=E.key;if(j!=null)for(pt in j.key!==void 0&&(ft=""+j.key),j)!ct.call(j,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&j.ref===void 0||(P[pt]=j[pt]);var pt=arguments.length-2;if(pt===1)P.children=k;else if(1<pt){for(var Ct=Array(pt),ge=0;ge<pt;ge++)Ct[ge]=arguments[ge+2];P.children=Ct}return vt(E.type,ft,P)},ot.createContext=function(E){return E={$$typeof:y,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ot.createElement=function(E,j,k){var P,ft={},pt=null;if(j!=null)for(P in j.key!==void 0&&(pt=""+j.key),j)ct.call(j,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ft[P]=j[P]);var Ct=arguments.length-2;if(Ct===1)ft.children=k;else if(1<Ct){for(var ge=Array(Ct),Wt=0;Wt<Ct;Wt++)ge[Wt]=arguments[Wt+2];ft.children=ge}if(E&&E.defaultProps)for(P in Ct=E.defaultProps,Ct)ft[P]===void 0&&(ft[P]=Ct[P]);return vt(E,pt,ft)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:b,render:E}},ot.isValidElement=Ft,ot.lazy=function(E){return{$$typeof:R,_payload:{_status:-1,_result:E},_init:rt}},ot.memo=function(E,j){return{$$typeof:p,type:E,compare:j===void 0?null:j}},ot.startTransition=function(E){var j=et.T,k={};et.T=k;try{var P=E(),ft=et.S;ft!==null&&ft(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(ut,Ut)}catch(pt){Ut(pt)}finally{j!==null&&k.types!==null&&(j.types=k.types),et.T=j}},ot.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()},ot.use=function(E){return et.H.use(E)},ot.useActionState=function(E,j,k){return et.H.useActionState(E,j,k)},ot.useCallback=function(E,j){return et.H.useCallback(E,j)},ot.useContext=function(E){return et.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,j){return et.H.useDeferredValue(E,j)},ot.useEffect=function(E,j){return et.H.useEffect(E,j)},ot.useEffectEvent=function(E){return et.H.useEffectEvent(E)},ot.useId=function(){return et.H.useId()},ot.useImperativeHandle=function(E,j,k){return et.H.useImperativeHandle(E,j,k)},ot.useInsertionEffect=function(E,j){return et.H.useInsertionEffect(E,j)},ot.useLayoutEffect=function(E,j){return et.H.useLayoutEffect(E,j)},ot.useMemo=function(E,j){return et.H.useMemo(E,j)},ot.useOptimistic=function(E,j){return et.H.useOptimistic(E,j)},ot.useReducer=function(E,j,k){return et.H.useReducer(E,j,k)},ot.useRef=function(E){return et.H.useRef(E)},ot.useState=function(E){return et.H.useState(E)},ot.useSyncExternalStore=function(E,j,k){return et.H.useSyncExternalStore(E,j,k)},ot.useTransition=function(){return et.H.useTransition()},ot.version="19.2.7",ot}var Qy;function Zo(){return Qy||(Qy=1,fo.exports=O0()),fo.exports}var D=Zo(),oo={exports:{}},nc={},ho={exports:{}},mo={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Yy;function x0(){return Yy||(Yy=1,(function(u){function i(U,F){var rt=U.length;U.push(F);t:for(;0<rt;){var Ut=rt-1>>>1,Ht=U[Ut];if(0<o(Ht,F))U[Ut]=F,U[rt]=Ht,rt=Ut;else break t}}function s(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var F=U[0],rt=U.pop();if(rt!==F){U[0]=rt;t:for(var Ut=0,Ht=U.length,E=Ht>>>1;Ut<E;){var j=2*(Ut+1)-1,k=U[j],P=j+1,ft=U[P];if(0>o(k,rt))P<Ht&&0>o(ft,k)?(U[Ut]=ft,U[P]=rt,Ut=P):(U[Ut]=k,U[j]=rt,Ut=j);else if(P<Ht&&0>o(ft,rt))U[Ut]=ft,U[P]=rt,Ut=P;else break t}}return F}function o(U,F){var rt=U.sortIndex-F.sortIndex;return rt!==0?rt:U.id-F.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;u.unstable_now=function(){return d.now()}}else{var y=Date,b=y.now();u.unstable_now=function(){return y.now()-b}}var v=[],p=[],R=1,A=null,z=3,q=!1,Z=!1,G=!1,Q=!1,B=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function X(U){for(var F=s(p);F!==null;){if(F.callback===null)r(p);else if(F.startTime<=U)r(p),F.sortIndex=F.expirationTime,i(v,F);else break;F=s(p)}}function at(U){if(G=!1,X(U),!Z)if(s(v)!==null)Z=!0,ut||(ut=!0,Bt());else{var F=s(p);F!==null&&zt(at,F.startTime-U)}}var ut=!1,et=-1,ct=5,vt=-1;function xt(){return Q?!0:!(u.unstable_now()-vt<ct)}function Ft(){if(Q=!1,ut){var U=u.unstable_now();vt=U;var F=!0;try{t:{Z=!1,G&&(G=!1,$(et),et=-1),q=!0;var rt=z;try{e:{for(X(U),A=s(v);A!==null&&!(A.expirationTime>U&&xt());){var Ut=A.callback;if(typeof Ut=="function"){A.callback=null,z=A.priorityLevel;var Ht=Ut(A.expirationTime<=U);if(U=u.unstable_now(),typeof Ht=="function"){A.callback=Ht,X(U),F=!0;break e}A===s(v)&&r(v),X(U)}else r(v);A=s(v)}if(A!==null)F=!0;else{var E=s(p);E!==null&&zt(at,E.startTime-U),F=!1}}break t}finally{A=null,z=rt,q=!1}F=void 0}}finally{F?Bt():ut=!1}}}var Bt;if(typeof J=="function")Bt=function(){J(Ft)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,oe=Le.port2;Le.port1.onmessage=Ft,Bt=function(){oe.postMessage(null)}}else Bt=function(){B(Ft,0)};function zt(U,F){et=B(function(){U(u.unstable_now())},F)}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(U){U.callback=null},u.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ct=0<U?Math.floor(1e3/U):5},u.unstable_getCurrentPriorityLevel=function(){return z},u.unstable_next=function(U){switch(z){case 1:case 2:case 3:var F=3;break;default:F=z}var rt=z;z=F;try{return U()}finally{z=rt}},u.unstable_requestPaint=function(){Q=!0},u.unstable_runWithPriority=function(U,F){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var rt=z;z=U;try{return F()}finally{z=rt}},u.unstable_scheduleCallback=function(U,F,rt){var Ut=u.unstable_now();switch(typeof rt=="object"&&rt!==null?(rt=rt.delay,rt=typeof rt=="number"&&0<rt?Ut+rt:Ut):rt=Ut,U){case 1:var Ht=-1;break;case 2:Ht=250;break;case 5:Ht=1073741823;break;case 4:Ht=1e4;break;default:Ht=5e3}return Ht=rt+Ht,U={id:R++,callback:F,priorityLevel:U,startTime:rt,expirationTime:Ht,sortIndex:-1},rt>Ut?(U.sortIndex=rt,i(p,U),s(v)===null&&U===s(p)&&(G?($(et),et=-1):G=!0,zt(at,rt-Ut))):(U.sortIndex=Ht,i(v,U),Z||q||(Z=!0,ut||(ut=!0,Bt()))),U},u.unstable_shouldYield=xt,u.unstable_wrapCallback=function(U){var F=z;return function(){var rt=z;z=F;try{return U.apply(this,arguments)}finally{z=rt}}}})(mo)),mo}var Xy;function C0(){return Xy||(Xy=1,ho.exports=x0()),ho.exports}var yo={exports:{}},ze={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Zy;function M0(){if(Zy)return ze;Zy=1;var u=Zo();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)p+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(v,p,R){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:A==null?null:""+A,children:v,containerInfo:p,implementation:R}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ze.createPortal=function(v,p){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(v,p,null,R)},ze.flushSync=function(v){var p=y.T,R=r.p;try{if(y.T=null,r.p=2,v)return v()}finally{y.T=p,r.p=R,r.d.f()}},ze.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(v,p))},ze.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ze.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var R=p.as,A=b(R,p.crossOrigin),z=typeof p.integrity=="string"?p.integrity:void 0,q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;R==="style"?r.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:A,integrity:z,fetchPriority:q}):R==="script"&&r.d.X(v,{crossOrigin:A,integrity:z,fetchPriority:q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ze.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var R=b(p.as,p.crossOrigin);r.d.M(v,{crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(v)},ze.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var R=p.as,A=b(R,p.crossOrigin);r.d.L(v,R,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ze.preloadModule=function(v,p){if(typeof v=="string")if(p){var R=b(p.as,p.crossOrigin);r.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(v)},ze.requestFormReset=function(v){r.d.r(v)},ze.unstable_batchedUpdates=function(v,p){return v(p)},ze.useFormState=function(v,p,R){return y.H.useFormState(v,p,R)},ze.useFormStatus=function(){return y.H.useHostTransitionStatus()},ze.version="19.2.7",ze}var Vy;function D0(){if(Vy)return yo.exports;Vy=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(i){console.error(i)}}return u(),yo.exports=M0(),yo.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Ky;function N0(){if(Ky)return nc;Ky=1;var u=C0(),i=Zo(),s=D0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function b(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(d(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var c=n.alternate;if(c===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===c.child){for(c=n.child;c;){if(c===l)return v(n),t;if(c===a)return v(n),e;c=c.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=c;else{for(var f=!1,h=n.child;h;){if(h===l){f=!0,l=n,a=c;break}if(h===a){f=!0,a=n,l=c;break}h=h.sibling}if(!f){for(h=c.child;h;){if(h===l){f=!0,l=c,a=n;break}if(h===a){f=!0,a=c,l=n;break}h=h.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function R(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R(t),e!==null)return e;t=t.sibling}return null}var A=Object.assign,z=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),J=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),at=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),vt=Symbol.for("react.activity"),xt=Symbol.for("react.memo_cache_sentinel"),Ft=Symbol.iterator;function Bt(t){return t===null||typeof t!="object"?null:(t=Ft&&t[Ft]||t["@@iterator"],typeof t=="function"?t:null)}var Le=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case B:return"Profiler";case Q:return"StrictMode";case at:return"Suspense";case ut:return"SuspenseList";case vt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case J:return t.displayName||"Context";case $:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case et:return e=t.displayName||null,e!==null?e:oe(t.type)||"Memo";case ct:e=t._payload,t=t._init;try{return oe(t(e))}catch{}}return null}var zt=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt={pending:!1,data:null,method:null,action:null},Ut=[],Ht=-1;function E(t){return{current:t}}function j(t){0>Ht||(t.current=Ut[Ht],Ut[Ht]=null,Ht--)}function k(t,e){Ht++,Ut[Ht]=t.current,t.current=e}var P=E(null),ft=E(null),pt=E(null),Ct=E(null);function ge(t,e){switch(k(pt,e),k(ft,t),k(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?iy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=iy(e),t=cy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(P),k(P,t)}function Wt(){j(P),j(ft),j(pt)}function Aa(t){t.memoizedState!==null&&k(Ct,t);var e=P.current,l=cy(e,t.type);e!==l&&(k(ft,t),k(P,l))}function Yt(t){ft.current===t&&(j(P),j(ft)),Ct.current===t&&(j(Ct),Pi._currentValue=rt)}var Pn,Vt;function Ml(t){if(Pn===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Pn=e&&e[1]||"",Vt=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Pn+t+Vt}var Zt=!1;function Jl(t,e){if(!t||Zt)return"";Zt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(N){var M=N}Reflect.construct(t,[],w)}else{try{w.call()}catch(N){M=N}t.call(w.prototype)}}else{try{throw Error()}catch(N){M=N}(w=t())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(N){if(N&&M&&typeof N.stack=="string")return[N.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],h=c[1];if(f&&h){var g=f.split(`
44
- `),x=h.split(`
45
- `);for(n=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;if(a===g.length||n===x.length)for(a=g.length-1,n=x.length-1;1<=a&&0<=n&&g[a]!==x[n];)n--;for(;1<=a&&0<=n;a--,n--)if(g[a]!==x[n]){if(a!==1||n!==1)do if(a--,n--,0>n||g[a]!==x[n]){var L=`
46
- `+g[a].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=a&&0<=n);break}}}finally{Zt=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ml(l):""}function Tc(t,e){switch(t.tag){case 26:case 27:case 5:return Ml(t.type);case 16:return Ml("Lazy");case 13:return t.child!==e&&e!==null?Ml("Suspense Fallback"):Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 15:return Jl(t.type,!1);case 11:return Jl(t.type.render,!1);case 1:return Jl(t.type,!0);case 31:return Ml("Activity");default:return""}}function bl(t){try{var e="",l=null;do e+=Tc(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var tu=Object.prototype.hasOwnProperty,yn=u.unstable_scheduleCallback,eu=u.unstable_cancelCallback,Ac=u.unstable_shouldYield,Dl=u.unstable_requestPaint,he=u.unstable_now,Fl=u.unstable_getCurrentPriorityLevel,lu=u.unstable_ImmediatePriority,au=u.unstable_UserBlockingPriority,_a=u.unstable_NormalPriority,si=u.unstable_LowPriority,kl=u.unstable_IdlePriority,nu=u.log,uu=u.unstable_setDisableYieldValue,Ra=null,De=null;function El(t){if(typeof nu=="function"&&uu(t),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Ra,t)}catch{}}var Te=Math.clz32?Math.clz32:rl,ri=Math.log,Oa=Math.LN2;function rl(t){return t>>>=0,t===0?32:31-(ri(t)/Oa|0)|0}var xa=256,pn=262144,vn=4194304;function Tl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function gn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=a&134217727;return h!==0?(a=h&~c,a!==0?n=Tl(a):(f&=h,f!==0?n=Tl(f):l||(l=h&~t,l!==0&&(n=Tl(l))))):(h=a&~c,h!==0?n=Tl(h):f!==0?n=Tl(f):l||(l=a&~t,l!==0&&(n=Tl(l)))),n===0?0:e!==0&&e!==n&&(e&c)===0&&(c=n&-n,l=e&-e,c>=l||c===32&&(l&4194048)!==0)?e:n}function Nl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function iu(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var t=vn;return vn<<=1,(vn&62914560)===0&&(vn=4194304),t}function zl(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Wl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fi(t,e,l,a,n,c){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var h=t.entanglements,g=t.expirationTimes,x=t.hiddenUpdates;for(l=f&~l;0<l;){var L=31-Te(l),w=1<<L;h[L]=0,g[L]=-1;var M=x[L];if(M!==null)for(x[L]=null,L=0;L<M.length;L++){var N=M[L];N!==null&&(N.lane&=-536870913)}l&=~w}a!==0&&_c(t,a,0),c!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function _c(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Te(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function oi(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Te(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function cu(t,e){var l=e&-e;return l=(l&42)!==0?1:su(l),(l&(t.suspendedLanes|e))!==0?0:l}function su(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Sn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Rc(){var t=F.p;return t!==0?t:(t=window.event,t===void 0?32:Dy(t.type))}function Ca(t,e){var l=F.p;try{return F.p=t,e()}finally{F.p=l}}var Ul=Math.random().toString(36).slice(2),de="__reactFiber$"+Ul,gt="__reactProps$"+Ul,Ie="__reactContainer$"+Ul,hi="__reactEvents$"+Ul,Oc="__reactListeners$"+Ul,di="__reactHandles$"+Ul,mi="__reactResources$"+Ul,Ma="__reactMarker$"+Ul;function yi(t){delete t[de],delete t[gt],delete t[hi],delete t[Oc],delete t[di]}function Da(t){var e=t[de];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Ie]||l[de]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=my(t);t!==null;){if(l=t[de])return l;t=my(t)}return e}t=l,l=t.parentNode}return null}function Na(t){if(t=t[de]||t[Ie]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function bn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function He(t){var e=t[mi];return e||(e=t[mi]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[Ma]=!0}var Ll=new Set,xc={};function $l(t,e){Il(t,e),Il(t+"Capture",e)}function Il(t,e){for(xc[t]=e,t=0;t<e.length;t++)Ll.add(e[t])}var Cc=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),En={},ru={};function fu(t){return tu.call(ru,t)?!0:tu.call(En,t)?!1:Cc.test(t)?ru[t]=!0:(En[t]=!0,!1)}function Al(t,e,l){if(fu(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Hl(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function me(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Ge(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Mc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Dc(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ou(t){if(!t._valueTracker){var e=Mc(t)?"checked":"value";t._valueTracker=Dc(t,e,""+t[e])}}function Nc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Mc(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Tn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var nr=/[\n"\\]/g;function Qe(t){return t.replace(nr,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function hu(t,e,l,a,n,c,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ge(e)):t.value!==""+Ge(e)&&(t.value=""+Ge(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?_n(t,f,Ge(e)):l!=null?_n(t,f,Ge(l)):a!=null&&t.removeAttribute("value"),n==null&&c!=null&&(t.defaultChecked=!!c),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ge(h):t.removeAttribute("name")}function An(t,e,l,a,n,c,f,h){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){ou(t);return}l=l!=null?""+Ge(l):"",e=e!=null?""+Ge(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=h?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ou(t)}function _n(t,e,l){e==="number"&&Tn(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function K(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ge(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function m(t,e,l){if(e!=null&&(e=""+Ge(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ge(l):""}function C(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(zt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ge(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),ou(t)}function V(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var tt=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 ht(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||tt.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Et(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&ht(t,n,a)}else for(var c in e)e.hasOwnProperty(c)&&ht(t,c,e[c])}function It(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ye=/^[\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 Ne(t){return Ye.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Pe(){}var ye=null;function ur(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var du=null,mu=null;function uh(t){var e=Na(t);if(e&&(t=e.stateNode)){var l=t[gt]||null;t:switch(t=e.stateNode,e.type){case"input":if(hu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Qe(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[gt]||null;if(!n)throw Error(r(90));hu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Nc(a)}break t;case"textarea":m(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&K(t,!!l.multiple,e,!1)}}}var ir=!1;function ih(t,e,l){if(ir)return t(e,l);ir=!0;try{var a=t(e);return a}finally{if(ir=!1,(du!==null||mu!==null)&&(gs(),du&&(e=du,t=mu,mu=du=null,uh(e),t)))for(e=0;e<t.length;e++)uh(t[e])}}function pi(t,e){var l=t.stateNode;if(l===null)return null;var a=l[gt]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var Pl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cr=!1;if(Pl)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){cr=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{cr=!1}var za=null,sr=null,zc=null;function ch(){if(zc)return zc;var t,e=sr,l=e.length,a,n="value"in za?za.value:za.textContent,c=n.length;for(t=0;t<l&&e[t]===n[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===n[c-a];a++);return zc=n.slice(t,1<a?1-a:void 0)}function Uc(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Lc(){return!0}function sh(){return!1}function Xe(t){function e(l,a,n,c,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(c):c[h]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Lc:sh,this.isPropagationStopped=sh,this}return A(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Lc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Lc)},persist:function(){},isPersistent:Lc}),e}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hc=Xe(Rn),gi=A({},Rn,{view:0,detail:0}),Tv=Xe(gi),rr,fr,Si,wc=A({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Si&&(Si&&t.type==="mousemove"?(rr=t.screenX-Si.screenX,fr=t.screenY-Si.screenY):fr=rr=0,Si=t),rr)},movementY:function(t){return"movementY"in t?t.movementY:fr}}),rh=Xe(wc),Av=A({},wc,{dataTransfer:0}),_v=Xe(Av),Rv=A({},gi,{relatedTarget:0}),or=Xe(Rv),Ov=A({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),xv=Xe(Ov),Cv=A({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Mv=Xe(Cv),Dv=A({},Rn,{data:0}),fh=Xe(Dv),Nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zv={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"},Uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Uv[t])?!!e[t]:!1}function hr(){return Lv}var Hv=A({},gi,{key:function(t){if(t.key){var e=Nv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Uc(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?zv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hr,charCode:function(t){return t.type==="keypress"?Uc(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Uc(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),wv=Xe(Hv),jv=A({},wc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oh=Xe(jv),Bv=A({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hr}),qv=Xe(Bv),Gv=A({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=Xe(Gv),Yv=A({},wc,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Xv=Xe(Yv),Zv=A({},Rn,{newState:0,oldState:0}),Vv=Xe(Zv),Kv=[9,13,27,32],dr=Pl&&"CompositionEvent"in window,bi=null;Pl&&"documentMode"in document&&(bi=document.documentMode);var Jv=Pl&&"TextEvent"in window&&!bi,hh=Pl&&(!dr||bi&&8<bi&&11>=bi),dh=" ",mh=!1;function yh(t,e){switch(t){case"keyup":return Kv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ph(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var yu=!1;function Fv(t,e){switch(t){case"compositionend":return ph(e);case"keypress":return e.which!==32?null:(mh=!0,dh);case"textInput":return t=e.data,t===dh&&mh?null:t;default:return null}}function kv(t,e){if(yu)return t==="compositionend"||!dr&&yh(t,e)?(t=ch(),zc=sr=za=null,yu=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return hh&&e.locale!=="ko"?null:e.data;default:return null}}var Wv={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 vh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Wv[t.type]:e==="textarea"}function gh(t,e,l,a){du?mu?mu.push(a):mu=[a]:du=a,e=Rs(e,"onChange"),0<e.length&&(l=new Hc("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Ei=null,Ti=null;function $v(t){ty(t,0)}function jc(t){var e=bn(t);if(Nc(e))return t}function Sh(t,e){if(t==="change")return e}var bh=!1;if(Pl){var mr;if(Pl){var yr="oninput"in document;if(!yr){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),yr=typeof Eh.oninput=="function"}mr=yr}else mr=!1;bh=mr&&(!document.documentMode||9<document.documentMode)}function Th(){Ei&&(Ei.detachEvent("onpropertychange",Ah),Ti=Ei=null)}function Ah(t){if(t.propertyName==="value"&&jc(Ti)){var e=[];gh(e,Ti,t,ur(t)),ih($v,e)}}function Iv(t,e,l){t==="focusin"?(Th(),Ei=e,Ti=l,Ei.attachEvent("onpropertychange",Ah)):t==="focusout"&&Th()}function Pv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return jc(Ti)}function tg(t,e){if(t==="click")return jc(e)}function eg(t,e){if(t==="input"||t==="change")return jc(e)}function lg(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var tl=typeof Object.is=="function"?Object.is:lg;function Ai(t,e){if(tl(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!tu.call(e,n)||!tl(t[n],e[n]))return!1}return!0}function _h(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rh(t,e){var l=_h(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=_h(l)}}function Oh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Oh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function xh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Tn(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Tn(t.document)}return e}function pr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var ag=Pl&&"documentMode"in document&&11>=document.documentMode,pu=null,vr=null,_i=null,gr=!1;function Ch(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gr||pu==null||pu!==Tn(a)||(a=pu,"selectionStart"in a&&pr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),_i&&Ai(_i,a)||(_i=a,a=Rs(vr,"onSelect"),0<a.length&&(e=new Hc("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=pu)))}function On(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var vu={animationend:On("Animation","AnimationEnd"),animationiteration:On("Animation","AnimationIteration"),animationstart:On("Animation","AnimationStart"),transitionrun:On("Transition","TransitionRun"),transitionstart:On("Transition","TransitionStart"),transitioncancel:On("Transition","TransitionCancel"),transitionend:On("Transition","TransitionEnd")},Sr={},Mh={};Pl&&(Mh=document.createElement("div").style,"AnimationEvent"in window||(delete vu.animationend.animation,delete vu.animationiteration.animation,delete vu.animationstart.animation),"TransitionEvent"in window||delete vu.transitionend.transition);function xn(t){if(Sr[t])return Sr[t];if(!vu[t])return t;var e=vu[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Mh)return Sr[t]=e[l];return t}var Dh=xn("animationend"),Nh=xn("animationiteration"),zh=xn("animationstart"),ng=xn("transitionrun"),ug=xn("transitionstart"),ig=xn("transitioncancel"),Uh=xn("transitionend"),Lh=new Map,br="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(" ");br.push("scrollEnd");function _l(t,e){Lh.set(t,e),$l(e,[t])}var Bc=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fl=[],gu=0,Er=0;function qc(){for(var t=gu,e=Er=gu=0;e<t;){var l=fl[e];fl[e++]=null;var a=fl[e];fl[e++]=null;var n=fl[e];fl[e++]=null;var c=fl[e];if(fl[e++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}c!==0&&Hh(l,n,c)}}function Gc(t,e,l,a){fl[gu++]=t,fl[gu++]=e,fl[gu++]=l,fl[gu++]=a,Er|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Tr(t,e,l,a){return Gc(t,e,l,a),Qc(t)}function Cn(t,e){return Gc(t,null,null,e),Qc(t)}function Hh(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,c=t.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(n=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,n&&e!==null&&(n=31-Te(l),t=c.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),c):null}function Qc(t){if(50<Ki)throw Ki=0,zf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Su={};function cg(t,e,l,a){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function el(t,e,l,a){return new cg(t,e,l,a)}function Ar(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ta(t,e){var l=t.alternate;return l===null?(l=el(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function wh(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Yc(t,e,l,a,n,c){var f=0;if(a=t,typeof t=="function")Ar(t)&&(f=1);else if(typeof t=="string")f=h0(t,l,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case vt:return t=el(31,l,e,n),t.elementType=vt,t.lanes=c,t;case G:return Mn(l.children,n,c,e);case Q:f=8,n|=24;break;case B:return t=el(12,l,e,n|2),t.elementType=B,t.lanes=c,t;case at:return t=el(13,l,e,n),t.elementType=at,t.lanes=c,t;case ut:return t=el(19,l,e,n),t.elementType=ut,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case J:f=10;break t;case $:f=9;break t;case X:f=11;break t;case et:f=14;break t;case ct:f=16,a=null;break t}f=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=el(f,l,e,n),e.elementType=t,e.type=a,e.lanes=c,e}function Mn(t,e,l,a){return t=el(7,t,a,e),t.lanes=l,t}function _r(t,e,l){return t=el(6,t,null,e),t.lanes=l,t}function jh(t){var e=el(18,null,null,0);return e.stateNode=t,e}function Rr(t,e,l){return e=el(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Bh=new WeakMap;function ol(t,e){if(typeof t=="object"&&t!==null){var l=Bh.get(t);return l!==void 0?l:(e={value:t,source:e,stack:bl(e)},Bh.set(t,e),e)}return{value:t,source:e,stack:bl(e)}}var bu=[],Eu=0,Xc=null,Ri=0,hl=[],dl=0,Ua=null,wl=1,jl="";function ea(t,e){bu[Eu++]=Ri,bu[Eu++]=Xc,Xc=t,Ri=e}function qh(t,e,l){hl[dl++]=wl,hl[dl++]=jl,hl[dl++]=Ua,Ua=t;var a=wl;t=jl;var n=32-Te(a)-1;a&=~(1<<n),l+=1;var c=32-Te(e)+n;if(30<c){var f=n-n%5;c=(a&(1<<f)-1).toString(32),a>>=f,n-=f,wl=1<<32-Te(e)+n|l<<n|a,jl=c+t}else wl=1<<c|l<<n|a,jl=t}function Or(t){t.return!==null&&(ea(t,1),qh(t,1,0))}function xr(t){for(;t===Xc;)Xc=bu[--Eu],bu[Eu]=null,Ri=bu[--Eu],bu[Eu]=null;for(;t===Ua;)Ua=hl[--dl],hl[dl]=null,jl=hl[--dl],hl[dl]=null,wl=hl[--dl],hl[dl]=null}function Gh(t,e){hl[dl++]=wl,hl[dl++]=jl,hl[dl++]=Ua,wl=e.id,jl=e.overflow,Ua=t}var Ae=null,Kt=null,_t=!1,La=null,ml=!1,Cr=Error(r(519));function Ha(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Oi(ol(e,t)),Cr}function Qh(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[de]=t,e[gt]=a,l){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(l=0;l<Fi.length;l++)bt(Fi[l],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),An(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),C(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||ny(e.textContent,l)?(a.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),a.onScroll!=null&&bt("scroll",e),a.onScrollEnd!=null&&bt("scrollend",e),a.onClick!=null&&(e.onclick=Pe),e=!0):e=!1,e||Ha(t,!0)}function Yh(t){for(Ae=t.return;Ae;)switch(Ae.tag){case 5:case 31:case 13:ml=!1;return;case 27:case 3:ml=!0;return;default:Ae=Ae.return}}function Tu(t){if(t!==Ae)return!1;if(!_t)return Yh(t),_t=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Jf(t.type,t.memoizedProps)),l=!l),l&&Kt&&Ha(t),Yh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Kt=dy(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Kt=dy(t)}else e===27?(e=Kt,ka(t.type)?(t=If,If=null,Kt=t):Kt=e):Kt=Ae?pl(t.stateNode.nextSibling):null;return!0}function Dn(){Kt=Ae=null,_t=!1}function Mr(){var t=La;return t!==null&&(Je===null?Je=t:Je.push.apply(Je,t),La=null),t}function Oi(t){La===null?La=[t]:La.push(t)}var Dr=E(null),Nn=null,la=null;function wa(t,e,l){k(Dr,e._currentValue),e._currentValue=l}function aa(t){t._currentValue=Dr.current,j(Dr)}function Nr(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function zr(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var c=n.dependencies;if(c!==null){var f=n.child;c=c.firstContext;t:for(;c!==null;){var h=c;c=n;for(var g=0;g<e.length;g++)if(h.context===e[g]){c.lanes|=l,h=c.alternate,h!==null&&(h.lanes|=l),Nr(c.return,l,t),a||(f=null);break t}c=h.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(r(341));f.lanes|=l,c=f.alternate,c!==null&&(c.lanes|=l),Nr(f,l,t),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===t){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function Au(t,e,l,a){t=null;for(var n=e,c=!1;n!==null;){if(!c){if((n.flags&524288)!==0)c=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var h=n.type;tl(n.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(n===Ct.current){if(f=n.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Pi):t=[Pi])}n=n.return}t!==null&&zr(e,t,l,a),e.flags|=262144}function Zc(t){for(t=t.firstContext;t!==null;){if(!tl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function zn(t){Nn=t,la=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function _e(t){return Xh(Nn,t)}function Vc(t,e){return Nn===null&&zn(t),Xh(t,e)}function Xh(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},la===null){if(t===null)throw Error(r(308));la=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else la=la.next=e;return l}var sg=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},rg=u.unstable_scheduleCallback,fg=u.unstable_NormalPriority,ie={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ur(){return{controller:new sg,data:new Map,refCount:0}}function xi(t){t.refCount--,t.refCount===0&&rg(fg,function(){t.controller.abort()})}var Ci=null,Lr=0,_u=0,Ru=null;function og(t,e){if(Ci===null){var l=Ci=[];Lr=0,_u=Bf(),Ru={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Lr++,e.then(Zh,Zh),e}function Zh(){if(--Lr===0&&Ci!==null){Ru!==null&&(Ru.status="fulfilled");var t=Ci;Ci=null,_u=0,Ru=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function hg(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Vh=U.S;U.S=function(t,e){Cm=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&og(t,e),Vh!==null&&Vh(t,e)};var Un=E(null);function Hr(){var t=Un.current;return t!==null?t:Xt.pooledCache}function Kc(t,e){e===null?k(Un,Un.current):k(Un,e.pool)}function Kh(){var t=Hr();return t===null?null:{parent:ie._currentValue,pool:t}}var Ou=Error(r(460)),wr=Error(r(474)),Jc=Error(r(542)),Fc={then:function(){}};function Jh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fh(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Pe,Pe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t;default:if(typeof e.status=="string")e.then(Pe,Pe);else{if(t=Xt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t}throw Hn=e,Ou}}function Ln(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Hn=l,Ou):l}}var Hn=null;function kh(){if(Hn===null)throw Error(r(459));var t=Hn;return Hn=null,t}function Wh(t){if(t===Ou||t===Jc)throw Error(r(483))}var xu=null,Mi=0;function kc(t){var e=Mi;return Mi+=1,xu===null&&(xu=[]),Fh(xu,t,e)}function Di(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Wc(t,e){throw e.$$typeof===z?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function $h(t){function e(_,T){if(t){var O=_.deletions;O===null?(_.deletions=[T],_.flags|=16):O.push(T)}}function l(_,T){if(!t)return null;for(;T!==null;)e(_,T),T=T.sibling;return null}function a(_){for(var T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function n(_,T){return _=ta(_,T),_.index=0,_.sibling=null,_}function c(_,T,O){return _.index=O,t?(O=_.alternate,O!==null?(O=O.index,O<T?(_.flags|=67108866,T):O):(_.flags|=67108866,T)):(_.flags|=1048576,T)}function f(_){return t&&_.alternate===null&&(_.flags|=67108866),_}function h(_,T,O,H){return T===null||T.tag!==6?(T=_r(O,_.mode,H),T.return=_,T):(T=n(T,O),T.return=_,T)}function g(_,T,O,H){var it=O.type;return it===G?L(_,T,O.props.children,H,O.key):T!==null&&(T.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===ct&&Ln(it)===T.type)?(T=n(T,O.props),Di(T,O),T.return=_,T):(T=Yc(O.type,O.key,O.props,null,_.mode,H),Di(T,O),T.return=_,T)}function x(_,T,O,H){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=Rr(O,_.mode,H),T.return=_,T):(T=n(T,O.children||[]),T.return=_,T)}function L(_,T,O,H,it){return T===null||T.tag!==7?(T=Mn(O,_.mode,H,it),T.return=_,T):(T=n(T,O),T.return=_,T)}function w(_,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=_r(""+T,_.mode,O),T.return=_,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case q:return O=Yc(T.type,T.key,T.props,null,_.mode,O),Di(O,T),O.return=_,O;case Z:return T=Rr(T,_.mode,O),T.return=_,T;case ct:return T=Ln(T),w(_,T,O)}if(zt(T)||Bt(T))return T=Mn(T,_.mode,O,null),T.return=_,T;if(typeof T.then=="function")return w(_,kc(T),O);if(T.$$typeof===J)return w(_,Vc(_,T),O);Wc(_,T)}return null}function M(_,T,O,H){var it=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return it!==null?null:h(_,T,""+O,H);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case q:return O.key===it?g(_,T,O,H):null;case Z:return O.key===it?x(_,T,O,H):null;case ct:return O=Ln(O),M(_,T,O,H)}if(zt(O)||Bt(O))return it!==null?null:L(_,T,O,H,null);if(typeof O.then=="function")return M(_,T,kc(O),H);if(O.$$typeof===J)return M(_,T,Vc(_,O),H);Wc(_,O)}return null}function N(_,T,O,H,it){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return _=_.get(O)||null,h(T,_,""+H,it);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case q:return _=_.get(H.key===null?O:H.key)||null,g(T,_,H,it);case Z:return _=_.get(H.key===null?O:H.key)||null,x(T,_,H,it);case ct:return H=Ln(H),N(_,T,O,H,it)}if(zt(H)||Bt(H))return _=_.get(O)||null,L(T,_,H,it,null);if(typeof H.then=="function")return N(_,T,O,kc(H),it);if(H.$$typeof===J)return N(_,T,O,Vc(T,H),it);Wc(T,H)}return null}function I(_,T,O,H){for(var it=null,Mt=null,lt=T,mt=T=0,At=null;lt!==null&&mt<O.length;mt++){lt.index>mt?(At=lt,lt=null):At=lt.sibling;var Dt=M(_,lt,O[mt],H);if(Dt===null){lt===null&&(lt=At);break}t&&lt&&Dt.alternate===null&&e(_,lt),T=c(Dt,T,mt),Mt===null?it=Dt:Mt.sibling=Dt,Mt=Dt,lt=At}if(mt===O.length)return l(_,lt),_t&&ea(_,mt),it;if(lt===null){for(;mt<O.length;mt++)lt=w(_,O[mt],H),lt!==null&&(T=c(lt,T,mt),Mt===null?it=lt:Mt.sibling=lt,Mt=lt);return _t&&ea(_,mt),it}for(lt=a(lt);mt<O.length;mt++)At=N(lt,_,mt,O[mt],H),At!==null&&(t&&At.alternate!==null&&lt.delete(At.key===null?mt:At.key),T=c(At,T,mt),Mt===null?it=At:Mt.sibling=At,Mt=At);return t&&lt.forEach(function(tn){return e(_,tn)}),_t&&ea(_,mt),it}function st(_,T,O,H){if(O==null)throw Error(r(151));for(var it=null,Mt=null,lt=T,mt=T=0,At=null,Dt=O.next();lt!==null&&!Dt.done;mt++,Dt=O.next()){lt.index>mt?(At=lt,lt=null):At=lt.sibling;var tn=M(_,lt,Dt.value,H);if(tn===null){lt===null&&(lt=At);break}t&&lt&&tn.alternate===null&&e(_,lt),T=c(tn,T,mt),Mt===null?it=tn:Mt.sibling=tn,Mt=tn,lt=At}if(Dt.done)return l(_,lt),_t&&ea(_,mt),it;if(lt===null){for(;!Dt.done;mt++,Dt=O.next())Dt=w(_,Dt.value,H),Dt!==null&&(T=c(Dt,T,mt),Mt===null?it=Dt:Mt.sibling=Dt,Mt=Dt);return _t&&ea(_,mt),it}for(lt=a(lt);!Dt.done;mt++,Dt=O.next())Dt=N(lt,_,mt,Dt.value,H),Dt!==null&&(t&&Dt.alternate!==null&&lt.delete(Dt.key===null?mt:Dt.key),T=c(Dt,T,mt),Mt===null?it=Dt:Mt.sibling=Dt,Mt=Dt);return t&&lt.forEach(function(A0){return e(_,A0)}),_t&&ea(_,mt),it}function Qt(_,T,O,H){if(typeof O=="object"&&O!==null&&O.type===G&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case q:t:{for(var it=O.key;T!==null;){if(T.key===it){if(it=O.type,it===G){if(T.tag===7){l(_,T.sibling),H=n(T,O.props.children),H.return=_,_=H;break t}}else if(T.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===ct&&Ln(it)===T.type){l(_,T.sibling),H=n(T,O.props),Di(H,O),H.return=_,_=H;break t}l(_,T);break}else e(_,T);T=T.sibling}O.type===G?(H=Mn(O.props.children,_.mode,H,O.key),H.return=_,_=H):(H=Yc(O.type,O.key,O.props,null,_.mode,H),Di(H,O),H.return=_,_=H)}return f(_);case Z:t:{for(it=O.key;T!==null;){if(T.key===it)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){l(_,T.sibling),H=n(T,O.children||[]),H.return=_,_=H;break t}else{l(_,T);break}else e(_,T);T=T.sibling}H=Rr(O,_.mode,H),H.return=_,_=H}return f(_);case ct:return O=Ln(O),Qt(_,T,O,H)}if(zt(O))return I(_,T,O,H);if(Bt(O)){if(it=Bt(O),typeof it!="function")throw Error(r(150));return O=it.call(O),st(_,T,O,H)}if(typeof O.then=="function")return Qt(_,T,kc(O),H);if(O.$$typeof===J)return Qt(_,T,Vc(_,O),H);Wc(_,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,T!==null&&T.tag===6?(l(_,T.sibling),H=n(T,O),H.return=_,_=H):(l(_,T),H=_r(O,_.mode,H),H.return=_,_=H),f(_)):l(_,T)}return function(_,T,O,H){try{Mi=0;var it=Qt(_,T,O,H);return xu=null,it}catch(lt){if(lt===Ou||lt===Jc)throw lt;var Mt=el(29,lt,null,_.mode);return Mt.lanes=H,Mt.return=_,Mt}finally{}}}var wn=$h(!0),Ih=$h(!1),ja=!1;function jr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Br(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ba(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function qa(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Nt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Qc(t),Hh(t,null,l),e}return Gc(t,a,e,l),Qc(t)}function Ni(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,oi(t,l)}}function qr(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?n=c=f:c=c.next=f,l=l.next}while(l!==null);c===null?n=c=e:c=c.next=e}else n=c=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Gr=!1;function zi(){if(Gr){var t=Ru;if(t!==null)throw t}}function Ui(t,e,l,a){Gr=!1;var n=t.updateQueue;ja=!1;var c=n.firstBaseUpdate,f=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var g=h,x=g.next;g.next=null,f===null?c=x:f.next=x,f=g;var L=t.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==f&&(h===null?L.firstBaseUpdate=x:h.next=x,L.lastBaseUpdate=g))}if(c!==null){var w=n.baseState;f=0,L=x=g=null,h=c;do{var M=h.lane&-536870913,N=M!==h.lane;if(N?(Tt&M)===M:(a&M)===M){M!==0&&M===_u&&(Gr=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var I=t,st=h;M=e;var Qt=l;switch(st.tag){case 1:if(I=st.payload,typeof I=="function"){w=I.call(Qt,w,M);break t}w=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=st.payload,M=typeof I=="function"?I.call(Qt,w,M):I,M==null)break t;w=A({},w,M);break t;case 2:ja=!0}}M=h.callback,M!==null&&(t.flags|=64,N&&(t.flags|=8192),N=n.callbacks,N===null?n.callbacks=[M]:N.push(M))}else N={lane:M,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(x=L=N,g=w):L=L.next=N,f|=M;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;N=h,h=N.next,N.next=null,n.lastBaseUpdate=N,n.shared.pending=null}}while(!0);L===null&&(g=w),n.baseState=g,n.firstBaseUpdate=x,n.lastBaseUpdate=L,c===null&&(n.shared.lanes=0),Za|=f,t.lanes=f,t.memoizedState=w}}function Ph(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function td(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Ph(l[t],e)}var Cu=E(null),$c=E(0);function ed(t,e){t=ha,k($c,t),k(Cu,e),ha=t|e.baseLanes}function Qr(){k($c,ha),k(Cu,Cu.current)}function Yr(){ha=$c.current,j(Cu),j($c)}var ll=E(null),yl=null;function Ga(t){var e=t.alternate;k(ne,ne.current&1),k(ll,t),yl===null&&(e===null||Cu.current!==null||e.memoizedState!==null)&&(yl=t)}function Xr(t){k(ne,ne.current),k(ll,t),yl===null&&(yl=t)}function ld(t){t.tag===22?(k(ne,ne.current),k(ll,t),yl===null&&(yl=t)):Qa()}function Qa(){k(ne,ne.current),k(ll,ll.current)}function al(t){j(ll),yl===t&&(yl=null),j(ne)}var ne=E(0);function Ic(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Wf(l)||$f(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var na=0,dt=null,qt=null,ce=null,Pc=!1,Mu=!1,jn=!1,ts=0,Li=0,Du=null,dg=0;function te(){throw Error(r(321))}function Zr(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!tl(t[l],e[l]))return!1;return!0}function Vr(t,e,l,a,n,c){return na=c,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?qd:cf,jn=!1,c=l(a,n),jn=!1,Mu&&(c=nd(e,l,a,n)),ad(t),c}function ad(t){U.H=ji;var e=qt!==null&&qt.next!==null;if(na=0,ce=qt=dt=null,Pc=!1,Li=0,Du=null,e)throw Error(r(300));t===null||se||(t=t.dependencies,t!==null&&Zc(t)&&(se=!0))}function nd(t,e,l,a){dt=t;var n=0;do{if(Mu&&(Du=null),Li=0,Mu=!1,25<=n)throw Error(r(301));if(n+=1,ce=qt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Gd,c=e(l,a)}while(Mu);return c}function mg(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Hi(e):e,t=t.useState()[0],(qt!==null?qt.memoizedState:null)!==t&&(dt.flags|=1024),e}function Kr(){var t=ts!==0;return ts=0,t}function Jr(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Fr(t){if(Pc){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Pc=!1}na=0,ce=qt=dt=null,Mu=!1,Li=ts=0,Du=null}function we(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?dt.memoizedState=ce=t:ce=ce.next=t,ce}function ue(){if(qt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var e=ce===null?dt.memoizedState:ce.next;if(e!==null)ce=e,qt=t;else{if(t===null)throw dt.alternate===null?Error(r(467)):Error(r(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},ce===null?dt.memoizedState=ce=t:ce=ce.next=t}return ce}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hi(t){var e=Li;return Li+=1,Du===null&&(Du=[]),t=Fh(Du,t,e),e=dt,(ce===null?e.memoizedState:ce.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?qd:cf),t}function ls(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Hi(t);if(t.$$typeof===J)return _e(t)}throw Error(r(438,String(t)))}function kr(t){var e=null,l=dt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=dt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=es(),dt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=xt;return e.index++,l}function ua(t,e){return typeof e=="function"?e(t):e}function as(t){var e=ue();return Wr(e,qt,t)}function Wr(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,c=a.pending;if(c!==null){if(n!==null){var f=n.next;n.next=c.next,c.next=f}e.baseQueue=n=c,a.pending=null}if(c=t.baseState,n===null)t.memoizedState=c;else{e=n.next;var h=f=null,g=null,x=e,L=!1;do{var w=x.lane&-536870913;if(w!==x.lane?(Tt&w)===w:(na&w)===w){var M=x.revertLane;if(M===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),w===_u&&(L=!0);else if((na&M)===M){x=x.next,M===_u&&(L=!0);continue}else w={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},g===null?(h=g=w,f=c):g=g.next=w,dt.lanes|=M,Za|=M;w=x.action,jn&&l(c,w),c=x.hasEagerState?x.eagerState:l(c,w)}else M={lane:w,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},g===null?(h=g=M,f=c):g=g.next=M,dt.lanes|=w,Za|=w;x=x.next}while(x!==null&&x!==e);if(g===null?f=c:g.next=h,!tl(c,t.memoizedState)&&(se=!0,L&&(l=Ru,l!==null)))throw l;t.memoizedState=c,t.baseState=f,t.baseQueue=g,a.lastRenderedState=c}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function $r(t){var e=ue(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,c=e.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do c=t(c,f.action),f=f.next;while(f!==n);tl(c,e.memoizedState)||(se=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),l.lastRenderedState=c}return[c,a]}function ud(t,e,l){var a=dt,n=ue(),c=_t;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=e();var f=!tl((qt||n).memoizedState,l);if(f&&(n.memoizedState=l,se=!0),n=n.queue,tf(sd.bind(null,a,n,t),[t]),n.getSnapshot!==e||f||ce!==null&&ce.memoizedState.tag&1){if(a.flags|=2048,Nu(9,{destroy:void 0},cd.bind(null,a,n,l,e),null),Xt===null)throw Error(r(349));c||(na&127)!==0||id(a,e,l)}return l}function id(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=dt.updateQueue,e===null?(e=es(),dt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function cd(t,e,l,a){e.value=l,e.getSnapshot=a,rd(e)&&fd(t)}function sd(t,e,l){return l(function(){rd(e)&&fd(t)})}function rd(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!tl(t,l)}catch{return!0}}function fd(t){var e=Cn(t,2);e!==null&&Fe(e,t,2)}function Ir(t){var e=we();if(typeof t=="function"){var l=t;if(t=l(),jn){El(!0);try{l()}finally{El(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:t},e}function od(t,e,l,a){return t.baseState=l,Wr(t,qt,typeof a=="function"?a:ua)}function yg(t,e,l,a,n){if(is(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};U.T!==null?l(!0):c.isTransition=!1,a(c),l=e.pending,l===null?(c.next=e.pending=c,hd(e,c)):(c.next=l.next,e.pending=l.next=c)}}function hd(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var c=U.T,f={};U.T=f;try{var h=l(n,a),g=U.S;g!==null&&g(f,h),dd(t,e,h)}catch(x){Pr(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=l(n,a),dd(t,e,c)}catch(x){Pr(t,e,x)}}function dd(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){md(t,e,a)},function(a){return Pr(t,e,a)}):md(t,e,l)}function md(t,e,l){e.status="fulfilled",e.value=l,yd(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,hd(t,l)))}function Pr(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,yd(e),e=e.next;while(e!==a)}t.action=null}function yd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function pd(t,e){return e}function vd(t,e){if(_t){var l=Xt.formState;if(l!==null){t:{var a=dt;if(_t){if(Kt){e:{for(var n=Kt,c=ml;n.nodeType!==8;){if(!c){n=null;break e}if(n=pl(n.nextSibling),n===null){n=null;break e}}c=n.data,n=c==="F!"||c==="F"?n:null}if(n){Kt=pl(n.nextSibling),a=n.data==="F!";break t}}Ha(a)}a=!1}a&&(e=l[0])}}return l=we(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pd,lastRenderedState:e},l.queue=a,l=wd.bind(null,dt,a),a.dispatch=l,a=Ir(!1),c=uf.bind(null,dt,!1,a.queue),a=we(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=yg.bind(null,dt,n,c,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function gd(t){var e=ue();return Sd(e,qt,t)}function Sd(t,e,l){if(e=Wr(t,e,pd)[0],t=as(ua)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Hi(e)}catch(f){throw f===Ou?Jc:f}else a=e;e=ue();var n=e.queue,c=n.dispatch;return l!==e.memoizedState&&(dt.flags|=2048,Nu(9,{destroy:void 0},pg.bind(null,n,l),null)),[a,c,t]}function pg(t,e){t.action=e}function bd(t){var e=ue(),l=qt;if(l!==null)return Sd(e,l,t);ue(),e=e.memoizedState,l=ue();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Nu(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=dt.updateQueue,e===null&&(e=es(),dt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Ed(){return ue().memoizedState}function ns(t,e,l,a){var n=we();dt.flags|=t,n.memoizedState=Nu(1|e,{destroy:void 0},l,a===void 0?null:a)}function us(t,e,l,a){var n=ue();a=a===void 0?null:a;var c=n.memoizedState.inst;qt!==null&&a!==null&&Zr(a,qt.memoizedState.deps)?n.memoizedState=Nu(e,c,l,a):(dt.flags|=t,n.memoizedState=Nu(1|e,c,l,a))}function Td(t,e){ns(8390656,8,t,e)}function tf(t,e){us(2048,8,t,e)}function vg(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=es(),dt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Ad(t){var e=ue().memoizedState;return vg({ref:e,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function _d(t,e){return us(4,2,t,e)}function Rd(t,e){return us(4,4,t,e)}function Od(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function xd(t,e,l){l=l!=null?l.concat([t]):null,us(4,4,Od.bind(null,e,t),l)}function ef(){}function Cd(t,e){var l=ue();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Zr(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Md(t,e){var l=ue();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Zr(e,a[1]))return a[0];if(a=t(),jn){El(!0);try{t()}finally{El(!1)}}return l.memoizedState=[a,e],a}function lf(t,e,l){return l===void 0||(na&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Dm(),dt.lanes|=t,Za|=t,l)}function Dd(t,e,l,a){return tl(l,e)?l:Cu.current!==null?(t=lf(t,l,a),tl(t,e)||(se=!0),t):(na&42)===0||(na&1073741824)!==0&&(Tt&261930)===0?(se=!0,t.memoizedState=l):(t=Dm(),dt.lanes|=t,Za|=t,e)}function Nd(t,e,l,a,n){var c=F.p;F.p=c!==0&&8>c?c:8;var f=U.T,h={};U.T=h,uf(t,!1,e,l);try{var g=n(),x=U.S;if(x!==null&&x(h,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var L=hg(g,a);wi(t,e,L,il(t))}else wi(t,e,a,il(t))}catch(w){wi(t,e,{then:function(){},status:"rejected",reason:w},il())}finally{F.p=c,f!==null&&h.types!==null&&(f.types=h.types),U.T=f}}function gg(){}function af(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=zd(t).queue;Nd(t,n,e,rt,l===null?gg:function(){return Ud(t),l(a)})}function zd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:rt,baseState:rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:rt},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ud(t){var e=zd(t);e.next===null&&(e=t.alternate.memoizedState),wi(t,e.next.queue,{},il())}function nf(){return _e(Pi)}function Ld(){return ue().memoizedState}function Hd(){return ue().memoizedState}function Sg(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=il();t=Ba(l);var a=qa(e,t,l);a!==null&&(Fe(a,e,l),Ni(a,e,l)),e={cache:Ur()},t.payload=e;return}e=e.return}}function bg(t,e,l){var a=il();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},is(t)?jd(e,l):(l=Tr(t,e,l,a),l!==null&&(Fe(l,t,a),Bd(l,e,a)))}function wd(t,e,l){var a=il();wi(t,e,l,a)}function wi(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(is(t))jd(e,n);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,h=c(f,l);if(n.hasEagerState=!0,n.eagerState=h,tl(h,f))return Gc(t,e,n,0),Xt===null&&qc(),!1}catch{}finally{}if(l=Tr(t,e,n,a),l!==null)return Fe(l,t,a),Bd(l,e,a),!0}return!1}function uf(t,e,l,a){if(a={lane:2,revertLane:Bf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},is(t)){if(e)throw Error(r(479))}else e=Tr(t,l,a,2),e!==null&&Fe(e,t,2)}function is(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function jd(t,e){Mu=Pc=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Bd(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,oi(t,l)}}var ji={readContext:_e,use:ls,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useLayoutEffect:te,useInsertionEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useSyncExternalStore:te,useId:te,useHostTransitionStatus:te,useFormState:te,useActionState:te,useOptimistic:te,useMemoCache:te,useCacheRefresh:te};ji.useEffectEvent=te;var qd={readContext:_e,use:ls,useCallback:function(t,e){return we().memoizedState=[t,e===void 0?null:e],t},useContext:_e,useEffect:Td,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,ns(4194308,4,Od.bind(null,e,t),l)},useLayoutEffect:function(t,e){return ns(4194308,4,t,e)},useInsertionEffect:function(t,e){ns(4,2,t,e)},useMemo:function(t,e){var l=we();e=e===void 0?null:e;var a=t();if(jn){El(!0);try{t()}finally{El(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=we();if(l!==void 0){var n=l(e);if(jn){El(!0);try{l(e)}finally{El(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=bg.bind(null,dt,t),[a.memoizedState,t]},useRef:function(t){var e=we();return t={current:t},e.memoizedState=t},useState:function(t){t=Ir(t);var e=t.queue,l=wd.bind(null,dt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:ef,useDeferredValue:function(t,e){var l=we();return lf(l,t,e)},useTransition:function(){var t=Ir(!1);return t=Nd.bind(null,dt,t.queue,!0,!1),we().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=dt,n=we();if(_t){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Xt===null)throw Error(r(349));(Tt&127)!==0||id(a,e,l)}n.memoizedState=l;var c={value:l,getSnapshot:e};return n.queue=c,Td(sd.bind(null,a,c,t),[t]),a.flags|=2048,Nu(9,{destroy:void 0},cd.bind(null,a,c,l,e),null),l},useId:function(){var t=we(),e=Xt.identifierPrefix;if(_t){var l=jl,a=wl;l=(a&~(1<<32-Te(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=ts++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=dg++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:nf,useFormState:vd,useActionState:vd,useOptimistic:function(t){var e=we();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=uf.bind(null,dt,!0,l),l.dispatch=e,[t,e]},useMemoCache:kr,useCacheRefresh:function(){return we().memoizedState=Sg.bind(null,dt)},useEffectEvent:function(t){var e=we(),l={impl:t};return e.memoizedState=l,function(){if((Nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},cf={readContext:_e,use:ls,useCallback:Cd,useContext:_e,useEffect:tf,useImperativeHandle:xd,useInsertionEffect:_d,useLayoutEffect:Rd,useMemo:Md,useReducer:as,useRef:Ed,useState:function(){return as(ua)},useDebugValue:ef,useDeferredValue:function(t,e){var l=ue();return Dd(l,qt.memoizedState,t,e)},useTransition:function(){var t=as(ua)[0],e=ue().memoizedState;return[typeof t=="boolean"?t:Hi(t),e]},useSyncExternalStore:ud,useId:Ld,useHostTransitionStatus:nf,useFormState:gd,useActionState:gd,useOptimistic:function(t,e){var l=ue();return od(l,qt,t,e)},useMemoCache:kr,useCacheRefresh:Hd};cf.useEffectEvent=Ad;var Gd={readContext:_e,use:ls,useCallback:Cd,useContext:_e,useEffect:tf,useImperativeHandle:xd,useInsertionEffect:_d,useLayoutEffect:Rd,useMemo:Md,useReducer:$r,useRef:Ed,useState:function(){return $r(ua)},useDebugValue:ef,useDeferredValue:function(t,e){var l=ue();return qt===null?lf(l,t,e):Dd(l,qt.memoizedState,t,e)},useTransition:function(){var t=$r(ua)[0],e=ue().memoizedState;return[typeof t=="boolean"?t:Hi(t),e]},useSyncExternalStore:ud,useId:Ld,useHostTransitionStatus:nf,useFormState:bd,useActionState:bd,useOptimistic:function(t,e){var l=ue();return qt!==null?od(l,qt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:kr,useCacheRefresh:Hd};Gd.useEffectEvent=Ad;function sf(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:A({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var rf={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=il(),n=Ba(a);n.payload=e,l!=null&&(n.callback=l),e=qa(t,n,a),e!==null&&(Fe(e,t,a),Ni(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=il(),n=Ba(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=qa(t,n,a),e!==null&&(Fe(e,t,a),Ni(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=il(),a=Ba(l);a.tag=2,e!=null&&(a.callback=e),e=qa(t,a,l),e!==null&&(Fe(e,t,l),Ni(e,t,l))}};function Qd(t,e,l,a,n,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!Ai(l,a)||!Ai(n,c):!0}function Yd(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&rf.enqueueReplaceState(e,e.state,null)}function Bn(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=A({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Xd(t){Bc(t)}function Zd(t){console.error(t)}function Vd(t){Bc(t)}function cs(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Kd(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ff(t,e,l){return l=Ba(l),l.tag=3,l.payload={element:null},l.callback=function(){cs(t,e)},l}function Jd(t){return t=Ba(t),t.tag=3,t}function Fd(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var c=a.value;t.payload=function(){return n(c)},t.callback=function(){Kd(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Kd(e,l,a),typeof n!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Eg(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Au(e,l,n,!0),l=ll.current,l!==null){switch(l.tag){case 31:case 13:return yl===null?Ss():l.alternate===null&&ee===0&&(ee=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Fc?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Hf(t,a,n)),!1;case 22:return l.flags|=65536,a===Fc?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Hf(t,a,n)),!1}throw Error(r(435,l.tag))}return Hf(t,a,n),Ss(),!1}if(_t)return e=ll.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==Cr&&(t=Error(r(422),{cause:a}),Oi(ol(t,l)))):(a!==Cr&&(e=Error(r(423),{cause:a}),Oi(ol(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=ol(a,l),n=ff(t.stateNode,a,n),qr(t,n),ee!==4&&(ee=2)),!1;var c=Error(r(520),{cause:a});if(c=ol(c,l),Vi===null?Vi=[c]:Vi.push(c),ee!==4&&(ee=2),e===null)return!0;a=ol(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=ff(l.stateNode,a,t),qr(l,t),!1;case 1:if(e=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Va===null||!Va.has(c))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Jd(n),Fd(n,t,l,a),qr(l,n),!1}l=l.return}while(l!==null);return!1}var of=Error(r(461)),se=!1;function Re(t,e,l,a){e.child=t===null?Ih(e,null,l,a):wn(e,t.child,l,a)}function kd(t,e,l,a,n){l=l.render;var c=e.ref;if("ref"in a){var f={};for(var h in a)h!=="ref"&&(f[h]=a[h])}else f=a;return zn(e),a=Vr(t,e,l,f,c,n),h=Kr(),t!==null&&!se?(Jr(t,e,n),ia(t,e,n)):(_t&&h&&Or(e),e.flags|=1,Re(t,e,a,n),e.child)}function Wd(t,e,l,a,n){if(t===null){var c=l.type;return typeof c=="function"&&!Ar(c)&&c.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=c,$d(t,e,c,a,n)):(t=Yc(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Sf(t,n)){var f=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ai,l(f,a)&&t.ref===e.ref)return ia(t,e,n)}return e.flags|=1,t=ta(c,a),t.ref=e.ref,t.return=e,e.child=t}function $d(t,e,l,a,n){if(t!==null){var c=t.memoizedProps;if(Ai(c,a)&&t.ref===e.ref)if(se=!1,e.pendingProps=a=c,Sf(t,n))(t.flags&131072)!==0&&(se=!0);else return e.lanes=t.lanes,ia(t,e,n)}return hf(t,e,l,a,n)}function Id(t,e,l,a){var n=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~c}else a=0,e.child=null;return Pd(t,e,c,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Kc(e,c!==null?c.cachePool:null),c!==null?ed(e,c):Qr(),ld(e);else return a=e.lanes=536870912,Pd(t,e,c!==null?c.baseLanes|l:l,l,a)}else c!==null?(Kc(e,c.cachePool),ed(e,c),Qa(),e.memoizedState=null):(t!==null&&Kc(e,null),Qr(),Qa());return Re(t,e,n,l),e.child}function Bi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Pd(t,e,l,a,n){var c=Hr();return c=c===null?null:{parent:ie._currentValue,pool:c},e.memoizedState={baseLanes:l,cachePool:c},t!==null&&Kc(e,null),Qr(),ld(e),t!==null&&Au(t,e,a,!0),e.childLanes=n,null}function ss(t,e){return e=fs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function tm(t,e,l){return wn(e,t.child,null,l),t=ss(e,e.pendingProps),t.flags|=2,al(e),e.memoizedState=null,t}function Tg(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_t){if(a.mode==="hidden")return t=ss(e,a),e.lanes=536870912,Bi(null,t);if(Xr(e),(t=Kt)?(t=hy(t,ml),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ua!==null?{id:wl,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},l=jh(t),l.return=e,e.child=l,Ae=e,Kt=null)):t=null,t===null)throw Ha(e);return e.lanes=536870912,null}return ss(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(Xr(e),n)if(e.flags&256)e.flags&=-257,e=tm(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(se||Au(t,e,l,!1),n=(l&t.childLanes)!==0,se||n){if(a=Xt,a!==null&&(f=cu(a,l),f!==0&&f!==c.retryLane))throw c.retryLane=f,Cn(t,f),Fe(a,t,f),of;Ss(),e=tm(t,e,l)}else t=c.treeContext,Kt=pl(f.nextSibling),Ae=e,_t=!0,La=null,ml=!1,t!==null&&Gh(e,t),e=ss(e,a),e.flags|=4096;return e}return t=ta(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function rs(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function hf(t,e,l,a,n){return zn(e),l=Vr(t,e,l,a,void 0,n),a=Kr(),t!==null&&!se?(Jr(t,e,n),ia(t,e,n)):(_t&&a&&Or(e),e.flags|=1,Re(t,e,l,n),e.child)}function em(t,e,l,a,n,c){return zn(e),e.updateQueue=null,l=nd(e,a,l,n),ad(t),a=Kr(),t!==null&&!se?(Jr(t,e,c),ia(t,e,c)):(_t&&a&&Or(e),e.flags|=1,Re(t,e,l,c),e.child)}function lm(t,e,l,a,n){if(zn(e),e.stateNode===null){var c=Su,f=l.contextType;typeof f=="object"&&f!==null&&(c=_e(f)),c=new l(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=rf,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},jr(e),f=l.contextType,c.context=typeof f=="object"&&f!==null?_e(f):Su,c.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(sf(e,l,f,a),c.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&rf.enqueueReplaceState(c,c.state,null),Ui(e,a,c,n),zi(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var h=e.memoizedProps,g=Bn(l,h);c.props=g;var x=c.context,L=l.contextType;f=Su,typeof L=="object"&&L!==null&&(f=_e(L));var w=l.getDerivedStateFromProps;L=typeof w=="function"||typeof c.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h||x!==f)&&Yd(e,c,a,f),ja=!1;var M=e.memoizedState;c.state=M,Ui(e,a,c,n),zi(),x=e.memoizedState,h||M!==x||ja?(typeof w=="function"&&(sf(e,l,w,a),x=e.memoizedState),(g=ja||Qd(e,l,g,a,M,x,f))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=x),c.props=a,c.state=x,c.context=f,a=g):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,Br(t,e),f=e.memoizedProps,L=Bn(l,f),c.props=L,w=e.pendingProps,M=c.context,x=l.contextType,g=Su,typeof x=="object"&&x!==null&&(g=_e(x)),h=l.getDerivedStateFromProps,(x=typeof h=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==w||M!==g)&&Yd(e,c,a,g),ja=!1,M=e.memoizedState,c.state=M,Ui(e,a,c,n),zi();var N=e.memoizedState;f!==w||M!==N||ja||t!==null&&t.dependencies!==null&&Zc(t.dependencies)?(typeof h=="function"&&(sf(e,l,h,a),N=e.memoizedState),(L=ja||Qd(e,l,L,a,M,N,g)||t!==null&&t.dependencies!==null&&Zc(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,N,g),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,N,g)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=N),c.props=a,c.state=N,c.context=g,a=L):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&M===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,rs(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=wn(e,t.child,null,n),e.child=wn(e,null,l,n)):Re(t,e,l,n),e.memoizedState=c.state,t=e.child):t=ia(t,e,n),t}function am(t,e,l,a){return Dn(),e.flags|=256,Re(t,e,l,a),e.child}var df={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mf(t){return{baseLanes:t,cachePool:Kh()}}function yf(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ul),t}function nm(t,e,l){var a=e.pendingProps,n=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(ne.current&2)!==0),f&&(n=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(_t){if(n?Ga(e):Qa(),(t=Kt)?(t=hy(t,ml),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ua!==null?{id:wl,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},l=jh(t),l.return=e,e.child=l,Ae=e,Kt=null)):t=null,t===null)throw Ha(e);return $f(t)?e.lanes=32:e.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(Qa(),n=e.mode,h=fs({mode:"hidden",children:h},n),a=Mn(a,n,l,null),h.return=e,a.return=e,h.sibling=a,e.child=h,a=e.child,a.memoizedState=mf(l),a.childLanes=yf(t,f,l),e.memoizedState=df,Bi(null,a)):(Ga(e),pf(e,h))}var g=t.memoizedState;if(g!==null&&(h=g.dehydrated,h!==null)){if(c)e.flags&256?(Ga(e),e.flags&=-257,e=vf(t,e,l)):e.memoizedState!==null?(Qa(),e.child=t.child,e.flags|=128,e=null):(Qa(),h=a.fallback,n=e.mode,a=fs({mode:"visible",children:a.children},n),h=Mn(h,n,l,null),h.flags|=2,a.return=e,h.return=e,a.sibling=h,e.child=a,wn(e,t.child,null,l),a=e.child,a.memoizedState=mf(l),a.childLanes=yf(t,f,l),e.memoizedState=df,e=Bi(null,a));else if(Ga(e),$f(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(r(419)),a.stack="",a.digest=f,Oi({value:a,source:null,stack:null}),e=vf(t,e,l)}else if(se||Au(t,e,l,!1),f=(l&t.childLanes)!==0,se||f){if(f=Xt,f!==null&&(a=cu(f,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,Cn(t,a),Fe(f,t,a),of;Wf(h)||Ss(),e=vf(t,e,l)}else Wf(h)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Kt=pl(h.nextSibling),Ae=e,_t=!0,La=null,ml=!1,t!==null&&Gh(e,t),e=pf(e,a.children),e.flags|=4096);return e}return n?(Qa(),h=a.fallback,n=e.mode,g=t.child,x=g.sibling,a=ta(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,x!==null?h=ta(x,h):(h=Mn(h,n,l,null),h.flags|=2),h.return=e,a.return=e,a.sibling=h,e.child=a,Bi(null,a),a=e.child,h=t.child.memoizedState,h===null?h=mf(l):(n=h.cachePool,n!==null?(g=ie._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=Kh(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=yf(t,f,l),e.memoizedState=df,Bi(t.child,a)):(Ga(e),l=t.child,t=l.sibling,l=ta(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function pf(t,e){return e=fs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function fs(t,e){return t=el(22,t,null,e),t.lanes=0,t}function vf(t,e,l){return wn(e,t.child,null,l),t=pf(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function um(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Nr(t.return,e,l)}function gf(t,e,l,a,n,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=c)}function im(t,e,l){var a=e.pendingProps,n=a.revealOrder,c=a.tail;a=a.children;var f=ne.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,k(ne,f),Re(t,e,a,l),a=_t?Ri:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&um(t,l,e);else if(t.tag===19)um(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Ic(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),gf(e,!1,n,l,c,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Ic(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}gf(e,!0,l,null,c,a);break;case"together":gf(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ia(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Za|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Au(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=ta(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ta(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Sf(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Zc(t)))}function Ag(t,e,l){switch(e.tag){case 3:ge(e,e.stateNode.containerInfo),wa(e,ie,t.memoizedState.cache),Dn();break;case 27:case 5:Aa(e);break;case 4:ge(e,e.stateNode.containerInfo);break;case 10:wa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Xr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Ga(e),e.flags|=128,null):(l&e.child.childLanes)!==0?nm(t,e,l):(Ga(e),t=ia(t,e,l),t!==null?t.sibling:null);Ga(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Au(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return im(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),k(ne,ne.current),a)break;return null;case 22:return e.lanes=0,Id(t,e,l,e.pendingProps);case 24:wa(e,ie,t.memoizedState.cache)}return ia(t,e,l)}function cm(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)se=!0;else{if(!Sf(t,l)&&(e.flags&128)===0)return se=!1,Ag(t,e,l);se=(t.flags&131072)!==0}else se=!1,_t&&(e.flags&1048576)!==0&&qh(e,Ri,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ln(e.elementType),e.type=t,typeof t=="function")Ar(t)?(a=Bn(t,a),e.tag=1,e=lm(null,e,t,a,l)):(e.tag=0,e=hf(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===X){e.tag=11,e=kd(null,e,t,a,l);break t}else if(n===et){e.tag=14,e=Wd(null,e,t,a,l);break t}}throw e=oe(t)||t,Error(r(306,e,""))}}return e;case 0:return hf(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Bn(a,e.pendingProps),lm(t,e,a,n,l);case 3:t:{if(ge(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var c=e.memoizedState;n=c.element,Br(t,e),Ui(e,a,null,l);var f=e.memoizedState;if(a=f.cache,wa(e,ie,a),a!==c.cache&&zr(e,[ie],l,!0),zi(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=am(t,e,a,l);break t}else if(a!==n){n=ol(Error(r(424)),e),Oi(n),e=am(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Kt=pl(t.firstChild),Ae=e,_t=!0,La=null,ml=!0,l=Ih(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Dn(),a===n){e=ia(t,e,l);break t}Re(t,e,a,l)}e=e.child}return e;case 26:return rs(t,e),t===null?(l=gy(e.type,null,e.pendingProps,null))?e.memoizedState=l:_t||(l=e.type,t=e.pendingProps,a=Os(pt.current).createElement(l),a[de]=e,a[gt]=t,Oe(a,l,t),ae(a),e.stateNode=a):e.memoizedState=gy(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Aa(e),t===null&&_t&&(a=e.stateNode=yy(e.type,e.pendingProps,pt.current),Ae=e,ml=!0,n=Kt,ka(e.type)?(If=n,Kt=pl(a.firstChild)):Kt=n),Re(t,e,e.pendingProps.children,l),rs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_t&&((n=a=Kt)&&(a=Pg(a,e.type,e.pendingProps,ml),a!==null?(e.stateNode=a,Ae=e,Kt=pl(a.firstChild),ml=!1,n=!0):n=!1),n||Ha(e)),Aa(e),n=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,Jf(n,c)?a=null:f!==null&&Jf(n,f)&&(e.flags|=32),e.memoizedState!==null&&(n=Vr(t,e,mg,null,null,l),Pi._currentValue=n),rs(t,e),Re(t,e,a,l),e.child;case 6:return t===null&&_t&&((t=l=Kt)&&(l=t0(l,e.pendingProps,ml),l!==null?(e.stateNode=l,Ae=e,Kt=null,t=!0):t=!1),t||Ha(e)),null;case 13:return nm(t,e,l);case 4:return ge(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=wn(e,null,a,l):Re(t,e,a,l),e.child;case 11:return kd(t,e,e.type,e.pendingProps,l);case 7:return Re(t,e,e.pendingProps,l),e.child;case 8:return Re(t,e,e.pendingProps.children,l),e.child;case 12:return Re(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,wa(e,e.type,a.value),Re(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,zn(e),n=_e(n),a=a(n),e.flags|=1,Re(t,e,a,l),e.child;case 14:return Wd(t,e,e.type,e.pendingProps,l);case 15:return $d(t,e,e.type,e.pendingProps,l);case 19:return im(t,e,l);case 31:return Tg(t,e,l);case 22:return Id(t,e,l,e.pendingProps);case 24:return zn(e),a=_e(ie),t===null?(n=Hr(),n===null&&(n=Xt,c=Ur(),n.pooledCache=c,c.refCount++,c!==null&&(n.pooledCacheLanes|=l),n=c),e.memoizedState={parent:a,cache:n},jr(e),wa(e,ie,n)):((t.lanes&l)!==0&&(Br(t,e),Ui(e,null,null,l),zi()),n=t.memoizedState,c=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),wa(e,ie,a)):(a=c.cache,wa(e,ie,a),a!==n.cache&&zr(e,[ie],l,!0))),Re(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function ca(t){t.flags|=4}function bf(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Lm())t.flags|=8192;else throw Hn=Fc,wr}else t.flags&=-16777217}function sm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ay(e))if(Lm())t.flags|=8192;else throw Hn=Fc,wr}function os(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$e():536870912,t.lanes|=e,Hu|=e)}function qi(t,e){if(!_t)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Jt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function _g(t,e,l){var a=e.pendingProps;switch(xr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jt(e),null;case 1:return Jt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),aa(ie),Wt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Tu(e)?ca(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Mr())),Jt(e),null;case 26:var n=e.type,c=e.memoizedState;return t===null?(ca(e),c!==null?(Jt(e),sm(e,c)):(Jt(e),bf(e,n,null,a,l))):c?c!==t.memoizedState?(ca(e),Jt(e),sm(e,c)):(Jt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&ca(e),Jt(e),bf(e,n,t,a,l)),null;case 27:if(Yt(e),l=pt.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&ca(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Jt(e),null}t=P.current,Tu(e)?Qh(e):(t=yy(n,a,l),e.stateNode=t,ca(e))}return Jt(e),null;case 5:if(Yt(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&ca(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Jt(e),null}if(c=P.current,Tu(e))Qh(e);else{var f=Os(pt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}c[de]=e,c[gt]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(Oe(c,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&ca(e)}}return Jt(e),bf(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&ca(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=pt.current,Tu(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Ae,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[de]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||ny(t.nodeValue,l)),t||Ha(e,!0)}else t=Os(t).createTextNode(a),t[de]=e,e.stateNode=t}return Jt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=Tu(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[de]=e}else Dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Jt(e),t=!1}else l=Mr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(al(e),e):(al(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Jt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=Tu(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[de]=e}else Dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Jt(e),n=!1}else n=Mr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(al(e),e):(al(e),null)}return al(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),os(e,e.updateQueue),Jt(e),null);case 4:return Wt(),t===null&&Yf(e.stateNode.containerInfo),Jt(e),null;case 10:return aa(e.type),Jt(e),null;case 19:if(j(ne),a=e.memoizedState,a===null)return Jt(e),null;if(n=(e.flags&128)!==0,c=a.rendering,c===null)if(n)qi(a,!1);else{if(ee!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Ic(t),c!==null){for(e.flags|=128,qi(a,!1),t=c.updateQueue,e.updateQueue=t,os(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)wh(l,t),l=l.sibling;return k(ne,ne.current&1|2),_t&&ea(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&he()>ps&&(e.flags|=128,n=!0,qi(a,!1),e.lanes=4194304)}else{if(!n)if(t=Ic(c),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,os(e,t),qi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!_t)return Jt(e),null}else 2*he()-a.renderingStartTime>ps&&l!==536870912&&(e.flags|=128,n=!0,qi(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=he(),t.sibling=null,l=ne.current,k(ne,n?l&1|2:l&1),_t&&ea(e,a.treeForkCount),t):(Jt(e),null);case 22:case 23:return al(e),Yr(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Jt(e),e.subtreeFlags&6&&(e.flags|=8192)):Jt(e),l=e.updateQueue,l!==null&&os(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&j(Un),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),aa(ie),Jt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Rg(t,e){switch(xr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return aa(ie),Wt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Yt(e),null;case 31:if(e.memoizedState!==null){if(al(e),e.alternate===null)throw Error(r(340));Dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(al(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(ne),null;case 4:return Wt(),null;case 10:return aa(e.type),null;case 22:case 23:return al(e),Yr(),t!==null&&j(Un),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return aa(ie),null;case 25:return null;default:return null}}function rm(t,e){switch(xr(e),e.tag){case 3:aa(ie),Wt();break;case 26:case 27:case 5:Yt(e);break;case 4:Wt();break;case 31:e.memoizedState!==null&&al(e);break;case 13:al(e);break;case 19:j(ne);break;case 10:aa(e.type);break;case 22:case 23:al(e),Yr(),t!==null&&j(Un);break;case 24:aa(ie)}}function Gi(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var c=l.create,f=l.inst;a=c(),f.destroy=a}l=l.next}while(l!==n)}}catch(h){jt(e,e.return,h)}}function Ya(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var c=n.next;a=c;do{if((a.tag&t)===t){var f=a.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,n=e;var g=l,x=h;try{x()}catch(L){jt(n,g,L)}}}a=a.next}while(a!==c)}}catch(L){jt(e,e.return,L)}}function fm(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{td(e,l)}catch(a){jt(t,t.return,a)}}}function om(t,e,l){l.props=Bn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){jt(t,e,a)}}function Qi(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){jt(t,e,n)}}function Bl(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){jt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){jt(t,e,n)}else l.current=null}function hm(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){jt(t,t.return,n)}}function Ef(t,e,l){try{var a=t.stateNode;Jg(a,t.type,l,e),a[gt]=e}catch(n){jt(t,t.return,n)}}function dm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ka(t.type)||t.tag===4}function Tf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||dm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ka(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Af(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Pe));else if(a!==4&&(a===27&&ka(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Af(t,e,l),t=t.sibling;t!==null;)Af(t,e,l),t=t.sibling}function hs(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&ka(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(hs(t,e,l),t=t.sibling;t!==null;)hs(t,e,l),t=t.sibling}function mm(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Oe(e,a,l),e[de]=t,e[gt]=l}catch(c){jt(t,t.return,c)}}var sa=!1,re=!1,_f=!1,ym=typeof WeakSet=="function"?WeakSet:Set,Se=null;function Og(t,e){if(t=t.containerInfo,Vf=Us,t=xh(t),pr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break t}var f=0,h=-1,g=-1,x=0,L=0,w=t,M=null;e:for(;;){for(var N;w!==l||n!==0&&w.nodeType!==3||(h=f+n),w!==c||a!==0&&w.nodeType!==3||(g=f+a),w.nodeType===3&&(f+=w.nodeValue.length),(N=w.firstChild)!==null;)M=w,w=N;for(;;){if(w===t)break e;if(M===l&&++x===n&&(h=f),M===c&&++L===a&&(g=f),(N=w.nextSibling)!==null)break;w=M,M=w.parentNode}w=N}l=h===-1||g===-1?null:{start:h,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(Kf={focusedElem:t,selectionRange:l},Us=!1,Se=e;Se!==null;)if(e=Se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Se=t;else for(;Se!==null;){switch(e=Se,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,l=e,n=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var I=Bn(l.type,n);t=a.getSnapshotBeforeUpdate(I,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(st){jt(l,l.return,st)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)kf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":kf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Se=t;break}Se=e.return}}function pm(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:fa(t,l),a&4&&Gi(5,l);break;case 1:if(fa(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){jt(l,l.return,f)}else{var n=Bn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){jt(l,l.return,f)}}a&64&&fm(l),a&512&&Qi(l,l.return);break;case 3:if(fa(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{td(t,e)}catch(f){jt(l,l.return,f)}}break;case 27:e===null&&a&4&&mm(l);case 26:case 5:fa(t,l),e===null&&a&4&&hm(l),a&512&&Qi(l,l.return);break;case 12:fa(t,l);break;case 31:fa(t,l),a&4&&Sm(t,l);break;case 13:fa(t,l),a&4&&bm(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Hg.bind(null,l),e0(t,l))));break;case 22:if(a=l.memoizedState!==null||sa,!a){e=e!==null&&e.memoizedState!==null||re,n=sa;var c=re;sa=a,(re=e)&&!c?oa(t,l,(l.subtreeFlags&8772)!==0):fa(t,l),sa=n,re=c}break;case 30:break;default:fa(t,l)}}function vm(t){var e=t.alternate;e!==null&&(t.alternate=null,vm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&yi(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var kt=null,Ze=!1;function ra(t,e,l){for(l=l.child;l!==null;)gm(t,e,l),l=l.sibling}function gm(t,e,l){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(Ra,l)}catch{}switch(l.tag){case 26:re||Bl(l,e),ra(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:re||Bl(l,e);var a=kt,n=Ze;ka(l.type)&&(kt=l.stateNode,Ze=!1),ra(t,e,l),Wi(l.stateNode),kt=a,Ze=n;break;case 5:re||Bl(l,e);case 6:if(a=kt,n=Ze,kt=null,ra(t,e,l),kt=a,Ze=n,kt!==null)if(Ze)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(l.stateNode)}catch(c){jt(l,e,c)}else try{kt.removeChild(l.stateNode)}catch(c){jt(l,e,c)}break;case 18:kt!==null&&(Ze?(t=kt,fy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Xu(t)):fy(kt,l.stateNode));break;case 4:a=kt,n=Ze,kt=l.stateNode.containerInfo,Ze=!0,ra(t,e,l),kt=a,Ze=n;break;case 0:case 11:case 14:case 15:Ya(2,l,e),re||Ya(4,l,e),ra(t,e,l);break;case 1:re||(Bl(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&om(l,e,a)),ra(t,e,l);break;case 21:ra(t,e,l);break;case 22:re=(a=re)||l.memoizedState!==null,ra(t,e,l),re=a;break;default:ra(t,e,l)}}function Sm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Xu(t)}catch(l){jt(e,e.return,l)}}}function bm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Xu(t)}catch(l){jt(e,e.return,l)}}function xg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ym),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ym),e;default:throw Error(r(435,t.tag))}}function ds(t,e){var l=xg(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=wg.bind(null,t,a);a.then(n,n)}})}function Ve(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],c=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(ka(h.type)){kt=h.stateNode,Ze=!1;break t}break;case 5:kt=h.stateNode,Ze=!1;break t;case 3:case 4:kt=h.stateNode.containerInfo,Ze=!0;break t}h=h.return}if(kt===null)throw Error(r(160));gm(c,f,n),kt=null,Ze=!1,c=n.alternate,c!==null&&(c.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Em(e,t),e=e.sibling}var Rl=null;function Em(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ve(e,t),Ke(t),a&4&&(Ya(3,t,t.return),Gi(3,t),Ya(5,t,t.return));break;case 1:Ve(e,t),Ke(t),a&512&&(re||l===null||Bl(l,l.return)),a&64&&sa&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Rl;if(Ve(e,t),Ke(t),a&512&&(re||l===null||Bl(l,l.return)),a&4){var c=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":c=n.getElementsByTagName("title")[0],(!c||c[Ma]||c[de]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=n.createElement(a),n.head.insertBefore(c,n.querySelector("head > title"))),Oe(c,a,l),c[de]=t,ae(c),a=c;break t;case"link":var f=Ey("link","href",n).get(a+(l.href||""));if(f){for(var h=0;h<f.length;h++)if(c=f[h],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(h,1);break e}}c=n.createElement(a),Oe(c,a,l),n.head.appendChild(c);break;case"meta":if(f=Ey("meta","content",n).get(a+(l.content||""))){for(h=0;h<f.length;h++)if(c=f[h],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(h,1);break e}}c=n.createElement(a),Oe(c,a,l),n.head.appendChild(c);break;default:throw Error(r(468,a))}c[de]=t,ae(c),a=c}t.stateNode=a}else Ty(n,t.type,t.stateNode);else t.stateNode=by(n,a,t.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Ty(n,t.type,t.stateNode):by(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Ef(t,t.memoizedProps,l.memoizedProps)}break;case 27:Ve(e,t),Ke(t),a&512&&(re||l===null||Bl(l,l.return)),l!==null&&a&4&&Ef(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Ve(e,t),Ke(t),a&512&&(re||l===null||Bl(l,l.return)),t.flags&32){n=t.stateNode;try{V(n,"")}catch(I){jt(t,t.return,I)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Ef(t,n,l!==null?l.memoizedProps:n)),a&1024&&(_f=!0);break;case 6:if(Ve(e,t),Ke(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(I){jt(t,t.return,I)}}break;case 3:if(Ms=null,n=Rl,Rl=xs(e.containerInfo),Ve(e,t),Rl=n,Ke(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Xu(e.containerInfo)}catch(I){jt(t,t.return,I)}_f&&(_f=!1,Tm(t));break;case 4:a=Rl,Rl=xs(t.stateNode.containerInfo),Ve(e,t),Ke(t),Rl=a;break;case 12:Ve(e,t),Ke(t);break;case 31:Ve(e,t),Ke(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ds(t,a)));break;case 13:Ve(e,t),Ke(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ys=he()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ds(t,a)));break;case 22:n=t.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,x=sa,L=re;if(sa=x||n,re=L||g,Ve(e,t),re=L,sa=x,Ke(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||g||sa||re||qn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){g=l=e;try{if(c=g.stateNode,n)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=g.stateNode;var w=g.memoizedProps.style,M=w!=null&&w.hasOwnProperty("display")?w.display:null;h.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(I){jt(g,g.return,I)}}}else if(e.tag===6){if(l===null){g=e;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(I){jt(g,g.return,I)}}}else if(e.tag===18){if(l===null){g=e;try{var N=g.stateNode;n?oy(N,!0):oy(g.stateNode,!1)}catch(I){jt(g,g.return,I)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ds(t,l))));break;case 19:Ve(e,t),Ke(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,ds(t,a)));break;case 30:break;case 21:break;default:Ve(e,t),Ke(t)}}function Ke(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(dm(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,c=Tf(t);hs(t,c,n);break;case 5:var f=l.stateNode;l.flags&32&&(V(f,""),l.flags&=-33);var h=Tf(t);hs(t,h,f);break;case 3:case 4:var g=l.stateNode.containerInfo,x=Tf(t);Af(t,x,g);break;default:throw Error(r(161))}}catch(L){jt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Tm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Tm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fa(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)pm(t,e.alternate,e),e=e.sibling}function qn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ya(4,e,e.return),qn(e);break;case 1:Bl(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&om(e,e.return,l),qn(e);break;case 27:Wi(e.stateNode);case 26:case 5:Bl(e,e.return),qn(e);break;case 22:e.memoizedState===null&&qn(e);break;case 30:qn(e);break;default:qn(e)}t=t.sibling}}function oa(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:oa(n,c,l),Gi(4,c);break;case 1:if(oa(n,c,l),a=c,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(x){jt(a,a.return,x)}if(a=c,n=a.updateQueue,n!==null){var h=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)Ph(g[n],h)}catch(x){jt(a,a.return,x)}}l&&f&64&&fm(c),Qi(c,c.return);break;case 27:mm(c);case 26:case 5:oa(n,c,l),l&&a===null&&f&4&&hm(c),Qi(c,c.return);break;case 12:oa(n,c,l);break;case 31:oa(n,c,l),l&&f&4&&Sm(n,c);break;case 13:oa(n,c,l),l&&f&4&&bm(n,c);break;case 22:c.memoizedState===null&&oa(n,c,l),Qi(c,c.return);break;case 30:break;default:oa(n,c,l)}e=e.sibling}}function Rf(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&xi(l))}function Of(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&xi(t))}function Ol(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Am(t,e,l,a),e=e.sibling}function Am(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ol(t,e,l,a),n&2048&&Gi(9,e);break;case 1:Ol(t,e,l,a);break;case 3:Ol(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&xi(t)));break;case 12:if(n&2048){Ol(t,e,l,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,h=c.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){jt(e,e.return,g)}}else Ol(t,e,l,a);break;case 31:Ol(t,e,l,a);break;case 13:Ol(t,e,l,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Ol(t,e,l,a):Yi(t,e):c._visibility&2?Ol(t,e,l,a):(c._visibility|=2,zu(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Rf(f,e);break;case 24:Ol(t,e,l,a),n&2048&&Of(e.alternate,e);break;default:Ol(t,e,l,a)}}function zu(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,h=l,g=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:zu(c,f,h,g,n),Gi(8,f);break;case 23:break;case 22:var L=f.stateNode;f.memoizedState!==null?L._visibility&2?zu(c,f,h,g,n):Yi(c,f):(L._visibility|=2,zu(c,f,h,g,n)),n&&x&2048&&Rf(f.alternate,f);break;case 24:zu(c,f,h,g,n),n&&x&2048&&Of(f.alternate,f);break;default:zu(c,f,h,g,n)}e=e.sibling}}function Yi(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Yi(l,a),n&2048&&Rf(a.alternate,a);break;case 24:Yi(l,a),n&2048&&Of(a.alternate,a);break;default:Yi(l,a)}e=e.sibling}}var Xi=8192;function Uu(t,e,l){if(t.subtreeFlags&Xi)for(t=t.child;t!==null;)_m(t,e,l),t=t.sibling}function _m(t,e,l){switch(t.tag){case 26:Uu(t,e,l),t.flags&Xi&&t.memoizedState!==null&&d0(l,Rl,t.memoizedState,t.memoizedProps);break;case 5:Uu(t,e,l);break;case 3:case 4:var a=Rl;Rl=xs(t.stateNode.containerInfo),Uu(t,e,l),Rl=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Xi,Xi=16777216,Uu(t,e,l),Xi=a):Uu(t,e,l));break;default:Uu(t,e,l)}}function Rm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Zi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Se=a,xm(a,t)}Rm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Om(t),t=t.sibling}function Om(t){switch(t.tag){case 0:case 11:case 15:Zi(t),t.flags&2048&&Ya(9,t,t.return);break;case 3:Zi(t);break;case 12:Zi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ms(t)):Zi(t);break;default:Zi(t)}}function ms(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Se=a,xm(a,t)}Rm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ya(8,e,e.return),ms(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,ms(e));break;default:ms(e)}t=t.sibling}}function xm(t,e){for(;Se!==null;){var l=Se;switch(l.tag){case 0:case 11:case 15:Ya(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:xi(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Se=a;else t:for(l=t;Se!==null;){a=Se;var n=a.sibling,c=a.return;if(vm(a),a===l){Se=null;break t}if(n!==null){n.return=c,Se=n;break t}Se=c}}}var Cg={getCacheForType:function(t){var e=_e(ie),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return _e(ie).controller.signal}},Mg=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Xt=null,St=null,Tt=0,wt=0,nl=null,Xa=!1,Lu=!1,xf=!1,ha=0,ee=0,Za=0,Gn=0,Cf=0,ul=0,Hu=0,Vi=null,Je=null,Mf=!1,ys=0,Cm=0,ps=1/0,vs=null,Va=null,pe=0,Ka=null,wu=null,da=0,Df=0,Nf=null,Mm=null,Ki=0,zf=null;function il(){return(Nt&2)!==0&&Tt!==0?Tt&-Tt:U.T!==null?Bf():Rc()}function Dm(){if(ul===0)if((Tt&536870912)===0||_t){var t=pn;pn<<=1,(pn&3932160)===0&&(pn=262144),ul=t}else ul=536870912;return t=ll.current,t!==null&&(t.flags|=32),ul}function Fe(t,e,l){(t===Xt&&(wt===2||wt===9)||t.cancelPendingCommit!==null)&&(ju(t,0),Ja(t,Tt,ul,!1)),Wl(t,l),((Nt&2)===0||t!==Xt)&&(t===Xt&&((Nt&2)===0&&(Gn|=l),ee===4&&Ja(t,Tt,ul,!1)),ql(t))}function Nm(t,e,l){if((Nt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Nl(t,e),n=a?zg(t,e):Lf(t,e,!0),c=a;do{if(n===0){Lu&&!a&&Ja(t,e,0,!1);break}else{if(l=t.current.alternate,c&&!Dg(l)){n=Lf(t,e,!1),c=!1;continue}if(n===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;n=Vi;var g=h.current.memoizedState.isDehydrated;if(g&&(ju(h,f).flags|=256),f=Lf(h,f,!1),f!==2){if(xf&&!g){h.errorRecoveryDisabledLanes|=c,Gn|=c,n=4;break t}c=Je,Je=n,c!==null&&(Je===null?Je=c:Je.push.apply(Je,c))}n=f}if(c=!1,n!==2)continue}}if(n===1){ju(t,0),Ja(t,e,0,!0);break}t:{switch(a=t,c=n,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ja(a,e,ul,!Xa);break t;case 2:Je=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=ys+300-he(),10<n)){if(Ja(a,e,ul,!Xa),gn(a,0,!0)!==0)break t;da=e,a.timeoutHandle=sy(zm.bind(null,a,l,Je,vs,Mf,e,ul,Gn,Hu,Xa,c,"Throttled",-0,0),n);break t}zm(a,l,Je,vs,Mf,e,ul,Gn,Hu,Xa,c,null,-0,0)}}break}while(!0);ql(t)}function zm(t,e,l,a,n,c,f,h,g,x,L,w,M,N){if(t.timeoutHandle=-1,w=e.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pe},_m(e,c,w);var I=(c&62914560)===c?ys-he():(c&4194048)===c?Cm-he():0;if(I=m0(w,I),I!==null){da=c,t.cancelPendingCommit=I(Gm.bind(null,t,e,c,l,a,n,f,h,g,L,w,null,M,N)),Ja(t,c,f,!x);return}}Gm(t,e,c,l,a,n,f,h,g)}function Dg(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],c=n.getSnapshot;n=n.value;try{if(!tl(c(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ja(t,e,l,a){e&=~Cf,e&=~Gn,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var c=31-Te(n),f=1<<c;a[c]=-1,n&=~f}l!==0&&_c(t,l,e)}function gs(){return(Nt&6)===0?(Ji(0),!1):!0}function Uf(){if(St!==null){if(wt===0)var t=St.return;else t=St,la=Nn=null,Fr(t),xu=null,Mi=0,t=St;for(;t!==null;)rm(t.alternate,t),t=t.return;St=null}}function ju(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Wg(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),da=0,Uf(),Xt=t,St=l=ta(t.current,null),Tt=e,wt=0,nl=null,Xa=!1,Lu=Nl(t,e),xf=!1,Hu=ul=Cf=Gn=Za=ee=0,Je=Vi=null,Mf=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Te(a),c=1<<n;e|=t[n],a&=~c}return ha=e,qc(),l}function Um(t,e){dt=null,U.H=ji,e===Ou||e===Jc?(e=kh(),wt=3):e===wr?(e=kh(),wt=4):wt=e===of?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,nl=e,St===null&&(ee=1,cs(t,ol(e,t.current)))}function Lm(){var t=ll.current;return t===null?!0:(Tt&4194048)===Tt?yl===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===yl:!1}function Hm(){var t=U.H;return U.H=ji,t===null?ji:t}function wm(){var t=U.A;return U.A=Cg,t}function Ss(){ee=4,Xa||(Tt&4194048)!==Tt&&ll.current!==null||(Lu=!0),(Za&134217727)===0&&(Gn&134217727)===0||Xt===null||Ja(Xt,Tt,ul,!1)}function Lf(t,e,l){var a=Nt;Nt|=2;var n=Hm(),c=wm();(Xt!==t||Tt!==e)&&(vs=null,ju(t,e)),e=!1;var f=ee;t:do try{if(wt!==0&&St!==null){var h=St,g=nl;switch(wt){case 8:Uf(),f=6;break t;case 3:case 2:case 9:case 6:ll.current===null&&(e=!0);var x=wt;if(wt=0,nl=null,Bu(t,h,g,x),l&&Lu){f=0;break t}break;default:x=wt,wt=0,nl=null,Bu(t,h,g,x)}}Ng(),f=ee;break}catch(L){Um(t,L)}while(!0);return e&&t.shellSuspendCounter++,la=Nn=null,Nt=a,U.H=n,U.A=c,St===null&&(Xt=null,Tt=0,qc()),f}function Ng(){for(;St!==null;)jm(St)}function zg(t,e){var l=Nt;Nt|=2;var a=Hm(),n=wm();Xt!==t||Tt!==e?(vs=null,ps=he()+500,ju(t,e)):Lu=Nl(t,e);t:do try{if(wt!==0&&St!==null){e=St;var c=nl;e:switch(wt){case 1:wt=0,nl=null,Bu(t,e,c,1);break;case 2:case 9:if(Jh(c)){wt=0,nl=null,Bm(e);break}e=function(){wt!==2&&wt!==9||Xt!==t||(wt=7),ql(t)},c.then(e,e);break t;case 3:wt=7;break t;case 4:wt=5;break t;case 7:Jh(c)?(wt=0,nl=null,Bm(e)):(wt=0,nl=null,Bu(t,e,c,7));break;case 5:var f=null;switch(St.tag){case 26:f=St.memoizedState;case 5:case 27:var h=St;if(f?Ay(f):h.stateNode.complete){wt=0,nl=null;var g=h.sibling;if(g!==null)St=g;else{var x=h.return;x!==null?(St=x,bs(x)):St=null}break e}}wt=0,nl=null,Bu(t,e,c,5);break;case 6:wt=0,nl=null,Bu(t,e,c,6);break;case 8:Uf(),ee=6;break t;default:throw Error(r(462))}}Ug();break}catch(L){Um(t,L)}while(!0);return la=Nn=null,U.H=a,U.A=n,Nt=l,St!==null?0:(Xt=null,Tt=0,qc(),ee)}function Ug(){for(;St!==null&&!Ac();)jm(St)}function jm(t){var e=cm(t.alternate,t,ha);t.memoizedProps=t.pendingProps,e===null?bs(t):St=e}function Bm(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=em(l,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=em(l,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:Fr(e);default:rm(l,e),e=St=wh(e,ha),e=cm(l,e,ha)}t.memoizedProps=t.pendingProps,e===null?bs(t):St=e}function Bu(t,e,l,a){la=Nn=null,Fr(e),xu=null,Mi=0;var n=e.return;try{if(Eg(t,n,e,l,Tt)){ee=1,cs(t,ol(l,t.current)),St=null;return}}catch(c){if(n!==null)throw St=n,c;ee=1,cs(t,ol(l,t.current)),St=null;return}e.flags&32768?(_t||a===1?t=!0:Lu||(Tt&536870912)!==0?t=!1:(Xa=t=!0,(a===2||a===9||a===3||a===6)&&(a=ll.current,a!==null&&a.tag===13&&(a.flags|=16384))),qm(e,t)):bs(e)}function bs(t){var e=t;do{if((e.flags&32768)!==0){qm(e,Xa);return}t=e.return;var l=_g(e.alternate,e,ha);if(l!==null){St=l;return}if(e=e.sibling,e!==null){St=e;return}St=e=t}while(e!==null);ee===0&&(ee=5)}function qm(t,e){do{var l=Rg(t.alternate,t);if(l!==null){l.flags&=32767,St=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){St=t;return}St=t=l}while(t!==null);ee=6,St=null}function Gm(t,e,l,a,n,c,f,h,g){t.cancelPendingCommit=null;do Es();while(pe!==0);if((Nt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=Er,fi(t,l,c,f,h,g),t===Xt&&(St=Xt=null,Tt=0),wu=e,Ka=t,da=l,Df=c,Nf=n,Mm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jg(_a,function(){return Vm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,n=F.p,F.p=2,f=Nt,Nt|=4;try{Og(t,e,l)}finally{Nt=f,F.p=n,U.T=a}}pe=1,Qm(),Ym(),Xm()}}function Qm(){if(pe===1){pe=0;var t=Ka,e=wu,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var a=F.p;F.p=2;var n=Nt;Nt|=4;try{Em(e,t);var c=Kf,f=xh(t.containerInfo),h=c.focusedElem,g=c.selectionRange;if(f!==h&&h&&h.ownerDocument&&Oh(h.ownerDocument.documentElement,h)){if(g!==null&&pr(h)){var x=g.start,L=g.end;if(L===void 0&&(L=x),"selectionStart"in h)h.selectionStart=x,h.selectionEnd=Math.min(L,h.value.length);else{var w=h.ownerDocument||document,M=w&&w.defaultView||window;if(M.getSelection){var N=M.getSelection(),I=h.textContent.length,st=Math.min(g.start,I),Qt=g.end===void 0?st:Math.min(g.end,I);!N.extend&&st>Qt&&(f=Qt,Qt=st,st=f);var _=Rh(h,st),T=Rh(h,Qt);if(_&&T&&(N.rangeCount!==1||N.anchorNode!==_.node||N.anchorOffset!==_.offset||N.focusNode!==T.node||N.focusOffset!==T.offset)){var O=w.createRange();O.setStart(_.node,_.offset),N.removeAllRanges(),st>Qt?(N.addRange(O),N.extend(T.node,T.offset)):(O.setEnd(T.node,T.offset),N.addRange(O))}}}}for(w=[],N=h;N=N.parentNode;)N.nodeType===1&&w.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<w.length;h++){var H=w[h];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Us=!!Vf,Kf=Vf=null}finally{Nt=n,F.p=a,U.T=l}}t.current=e,pe=2}}function Ym(){if(pe===2){pe=0;var t=Ka,e=wu,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var a=F.p;F.p=2;var n=Nt;Nt|=4;try{pm(t,e.alternate,e)}finally{Nt=n,F.p=a,U.T=l}}pe=3}}function Xm(){if(pe===4||pe===3){pe=0,Dl();var t=Ka,e=wu,l=da,a=Mm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?pe=5:(pe=0,wu=Ka=null,Zm(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Va=null),Sn(l),e=e.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(Ra,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=U.T,n=F.p,F.p=2,U.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var h=a[f];c(h.value,{componentStack:h.stack})}}finally{U.T=e,F.p=n}}(da&3)!==0&&Es(),ql(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===zf?Ki++:(Ki=0,zf=t):Ki=0,Ji(0)}}function Zm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,xi(e)))}function Es(){return Qm(),Ym(),Xm(),Vm()}function Vm(){if(pe!==5)return!1;var t=Ka,e=Df;Df=0;var l=Sn(da),a=U.T,n=F.p;try{F.p=32>l?32:l,U.T=null,l=Nf,Nf=null;var c=Ka,f=da;if(pe=0,wu=Ka=null,da=0,(Nt&6)!==0)throw Error(r(331));var h=Nt;if(Nt|=4,Om(c.current),Am(c,c.current,f,l),Nt=h,Ji(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(Ra,c)}catch{}return!0}finally{F.p=n,U.T=a,Zm(t,e)}}function Km(t,e,l){e=ol(l,e),e=ff(t.stateNode,e,2),t=qa(t,e,2),t!==null&&(Wl(t,2),ql(t))}function jt(t,e,l){if(t.tag===3)Km(t,t,l);else for(;e!==null;){if(e.tag===3){Km(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Va===null||!Va.has(a))){t=ol(l,t),l=Jd(2),a=qa(e,l,2),a!==null&&(Fd(l,a,e,t),Wl(a,2),ql(a));break}}e=e.return}}function Hf(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Mg;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(xf=!0,n.add(l),t=Lg.bind(null,t,e,l),e.then(t,t))}function Lg(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Xt===t&&(Tt&l)===l&&(ee===4||ee===3&&(Tt&62914560)===Tt&&300>he()-ys?(Nt&2)===0&&ju(t,0):Cf|=l,Hu===Tt&&(Hu=0)),ql(t)}function Jm(t,e){e===0&&(e=$e()),t=Cn(t,e),t!==null&&(Wl(t,e),ql(t))}function Hg(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Jm(t,l)}function wg(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Jm(t,l)}function jg(t,e){return yn(t,e)}var Ts=null,qu=null,wf=!1,As=!1,jf=!1,Fa=0;function ql(t){t!==qu&&t.next===null&&(qu===null?Ts=qu=t:qu=qu.next=t),As=!0,wf||(wf=!0,qg())}function Ji(t,e){if(!jf&&As){jf=!0;do for(var l=!1,a=Ts;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var c=0;else{var f=a.suspendedLanes,h=a.pingedLanes;c=(1<<31-Te(42|t)+1)-1,c&=n&~(f&~h),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,$m(a,c))}else c=Tt,c=gn(a,a===Xt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Nl(a,c)||(l=!0,$m(a,c));a=a.next}while(l);jf=!1}}function Bg(){Fm()}function Fm(){As=wf=!1;var t=0;Fa!==0&&kg()&&(t=Fa);for(var e=he(),l=null,a=Ts;a!==null;){var n=a.next,c=km(a,e);c===0?(a.next=null,l===null?Ts=n:l.next=n,n===null&&(qu=l)):(l=a,(t!==0||(c&3)!==0)&&(As=!0)),a=n}pe!==0&&pe!==5||Ji(t),Fa!==0&&(Fa=0)}function km(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-Te(c),h=1<<f,g=n[f];g===-1?((h&l)===0||(h&a)!==0)&&(n[f]=iu(h,e)):g<=e&&(t.expiredLanes|=h),c&=~h}if(e=Xt,l=Tt,l=gn(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(wt===2||wt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&eu(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Nl(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&eu(a),Sn(l)){case 2:case 8:l=au;break;case 32:l=_a;break;case 268435456:l=kl;break;default:l=_a}return a=Wm.bind(null,t),l=yn(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&eu(a),t.callbackPriority=2,t.callbackNode=null,2}function Wm(t,e){if(pe!==0&&pe!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Es()&&t.callbackNode!==l)return null;var a=Tt;return a=gn(t,t===Xt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Nm(t,a,e),km(t,he()),t.callbackNode!=null&&t.callbackNode===l?Wm.bind(null,t):null)}function $m(t,e){if(Es())return null;Nm(t,e,!0)}function qg(){$g(function(){(Nt&6)!==0?yn(lu,Bg):Fm()})}function Bf(){if(Fa===0){var t=_u;t===0&&(t=xa,xa<<=1,(xa&261888)===0&&(xa=256)),Fa=t}return Fa}function Im(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ne(""+t)}function Pm(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Gg(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var c=Im((n[gt]||null).action),f=a.submitter;f&&(e=(e=f[gt]||null)?Im(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var h=new Hc("action","action",null,a,n);t.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Fa!==0){var g=f?Pm(n,f):new FormData(n);af(l,{pending:!0,data:g,method:n.method,action:c},null,g)}}else typeof c=="function"&&(h.preventDefault(),g=f?Pm(n,f):new FormData(n),af(l,{pending:!0,data:g,method:n.method,action:c},c,g))},currentTarget:n}]})}}for(var qf=0;qf<br.length;qf++){var Gf=br[qf],Qg=Gf.toLowerCase(),Yg=Gf[0].toUpperCase()+Gf.slice(1);_l(Qg,"on"+Yg)}_l(Dh,"onAnimationEnd"),_l(Nh,"onAnimationIteration"),_l(zh,"onAnimationStart"),_l("dblclick","onDoubleClick"),_l("focusin","onFocus"),_l("focusout","onBlur"),_l(ng,"onTransitionRun"),_l(ug,"onTransitionStart"),_l(ig,"onTransitionCancel"),_l(Uh,"onTransitionEnd"),Il("onMouseEnter",["mouseout","mouseover"]),Il("onMouseLeave",["mouseout","mouseover"]),Il("onPointerEnter",["pointerout","pointerover"]),Il("onPointerLeave",["pointerout","pointerover"]),$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$l("onBeforeInput",["compositionend","keypress","textInput","paste"]),$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),Xg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function ty(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var h=a[f],g=h.instance,x=h.currentTarget;if(h=h.listener,g!==c&&n.isPropagationStopped())break t;c=h,n.currentTarget=x;try{c(n)}catch(L){Bc(L)}n.currentTarget=null,c=g}else for(f=0;f<a.length;f++){if(h=a[f],g=h.instance,x=h.currentTarget,h=h.listener,g!==c&&n.isPropagationStopped())break t;c=h,n.currentTarget=x;try{c(n)}catch(L){Bc(L)}n.currentTarget=null,c=g}}}}function bt(t,e){var l=e[hi];l===void 0&&(l=e[hi]=new Set);var a=t+"__bubble";l.has(a)||(ey(e,t,2,!1),l.add(a))}function Qf(t,e,l){var a=0;e&&(a|=4),ey(l,t,a,e)}var _s="_reactListening"+Math.random().toString(36).slice(2);function Yf(t){if(!t[_s]){t[_s]=!0,Ll.forEach(function(l){l!=="selectionchange"&&(Xg.has(l)||Qf(l,!1,t),Qf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[_s]||(e[_s]=!0,Qf("selectionchange",!1,e))}}function ey(t,e,l,a){switch(Dy(e)){case 2:var n=v0;break;case 8:n=g0;break;default:n=ao}l=n.bind(null,e,l,t),n=void 0,!cr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function Xf(t,e,l,a,n){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var h=a.stateNode.containerInfo;if(h===n)break;if(f===4)for(f=a.return;f!==null;){var g=f.tag;if((g===3||g===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;h!==null;){if(f=Da(h),f===null)return;if(g=f.tag,g===5||g===6||g===26||g===27){a=c=f;continue t}h=h.parentNode}}a=a.return}ih(function(){var x=c,L=ur(l),w=[];t:{var M=Lh.get(t);if(M!==void 0){var N=Hc,I=t;switch(t){case"keypress":if(Uc(l)===0)break t;case"keydown":case"keyup":N=wv;break;case"focusin":I="focus",N=or;break;case"focusout":I="blur",N=or;break;case"beforeblur":case"afterblur":N=or;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=rh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=_v;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=qv;break;case Dh:case Nh:case zh:N=xv;break;case Uh:N=Qv;break;case"scroll":case"scrollend":N=Tv;break;case"wheel":N=Xv;break;case"copy":case"cut":case"paste":N=Mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=oh;break;case"toggle":case"beforetoggle":N=Vv}var st=(e&4)!==0,Qt=!st&&(t==="scroll"||t==="scrollend"),_=st?M!==null?M+"Capture":null:M;st=[];for(var T=x,O;T!==null;){var H=T;if(O=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||O===null||_===null||(H=pi(T,_),H!=null&&st.push(ki(T,H,O))),Qt)break;T=T.return}0<st.length&&(M=new N(M,I,null,l,L),w.push({event:M,listeners:st}))}}if((e&7)===0){t:{if(M=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",M&&l!==ye&&(I=l.relatedTarget||l.fromElement)&&(Da(I)||I[Ie]))break t;if((N||M)&&(M=L.window===L?L:(M=L.ownerDocument)?M.defaultView||M.parentWindow:window,N?(I=l.relatedTarget||l.toElement,N=x,I=I?Da(I):null,I!==null&&(Qt=d(I),st=I.tag,I!==Qt||st!==5&&st!==27&&st!==6)&&(I=null)):(N=null,I=x),N!==I)){if(st=rh,H="onMouseLeave",_="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(st=oh,H="onPointerLeave",_="onPointerEnter",T="pointer"),Qt=N==null?M:bn(N),O=I==null?M:bn(I),M=new st(H,T+"leave",N,l,L),M.target=Qt,M.relatedTarget=O,H=null,Da(L)===x&&(st=new st(_,T+"enter",I,l,L),st.target=O,st.relatedTarget=Qt,H=st),Qt=H,N&&I)e:{for(st=Zg,_=N,T=I,O=0,H=_;H;H=st(H))O++;H=0;for(var it=T;it;it=st(it))H++;for(;0<O-H;)_=st(_),O--;for(;0<H-O;)T=st(T),H--;for(;O--;){if(_===T||T!==null&&_===T.alternate){st=_;break e}_=st(_),T=st(T)}st=null}else st=null;N!==null&&ly(w,M,N,st,!1),I!==null&&Qt!==null&&ly(w,Qt,I,st,!0)}}t:{if(M=x?bn(x):window,N=M.nodeName&&M.nodeName.toLowerCase(),N==="select"||N==="input"&&M.type==="file")var Mt=Sh;else if(vh(M))if(bh)Mt=eg;else{Mt=Pv;var lt=Iv}else N=M.nodeName,!N||N.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?x&&It(x.elementType)&&(Mt=Sh):Mt=tg;if(Mt&&(Mt=Mt(t,x))){gh(w,Mt,l,L);break t}lt&&lt(t,M,x),t==="focusout"&&x&&M.type==="number"&&x.memoizedProps.value!=null&&_n(M,"number",M.value)}switch(lt=x?bn(x):window,t){case"focusin":(vh(lt)||lt.contentEditable==="true")&&(pu=lt,vr=x,_i=null);break;case"focusout":_i=vr=pu=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,Ch(w,l,L);break;case"selectionchange":if(ag)break;case"keydown":case"keyup":Ch(w,l,L)}var mt;if(dr)t:{switch(t){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else yu?yh(t,l)&&(At="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(At="onCompositionStart");At&&(hh&&l.locale!=="ko"&&(yu||At!=="onCompositionStart"?At==="onCompositionEnd"&&yu&&(mt=ch()):(za=L,sr="value"in za?za.value:za.textContent,yu=!0)),lt=Rs(x,At),0<lt.length&&(At=new fh(At,t,null,l,L),w.push({event:At,listeners:lt}),mt?At.data=mt:(mt=ph(l),mt!==null&&(At.data=mt)))),(mt=Jv?Fv(t,l):kv(t,l))&&(At=Rs(x,"onBeforeInput"),0<At.length&&(lt=new fh("onBeforeInput","beforeinput",null,l,L),w.push({event:lt,listeners:At}),lt.data=mt)),Gg(w,t,x,l,L)}ty(w,e)})}function ki(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Rs(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,c=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||c===null||(n=pi(t,l),n!=null&&a.unshift(ki(t,n,c)),n=pi(t,e),n!=null&&a.push(ki(t,n,c))),t.tag===3)return a;t=t.return}return[]}function Zg(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ly(t,e,l,a,n){for(var c=e._reactName,f=[];l!==null&&l!==a;){var h=l,g=h.alternate,x=h.stateNode;if(h=h.tag,g!==null&&g===a)break;h!==5&&h!==26&&h!==27||x===null||(g=x,n?(x=pi(l,c),x!=null&&f.unshift(ki(l,x,g))):n||(x=pi(l,c),x!=null&&f.push(ki(l,x,g)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Vg=/\r\n?/g,Kg=/\u0000|\uFFFD/g;function ay(t){return(typeof t=="string"?t:""+t).replace(Vg,`
49
- `).replace(Kg,"")}function ny(t,e){return e=ay(e),ay(t)===e}function Gt(t,e,l,a,n,c){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||V(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&V(t,""+a);break;case"className":Hl(t,"class",a);break;case"tabIndex":Hl(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Hl(t,l,a);break;case"style":Et(t,a,c);break;case"data":if(e!=="object"){Hl(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Ne(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 c=="function"&&(l==="formAction"?(e!=="input"&&Gt(t,e,"name",n.name,n,null),Gt(t,e,"formEncType",n.formEncType,n,null),Gt(t,e,"formMethod",n.formMethod,n,null),Gt(t,e,"formTarget",n.formTarget,n,null)):(Gt(t,e,"encType",n.encType,n,null),Gt(t,e,"method",n.method,n,null),Gt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Ne(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Pe);break;case"onScroll":a!=null&&bt("scroll",t);break;case"onScrollEnd":a!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Ne(""+a),t.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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":bt("beforetoggle",t),bt("toggle",t),Al(t,"popover",a);break;case"xlinkActuate":me(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":me(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":me(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":me(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":me(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":me(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":me(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":me(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":me(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Al(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Pt.get(l)||l,Al(t,l,a))}}function Zf(t,e,l,a,n,c){switch(l){case"style":Et(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?V(t,a):(typeof a=="number"||typeof a=="bigint")&&V(t,""+a);break;case"onScroll":a!=null&&bt("scroll",t);break;case"onScrollEnd":a!=null&&bt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xc.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),c=t[gt]||null,c=c!=null?c[l]:null,typeof c=="function"&&t.removeEventListener(e,c,n),typeof a=="function")){typeof c!="function"&&c!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Al(t,l,a)}}}function Oe(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);var a=!1,n=!1,c;for(c in l)if(l.hasOwnProperty(c)){var f=l[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Gt(t,e,c,f,l,null)}}n&&Gt(t,e,"srcSet",l.srcSet,l,null),a&&Gt(t,e,"src",l.src,l,null);return;case"input":bt("invalid",t);var h=c=f=n=null,g=null,x=null;for(a in l)if(l.hasOwnProperty(a)){var L=l[a];if(L!=null)switch(a){case"name":n=L;break;case"type":f=L;break;case"checked":g=L;break;case"defaultChecked":x=L;break;case"value":c=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,e));break;default:Gt(t,e,a,L,l,null)}}An(t,c,h,g,x,f,n,!1);return;case"select":bt("invalid",t),a=f=c=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":c=h;break;case"defaultValue":f=h;break;case"multiple":a=h;default:Gt(t,e,n,h,l,null)}e=c,l=f,t.multiple=!!a,e!=null?K(t,!!a,e,!1):l!=null&&K(t,!!a,l,!0);return;case"textarea":bt("invalid",t),c=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":a=h;break;case"defaultValue":n=h;break;case"children":c=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:Gt(t,e,f,h,l,null)}C(t,a,n,c);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Gt(t,e,g,a,l,null)}return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(a=0;a<Fi.length;a++)bt(Fi[a],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in l)if(l.hasOwnProperty(x)&&(a=l[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Gt(t,e,x,a,l,null)}return;default:if(It(e)){for(L in l)l.hasOwnProperty(L)&&(a=l[L],a!==void 0&&Zf(t,e,L,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Gt(t,e,h,a,l,null))}function Jg(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,c=null,f=null,h=null,g=null,x=null,L=null;for(N in l){var w=l[N];if(l.hasOwnProperty(N)&&w!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":g=w;default:a.hasOwnProperty(N)||Gt(t,e,N,null,a,w)}}for(var M in a){var N=a[M];if(w=l[M],a.hasOwnProperty(M)&&(N!=null||w!=null))switch(M){case"type":c=N;break;case"name":n=N;break;case"checked":x=N;break;case"defaultChecked":L=N;break;case"value":f=N;break;case"defaultValue":h=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:N!==w&&Gt(t,e,M,N,a,w)}}hu(t,f,h,g,x,L,c,n);return;case"select":N=f=h=M=null;for(c in l)if(g=l[c],l.hasOwnProperty(c)&&g!=null)switch(c){case"value":break;case"multiple":N=g;default:a.hasOwnProperty(c)||Gt(t,e,c,null,a,g)}for(n in a)if(c=a[n],g=l[n],a.hasOwnProperty(n)&&(c!=null||g!=null))switch(n){case"value":M=c;break;case"defaultValue":h=c;break;case"multiple":f=c;default:c!==g&&Gt(t,e,n,c,a,g)}e=h,l=f,a=N,M!=null?K(t,!!l,M,!1):!!a!=!!l&&(e!=null?K(t,!!l,e,!0):K(t,!!l,l?[]:"",!1));return;case"textarea":N=M=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Gt(t,e,h,null,a,n)}for(f in a)if(n=a[f],c=l[f],a.hasOwnProperty(f)&&(n!=null||c!=null))switch(f){case"value":M=n;break;case"defaultValue":N=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==c&&Gt(t,e,f,n,a,c)}m(t,M,N);return;case"option":for(var I in l)if(M=l[I],l.hasOwnProperty(I)&&M!=null&&!a.hasOwnProperty(I))switch(I){case"selected":t.selected=!1;break;default:Gt(t,e,I,null,a,M)}for(g in a)if(M=a[g],N=l[g],a.hasOwnProperty(g)&&M!==N&&(M!=null||N!=null))switch(g){case"selected":t.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:Gt(t,e,g,M,a,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 st in l)M=l[st],l.hasOwnProperty(st)&&M!=null&&!a.hasOwnProperty(st)&&Gt(t,e,st,null,a,M);for(x in a)if(M=a[x],N=l[x],a.hasOwnProperty(x)&&M!==N&&(M!=null||N!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,e));break;default:Gt(t,e,x,M,a,N)}return;default:if(It(e)){for(var Qt in l)M=l[Qt],l.hasOwnProperty(Qt)&&M!==void 0&&!a.hasOwnProperty(Qt)&&Zf(t,e,Qt,void 0,a,M);for(L in a)M=a[L],N=l[L],!a.hasOwnProperty(L)||M===N||M===void 0&&N===void 0||Zf(t,e,L,M,a,N);return}}for(var _ in l)M=l[_],l.hasOwnProperty(_)&&M!=null&&!a.hasOwnProperty(_)&&Gt(t,e,_,null,a,M);for(w in a)M=a[w],N=l[w],!a.hasOwnProperty(w)||M===N||M==null&&N==null||Gt(t,e,w,M,a,N)}function uy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],c=n.transferSize,f=n.initiatorType,h=n.duration;if(c&&h&&uy(f)){for(f=0,h=n.responseEnd,a+=1;a<l.length;a++){var g=l[a],x=g.startTime;if(x>h)break;var L=g.transferSize,w=g.initiatorType;L&&uy(w)&&(g=g.responseEnd,f+=L*(g<h?1:(h-x)/(g-x)))}if(--a,e+=8*(c+f)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vf=null,Kf=null;function Os(t){return t.nodeType===9?t:t.ownerDocument}function iy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cy(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Jf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ff=null;function kg(){var t=window.event;return t&&t.type==="popstate"?t===Ff?!1:(Ff=t,!0):(Ff=null,!1)}var sy=typeof setTimeout=="function"?setTimeout:void 0,Wg=typeof clearTimeout=="function"?clearTimeout:void 0,ry=typeof Promise=="function"?Promise:void 0,$g=typeof queueMicrotask=="function"?queueMicrotask:typeof ry<"u"?function(t){return ry.resolve(null).then(t).catch(Ig)}:sy;function Ig(t){setTimeout(function(){throw t})}function ka(t){return t==="head"}function fy(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Xu(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Wi(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Wi(l);for(var c=l.firstChild;c;){var f=c.nextSibling,h=c.nodeName;c[Ma]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=f}}else l==="body"&&Wi(t.ownerDocument.body);l=n}while(l);Xu(e)}function oy(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function kf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kf(l),yi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Pg(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ma])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=pl(t.nextSibling),t===null)break}return null}function t0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=pl(t.nextSibling),t===null))return null;return t}function hy(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=pl(t.nextSibling),t===null))return null;return t}function Wf(t){return t.data==="$?"||t.data==="$~"}function $f(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function e0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function pl(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var If=null;function dy(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return pl(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function my(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function yy(t,e,l){switch(e=Os(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Wi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);yi(t)}var vl=new Map,py=new Set;function xs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ma=F.d;F.d={f:l0,r:a0,D:n0,C:u0,L:i0,m:c0,X:r0,S:s0,M:f0};function l0(){var t=ma.f(),e=gs();return t||e}function a0(t){var e=Na(t);e!==null&&e.tag===5&&e.type==="form"?Ud(e):ma.r(t)}var Gu=typeof document>"u"?null:document;function vy(t,e,l){var a=Gu;if(a&&typeof e=="string"&&e){var n=Qe(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),py.has(n)||(py.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Oe(e,"link",t),ae(e),a.head.appendChild(e)))}}function n0(t){ma.D(t),vy("dns-prefetch",t,null)}function u0(t,e){ma.C(t,e),vy("preconnect",t,e)}function i0(t,e,l){ma.L(t,e,l);var a=Gu;if(a&&t&&e){var n='link[rel="preload"][as="'+Qe(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Qe(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Qe(l.imageSizes)+'"]')):n+='[href="'+Qe(t)+'"]';var c=n;switch(e){case"style":c=Qu(t);break;case"script":c=Yu(t)}vl.has(c)||(t=A({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),vl.set(c,t),a.querySelector(n)!==null||e==="style"&&a.querySelector($i(c))||e==="script"&&a.querySelector(Ii(c))||(e=a.createElement("link"),Oe(e,"link",t),ae(e),a.head.appendChild(e)))}}function c0(t,e){ma.m(t,e);var l=Gu;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Qe(a)+'"][href="'+Qe(t)+'"]',c=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Yu(t)}if(!vl.has(c)&&(t=A({rel:"modulepreload",href:t},e),vl.set(c,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ii(c)))return}a=l.createElement("link"),Oe(a,"link",t),ae(a),l.head.appendChild(a)}}}function s0(t,e,l){ma.S(t,e,l);var a=Gu;if(a&&t){var n=He(a).hoistableStyles,c=Qu(t);e=e||"default";var f=n.get(c);if(!f){var h={loading:0,preload:null};if(f=a.querySelector($i(c)))h.loading=5;else{t=A({rel:"stylesheet",href:t,"data-precedence":e},l),(l=vl.get(c))&&Pf(t,l);var g=f=a.createElement("link");ae(g),Oe(g,"link",t),g._p=new Promise(function(x,L){g.onload=x,g.onerror=L}),g.addEventListener("load",function(){h.loading|=1}),g.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Cs(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:h},n.set(c,f)}}}function r0(t,e){ma.X(t,e);var l=Gu;if(l&&t){var a=He(l).hoistableScripts,n=Yu(t),c=a.get(n);c||(c=l.querySelector(Ii(n)),c||(t=A({src:t,async:!0},e),(e=vl.get(n))&&to(t,e),c=l.createElement("script"),ae(c),Oe(c,"link",t),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(n,c))}}function f0(t,e){ma.M(t,e);var l=Gu;if(l&&t){var a=He(l).hoistableScripts,n=Yu(t),c=a.get(n);c||(c=l.querySelector(Ii(n)),c||(t=A({src:t,async:!0,type:"module"},e),(e=vl.get(n))&&to(t,e),c=l.createElement("script"),ae(c),Oe(c,"link",t),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(n,c))}}function gy(t,e,l,a){var n=(n=pt.current)?xs(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Qu(l.href),l=He(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Qu(l.href);var c=He(n).hoistableStyles,f=c.get(t);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=n.querySelector($i(t)))&&!c._p&&(f.instance=c,f.state.loading=5),vl.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},vl.set(t,l),c||o0(n,t,l,f.state))),e&&a===null)throw Error(r(528,""));return f}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Yu(l),l=He(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Qu(t){return'href="'+Qe(t)+'"'}function $i(t){return'link[rel="stylesheet"]['+t+"]"}function Sy(t){return A({},t,{"data-precedence":t.precedence,precedence:null})}function o0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Oe(e,"link",l),ae(e),t.head.appendChild(e))}function Yu(t){return'[src="'+Qe(t)+'"]'}function Ii(t){return"script[async]"+t}function by(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Qe(l.href)+'"]');if(a)return e.instance=a,ae(a),a;var n=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ae(a),Oe(a,"style",n),Cs(a,l.precedence,t),e.instance=a;case"stylesheet":n=Qu(l.href);var c=t.querySelector($i(n));if(c)return e.state.loading|=4,e.instance=c,ae(c),c;a=Sy(l),(n=vl.get(n))&&Pf(a,n),c=(t.ownerDocument||t).createElement("link"),ae(c);var f=c;return f._p=new Promise(function(h,g){f.onload=h,f.onerror=g}),Oe(c,"link",a),e.state.loading|=4,Cs(c,l.precedence,t),e.instance=c;case"script":return c=Yu(l.src),(n=t.querySelector(Ii(c)))?(e.instance=n,ae(n),n):(a=l,(n=vl.get(c))&&(a=A({},l),to(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),ae(n),Oe(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Cs(a,l.precedence,t));return e.instance}function Cs(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,c=n,f=0;f<a.length;f++){var h=a[f];if(h.dataset.precedence===e)c=h;else if(c!==n)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Pf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function to(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ms=null;function Ey(t,e,l){if(Ms===null){var a=new Map,n=Ms=new Map;n.set(l,a)}else n=Ms,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var c=l[n];if(!(c[Ma]||c[de]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var h=a.get(f);h?h.push(c):a.set(f,[c])}}return a}function Ty(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function h0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ay(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function d0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Qu(a.href),c=e.querySelector($i(n));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ds.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=c,ae(c);return}c=e.ownerDocument||e,a=Sy(a),(n=vl.get(n))&&Pf(a,n),c=c.createElement("link"),ae(c);var f=c;f._p=new Promise(function(h,g){f.onload=h,f.onerror=g}),Oe(c,"link",a),l.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Ds.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var eo=0;function m0(t,e){return t.stylesheets&&t.count===0&&zs(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&zs(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&eo===0&&(eo=62500*Fg());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&zs(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>eo?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ns=null;function zs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ns=new Map,e.forEach(y0,t),Ns=null,Ds.call(t))}function y0(t,e){if(!(e.state.loading&4)){var l=Ns.get(t);if(l)var a=l.get(null);else{l=new Map,Ns.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<n.length;c++){var f=n[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=e.instance,f=n.getAttribute("data-precedence"),c=l.get(f)||a,c===a&&l.set(null,n),l.set(f,n),this.count++,a=Ds.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),c?c.parentNode.insertBefore(n,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Pi={$$typeof:J,Provider:null,Consumer:null,_currentValue:rt,_currentValue2:rt,_threadCount:0};function p0(t,e,l,a,n,c,f,h,g){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.hiddenUpdates=zl(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function _y(t,e,l,a,n,c,f,h,g,x,L,w){return t=new p0(t,e,l,f,g,x,L,w,h),e=1,c===!0&&(e|=24),c=el(3,null,null,e),t.current=c,c.stateNode=t,e=Ur(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:e},jr(c),t}function Ry(t){return t?(t=Su,t):Su}function Oy(t,e,l,a,n,c){n=Ry(n),a.context===null?a.context=n:a.pendingContext=n,a=Ba(e),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=qa(t,a,e),l!==null&&(Fe(l,t,e),Ni(l,t,e))}function xy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function lo(t,e){xy(t,e),(t=t.alternate)&&xy(t,e)}function Cy(t){if(t.tag===13||t.tag===31){var e=Cn(t,67108864);e!==null&&Fe(e,t,67108864),lo(t,67108864)}}function My(t){if(t.tag===13||t.tag===31){var e=il();e=su(e);var l=Cn(t,e);l!==null&&Fe(l,t,e),lo(t,e)}}var Us=!0;function v0(t,e,l,a){var n=U.T;U.T=null;var c=F.p;try{F.p=2,ao(t,e,l,a)}finally{F.p=c,U.T=n}}function g0(t,e,l,a){var n=U.T;U.T=null;var c=F.p;try{F.p=8,ao(t,e,l,a)}finally{F.p=c,U.T=n}}function ao(t,e,l,a){if(Us){var n=no(a);if(n===null)Xf(t,e,a,Ls,l),Ny(t,a);else if(b0(n,t,e,l,a))a.stopPropagation();else if(Ny(t,a),e&4&&-1<S0.indexOf(t)){for(;n!==null;){var c=Na(n);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Tl(c.pendingLanes);if(f!==0){var h=c;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var g=1<<31-Te(f);h.entanglements[1]|=g,f&=~g}ql(c),(Nt&6)===0&&(ps=he()+500,Ji(0))}}break;case 31:case 13:h=Cn(c,2),h!==null&&Fe(h,c,2),gs(),lo(c,2)}if(c=no(a),c===null&&Xf(t,e,a,Ls,l),c===n)break;n=c}n!==null&&a.stopPropagation()}else Xf(t,e,a,null,l)}}function no(t){return t=ur(t),uo(t)}var Ls=null;function uo(t){if(Ls=null,t=Da(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=b(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ls=t,null}function Dy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fl()){case lu:return 2;case au:return 8;case _a:case si:return 32;case kl:return 268435456;default:return 32}default:return 32}}var io=!1,Wa=null,$a=null,Ia=null,tc=new Map,ec=new Map,Pa=[],S0="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 Ny(t,e){switch(t){case"focusin":case"focusout":Wa=null;break;case"dragenter":case"dragleave":$a=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":tc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ec.delete(e.pointerId)}}function lc(t,e,l,a,n,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[n]},e!==null&&(e=Na(e),e!==null&&Cy(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function b0(t,e,l,a,n){switch(e){case"focusin":return Wa=lc(Wa,t,e,l,a,n),!0;case"dragenter":return $a=lc($a,t,e,l,a,n),!0;case"mouseover":return Ia=lc(Ia,t,e,l,a,n),!0;case"pointerover":var c=n.pointerId;return tc.set(c,lc(tc.get(c)||null,t,e,l,a,n)),!0;case"gotpointercapture":return c=n.pointerId,ec.set(c,lc(ec.get(c)||null,t,e,l,a,n)),!0}return!1}function zy(t){var e=Da(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Ca(t.priority,function(){My(l)});return}}else if(e===31){if(e=b(l),e!==null){t.blockedOn=e,Ca(t.priority,function(){My(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Hs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=no(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);ye=a,l.target.dispatchEvent(a),ye=null}else return e=Na(l),e!==null&&Cy(e),t.blockedOn=l,!1;e.shift()}return!0}function Uy(t,e,l){Hs(t)&&l.delete(e)}function E0(){io=!1,Wa!==null&&Hs(Wa)&&(Wa=null),$a!==null&&Hs($a)&&($a=null),Ia!==null&&Hs(Ia)&&(Ia=null),tc.forEach(Uy),ec.forEach(Uy)}function ws(t,e){t.blockedOn===e&&(t.blockedOn=null,io||(io=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,E0)))}var js=null;function Ly(t){js!==t&&(js=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){js===t&&(js=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(uo(a||l)===null)continue;break}var c=Na(l);c!==null&&(t.splice(e,3),e-=3,af(c,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Xu(t){function e(g){return ws(g,t)}Wa!==null&&ws(Wa,t),$a!==null&&ws($a,t),Ia!==null&&ws(Ia,t),tc.forEach(e),ec.forEach(e);for(var l=0;l<Pa.length;l++){var a=Pa[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Pa.length&&(l=Pa[0],l.blockedOn===null);)zy(l),l.blockedOn===null&&Pa.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],c=l[a+1],f=n[gt]||null;if(typeof c=="function")f||Ly(l);else if(f){var h=null;if(c&&c.hasAttribute("formAction")){if(n=c,f=c[gt]||null)h=f.formAction;else if(uo(n)!==null)continue}else h=f.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Ly(l)}}}function Hy(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function co(t){this._internalRoot=t}Bs.prototype.render=co.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=il();Oy(l,a,t,e,null,null)},Bs.prototype.unmount=co.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Oy(t.current,2,null,t,null,null),gs(),e[Ie]=null}};function Bs(t){this._internalRoot=t}Bs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Rc();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Pa.length&&e!==0&&e<Pa[l].priority;l++);Pa.splice(l,0,t),l===0&&zy(t)}};var wy=i.version;if(wy!=="19.2.7")throw Error(r(527,wy,"19.2.7"));F.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var T0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qs.isDisabled&&qs.supportsFiber)try{Ra=qs.inject(T0),De=qs}catch{}}return nc.createRoot=function(t,e){if(!o(t))throw Error(r(299));var l=!1,a="",n=Xd,c=Zd,f=Vd;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=_y(t,1,!1,null,null,l,a,null,n,c,f,Hy),t[Ie]=e.current,Yf(t),new co(e)},nc.hydrateRoot=function(t,e,l){if(!o(t))throw Error(r(299));var a=!1,n="",c=Xd,f=Zd,h=Vd,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),e=_y(t,1,!0,e,l??null,a,n,g,c,f,h,Hy),e.context=Ry(null),l=e.current,a=il(),a=su(a),n=Ba(a),n.callback=null,qa(l,n,a),l=a,e.current.lanes=l,Wl(e,l),ql(e),t[Ie]=e.current,Yf(t),new Bs(e)},nc.version="19.2.7",nc}var Jy;function z0(){if(Jy)return oo.exports;Jy=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(i){console.error(i)}}return u(),oo.exports=N0(),oo.exports}var U0=z0();/**
50
- * react-router v7.18.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Vo=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Bp=/^[\\/]{2}/;function L0(u,i){return i+u.replace(/\\/g,"/")}var Fy="popstate";function ky(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function H0(u={}){function i(r,o){var p;let d=(p=o.state)==null?void 0:p.masked,{pathname:y,search:b,hash:v}=d||r.location;return _o("",{pathname:y,search:b,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",d?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,o){return typeof o=="string"?o:oc(o)}return j0(i,s,null,u)}function $t(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Vl(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function w0(){return Math.random().toString(36).substring(2,10)}function Wy(u,i){return{usr:u.state,key:u.key,idx:i,masked:u.mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function _o(u,i,s=null,r,o){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?ui(i):i,state:s,key:i&&i.key||r||w0(),mask:o}}function oc({pathname:u="/",search:i="",hash:s=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(u+=s.charAt(0)==="#"?s:"#"+s),u}function ui(u){let i={};if(u){let s=u.indexOf("#");s>=0&&(i.hash=u.substring(s),u=u.substring(0,s));let r=u.indexOf("?");r>=0&&(i.search=u.substring(r),u=u.substring(0,r)),u&&(i.pathname=u)}return i}function j0(u,i,s,r={}){let{window:o=document.defaultView,v5Compat:d=!1}=r,y=o.history,b="POP",v=null,p=R();p==null&&(p=0,y.replaceState({...y.state,idx:p},""));function R(){return(y.state||{idx:null}).idx}function A(){b="POP";let Q=R(),B=Q==null?null:Q-p;p=Q,v&&v({action:b,location:G.location,delta:B})}function z(Q,B){b="PUSH";let $=ky(Q)?Q:_o(G.location,Q,B);p=R()+1;let J=Wy($,p),X=G.createHref($.mask||$);try{y.pushState(J,"",X)}catch(at){if(at instanceof DOMException&&at.name==="DataCloneError")throw at;o.location.assign(X)}d&&v&&v({action:b,location:G.location,delta:1})}function q(Q,B){b="REPLACE";let $=ky(Q)?Q:_o(G.location,Q,B);p=R();let J=Wy($,p),X=G.createHref($.mask||$);y.replaceState(J,"",X),d&&v&&v({action:b,location:G.location,delta:0})}function Z(Q){return B0(o,Q)}let G={get action(){return b},get location(){return u(o,y)},listen(Q){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Fy,A),v=Q,()=>{o.removeEventListener(Fy,A),v=null}},createHref(Q){return i(o,Q)},createURL:Z,encodeLocation(Q){let B=Z(Q);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:z,replace:q,go(Q){return y.go(Q)}};return G}function B0(u,i,s=!1){let r="http://localhost";u&&(r=u.location.origin!=="null"?u.location.origin:u.location.href),$t(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:oc(i);return o=o.replace(/ $/,"%20"),!s&&Bp.test(o)&&(o=r+o),new URL(o,r)}function qp(u,i,s="/"){return q0(u,i,s,!1)}function q0(u,i,s,r,o){let d=typeof i=="string"?ui(i):i,y=Ea(d.pathname||"/",s);if(y==null)return null;let b=G0(u),v=null,p=$0(y);for(let R=0;v==null&&R<b.length;++R)v=W0(b[R],p,r);return v}function G0(u){let i=Gp(u);return Q0(i),i}function Gp(u,i=[],s=[],r="",o=!1){let d=(y,b,v=o,p)=>{let R={relativePath:p===void 0?y.path||"":p,caseSensitive:y.caseSensitive===!0,childrenIndex:b,route:y};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(r)&&v)return;$t(R.relativePath.startsWith(r),`Absolute route path "${R.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(r.length)}let A=Cl([r,R.relativePath]),z=s.concat(R);y.children&&y.children.length>0&&($t(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Gp(y.children,i,z,A,v)),!(y.path==null&&!y.index)&&i.push({path:A,score:F0(A,y.index),routesMeta:z.map((q,Z)=>{let[G,Q]=Xp(q.relativePath,q.caseSensitive,Z===z.length-1);return{...q,matcher:G,compiledParams:Q}})})};return u.forEach((y,b)=>{var v;if(y.path===""||!((v=y.path)!=null&&v.includes("?")))d(y,b);else for(let p of Qp(y.path))d(y,b,!0,p)}),i}function Qp(u){let i=u.split("/");if(i.length===0)return[];let[s,...r]=i,o=s.endsWith("?"),d=s.replace(/\?$/,"");if(r.length===0)return o?[d,""]:[d];let y=Qp(r.join("/")),b=[];return b.push(...y.map(v=>v===""?d:[d,v].join("/"))),o&&b.push(...y),b.map(v=>u.startsWith("/")&&v===""?"/":v)}function Q0(u){u.sort((i,s)=>i.score!==s.score?s.score-i.score:k0(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var Y0=/^:[\w-]+$/,X0=3,Z0=2,V0=1,K0=10,J0=-2,$y=u=>u==="*";function F0(u,i){let s=u.split("/"),r=s.length;return s.some($y)&&(r+=J0),i&&(r+=Z0),s.filter(o=>!$y(o)).reduce((o,d)=>o+(Y0.test(d)?X0:d===""?V0:K0),r)}function k0(u,i){return u.length===i.length&&u.slice(0,-1).every((r,o)=>r===i[o])?u[u.length-1]-i[i.length-1]:0}function W0(u,i,s=!1){let{routesMeta:r}=u,o={},d="/",y=[];for(let b=0;b<r.length;++b){let v=r[b],p=b===r.length-1,R=d==="/"?i:i.slice(d.length)||"/",A={path:v.relativePath,caseSensitive:v.caseSensitive,end:p},z=v.matcher&&v.compiledParams?Yp(A,R,v.matcher,v.compiledParams):Ws(A,R),q=v.route;if(!z&&p&&s&&!r[r.length-1].route.index&&(z=Ws({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},R)),!z)return null;Object.assign(o,z.params),y.push({params:o,pathname:Cl([d,z.pathname]),pathnameBase:tS(Cl([d,z.pathnameBase])),route:q}),z.pathnameBase!=="/"&&(d=Cl([d,z.pathnameBase]))}return y}function Ws(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[s,r]=Xp(u.path,u.caseSensitive,u.end);return Yp(u,i,s,r)}function Yp(u,i,s,r){let o=i.match(s);if(!o)return null;let d=o[0],y=d.replace(/(.)\/+$/,"$1"),b=o.slice(1);return{params:r.reduce((p,{paramName:R,isOptional:A},z)=>{if(R==="*"){let Z=b[z]||"";y=d.slice(0,d.length-Z.length).replace(/(.)\/+$/,"$1")}const q=b[z];return A&&!q?p[R]=void 0:p[R]=(q||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:y,pattern:u}}function Xp(u,i=!1,s=!0){Vl(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],o="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,b,v,p,R)=>{if(r.push({paramName:b,isOptional:v!=null}),v){let A=R.charAt(p+y.length);return A&&A!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),o+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":u!==""&&u!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function $0(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Vl(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Ea(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=u.charAt(s);return r&&r!=="/"?null:u.slice(s)||"/"}function I0(u,i="/"){let{pathname:s,search:r="",hash:o=""}=typeof u=="string"?ui(u):u,d;return s?(s=Vp(s),s.startsWith("/")?d=Iy(s.substring(1),"/"):d=Iy(s,i)):d=i,{pathname:d,search:eS(r),hash:lS(o)}}function Iy(u,i){let s=$s(i).split("/");return u.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function po(u,i,s,r){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function P0(u){return u.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Zp(u){let i=P0(u);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Ko(u,i,s,r=!1){let o;typeof u=="string"?o=ui(u):(o={...u},$t(!o.pathname||!o.pathname.includes("?"),po("?","pathname","search",o)),$t(!o.pathname||!o.pathname.includes("#"),po("#","pathname","hash",o)),$t(!o.search||!o.search.includes("#"),po("#","search","hash",o)));let d=u===""||o.pathname==="",y=d?"/":o.pathname,b;if(y==null)b=s;else{let A=i.length-1;if(!r&&y.startsWith("..")){let z=y.split("/");for(;z[0]==="..";)z.shift(),A-=1;o.pathname=z.join("/")}b=A>=0?i[A]:"/"}let v=I0(o,b),p=y&&y!=="/"&&y.endsWith("/"),R=(d||y===".")&&s.endsWith("/");return!v.pathname.endsWith("/")&&(p||R)&&(v.pathname+="/"),v}var Vp=u=>u.replace(/[\\/]{2,}/g,"/"),Cl=u=>Vp(u.join("/")),$s=u=>u.replace(/\/+$/,""),tS=u=>$s(u).replace(/^\/*/,"/"),eS=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,lS=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,aS=class{constructor(u,i,s,r=!1){this.status=u,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function nS(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function uS(u){let i=u.map(s=>s.route.path).filter(Boolean);return Cl(i)||"/"}var Kp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jp(u,i){let s=u;if(typeof s!="string"||!Vo.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,o=!1;if(Kp)try{let d=new URL(window.location.href),y=Bp.test(s)?new URL(L0(s,d.protocol)):new URL(s),b=Ea(y.pathname,i);y.origin===d.origin&&b!=null?s=b+y.search+y.hash:o=!0}catch{Vl(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fp=["POST","PUT","PATCH","DELETE"];new Set(Fp);var iS=["GET",...Fp];new Set(iS);var cS=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function sS(u){try{return cS.includes(new URL(u).protocol)}catch{return!1}}var ii=D.createContext(null);ii.displayName="DataRouter";var er=D.createContext(null);er.displayName="DataRouterState";var kp=D.createContext(!1);function rS(){return D.useContext(kp)}var Wp=D.createContext({isTransitioning:!1});Wp.displayName="ViewTransition";var fS=D.createContext(new Map);fS.displayName="Fetchers";var oS=D.createContext(null);oS.displayName="Await";var Sl=D.createContext(null);Sl.displayName="Navigation";var Sc=D.createContext(null);Sc.displayName="Location";var Kl=D.createContext({outlet:null,matches:[],isDataRoute:!1});Kl.displayName="Route";var Jo=D.createContext(null);Jo.displayName="RouteError";var $p="REACT_ROUTER_ERROR",hS="REDIRECT",dS="ROUTE_ERROR_RESPONSE";function mS(u){if(u.startsWith(`${$p}:${hS}:{`))try{let i=JSON.parse(u.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function yS(u){if(u.startsWith(`${$p}:${dS}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new aS(i.status,i.statusText,i.data)}catch{}}function pS(u,{relative:i}={}){$t(bc(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=D.useContext(Sl),{hash:o,pathname:d,search:y}=Ec(u,{relative:i}),b=d;return s!=="/"&&(b=d==="/"?s:Cl([s,d])),r.createHref({pathname:b,search:y,hash:o})}function bc(){return D.useContext(Sc)!=null}function Ta(){return $t(bc(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(Sc).location}var Ip="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Pp(u){D.useContext(Sl).static||D.useLayoutEffect(u)}function vS(){let{isDataRoute:u}=D.useContext(Kl);return u?zS():gS()}function gS(){$t(bc(),"useNavigate() may be used only in the context of a <Router> component.");let u=D.useContext(ii),{basename:i,navigator:s}=D.useContext(Sl),{matches:r}=D.useContext(Kl),{pathname:o}=Ta(),d=JSON.stringify(Zp(r)),y=D.useRef(!1);return Pp(()=>{y.current=!0}),D.useCallback((v,p={})=>{if(Vl(y.current,Ip),!y.current)return;if(typeof v=="number"){s.go(v);return}let R=Ko(v,JSON.parse(d),o,p.relative==="path");u==null&&i!=="/"&&(R.pathname=R.pathname==="/"?i:Cl([i,R.pathname])),(p.replace?s.replace:s.push)(R,p.state,p)},[i,s,d,o,u])}var SS=D.createContext(null);function bS(u){let i=D.useContext(Kl).outlet;return D.useMemo(()=>i&&D.createElement(SS.Provider,{value:u},i),[i,u])}function Ec(u,{relative:i}={}){let{matches:s}=D.useContext(Kl),{pathname:r}=Ta(),o=JSON.stringify(Zp(s));return D.useMemo(()=>Ko(u,JSON.parse(o),r,i==="path"),[u,o,r,i])}function ES(u,i){return tv(u,i)}function tv(u,i,s){var Q;$t(bc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=D.useContext(Sl),{matches:o}=D.useContext(Kl),d=o[o.length-1],y=d?d.params:{},b=d?d.pathname:"/",v=d?d.pathnameBase:"/",p=d&&d.route;{let B=p&&p.path||"";lv(b,!p||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${B}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let R=Ta(),A;if(i){let B=typeof i=="string"?ui(i):i;$t(v==="/"||((Q=B.pathname)==null?void 0:Q.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${B.pathname}" was given in the \`location\` prop.`),A=B}else A=R;let z=A.pathname||"/",q=z;if(v!=="/"){let B=v.replace(/^\//,"").split("/");q="/"+z.replace(/^\//,"").split("/").slice(B.length).join("/")}let Z=s&&s.state.matches.length?s.state.matches.map(B=>Object.assign(B,{route:s.manifest[B.route.id]||B.route})):qp(u,{pathname:q});Vl(p||Z!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Vl(Z==null||Z[Z.length-1].route.element!==void 0||Z[Z.length-1].route.Component!==void 0||Z[Z.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=OS(Z&&Z.map(B=>Object.assign({},B,{params:Object.assign({},y,B.params),pathname:Cl([v,r.encodeLocation?r.encodeLocation(B.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?v:Cl([v,r.encodeLocation?r.encodeLocation(B.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),o,s);return i&&G?D.createElement(Sc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},G):G}function TS(){let u=NS(),i=nS(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),s=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:d},"ErrorBoundary")," or"," ",D.createElement("code",{style:d},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},i),s?D.createElement("pre",{style:o},s):null,y)}var AS=D.createElement(TS,null),ev=class extends D.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const s=yS(u.digest);s&&(u=s)}let i=u!==void 0?D.createElement(Kl.Provider,{value:this.props.routeContext},D.createElement(Jo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?D.createElement(_S,{error:u},i):i}};ev.contextType=kp;var vo=new WeakMap;function _S({children:u,error:i}){let{basename:s}=D.useContext(Sl);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=mS(i.digest);if(r){let o=vo.get(i);if(o)throw o;let d=Jp(r.location,s),y=d.absoluteURL||d.to;if(sS(y))throw new Error("Invalid redirect location");if(Kp&&!vo.get(i))if(d.isExternal||r.reloadDocument)window.location.href=y;else{const b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw vo.set(i,b),b}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return u}function RS({routeContext:u,match:i,children:s}){let r=D.useContext(ii);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),D.createElement(Kl.Provider,{value:u},s)}function OS(u,i=[],s){let r=s==null?void 0:s.state;if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let o=u,d=r==null?void 0:r.errors;if(d!=null){let R=o.findIndex(A=>A.route.id&&(d==null?void 0:d[A.route.id])!==void 0);$t(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),o=o.slice(0,Math.min(o.length,R+1))}let y=!1,b=-1;if(s&&r){y=r.renderFallback;for(let R=0;R<o.length;R++){let A=o[R];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(b=R),A.route.id){let{loaderData:z,errors:q}=r,Z=A.route.loader&&!z.hasOwnProperty(A.route.id)&&(!q||q[A.route.id]===void 0);if(A.route.lazy||Z){s.isStatic&&(y=!0),b>=0?o=o.slice(0,b+1):o=[o[0]];break}}}}let v=s==null?void 0:s.onError,p=r&&v?(R,A)=>{var z,q;v(R,{location:r.location,params:((q=(z=r.matches)==null?void 0:z[0])==null?void 0:q.params)??{},pattern:uS(r.matches),errorInfo:A})}:void 0;return o.reduceRight((R,A,z)=>{let q,Z=!1,G=null,Q=null;r&&(q=d&&A.route.id?d[A.route.id]:void 0,G=A.route.errorElement||AS,y&&(b<0&&z===0?(lv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,Q=null):b===z&&(Z=!0,Q=A.route.hydrateFallbackElement||null)));let B=i.concat(o.slice(0,z+1)),$=()=>{let J;return q?J=G:Z?J=Q:A.route.Component?J=D.createElement(A.route.Component,null):A.route.element?J=A.route.element:J=R,D.createElement(RS,{match:A,routeContext:{outlet:R,matches:B,isDataRoute:r!=null},children:J})};return r&&(A.route.ErrorBoundary||A.route.errorElement||z===0)?D.createElement(ev,{location:r.location,revalidation:r.revalidation,component:G,error:q,children:$(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:p}):$()},null)}function Fo(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xS(u){let i=D.useContext(ii);return $t(i,Fo(u)),i}function CS(u){let i=D.useContext(er);return $t(i,Fo(u)),i}function MS(u){let i=D.useContext(Kl);return $t(i,Fo(u)),i}function ko(u){let i=MS(u),s=i.matches[i.matches.length-1];return $t(s.route.id,`${u} can only be used on routes that contain a unique "id"`),s.route.id}function DS(){return ko("useRouteId")}function NS(){var r;let u=D.useContext(Jo),i=CS("useRouteError"),s=ko("useRouteError");return u!==void 0?u:(r=i.errors)==null?void 0:r[s]}function zS(){let{router:u}=xS("useNavigate"),i=ko("useNavigate"),s=D.useRef(!1);return Pp(()=>{s.current=!0}),D.useCallback(async(o,d={})=>{Vl(s.current,Ip),s.current&&(typeof o=="number"?await u.navigate(o):await u.navigate(o,{fromRouteId:i,...d}))},[u,i])}var Py={};function lv(u,i,s){!i&&!Py[u]&&(Py[u]=!0,Vl(!1,s))}D.memo(US);function US({routes:u,manifest:i,future:s,state:r,isStatic:o,onError:d}){return tv(u,void 0,{manifest:i,state:r,isStatic:o,onError:d})}function LS(u){return bS(u.context)}function Ks(u){$t(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function HS({basename:u="/",children:i=null,location:s,navigationType:r="POP",navigator:o,static:d=!1,useTransitions:y}){$t(!bc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),v=D.useMemo(()=>({basename:b,navigator:o,static:d,useTransitions:y,future:{}}),[b,o,d,y]);typeof s=="string"&&(s=ui(s));let{pathname:p="/",search:R="",hash:A="",state:z=null,key:q="default",mask:Z}=s,G=D.useMemo(()=>{let Q=Ea(p,b);return Q==null?null:{location:{pathname:Q,search:R,hash:A,state:z,key:q,mask:Z},navigationType:r}},[b,p,R,A,z,q,r,Z]);return Vl(G!=null,`<Router basename="${b}"> is not able to match the URL "${p}${R}${A}" because it does not start with the basename, so the <Router> won't render anything.`),G==null?null:D.createElement(Sl.Provider,{value:v},D.createElement(Sc.Provider,{children:i,value:G}))}function wS({children:u,location:i}){return ES(Ro(u),i)}function Ro(u,i=[]){let s=[];return D.Children.forEach(u,(r,o)=>{if(!D.isValidElement(r))return;let d=[...i,o];if(r.type===D.Fragment){s.push.apply(s,Ro(r.props.children,d));return}$t(r.type===Ks,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$t(!r.props.index||!r.props.children,"An index route cannot have child routes.");let y={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(y.children=Ro(r.props.children,d)),s.push(y)}),s}var Js="get",Fs="application/x-www-form-urlencoded";function lr(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function jS(u){return lr(u)&&u.tagName.toLowerCase()==="button"}function BS(u){return lr(u)&&u.tagName.toLowerCase()==="form"}function qS(u){return lr(u)&&u.tagName.toLowerCase()==="input"}function GS(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function QS(u,i){return u.button===0&&(!i||i==="_self")&&!GS(u)}var Qs=null;function YS(){if(Qs===null)try{new FormData(document.createElement("form"),0),Qs=!1}catch{Qs=!0}return Qs}var XS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function go(u){return u!=null&&!XS.has(u)?(Vl(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fs}"`),null):u}function ZS(u,i){let s,r,o,d,y;if(BS(u)){let b=u.getAttribute("action");r=b?Ea(b,i):null,s=u.getAttribute("method")||Js,o=go(u.getAttribute("enctype"))||Fs,d=new FormData(u)}else if(jS(u)||qS(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=u.getAttribute("formaction")||b.getAttribute("action");if(r=v?Ea(v,i):null,s=u.getAttribute("formmethod")||b.getAttribute("method")||Js,o=go(u.getAttribute("formenctype"))||go(b.getAttribute("enctype"))||Fs,d=new FormData(b,u),!YS()){let{name:p,type:R,value:A}=u;if(R==="image"){let z=p?`${p}.`:"";d.append(`${z}x`,"0"),d.append(`${z}y`,"0")}else p&&d.append(p,A)}}else{if(lr(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Js,r=null,o=Fs,y=u}return d&&o==="text/plain"&&(y=d,d=void 0),{action:r,method:s.toLowerCase(),encType:o,formData:d,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function av(u,i,s,r){let o=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return s?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&Ea(o.pathname,i)==="/"?o.pathname=`${$s(i)}/_root.${r}`:o.pathname=`${$s(o.pathname)}.${r}`,o}async function VS(u,i){if(u.id in i)return i[u.id];try{let s=await import(u.module);return i[u.id]=s,s}catch(s){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function KS(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function JS(u,i,s){let r=await Promise.all(u.map(async o=>{let d=i.routes[o.route.id];if(d){let y=await VS(d,s);return y.links?y.links():[]}return[]}));return $S(r.flat(1).filter(KS).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function tp(u,i,s,r,o,d){let y=(v,p)=>s[p]?v.route.id!==s[p].route.id:!0,b=(v,p)=>{var R;return s[p].pathname!==v.pathname||((R=s[p].route.path)==null?void 0:R.endsWith("*"))&&s[p].params["*"]!==v.params["*"]};return d==="assets"?i.filter((v,p)=>y(v,p)||b(v,p)):d==="data"?i.filter((v,p)=>{var A;let R=r.routes[v.route.id];if(!R||!R.hasLoader)return!1;if(y(v,p)||b(v,p))return!0;if(v.route.shouldRevalidate){let z=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((A=s[0])==null?void 0:A.params)||{},nextUrl:new URL(u,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function FS(u,i,{includeHydrateFallback:s}={}){return kS(u.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let d=[o.module];return o.clientActionModule&&(d=d.concat(o.clientActionModule)),o.clientLoaderModule&&(d=d.concat(o.clientLoaderModule)),s&&o.hydrateFallbackModule&&(d=d.concat(o.hydrateFallbackModule)),o.imports&&(d=d.concat(o.imports)),d}).flat(1))}function kS(u){return[...new Set(u)]}function WS(u){let i={},s=Object.keys(u).sort();for(let r of s)i[r]=u[r];return i}function $S(u,i){let s=new Set;return new Set(i),u.reduce((r,o)=>{let d=JSON.stringify(WS(o));return s.has(d)||(s.add(d),r.push({key:d,link:o})),r},[])}function $o(){let u=D.useContext(ii);return Wo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function IS(){let u=D.useContext(er);return Wo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Io=D.createContext(void 0);Io.displayName="FrameworkContext";function ar(){let u=D.useContext(Io);return Wo(u,"You must render this element inside a <HydratedRouter> element"),u}function PS(u,i){let s=D.useContext(Io),[r,o]=D.useState(!1),[d,y]=D.useState(!1),{onFocus:b,onBlur:v,onMouseEnter:p,onMouseLeave:R,onTouchStart:A}=i,z=D.useRef(null);D.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let G=B=>{B.forEach($=>{y($.isIntersecting)})},Q=new IntersectionObserver(G,{threshold:.5});return z.current&&Q.observe(z.current),()=>{Q.disconnect()}}},[u]),D.useEffect(()=>{if(r){let G=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(G)}}},[r]);let q=()=>{o(!0)},Z=()=>{o(!1),y(!1)};return s?u!=="intent"?[d,z,{}]:[d,z,{onFocus:uc(b,q),onBlur:uc(v,Z),onMouseEnter:uc(p,q),onMouseLeave:uc(R,Z),onTouchStart:uc(A,q)}]:[!1,z,{}]}function uc(u,i){return s=>{u&&u(s),s.defaultPrevented||i(s)}}function tb({page:u,...i}){let s=rS(),{nonce:r}=ar(),{router:o}=$o(),d=D.useMemo(()=>qp(o.routes,u,o.basename),[o.routes,u,o.basename]);return d?(i.nonce==null&&r&&(i={...i,nonce:r}),s?D.createElement(lb,{page:u,matches:d,...i}):D.createElement(ab,{page:u,matches:d,...i})):null}function eb(u){let{manifest:i,routeModules:s}=ar(),[r,o]=D.useState([]);return D.useEffect(()=>{let d=!1;return JS(u,i,s).then(y=>{d||o(y)}),()=>{d=!0}},[u,i,s]),r}function lb({page:u,matches:i,...s}){let r=Ta(),{future:o}=ar(),{basename:d}=$o(),y=D.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let b=av(u,d,o.v8_trailingSlashAwareDataRequests,"rsc"),v=!1,p=[];for(let R of i)typeof R.route.shouldRevalidate=="function"?v=!0:p.push(R.route.id);return v&&p.length>0&&b.searchParams.set("_routes",p.join(",")),[b.pathname+b.search]},[d,o.v8_trailingSlashAwareDataRequests,u,r,i]);return D.createElement(D.Fragment,null,y.map(b=>D.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...s})))}function ab({page:u,matches:i,...s}){let r=Ta(),{future:o,manifest:d,routeModules:y}=ar(),{basename:b}=$o(),{loaderData:v,matches:p}=IS(),R=D.useMemo(()=>tp(u,i,p,d,r,"data"),[u,i,p,d,r]),A=D.useMemo(()=>tp(u,i,p,d,r,"assets"),[u,i,p,d,r]),z=D.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let G=new Set,Q=!1;if(i.forEach($=>{var X;let J=d.routes[$.route.id];!J||!J.hasLoader||(!R.some(at=>at.route.id===$.route.id)&&$.route.id in v&&((X=y[$.route.id])!=null&&X.shouldRevalidate)||J.hasClientLoader?Q=!0:G.add($.route.id))}),G.size===0)return[];let B=av(u,b,o.v8_trailingSlashAwareDataRequests,"data");return Q&&G.size>0&&B.searchParams.set("_routes",i.filter($=>G.has($.route.id)).map($=>$.route.id).join(",")),[B.pathname+B.search]},[b,o.v8_trailingSlashAwareDataRequests,v,r,d,R,i,u,y]),q=D.useMemo(()=>FS(A,d),[A,d]),Z=eb(A);return D.createElement(D.Fragment,null,z.map(G=>D.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...s})),q.map(G=>D.createElement("link",{key:G,rel:"modulepreload",href:G,...s})),Z.map(({key:G,link:Q})=>D.createElement("link",{key:G,nonce:s.nonce,...Q,crossOrigin:Q.crossOrigin??s.crossOrigin})))}function nb(...u){return i=>{u.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var ub=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ub&&(window.__reactRouterVersion="7.18.1")}catch{}function ib({basename:u,children:i,useTransitions:s,window:r}){let o=D.useRef();o.current==null&&(o.current=H0({window:r,v5Compat:!0}));let d=o.current,[y,b]=D.useState({action:d.action,location:d.location}),v=D.useCallback(p=>{s===!1?b(p):D.startTransition(()=>b(p))},[s]);return D.useLayoutEffect(()=>d.listen(v),[d,v]),D.createElement(HS,{basename:u,children:i,location:y.location,navigationType:y.action,navigator:d,useTransitions:s})}var nv=D.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:o,reloadDocument:d,replace:y,mask:b,state:v,target:p,to:R,preventScrollReset:A,viewTransition:z,defaultShouldRevalidate:q,...Z},G){let{basename:Q,navigator:B,useTransitions:$}=D.useContext(Sl),J=typeof R=="string"&&Vo.test(R),X=Jp(R,Q);R=X.to;let at=pS(R,{relative:o}),ut=Ta(),et=null;if(b){let zt=Ko(b,[],ut.mask?ut.mask.pathname:"/",!0);Q!=="/"&&(zt.pathname=zt.pathname==="/"?Q:Cl([Q,zt.pathname])),et=B.createHref(zt)}let[ct,vt,xt]=PS(r,Z),Ft=rb(R,{replace:y,mask:b,state:v,target:p,preventScrollReset:A,relative:o,viewTransition:z,defaultShouldRevalidate:q,useTransitions:$});function Bt(zt){i&&i(zt),zt.defaultPrevented||Ft(zt)}let Le=!(X.isExternal||d),oe=D.createElement("a",{...Z,...xt,href:(Le?et:void 0)||X.absoluteURL||at,onClick:Le?Bt:i,ref:nb(G,vt),target:p,"data-discover":!J&&s==="render"?"true":void 0});return ct&&!J?D.createElement(D.Fragment,null,oe,D.createElement(tb,{page:at})):oe});nv.displayName="Link";var Oo=D.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:o=!1,style:d,to:y,viewTransition:b,children:v,...p},R){let A=Ec(y,{relative:p.relative}),z=Ta(),q=D.useContext(er),{navigator:Z,basename:G}=D.useContext(Sl),Q=q!=null&&mb(A)&&b===!0,B=Z.encodeLocation?Z.encodeLocation(A).pathname:A.pathname,$=z.pathname,J=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;s||($=$.toLowerCase(),J=J?J.toLowerCase():null,B=B.toLowerCase()),J&&G&&(J=Ea(J,G)||J);const X=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let at=$===B||!o&&$.startsWith(B)&&$.charAt(X)==="/",ut=J!=null&&(J===B||!o&&J.startsWith(B)&&J.charAt(B.length)==="/"),et={isActive:at,isPending:ut,isTransitioning:Q},ct=at?i:void 0,vt;typeof r=="function"?vt=r(et):vt=[r,at?"active":null,ut?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let xt=typeof d=="function"?d(et):d;return D.createElement(nv,{...p,"aria-current":ct,className:vt,ref:R,style:xt,to:y,viewTransition:b},typeof v=="function"?v(et):v)});Oo.displayName="NavLink";var cb=D.forwardRef(({discover:u="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:o,state:d,method:y=Js,action:b,onSubmit:v,relative:p,preventScrollReset:R,viewTransition:A,defaultShouldRevalidate:z,...q},Z)=>{let{useTransitions:G}=D.useContext(Sl),Q=hb(),B=db(b,{relative:p}),$=y.toLowerCase()==="get"?"get":"post",J=typeof b=="string"&&Vo.test(b),X=at=>{if(v&&v(at),at.defaultPrevented)return;at.preventDefault();let ut=at.nativeEvent.submitter,et=(ut==null?void 0:ut.getAttribute("formmethod"))||y,ct=()=>Q(ut||at.currentTarget,{fetcherKey:i,method:et,navigate:s,replace:o,state:d,relative:p,preventScrollReset:R,viewTransition:A,defaultShouldRevalidate:z});G&&s!==!1?D.startTransition(()=>ct()):ct()};return D.createElement("form",{ref:Z,method:$,action:B,onSubmit:r?v:X,...q,"data-discover":!J&&u==="render"?"true":void 0})});cb.displayName="Form";function sb(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uv(u){let i=D.useContext(ii);return $t(i,sb(u)),i}function rb(u,{target:i,replace:s,mask:r,state:o,preventScrollReset:d,relative:y,viewTransition:b,defaultShouldRevalidate:v,useTransitions:p}={}){let R=vS(),A=Ta(),z=Ec(u,{relative:y});return D.useCallback(q=>{if(QS(q,i)){q.preventDefault();let Z=s!==void 0?s:oc(A)===oc(z),G=()=>R(u,{replace:Z,mask:r,state:o,preventScrollReset:d,relative:y,viewTransition:b,defaultShouldRevalidate:v});p?D.startTransition(()=>G()):G()}},[A,R,z,s,r,o,i,u,d,y,b,v,p])}var fb=0,ob=()=>`__${String(++fb)}__`;function hb(){let{router:u}=uv("useSubmit"),{basename:i}=D.useContext(Sl),s=DS(),r=u.fetch,o=u.navigate;return D.useCallback(async(d,y={})=>{let{action:b,method:v,encType:p,formData:R,body:A}=ZS(d,i);if(y.navigate===!1){let z=y.fetcherKey||ob();await r(z,s,y.action||b,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:R,body:A,formMethod:y.method||v,formEncType:y.encType||p,flushSync:y.flushSync})}else await o(y.action||b,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:R,body:A,formMethod:y.method||v,formEncType:y.encType||p,replace:y.replace,state:y.state,fromRouteId:s,flushSync:y.flushSync,viewTransition:y.viewTransition})},[r,o,i,s])}function db(u,{relative:i}={}){let{basename:s}=D.useContext(Sl),r=D.useContext(Kl);$t(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),d={...Ec(u||".",{relative:i})},y=Ta();if(u==null){d.search=y.search;let b=new URLSearchParams(d.search),v=b.getAll("index");if(v.some(R=>R==="")){b.delete("index"),v.filter(A=>A).forEach(A=>b.append("index",A));let R=b.toString();d.search=R?`?${R}`:""}}return(!u||u===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(d.pathname=d.pathname==="/"?s:Cl([s,d.pathname])),oc(d)}function mb(u,{relative:i}={}){let s=D.useContext(Wp);$t(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=uv("useViewTransitionState"),o=Ec(u,{relative:i});if(!s.isTransitioning)return!1;let d=Ea(s.currentLocation.pathname,r)||s.currentLocation.pathname,y=Ea(s.nextLocation.pathname,r)||s.nextLocation.pathname;return Ws(o.pathname,y)!=null||Ws(o.pathname,d)!=null}var ci=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xn,nn,Ku,xp,yb=(xp=class extends ci{constructor(){super();nt(this,Xn);nt(this,nn);nt(this,Ku);W(this,Ku,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){S(this,nn)||this.setEventListener(S(this,Ku))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,nn))==null||i.call(this),W(this,nn,void 0))}setEventListener(i){var s;W(this,Ku,i),(s=S(this,nn))==null||s.call(this),W(this,nn,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){S(this,Xn)!==i&&(W(this,Xn,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){var i;return typeof S(this,Xn)=="boolean"?S(this,Xn):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Xn=new WeakMap,nn=new WeakMap,Ku=new WeakMap,xp),Po=new yb,pb={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},un,Xo,Cp,vb=(Cp=class{constructor(){nt(this,un,pb);nt(this,Xo,!1)}setTimeoutProvider(u){W(this,un,u)}setTimeout(u,i){return S(this,un).setTimeout(u,i)}clearTimeout(u){S(this,un).clearTimeout(u)}setInterval(u,i){return S(this,un).setInterval(u,i)}clearInterval(u){S(this,un).clearInterval(u)}},un=new WeakMap,Xo=new WeakMap,Cp),Yn=new vb;function gb(u){setTimeout(u,0)}var Sb=typeof window>"u"||"Deno"in globalThis;function qe(){}function bb(u,i){return typeof u=="function"?u(i):u}function xo(u){return typeof u=="number"&&u>=0&&u!==1/0}function iv(u,i){return Math.max(u+(i||0)-Date.now(),0)}function mn(u,i){return typeof u=="function"?u(i):u}function sl(u,i){return typeof u=="function"?u(i):u}function ep(u,i){const{type:s="all",exact:r,fetchStatus:o,predicate:d,queryKey:y,stale:b}=u;if(y){if(r){if(i.queryHash!==th(y,i.options))return!1}else if(!hc(i.queryKey,y))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof b=="boolean"&&i.isStale()!==b||o&&o!==i.state.fetchStatus||d&&!d(i))}function lp(u,i){const{exact:s,status:r,predicate:o,mutationKey:d}=u;if(d){if(!i.options.mutationKey)return!1;if(s){if(In(i.options.mutationKey)!==In(d))return!1}else if(!hc(i.options.mutationKey,d))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function th(u,i){return((i==null?void 0:i.queryKeyHashFn)||In)(u)}function In(u){return JSON.stringify(u,(i,s)=>Co(s)?Object.keys(s).sort().reduce((r,o)=>(r[o]=s[o],r),{}):s)}function hc(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(s=>hc(u[s],i[s])):!1}var Eb=Object.prototype.hasOwnProperty;function cv(u,i,s=0){if(u===i)return u;if(s>500)return i;const r=ap(u)&&ap(i);if(!r&&!(Co(u)&&Co(i)))return i;const d=(r?u:Object.keys(u)).length,y=r?i:Object.keys(i),b=y.length,v=r?new Array(b):{};let p=0;for(let R=0;R<b;R++){const A=r?R:y[R],z=u[A],q=i[A];if(z===q){v[A]=z,(r?R<d:Eb.call(u,A))&&p++;continue}if(z===null||q===null||typeof z!="object"||typeof q!="object"){v[A]=q;continue}const Z=cv(z,q,s+1);v[A]=Z,Z===z&&p++}return d===b&&p===d?u:v}function Is(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const s in u)if(u[s]!==i[s])return!1;return!0}function ap(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function Co(u){if(!np(u))return!1;const i=u.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!np(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function np(u){return Object.prototype.toString.call(u)==="[object Object]"}function Tb(u){return new Promise(i=>{Yn.setTimeout(i,u)})}function Mo(u,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(u,i):s.structuralSharing!==!1?cv(u,i):i}function Ab(u,i,s=0){const r=[...u,i];return s&&r.length>s?r.slice(1):r}function _b(u,i,s=0){const r=[i,...u];return s&&r.length>s?r.slice(0,-1):r}var eh=Symbol();function sv(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===eh?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function lh(u,i){return typeof u=="function"?u(...i):!!u}function Rb(u,i,s){let r=!1,o;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?s():o.addEventListener("abort",s,{once:!0})),o)}),u}var dc=(()=>{let u=()=>Sb;return{isServer(){return u()},setIsServer(i){u=i}}})();function Do(){let u,i;const s=new Promise((o,d)=>{u=o,i=d});s.status="pending",s.catch(()=>{});function r(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{r({status:"fulfilled",value:o}),u(o)},s.reject=o=>{r({status:"rejected",reason:o}),i(o)},s}var Ob=gb;function xb(){let u=[],i=0,s=b=>{b()},r=b=>{b()},o=Ob;const d=b=>{i?u.push(b):o(()=>{s(b)})},y=()=>{const b=u;u=[],b.length&&o(()=>{r(()=>{b.forEach(v=>{s(v)})})})};return{batch:b=>{let v;i++;try{v=b()}finally{i--,i||y()}return v},batchCalls:b=>(...v)=>{d(()=>{b(...v)})},schedule:d,setNotifyFunction:b=>{s=b},setBatchNotifyFunction:b=>{r=b},setScheduler:b=>{o=b}}}var ve=xb(),Ju,cn,Fu,Mp,Cb=(Mp=class extends ci{constructor(){super();nt(this,Ju,!0);nt(this,cn);nt(this,Fu);W(this,Fu,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,cn)||this.setEventListener(S(this,Fu))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,cn))==null||i.call(this),W(this,cn,void 0))}setEventListener(i){var s;W(this,Fu,i),(s=S(this,cn))==null||s.call(this),W(this,cn,i(this.setOnline.bind(this)))}setOnline(i){S(this,Ju)!==i&&(W(this,Ju,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return S(this,Ju)}},Ju=new WeakMap,cn=new WeakMap,Fu=new WeakMap,Mp),Ps=new Cb;function Mb(u){return Math.min(1e3*2**u,3e4)}function rv(u){return(u??"online")==="online"?Ps.isOnline():!0}var No=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function fv(u){let i=!1,s=0,r;const o=Do(),d=()=>o.status!=="pending",y=G=>{var Q;if(!d()){const B=new No(G);z(B),(Q=u.onCancel)==null||Q.call(u,B)}},b=()=>{i=!0},v=()=>{i=!1},p=()=>Po.isFocused()&&(u.networkMode==="always"||Ps.isOnline())&&u.canRun(),R=()=>rv(u.networkMode)&&u.canRun(),A=G=>{d()||(r==null||r(),o.resolve(G))},z=G=>{d()||(r==null||r(),o.reject(G))},q=()=>new Promise(G=>{var Q;r=B=>{(d()||p())&&G(B)},(Q=u.onPause)==null||Q.call(u)}).then(()=>{var G;r=void 0,d()||(G=u.onContinue)==null||G.call(u)}),Z=()=>{if(d())return;let G;const Q=s===0?u.initialPromise:void 0;try{G=Q??u.fn()}catch(B){G=Promise.reject(B)}Promise.resolve(G).then(A).catch(B=>{var ut;if(d())return;const $=u.retry??(dc.isServer()?0:3),J=u.retryDelay??Mb,X=typeof J=="function"?J(s,B):J,at=$===!0||typeof $=="number"&&s<$||typeof $=="function"&&$(s,B);if(i||!at){z(B);return}s++,(ut=u.onFail)==null||ut.call(u,s,B),Tb(X).then(()=>p()?void 0:q()).then(()=>{i?z(B):Z()})})};return{promise:o,status:()=>o.status,cancel:y,continue:()=>(r==null||r(),o),cancelRetry:b,continueRetry:v,canStart:R,start:()=>(R()?Z():q().then(Z),o)}}var Zn,Dp,ov=(Dp=class{constructor(){nt(this,Zn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xo(this.gcTime)&&W(this,Zn,Yn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(dc.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,Zn)!==void 0&&(Yn.clearTimeout(S(this,Zn)),W(this,Zn,void 0))}},Zn=new WeakMap,Dp);function Db(u){return{onFetch:(i,s)=>{var R,A,z,q,Z;const r=i.options,o=(z=(A=(R=i.fetchOptions)==null?void 0:R.meta)==null?void 0:A.fetchMore)==null?void 0:z.direction,d=((q=i.state.data)==null?void 0:q.pages)||[],y=((Z=i.state.data)==null?void 0:Z.pageParams)||[];let b={pages:[],pageParams:[]},v=0;const p=async()=>{let G=!1;const Q=J=>{Rb(J,()=>i.signal,()=>G=!0)},B=sv(i.options,i.fetchOptions),$=async(J,X,at)=>{if(G)return Promise.reject(i.signal.reason);if(X==null&&J.pages.length)return Promise.resolve(J);const et=(()=>{const Ft={client:i.client,queryKey:i.queryKey,pageParam:X,direction:at?"backward":"forward",meta:i.options.meta};return Q(Ft),Ft})(),ct=await B(et),{maxPages:vt}=i.options,xt=at?_b:Ab;return{pages:xt(J.pages,ct,vt),pageParams:xt(J.pageParams,X,vt)}};if(o&&d.length){const J=o==="backward",X=J?Nb:up,at={pages:d,pageParams:y},ut=X(r,at);b=await $(at,ut,J)}else{const J=u??d.length;do{const X=v===0?y[0]??r.initialPageParam:up(r,b);if(v>0&&X==null)break;b=await $(b,X),v++}while(v<J)}return b};i.options.persister?i.fetchFn=()=>{var G,Q;return(Q=(G=i.options).persister)==null?void 0:Q.call(G,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=p}}}function up(u,{pages:i,pageParams:s}){const r=i.length-1;return i.length>0?u.getNextPageParam(i[r],i,s[r],s):void 0}function Nb(u,{pages:i,pageParams:s}){var r;return i.length>0?(r=u.getPreviousPageParam)==null?void 0:r.call(u,i[0],i,s[0],s):void 0}var ku,Vn,Wu,gl,Kn,Ee,mc,Jn,cl,hv,ya,Np,zb=(Np=class extends ov{constructor(i){super();nt(this,cl);nt(this,ku);nt(this,Vn);nt(this,Wu);nt(this,gl);nt(this,Kn);nt(this,Ee);nt(this,mc);nt(this,Jn);W(this,Jn,!1),W(this,mc,i.defaultOptions),this.setOptions(i.options),this.observers=[],W(this,Kn,i.client),W(this,gl,S(this,Kn).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,W(this,Vn,cp(this.options)),this.state=i.state??S(this,Vn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return S(this,ku)}get promise(){var i;return(i=S(this,Ee))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,mc),...i},i!=null&&i._type&&W(this,ku,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=cp(this.options);s.data!==void 0&&(this.setState(ip(s.data,s.dataUpdatedAt)),W(this,Vn,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,gl).remove(this)}setData(i,s){const r=Mo(this.state.data,i,this.options);return yt(this,cl,ya).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(i){yt(this,cl,ya).call(this,{type:"setState",state:i})}cancel(i){var r,o;const s=(r=S(this,Ee))==null?void 0:r.promise;return(o=S(this,Ee))==null||o.cancel(i),s?s.then(qe).catch(qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,Vn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>sl(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===eh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>mn(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!iv(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=S(this,Ee))==null||s.continue()}onOnline(){var s;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=S(this,Ee))==null||s.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(this,gl).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(S(this,Ee)&&(S(this,Jn)||yt(this,cl,hv).call(this)?S(this,Ee).cancel({revert:!0}):S(this,Ee).cancelRetry()),this.scheduleGc()),S(this,gl).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||yt(this,cl,ya).call(this,{type:"invalidate"})}async fetch(i,s){var p,R,A,z,q,Z,G,Q,B,$,J;if(this.state.fetchStatus!=="idle"&&((p=S(this,Ee))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ee))return S(this,Ee).continueRetry(),S(this,Ee).promise}if(i&&this.setOptions(i),!this.options.queryFn){const X=this.observers.find(at=>at.options.queryFn);X&&this.setOptions(X.options)}const r=new AbortController,o=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(W(this,Jn,!0),r.signal)})},d=()=>{const X=sv(this.options,s),ut=(()=>{const et={client:S(this,Kn),queryKey:this.queryKey,meta:this.meta};return o(et),et})();return W(this,Jn,!1),this.options.persister?this.options.persister(X,ut,this):X(ut)},b=(()=>{const X={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:S(this,Kn),state:this.state,fetchFn:d};return o(X),X})(),v=S(this,ku)==="infinite"?Db(this.options.pages):this.options.behavior;v==null||v.onFetch(b,this),W(this,Wu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((R=b.fetchOptions)==null?void 0:R.meta))&&yt(this,cl,ya).call(this,{type:"fetch",meta:(A=b.fetchOptions)==null?void 0:A.meta}),W(this,Ee,fv({initialPromise:s==null?void 0:s.initialPromise,fn:b.fetchFn,onCancel:X=>{X instanceof No&&X.revert&&this.setState({...S(this,Wu),fetchStatus:"idle"}),r.abort()},onFail:(X,at)=>{yt(this,cl,ya).call(this,{type:"failed",failureCount:X,error:at})},onPause:()=>{yt(this,cl,ya).call(this,{type:"pause"})},onContinue:()=>{yt(this,cl,ya).call(this,{type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode,canRun:()=>!0}));try{const X=await S(this,Ee).start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(q=(z=S(this,gl).config).onSuccess)==null||q.call(z,X,this),(G=(Z=S(this,gl).config).onSettled)==null||G.call(Z,X,this.state.error,this),X}catch(X){if(X instanceof No){if(X.silent)return S(this,Ee).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw yt(this,cl,ya).call(this,{type:"error",error:X}),(B=(Q=S(this,gl).config).onError)==null||B.call(Q,X,this),(J=($=S(this,gl).config).onSettled)==null||J.call($,this.state.data,X,this),X}finally{this.scheduleGc()}}},ku=new WeakMap,Vn=new WeakMap,Wu=new WeakMap,gl=new WeakMap,Kn=new WeakMap,Ee=new WeakMap,mc=new WeakMap,Jn=new WeakMap,cl=new WeakSet,hv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ya=function(i){const s=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...dv(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...ip(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,Wu,i.manual?o:void 0),o;case"error":const d=i.error;return{...r,error:d,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=s(this.state),ve.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,gl).notify({query:this,type:"updated",action:i})})},Np);function dv(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rv(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function ip(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function cp(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,s=i!==void 0,r=s?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var ke,Rt,yc,Be,Fn,$u,pa,sn,pc,Iu,Pu,kn,Wn,rn,ti,Lt,rc,zo,Uo,Lo,Ho,wo,jo,Bo,mv,zp,Ub=(zp=class extends ci{constructor(i,s){super();nt(this,Lt);nt(this,ke);nt(this,Rt);nt(this,yc);nt(this,Be);nt(this,Fn);nt(this,$u);nt(this,pa);nt(this,sn);nt(this,pc);nt(this,Iu);nt(this,Pu);nt(this,kn);nt(this,Wn);nt(this,rn);nt(this,ti,new Set);this.options=s,W(this,ke,i),W(this,sn,null),W(this,pa,Do()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,Rt).addObserver(this),sp(S(this,Rt),this.options)?yt(this,Lt,rc).call(this):this.updateResult(),yt(this,Lt,Ho).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qo(S(this,Rt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qo(S(this,Rt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,yt(this,Lt,wo).call(this),yt(this,Lt,jo).call(this),S(this,Rt).removeObserver(this)}setOptions(i){const s=this.options,r=S(this,Rt);if(this.options=S(this,ke).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sl(this.options.enabled,S(this,Rt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");yt(this,Lt,Bo).call(this),S(this,Rt).setOptions(this.options),s._defaulted&&!Is(this.options,s)&&S(this,ke).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,Rt),observer:this});const o=this.hasListeners();o&&rp(S(this,Rt),r,this.options,s)&&yt(this,Lt,rc).call(this),this.updateResult(),o&&(S(this,Rt)!==r||sl(this.options.enabled,S(this,Rt))!==sl(s.enabled,S(this,Rt))||mn(this.options.staleTime,S(this,Rt))!==mn(s.staleTime,S(this,Rt)))&&yt(this,Lt,zo).call(this);const d=yt(this,Lt,Uo).call(this);o&&(S(this,Rt)!==r||sl(this.options.enabled,S(this,Rt))!==sl(s.enabled,S(this,Rt))||d!==S(this,rn))&&yt(this,Lt,Lo).call(this,d)}getOptimisticResult(i){const s=S(this,ke).getQueryCache().build(S(this,ke),i),r=this.createResult(s,i);return Hb(this,r)&&(W(this,Be,r),W(this,$u,this.options),W(this,Fn,S(this,Rt).state)),r}getCurrentResult(){return S(this,Be)}trackResult(i,s){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),s==null||s(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,pa).status==="pending"&&S(this,pa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(i){S(this,ti).add(i)}getCurrentQuery(){return S(this,Rt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=S(this,ke).defaultQueryOptions(i),r=S(this,ke).getQueryCache().build(S(this,ke),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(i){return yt(this,Lt,rc).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,Be)))}createResult(i,s){var vt;const r=S(this,Rt),o=this.options,d=S(this,Be),y=S(this,Fn),b=S(this,$u),p=i!==r?i.state:S(this,yc),{state:R}=i;let A={...R},z=!1,q;if(s._optimisticResults){const xt=this.hasListeners(),Ft=!xt&&sp(i,s),Bt=xt&&rp(i,r,s,o);(Ft||Bt)&&(A={...A,...dv(R.data,i.options)}),s._optimisticResults==="isRestoring"&&(A.fetchStatus="idle")}let{error:Z,errorUpdatedAt:G,status:Q}=A;q=A.data;let B=!1;if(s.placeholderData!==void 0&&q===void 0&&Q==="pending"){let xt;d!=null&&d.isPlaceholderData&&s.placeholderData===(b==null?void 0:b.placeholderData)?(xt=d.data,B=!0):xt=typeof s.placeholderData=="function"?s.placeholderData((vt=S(this,Pu))==null?void 0:vt.state.data,S(this,Pu)):s.placeholderData,xt!==void 0&&(Q="success",q=Mo(d==null?void 0:d.data,xt,s),z=!0)}if(s.select&&q!==void 0&&!B)if(d&&q===(y==null?void 0:y.data)&&s.select===S(this,pc))q=S(this,Iu);else try{W(this,pc,s.select),q=s.select(q),q=Mo(d==null?void 0:d.data,q,s),W(this,Iu,q),W(this,sn,null)}catch(xt){W(this,sn,xt)}S(this,sn)&&(Z=S(this,sn),q=S(this,Iu),G=Date.now(),Q="error");const $=A.fetchStatus==="fetching",J=Q==="pending",X=Q==="error",at=J&&$,ut=q!==void 0,ct={status:Q,fetchStatus:A.fetchStatus,isPending:J,isSuccess:Q==="success",isError:X,isInitialLoading:at,isLoading:at,data:q,dataUpdatedAt:A.dataUpdatedAt,error:Z,errorUpdatedAt:G,failureCount:A.fetchFailureCount,failureReason:A.fetchFailureReason,errorUpdateCount:A.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:A.dataUpdateCount>p.dataUpdateCount||A.errorUpdateCount>p.errorUpdateCount,isFetching:$,isRefetching:$&&!J,isLoadingError:X&&!ut,isPaused:A.fetchStatus==="paused",isPlaceholderData:z,isRefetchError:X&&ut,isStale:ah(i,s),refetch:this.refetch,promise:S(this,pa),isEnabled:sl(s.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const xt=ct.data!==void 0,Ft=ct.status==="error"&&!xt,Bt=zt=>{Ft?zt.reject(ct.error):xt&&zt.resolve(ct.data)},Le=()=>{const zt=W(this,pa,ct.promise=Do());Bt(zt)},oe=S(this,pa);switch(oe.status){case"pending":i.queryHash===r.queryHash&&Bt(oe);break;case"fulfilled":(Ft||ct.data!==oe.value)&&Le();break;case"rejected":(!Ft||ct.error!==oe.reason)&&Le();break}}return ct}updateResult(){const i=S(this,Be),s=this.createResult(S(this,Rt),this.options);if(W(this,Fn,S(this,Rt).state),W(this,$u,this.options),S(this,Fn).data!==void 0&&W(this,Pu,S(this,Rt)),Is(s,i))return;W(this,Be,s);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!S(this,ti).size)return!0;const y=new Set(d??S(this,ti));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,Be)).some(b=>{const v=b;return S(this,Be)[v]!==i[v]&&y.has(v)})};yt(this,Lt,mv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&yt(this,Lt,Ho).call(this)}},ke=new WeakMap,Rt=new WeakMap,yc=new WeakMap,Be=new WeakMap,Fn=new WeakMap,$u=new WeakMap,pa=new WeakMap,sn=new WeakMap,pc=new WeakMap,Iu=new WeakMap,Pu=new WeakMap,kn=new WeakMap,Wn=new WeakMap,rn=new WeakMap,ti=new WeakMap,Lt=new WeakSet,rc=function(i){yt(this,Lt,Bo).call(this);let s=S(this,Rt).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(qe)),s},zo=function(){yt(this,Lt,wo).call(this);const i=mn(this.options.staleTime,S(this,Rt));if(dc.isServer()||S(this,Be).isStale||!xo(i))return;const r=iv(S(this,Be).dataUpdatedAt,i)+1;W(this,kn,Yn.setTimeout(()=>{S(this,Be).isStale||this.updateResult()},r))},Uo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,Rt)):this.options.refetchInterval)??!1},Lo=function(i){yt(this,Lt,jo).call(this),W(this,rn,i),!(dc.isServer()||sl(this.options.enabled,S(this,Rt))===!1||!xo(S(this,rn))||S(this,rn)===0)&&W(this,Wn,Yn.setInterval(()=>{(this.options.refetchIntervalInBackground||Po.isFocused())&&yt(this,Lt,rc).call(this)},S(this,rn)))},Ho=function(){yt(this,Lt,zo).call(this),yt(this,Lt,Lo).call(this,yt(this,Lt,Uo).call(this))},wo=function(){S(this,kn)!==void 0&&(Yn.clearTimeout(S(this,kn)),W(this,kn,void 0))},jo=function(){S(this,Wn)!==void 0&&(Yn.clearInterval(S(this,Wn)),W(this,Wn,void 0))},Bo=function(){const i=S(this,ke).getQueryCache().build(S(this,ke),this.options);if(i===S(this,Rt))return;const s=S(this,Rt);W(this,Rt,i),W(this,yc,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},mv=function(i){ve.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(S(this,Be))}),S(this,ke).getQueryCache().notify({query:S(this,Rt),type:"observerResultsUpdated"})})},zp);function Lb(u,i){return sl(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&sl(i.retryOnMount,u)===!1)}function sp(u,i){return Lb(u,i)||u.state.data!==void 0&&qo(u,i,i.refetchOnMount)}function qo(u,i,s){if(sl(i.enabled,u)!==!1&&mn(i.staleTime,u)!=="static"){const r=typeof s=="function"?s(u):s;return r==="always"||r!==!1&&ah(u,i)}return!1}function rp(u,i,s,r){return(u!==i||sl(r.enabled,u)===!1)&&(!s.suspense||u.state.status!=="error")&&ah(u,s)}function ah(u,i){return sl(i.enabled,u)!==!1&&u.isStaleByTime(mn(i.staleTime,u))}function Hb(u,i){return!Is(u.getCurrentResult(),i)}var vc,Yl,Ue,$n,Xl,ln,Up,wb=(Up=class extends ov{constructor(i){super();nt(this,Xl);nt(this,vc);nt(this,Yl);nt(this,Ue);nt(this,$n);W(this,vc,i.client),this.mutationId=i.mutationId,W(this,Ue,i.mutationCache),W(this,Yl,[]),this.state=i.state||yv(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,Yl).includes(i)||(S(this,Yl).push(i),this.clearGcTimeout(),S(this,Ue).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){W(this,Yl,S(this,Yl).filter(s=>s!==i)),this.scheduleGc(),S(this,Ue).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,Yl).length||(this.state.status==="pending"?this.scheduleGc():S(this,Ue).remove(this))}continue(){var i;return((i=S(this,$n))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,b,v,p,R,A,z,q,Z,G,Q,B,$,J,X,at,ut,et;const s=()=>{yt(this,Xl,ln).call(this,{type:"continue"})},r={client:S(this,vc),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,$n,fv({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(ct,vt)=>{yt(this,Xl,ln).call(this,{type:"failed",failureCount:ct,error:vt})},onPause:()=>{yt(this,Xl,ln).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,Ue).canRun(this)}));const o=this.state.status==="pending",d=!S(this,$n).canStart();try{if(o)s();else{yt(this,Xl,ln).call(this,{type:"pending",variables:i,isPaused:d}),S(this,Ue).config.onMutate&&await S(this,Ue).config.onMutate(i,this,r);const vt=await((b=(y=this.options).onMutate)==null?void 0:b.call(y,i,r));vt!==this.state.context&&yt(this,Xl,ln).call(this,{type:"pending",context:vt,variables:i,isPaused:d})}const ct=await S(this,$n).start();return await((p=(v=S(this,Ue).config).onSuccess)==null?void 0:p.call(v,ct,i,this.state.context,this,r)),await((A=(R=this.options).onSuccess)==null?void 0:A.call(R,ct,i,this.state.context,r)),await((q=(z=S(this,Ue).config).onSettled)==null?void 0:q.call(z,ct,null,this.state.variables,this.state.context,this,r)),await((G=(Z=this.options).onSettled)==null?void 0:G.call(Z,ct,null,i,this.state.context,r)),yt(this,Xl,ln).call(this,{type:"success",data:ct}),ct}catch(ct){try{await((B=(Q=S(this,Ue).config).onError)==null?void 0:B.call(Q,ct,i,this.state.context,this,r))}catch(vt){Promise.reject(vt)}try{await((J=($=this.options).onError)==null?void 0:J.call($,ct,i,this.state.context,r))}catch(vt){Promise.reject(vt)}try{await((at=(X=S(this,Ue).config).onSettled)==null?void 0:at.call(X,void 0,ct,this.state.variables,this.state.context,this,r))}catch(vt){Promise.reject(vt)}try{await((et=(ut=this.options).onSettled)==null?void 0:et.call(ut,void 0,ct,i,this.state.context,r))}catch(vt){Promise.reject(vt)}throw yt(this,Xl,ln).call(this,{type:"error",error:ct}),ct}finally{S(this,Ue).runNext(this)}}},vc=new WeakMap,Yl=new WeakMap,Ue=new WeakMap,$n=new WeakMap,Xl=new WeakSet,ln=function(i){const s=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ve.batch(()=>{S(this,Yl).forEach(r=>{r.onMutationUpdate(i)}),S(this,Ue).notify({mutation:this,type:"updated",action:i})})},Up);function yv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var va,xl,gc,Lp,jb=(Lp=class extends ci{constructor(i={}){super();nt(this,va);nt(this,xl);nt(this,gc);this.config=i,W(this,va,new Set),W(this,xl,new Map),W(this,gc,0)}build(i,s,r){const o=new wb({client:i,mutationCache:this,mutationId:++Gs(this,gc)._,options:i.defaultMutationOptions(s),state:r});return this.add(o),o}add(i){S(this,va).add(i);const s=Ys(i);if(typeof s=="string"){const r=S(this,xl).get(s);r?r.push(i):S(this,xl).set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,va).delete(i)){const s=Ys(i);if(typeof s=="string"){const r=S(this,xl).get(s);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&S(this,xl).delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=Ys(i);if(typeof s=="string"){const r=S(this,xl).get(s),o=r==null?void 0:r.find(d=>d.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r;const s=Ys(i);if(typeof s=="string"){const o=(r=S(this,xl).get(s))==null?void 0:r.find(d=>d!==i&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ve.batch(()=>{S(this,va).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,va).clear(),S(this,xl).clear()})}getAll(){return Array.from(S(this,va))}find(i){const s={exact:!0,...i};return this.getAll().find(r=>lp(s,r))}findAll(i={}){return this.getAll().filter(s=>lp(i,s))}notify(i){ve.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return ve.batch(()=>Promise.all(i.map(s=>s.continue().catch(qe))))}},va=new WeakMap,xl=new WeakMap,gc=new WeakMap,Lp);function Ys(u){var i;return(i=u.options.scope)==null?void 0:i.id}var ga,fn,We,Sa,ba,ks,Go,Hp,Bb=(Hp=class extends ci{constructor(s,r){super();nt(this,ba);nt(this,ga);nt(this,fn);nt(this,We);nt(this,Sa);W(this,ga,s),this.setOptions(r),this.bindMethods(),yt(this,ba,ks).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var o;const r=this.options;this.options=S(this,ga).defaultMutationOptions(s),Is(this.options,r)||S(this,ga).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,We),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&In(r.mutationKey)!==In(this.options.mutationKey)?this.reset():((o=S(this,We))==null?void 0:o.state.status)==="pending"&&S(this,We).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=S(this,We))==null||s.removeObserver(this)}onMutationUpdate(s){yt(this,ba,ks).call(this),yt(this,ba,Go).call(this,s)}getCurrentResult(){return S(this,fn)}reset(){var s;(s=S(this,We))==null||s.removeObserver(this),W(this,We,void 0),yt(this,ba,ks).call(this),yt(this,ba,Go).call(this)}mutate(s,r){var o;return W(this,Sa,r),(o=S(this,We))==null||o.removeObserver(this),W(this,We,S(this,ga).getMutationCache().build(S(this,ga),this.options)),S(this,We).addObserver(this),S(this,We).execute(s)}},ga=new WeakMap,fn=new WeakMap,We=new WeakMap,Sa=new WeakMap,ba=new WeakSet,ks=function(){var r;const s=((r=S(this,We))==null?void 0:r.state)??yv();W(this,fn,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},Go=function(s){ve.batch(()=>{var r,o,d,y,b,v,p,R;if(S(this,Sa)&&this.hasListeners()){const A=S(this,fn).variables,z=S(this,fn).context,q={client:S(this,ga),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(o=(r=S(this,Sa)).onSuccess)==null||o.call(r,s.data,A,z,q)}catch(Z){Promise.reject(Z)}try{(y=(d=S(this,Sa)).onSettled)==null||y.call(d,s.data,null,A,z,q)}catch(Z){Promise.reject(Z)}}else if((s==null?void 0:s.type)==="error"){try{(v=(b=S(this,Sa)).onError)==null||v.call(b,s.error,A,z,q)}catch(Z){Promise.reject(Z)}try{(R=(p=S(this,Sa)).onSettled)==null||R.call(p,void 0,s.error,A,z,q)}catch(Z){Promise.reject(Z)}}}this.listeners.forEach(A=>{A(S(this,fn))})})},Hp),Zl,wp,qb=(wp=class extends ci{constructor(i={}){super();nt(this,Zl);this.config=i,W(this,Zl,new Map)}build(i,s,r){const o=s.queryKey,d=s.queryHash??th(o,s);let y=this.get(d);return y||(y=new zb({client:i,queryKey:o,queryHash:d,options:i.defaultQueryOptions(s),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(y)),y}add(i){S(this,Zl).has(i.queryHash)||(S(this,Zl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=S(this,Zl).get(i.queryHash);s&&(i.destroy(),s===i&&S(this,Zl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){ve.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,Zl).get(i)}getAll(){return[...S(this,Zl).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(r=>ep(s,r))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(r=>ep(i,r)):s}notify(i){ve.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},Zl=new WeakMap,wp),le,on,hn,ei,li,dn,ai,ni,jp,Gb=(jp=class{constructor(u={}){nt(this,le);nt(this,on);nt(this,hn);nt(this,ei);nt(this,li);nt(this,dn);nt(this,ai);nt(this,ni);W(this,le,u.queryCache||new qb),W(this,on,u.mutationCache||new jb),W(this,hn,u.defaultOptions||{}),W(this,ei,new Map),W(this,li,new Map),W(this,dn,0)}mount(){Gs(this,dn)._++,S(this,dn)===1&&(W(this,ai,Po.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,le).onFocus())})),W(this,ni,Ps.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,le).onOnline())})))}unmount(){var u,i;Gs(this,dn)._--,S(this,dn)===0&&((u=S(this,ai))==null||u.call(this),W(this,ai,void 0),(i=S(this,ni))==null||i.call(this),W(this,ni,void 0))}isFetching(u){return S(this,le).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,on).findAll({...u,status:"pending"}).length}getQueryData(u){var s;const i=this.defaultQueryOptions({queryKey:u});return(s=S(this,le).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),s=S(this,le).build(this,i),r=s.state.data;return r===void 0?this.fetchQuery(u):(u.revalidateIfStale&&s.isStaleByTime(mn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(u){return S(this,le).findAll(u).map(({queryKey:i,state:s})=>{const r=s.data;return[i,r]})}setQueryData(u,i,s){const r=this.defaultQueryOptions({queryKey:u}),o=S(this,le).get(r.queryHash),d=o==null?void 0:o.state.data,y=bb(i,d);if(y!==void 0)return S(this,le).build(this,r).setData(y,{...s,manual:!0})}setQueriesData(u,i,s){return ve.batch(()=>S(this,le).findAll(u).map(({queryKey:r})=>[r,this.setQueryData(r,i,s)]))}getQueryState(u){var s;const i=this.defaultQueryOptions({queryKey:u});return(s=S(this,le).get(i.queryHash))==null?void 0:s.state}removeQueries(u){const i=S(this,le);ve.batch(()=>{i.findAll(u).forEach(s=>{i.remove(s)})})}resetQueries(u,i){const s=S(this,le);return ve.batch(()=>(s.findAll(u).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const s={revert:!0,...i},r=ve.batch(()=>S(this,le).findAll(u).map(o=>o.cancel(s)));return Promise.all(r).then(qe).catch(qe)}invalidateQueries(u,i={}){return ve.batch(()=>(S(this,le).findAll(u).forEach(s=>{s.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},r=ve.batch(()=>S(this,le).findAll(u).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,s);return s.throwOnError||(d=d.catch(qe)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(r).then(qe)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const s=S(this,le).build(this,i);return s.isStaleByTime(mn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(qe).catch(qe)}fetchInfiniteQuery(u){return u._type="infinite",this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(qe).catch(qe)}ensureInfiniteQueryData(u){return u._type="infinite",this.ensureQueryData(u)}resumePausedMutations(){return Ps.isOnline()?S(this,on).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,le)}getMutationCache(){return S(this,on)}getDefaultOptions(){return S(this,hn)}setDefaultOptions(u){W(this,hn,u)}setQueryDefaults(u,i){S(this,ei).set(In(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...S(this,ei).values()],s={};return i.forEach(r=>{hc(u,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(u,i){S(this,li).set(In(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...S(this,li).values()],s={};return i.forEach(r=>{hc(u,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(u){if(u._defaulted)return u;const i={...S(this,hn).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=th(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===eh&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,hn).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,le).clear(),S(this,on).clear()}},le=new WeakMap,on=new WeakMap,hn=new WeakMap,ei=new WeakMap,li=new WeakMap,dn=new WeakMap,ai=new WeakMap,ni=new WeakMap,jp),pv=D.createContext(void 0),nh=u=>{const i=D.useContext(pv);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Qb=({client:u,children:i})=>(D.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),Y.jsx(pv.Provider,{value:u,children:i})),vv=D.createContext(!1),Yb=()=>D.useContext(vv);vv.Provider;function Xb(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var Zb=D.createContext(Xb()),Vb=()=>D.useContext(Zb),Kb=(u,i,s)=>{const r=s!=null&&s.state.error&&typeof u.throwOnError=="function"?lh(u.throwOnError,[s.state.error,s]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||r)&&(i.isReset()||(u.retryOnMount=!1))},Jb=u=>{D.useEffect(()=>{u.clearReset()},[u])},Fb=({result:u,errorResetBoundary:i,throwOnError:s,query:r,suspense:o})=>u.isError&&!i.isReset()&&!u.isFetching&&r&&(o&&u.data===void 0||lh(s,[u.error,r])),kb=u=>{if(u.suspense){const s=o=>o==="static"?o:Math.max(o??1e3,1e3),r=u.staleTime;u.staleTime=typeof r=="function"?(...o)=>s(r(...o)):s(r),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},Wb=(u,i)=>u.isLoading&&u.isFetching&&!i,$b=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,fp=(u,i,s)=>i.fetchOptimistic(u).catch(()=>{s.clearReset()});function Ib(u,i,s){var q,Z,G,Q;const r=Yb(),o=Vb(),d=nh(),y=d.defaultQueryOptions(u);(Z=(q=d.getDefaultOptions().queries)==null?void 0:q._experimental_beforeQuery)==null||Z.call(q,y);const b=d.getQueryCache().get(y.queryHash),v=u.subscribed!==!1;y._optimisticResults=r?"isRestoring":v?"optimistic":void 0,kb(y),Kb(y,o,b),Jb(o);const p=!d.getQueryCache().get(y.queryHash),[R]=D.useState(()=>new i(d,y)),A=R.getOptimisticResult(y),z=!r&&v;if(D.useSyncExternalStore(D.useCallback(B=>{const $=z?R.subscribe(ve.batchCalls(B)):qe;return R.updateResult(),$},[R,z]),()=>R.getCurrentResult(),()=>R.getCurrentResult()),D.useEffect(()=>{R.setOptions(y)},[y,R]),$b(y,A))throw fp(y,R,o);if(Fb({result:A,errorResetBoundary:o,throwOnError:y.throwOnError,query:b,suspense:y.suspense}))throw A.error;if((Q=(G=d.getDefaultOptions().queries)==null?void 0:G._experimental_afterQuery)==null||Q.call(G,y,A),y.experimental_prefetchInRender&&!dc.isServer()&&Wb(A,r)){const B=p?fp(y,R,o):b==null?void 0:b.promise;B==null||B.catch(qe).finally(()=>{R.updateResult()})}return y.notifyOnChangeProps?A:R.trackResult(A)}function gv(u,i){return Ib(u,Ub)}function Pb(u,i){const s=nh(),[r]=D.useState(()=>new Bb(s,u));D.useEffect(()=>{r.setOptions(u)},[r,u]);const o=D.useSyncExternalStore(D.useCallback(y=>r.subscribe(ve.batchCalls(y)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),d=D.useCallback((y,b)=>{r.mutate(y,b).catch(qe)},[r]);if(o.error&&lh(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}const op=[{to:"/",label:"Board",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"},{to:"/triggers",label:"Triggers",d:"M13 10V3L4 14h7v7l9-11h-7z"}],tE=[{href:"/viewer",label:"Legacy viewer"}];function eE(){const u=({isActive:s})=>`flex items-center gap-2 px-2 py-1.5 text-[13px] rounded-lg transition-all duration-150 ${s?"bg-sidebar-active text-text font-medium shadow-[var(--shadow-xs)]":"text-text-secondary hover:text-text hover:bg-sidebar-hover"}`,i=({isActive:s})=>`flex flex-col items-center justify-center gap-0.5 py-1.5 text-[10px] transition-colors ${s?"text-agent font-medium":"text-text-tertiary"}`;return Y.jsxs(Y.Fragment,{children:[Y.jsxs("aside",{className:"hidden md:flex w-60 bg-sidebar flex-col flex-shrink-0 border-r border-sidebar-border",children:[Y.jsx("div",{className:"px-3 pt-3 pb-1",children:Y.jsxs("div",{className:"flex items-center gap-2.5 px-2 mb-3",children:[Y.jsx("div",{className:"w-7 h-7 rounded-lg bg-agent flex items-center justify-center",children:Y.jsx("span",{className:"text-white text-xs font-bold",children:"M"})}),Y.jsx("span",{className:"text-[14px] font-semibold text-text tracking-tight",children:"MAMA Operator"})]})}),Y.jsxs("nav",{className:"flex-1 py-2 px-2 overflow-y-auto",children:[Y.jsx("div",{className:"space-y-0.5",children:op.map(s=>Y.jsx(Oo,{to:s.to,end:s.to==="/",className:u,children:({isActive:r})=>Y.jsxs(Y.Fragment,{children:[Y.jsx("svg",{className:`w-5 h-5 flex-shrink-0 ${r?"text-text":"text-text-tertiary"}`,fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",children:Y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:s.d})}),Y.jsx("span",{className:"flex-1",children:s.label})]})},s.to))}),Y.jsx("div",{className:"mt-4 pt-3 border-t border-sidebar-border space-y-0.5",children:tE.map(s=>Y.jsx("a",{href:s.href,className:"flex items-center gap-2 px-2 py-1.5 text-[13px] rounded-lg text-text-tertiary hover:text-text hover:bg-sidebar-hover transition-colors",children:s.label},s.href))})]}),Y.jsx("div",{className:"px-4 py-3",children:Y.jsx("div",{className:"text-[10px] text-text-tertiary",children:"MAMA Operator (beta)"})})]}),Y.jsx("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 bg-surface border-t border-border z-50 flex justify-around",children:op.map(s=>Y.jsx(Oo,{to:s.to,end:s.to==="/",className:i,children:({isActive:r})=>Y.jsxs(Y.Fragment,{children:[Y.jsx("svg",{className:`w-5 h-5 ${r?"text-agent":"text-text-tertiary"}`,fill:"none",stroke:"currentColor",strokeWidth:1.5,viewBox:"0 0 24 24",children:Y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:s.d})}),Y.jsx("span",{children:s.label})]})},s.to))})]})}function lE(){return Y.jsxs("div",{className:"flex h-full bg-bg",children:[Y.jsx(eE,{}),Y.jsx("main",{className:"flex-1 overflow-y-auto pb-14 md:pb-0",children:Y.jsx(LS,{})})]})}async function Xs(u,i){const s=await fetch(u,{headers:{"content-type":"application/json"},...i});if(!s.ok)throw new Error(`API ${s.status}: ${await s.text()}`);return s.json()}const tr={getReport:()=>Xs("/api/report"),getOperatorSummary:()=>Xs("/api/operator/summary"),listTriggers:()=>Xs("/api/operator/triggers"),disableTrigger:async(u,i)=>{await Xs(`/api/operator/triggers/${encodeURIComponent(u)}/disable`,{method:"POST",body:JSON.stringify({reason:i})})}};function aE(u){const i=new EventSource("/api/report/events");return i.addEventListener("report-update",s=>{try{u.onUpdate(JSON.parse(s.data))}catch{}}),u.onOpen&&i.addEventListener("open",u.onOpen),()=>i.close()}const nE=["briefing","action_required","decisions","pipeline"];function uE(u,i){const s=i;if(Array.isArray(s==null?void 0:s.slots)){const r={};for(const o of s.slots)r[o.slotId]=o;return r}if(s!=null&&s.deleted){const r={...u};return delete r[s.deleted],r}return s!=null&&s.slot&&s.html!==void 0?{...u,[s.slot]:{slotId:s.slot,html:s.html,priority:s.priority??0,updatedAt:Date.now()}}:u}function iE(u){const i=nE,s=i.filter(o=>u[o]).map(o=>u[o]),r=Object.values(u).filter(o=>!i.includes(o.slotId)).sort((o,d)=>o.priority-d.priority);return[...s,...r]}/*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */function hp(u,i){(i==null||i>u.length)&&(i=u.length);for(var s=0,r=Array(i);s<i;s++)r[s]=u[s];return r}function cE(u){if(Array.isArray(u))return u}function sE(u,i){var s=u==null?null:typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(s!=null){var r,o,d,y,b=[],v=!0,p=!1;try{if(d=(s=s.call(u)).next,i!==0)for(;!(v=(r=d.call(s)).done)&&(b.push(r.value),b.length!==i);v=!0);}catch(R){p=!0,o=R}finally{try{if(!v&&s.return!=null&&(y=s.return(),Object(y)!==y))return}finally{if(p)throw o}}return b}}function rE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fE(u,i){return cE(u)||sE(u,i)||oE(u,i)||rE()}function oE(u,i){if(u){if(typeof u=="string")return hp(u,i);var s={}.toString.call(u).slice(8,-1);return s==="Object"&&u.constructor&&(s=u.constructor.name),s==="Map"||s==="Set"?Array.from(u):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?hp(u,i):void 0}}const Sv=Object.entries,dp=Object.setPrototypeOf,hE=Object.isFrozen,dE=Object.getPrototypeOf,mE=Object.getOwnPropertyDescriptor;let Ce=Object.freeze,Me=Object.seal,Vu=Object.create,bv=typeof Reflect<"u"&&Reflect,Qo=bv.apply,Yo=bv.construct;Ce||(Ce=function(i){return i});Me||(Me=function(i){return i});Qo||(Qo=function(i,s){for(var r=arguments.length,o=new Array(r>2?r-2:0),d=2;d<r;d++)o[d-2]=arguments[d];return i.apply(s,o)});Yo||(Yo=function(i){for(var s=arguments.length,r=new Array(s>1?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];return new i(...r)});const ic=fe(Array.prototype.forEach),yE=fe(Array.prototype.lastIndexOf),mp=fe(Array.prototype.pop),Zu=fe(Array.prototype.push),pE=fe(Array.prototype.splice),an=Array.isArray,fc=fe(String.prototype.toLowerCase),So=fe(String.prototype.toString),yp=fe(String.prototype.match),cc=fe(String.prototype.replace),pp=fe(String.prototype.indexOf),vE=fe(String.prototype.trim),gE=fe(Number.prototype.toString),SE=fe(Boolean.prototype.toString),vp=typeof BigInt>"u"?null:fe(BigInt.prototype.toString),gp=typeof Symbol>"u"?null:fe(Symbol.prototype.toString),be=fe(Object.prototype.hasOwnProperty),sc=fe(Object.prototype.toString),xe=fe(RegExp.prototype.test),Qn=bE(TypeError);function fe(u){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var s=arguments.length,r=new Array(s>1?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];return Qo(u,i,r)}}function bE(u){return function(){for(var i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return Yo(u,s)}}function Ot(u,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fc;if(dp&&dp(u,null),!an(i))return u;let r=i.length;for(;r--;){let o=i[r];if(typeof o=="string"){const d=s(o);d!==o&&(hE(i)||(i[r]=d),o=d)}u[o]=!0}return u}function EE(u){for(let i=0;i<u.length;i++)be(u,i)||(u[i]=null);return u}function je(u){const i=Vu(null);for(const r of Sv(u)){var s=fE(r,2);const o=s[0],d=s[1];be(u,o)&&(an(d)?i[o]=EE(d):d&&typeof d=="object"&&d.constructor===Object?i[o]=je(d):i[o]=d)}return i}function TE(u){switch(typeof u){case"string":return u;case"number":return gE(u);case"boolean":return SE(u);case"bigint":return vp?vp(u):"0";case"symbol":return gp?gp(u):"Symbol()";case"undefined":return sc(u);case"function":case"object":{if(u===null)return sc(u);const i=u,s=Ql(i,"toString");if(typeof s=="function"){const r=s(i);return typeof r=="string"?r:sc(r)}return sc(u)}default:return sc(u)}}function Ql(u,i){for(;u!==null;){const r=mE(u,i);if(r){if(r.get)return fe(r.get);if(typeof r.value=="function")return fe(r.value)}u=dE(u)}function s(){return null}return s}function AE(u){try{return xe(u,""),!0}catch{return!1}}const Sp=Ce(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bo=Ce(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Eo=Ce(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_E=Ce(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),To=Ce(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),RE=Ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),bp=Ce(["#text"]),Ep=Ce(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ao=Ce(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tp=Ce(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zs=Ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),OE=Me(/{{[\w\W]*|^[\w\W]*}}/g),xE=Me(/<%[\w\W]*|^[\w\W]*%>/g),CE=Me(/\${[\w\W]*/g),ME=Me(/^data-[\-\w.\u00B7-\uFFFF]+$/),DE=Me(/^aria-[\-\w]+$/),Ap=Me(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NE=Me(/^(?:\w+script|data):/i),zE=Me(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UE=Me(/^html$/i),LE=Me(/^[a-z][.\w]*(-[.\w]+)+$/i),_p=Me(/<[/\w!]/g),HE=Me(/<[/\w]/g),wE=Me(/<\/no(script|embed|frames)/i),jE=Me(/\/>/i),Gl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},BE=function(){return typeof window>"u"?null:window},qE=function(i,s){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";s&&s.hasAttribute(o)&&(r=s.getAttribute(o));const d="dompurify"+(r?"#"+r:"");try{return i.createPolicy(d,{createHTML(y){return y},createScriptURL(y){return y}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},Rp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},en=function(i,s,r,o){return be(i,s)&&an(i[s])?Ot(o.base?je(o.base):{},i[s],o.transform):r};function Ev(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BE();const i=K=>Ev(K);if(i.version="3.4.11",i.removed=[],!u||!u.document||u.document.nodeType!==Gl.document||!u.Element)return i.isSupported=!1,i;let s=u.document;const r=s,o=r.currentScript;u.DocumentFragment;const d=u.HTMLTemplateElement,y=u.Node,b=u.Element,v=u.NodeFilter,p=u.NamedNodeMap;p===void 0&&(u.NamedNodeMap||u.MozNamedAttrMap),u.HTMLFormElement;const R=u.DOMParser,A=u.trustedTypes,z=b.prototype,q=Ql(z,"cloneNode"),Z=Ql(z,"remove"),G=Ql(z,"nextSibling"),Q=Ql(z,"childNodes"),B=Ql(z,"parentNode"),$=Ql(z,"shadowRoot"),J=Ql(z,"attributes"),X=y&&y.prototype?Ql(y.prototype,"nodeType"):null,at=y&&y.prototype?Ql(y.prototype,"nodeName"):null;if(typeof d=="function"){const K=s.createElement("template");K.content&&K.content.ownerDocument&&(s=K.content.ownerDocument)}let ut,et="",ct,vt=!1,xt=0;const Ft=function(){if(xt>0)throw Qn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Bt=function(m){Ft(),xt++;try{return ut.createHTML(m)}finally{xt--}},Le=function(m){Ft(),xt++;try{return ut.createScriptURL(m)}finally{xt--}},oe=function(){return vt||(ct=qE(A,o),vt=!0),ct},zt=s,U=zt.implementation,F=zt.createNodeIterator,rt=zt.createDocumentFragment,Ut=zt.getElementsByTagName,Ht=r.importNode;let E=Rp();i.isSupported=typeof Sv=="function"&&typeof B=="function"&&U&&U.createHTMLDocument!==void 0;const j=OE,k=xE,P=CE,ft=ME,pt=DE,Ct=NE,ge=zE,Wt=LE;let Aa=Ap,Yt=null;const Pn=Ot({},[...Sp,...bo,...Eo,...To,...bp]);let Vt=null;const Ml=Ot({},[...Ep,...Ao,...Tp,...Zs]);let Zt=Object.seal(Vu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Jl=null,Tc=null;const bl=Object.seal(Vu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let tu=!0,yn=!0,eu=!1,Ac=!0,Dl=!1,he=!0,Fl=!1,lu=!1,au=null,_a=null,si=!1,kl=!1,nu=!1,uu=!1,Ra=!0,De=!1;const El="user-content-";let Te=!0,ri=!1,Oa={},rl=null;const xa=Ot({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let pn=null;const vn=Ot({},["audio","video","img","source","image","track"]);let Tl=null;const gn=Ot({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nl="http://www.w3.org/1998/Math/MathML",iu="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml";let zl=$e,Wl=!1,fi=null;const _c=Ot({},[Nl,iu,$e],So),oi=Ce(["mi","mo","mn","ms","mtext"]);let cu=Ot({},oi);const su=Ce(["annotation-xml"]);let Sn=Ot({},su);const Rc=Ot({},["title","style","font","a","script"]);let Ca=null;const Ul=["application/xhtml+xml","text/html"],de="text/html";let gt=null,Ie=null;const hi=s.createElement("form"),Oc=function(m){return m instanceof RegExp||m instanceof Function},di=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ie&&Ie===m)return;(!m||typeof m!="object")&&(m={}),m=je(m),Ca=Ul.indexOf(m.PARSER_MEDIA_TYPE)===-1?de:m.PARSER_MEDIA_TYPE,gt=Ca==="application/xhtml+xml"?So:fc,Yt=en(m,"ALLOWED_TAGS",Pn,{transform:gt}),Vt=en(m,"ALLOWED_ATTR",Ml,{transform:gt}),fi=en(m,"ALLOWED_NAMESPACES",_c,{transform:So}),Tl=en(m,"ADD_URI_SAFE_ATTR",gn,{transform:gt,base:gn}),pn=en(m,"ADD_DATA_URI_TAGS",vn,{transform:gt,base:vn}),rl=en(m,"FORBID_CONTENTS",xa,{transform:gt}),Jl=en(m,"FORBID_TAGS",je({}),{transform:gt}),Tc=en(m,"FORBID_ATTR",je({}),{transform:gt}),Oa=be(m,"USE_PROFILES")?m.USE_PROFILES&&typeof m.USE_PROFILES=="object"?je(m.USE_PROFILES):m.USE_PROFILES:!1,tu=m.ALLOW_ARIA_ATTR!==!1,yn=m.ALLOW_DATA_ATTR!==!1,eu=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Ac=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Dl=m.SAFE_FOR_TEMPLATES||!1,he=m.SAFE_FOR_XML!==!1,Fl=m.WHOLE_DOCUMENT||!1,kl=m.RETURN_DOM||!1,nu=m.RETURN_DOM_FRAGMENT||!1,uu=m.RETURN_TRUSTED_TYPE||!1,si=m.FORCE_BODY||!1,Ra=m.SANITIZE_DOM!==!1,De=m.SANITIZE_NAMED_PROPS||!1,Te=m.KEEP_CONTENT!==!1,ri=m.IN_PLACE||!1,Aa=AE(m.ALLOWED_URI_REGEXP)?m.ALLOWED_URI_REGEXP:Ap,zl=typeof m.NAMESPACE=="string"?m.NAMESPACE:$e,cu=be(m,"MATHML_TEXT_INTEGRATION_POINTS")&&m.MATHML_TEXT_INTEGRATION_POINTS&&typeof m.MATHML_TEXT_INTEGRATION_POINTS=="object"?je(m.MATHML_TEXT_INTEGRATION_POINTS):Ot({},oi),Sn=be(m,"HTML_INTEGRATION_POINTS")&&m.HTML_INTEGRATION_POINTS&&typeof m.HTML_INTEGRATION_POINTS=="object"?je(m.HTML_INTEGRATION_POINTS):Ot({},su);const C=be(m,"CUSTOM_ELEMENT_HANDLING")&&m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING=="object"?je(m.CUSTOM_ELEMENT_HANDLING):Vu(null);if(Zt=Vu(null),be(C,"tagNameCheck")&&Oc(C.tagNameCheck)&&(Zt.tagNameCheck=C.tagNameCheck),be(C,"attributeNameCheck")&&Oc(C.attributeNameCheck)&&(Zt.attributeNameCheck=C.attributeNameCheck),be(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(Zt.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),Me(Zt),Dl&&(yn=!1),nu&&(kl=!0),Oa&&(Yt=Ot({},bp),Vt=Vu(null),Oa.html===!0&&(Ot(Yt,Sp),Ot(Vt,Ep)),Oa.svg===!0&&(Ot(Yt,bo),Ot(Vt,Ao),Ot(Vt,Zs)),Oa.svgFilters===!0&&(Ot(Yt,Eo),Ot(Vt,Ao),Ot(Vt,Zs)),Oa.mathMl===!0&&(Ot(Yt,To),Ot(Vt,Tp),Ot(Vt,Zs))),bl.tagCheck=null,bl.attributeCheck=null,be(m,"ADD_TAGS")&&(typeof m.ADD_TAGS=="function"?bl.tagCheck=m.ADD_TAGS:an(m.ADD_TAGS)&&(Yt===Pn&&(Yt=je(Yt)),Ot(Yt,m.ADD_TAGS,gt))),be(m,"ADD_ATTR")&&(typeof m.ADD_ATTR=="function"?bl.attributeCheck=m.ADD_ATTR:an(m.ADD_ATTR)&&(Vt===Ml&&(Vt=je(Vt)),Ot(Vt,m.ADD_ATTR,gt))),be(m,"ADD_URI_SAFE_ATTR")&&an(m.ADD_URI_SAFE_ATTR)&&Ot(Tl,m.ADD_URI_SAFE_ATTR,gt),be(m,"FORBID_CONTENTS")&&an(m.FORBID_CONTENTS)&&(rl===xa&&(rl=je(rl)),Ot(rl,m.FORBID_CONTENTS,gt)),be(m,"ADD_FORBID_CONTENTS")&&an(m.ADD_FORBID_CONTENTS)&&(rl===xa&&(rl=je(rl)),Ot(rl,m.ADD_FORBID_CONTENTS,gt)),Te&&(Yt["#text"]=!0),Fl&&Ot(Yt,["html","head","body"]),Yt.table&&(Ot(Yt,["tbody"]),delete Jl.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const V=ut;ut=m.TRUSTED_TYPES_POLICY;try{et=Bt("")}catch(tt){throw ut=V,tt}}else m.TRUSTED_TYPES_POLICY===null?(ut=void 0,et=""):(ut===void 0&&(ut=oe()),ut&&typeof et=="string"&&(et=Bt("")));Ce&&Ce(m),Ie=m},mi=Ot({},[...bo,...Eo,..._E]),Ma=Ot({},[...To,...RE]),yi=function(m,C,V){return C.namespaceURI===$e?m==="svg":C.namespaceURI===Nl?m==="svg"&&(V==="annotation-xml"||cu[V]):!!mi[m]},Da=function(m,C,V){return C.namespaceURI===$e?m==="math":C.namespaceURI===iu?m==="math"&&Sn[V]:!!Ma[m]},Na=function(m,C,V){return C.namespaceURI===iu&&!Sn[V]||C.namespaceURI===Nl&&!cu[V]?!1:!Ma[m]&&(Rc[m]||!mi[m])},bn=function(m){let C=B(m);(!C||!C.tagName)&&(C={namespaceURI:zl,tagName:"template"});const V=fc(m.tagName),tt=fc(C.tagName);return fi[m.namespaceURI]?m.namespaceURI===iu?yi(V,C,tt):m.namespaceURI===Nl?Da(V,C,tt):m.namespaceURI===$e?Na(V,C,tt):!!(Ca==="application/xhtml+xml"&&fi[m.namespaceURI]):!1},He=function(m){Zu(i.removed,{element:m});try{B(m).removeChild(m)}catch{if(Z(m),!B(m))throw Qn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ae=function(m){const C=Q(m);if(C){const tt=[];ic(C,ht=>{Zu(tt,ht)}),ic(tt,ht=>{try{Z(ht)}catch{}})}const V=J(m);if(V)for(let tt=V.length-1;tt>=0;--tt){const ht=V[tt],Et=ht&&ht.name;if(typeof Et=="string")try{m.removeAttribute(Et)}catch{}}},Ll=function(m,C){try{Zu(i.removed,{attribute:C.getAttributeNode(m),from:C})}catch{Zu(i.removed,{attribute:null,from:C})}if(C.removeAttribute(m),m==="is")if(kl||nu)try{He(C)}catch{}else try{C.setAttribute(m,"")}catch{}},xc=function(m){const C=J(m);if(C)for(let V=C.length-1;V>=0;--V){const tt=C[V],ht=tt&&tt.name;if(!(typeof ht!="string"||Vt[gt(ht)]))try{m.removeAttribute(ht)}catch{}}},$l=function(m){const C=[m];for(;C.length>0;){const V=C.pop();(X?X(V):V.nodeType)===Gl.element&&xc(V);const ht=Q(V);if(ht)for(let Et=ht.length-1;Et>=0;--Et)C.push(ht[Et])}},Il=function(m){let C=null,V=null;if(si)m="<remove></remove>"+m;else{const Et=yp(m,/^[\r\n\t ]+/);V=Et&&Et[0]}Ca==="application/xhtml+xml"&&zl===$e&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const tt=ut?Bt(m):m;if(zl===$e)try{C=new R().parseFromString(tt,Ca)}catch{}if(!C||!C.documentElement){C=U.createDocument(zl,"template",null);try{C.documentElement.innerHTML=Wl?et:tt}catch{}}const ht=C.body||C.documentElement;return m&&V&&ht.insertBefore(s.createTextNode(V),ht.childNodes[0]||null),zl===$e?Ut.call(C,Fl?"html":"body")[0]:Fl?C.documentElement:ht},Cc=function(m){return F.call(m.ownerDocument||m,m,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT|v.SHOW_PROCESSING_INSTRUCTION|v.SHOW_CDATA_SECTION,null)},En=function(m){return m=cc(m,j," "),m=cc(m,k," "),m=cc(m,P," "),m},ru=function(m){var C;m.normalize();const V=F.call(m.ownerDocument||m,m,v.SHOW_TEXT|v.SHOW_COMMENT|v.SHOW_CDATA_SECTION|v.SHOW_PROCESSING_INSTRUCTION,null);let tt=V.nextNode();for(;tt;)tt.data=En(tt.data),tt=V.nextNode();const ht=(C=m.querySelectorAll)===null||C===void 0?void 0:C.call(m,"template");ht&&ic(ht,Et=>{Al(Et.content)&&ru(Et.content)})},fu=function(m){const C=at?at(m):null;return typeof C!="string"||gt(C)!=="form"?!1:typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||m.attributes!==J(m)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function"||m.nodeType!==X(m)||m.childNodes!==Q(m)},Al=function(m){if(!X||typeof m!="object"||m===null)return!1;try{return X(m)===Gl.documentFragment}catch{return!1}},Hl=function(m){if(!X||typeof m!="object"||m===null)return!1;try{return typeof X(m)=="number"}catch{return!1}};function me(K,m,C){K.length!==0&&ic(K,V=>{V.call(i,m,C,Ie)})}const Ge=function(m,C){return!!(he&&m.hasChildNodes()&&!Hl(m.firstElementChild)&&xe(_p,m.textContent)&&xe(_p,m.innerHTML)||he&&m.namespaceURI===$e&&C==="style"&&Hl(m.firstElementChild)||m.nodeType===Gl.processingInstruction||he&&m.nodeType===Gl.comment&&xe(HE,m.data))},Mc=function(m,C){if(!Jl[C]&&Tn(C)&&(Zt.tagNameCheck instanceof RegExp&&xe(Zt.tagNameCheck,C)||Zt.tagNameCheck instanceof Function&&Zt.tagNameCheck(C)))return!1;if(Te&&!rl[C]){const V=B(m),tt=Q(m);if(tt&&V){const ht=tt.length;for(let Et=ht-1;Et>=0;--Et){const It=ri?tt[Et]:q(tt[Et],!0);V.insertBefore(It,G(m))}}}return He(m),!0},Dc=function(m){if(me(E.beforeSanitizeElements,m,null),fu(m))return He(m),!0;const C=gt(at?at(m):m.nodeName);if(me(E.uponSanitizeElement,m,{tagName:C,allowedTags:Yt}),Ge(m,C))return He(m),!0;if(Jl[C]||!(bl.tagCheck instanceof Function&&bl.tagCheck(C))&&!Yt[C])return Mc(m,C);if((X?X(m):m.nodeType)===Gl.element&&!bn(m)||(C==="noscript"||C==="noembed"||C==="noframes")&&xe(wE,m.innerHTML))return He(m),!0;if(Dl&&m.nodeType===Gl.text){const tt=En(m.textContent);m.textContent!==tt&&(Zu(i.removed,{element:m.cloneNode()}),m.textContent=tt)}return me(E.afterSanitizeElements,m,null),!1},ou=function(m,C,V){if(Tc[C]||Ra&&(C==="id"||C==="name")&&(V in s||V in hi))return!1;const tt=Vt[C]||bl.attributeCheck instanceof Function&&bl.attributeCheck(C,m);if(!(yn&&xe(ft,C))){if(!(tu&&xe(pt,C))){if(tt){if(!Tl[C]){if(!xe(Aa,cc(V,ge,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&m!=="script"&&pp(V,"data:")===0&&pn[m])){if(!(eu&&!xe(Ct,cc(V,ge,"")))){if(V)return!1}}}}}else if(!(Tn(m)&&(Zt.tagNameCheck instanceof RegExp&&xe(Zt.tagNameCheck,m)||Zt.tagNameCheck instanceof Function&&Zt.tagNameCheck(m))&&(Zt.attributeNameCheck instanceof RegExp&&xe(Zt.attributeNameCheck,C)||Zt.attributeNameCheck instanceof Function&&Zt.attributeNameCheck(C,m))||C==="is"&&Zt.allowCustomizedBuiltInElements&&(Zt.tagNameCheck instanceof RegExp&&xe(Zt.tagNameCheck,V)||Zt.tagNameCheck instanceof Function&&Zt.tagNameCheck(V))))return!1}}return!0},Nc=Ot({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Tn=function(m){return!Nc[fc(m)]&&xe(Wt,m)},nr=function(m,C,V,tt){if(ut&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!V)switch(A.getAttributeType(m,C)){case"TrustedHTML":return Bt(tt);case"TrustedScriptURL":return Le(tt)}return tt},Qe=function(m,C,V,tt){try{V?m.setAttributeNS(V,C,tt):m.setAttribute(C,tt),fu(m)?He(m):mp(i.removed)}catch{Ll(C,m)}},hu=function(m){me(E.beforeSanitizeAttributes,m,null);const C=m.attributes;if(!C||fu(m))return;const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Vt,forceKeepAttr:void 0};let tt=C.length;const ht=gt(m.nodeName);for(;tt--;){const Et=C[tt],It=Et.name,Pt=Et.namespaceURI,Ye=Et.value,Ne=gt(It),Pe=Ye;let ye=It==="value"?Pe:vE(Pe);if(V.attrName=Ne,V.attrValue=ye,V.keepAttr=!0,V.forceKeepAttr=void 0,me(E.uponSanitizeAttribute,m,V),ye=V.attrValue,De&&(Ne==="id"||Ne==="name")&&pp(ye,El)!==0&&(Ll(It,m),ye=El+ye),he&&xe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ye)){Ll(It,m);continue}if(Ne==="attributename"&&yp(ye,"href")){Ll(It,m);continue}if(!V.forceKeepAttr){if(!V.keepAttr){Ll(It,m);continue}if(!Ac&&xe(jE,ye)){Ll(It,m);continue}if(Dl&&(ye=En(ye)),!ou(ht,Ne,ye)){Ll(It,m);continue}ye=nr(ht,Ne,Pt,ye),ye!==Pe&&Qe(m,It,Pt,ye)}}me(E.afterSanitizeAttributes,m,null)},An=function(m){let C=null;const V=Cc(m);for(me(E.beforeSanitizeShadowDOM,m,null);C=V.nextNode();)if(me(E.uponSanitizeShadowNode,C,null),Dc(C),hu(C),Al(C.content)&&An(C.content),(X?X(C):C.nodeType)===Gl.element){const ht=$(C);Al(ht)&&(_n(ht),An(ht))}me(E.afterSanitizeShadowDOM,m,null)},_n=function(m){const C=[{node:m,shadow:null}];for(;C.length>0;){const V=C.pop();if(V.shadow){An(V.shadow);continue}const tt=V.node,Et=(X?X(tt):tt.nodeType)===Gl.element,It=Q(tt);if(It)for(let Pt=It.length-1;Pt>=0;--Pt)C.push({node:It[Pt],shadow:null});if(Et){const Pt=at?at(tt):null;if(typeof Pt=="string"&&gt(Pt)==="template"){const Ye=tt.content;Al(Ye)&&C.push({node:Ye,shadow:null})}}if(Et){const Pt=$(tt);Al(Pt)&&C.push({node:null,shadow:Pt},{node:Pt,shadow:null})}}};return i.sanitize=function(K){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,V=null,tt=null,ht=null;if(Wl=!K,Wl&&(K="<!-->"),typeof K!="string"&&!Hl(K)&&(K=TE(K),typeof K!="string"))throw Qn("dirty is not a string, aborting");if(!i.isSupported)return K;lu?(Yt=au,Vt=_a):di(m),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(Yt=je(Yt)),E.uponSanitizeAttribute.length>0&&(Vt=je(Vt)),i.removed=[];const Et=ri&&typeof K!="string"&&Hl(K);if(Et){const Ye=at?at(K):K.nodeName;if(typeof Ye=="string"){const Ne=gt(Ye);if(!Yt[Ne]||Jl[Ne])throw Qn("root node is forbidden and cannot be sanitized in-place")}if(fu(K))throw Qn("root node is clobbered and cannot be sanitized in-place");try{_n(K)}catch(Ne){throw ae(K),Ne}}else if(Hl(K))C=Il("<!---->"),V=C.ownerDocument.importNode(K,!0),V.nodeType===Gl.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?C=V:C.appendChild(V),_n(V);else{if(!kl&&!Dl&&!Fl&&K.indexOf("<")===-1)return ut&&uu?Bt(K):K;if(C=Il(K),!C)return kl?null:uu?et:""}C&&si&&He(C.firstChild);const It=Cc(Et?K:C);try{for(;tt=It.nextNode();)Dc(tt),hu(tt),Al(tt.content)&&An(tt.content)}catch(Ye){throw Et&&ae(K),Ye}if(Et)return ic(i.removed,Ye=>{Ye.element&&$l(Ye.element)}),Dl&&ru(K),K;if(kl){if(Dl&&ru(C),nu)for(ht=rt.call(C.ownerDocument);C.firstChild;)ht.appendChild(C.firstChild);else ht=C;return(Vt.shadowroot||Vt.shadowrootmode)&&(ht=Ht.call(r,ht,!0)),ht}let Pt=Fl?C.outerHTML:C.innerHTML;return Fl&&Yt["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&xe(UE,C.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
62
- `+Pt),Dl&&(Pt=En(Pt)),ut&&uu?Bt(Pt):Pt},i.setConfig=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};di(K),lu=!0,au=Yt,_a=Vt},i.clearConfig=function(){Ie=null,lu=!1,au=null,_a=null,ut=ct,et=""},i.isValidAttribute=function(K,m,C){Ie||di({});const V=gt(K),tt=gt(m);return ou(V,tt,C)},i.addHook=function(K,m){typeof m=="function"&&be(E,K)&&Zu(E[K],m)},i.removeHook=function(K,m){if(be(E,K)){if(m!==void 0){const C=yE(E[K],m);return C===-1?void 0:pE(E[K],C,1)[0]}return mp(E[K])}},i.removeHooks=function(K){be(E,K)&&(E[K]=[])},i.removeAllHooks=function(){E=Rp()},i}var GE=Ev();function QE(u){return GE.sanitize(u,{FORBID_TAGS:["script","iframe","object","embed","form","link","meta","base"],ALLOW_DATA_ATTR:!1,USE_PROFILES:{html:!0}})}function Vs({label:u,value:i,tone:s="default"}){const r=s==="success"?"text-success":s==="danger"?"text-danger":"text-text";return Y.jsxs("div",{className:"bg-surface rounded-xl px-4 py-3 shadow-[var(--shadow-xs)] border border-border",children:[Y.jsx("div",{className:"text-[11px] text-text-tertiary",children:u}),Y.jsx("div",{className:`text-lg font-semibold ${r}`,children:i})]})}function YE({slot:u}){const i=D.useRef(null);return D.useEffect(()=>{i.current&&(i.current.innerHTML=QE(u.html))},[u.html]),Y.jsx("section",{className:"bg-surface rounded-xl border border-border shadow-[var(--shadow-xs)] p-4","data-slot":u.slotId,children:Y.jsx("div",{ref:i})})}function XE(){return Y.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-6 py-16",children:[Y.jsx("h2",{className:"text-lg font-semibold text-text mb-2",children:"No reports published yet"}),Y.jsx("p",{className:"text-sm text-text-secondary max-w-md",children:"Slots appear here once an agent publishes them via report_publish. The heartbeat briefing or the dashboard agent fills the first slot."})]})}function ZE(){const[u,i]=D.useState({}),[s,r]=D.useState(!0),[o,d]=D.useState(null),y=D.useCallback(async()=>{try{const p=await tr.getReport(),R={};for(const z of p.slots??[])R[z.slotId]=z;i(R);const A=Math.max(0,...(p.slots??[]).map(z=>z.updatedAt));A>0&&d(A)}catch{}finally{r(!1)}},[]);D.useEffect(()=>{y()},[y]),D.useEffect(()=>aE({onUpdate:R=>{i(A=>uE(A,R)),d(Date.now())},onOpen:()=>{y()}}),[y]);const{data:b}=gv({queryKey:["operatorSummary"],queryFn:tr.getOperatorSummary,refetchInterval:6e4}),v=iE(u);return Y.jsxs("div",{className:"flex flex-col h-full",children:[Y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border flex-shrink-0 bg-surface",children:[Y.jsxs("div",{className:"flex items-center gap-3",children:[Y.jsx("h1",{className:"text-base font-semibold text-text",children:"Operator Board"}),o&&Y.jsxs("span",{className:"text-[10px] text-text-tertiary",children:[new Date(o).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})," ","updated"]})]}),Y.jsx("button",{onClick:()=>void y(),className:"text-xs px-3 py-1.5 rounded bg-surface-hover hover:bg-surface-selected text-text-secondary transition-colors",children:"Refresh"})]}),Y.jsx("div",{className:"flex-1 overflow-y-auto",children:Y.jsxs("div",{className:"p-4 max-w-4xl mx-auto",children:[Y.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-4",children:[Y.jsx(Vs,{label:"Active triggers",value:(b==null?void 0:b.triggers.active)??"-"}),Y.jsx(Vs,{label:"Total fires",value:(b==null?void 0:b.triggers.fired)??"-"}),Y.jsx(Vs,{label:"Succeeded",value:(b==null?void 0:b.triggers.succeeded)??"-",tone:"success"}),Y.jsx(Vs,{label:"Failed",value:(b==null?void 0:b.triggers.failed)??"-",tone:b&&b.triggers.failed>0?"danger":"default"})]}),s?Y.jsx("div",{className:"flex items-center justify-center py-16 text-sm text-text-tertiary",children:"Loading report..."}):v.length===0?Y.jsx(XE,{}):Y.jsx("div",{className:"space-y-3",children:v.map(p=>Y.jsx(YE,{slot:p},p.slotId))})]})})]})}function VE(u,i){return u.length>i?`${u.slice(0,i)}...`:u}function Op({trigger:u,onDisable:i}){const[s,r]=D.useState(!1),[o,d]=D.useState(""),y=u.status!=="active";return Y.jsxs("div",{className:`px-4 py-3 border-b border-border last:border-b-0 ${y?"opacity-60":""}`,children:[Y.jsxs("div",{className:"flex items-center gap-3",children:[Y.jsx("span",{className:"text-[11px] px-2 py-0.5 rounded-full bg-agent-light text-agent font-medium max-w-[40%] truncate",title:u.kind,children:u.kind}),Y.jsxs("div",{className:"flex-1 min-w-0",children:[Y.jsx("p",{className:"text-sm text-text truncate",children:VE(u.memoryQuery,80)}),Y.jsxs("p",{className:"text-[11px] text-text-tertiary",children:["fired ",u.fired," / ok ",u.succeeded," / fail ",u.failed," /"," ",u.authoredBy," /"," ",new Date(u.createdAt).toLocaleDateString(void 0,{month:"short",day:"numeric"})]}),y&&u.disabledReason&&Y.jsxs("p",{className:"text-[11px] text-danger mt-0.5",children:[u.status,": ",u.disabledReason]})]}),!y&&!s&&Y.jsx("button",{onClick:()=>r(!0),className:"shrink-0 px-3 py-1 text-xs font-medium rounded-full bg-surface-secondary text-text-tertiary hover:bg-danger/10 hover:text-danger transition-colors",children:"Disable"})]}),s&&Y.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[Y.jsx("input",{autoFocus:!0,value:o,onChange:b=>d(b.target.value),placeholder:"Reason (required)",className:"flex-1 px-2 py-1 text-xs bg-surface-selected rounded border border-border focus:outline-none focus:ring-1 focus:ring-agent"}),Y.jsx("button",{onClick:()=>{o.trim()&&i(u.id,o.trim())},disabled:!o.trim(),className:"px-3 py-1 text-xs font-medium rounded-full bg-danger/10 text-danger disabled:opacity-40 hover:opacity-80 transition-opacity",children:"Confirm"}),Y.jsx("button",{onClick:()=>{r(!1),d("")},className:"px-3 py-1 text-xs font-medium rounded-full bg-surface-secondary text-text-tertiary hover:opacity-80",children:"Cancel"})]})]})}function KE(){const u=nh(),{data:i,isLoading:s}=gv({queryKey:["operatorTriggers"],queryFn:tr.listTriggers,refetchInterval:3e4}),r=Pb({mutationFn:({id:b,reason:v})=>tr.disableTrigger(b,v),onSuccess:()=>{u.invalidateQueries({queryKey:["operatorTriggers"]}),u.invalidateQueries({queryKey:["operatorSummary"]})}}),o=(i==null?void 0:i.triggers)??[],d=o.filter(b=>b.status==="active"),y=o.filter(b=>b.status!=="active");return Y.jsxs("div",{className:"flex flex-col h-full",children:[Y.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-border flex-shrink-0 bg-surface",children:[Y.jsx("h1",{className:"text-base font-semibold text-text",children:"Triggers"}),Y.jsxs("span",{className:"text-[11px] px-2 py-0.5 rounded-full bg-success/10 text-success font-medium",children:["active ",d.length]}),y.length>0&&Y.jsxs("span",{className:"text-[11px] px-2 py-0.5 rounded-full bg-surface-secondary text-text-tertiary font-medium",children:["inactive ",y.length]})]}),Y.jsx("div",{className:"flex-1 overflow-y-auto",children:Y.jsx("div",{className:"p-4 max-w-4xl mx-auto space-y-4",children:s?Y.jsx("div",{className:"flex items-center justify-center py-16 text-sm text-text-tertiary",children:"Loading triggers..."}):o.length===0?Y.jsx("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:Y.jsx("p",{className:"text-sm text-text-secondary",children:"No triggers yet. The agent authors them itself once the trigger loop observes events."})}):Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{className:"bg-surface rounded-xl border border-border shadow-[var(--shadow-xs)]",children:[d.map(b=>Y.jsx(Op,{trigger:b,onDisable:(v,p)=>r.mutate({id:v,reason:p})},b.id)),d.length===0&&Y.jsx("p",{className:"px-4 py-6 text-sm text-text-tertiary text-center",children:"No active triggers."})]}),y.length>0&&Y.jsxs("details",{className:"bg-surface rounded-xl border border-border shadow-[var(--shadow-xs)]",children:[Y.jsxs("summary",{className:"px-4 py-3 text-sm text-text-secondary cursor-pointer select-none",children:["Inactive triggers: ",y.length]}),y.map(b=>Y.jsx(Op,{trigger:b,onDisable:(v,p)=>r.mutate({id:v,reason:p})},b.id))]})]})})})]})}function JE(){return Y.jsx(wS,{children:Y.jsxs(Ks,{element:Y.jsx(lE,{}),children:[Y.jsx(Ks,{index:!0,element:Y.jsx(ZE,{})}),Y.jsx(Ks,{path:"triggers",element:Y.jsx(KE,{})})]})})}const FE=new Gb;U0.createRoot(document.getElementById("root")).render(Y.jsx(D.StrictMode,{children:Y.jsx(Qb,{client:FE,children:Y.jsx(ib,{basename:"/ui",children:Y.jsx(JE,{})})})}));