@rigour-labs/cli 6.9.0-rc.4 → 6.9.0-rc.5
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.
- package/dist/cli.js +2 -0
- package/dist/commands/outcomes.js +1 -0
- package/dist/commands/review-reviewer.d.ts +1 -1
- package/dist/commands/review-reviewer.js +3 -3
- package/dist/commands/review.d.ts +1 -0
- package/dist/commands/review.js +1 -1
- package/package.json +3 -3
- package/studio-dist/assets/{index-BI7HhaT_.js → index--1-0a2Wg.js} +12 -12
- package/studio-dist/index.html +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Wc=Object.defineProperty;var Uc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var
|
|
1
|
+
var Wc=Object.defineProperty;var Uc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bi=(e,t,n)=>Uc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function Vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka={exports:{}},cs={},ja={exports:{}},R={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Wc=Object.defineProperty;var Uc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var nr=Symbol.for("react.element"),Bc=Symbol.for("react.portal"),Qc=Symbol.for("react.fragment"),Kc=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),qc=Symbol.for("react.provider"),Xc=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Zc=Symbol.for("react.suspense"),Jc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),
|
|
9
|
+
*/var nr=Symbol.for("react.element"),Bc=Symbol.for("react.portal"),Qc=Symbol.for("react.fragment"),Kc=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),qc=Symbol.for("react.provider"),Xc=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Zc=Symbol.for("react.suspense"),Jc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),eo=Symbol.iterator;function ed(e){return e===null||typeof e!="object"?null:(e=eo&&e[eo]||e["@@iterator"],typeof e=="function"?e:null)}var Sa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Na=Object.assign,Ca={};function fn(e,t,n){this.props=e,this.context=t,this.refs=Ca,this.updater=n||Sa}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ea(){}Ea.prototype=fn.prototype;function ri(e,t,n){this.props=e,this.context=t,this.refs=Ca,this.updater=n||Sa}var si=ri.prototype=new Ea;si.constructor=ri;Na(si,fn.prototype);si.isPureReactComponent=!0;var to=Array.isArray,Ta=Object.prototype.hasOwnProperty,li={current:null},_a={key:!0,ref:!0,__self:!0,__source:!0};function za(e,t,n){var r,s={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Ta.call(t,r)&&!_a.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];s.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:nr,type:e,key:l,ref:o,props:s,_owner:li.current}}function td(e,t){return{$$typeof:nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ii(e){return typeof e=="object"&&e!==null&&e.$$typeof===nr}function nd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var no=/\/+/g;function Ps(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nd(""+e.key):t.toString(36)}function Er(e,t,n,r,s){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case nr:case Bc:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Ps(o,0):r,to(s)?(n="",e!=null&&(n=e.replace(no,"$&/")+"/"),Er(s,t,n,"",function(d){return d})):s!=null&&(ii(s)&&(s=td(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(no,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",to(e))for(var a=0;a<e.length;a++){l=e[a];var u=r+Ps(l,a);o+=Er(l,t,n,u,s)}else if(u=ed(e),typeof u=="function")for(e=u.call(e),a=0;!(l=e.next()).done;)l=l.value,u=r+Ps(l,a++),o+=Er(l,t,n,u,s);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ur(e,t,n){if(e==null)return e;var r=[],s=0;return Er(e,r,"","",function(l){return t.call(n,l,s++)}),r}function rd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ce={current:null},Tr={transition:null},sd={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:Tr,ReactCurrentOwner:li};function Pa(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:ur,forEach:function(e,t,n){ur(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ur(e,function(){t++}),t},toArray:function(e){return ur(e,function(t){return t})||[]},only:function(e){if(!ii(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Component=fn;R.Fragment=Qc;R.Profiler=Yc;R.PureComponent=ri;R.StrictMode=Kc;R.Suspense=Zc;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sd;R.act=Pa;R.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Na({},e.props),s=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=li.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Ta.call(t,u)&&!_a.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:nr,type:e.type,key:s,ref:l,props:r,_owner:o}};R.createContext=function(e){return e={$$typeof:Xc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:qc,_context:e},e.Consumer=e};R.createElement=za;R.createFactory=function(e){var t=za.bind(null,e);return t.type=e,t};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:Gc,render:e}};R.isValidElement=ii;R.lazy=function(e){return{$$typeof:bc,_payload:{_status:-1,_result:e},_init:rd}};R.memo=function(e,t){return{$$typeof:Jc,type:e,compare:t===void 0?null:t}};R.startTransition=function(e){var t=Tr.transition;Tr.transition={};try{e()}finally{Tr.transition=t}};R.unstable_act=Pa;R.useCallback=function(e,t){return ce.current.useCallback(e,t)};R.useContext=function(e){return ce.current.useContext(e)};R.useDebugValue=function(){};R.useDeferredValue=function(e){return ce.current.useDeferredValue(e)};R.useEffect=function(e,t){return ce.current.useEffect(e,t)};R.useId=function(){return ce.current.useId()};R.useImperativeHandle=function(e,t,n){return ce.current.useImperativeHandle(e,t,n)};R.useInsertionEffect=function(e,t){return ce.current.useInsertionEffect(e,t)};R.useLayoutEffect=function(e,t){return ce.current.useLayoutEffect(e,t)};R.useMemo=function(e,t){return ce.current.useMemo(e,t)};R.useReducer=function(e,t,n){return ce.current.useReducer(e,t,n)};R.useRef=function(e){return ce.current.useRef(e)};R.useState=function(e){return ce.current.useState(e)};R.useSyncExternalStore=function(e,t,n){return ce.current.useSyncExternalStore(e,t,n)};R.useTransition=function(){return ce.current.useTransition()};R.version="18.3.1";ja.exports=R;var z=ja.exports;const oi=Vc(z);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Wc=Object.defineProperty;var Uc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ld=z,id=Symbol.for("react.element"),od=Symbol.for("react.fragment"),ad=Object.prototype.hasOwnProperty,ud=ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cd={key:!0,ref:!0,__self:!0,__source:!0};function Ra(e,t,n){var r,s={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ad.call(t,r)&&!cd.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:id,type:e,key:l,ref:o,props:s,_owner:ud.current}}cs.Fragment=od;cs.jsx=Ra;cs.jsxs=Ra;ka.exports=cs;var i=ka.exports,
|
|
17
|
+
*/var ld=z,id=Symbol.for("react.element"),od=Symbol.for("react.fragment"),ad=Object.prototype.hasOwnProperty,ud=ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cd={key:!0,ref:!0,__self:!0,__source:!0};function Ra(e,t,n){var r,s={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ad.call(t,r)&&!cd.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:id,type:e,key:l,ref:o,props:s,_owner:ud.current}}cs.Fragment=od;cs.jsx=Ra;cs.jsxs=Ra;ka.exports=cs;var i=ka.exports,ul={},La={exports:{}},je={},Ma={exports:{}},Oa={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var Wc=Object.defineProperty;var Uc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(N,_){var P=N.length;N.push(_);e:for(;0<P;){var K=P-1>>>1,J=N[K];if(0<s(J,_))N[K]=_,N[P]=J,P=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],P=N.pop();if(P!==_){N[0]=P;e:for(var K=0,J=N.length,or=J>>>1;K<or;){var xt=2*(K+1)-1,zs=N[xt],wt=xt+1,ar=N[wt];if(0>s(zs,P))wt<J&&0>s(ar,zs)?(N[K]=ar,N[wt]=P,K=wt):(N[K]=zs,N[xt]=P,K=xt);else if(wt<J&&0>s(ar,P))N[K]=ar,N[wt]=P,K=wt;else break e}}return _}function s(N,_){var P=N.sortIndex-_.sortIndex;return P!==0?P:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],d=[],m=1,v=null,h=3,y=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var _=n(d);_!==null;){if(_.callback===null)r(d);else if(_.startTime<=N)r(d),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(d)}}function g(N){if(k=!1,p(N),!w)if(n(u)!==null)w=!0,Ts(j);else{var _=n(d);_!==null&&_s(g,_.startTime-N)}}function j(N,_){w=!1,k&&(k=!1,f(T),T=-1),y=!0;var P=h;try{for(p(_),v=n(u);v!==null&&(!(v.expirationTime>_)||N&&!Pe());){var K=v.callback;if(typeof K=="function"){v.callback=null,h=v.priorityLevel;var J=K(v.expirationTime<=_);_=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(u)&&r(u),p(_)}else r(u);v=n(u)}if(v!==null)var or=!0;else{var xt=n(d);xt!==null&&_s(g,xt.startTime-_),or=!1}return or}finally{v=null,h=P,y=!1}}var C=!1,E=null,T=-1,Q=5,L=-1;function Pe(){return!(e.unstable_now()-L<Q)}function mn(){if(E!==null){var N=e.unstable_now();L=N;var _=!0;try{_=E(!0,N)}finally{_?vn():(C=!1,E=null)}}else C=!1}var vn;if(typeof c=="function")vn=function(){c(mn)};else if(typeof MessageChannel<"u"){var
|
|
25
|
+
*/(function(e){function t(N,_){var P=N.length;N.push(_);e:for(;0<P;){var K=P-1>>>1,J=N[K];if(0<s(J,_))N[K]=_,N[P]=J,P=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],P=N.pop();if(P!==_){N[0]=P;e:for(var K=0,J=N.length,or=J>>>1;K<or;){var xt=2*(K+1)-1,zs=N[xt],wt=xt+1,ar=N[wt];if(0>s(zs,P))wt<J&&0>s(ar,zs)?(N[K]=ar,N[wt]=P,K=wt):(N[K]=zs,N[xt]=P,K=xt);else if(wt<J&&0>s(ar,P))N[K]=ar,N[wt]=P,K=wt;else break e}}return _}function s(N,_){var P=N.sortIndex-_.sortIndex;return P!==0?P:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],d=[],m=1,v=null,h=3,y=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var _=n(d);_!==null;){if(_.callback===null)r(d);else if(_.startTime<=N)r(d),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(d)}}function g(N){if(k=!1,p(N),!w)if(n(u)!==null)w=!0,Ts(j);else{var _=n(d);_!==null&&_s(g,_.startTime-N)}}function j(N,_){w=!1,k&&(k=!1,f(T),T=-1),y=!0;var P=h;try{for(p(_),v=n(u);v!==null&&(!(v.expirationTime>_)||N&&!Pe());){var K=v.callback;if(typeof K=="function"){v.callback=null,h=v.priorityLevel;var J=K(v.expirationTime<=_);_=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(u)&&r(u),p(_)}else r(u);v=n(u)}if(v!==null)var or=!0;else{var xt=n(d);xt!==null&&_s(g,xt.startTime-_),or=!1}return or}finally{v=null,h=P,y=!1}}var C=!1,E=null,T=-1,Q=5,L=-1;function Pe(){return!(e.unstable_now()-L<Q)}function mn(){if(E!==null){var N=e.unstable_now();L=N;var _=!0;try{_=E(!0,N)}finally{_?vn():(C=!1,E=null)}}else C=!1}var vn;if(typeof c=="function")vn=function(){c(mn)};else if(typeof MessageChannel<"u"){var Ji=new MessageChannel,Ac=Ji.port2;Ji.port1.onmessage=mn,vn=function(){Ac.postMessage(null)}}else vn=function(){O(mn,0)};function Ts(N){E=N,C||(C=!0,vn())}function _s(N,_){T=O(function(){N(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,Ts(j))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var P=h;h=_;try{return N()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var P=h;h=N;try{return _()}finally{h=P}},e.unstable_scheduleCallback=function(N,_,P){var K=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?K+P:K):P=K,N){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=P+J,N={id:m++,callback:_,priorityLevel:N,startTime:P,expirationTime:J,sortIndex:-1},P>K?(N.sortIndex=P,t(d,N),n(u)===null&&N===n(d)&&(k?(f(T),T=-1):k=!0,_s(g,P-K))):(N.sortIndex=J,t(u,N),w||y||(w=!0,Ts(j))),N},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(N){var _=h;return function(){var P=h;h=_;try{return N.apply(this,arguments)}finally{h=P}}}})(Oa);Ma.exports=Oa;var dd=Ma.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@ var Wc=Object.defineProperty;var Uc=(e,t,n)=>t in e?Wc(e,t,{enumerable:!0,config
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var fd=z,ke=dd;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $a=new Set,Dn={};function $t(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(Dn[e]=t,e=0;e<t.length;e++)$a.add(t[e])}var qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),
|
|
33
|
+
*/var fd=z,ke=dd;function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $a=new Set,Dn={};function $t(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(Dn[e]=t,e=0;e<t.length;e++)$a.add(t[e])}var qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cl=Object.prototype.hasOwnProperty,pd=/^[: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]*$/,ro={},so={};function hd(e){return cl.call(so,e)?!0:cl.call(ro,e)?!1:pd.test(e)?so[e]=!0:(ro[e]=!0,!1)}function md(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vd(e,t,n,r){if(t===null||typeof t>"u"||md(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,s,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var ai=/[\-:]([a-z])/g;function ui(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ai,ui);re[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ai,ui);re[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ai,ui);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function ci(e,t,n,r){var s=re.hasOwnProperty(t)?re[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vd(t,n,s,r)&&(n=null),r||s===null?hd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Je=fd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cr=Symbol.for("react.element"),At=Symbol.for("react.portal"),Wt=Symbol.for("react.fragment"),di=Symbol.for("react.strict_mode"),dl=Symbol.for("react.profiler"),Ia=Symbol.for("react.provider"),Fa=Symbol.for("react.context"),fi=Symbol.for("react.forward_ref"),fl=Symbol.for("react.suspense"),pl=Symbol.for("react.suspense_list"),pi=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),Da=Symbol.for("react.offscreen"),lo=Symbol.iterator;function gn(e){return e===null||typeof e!="object"?null:(e=lo&&e[lo]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,Rs;function Cn(e){if(Rs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rs=t&&t[1]||""}return`
|
|
34
34
|
`+Rs+e}var Ls=!1;function Ms(e,t){if(!e||Ls)return"";Ls=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var s=d.stack.split(`
|
|
35
35
|
`),l=r.stack.split(`
|
|
36
36
|
`),o=s.length-1,a=l.length-1;1<=o&&0<=a&&s[o]!==l[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==l[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==l[a]){var u=`
|
|
37
|
-
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ls=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function gd(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ms(e.type,!1),e;case 11:return e=Ms(e.type.render,!1),e;case 1:return e=Ms(e.type,!0),e;default:return""}}function pl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wt:return"Fragment";case At:return"Portal";case cl:return"Profiler";case ci:return"StrictMode";case dl:return"Suspense";case fl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fa:return(e.displayName||"Context")+".Consumer";case Ia:return(e._context.displayName||"Context")+".Provider";case di:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fi:return t=e.displayName||null,t!==null?t:pl(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return pl(e(t))}catch{}}return null}function yd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pl(t);case 8:return t===ci?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ha(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xd(e){var t=Ha(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=xd(e))}function Aa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ha(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hl(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wa(e,t){t=t.checked,t!=null&&ui(e,"checked",t,!1)}function ml(e,t){Wa(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vl(e,t.type,n):t.hasOwnProperty("defaultValue")&&vl(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function io(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vl(e,t,n){(t!=="number"||Dr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function gl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oo(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(En(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Ua(e,t){var n=ht(t.value),r=ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ao(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Va(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function yl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Va(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,Ba=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fr=fr||document.createElement("div"),fr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wd=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){wd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Qa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Ka(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Qa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var kd=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xl(e,t){if(t){if(kd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function wl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kl=null;function pi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jl=null,bt=null,en=null;function uo(e){if(e=lr(e)){if(typeof jl!="function")throw Error(x(280));var t=e.stateNode;t&&(t=ms(t),jl(e.stateNode,e.type,t))}}function Ya(e){bt?en?en.push(e):en=[e]:bt=e}function qa(){if(bt){var e=bt,t=en;if(en=bt=null,uo(e),t)for(e=0;e<t.length;e++)uo(t[e])}}function Xa(e,t){return e(t)}function Ga(){}var Os=!1;function Za(e,t,n){if(Os)return e(t,n);Os=!0;try{return Xa(e,t,n)}finally{Os=!1,(bt!==null||en!==null)&&(Ga(),qa())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=ms(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Sl=!1;if(qe)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){Sl=!0}}),window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{Sl=!1}function jd(e,t,n,r,s,l,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var Pn=!1,Hr=null,Ar=!1,Nl=null,Sd={onError:function(e){Pn=!0,Hr=e}};function Nd(e,t,n,r,s,l,o,a,u){Pn=!1,Hr=null,jd.apply(Sd,arguments)}function Cd(e,t,n,r,s,l,o,a,u){if(Nd.apply(this,arguments),Pn){if(Pn){var d=Hr;Pn=!1,Hr=null}else throw Error(x(198));Ar||(Ar=!0,Nl=d)}}function It(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ja(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function co(e){if(It(e)!==e)throw Error(x(188))}function Ed(e){var t=e.alternate;if(!t){if(t=It(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return co(s),e;if(l===r)return co(s),t;l=l.sibling}throw Error(x(188))}if(n.return!==r.return)n=s,r=l;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function ba(e){return e=Ed(e),e!==null?eu(e):null}function eu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=eu(e);if(t!==null)return t;e=e.sibling}return null}var tu=ke.unstable_scheduleCallback,fo=ke.unstable_cancelCallback,Td=ke.unstable_shouldYield,_d=ke.unstable_requestPaint,Y=ke.unstable_now,zd=ke.unstable_getCurrentPriorityLevel,hi=ke.unstable_ImmediatePriority,nu=ke.unstable_UserBlockingPriority,Wr=ke.unstable_NormalPriority,Pd=ke.unstable_LowPriority,ru=ke.unstable_IdlePriority,ds=null,We=null;function Rd(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(ds,e,void 0,(e.current.flags&128)===128)}catch{}}var $e=Math.clz32?Math.clz32:Od,Ld=Math.log,Md=Math.LN2;function Od(e){return e>>>=0,e===0?32:31-(Ld(e)/Md|0)|0}var pr=64,hr=4194304;function Tn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Tn(a):(l&=o,l!==0&&(r=Tn(l)))}else o=n&~s,o!==0?r=Tn(o):l!==0&&(r=Tn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$e(t),s=1<<n,r|=e[n],t&=~s;return r}function $d(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Id(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-$e(l),a=1<<o,u=s[o];u===-1?(!(a&n)||a&r)&&(s[o]=$d(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function Cl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function su(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function $s(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function Fd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-$e(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function mi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var $=0;function lu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iu,vi,ou,au,uu,El=!1,mr=[],it=null,ot=null,at=null,Wn=new Map,Un=new Map,nt=[],Dd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function po(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function xn(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=lr(t),t!==null&&vi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Hd(e,t,n,r,s){switch(t){case"focusin":return it=xn(it,e,t,n,r,s),!0;case"dragenter":return ot=xn(ot,e,t,n,r,s),!0;case"mouseover":return at=xn(at,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return Wn.set(l,xn(Wn.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,Un.set(l,xn(Un.get(l)||null,e,t,n,r,s)),!0}return!1}function cu(e){var t=St(e.target);if(t!==null){var n=It(t);if(n!==null){if(t=n.tag,t===13){if(t=Ja(n),t!==null){e.blockedOn=t,uu(e.priority,function(){ou(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);kl=r,n.target.dispatchEvent(r),kl=null}else return t=lr(n),t!==null&&vi(t),e.blockedOn=n,!1;t.shift()}return!0}function ho(e,t,n){_r(e)&&n.delete(t)}function Ad(){El=!1,it!==null&&_r(it)&&(it=null),ot!==null&&_r(ot)&&(ot=null),at!==null&&_r(at)&&(at=null),Wn.forEach(ho),Un.forEach(ho)}function wn(e,t){e.blockedOn===t&&(e.blockedOn=null,El||(El=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Ad)))}function Vn(e){function t(s){return wn(s,e)}if(0<mr.length){wn(mr[0],e);for(var n=1;n<mr.length;n++){var r=mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&wn(it,e),ot!==null&&wn(ot,e),at!==null&&wn(at,e),Wn.forEach(t),Un.forEach(t),n=0;n<nt.length;n++)r=nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nt.length&&(n=nt[0],n.blockedOn===null);)cu(n),n.blockedOn===null&&nt.shift()}var tn=Je.ReactCurrentBatchConfig,Vr=!0;function Wd(e,t,n,r){var s=$,l=tn.transition;tn.transition=null;try{$=1,gi(e,t,n,r)}finally{$=s,tn.transition=l}}function Ud(e,t,n,r){var s=$,l=tn.transition;tn.transition=null;try{$=4,gi(e,t,n,r)}finally{$=s,tn.transition=l}}function gi(e,t,n,r){if(Vr){var s=Tl(e,t,n,r);if(s===null)Qs(e,t,r,Br,n),po(e,r);else if(Hd(s,e,t,n,r))r.stopPropagation();else if(po(e,r),t&4&&-1<Dd.indexOf(e)){for(;s!==null;){var l=lr(s);if(l!==null&&iu(l),l=Tl(e,t,n,r),l===null&&Qs(e,t,r,Br,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else Qs(e,t,r,null,n)}}var Br=null;function Tl(e,t,n,r){if(Br=null,e=pi(r),e=St(e),e!==null)if(t=It(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ja(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Br=e,null}function du(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(zd()){case hi:return 1;case nu:return 4;case Wr:case Pd:return 16;case ru:return 536870912;default:return 16}default:return 16}}var st=null,yi=null,zr=null;function fu(){if(zr)return zr;var e,t=yi,n=t.length,r,s="value"in st?st.value:st.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[l-r];r++);return zr=s.slice(e,1<r?1-r:void 0)}function Pr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function mo(){return!1}function Se(e){function t(n,r,s,l,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?vr:mo,this.isPropagationStopped=mo,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=Se(pn),sr=V({},pn,{view:0,detail:0}),Vd=Se(sr),Is,Fs,kn,fs=V({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kn&&(kn&&e.type==="mousemove"?(Is=e.screenX-kn.screenX,Fs=e.screenY-kn.screenY):Fs=Is=0,kn=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:Fs}}),vo=Se(fs),Bd=V({},fs,{dataTransfer:0}),Qd=Se(Bd),Kd=V({},sr,{relatedTarget:0}),Ds=Se(Kd),Yd=V({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),qd=Se(Yd),Xd=V({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gd=Se(Xd),Zd=V({},pn,{data:0}),go=Se(Zd),Jd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bd={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"},ef={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ef[e])?!!t[e]:!1}function wi(){return tf}var nf=V({},sr,{key:function(e){if(e.key){var t=Jd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wi,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rf=Se(nf),sf=V({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yo=Se(sf),lf=V({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wi}),of=Se(lf),af=V({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),uf=Se(af),cf=V({},fs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),df=Se(cf),ff=[9,13,27,32],ki=qe&&"CompositionEvent"in window,Rn=null;qe&&"documentMode"in document&&(Rn=document.documentMode);var pf=qe&&"TextEvent"in window&&!Rn,pu=qe&&(!ki||Rn&&8<Rn&&11>=Rn),xo=" ",wo=!1;function hu(e,t){switch(e){case"keyup":return ff.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ut=!1;function hf(e,t){switch(e){case"compositionend":return mu(t);case"keypress":return t.which!==32?null:(wo=!0,xo);case"textInput":return e=t.data,e===xo&&wo?null:e;default:return null}}function mf(e,t){if(Ut)return e==="compositionend"||!ki&&hu(e,t)?(e=fu(),zr=yi=st=null,Ut=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return pu&&t.locale!=="ko"?null:t.data;default:return null}}var vf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vf[e.type]:t==="textarea"}function vu(e,t,n,r){Ya(r),t=Qr(t,"onChange"),0<t.length&&(n=new xi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ln=null,Bn=null;function gf(e){Tu(e,0)}function ps(e){var t=Qt(e);if(Aa(t))return e}function yf(e,t){if(e==="change")return t}var gu=!1;if(qe){var Hs;if(qe){var As="oninput"in document;if(!As){var jo=document.createElement("div");jo.setAttribute("oninput","return;"),As=typeof jo.oninput=="function"}Hs=As}else Hs=!1;gu=Hs&&(!document.documentMode||9<document.documentMode)}function So(){Ln&&(Ln.detachEvent("onpropertychange",yu),Bn=Ln=null)}function yu(e){if(e.propertyName==="value"&&ps(Bn)){var t=[];vu(t,Bn,e,pi(e)),Za(gf,t)}}function xf(e,t,n){e==="focusin"?(So(),Ln=t,Bn=n,Ln.attachEvent("onpropertychange",yu)):e==="focusout"&&So()}function wf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Bn)}function kf(e,t){if(e==="click")return ps(t)}function jf(e,t){if(e==="input"||e==="change")return ps(t)}function Sf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:Sf;function Qn(e,t){if(Fe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!ul.call(t,s)||!Fe(e[s],t[s]))return!1}return!0}function No(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Co(e,t){var n=No(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=No(n)}}function xu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wu(){for(var e=window,t=Dr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nf(e){var t=wu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xu(n.ownerDocument.documentElement,n)){if(r!==null&&ji(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=Co(n,l);var o=Co(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Cf=qe&&"documentMode"in document&&11>=document.documentMode,Vt=null,_l=null,Mn=null,zl=!1;function Eo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zl||Vt==null||Vt!==Dr(r)||(r=Vt,"selectionStart"in r&&ji(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mn&&Qn(Mn,r)||(Mn=r,r=Qr(_l,"onSelect"),0<r.length&&(t=new xi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vt)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bt={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Ws={},ku={};qe&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);function hs(e){if(Ws[e])return Ws[e];if(!Bt[e])return e;var t=Bt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ku)return Ws[e]=t[n];return e}var ju=hs("animationend"),Su=hs("animationiteration"),Nu=hs("animationstart"),Cu=hs("transitionend"),Eu=new Map,To="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vt(e,t){Eu.set(e,t),$t(t,[e])}for(var Us=0;Us<To.length;Us++){var Vs=To[Us],Ef=Vs.toLowerCase(),Tf=Vs[0].toUpperCase()+Vs.slice(1);vt(Ef,"on"+Tf)}vt(ju,"onAnimationEnd");vt(Su,"onAnimationIteration");vt(Nu,"onAnimationStart");vt("dblclick","onDoubleClick");vt("focusin","onFocus");vt("focusout","onBlur");vt(Cu,"onTransitionEnd");sn("onMouseEnter",["mouseout","mouseover"]);sn("onMouseLeave",["mouseout","mouseover"]);sn("onPointerEnter",["pointerout","pointerover"]);sn("onPointerLeave",["pointerout","pointerover"]);$t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$t("onBeforeInput",["compositionend","keypress","textInput","paste"]);$t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$t("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),_f=new Set("cancel close invalid load scroll toggle".split(" ").concat(_n));function _o(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cd(r,t,void 0,e),e.currentTarget=null}function Tu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==l&&s.isPropagationStopped())break e;_o(s,a,d),l=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==l&&s.isPropagationStopped())break e;_o(s,a,d),l=u}}}if(Ar)throw e=Nl,Ar=!1,Nl=null,e}function F(e,t){var n=t[Ol];n===void 0&&(n=t[Ol]=new Set);var r=e+"__bubble";n.has(r)||(_u(t,e,2,!1),n.add(r))}function Bs(e,t,n){var r=0;t&&(r|=4),_u(n,e,r,t)}var yr="_reactListening"+Math.random().toString(36).slice(2);function Kn(e){if(!e[yr]){e[yr]=!0,$a.forEach(function(n){n!=="selectionchange"&&(_f.has(n)||Bs(n,!1,e),Bs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yr]||(t[yr]=!0,Bs("selectionchange",!1,t))}}function _u(e,t,n,r){switch(du(t)){case 1:var s=Wd;break;case 4:s=Ud;break;default:s=gi}n=s.bind(null,t,n,e),s=void 0,!Sl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Qs(e,t,n,r,s){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;a!==null;){if(o=St(a),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}a=a.parentNode}}r=r.return}Za(function(){var d=l,m=pi(n),v=[];e:{var h=Eu.get(e);if(h!==void 0){var y=xi,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":y=rf;break;case"focusin":w="focus",y=Ds;break;case"focusout":w="blur",y=Ds;break;case"beforeblur":case"afterblur":y=Ds;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=vo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Qd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=of;break;case ju:case Su:case Nu:y=qd;break;case Cu:y=uf;break;case"scroll":y=Vd;break;case"wheel":y=df;break;case"copy":case"cut":case"paste":y=Gd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=yo}var k=(t&4)!==0,O=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=d,p;c!==null;){p=c;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,f!==null&&(g=An(c,f),g!=null&&k.push(Yn(c,g,p)))),O)break;c=c.return}0<k.length&&(h=new y(h,w,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==kl&&(w=n.relatedTarget||n.fromElement)&&(St(w)||w[Xe]))break e;if((y||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=d,w=w?St(w):null,w!==null&&(O=It(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=d),y!==w)){if(k=vo,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=yo,g="onPointerLeave",f="onPointerEnter",c="pointer"),O=y==null?h:Qt(y),p=w==null?h:Qt(w),h=new k(g,c+"leave",y,n,m),h.target=O,h.relatedTarget=p,g=null,St(m)===d&&(k=new k(f,c+"enter",w,n,m),k.target=p,k.relatedTarget=O,g=k),O=g,y&&w)t:{for(k=y,f=w,c=0,p=k;p;p=Ft(p))c++;for(p=0,g=f;g;g=Ft(g))p++;for(;0<c-p;)k=Ft(k),c--;for(;0<p-c;)f=Ft(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=Ft(k),f=Ft(f)}k=null}else k=null;y!==null&&zo(v,h,y,k,!1),w!==null&&O!==null&&zo(v,O,w,k,!0)}}e:{if(h=d?Qt(d):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var j=yf;else if(ko(h))if(gu)j=jf;else{j=wf;var C=xf}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=kf);if(j&&(j=j(e,d))){vu(v,j,n,m);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&vl(h,"number",h.value)}switch(C=d?Qt(d):window,e){case"focusin":(ko(C)||C.contentEditable==="true")&&(Vt=C,_l=d,Mn=null);break;case"focusout":Mn=_l=Vt=null;break;case"mousedown":zl=!0;break;case"contextmenu":case"mouseup":case"dragend":zl=!1,Eo(v,n,m);break;case"selectionchange":if(Cf)break;case"keydown":case"keyup":Eo(v,n,m)}var E;if(ki)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ut?hu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(pu&&n.locale!=="ko"&&(Ut||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ut&&(E=fu()):(st=m,yi="value"in st?st.value:st.textContent,Ut=!0)),C=Qr(d,T),0<C.length&&(T=new go(T,e,null,n,m),v.push({event:T,listeners:C}),E?T.data=E:(E=mu(n),E!==null&&(T.data=E)))),(E=pf?hf(e,n):mf(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(m=new go("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:d}),m.data=E))}Tu(v,t)})}function Yn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=An(e,n),l!=null&&r.unshift(Yn(e,l,s)),l=An(e,t),l!=null&&r.push(Yn(e,l,s))),e=e.return}return r}function Ft(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zo(e,t,n,r,s){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,s?(u=An(n,l),u!=null&&o.unshift(Yn(n,u,a))):s||(u=An(n,l),u!=null&&o.push(Yn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zf=/\r\n?/g,Pf=/\u0000|\uFFFD/g;function Po(e){return(typeof e=="string"?e:""+e).replace(zf,`
|
|
38
|
-
`).replace(Pf,"")}function xr(e,t,n){if(t=Po(t),Po(e)!==t&&n)throw Error(x(425))}function Kr(){}var Pl=null,Rl=null;function Ll(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ml=typeof setTimeout=="function"?setTimeout:void 0,Rf=typeof clearTimeout=="function"?clearTimeout:void 0,Ro=typeof Promise=="function"?Promise:void 0,Lf=typeof queueMicrotask=="function"?queueMicrotask:typeof Ro<"u"?function(e){return Ro.resolve(null).then(e).catch(Mf)}:Ml;function Mf(e){setTimeout(function(){throw e})}function Ks(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Vn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Vn(t)}function ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Lo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hn=Math.random().toString(36).slice(2),Ae="__reactFiber$"+hn,qn="__reactProps$"+hn,Xe="__reactContainer$"+hn,Ol="__reactEvents$"+hn,Of="__reactListeners$"+hn,$f="__reactHandles$"+hn;function St(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Lo(e);e!==null;){if(n=e[Ae])return n;e=Lo(e)}return t}e=n,n=e.parentNode}return null}function lr(e){return e=e[Ae]||e[Xe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function ms(e){return e[qn]||null}var $l=[],Kt=-1;function gt(e){return{current:e}}function H(e){0>Kt||(e.current=$l[Kt],$l[Kt]=null,Kt--)}function I(e,t){Kt++,$l[Kt]=e.current,e.current=t}var mt={},oe=gt(mt),he=gt(!1),_t=mt;function ln(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function me(e){return e=e.childContextTypes,e!=null}function Yr(){H(he),H(oe)}function Mo(e,t,n){if(oe.current!==mt)throw Error(x(168));I(oe,t),I(he,n)}function zu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(x(108,yd(e)||"Unknown",s));return V({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,_t=oe.current,I(oe,e),I(he,he.current),!0}function Oo(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=zu(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,H(he),H(oe),I(oe,e)):H(he),I(he,n)}var Be=null,vs=!1,Ys=!1;function Pu(e){Be===null?Be=[e]:Be.push(e)}function If(e){vs=!0,Pu(e)}function yt(){if(!Ys&&Be!==null){Ys=!0;var e=0,t=$;try{var n=Be;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Be=null,vs=!1}catch(s){throw Be!==null&&(Be=Be.slice(e+1)),tu(hi,yt),s}finally{$=t,Ys=!1}}return null}var Yt=[],qt=0,Xr=null,Gr=0,Ne=[],Ce=0,zt=null,Qe=1,Ke="";function kt(e,t){Yt[qt++]=Gr,Yt[qt++]=Xr,Xr=e,Gr=t}function Ru(e,t,n){Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,zt=e;var r=Qe;e=Ke;var s=32-$e(r)-1;r&=~(1<<s),n+=1;var l=32-$e(t)+s;if(30<l){var o=s-s%5;l=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Qe=1<<32-$e(t)+s|n<<s|r,Ke=l+e}else Qe=1<<l|n<<s|r,Ke=e}function Si(e){e.return!==null&&(kt(e,1),Ru(e,1,0))}function Ni(e){for(;e===Xr;)Xr=Yt[--qt],Yt[qt]=null,Gr=Yt[--qt],Yt[qt]=null;for(;e===zt;)zt=Ne[--Ce],Ne[Ce]=null,Ke=Ne[--Ce],Ne[Ce]=null,Qe=Ne[--Ce],Ne[Ce]=null}var we=null,xe=null,A=!1,Oe=null;function Lu(e,t){var n=Ee(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $o(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,xe=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zt!==null?{id:Qe,overflow:Ke}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ee(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,xe=null,!0):!1;default:return!1}}function Il(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fl(e){if(A){var t=xe;if(t){var n=t;if(!$o(e,t)){if(Il(e))throw Error(x(418));t=ut(n.nextSibling);var r=we;t&&$o(e,t)?Lu(r,n):(e.flags=e.flags&-4097|2,A=!1,we=e)}}else{if(Il(e))throw Error(x(418));e.flags=e.flags&-4097|2,A=!1,we=e}}}function Io(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function wr(e){if(e!==we)return!1;if(!A)return Io(e),A=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ll(e.type,e.memoizedProps)),t&&(t=xe)){if(Il(e))throw Mu(),Error(x(418));for(;t;)Lu(e,t),t=ut(t.nextSibling)}if(Io(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=we?ut(e.stateNode.nextSibling):null;return!0}function Mu(){for(var e=xe;e;)e=ut(e.nextSibling)}function on(){xe=we=null,A=!1}function Ci(e){Oe===null?Oe=[e]:Oe.push(e)}var Ff=Je.ReactCurrentBatchConfig;function jn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=s.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fo(e){var t=e._init;return t(e._payload)}function Ou(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function s(f,c){return f=pt(f,c),f.index=0,f.sibling=null,f}function l(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,p,g){return c===null||c.tag!==6?(c=el(p,f.mode,g),c.return=f,c):(c=s(c,p),c.return=f,c)}function u(f,c,p,g){var j=p.type;return j===Wt?m(f,c,p.props.children,g,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Fo(j)===c.type)?(g=s(c,p.props),g.ref=jn(f,c,p),g.return=f,g):(g=Fr(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,g)}function d(f,c,p,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=tl(p,f.mode,g),c.return=f,c):(c=s(c,p.children||[]),c.return=f,c)}function m(f,c,p,g,j){return c===null||c.tag!==7?(c=Tt(p,f.mode,g,j),c.return=f,c):(c=s(c,p),c.return=f,c)}function v(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=el(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=Fr(c.type,c.key,c.props,null,f.mode,p),p.ref=jn(f,null,c),p.return=f,p;case At:return c=tl(c,f.mode,p),c.return=f,c;case et:var g=c._init;return v(f,g(c._payload),p)}if(En(c)||gn(c))return c=Tt(c,f.mode,p,null),c.return=f,c;kr(f,c)}return null}function h(f,c,p,g){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:a(f,c,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:return p.key===j?u(f,c,p,g):null;case At:return p.key===j?d(f,c,p,g):null;case et:return j=p._init,h(f,c,j(p._payload),g)}if(En(p)||gn(p))return j!==null?null:m(f,c,p,g,null);kr(f,p)}return null}function y(f,c,p,g,j){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(p)||null,a(c,f,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cr:return f=f.get(g.key===null?p:g.key)||null,u(c,f,g,j);case At:return f=f.get(g.key===null?p:g.key)||null,d(c,f,g,j);case et:var C=g._init;return y(f,c,p,C(g._payload),j)}if(En(g)||gn(g))return f=f.get(p)||null,m(c,f,g,j,null);kr(c,g)}return null}function w(f,c,p,g){for(var j=null,C=null,E=c,T=c=0,Q=null;E!==null&&T<p.length;T++){E.index>T?(Q=E,E=null):Q=E.sibling;var L=h(f,E,p[T],g);if(L===null){E===null&&(E=Q);break}e&&E&&L.alternate===null&&t(f,E),c=l(L,c,T),C===null?j=L:C.sibling=L,C=L,E=Q}if(T===p.length)return n(f,E),A&&kt(f,T),j;if(E===null){for(;T<p.length;T++)E=v(f,p[T],g),E!==null&&(c=l(E,c,T),C===null?j=E:C.sibling=E,C=E);return A&&kt(f,T),j}for(E=r(f,E);T<p.length;T++)Q=y(E,f,T,p[T],g),Q!==null&&(e&&Q.alternate!==null&&E.delete(Q.key===null?T:Q.key),c=l(Q,c,T),C===null?j=Q:C.sibling=Q,C=Q);return e&&E.forEach(function(Pe){return t(f,Pe)}),A&&kt(f,T),j}function k(f,c,p,g){var j=gn(p);if(typeof j!="function")throw Error(x(150));if(p=j.call(p),p==null)throw Error(x(151));for(var C=j=null,E=c,T=c=0,Q=null,L=p.next();E!==null&&!L.done;T++,L=p.next()){E.index>T?(Q=E,E=null):Q=E.sibling;var Pe=h(f,E,L.value,g);if(Pe===null){E===null&&(E=Q);break}e&&E&&Pe.alternate===null&&t(f,E),c=l(Pe,c,T),C===null?j=Pe:C.sibling=Pe,C=Pe,E=Q}if(L.done)return n(f,E),A&&kt(f,T),j;if(E===null){for(;!L.done;T++,L=p.next())L=v(f,L.value,g),L!==null&&(c=l(L,c,T),C===null?j=L:C.sibling=L,C=L);return A&&kt(f,T),j}for(E=r(f,E);!L.done;T++,L=p.next())L=y(E,f,T,L.value,g),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),c=l(L,c,T),C===null?j=L:C.sibling=L,C=L);return e&&E.forEach(function(mn){return t(f,mn)}),A&&kt(f,T),j}function O(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Wt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:e:{for(var j=p.key,C=c;C!==null;){if(C.key===j){if(j=p.type,j===Wt){if(C.tag===7){n(f,C.sibling),c=s(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Fo(j)===C.type){n(f,C.sibling),c=s(C,p.props),c.ref=jn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===Wt?(c=Tt(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=Fr(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,f=g)}return o(f);case At:e:{for(C=p.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=s(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=tl(p,f.mode,g),c.return=f,f=c}return o(f);case et:return C=p._init,O(f,c,C(p._payload),g)}if(En(p))return w(f,c,p,g);if(gn(p))return k(f,c,p,g);kr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=s(c,p),c.return=f,f=c):(n(f,c),c=el(p,f.mode,g),c.return=f,f=c),o(f)):n(f,c)}return O}var an=Ou(!0),$u=Ou(!1),Zr=gt(null),Jr=null,Xt=null,Ei=null;function Ti(){Ei=Xt=Jr=null}function _i(e){var t=Zr.current;H(Zr),e._currentValue=t}function Dl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function nn(e,t){Jr=e,Ei=Xt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(Jr===null)throw Error(x(308));Xt=e,Jr.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var Nt=null;function zi(e){Nt===null?Nt=[e]:Nt.push(e)}function Iu(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,zi(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ge(e,r)}function Ge(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tt=!1;function Pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ge(e,n)}return s=r.interleaved,s===null?(t.next=t,zi(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ge(e,n)}function Rr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function br(e,t,n,r){var s=e.updateQueue;tt=!1;var l=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?l=d:o.next=d,o=u;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==o&&(a===null?m.firstBaseUpdate=d:a.next=d,m.lastBaseUpdate=u))}if(l!==null){var v=s.baseState;o=0,m=d=u=null,a=l;do{var h=a.lane,y=a.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(h=t,y=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){v=w.call(y,v,h);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,h=typeof w=="function"?w.call(y,v,h):w,h==null)break e;v=V({},v,h);break e;case 2:tt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else y={eventTime:y,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(d=m=y,u=v):m=m.next=y,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(m===null&&(u=v),s.baseState=u,s.firstBaseUpdate=d,s.lastBaseUpdate=m,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Rt|=o,e.lanes=o,e.memoizedState=v}}function Ho(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(x(191,s));s.call(r)}}}var ir={},Ue=gt(ir),Xn=gt(ir),Gn=gt(ir);function Ct(e){if(e===ir)throw Error(x(174));return e}function Ri(e,t){switch(I(Gn,t),I(Xn,e),I(Ue,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yl(t,e)}H(Ue),I(Ue,t)}function un(){H(Ue),H(Xn),H(Gn)}function Du(e){Ct(Gn.current);var t=Ct(Ue.current),n=yl(t,e.type);t!==n&&(I(Xn,e),I(Ue,n))}function Li(e){Xn.current===e&&(H(Ue),H(Xn))}var W=gt(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qs=[];function Mi(){for(var e=0;e<qs.length;e++)qs[e]._workInProgressVersionPrimary=null;qs.length=0}var Lr=Je.ReactCurrentDispatcher,Xs=Je.ReactCurrentBatchConfig,Pt=0,U=null,G=null,b=null,ts=!1,On=!1,Zn=0,Df=0;function se(){throw Error(x(321))}function Oi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function $i(e,t,n,r,s,l){if(Pt=l,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lr.current=e===null||e.memoizedState===null?Uf:Vf,e=n(r,s),On){l=0;do{if(On=!1,Zn=0,25<=l)throw Error(x(301));l+=1,b=G=null,t.updateQueue=null,Lr.current=Bf,e=n(r,s)}while(On)}if(Lr.current=ns,t=G!==null&&G.next!==null,Pt=0,b=G=U=null,ts=!1,t)throw Error(x(300));return e}function Ii(){var e=Zn!==0;return Zn=0,e}function He(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?U.memoizedState=b=e:b=b.next=e,b}function ze(){if(G===null){var e=U.alternate;e=e!==null?e.memoizedState:null}else e=G.next;var t=b===null?U.memoizedState:b.next;if(t!==null)b=t,G=e;else{if(e===null)throw Error(x(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},b===null?U.memoizedState=b=e:b=b.next=e}return b}function Jn(e,t){return typeof t=="function"?t(e):t}function Gs(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=G,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var o=s.next;s.next=l.next,l.next=o}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=o=null,u=null,d=l;do{var m=d.lane;if((Pt&m)===m)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var v={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=v,o=r):u=u.next=v,U.lanes|=m,Rt|=m}d=d.next}while(d!==null&&d!==l);u===null?o=r:u.next=a,Fe(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,U.lanes|=l,Rt|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zs(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do l=e(l,o.action),o=o.next;while(o!==s);Fe(l,t.memoizedState)||(pe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Hu(){}function Au(e,t){var n=U,r=ze(),s=t(),l=!Fe(r.memoizedState,s);if(l&&(r.memoizedState=s,pe=!0),r=r.queue,Fi(Vu.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,bn(9,Uu.bind(null,n,r,s,t),void 0,null),ee===null)throw Error(x(349));Pt&30||Wu(n,t,s)}return s}function Wu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uu(e,t,n,r){t.value=n,t.getSnapshot=r,Bu(t)&&Qu(e)}function Vu(e,t,n){return n(function(){Bu(t)&&Qu(e)})}function Bu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fe(e,n)}catch{return!0}}function Qu(e){var t=Ge(e,1);t!==null&&Ie(t,e,1,-1)}function Ao(e){var t=He();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t.queue=e,e=e.dispatch=Wf.bind(null,U,e),[t.memoizedState,e]}function bn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ku(){return ze().memoizedState}function Mr(e,t,n,r){var s=He();U.flags|=e,s.memoizedState=bn(1|t,n,void 0,r===void 0?null:r)}function gs(e,t,n,r){var s=ze();r=r===void 0?null:r;var l=void 0;if(G!==null){var o=G.memoizedState;if(l=o.destroy,r!==null&&Oi(r,o.deps)){s.memoizedState=bn(t,n,l,r);return}}U.flags|=e,s.memoizedState=bn(1|t,n,l,r)}function Wo(e,t){return Mr(8390656,8,e,t)}function Fi(e,t){return gs(2048,8,e,t)}function Yu(e,t){return gs(4,2,e,t)}function qu(e,t){return gs(4,4,e,t)}function Xu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gu(e,t,n){return n=n!=null?n.concat([e]):null,gs(4,4,Xu.bind(null,t,e),n)}function Di(){}function Zu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ju(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bu(e,t,n){return Pt&21?(Fe(n,t)||(n=su(),U.lanes|=n,Rt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Hf(e,t){var n=$;$=n!==0&&4>n?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{$=n,Xs.transition=r}}function ec(){return ze().memoizedState}function Af(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e))nc(t,n);else if(n=Iu(e,t,n,r),n!==null){var s=ue();Ie(n,e,r,s),rc(n,t,r)}}function Wf(e,t,n){var r=ft(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tc(e))nc(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(s.hasEagerState=!0,s.eagerState=a,Fe(a,o)){var u=t.interleaved;u===null?(s.next=s,zi(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Iu(e,t,s,r),n!==null&&(s=ue(),Ie(n,e,r,s),rc(n,t,r))}}function tc(e){var t=e.alternate;return e===U||t!==null&&t===U}function nc(e,t){On=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}var ns={readContext:_e,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Uf={readContext:_e,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Xu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Af.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:Ao,useDebugValue:Di,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=Ao(!1),t=e[0];return e=Hf.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,s=He();if(A){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ee===null)throw Error(x(349));Pt&30||Wu(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Wo(Vu.bind(null,r,l,e),[e]),r.flags|=2048,bn(9,Uu.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=He(),t=ee.identifierPrefix;if(A){var n=Ke,r=Qe;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Df++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vf={readContext:_e,useCallback:Zu,useContext:_e,useEffect:Fi,useImperativeHandle:Gu,useInsertionEffect:Yu,useLayoutEffect:qu,useMemo:Ju,useReducer:Gs,useRef:Ku,useState:function(){return Gs(Jn)},useDebugValue:Di,useDeferredValue:function(e){var t=ze();return bu(t,G.memoizedState,e)},useTransition:function(){var e=Gs(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Au,useId:ec,unstable_isNewReconciler:!1},Bf={readContext:_e,useCallback:Zu,useContext:_e,useEffect:Fi,useImperativeHandle:Gu,useInsertionEffect:Yu,useLayoutEffect:qu,useMemo:Ju,useReducer:Zs,useRef:Ku,useState:function(){return Zs(Jn)},useDebugValue:Di,useDeferredValue:function(e){var t=ze();return G===null?t.memoizedState=e:bu(t,G.memoizedState,e)},useTransition:function(){var e=Zs(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Au,useId:ec,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Hl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ys={isMounted:function(e){return(e=e._reactInternals)?It(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ue(),s=ft(e),l=Ye(r,s);l.payload=t,n!=null&&(l.callback=n),t=ct(e,l,s),t!==null&&(Ie(t,e,s,r),Rr(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ue(),s=ft(e),l=Ye(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=ct(e,l,s),t!==null&&(Ie(t,e,s,r),Rr(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ue(),r=ft(e),s=Ye(n,r);s.tag=2,t!=null&&(s.callback=t),t=ct(e,s,r),t!==null&&(Ie(t,e,r,n),Rr(t,e,r))}};function Uo(e,t,n,r,s,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Qn(n,r)||!Qn(s,l):!0}function sc(e,t,n){var r=!1,s=mt,l=t.contextType;return typeof l=="object"&&l!==null?l=_e(l):(s=me(t)?_t:oe.current,r=t.contextTypes,l=(r=r!=null)?ln(e,s):mt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function Vo(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function Al(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Pi(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=_e(l):(l=me(t)?_t:oe.current,s.context=ln(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Hl(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ys.enqueueReplaceState(s,s.state,null),br(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cn(e,t){try{var n="",r=t;do n+=gd(r),r=r.return;while(r);var s=n}catch(l){s=`
|
|
37
|
+
`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ls=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function gd(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ms(e.type,!1),e;case 11:return e=Ms(e.type.render,!1),e;case 1:return e=Ms(e.type,!0),e;default:return""}}function hl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wt:return"Fragment";case At:return"Portal";case dl:return"Profiler";case di:return"StrictMode";case fl:return"Suspense";case pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fa:return(e.displayName||"Context")+".Consumer";case Ia:return(e._context.displayName||"Context")+".Provider";case fi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pi:return t=e.displayName||null,t!==null?t:hl(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return hl(e(t))}catch{}}return null}function yd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hl(t);case 8:return t===di?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ha(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xd(e){var t=Ha(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){e._valueTracker||(e._valueTracker=xd(e))}function Aa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ha(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ml(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function io(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wa(e,t){t=t.checked,t!=null&&ci(e,"checked",t,!1)}function vl(e,t){Wa(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&gl(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gl(e,t,n){(t!=="number"||Dr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function yl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ao(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(En(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Ua(e,t){var n=ht(t.value),r=ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function uo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Va(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Va(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,Ba=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fr=fr||document.createElement("div"),fr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wd=["Webkit","ms","Moz","O"];Object.keys(zn).forEach(function(e){wd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zn[t]=zn[e]})});function Qa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||zn.hasOwnProperty(e)&&zn[e]?(""+t).trim():t+"px"}function Ka(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Qa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var kd=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wl(e,t){if(t){if(kd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function kl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jl=null;function hi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,bt=null,en=null;function co(e){if(e=lr(e)){if(typeof Sl!="function")throw Error(x(280));var t=e.stateNode;t&&(t=ms(t),Sl(e.stateNode,e.type,t))}}function Ya(e){bt?en?en.push(e):en=[e]:bt=e}function qa(){if(bt){var e=bt,t=en;if(en=bt=null,co(e),t)for(e=0;e<t.length;e++)co(t[e])}}function Xa(e,t){return e(t)}function Ga(){}var Os=!1;function Za(e,t,n){if(Os)return e(t,n);Os=!0;try{return Xa(e,t,n)}finally{Os=!1,(bt!==null||en!==null)&&(Ga(),qa())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=ms(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var Nl=!1;if(qe)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){Nl=!0}}),window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{Nl=!1}function jd(e,t,n,r,s,l,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var Pn=!1,Hr=null,Ar=!1,Cl=null,Sd={onError:function(e){Pn=!0,Hr=e}};function Nd(e,t,n,r,s,l,o,a,u){Pn=!1,Hr=null,jd.apply(Sd,arguments)}function Cd(e,t,n,r,s,l,o,a,u){if(Nd.apply(this,arguments),Pn){if(Pn){var d=Hr;Pn=!1,Hr=null}else throw Error(x(198));Ar||(Ar=!0,Cl=d)}}function It(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ja(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fo(e){if(It(e)!==e)throw Error(x(188))}function Ed(e){var t=e.alternate;if(!t){if(t=It(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var l=s.alternate;if(l===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return fo(s),e;if(l===r)return fo(s),t;l=l.sibling}throw Error(x(188))}if(n.return!==r.return)n=s,r=l;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=l;break}if(a===r){o=!0,r=s,n=l;break}a=a.sibling}if(!o){for(a=l.child;a;){if(a===n){o=!0,n=l,r=s;break}if(a===r){o=!0,r=l,n=s;break}a=a.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function ba(e){return e=Ed(e),e!==null?eu(e):null}function eu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=eu(e);if(t!==null)return t;e=e.sibling}return null}var tu=ke.unstable_scheduleCallback,po=ke.unstable_cancelCallback,Td=ke.unstable_shouldYield,_d=ke.unstable_requestPaint,Y=ke.unstable_now,zd=ke.unstable_getCurrentPriorityLevel,mi=ke.unstable_ImmediatePriority,nu=ke.unstable_UserBlockingPriority,Wr=ke.unstable_NormalPriority,Pd=ke.unstable_LowPriority,ru=ke.unstable_IdlePriority,ds=null,We=null;function Rd(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(ds,e,void 0,(e.current.flags&128)===128)}catch{}}var $e=Math.clz32?Math.clz32:Od,Ld=Math.log,Md=Math.LN2;function Od(e){return e>>>=0,e===0?32:31-(Ld(e)/Md|0)|0}var pr=64,hr=4194304;function Tn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ur(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Tn(a):(l&=o,l!==0&&(r=Tn(l)))}else o=n&~s,o!==0?r=Tn(o):l!==0&&(r=Tn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,l=t&-t,s>=l||s===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$e(t),s=1<<n,r|=e[n],t&=~s;return r}function $d(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Id(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-$e(l),a=1<<o,u=s[o];u===-1?(!(a&n)||a&r)&&(s[o]=$d(a,t)):u<=t&&(e.expiredLanes|=a),l&=~a}}function El(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function su(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function $s(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=n}function Fd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-$e(n),l=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~l}}function vi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$e(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var $=0;function lu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iu,gi,ou,au,uu,Tl=!1,mr=[],it=null,ot=null,at=null,Wn=new Map,Un=new Map,nt=[],Dd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ho(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":Wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function xn(e,t,n,r,s,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[s]},t!==null&&(t=lr(t),t!==null&&gi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Hd(e,t,n,r,s){switch(t){case"focusin":return it=xn(it,e,t,n,r,s),!0;case"dragenter":return ot=xn(ot,e,t,n,r,s),!0;case"mouseover":return at=xn(at,e,t,n,r,s),!0;case"pointerover":var l=s.pointerId;return Wn.set(l,xn(Wn.get(l)||null,e,t,n,r,s)),!0;case"gotpointercapture":return l=s.pointerId,Un.set(l,xn(Un.get(l)||null,e,t,n,r,s)),!0}return!1}function cu(e){var t=St(e.target);if(t!==null){var n=It(t);if(n!==null){if(t=n.tag,t===13){if(t=Ja(n),t!==null){e.blockedOn=t,uu(e.priority,function(){ou(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_l(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jl=r,n.target.dispatchEvent(r),jl=null}else return t=lr(n),t!==null&&gi(t),e.blockedOn=n,!1;t.shift()}return!0}function mo(e,t,n){_r(e)&&n.delete(t)}function Ad(){Tl=!1,it!==null&&_r(it)&&(it=null),ot!==null&&_r(ot)&&(ot=null),at!==null&&_r(at)&&(at=null),Wn.forEach(mo),Un.forEach(mo)}function wn(e,t){e.blockedOn===t&&(e.blockedOn=null,Tl||(Tl=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Ad)))}function Vn(e){function t(s){return wn(s,e)}if(0<mr.length){wn(mr[0],e);for(var n=1;n<mr.length;n++){var r=mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&wn(it,e),ot!==null&&wn(ot,e),at!==null&&wn(at,e),Wn.forEach(t),Un.forEach(t),n=0;n<nt.length;n++)r=nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nt.length&&(n=nt[0],n.blockedOn===null);)cu(n),n.blockedOn===null&&nt.shift()}var tn=Je.ReactCurrentBatchConfig,Vr=!0;function Wd(e,t,n,r){var s=$,l=tn.transition;tn.transition=null;try{$=1,yi(e,t,n,r)}finally{$=s,tn.transition=l}}function Ud(e,t,n,r){var s=$,l=tn.transition;tn.transition=null;try{$=4,yi(e,t,n,r)}finally{$=s,tn.transition=l}}function yi(e,t,n,r){if(Vr){var s=_l(e,t,n,r);if(s===null)Qs(e,t,r,Br,n),ho(e,r);else if(Hd(s,e,t,n,r))r.stopPropagation();else if(ho(e,r),t&4&&-1<Dd.indexOf(e)){for(;s!==null;){var l=lr(s);if(l!==null&&iu(l),l=_l(e,t,n,r),l===null&&Qs(e,t,r,Br,n),l===s)break;s=l}s!==null&&r.stopPropagation()}else Qs(e,t,r,null,n)}}var Br=null;function _l(e,t,n,r){if(Br=null,e=hi(r),e=St(e),e!==null)if(t=It(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ja(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Br=e,null}function du(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(zd()){case mi:return 1;case nu:return 4;case Wr:case Pd:return 16;case ru:return 536870912;default:return 16}default:return 16}}var st=null,xi=null,zr=null;function fu(){if(zr)return zr;var e,t=xi,n=t.length,r,s="value"in st?st.value:st.textContent,l=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[l-r];r++);return zr=s.slice(e,1<r?1-r:void 0)}function Pr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function vo(){return!1}function Se(e){function t(n,r,s,l,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(l):l[a]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?vr:vo,this.isPropagationStopped=vo,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wi=Se(pn),sr=V({},pn,{view:0,detail:0}),Vd=Se(sr),Is,Fs,kn,fs=V({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ki,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==kn&&(kn&&e.type==="mousemove"?(Is=e.screenX-kn.screenX,Fs=e.screenY-kn.screenY):Fs=Is=0,kn=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:Fs}}),go=Se(fs),Bd=V({},fs,{dataTransfer:0}),Qd=Se(Bd),Kd=V({},sr,{relatedTarget:0}),Ds=Se(Kd),Yd=V({},pn,{animationName:0,elapsedTime:0,pseudoElement:0}),qd=Se(Yd),Xd=V({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gd=Se(Xd),Zd=V({},pn,{data:0}),yo=Se(Zd),Jd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bd={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"},ef={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ef[e])?!!t[e]:!1}function ki(){return tf}var nf=V({},sr,{key:function(e){if(e.key){var t=Jd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ki,charCode:function(e){return e.type==="keypress"?Pr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rf=Se(nf),sf=V({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xo=Se(sf),lf=V({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ki}),of=Se(lf),af=V({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),uf=Se(af),cf=V({},fs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),df=Se(cf),ff=[9,13,27,32],ji=qe&&"CompositionEvent"in window,Rn=null;qe&&"documentMode"in document&&(Rn=document.documentMode);var pf=qe&&"TextEvent"in window&&!Rn,pu=qe&&(!ji||Rn&&8<Rn&&11>=Rn),wo=" ",ko=!1;function hu(e,t){switch(e){case"keyup":return ff.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ut=!1;function hf(e,t){switch(e){case"compositionend":return mu(t);case"keypress":return t.which!==32?null:(ko=!0,wo);case"textInput":return e=t.data,e===wo&&ko?null:e;default:return null}}function mf(e,t){if(Ut)return e==="compositionend"||!ji&&hu(e,t)?(e=fu(),zr=xi=st=null,Ut=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return pu&&t.locale!=="ko"?null:t.data;default:return null}}var vf={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 jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vf[e.type]:t==="textarea"}function vu(e,t,n,r){Ya(r),t=Qr(t,"onChange"),0<t.length&&(n=new wi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ln=null,Bn=null;function gf(e){Tu(e,0)}function ps(e){var t=Qt(e);if(Aa(t))return e}function yf(e,t){if(e==="change")return t}var gu=!1;if(qe){var Hs;if(qe){var As="oninput"in document;if(!As){var So=document.createElement("div");So.setAttribute("oninput","return;"),As=typeof So.oninput=="function"}Hs=As}else Hs=!1;gu=Hs&&(!document.documentMode||9<document.documentMode)}function No(){Ln&&(Ln.detachEvent("onpropertychange",yu),Bn=Ln=null)}function yu(e){if(e.propertyName==="value"&&ps(Bn)){var t=[];vu(t,Bn,e,hi(e)),Za(gf,t)}}function xf(e,t,n){e==="focusin"?(No(),Ln=t,Bn=n,Ln.attachEvent("onpropertychange",yu)):e==="focusout"&&No()}function wf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Bn)}function kf(e,t){if(e==="click")return ps(t)}function jf(e,t){if(e==="input"||e==="change")return ps(t)}function Sf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fe=typeof Object.is=="function"?Object.is:Sf;function Qn(e,t){if(Fe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!cl.call(t,s)||!Fe(e[s],t[s]))return!1}return!0}function Co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Eo(e,t){var n=Co(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Co(n)}}function xu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wu(){for(var e=window,t=Dr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function Si(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Nf(e){var t=wu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xu(n.ownerDocument.documentElement,n)){if(r!==null&&Si(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,l=Math.min(r.start,s);r=r.end===void 0?l:Math.min(r.end,s),!e.extend&&l>r&&(s=r,r=l,l=s),s=Eo(n,l);var o=Eo(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Cf=qe&&"documentMode"in document&&11>=document.documentMode,Vt=null,zl=null,Mn=null,Pl=!1;function To(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pl||Vt==null||Vt!==Dr(r)||(r=Vt,"selectionStart"in r&&Si(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mn&&Qn(Mn,r)||(Mn=r,r=Qr(zl,"onSelect"),0<r.length&&(t=new wi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vt)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bt={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Ws={},ku={};qe&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);function hs(e){if(Ws[e])return Ws[e];if(!Bt[e])return e;var t=Bt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ku)return Ws[e]=t[n];return e}var ju=hs("animationend"),Su=hs("animationiteration"),Nu=hs("animationstart"),Cu=hs("transitionend"),Eu=new Map,_o="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vt(e,t){Eu.set(e,t),$t(t,[e])}for(var Us=0;Us<_o.length;Us++){var Vs=_o[Us],Ef=Vs.toLowerCase(),Tf=Vs[0].toUpperCase()+Vs.slice(1);vt(Ef,"on"+Tf)}vt(ju,"onAnimationEnd");vt(Su,"onAnimationIteration");vt(Nu,"onAnimationStart");vt("dblclick","onDoubleClick");vt("focusin","onFocus");vt("focusout","onBlur");vt(Cu,"onTransitionEnd");sn("onMouseEnter",["mouseout","mouseover"]);sn("onMouseLeave",["mouseout","mouseover"]);sn("onPointerEnter",["pointerout","pointerover"]);sn("onPointerLeave",["pointerout","pointerover"]);$t("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$t("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$t("onBeforeInput",["compositionend","keypress","textInput","paste"]);$t("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$t("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$t("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),_f=new Set("cancel close invalid load scroll toggle".split(" ").concat(_n));function zo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cd(r,t,void 0,e),e.currentTarget=null}function Tu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==l&&s.isPropagationStopped())break e;zo(s,a,d),l=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==l&&s.isPropagationStopped())break e;zo(s,a,d),l=u}}}if(Ar)throw e=Cl,Ar=!1,Cl=null,e}function F(e,t){var n=t[$l];n===void 0&&(n=t[$l]=new Set);var r=e+"__bubble";n.has(r)||(_u(t,e,2,!1),n.add(r))}function Bs(e,t,n){var r=0;t&&(r|=4),_u(n,e,r,t)}var yr="_reactListening"+Math.random().toString(36).slice(2);function Kn(e){if(!e[yr]){e[yr]=!0,$a.forEach(function(n){n!=="selectionchange"&&(_f.has(n)||Bs(n,!1,e),Bs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yr]||(t[yr]=!0,Bs("selectionchange",!1,t))}}function _u(e,t,n,r){switch(du(t)){case 1:var s=Wd;break;case 4:s=Ud;break;default:s=yi}n=s.bind(null,t,n,e),s=void 0,!Nl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Qs(e,t,n,r,s){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;a!==null;){if(o=St(a),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}a=a.parentNode}}r=r.return}Za(function(){var d=l,m=hi(n),v=[];e:{var h=Eu.get(e);if(h!==void 0){var y=wi,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":y=rf;break;case"focusin":w="focus",y=Ds;break;case"focusout":w="blur",y=Ds;break;case"beforeblur":case"afterblur":y=Ds;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=go;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Qd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=of;break;case ju:case Su:case Nu:y=qd;break;case Cu:y=uf;break;case"scroll":y=Vd;break;case"wheel":y=df;break;case"copy":case"cut":case"paste":y=Gd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=xo}var k=(t&4)!==0,O=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=d,p;c!==null;){p=c;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,f!==null&&(g=An(c,f),g!=null&&k.push(Yn(c,g,p)))),O)break;c=c.return}0<k.length&&(h=new y(h,w,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==jl&&(w=n.relatedTarget||n.fromElement)&&(St(w)||w[Xe]))break e;if((y||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=d,w=w?St(w):null,w!==null&&(O=It(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=d),y!==w)){if(k=go,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=xo,g="onPointerLeave",f="onPointerEnter",c="pointer"),O=y==null?h:Qt(y),p=w==null?h:Qt(w),h=new k(g,c+"leave",y,n,m),h.target=O,h.relatedTarget=p,g=null,St(m)===d&&(k=new k(f,c+"enter",w,n,m),k.target=p,k.relatedTarget=O,g=k),O=g,y&&w)t:{for(k=y,f=w,c=0,p=k;p;p=Ft(p))c++;for(p=0,g=f;g;g=Ft(g))p++;for(;0<c-p;)k=Ft(k),c--;for(;0<p-c;)f=Ft(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=Ft(k),f=Ft(f)}k=null}else k=null;y!==null&&Po(v,h,y,k,!1),w!==null&&O!==null&&Po(v,O,w,k,!0)}}e:{if(h=d?Qt(d):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var j=yf;else if(jo(h))if(gu)j=jf;else{j=wf;var C=xf}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=kf);if(j&&(j=j(e,d))){vu(v,j,n,m);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&gl(h,"number",h.value)}switch(C=d?Qt(d):window,e){case"focusin":(jo(C)||C.contentEditable==="true")&&(Vt=C,zl=d,Mn=null);break;case"focusout":Mn=zl=Vt=null;break;case"mousedown":Pl=!0;break;case"contextmenu":case"mouseup":case"dragend":Pl=!1,To(v,n,m);break;case"selectionchange":if(Cf)break;case"keydown":case"keyup":To(v,n,m)}var E;if(ji)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ut?hu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(pu&&n.locale!=="ko"&&(Ut||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ut&&(E=fu()):(st=m,xi="value"in st?st.value:st.textContent,Ut=!0)),C=Qr(d,T),0<C.length&&(T=new yo(T,e,null,n,m),v.push({event:T,listeners:C}),E?T.data=E:(E=mu(n),E!==null&&(T.data=E)))),(E=pf?hf(e,n):mf(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(m=new yo("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:d}),m.data=E))}Tu(v,t)})}function Yn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,l=s.stateNode;s.tag===5&&l!==null&&(s=l,l=An(e,n),l!=null&&r.unshift(Yn(e,l,s)),l=An(e,t),l!=null&&r.push(Yn(e,l,s))),e=e.return}return r}function Ft(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Po(e,t,n,r,s){for(var l=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,s?(u=An(n,l),u!=null&&o.unshift(Yn(n,u,a))):s||(u=An(n,l),u!=null&&o.push(Yn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zf=/\r\n?/g,Pf=/\u0000|\uFFFD/g;function Ro(e){return(typeof e=="string"?e:""+e).replace(zf,`
|
|
38
|
+
`).replace(Pf,"")}function xr(e,t,n){if(t=Ro(t),Ro(e)!==t&&n)throw Error(x(425))}function Kr(){}var Rl=null,Ll=null;function Ml(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ol=typeof setTimeout=="function"?setTimeout:void 0,Rf=typeof clearTimeout=="function"?clearTimeout:void 0,Lo=typeof Promise=="function"?Promise:void 0,Lf=typeof queueMicrotask=="function"?queueMicrotask:typeof Lo<"u"?function(e){return Lo.resolve(null).then(e).catch(Mf)}:Ol;function Mf(e){setTimeout(function(){throw e})}function Ks(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Vn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Vn(t)}function ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Mo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hn=Math.random().toString(36).slice(2),Ae="__reactFiber$"+hn,qn="__reactProps$"+hn,Xe="__reactContainer$"+hn,$l="__reactEvents$"+hn,Of="__reactListeners$"+hn,$f="__reactHandles$"+hn;function St(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mo(e);e!==null;){if(n=e[Ae])return n;e=Mo(e)}return t}e=n,n=e.parentNode}return null}function lr(e){return e=e[Ae]||e[Xe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function ms(e){return e[qn]||null}var Il=[],Kt=-1;function gt(e){return{current:e}}function H(e){0>Kt||(e.current=Il[Kt],Il[Kt]=null,Kt--)}function I(e,t){Kt++,Il[Kt]=e.current,e.current=t}var mt={},oe=gt(mt),he=gt(!1),_t=mt;function ln(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},l;for(l in n)s[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function me(e){return e=e.childContextTypes,e!=null}function Yr(){H(he),H(oe)}function Oo(e,t,n){if(oe.current!==mt)throw Error(x(168));I(oe,t),I(he,n)}function zu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(x(108,yd(e)||"Unknown",s));return V({},n,r)}function qr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,_t=oe.current,I(oe,e),I(he,he.current),!0}function $o(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=zu(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,H(he),H(oe),I(oe,e)):H(he),I(he,n)}var Be=null,vs=!1,Ys=!1;function Pu(e){Be===null?Be=[e]:Be.push(e)}function If(e){vs=!0,Pu(e)}function yt(){if(!Ys&&Be!==null){Ys=!0;var e=0,t=$;try{var n=Be;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Be=null,vs=!1}catch(s){throw Be!==null&&(Be=Be.slice(e+1)),tu(mi,yt),s}finally{$=t,Ys=!1}}return null}var Yt=[],qt=0,Xr=null,Gr=0,Ne=[],Ce=0,zt=null,Qe=1,Ke="";function kt(e,t){Yt[qt++]=Gr,Yt[qt++]=Xr,Xr=e,Gr=t}function Ru(e,t,n){Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,zt=e;var r=Qe;e=Ke;var s=32-$e(r)-1;r&=~(1<<s),n+=1;var l=32-$e(t)+s;if(30<l){var o=s-s%5;l=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Qe=1<<32-$e(t)+s|n<<s|r,Ke=l+e}else Qe=1<<l|n<<s|r,Ke=e}function Ni(e){e.return!==null&&(kt(e,1),Ru(e,1,0))}function Ci(e){for(;e===Xr;)Xr=Yt[--qt],Yt[qt]=null,Gr=Yt[--qt],Yt[qt]=null;for(;e===zt;)zt=Ne[--Ce],Ne[Ce]=null,Ke=Ne[--Ce],Ne[Ce]=null,Qe=Ne[--Ce],Ne[Ce]=null}var we=null,xe=null,A=!1,Oe=null;function Lu(e,t){var n=Ee(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Io(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,xe=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,xe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zt!==null?{id:Qe,overflow:Ke}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ee(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,xe=null,!0):!1;default:return!1}}function Fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dl(e){if(A){var t=xe;if(t){var n=t;if(!Io(e,t)){if(Fl(e))throw Error(x(418));t=ut(n.nextSibling);var r=we;t&&Io(e,t)?Lu(r,n):(e.flags=e.flags&-4097|2,A=!1,we=e)}}else{if(Fl(e))throw Error(x(418));e.flags=e.flags&-4097|2,A=!1,we=e}}}function Fo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function wr(e){if(e!==we)return!1;if(!A)return Fo(e),A=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ml(e.type,e.memoizedProps)),t&&(t=xe)){if(Fl(e))throw Mu(),Error(x(418));for(;t;)Lu(e,t),t=ut(t.nextSibling)}if(Fo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xe=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xe=null}}else xe=we?ut(e.stateNode.nextSibling):null;return!0}function Mu(){for(var e=xe;e;)e=ut(e.nextSibling)}function on(){xe=we=null,A=!1}function Ei(e){Oe===null?Oe=[e]:Oe.push(e)}var Ff=Je.ReactCurrentBatchConfig;function jn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var s=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var a=s.refs;o===null?delete a[l]:a[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Do(e){var t=e._init;return t(e._payload)}function Ou(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function s(f,c){return f=pt(f,c),f.index=0,f.sibling=null,f}function l(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,p,g){return c===null||c.tag!==6?(c=el(p,f.mode,g),c.return=f,c):(c=s(c,p),c.return=f,c)}function u(f,c,p,g){var j=p.type;return j===Wt?m(f,c,p.props.children,g,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Do(j)===c.type)?(g=s(c,p.props),g.ref=jn(f,c,p),g.return=f,g):(g=Fr(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,g)}function d(f,c,p,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=tl(p,f.mode,g),c.return=f,c):(c=s(c,p.children||[]),c.return=f,c)}function m(f,c,p,g,j){return c===null||c.tag!==7?(c=Tt(p,f.mode,g,j),c.return=f,c):(c=s(c,p),c.return=f,c)}function v(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=el(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=Fr(c.type,c.key,c.props,null,f.mode,p),p.ref=jn(f,null,c),p.return=f,p;case At:return c=tl(c,f.mode,p),c.return=f,c;case et:var g=c._init;return v(f,g(c._payload),p)}if(En(c)||gn(c))return c=Tt(c,f.mode,p,null),c.return=f,c;kr(f,c)}return null}function h(f,c,p,g){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:a(f,c,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:return p.key===j?u(f,c,p,g):null;case At:return p.key===j?d(f,c,p,g):null;case et:return j=p._init,h(f,c,j(p._payload),g)}if(En(p)||gn(p))return j!==null?null:m(f,c,p,g,null);kr(f,p)}return null}function y(f,c,p,g,j){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(p)||null,a(c,f,""+g,j);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cr:return f=f.get(g.key===null?p:g.key)||null,u(c,f,g,j);case At:return f=f.get(g.key===null?p:g.key)||null,d(c,f,g,j);case et:var C=g._init;return y(f,c,p,C(g._payload),j)}if(En(g)||gn(g))return f=f.get(p)||null,m(c,f,g,j,null);kr(c,g)}return null}function w(f,c,p,g){for(var j=null,C=null,E=c,T=c=0,Q=null;E!==null&&T<p.length;T++){E.index>T?(Q=E,E=null):Q=E.sibling;var L=h(f,E,p[T],g);if(L===null){E===null&&(E=Q);break}e&&E&&L.alternate===null&&t(f,E),c=l(L,c,T),C===null?j=L:C.sibling=L,C=L,E=Q}if(T===p.length)return n(f,E),A&&kt(f,T),j;if(E===null){for(;T<p.length;T++)E=v(f,p[T],g),E!==null&&(c=l(E,c,T),C===null?j=E:C.sibling=E,C=E);return A&&kt(f,T),j}for(E=r(f,E);T<p.length;T++)Q=y(E,f,T,p[T],g),Q!==null&&(e&&Q.alternate!==null&&E.delete(Q.key===null?T:Q.key),c=l(Q,c,T),C===null?j=Q:C.sibling=Q,C=Q);return e&&E.forEach(function(Pe){return t(f,Pe)}),A&&kt(f,T),j}function k(f,c,p,g){var j=gn(p);if(typeof j!="function")throw Error(x(150));if(p=j.call(p),p==null)throw Error(x(151));for(var C=j=null,E=c,T=c=0,Q=null,L=p.next();E!==null&&!L.done;T++,L=p.next()){E.index>T?(Q=E,E=null):Q=E.sibling;var Pe=h(f,E,L.value,g);if(Pe===null){E===null&&(E=Q);break}e&&E&&Pe.alternate===null&&t(f,E),c=l(Pe,c,T),C===null?j=Pe:C.sibling=Pe,C=Pe,E=Q}if(L.done)return n(f,E),A&&kt(f,T),j;if(E===null){for(;!L.done;T++,L=p.next())L=v(f,L.value,g),L!==null&&(c=l(L,c,T),C===null?j=L:C.sibling=L,C=L);return A&&kt(f,T),j}for(E=r(f,E);!L.done;T++,L=p.next())L=y(E,f,T,L.value,g),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),c=l(L,c,T),C===null?j=L:C.sibling=L,C=L);return e&&E.forEach(function(mn){return t(f,mn)}),A&&kt(f,T),j}function O(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Wt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case cr:e:{for(var j=p.key,C=c;C!==null;){if(C.key===j){if(j=p.type,j===Wt){if(C.tag===7){n(f,C.sibling),c=s(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Do(j)===C.type){n(f,C.sibling),c=s(C,p.props),c.ref=jn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===Wt?(c=Tt(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=Fr(p.type,p.key,p.props,null,f.mode,g),g.ref=jn(f,c,p),g.return=f,f=g)}return o(f);case At:e:{for(C=p.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=s(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=tl(p,f.mode,g),c.return=f,f=c}return o(f);case et:return C=p._init,O(f,c,C(p._payload),g)}if(En(p))return w(f,c,p,g);if(gn(p))return k(f,c,p,g);kr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=s(c,p),c.return=f,f=c):(n(f,c),c=el(p,f.mode,g),c.return=f,f=c),o(f)):n(f,c)}return O}var an=Ou(!0),$u=Ou(!1),Zr=gt(null),Jr=null,Xt=null,Ti=null;function _i(){Ti=Xt=Jr=null}function zi(e){var t=Zr.current;H(Zr),e._currentValue=t}function Hl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function nn(e,t){Jr=e,Ti=Xt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(Ti!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(Jr===null)throw Error(x(308));Xt=e,Jr.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var Nt=null;function Pi(e){Nt===null?Nt=[e]:Nt.push(e)}function Iu(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Pi(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ge(e,r)}function Ge(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tt=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ye(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ge(e,n)}return s=r.interleaved,s===null?(t.next=t,Pi(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ge(e,n)}function Rr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vi(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?s=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?s=l=t:l=l.next=t}else s=l=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function br(e,t,n,r){var s=e.updateQueue;tt=!1;var l=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?l=d:o.next=d,o=u;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==o&&(a===null?m.firstBaseUpdate=d:a.next=d,m.lastBaseUpdate=u))}if(l!==null){var v=s.baseState;o=0,m=d=u=null,a=l;do{var h=a.lane,y=a.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(h=t,y=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){v=w.call(y,v,h);break e}v=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,h=typeof w=="function"?w.call(y,v,h):w,h==null)break e;v=V({},v,h);break e;case 2:tt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else y={eventTime:y,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(d=m=y,u=v):m=m.next=y,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(m===null&&(u=v),s.baseState=u,s.firstBaseUpdate=d,s.lastBaseUpdate=m,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else l===null&&(s.shared.lanes=0);Rt|=o,e.lanes=o,e.memoizedState=v}}function Ao(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(x(191,s));s.call(r)}}}var ir={},Ue=gt(ir),Xn=gt(ir),Gn=gt(ir);function Ct(e){if(e===ir)throw Error(x(174));return e}function Li(e,t){switch(I(Gn,t),I(Xn,e),I(Ue,ir),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xl(t,e)}H(Ue),I(Ue,t)}function un(){H(Ue),H(Xn),H(Gn)}function Du(e){Ct(Gn.current);var t=Ct(Ue.current),n=xl(t,e.type);t!==n&&(I(Xn,e),I(Ue,n))}function Mi(e){Xn.current===e&&(H(Ue),H(Xn))}var W=gt(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qs=[];function Oi(){for(var e=0;e<qs.length;e++)qs[e]._workInProgressVersionPrimary=null;qs.length=0}var Lr=Je.ReactCurrentDispatcher,Xs=Je.ReactCurrentBatchConfig,Pt=0,U=null,G=null,b=null,ts=!1,On=!1,Zn=0,Df=0;function se(){throw Error(x(321))}function $i(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}function Ii(e,t,n,r,s,l){if(Pt=l,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lr.current=e===null||e.memoizedState===null?Uf:Vf,e=n(r,s),On){l=0;do{if(On=!1,Zn=0,25<=l)throw Error(x(301));l+=1,b=G=null,t.updateQueue=null,Lr.current=Bf,e=n(r,s)}while(On)}if(Lr.current=ns,t=G!==null&&G.next!==null,Pt=0,b=G=U=null,ts=!1,t)throw Error(x(300));return e}function Fi(){var e=Zn!==0;return Zn=0,e}function He(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return b===null?U.memoizedState=b=e:b=b.next=e,b}function ze(){if(G===null){var e=U.alternate;e=e!==null?e.memoizedState:null}else e=G.next;var t=b===null?U.memoizedState:b.next;if(t!==null)b=t,G=e;else{if(e===null)throw Error(x(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},b===null?U.memoizedState=b=e:b=b.next=e}return b}function Jn(e,t){return typeof t=="function"?t(e):t}function Gs(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=G,s=r.baseQueue,l=n.pending;if(l!==null){if(s!==null){var o=s.next;s.next=l.next,l.next=o}r.baseQueue=s=l,n.pending=null}if(s!==null){l=s.next,r=r.baseState;var a=o=null,u=null,d=l;do{var m=d.lane;if((Pt&m)===m)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var v={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=v,o=r):u=u.next=v,U.lanes|=m,Rt|=m}d=d.next}while(d!==null&&d!==l);u===null?o=r:u.next=a,Fe(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do l=s.lane,U.lanes|=l,Rt|=l,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zs(e){var t=ze(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,l=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do l=e(l,o.action),o=o.next;while(o!==s);Fe(l,t.memoizedState)||(pe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Hu(){}function Au(e,t){var n=U,r=ze(),s=t(),l=!Fe(r.memoizedState,s);if(l&&(r.memoizedState=s,pe=!0),r=r.queue,Di(Vu.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,bn(9,Uu.bind(null,n,r,s,t),void 0,null),ee===null)throw Error(x(349));Pt&30||Wu(n,t,s)}return s}function Wu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uu(e,t,n,r){t.value=n,t.getSnapshot=r,Bu(t)&&Qu(e)}function Vu(e,t,n){return n(function(){Bu(t)&&Qu(e)})}function Bu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fe(e,n)}catch{return!0}}function Qu(e){var t=Ge(e,1);t!==null&&Ie(t,e,1,-1)}function Wo(e){var t=He();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t.queue=e,e=e.dispatch=Wf.bind(null,U,e),[t.memoizedState,e]}function bn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null,stores:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ku(){return ze().memoizedState}function Mr(e,t,n,r){var s=He();U.flags|=e,s.memoizedState=bn(1|t,n,void 0,r===void 0?null:r)}function gs(e,t,n,r){var s=ze();r=r===void 0?null:r;var l=void 0;if(G!==null){var o=G.memoizedState;if(l=o.destroy,r!==null&&$i(r,o.deps)){s.memoizedState=bn(t,n,l,r);return}}U.flags|=e,s.memoizedState=bn(1|t,n,l,r)}function Uo(e,t){return Mr(8390656,8,e,t)}function Di(e,t){return gs(2048,8,e,t)}function Yu(e,t){return gs(4,2,e,t)}function qu(e,t){return gs(4,4,e,t)}function Xu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gu(e,t,n){return n=n!=null?n.concat([e]):null,gs(4,4,Xu.bind(null,t,e),n)}function Hi(){}function Zu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$i(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ju(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$i(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function bu(e,t,n){return Pt&21?(Fe(n,t)||(n=su(),U.lanes|=n,Rt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Hf(e,t){var n=$;$=n!==0&&4>n?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{$=n,Xs.transition=r}}function ec(){return ze().memoizedState}function Af(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tc(e))nc(t,n);else if(n=Iu(e,t,n,r),n!==null){var s=ue();Ie(n,e,r,s),rc(n,t,r)}}function Wf(e,t,n){var r=ft(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tc(e))nc(t,s);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,a=l(o,n);if(s.hasEagerState=!0,s.eagerState=a,Fe(a,o)){var u=t.interleaved;u===null?(s.next=s,Pi(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Iu(e,t,s,r),n!==null&&(s=ue(),Ie(n,e,r,s),rc(n,t,r))}}function tc(e){var t=e.alternate;return e===U||t!==null&&t===U}function nc(e,t){On=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vi(e,n)}}var ns={readContext:_e,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Uf={readContext:_e,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Uo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Xu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Af.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:Wo,useDebugValue:Hi,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=Wo(!1),t=e[0];return e=Hf.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,s=He();if(A){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),ee===null)throw Error(x(349));Pt&30||Wu(r,t,n)}s.memoizedState=n;var l={value:n,getSnapshot:t};return s.queue=l,Uo(Vu.bind(null,r,l,e),[e]),r.flags|=2048,bn(9,Uu.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=He(),t=ee.identifierPrefix;if(A){var n=Ke,r=Qe;n=(r&~(1<<32-$e(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Df++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Vf={readContext:_e,useCallback:Zu,useContext:_e,useEffect:Di,useImperativeHandle:Gu,useInsertionEffect:Yu,useLayoutEffect:qu,useMemo:Ju,useReducer:Gs,useRef:Ku,useState:function(){return Gs(Jn)},useDebugValue:Hi,useDeferredValue:function(e){var t=ze();return bu(t,G.memoizedState,e)},useTransition:function(){var e=Gs(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Au,useId:ec,unstable_isNewReconciler:!1},Bf={readContext:_e,useCallback:Zu,useContext:_e,useEffect:Di,useImperativeHandle:Gu,useInsertionEffect:Yu,useLayoutEffect:qu,useMemo:Ju,useReducer:Zs,useRef:Ku,useState:function(){return Zs(Jn)},useDebugValue:Hi,useDeferredValue:function(e){var t=ze();return G===null?t.memoizedState=e:bu(t,G.memoizedState,e)},useTransition:function(){var e=Zs(Jn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Au,useId:ec,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Al(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ys={isMounted:function(e){return(e=e._reactInternals)?It(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ue(),s=ft(e),l=Ye(r,s);l.payload=t,n!=null&&(l.callback=n),t=ct(e,l,s),t!==null&&(Ie(t,e,s,r),Rr(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ue(),s=ft(e),l=Ye(r,s);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=ct(e,l,s),t!==null&&(Ie(t,e,s,r),Rr(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ue(),r=ft(e),s=Ye(n,r);s.tag=2,t!=null&&(s.callback=t),t=ct(e,s,r),t!==null&&(Ie(t,e,r,n),Rr(t,e,r))}};function Vo(e,t,n,r,s,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Qn(n,r)||!Qn(s,l):!0}function sc(e,t,n){var r=!1,s=mt,l=t.contextType;return typeof l=="object"&&l!==null?l=_e(l):(s=me(t)?_t:oe.current,r=t.contextTypes,l=(r=r!=null)?ln(e,s):mt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=l),t}function Bo(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function Wl(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Ri(e);var l=t.contextType;typeof l=="object"&&l!==null?s.context=_e(l):(l=me(t)?_t:oe.current,s.context=ln(e,l)),s.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Al(e,t,l,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ys.enqueueReplaceState(s,s.state,null),br(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cn(e,t){try{var n="",r=t;do n+=gd(r),r=r.return;while(r);var s=n}catch(l){s=`
|
|
39
39
|
Error generating stack: `+l.message+`
|
|
40
|
-
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function Js(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qf=typeof WeakMap=="function"?WeakMap:Map;function lc(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ss||(ss=!0,Zl=r),Wl(e,t)},n}function ic(e,t,n){n=Ye(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Wl(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Wl(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Bo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qf;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=lp.bind(null,e,t,n),t.then(e,e))}function Qo(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ko(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ye(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var Kf=Je.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?$u(t,null,n,r):an(t,e.child,n,r)}function Yo(e,t,n,r,s){n=n.render;var l=t.ref;return nn(t,s),r=$i(e,t,n,r,l,s),n=Ii(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ze(e,t,s)):(A&&n&&Si(t),t.flags|=1,ae(e,t,r,s),t.child)}function qo(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Ki(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,oc(e,t,l,r,s)):(e=Fr(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Qn,n(o,r)&&e.ref===t.ref)return Ze(e,t,s)}return t.flags|=1,e=pt(l,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(Qn(l,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=l,(e.lanes&s)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Ze(e,t,s)}return Ul(e,t,n,r,s)}function ac(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Zt,ye),ye|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(Zt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,I(Zt,ye),ye|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,I(Zt,ye),ye|=r;return ae(e,t,s,n),t.child}function uc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ul(e,t,n,r,s){var l=me(n)?_t:oe.current;return l=ln(t,l),nn(t,s),n=$i(e,t,n,r,l,s),r=Ii(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ze(e,t,s)):(A&&r&&Si(t),t.flags|=1,ae(e,t,n,s),t.child)}function Xo(e,t,n,r,s){if(me(n)){var l=!0;qr(t)}else l=!1;if(nn(t,s),t.stateNode===null)Or(e,t),sc(t,n,r),Al(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=_e(d):(d=me(n)?_t:oe.current,d=ln(t,d));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==d)&&Vo(t,o,r,d),tt=!1;var h=t.memoizedState;o.state=h,br(t,r,o,s),u=t.memoizedState,a!==r||h!==u||he.current||tt?(typeof m=="function"&&(Hl(t,n,m,r),u=t.memoizedState),(a=tt||Uo(t,n,a,r,h,u,d))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Fu(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Le(t.type,a),o.props=d,v=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=_e(u):(u=me(n)?_t:oe.current,u=ln(t,u));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||h!==u)&&Vo(t,o,r,u),tt=!1,h=t.memoizedState,o.state=h,br(t,r,o,s);var w=t.memoizedState;a!==v||h!==w||he.current||tt?(typeof y=="function"&&(Hl(t,n,y,r),w=t.memoizedState),(d=tt||Uo(t,n,d,r,h,w,u)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vl(e,t,n,r,l,s)}function Vl(e,t,n,r,s,l){uc(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Oo(t,n,!1),Ze(e,t,l);r=t.stateNode,Kf.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=an(t,e.child,null,l),t.child=an(t,null,a,l)):ae(e,t,a,l),t.memoizedState=r.state,s&&Oo(t,n,!0),t.child}function cc(e){var t=e.stateNode;t.pendingContext?Mo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(e,t.context,!1),Ri(e,t.containerInfo)}function Go(e,t,n,r,s){return on(),Ci(s),t.flags|=256,ae(e,t,n,r),t.child}var Bl={dehydrated:null,treeContext:null,retryLane:0};function Ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function dc(e,t,n){var r=t.pendingProps,s=W.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),I(W,s&1),e===null)return Fl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=ks(o,r,0,null),e=Tt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ql(n),t.memoizedState=Bl,e):Hi(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Yf(e,t,o,r,a,s,n);if(l){l=r.fallback,o=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=pt(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=pt(a,l):(l=Tt(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Ql(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Bl,r}return l=e.child,e=l.sibling,r=pt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Hi(e,t){return t=ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Ci(r),an(t,e.child,null,n),e=Hi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yf(e,t,n,r,s,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Js(Error(x(422))),jr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=ks({mode:"visible",children:r.children},s,0,null),l=Tt(l,s,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&an(t,e.child,null,o),t.child.memoizedState=Ql(o),t.memoizedState=Bl,l);if(!(t.mode&1))return jr(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(x(419)),r=Js(l,r,void 0),jr(e,t,o,r)}if(a=(o&e.childLanes)!==0,pe||a){if(r=ee,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Ge(e,s),Ie(r,e,s,-1))}return Qi(),r=Js(Error(x(421))),jr(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=ip.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,xe=ut(s.nextSibling),we=t,A=!0,Oe=null,e!==null&&(Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,Qe=e.id,Ke=e.overflow,zt=t),t=Hi(t,r.children),t.flags|=4096,t)}function Zo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dl(e.return,t,n)}function bs(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function fc(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(ae(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zo(e,n,t);else if(e.tag===19)Zo(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(I(W,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&es(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),bs(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&es(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}bs(t,!0,n,null,l);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qf(e,t,n){switch(t.tag){case 3:cc(t),on();break;case 5:Du(t);break;case 1:me(t.type)&&qr(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;I(Zr,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?dc(e,t,n):(I(W,W.current&1),e=Ze(e,t,n),e!==null?e.sibling:null);I(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fc(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),I(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,ac(e,t,n)}return Ze(e,t,n)}var pc,Kl,hc,mc;pc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kl=function(){};hc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ct(Ue.current);var l=null;switch(n){case"input":s=hl(e,s),r=hl(e,r),l=[];break;case"select":s=V({},s,{value:void 0}),r=V({},r,{value:void 0}),l=[];break;case"textarea":s=gl(e,s),r=gl(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}xl(n,r);var o;n=null;for(d in s)if(!r.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var a=s[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Dn.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var u=r[d];if(a=s!=null?s[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Dn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&F("scroll",e),l||a===u||(l=[])):(l=l||[]).push(d,u))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}};mc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!A)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xf(e,t,n){var r=t.pendingProps;switch(Ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return me(t.type)&&Yr(),le(t),null;case 3:return r=t.stateNode,un(),H(he),H(oe),Mi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oe!==null&&(ei(Oe),Oe=null))),Kl(e,t),le(t),null;case 5:Li(t);var s=Ct(Gn.current);if(n=t.type,e!==null&&t.stateNode!=null)hc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return le(t),null}if(e=Ct(Ue.current),wr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ae]=t,r[qn]=l,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(s=0;s<_n.length;s++)F(_n[s],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":lo(r,l),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},F("invalid",r);break;case"textarea":oo(r,l),F("invalid",r)}xl(n,l),s=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),s=["children",""+a]):Dn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&F("scroll",r)}switch(n){case"input":dr(r),io(r,l,!0);break;case"textarea":dr(r),ao(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Kr)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Va(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ae]=t,e[qn]=r,pc(e,t,!1,!1),t.stateNode=e;e:{switch(o=wl(n,r),n){case"dialog":F("cancel",e),F("close",e),s=r;break;case"iframe":case"object":case"embed":F("load",e),s=r;break;case"video":case"audio":for(s=0;s<_n.length;s++)F(_n[s],e);s=r;break;case"source":F("error",e),s=r;break;case"img":case"image":case"link":F("error",e),F("load",e),s=r;break;case"details":F("toggle",e),s=r;break;case"input":lo(e,r),s=hl(e,r),F("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=V({},r,{value:void 0}),F("invalid",e);break;case"textarea":oo(e,r),s=gl(e,r),F("invalid",e);break;default:s=r}xl(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?Ka(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ba(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hn(e,u):typeof u=="number"&&Hn(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Dn.hasOwnProperty(l)?u!=null&&l==="onScroll"&&F("scroll",e):u!=null&&ui(e,l,u,o))}switch(n){case"input":dr(e),io(e,r,!1);break;case"textarea":dr(e),ao(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Jt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return le(t),null;case 6:if(e&&t.stateNode!=null)mc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Ct(Gn.current),Ct(Ue.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(l=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:xr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return le(t),null;case 13:if(H(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(A&&xe!==null&&t.mode&1&&!(t.flags&128))Mu(),on(),t.flags|=98560,l=!1;else if(l=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(x(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(x(317));l[Ae]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;le(t),l=!1}else Oe!==null&&(ei(Oe),Oe=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?Z===0&&(Z=3):Qi())),t.updateQueue!==null&&(t.flags|=4),le(t),null);case 4:return un(),Kl(e,t),e===null&&Kn(t.stateNode.containerInfo),le(t),null;case 10:return _i(t.type._context),le(t),null;case 17:return me(t.type)&&Yr(),le(t),null;case 19:if(H(W),l=t.memoizedState,l===null)return le(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Sn(l,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=es(e),o!==null){for(t.flags|=128,Sn(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(W,W.current&1|2),t.child}e=e.sibling}l.tail!==null&&Y()>dn&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304)}else{if(!r)if(e=es(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!A)return le(t),null}else 2*Y()-l.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Gf(e,t){switch(Ni(t),t.tag){case 1:return me(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),H(he),H(oe),Mi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Li(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return un(),null;case 10:return _i(t.type._context),null;case 22:case 23:return Bi(),null;case 24:return null;default:return null}}var Sr=!1,ie=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,S=null;function Gt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function Yl(e,t,n){try{n()}catch(r){B(e,t,r)}}var Jo=!1;function Jf(e,t){if(Pl=Vr,e=wu(),ji(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,d=0,m=0,v=e,h=null;t:for(;;){for(var y;v!==n||s!==0&&v.nodeType!==3||(a=o+s),v!==l||r!==0&&v.nodeType!==3||(u=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(y=v.firstChild)!==null;)h=v,v=y;for(;;){if(v===e)break t;if(h===n&&++d===s&&(a=o),h===l&&++m===r&&(u=o),(y=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rl={focusedElem:e,selectionRange:n},Vr=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Le(t.type,k),O);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(g){B(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return w=Jo,Jo=!1,w}function $n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&Yl(t,n,l)}s=s.next}while(s!==r)}}function xs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ql(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vc(e){var t=e.alternate;t!==null&&(e.alternate=null,vc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[qn],delete t[Ol],delete t[Of],delete t[$f])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gc(e){return e.tag===5||e.tag===3||e.tag===4}function bo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Xl(e,t,n),e=e.sibling;e!==null;)Xl(e,t,n),e=e.sibling}function Gl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gl(e,t,n),e=e.sibling;e!==null;)Gl(e,t,n),e=e.sibling}var te=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)yc(e,t,n),n=n.sibling}function yc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(ds,n)}catch{}switch(n.tag){case 5:ie||Gt(n,t);case 6:var r=te,s=Me;te=null,be(e,t,n),te=r,Me=s,te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?Ks(e.parentNode,n):e.nodeType===1&&Ks(e,n),Vn(e)):Ks(te,n.stateNode));break;case 4:r=te,s=Me,te=n.stateNode.containerInfo,Me=!0,be(e,t,n),te=r,Me=s;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Yl(n,t,o),s=s.next}while(s!==r)}be(e,t,n);break;case 1:if(!ie&&(Gt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){B(n,t,a)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,be(e,t,n),ie=r):be(e,t,n);break;default:be(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zf),t.forEach(function(r){var s=op.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:te=a.stateNode,Me=!1;break e;case 3:te=a.stateNode.containerInfo,Me=!0;break e;case 4:te=a.stateNode.containerInfo,Me=!0;break e}a=a.return}if(te===null)throw Error(x(160));yc(l,o,s),te=null,Me=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(d){B(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xc(t,e),t=t.sibling}function xc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Re(t,e),De(e),r&4){try{$n(3,e,e.return),xs(3,e)}catch(k){B(e,e.return,k)}try{$n(5,e,e.return)}catch(k){B(e,e.return,k)}}break;case 1:Re(t,e),De(e),r&512&&n!==null&&Gt(n,n.return);break;case 5:if(Re(t,e),De(e),r&512&&n!==null&&Gt(n,n.return),e.flags&32){var s=e.stateNode;try{Hn(s,"")}catch(k){B(e,e.return,k)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Wa(s,l),wl(a,o);var d=wl(a,l);for(o=0;o<u.length;o+=2){var m=u[o],v=u[o+1];m==="style"?Ka(s,v):m==="dangerouslySetInnerHTML"?Ba(s,v):m==="children"?Hn(s,v):ui(s,m,v,d)}switch(a){case"input":ml(s,l);break;case"textarea":Ua(s,l);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?Jt(s,!!l.multiple,y,!1):h!==!!l.multiple&&(l.defaultValue!=null?Jt(s,!!l.multiple,l.defaultValue,!0):Jt(s,!!l.multiple,l.multiple?[]:"",!1))}s[qn]=l}catch(k){B(e,e.return,k)}}break;case 6:if(Re(t,e),De(e),r&4){if(e.stateNode===null)throw Error(x(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(k){B(e,e.return,k)}}break;case 3:if(Re(t,e),De(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vn(t.containerInfo)}catch(k){B(e,e.return,k)}break;case 4:Re(t,e),De(e);break;case 13:Re(t,e),De(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Ui=Y())),r&4&&ea(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ie=(d=ie)||m,Re(t,e),ie=d):Re(t,e),De(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(S=e,m=e.child;m!==null;){for(v=S=m;S!==null;){switch(h=S,y=h.child,h.tag){case 0:case 11:case 14:case 15:$n(4,h,h.return);break;case 1:Gt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){B(r,n,k)}}break;case 5:Gt(h,h.return);break;case 22:if(h.memoizedState!==null){na(v);continue}}y!==null?(y.return=h,S=y):na(v)}m=m.sibling}e:for(m=null,v=e;;){if(v.tag===5){if(m===null){m=v;try{s=v.stateNode,d?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=v.stateNode,u=v.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Qa("display",o))}catch(k){B(e,e.return,k)}}}else if(v.tag===6){if(m===null)try{v.stateNode.nodeValue=d?"":v.memoizedProps}catch(k){B(e,e.return,k)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;m===v&&(m=null),v=v.return}m===v&&(m=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Re(t,e),De(e),r&4&&ea(e);break;case 21:break;default:Re(t,e),De(e)}}function De(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Hn(s,""),r.flags&=-33);var l=bo(e);Gl(e,l,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=bo(e);Xl(e,a,o);break;default:throw Error(x(161))}}catch(u){B(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bf(e,t,n){S=e,wc(e)}function wc(e,t,n){for(var r=(e.mode&1)!==0;S!==null;){var s=S,l=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Sr;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||ie;a=Sr;var d=ie;if(Sr=o,(ie=u)&&!d)for(S=s;S!==null;)o=S,u=o.child,o.tag===22&&o.memoizedState!==null?ra(s):u!==null?(u.return=o,S=u):ra(s);for(;l!==null;)S=l,wc(l),l=l.sibling;S=s,Sr=a,ie=d}ta(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,S=l):ta(e)}}function ta(e){for(;S!==null;){var t=S;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ie||xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ie)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ho(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ho(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var v=m.dehydrated;v!==null&&Vn(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ie||t.flags&512&&ql(t)}catch(h){B(t,t.return,h)}}if(t===e){S=null;break}if(n=t.sibling,n!==null){n.return=t.return,S=n;break}S=t.return}}function na(e){for(;S!==null;){var t=S;if(t===e){S=null;break}var n=t.sibling;if(n!==null){n.return=t.return,S=n;break}S=t.return}}function ra(e){for(;S!==null;){var t=S;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xs(4,t)}catch(u){B(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){B(t,s,u)}}var l=t.return;try{ql(t)}catch(u){B(t,l,u)}break;case 5:var o=t.return;try{ql(t)}catch(u){B(t,o,u)}}}catch(u){B(t,t.return,u)}if(t===e){S=null;break}var a=t.sibling;if(a!==null){a.return=t.return,S=a;break}S=t.return}}var ep=Math.ceil,rs=Je.ReactCurrentDispatcher,Ai=Je.ReactCurrentOwner,Te=Je.ReactCurrentBatchConfig,M=0,ee=null,X=null,ne=0,ye=0,Zt=gt(0),Z=0,er=null,Rt=0,ws=0,Wi=0,In=null,fe=null,Ui=0,dn=1/0,Ve=null,ss=!1,Zl=null,dt=null,Nr=!1,lt=null,ls=0,Fn=0,Jl=null,$r=-1,Ir=0;function ue(){return M&6?Y():$r!==-1?$r:$r=Y()}function ft(e){return e.mode&1?M&2&&ne!==0?ne&-ne:Ff.transition!==null?(Ir===0&&(Ir=su()),Ir):(e=$,e!==0||(e=window.event,e=e===void 0?16:du(e.type)),e):1}function Ie(e,t,n,r){if(50<Fn)throw Fn=0,Jl=null,Error(x(185));rr(e,n,r),(!(M&2)||e!==ee)&&(e===ee&&(!(M&2)&&(ws|=n),Z===4&&rt(e,ne)),ve(e,r),n===1&&M===0&&!(t.mode&1)&&(dn=Y()+500,vs&&yt()))}function ve(e,t){var n=e.callbackNode;Id(e,t);var r=Ur(e,e===ee?ne:0);if(r===0)n!==null&&fo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fo(n),t===1)e.tag===0?If(sa.bind(null,e)):Pu(sa.bind(null,e)),Lf(function(){!(M&6)&&yt()}),n=null;else{switch(lu(r)){case 1:n=hi;break;case 4:n=nu;break;case 16:n=Wr;break;case 536870912:n=ru;break;default:n=Wr}n=_c(n,kc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kc(e,t){if($r=-1,Ir=0,M&6)throw Error(x(327));var n=e.callbackNode;if(rn()&&e.callbackNode!==n)return null;var r=Ur(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=is(e,r);else{t=r;var s=M;M|=2;var l=Sc();(ee!==e||ne!==t)&&(Ve=null,dn=Y()+500,Et(e,t));do try{rp();break}catch(a){jc(e,a)}while(!0);Ti(),rs.current=l,M=s,X!==null?t=0:(ee=null,ne=0,t=Z)}if(t!==0){if(t===2&&(s=Cl(e),s!==0&&(r=s,t=bl(e,s))),t===1)throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;if(t===6)rt(e,r);else{if(s=e.current.alternate,!(r&30)&&!tp(s)&&(t=is(e,r),t===2&&(l=Cl(e),l!==0&&(r=l,t=bl(e,l))),t===1))throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:jt(e,fe,Ve);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Ui+500-Y(),10<t)){if(Ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ml(jt.bind(null,e,fe,Ve),t);break}jt(e,fe,Ve);break;case 4:if(rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-$e(r);l=1<<o,o=t[o],o>s&&(s=o),r&=~l}if(r=s,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ep(r/1960))-r,10<r){e.timeoutHandle=Ml(jt.bind(null,e,fe,Ve),r);break}jt(e,fe,Ve);break;case 5:jt(e,fe,Ve);break;default:throw Error(x(329))}}}return ve(e,Y()),e.callbackNode===n?kc.bind(null,e):null}function bl(e,t){var n=In;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=is(e,t),e!==2&&(t=fe,fe=n,t!==null&&ei(t)),e}function ei(e){fe===null?fe=e:fe.push.apply(fe,e)}function tp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],l=s.getSnapshot;s=s.value;try{if(!Fe(l(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rt(e,t){for(t&=~Wi,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$e(t),r=1<<n;e[n]=-1,t&=~r}}function sa(e){if(M&6)throw Error(x(327));rn();var t=Ur(e,0);if(!(t&1))return ve(e,Y()),null;var n=is(e,t);if(e.tag!==0&&n===2){var r=Cl(e);r!==0&&(t=r,n=bl(e,r))}if(n===1)throw n=er,Et(e,0),rt(e,t),ve(e,Y()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jt(e,fe,Ve),ve(e,Y()),null}function Vi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(dn=Y()+500,vs&&yt())}}function Lt(e){lt!==null&<.tag===0&&!(M&6)&&rn();var t=M;M|=1;var n=Te.transition,r=$;try{if(Te.transition=null,$=1,e)return e()}finally{$=r,Te.transition=n,M=t,!(M&6)&&yt()}}function Bi(){ye=Zt.current,H(Zt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Rf(n)),X!==null)for(n=X.return;n!==null;){var r=n;switch(Ni(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yr();break;case 3:un(),H(he),H(oe),Mi();break;case 5:Li(r);break;case 4:un();break;case 13:H(W);break;case 19:H(W);break;case 10:_i(r.type._context);break;case 22:case 23:Bi()}n=n.return}if(ee=e,X=e=pt(e.current,null),ne=ye=t,Z=0,er=null,Wi=ws=Rt=0,fe=In=null,Nt!==null){for(t=0;t<Nt.length;t++)if(n=Nt[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=s,r.next=o}n.pending=r}Nt=null}return e}function jc(e,t){do{var n=X;try{if(Ti(),Lr.current=ns,ts){for(var r=U.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ts=!1}if(Pt=0,b=G=U=null,On=!1,Zn=0,Ai.current=null,n===null||n.return===null){Z=1,er=t,X=null;break}e:{var l=e,o=n.return,a=n,u=t;if(t=ne,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,m=a,v=m.tag;if(!(m.mode&1)&&(v===0||v===11||v===15)){var h=m.alternate;h?(m.updateQueue=h.updateQueue,m.memoizedState=h.memoizedState,m.lanes=h.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Qo(o);if(y!==null){y.flags&=-257,Ko(y,o,a,l,t),y.mode&1&&Bo(l,d,t),t=y,u=d;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if(!(t&1)){Bo(l,d,t),Qi();break e}u=Error(x(426))}}else if(A&&a.mode&1){var O=Qo(o);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Ko(O,o,a,l,t),Ci(cn(u,a));break e}}l=u=cn(u,a),Z!==4&&(Z=2),In===null?In=[l]:In.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=lc(l,u,t);Do(l,f);break e;case 1:a=u;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(dt===null||!dt.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=ic(l,a,t);Do(l,g);break e}}l=l.return}while(l!==null)}Cc(n)}catch(j){t=j,X===n&&n!==null&&(X=n=n.return);continue}break}while(!0)}function Sc(){var e=rs.current;return rs.current=ns,e===null?ns:e}function Qi(){(Z===0||Z===3||Z===2)&&(Z=4),ee===null||!(Rt&268435455)&&!(ws&268435455)||rt(ee,ne)}function is(e,t){var n=M;M|=2;var r=Sc();(ee!==e||ne!==t)&&(Ve=null,Et(e,t));do try{np();break}catch(s){jc(e,s)}while(!0);if(Ti(),M=n,rs.current=r,X!==null)throw Error(x(261));return ee=null,ne=0,Z}function np(){for(;X!==null;)Nc(X)}function rp(){for(;X!==null&&!Td();)Nc(X)}function Nc(e){var t=Tc(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?Cc(e):X=t,Ai.current=null}function Cc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gf(n,t),n!==null){n.flags&=32767,X=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,X=null;return}}else if(n=Xf(n,t,ye),n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);Z===0&&(Z=5)}function jt(e,t,n){var r=$,s=Te.transition;try{Te.transition=null,$=1,sp(e,t,n,r)}finally{Te.transition=s,$=r}return null}function sp(e,t,n,r){do rn();while(lt!==null);if(M&6)throw Error(x(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Fd(e,l),e===ee&&(X=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nr||(Nr=!0,_c(Wr,function(){return rn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Te.transition,Te.transition=null;var o=$;$=1;var a=M;M|=4,Ai.current=null,Jf(e,n),xc(n,e),Nf(Rl),Vr=!!Pl,Rl=Pl=null,e.current=n,bf(n),_d(),M=a,$=o,Te.transition=l}else e.current=n;if(Nr&&(Nr=!1,lt=e,ls=s),l=e.pendingLanes,l===0&&(dt=null),Rd(n.stateNode),ve(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ss)throw ss=!1,e=Zl,Zl=null,e;return ls&1&&e.tag!==0&&rn(),l=e.pendingLanes,l&1?e===Jl?Fn++:(Fn=0,Jl=e):Fn=0,yt(),null}function rn(){if(lt!==null){var e=lu(ls),t=Te.transition,n=$;try{if(Te.transition=null,$=16>e?16:e,lt===null)var r=!1;else{if(e=lt,lt=null,ls=0,M&6)throw Error(x(331));var s=M;for(M|=4,S=e.current;S!==null;){var l=S,o=l.child;if(S.flags&16){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(S=d;S!==null;){var m=S;switch(m.tag){case 0:case 11:case 15:$n(8,m,l)}var v=m.child;if(v!==null)v.return=m,S=v;else for(;S!==null;){m=S;var h=m.sibling,y=m.return;if(vc(m),m===d){S=null;break}if(h!==null){h.return=y,S=h;break}S=y}}}var w=l.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}S=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,S=o;else e:for(;S!==null;){if(l=S,l.flags&2048)switch(l.tag){case 0:case 11:case 15:$n(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,S=f;break e}S=l.return}}var c=e.current;for(S=c;S!==null;){o=S;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,S=p;else e:for(o=c;S!==null;){if(a=S,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xs(9,a)}}catch(j){B(a,a.return,j)}if(a===o){S=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,S=g;break e}S=a.return}}if(M=s,yt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(ds,e)}catch{}r=!0}return r}finally{$=n,Te.transition=t}}return!1}function la(e,t,n){t=cn(n,t),t=lc(e,t,1),e=ct(e,t,1),t=ue(),e!==null&&(rr(e,1,t),ve(e,t))}function B(e,t,n){if(e.tag===3)la(e,e,n);else for(;t!==null;){if(t.tag===3){la(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(dt===null||!dt.has(r))){e=cn(n,e),e=ic(t,e,1),t=ct(t,e,1),e=ue(),t!==null&&(rr(t,1,e),ve(t,e));break}}t=t.return}}function lp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ue(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(Z===4||Z===3&&(ne&130023424)===ne&&500>Y()-Ui?Et(e,0):Wi|=n),ve(e,t)}function Ec(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ue();e=Ge(e,t),e!==null&&(rr(e,t,n),ve(e,n))}function ip(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ec(e,n)}function op(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),Ec(e,n)}var Tc;Tc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,qf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,A&&t.flags&1048576&&Ru(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var s=ln(t,oe.current);nn(t,n),s=$i(null,t,r,e,s,n);var l=Ii();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(l=!0,qr(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Pi(t),s.updater=ys,t.stateNode=s,s._reactInternals=t,Al(t,r,e,n),t=Vl(null,t,r,!0,l,n)):(t.tag=0,A&&l&&Si(t),ae(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=up(r),e=Le(r,e),s){case 0:t=Ul(null,t,r,e,n);break e;case 1:t=Xo(null,t,r,e,n);break e;case 11:t=Yo(null,t,r,e,n);break e;case 14:t=qo(null,t,r,Le(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Ul(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Xo(e,t,r,s,n);case 3:e:{if(cc(t),e===null)throw Error(x(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Fu(e,t),br(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=cn(Error(x(423)),t),t=Go(e,t,r,n,s);break e}else if(r!==s){s=cn(Error(x(424)),t),t=Go(e,t,r,n,s);break e}else for(xe=ut(t.stateNode.containerInfo.firstChild),we=t,A=!0,Oe=null,n=$u(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===s){t=Ze(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Du(t),e===null&&Fl(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,Ll(r,s)?o=null:l!==null&&Ll(r,l)&&(t.flags|=32),uc(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return dc(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Yo(e,t,r,s,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,o=s.value,I(Zr,r._currentValue),r._currentValue=o,l!==null)if(Fe(l.value,o)){if(l.children===s.children&&!he.current){t=Ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Ye(-1,n&-n),u.tag=2;var d=l.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?u.next=u:(u.next=m.next,m.next=u),d.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Dl(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(x(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Dl(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}ae(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,nn(t,n),s=_e(s),r=r(s),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,s=Le(r,t.pendingProps),s=Le(r.type,s),qo(e,t,r,s,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Or(e,t),t.tag=1,me(r)?(e=!0,qr(t)):e=!1,nn(t,n),sc(t,r,s),Al(t,r,s,n),Vl(null,t,r,!0,e,n);case 19:return fc(e,t,n);case 22:return ac(e,t,n)}throw Error(x(156,t.tag))};function _c(e,t){return tu(e,t)}function ap(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new ap(e,t,n,r)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function up(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===di)return 11;if(e===fi)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,s,l){var o=2;if(r=e,typeof e=="function")Ki(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wt:return Tt(n.children,s,l,t);case ci:o=8,s|=8;break;case cl:return e=Ee(12,n,t,s|2),e.elementType=cl,e.lanes=l,e;case dl:return e=Ee(13,n,t,s),e.elementType=dl,e.lanes=l,e;case fl:return e=Ee(19,n,t,s),e.elementType=fl,e.lanes=l,e;case Da:return ks(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ia:o=10;break e;case Fa:o=9;break e;case di:o=11;break e;case fi:o=14;break e;case et:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function Tt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function ks(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Da,e.lanes=n,e.stateNode={isHidden:!1},e}function el(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function tl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cp(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$s(0),this.expirationTimes=$s(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Yi(e,t,n,r,s,l,o,a,u){return e=new cp(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ee(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(l),e}function dp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zc(e){if(!e)return mt;e=e._reactInternals;e:{if(It(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(me(n))return zu(e,n,t)}return t}function Pc(e,t,n,r,s,l,o,a,u){return e=Yi(n,r,!0,e,s,l,o,a,u),e.context=zc(null),n=e.current,r=ue(),s=ft(n),l=Ye(r,s),l.callback=t??null,ct(n,l,s),e.current.lanes=s,rr(e,s,r),ve(e,r),e}function js(e,t,n,r){var s=t.current,l=ue(),o=ft(s);return n=zc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ye(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(s,t,o),e!==null&&(Ie(e,s,o,l),Rr(e,s,o)),o}function os(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qi(e,t){ia(e,t),(e=e.alternate)&&ia(e,t)}function fp(){return null}var Rc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xi(e){this._internalRoot=e}Ss.prototype.render=Xi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));js(e,t,null,null)};Ss.prototype.unmount=Xi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lt(function(){js(null,e,null,null)}),t[Xe]=null}};function Ss(e){this._internalRoot=e}Ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=au();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nt.length&&t!==0&&t<nt[n].priority;n++);nt.splice(n,0,e),n===0&&cu(e)}};function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ns(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function oa(){}function pp(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var d=os(o);l.call(d)}}var o=Pc(t,r,e,0,null,!1,!1,"",oa);return e._reactRootContainer=o,e[Xe]=o.current,Kn(e.nodeType===8?e.parentNode:e),Lt(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var d=os(u);a.call(d)}}var u=Yi(e,0,!1,null,null,!1,!1,"",oa);return e._reactRootContainer=u,e[Xe]=u.current,Kn(e.nodeType===8?e.parentNode:e),Lt(function(){js(t,u,n,r)}),u}function Cs(e,t,n,r,s){var l=n._reactRootContainer;if(l){var o=l;if(typeof s=="function"){var a=s;s=function(){var u=os(o);a.call(u)}}js(t,o,e,s)}else o=pp(n,t,e,s,r);return os(o)}iu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tn(t.pendingLanes);n!==0&&(mi(t,n|1),ve(t,Y()),!(M&6)&&(dn=Y()+500,yt()))}break;case 13:Lt(function(){var r=Ge(e,1);if(r!==null){var s=ue();Ie(r,e,1,s)}}),qi(e,1)}};vi=function(e){if(e.tag===13){var t=Ge(e,134217728);if(t!==null){var n=ue();Ie(t,e,134217728,n)}qi(e,134217728)}};ou=function(e){if(e.tag===13){var t=ft(e),n=Ge(e,t);if(n!==null){var r=ue();Ie(n,e,t,r)}qi(e,t)}};au=function(){return $};uu=function(e,t){var n=$;try{return $=e,t()}finally{$=n}};jl=function(e,t,n){switch(t){case"input":if(ml(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ms(r);if(!s)throw Error(x(90));Aa(r),ml(r,s)}}}break;case"textarea":Ua(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}};Xa=Vi;Ga=Lt;var hp={usingClientEntryPoint:!1,Events:[lr,Qt,ms,Ya,qa,Vi]},Nn={findFiberByHostInstance:St,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mp={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Je.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ba(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||fp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{ds=Cr.inject(mp),We=Cr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gi(t))throw Error(x(200));return dp(e,t,null,n)};je.createRoot=function(e,t){if(!Gi(e))throw Error(x(299));var n=!1,r="",s=Rc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Yi(e,1,!1,null,null,n,!1,r,s),e[Xe]=t.current,Kn(e.nodeType===8?e.parentNode:e),new Xi(t)};je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=ba(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Lt(e)};je.hydrate=function(e,t,n){if(!Ns(t))throw Error(x(200));return Cs(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Gi(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",o=Rc;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Pc(t,null,e,1,n??null,s,!1,l,o),e[Xe]=t.current,Kn(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ss(t)};je.render=function(e,t,n){if(!Ns(t))throw Error(x(200));return Cs(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!Ns(e))throw Error(x(40));return e._reactRootContainer?(Lt(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[Xe]=null})}),!0):!1};je.unstable_batchedUpdates=Vi;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ns(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Cs(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function Lc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lc)}catch(e){console.error(e)}}Lc(),La.exports=je;var vp=La.exports,aa=vp;al.createRoot=aa.createRoot,al.hydrateRoot=aa.hydrateRoot;/**
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:s,digest:null}}function Js(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ul(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qf=typeof WeakMap=="function"?WeakMap:Map;function lc(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ss||(ss=!0,Jl=r),Ul(e,t)},n}function ic(e,t,n){n=Ye(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ul(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Ul(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Qo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qf;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=lp.bind(null,e,t,n),t.then(e,e))}function Ko(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Yo(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ye(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var Kf=Je.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?$u(t,null,n,r):an(t,e.child,n,r)}function qo(e,t,n,r,s){n=n.render;var l=t.ref;return nn(t,s),r=Ii(e,t,n,r,l,s),n=Fi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ze(e,t,s)):(A&&n&&Ni(t),t.flags|=1,ae(e,t,r,s),t.child)}function Xo(e,t,n,r,s){if(e===null){var l=n.type;return typeof l=="function"&&!Yi(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,oc(e,t,l,r,s)):(e=Fr(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&s)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Qn,n(o,r)&&e.ref===t.ref)return Ze(e,t,s)}return t.flags|=1,e=pt(l,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,s){if(e!==null){var l=e.memoizedProps;if(Qn(l,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=l,(e.lanes&s)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Ze(e,t,s)}return Vl(e,t,n,r,s)}function ac(e,t,n){var r=t.pendingProps,s=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Zt,ye),ye|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(Zt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,I(Zt,ye),ye|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,I(Zt,ye),ye|=r;return ae(e,t,s,n),t.child}function uc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vl(e,t,n,r,s){var l=me(n)?_t:oe.current;return l=ln(t,l),nn(t,s),n=Ii(e,t,n,r,l,s),r=Fi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ze(e,t,s)):(A&&r&&Ni(t),t.flags|=1,ae(e,t,n,s),t.child)}function Go(e,t,n,r,s){if(me(n)){var l=!0;qr(t)}else l=!1;if(nn(t,s),t.stateNode===null)Or(e,t),sc(t,n,r),Wl(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=_e(d):(d=me(n)?_t:oe.current,d=ln(t,d));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";v||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==d)&&Bo(t,o,r,d),tt=!1;var h=t.memoizedState;o.state=h,br(t,r,o,s),u=t.memoizedState,a!==r||h!==u||he.current||tt?(typeof m=="function"&&(Al(t,n,m,r),u=t.memoizedState),(a=tt||Vo(t,n,a,r,h,u,d))?(v||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=d,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Fu(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Le(t.type,a),o.props=d,v=t.pendingProps,h=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=_e(u):(u=me(n)?_t:oe.current,u=ln(t,u));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||h!==u)&&Bo(t,o,r,u),tt=!1,h=t.memoizedState,o.state=h,br(t,r,o,s);var w=t.memoizedState;a!==v||h!==w||he.current||tt?(typeof y=="function"&&(Al(t,n,y,r),w=t.memoizedState),(d=tt||Vo(t,n,d,r,h,w,u)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Bl(e,t,n,r,l,s)}function Bl(e,t,n,r,s,l){uc(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&$o(t,n,!1),Ze(e,t,l);r=t.stateNode,Kf.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=an(t,e.child,null,l),t.child=an(t,null,a,l)):ae(e,t,a,l),t.memoizedState=r.state,s&&$o(t,n,!0),t.child}function cc(e){var t=e.stateNode;t.pendingContext?Oo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Oo(e,t.context,!1),Li(e,t.containerInfo)}function Zo(e,t,n,r,s){return on(),Ei(s),t.flags|=256,ae(e,t,n,r),t.child}var Ql={dehydrated:null,treeContext:null,retryLane:0};function Kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function dc(e,t,n){var r=t.pendingProps,s=W.current,l=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),I(W,s&1),e===null)return Dl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=ks(o,r,0,null),e=Tt(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Kl(n),t.memoizedState=Ql,e):Ai(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Yf(e,t,o,r,a,s,n);if(l){l=r.fallback,o=t.mode,s=e.child,a=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=pt(s,u),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?l=pt(a,l):(l=Tt(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Kl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ql,r}return l=e.child,e=l.sibling,r=pt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ai(e,t){return t=ks({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Ei(r),an(t,e.child,null,n),e=Ai(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yf(e,t,n,r,s,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Js(Error(x(422))),jr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,s=t.mode,r=ks({mode:"visible",children:r.children},s,0,null),l=Tt(l,s,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&an(t,e.child,null,o),t.child.memoizedState=Kl(o),t.memoizedState=Ql,l);if(!(t.mode&1))return jr(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(x(419)),r=Js(l,r,void 0),jr(e,t,o,r)}if(a=(o&e.childLanes)!==0,pe||a){if(r=ee,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==l.retryLane&&(l.retryLane=s,Ge(e,s),Ie(r,e,s,-1))}return Ki(),r=Js(Error(x(421))),jr(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=ip.bind(null,e),s._reactRetry=t,null):(e=l.treeContext,xe=ut(s.nextSibling),we=t,A=!0,Oe=null,e!==null&&(Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,Qe=e.id,Ke=e.overflow,zt=t),t=Ai(t,r.children),t.flags|=4096,t)}function Jo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hl(e.return,t,n)}function bs(e,t,n,r,s){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=s)}function fc(e,t,n){var r=t.pendingProps,s=r.revealOrder,l=r.tail;if(ae(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jo(e,n,t);else if(e.tag===19)Jo(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(I(W,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&es(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),bs(t,!1,s,n,l);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&es(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}bs(t,!0,n,null,l);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qf(e,t,n){switch(t.tag){case 3:cc(t),on();break;case 5:Du(t);break;case 1:me(t.type)&&qr(t);break;case 4:Li(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;I(Zr,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?dc(e,t,n):(I(W,W.current&1),e=Ze(e,t,n),e!==null?e.sibling:null);I(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fc(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),I(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,ac(e,t,n)}return Ze(e,t,n)}var pc,Yl,hc,mc;pc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yl=function(){};hc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Ct(Ue.current);var l=null;switch(n){case"input":s=ml(e,s),r=ml(e,r),l=[];break;case"select":s=V({},s,{value:void 0}),r=V({},r,{value:void 0}),l=[];break;case"textarea":s=yl(e,s),r=yl(e,r),l=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}wl(n,r);var o;n=null;for(d in s)if(!r.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var a=s[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Dn.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var u=r[d];if(a=s!=null?s[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Dn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&F("scroll",e),l||a===u||(l=[])):(l=l||[]).push(d,u))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}};mc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!A)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xf(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return le(t),null;case 1:return me(t.type)&&Yr(),le(t),null;case 3:return r=t.stateNode,un(),H(he),H(oe),Oi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Oe!==null&&(ti(Oe),Oe=null))),Yl(e,t),le(t),null;case 5:Mi(t);var s=Ct(Gn.current);if(n=t.type,e!==null&&t.stateNode!=null)hc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return le(t),null}if(e=Ct(Ue.current),wr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ae]=t,r[qn]=l,e=(t.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(s=0;s<_n.length;s++)F(_n[s],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":io(r,l),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},F("invalid",r);break;case"textarea":ao(r,l),F("invalid",r)}wl(n,l),s=null;for(var o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="children"?typeof a=="string"?r.textContent!==a&&(l.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(l.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),s=["children",""+a]):Dn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&F("scroll",r)}switch(n){case"input":dr(r),oo(r,l,!0);break;case"textarea":dr(r),uo(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Kr)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Va(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ae]=t,e[qn]=r,pc(e,t,!1,!1),t.stateNode=e;e:{switch(o=kl(n,r),n){case"dialog":F("cancel",e),F("close",e),s=r;break;case"iframe":case"object":case"embed":F("load",e),s=r;break;case"video":case"audio":for(s=0;s<_n.length;s++)F(_n[s],e);s=r;break;case"source":F("error",e),s=r;break;case"img":case"image":case"link":F("error",e),F("load",e),s=r;break;case"details":F("toggle",e),s=r;break;case"input":io(e,r),s=ml(e,r),F("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=V({},r,{value:void 0}),F("invalid",e);break;case"textarea":ao(e,r),s=yl(e,r),F("invalid",e);break;default:s=r}wl(n,s),a=s;for(l in a)if(a.hasOwnProperty(l)){var u=a[l];l==="style"?Ka(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ba(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hn(e,u):typeof u=="number"&&Hn(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Dn.hasOwnProperty(l)?u!=null&&l==="onScroll"&&F("scroll",e):u!=null&&ci(e,l,u,o))}switch(n){case"input":dr(e),oo(e,r,!1);break;case"textarea":dr(e),uo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Jt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return le(t),null;case 6:if(e&&t.stateNode!=null)mc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Ct(Gn.current),Ct(Ue.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(l=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:xr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return le(t),null;case 13:if(H(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(A&&xe!==null&&t.mode&1&&!(t.flags&128))Mu(),on(),t.flags|=98560,l=!1;else if(l=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(x(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(x(317));l[Ae]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;le(t),l=!1}else Oe!==null&&(ti(Oe),Oe=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?Z===0&&(Z=3):Ki())),t.updateQueue!==null&&(t.flags|=4),le(t),null);case 4:return un(),Yl(e,t),e===null&&Kn(t.stateNode.containerInfo),le(t),null;case 10:return zi(t.type._context),le(t),null;case 17:return me(t.type)&&Yr(),le(t),null;case 19:if(H(W),l=t.memoizedState,l===null)return le(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Sn(l,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=es(e),o!==null){for(t.flags|=128,Sn(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(W,W.current&1|2),t.child}e=e.sibling}l.tail!==null&&Y()>dn&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304)}else{if(!r)if(e=es(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!A)return le(t),null}else 2*Y()-l.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Qi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function Gf(e,t){switch(Ci(t),t.tag){case 1:return me(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),H(he),H(oe),Oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mi(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return un(),null;case 10:return zi(t.type._context),null;case 22:case 23:return Qi(),null;case 24:return null;default:return null}}var Sr=!1,ie=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,S=null;function Gt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function ql(e,t,n){try{n()}catch(r){B(e,t,r)}}var bo=!1;function Jf(e,t){if(Rl=Vr,e=wu(),Si(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,d=0,m=0,v=e,h=null;t:for(;;){for(var y;v!==n||s!==0&&v.nodeType!==3||(a=o+s),v!==l||r!==0&&v.nodeType!==3||(u=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(y=v.firstChild)!==null;)h=v,v=y;for(;;){if(v===e)break t;if(h===n&&++d===s&&(a=o),h===l&&++m===r&&(u=o),(y=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ll={focusedElem:e,selectionRange:n},Vr=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Le(t.type,k),O);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(g){B(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return w=bo,bo=!1,w}function $n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var l=s.destroy;s.destroy=void 0,l!==void 0&&ql(t,n,l)}s=s.next}while(s!==r)}}function xs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vc(e){var t=e.alternate;t!==null&&(e.alternate=null,vc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[qn],delete t[$l],delete t[Of],delete t[$f])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gc(e){return e.tag===5||e.tag===3||e.tag===4}function ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Gl(e,t,n),e=e.sibling;e!==null;)Gl(e,t,n),e=e.sibling}function Zl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zl(e,t,n),e=e.sibling;e!==null;)Zl(e,t,n),e=e.sibling}var te=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)yc(e,t,n),n=n.sibling}function yc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(ds,n)}catch{}switch(n.tag){case 5:ie||Gt(n,t);case 6:var r=te,s=Me;te=null,be(e,t,n),te=r,Me=s,te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?Ks(e.parentNode,n):e.nodeType===1&&Ks(e,n),Vn(e)):Ks(te,n.stateNode));break;case 4:r=te,s=Me,te=n.stateNode.containerInfo,Me=!0,be(e,t,n),te=r,Me=s;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var l=s,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&ql(n,t,o),s=s.next}while(s!==r)}be(e,t,n);break;case 1:if(!ie&&(Gt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){B(n,t,a)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,be(e,t,n),ie=r):be(e,t,n);break;default:be(e,t,n)}}function ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zf),t.forEach(function(r){var s=op.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var l=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:te=a.stateNode,Me=!1;break e;case 3:te=a.stateNode.containerInfo,Me=!0;break e;case 4:te=a.stateNode.containerInfo,Me=!0;break e}a=a.return}if(te===null)throw Error(x(160));yc(l,o,s),te=null,Me=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(d){B(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xc(t,e),t=t.sibling}function xc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Re(t,e),De(e),r&4){try{$n(3,e,e.return),xs(3,e)}catch(k){B(e,e.return,k)}try{$n(5,e,e.return)}catch(k){B(e,e.return,k)}}break;case 1:Re(t,e),De(e),r&512&&n!==null&&Gt(n,n.return);break;case 5:if(Re(t,e),De(e),r&512&&n!==null&&Gt(n,n.return),e.flags&32){var s=e.stateNode;try{Hn(s,"")}catch(k){B(e,e.return,k)}}if(r&4&&(s=e.stateNode,s!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&l.type==="radio"&&l.name!=null&&Wa(s,l),kl(a,o);var d=kl(a,l);for(o=0;o<u.length;o+=2){var m=u[o],v=u[o+1];m==="style"?Ka(s,v):m==="dangerouslySetInnerHTML"?Ba(s,v):m==="children"?Hn(s,v):ci(s,m,v,d)}switch(a){case"input":vl(s,l);break;case"textarea":Ua(s,l);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?Jt(s,!!l.multiple,y,!1):h!==!!l.multiple&&(l.defaultValue!=null?Jt(s,!!l.multiple,l.defaultValue,!0):Jt(s,!!l.multiple,l.multiple?[]:"",!1))}s[qn]=l}catch(k){B(e,e.return,k)}}break;case 6:if(Re(t,e),De(e),r&4){if(e.stateNode===null)throw Error(x(162));s=e.stateNode,l=e.memoizedProps;try{s.nodeValue=l}catch(k){B(e,e.return,k)}}break;case 3:if(Re(t,e),De(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vn(t.containerInfo)}catch(k){B(e,e.return,k)}break;case 4:Re(t,e),De(e);break;case 13:Re(t,e),De(e),s=e.child,s.flags&8192&&(l=s.memoizedState!==null,s.stateNode.isHidden=l,!l||s.alternate!==null&&s.alternate.memoizedState!==null||(Vi=Y())),r&4&&ta(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ie=(d=ie)||m,Re(t,e),ie=d):Re(t,e),De(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(S=e,m=e.child;m!==null;){for(v=S=m;S!==null;){switch(h=S,y=h.child,h.tag){case 0:case 11:case 14:case 15:$n(4,h,h.return);break;case 1:Gt(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){B(r,n,k)}}break;case 5:Gt(h,h.return);break;case 22:if(h.memoizedState!==null){ra(v);continue}}y!==null?(y.return=h,S=y):ra(v)}m=m.sibling}e:for(m=null,v=e;;){if(v.tag===5){if(m===null){m=v;try{s=v.stateNode,d?(l=s.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(a=v.stateNode,u=v.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Qa("display",o))}catch(k){B(e,e.return,k)}}}else if(v.tag===6){if(m===null)try{v.stateNode.nodeValue=d?"":v.memoizedProps}catch(k){B(e,e.return,k)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;m===v&&(m=null),v=v.return}m===v&&(m=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:Re(t,e),De(e),r&4&&ta(e);break;case 21:break;default:Re(t,e),De(e)}}function De(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Hn(s,""),r.flags&=-33);var l=ea(e);Zl(e,l,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ea(e);Gl(e,a,o);break;default:throw Error(x(161))}}catch(u){B(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bf(e,t,n){S=e,wc(e)}function wc(e,t,n){for(var r=(e.mode&1)!==0;S!==null;){var s=S,l=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Sr;if(!o){var a=s.alternate,u=a!==null&&a.memoizedState!==null||ie;a=Sr;var d=ie;if(Sr=o,(ie=u)&&!d)for(S=s;S!==null;)o=S,u=o.child,o.tag===22&&o.memoizedState!==null?sa(s):u!==null?(u.return=o,S=u):sa(s);for(;l!==null;)S=l,wc(l),l=l.sibling;S=s,Sr=a,ie=d}na(e)}else s.subtreeFlags&8772&&l!==null?(l.return=s,S=l):na(e)}}function na(e){for(;S!==null;){var t=S;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ie||xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ie)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ao(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ao(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var v=m.dehydrated;v!==null&&Vn(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ie||t.flags&512&&Xl(t)}catch(h){B(t,t.return,h)}}if(t===e){S=null;break}if(n=t.sibling,n!==null){n.return=t.return,S=n;break}S=t.return}}function ra(e){for(;S!==null;){var t=S;if(t===e){S=null;break}var n=t.sibling;if(n!==null){n.return=t.return,S=n;break}S=t.return}}function sa(e){for(;S!==null;){var t=S;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xs(4,t)}catch(u){B(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){B(t,s,u)}}var l=t.return;try{Xl(t)}catch(u){B(t,l,u)}break;case 5:var o=t.return;try{Xl(t)}catch(u){B(t,o,u)}}}catch(u){B(t,t.return,u)}if(t===e){S=null;break}var a=t.sibling;if(a!==null){a.return=t.return,S=a;break}S=t.return}}var ep=Math.ceil,rs=Je.ReactCurrentDispatcher,Wi=Je.ReactCurrentOwner,Te=Je.ReactCurrentBatchConfig,M=0,ee=null,X=null,ne=0,ye=0,Zt=gt(0),Z=0,er=null,Rt=0,ws=0,Ui=0,In=null,fe=null,Vi=0,dn=1/0,Ve=null,ss=!1,Jl=null,dt=null,Nr=!1,lt=null,ls=0,Fn=0,bl=null,$r=-1,Ir=0;function ue(){return M&6?Y():$r!==-1?$r:$r=Y()}function ft(e){return e.mode&1?M&2&&ne!==0?ne&-ne:Ff.transition!==null?(Ir===0&&(Ir=su()),Ir):(e=$,e!==0||(e=window.event,e=e===void 0?16:du(e.type)),e):1}function Ie(e,t,n,r){if(50<Fn)throw Fn=0,bl=null,Error(x(185));rr(e,n,r),(!(M&2)||e!==ee)&&(e===ee&&(!(M&2)&&(ws|=n),Z===4&&rt(e,ne)),ve(e,r),n===1&&M===0&&!(t.mode&1)&&(dn=Y()+500,vs&&yt()))}function ve(e,t){var n=e.callbackNode;Id(e,t);var r=Ur(e,e===ee?ne:0);if(r===0)n!==null&&po(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&po(n),t===1)e.tag===0?If(la.bind(null,e)):Pu(la.bind(null,e)),Lf(function(){!(M&6)&&yt()}),n=null;else{switch(lu(r)){case 1:n=mi;break;case 4:n=nu;break;case 16:n=Wr;break;case 536870912:n=ru;break;default:n=Wr}n=_c(n,kc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kc(e,t){if($r=-1,Ir=0,M&6)throw Error(x(327));var n=e.callbackNode;if(rn()&&e.callbackNode!==n)return null;var r=Ur(e,e===ee?ne:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=is(e,r);else{t=r;var s=M;M|=2;var l=Sc();(ee!==e||ne!==t)&&(Ve=null,dn=Y()+500,Et(e,t));do try{rp();break}catch(a){jc(e,a)}while(!0);_i(),rs.current=l,M=s,X!==null?t=0:(ee=null,ne=0,t=Z)}if(t!==0){if(t===2&&(s=El(e),s!==0&&(r=s,t=ei(e,s))),t===1)throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;if(t===6)rt(e,r);else{if(s=e.current.alternate,!(r&30)&&!tp(s)&&(t=is(e,r),t===2&&(l=El(e),l!==0&&(r=l,t=ei(e,l))),t===1))throw n=er,Et(e,0),rt(e,r),ve(e,Y()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:jt(e,fe,Ve);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Vi+500-Y(),10<t)){if(Ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ol(jt.bind(null,e,fe,Ve),t);break}jt(e,fe,Ve);break;case 4:if(rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-$e(r);l=1<<o,o=t[o],o>s&&(s=o),r&=~l}if(r=s,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ep(r/1960))-r,10<r){e.timeoutHandle=Ol(jt.bind(null,e,fe,Ve),r);break}jt(e,fe,Ve);break;case 5:jt(e,fe,Ve);break;default:throw Error(x(329))}}}return ve(e,Y()),e.callbackNode===n?kc.bind(null,e):null}function ei(e,t){var n=In;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=is(e,t),e!==2&&(t=fe,fe=n,t!==null&&ti(t)),e}function ti(e){fe===null?fe=e:fe.push.apply(fe,e)}function tp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],l=s.getSnapshot;s=s.value;try{if(!Fe(l(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rt(e,t){for(t&=~Ui,t&=~ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$e(t),r=1<<n;e[n]=-1,t&=~r}}function la(e){if(M&6)throw Error(x(327));rn();var t=Ur(e,0);if(!(t&1))return ve(e,Y()),null;var n=is(e,t);if(e.tag!==0&&n===2){var r=El(e);r!==0&&(t=r,n=ei(e,r))}if(n===1)throw n=er,Et(e,0),rt(e,t),ve(e,Y()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jt(e,fe,Ve),ve(e,Y()),null}function Bi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(dn=Y()+500,vs&&yt())}}function Lt(e){lt!==null&<.tag===0&&!(M&6)&&rn();var t=M;M|=1;var n=Te.transition,r=$;try{if(Te.transition=null,$=1,e)return e()}finally{$=r,Te.transition=n,M=t,!(M&6)&&yt()}}function Qi(){ye=Zt.current,H(Zt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Rf(n)),X!==null)for(n=X.return;n!==null;){var r=n;switch(Ci(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yr();break;case 3:un(),H(he),H(oe),Oi();break;case 5:Mi(r);break;case 4:un();break;case 13:H(W);break;case 19:H(W);break;case 10:zi(r.type._context);break;case 22:case 23:Qi()}n=n.return}if(ee=e,X=e=pt(e.current,null),ne=ye=t,Z=0,er=null,Ui=ws=Rt=0,fe=In=null,Nt!==null){for(t=0;t<Nt.length;t++)if(n=Nt[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=s,r.next=o}n.pending=r}Nt=null}return e}function jc(e,t){do{var n=X;try{if(_i(),Lr.current=ns,ts){for(var r=U.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ts=!1}if(Pt=0,b=G=U=null,On=!1,Zn=0,Wi.current=null,n===null||n.return===null){Z=1,er=t,X=null;break}e:{var l=e,o=n.return,a=n,u=t;if(t=ne,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,m=a,v=m.tag;if(!(m.mode&1)&&(v===0||v===11||v===15)){var h=m.alternate;h?(m.updateQueue=h.updateQueue,m.memoizedState=h.memoizedState,m.lanes=h.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Ko(o);if(y!==null){y.flags&=-257,Yo(y,o,a,l,t),y.mode&1&&Qo(l,d,t),t=y,u=d;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if(!(t&1)){Qo(l,d,t),Ki();break e}u=Error(x(426))}}else if(A&&a.mode&1){var O=Ko(o);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Yo(O,o,a,l,t),Ei(cn(u,a));break e}}l=u=cn(u,a),Z!==4&&(Z=2),In===null?In=[l]:In.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=lc(l,u,t);Ho(l,f);break e;case 1:a=u;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(dt===null||!dt.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=ic(l,a,t);Ho(l,g);break e}}l=l.return}while(l!==null)}Cc(n)}catch(j){t=j,X===n&&n!==null&&(X=n=n.return);continue}break}while(!0)}function Sc(){var e=rs.current;return rs.current=ns,e===null?ns:e}function Ki(){(Z===0||Z===3||Z===2)&&(Z=4),ee===null||!(Rt&268435455)&&!(ws&268435455)||rt(ee,ne)}function is(e,t){var n=M;M|=2;var r=Sc();(ee!==e||ne!==t)&&(Ve=null,Et(e,t));do try{np();break}catch(s){jc(e,s)}while(!0);if(_i(),M=n,rs.current=r,X!==null)throw Error(x(261));return ee=null,ne=0,Z}function np(){for(;X!==null;)Nc(X)}function rp(){for(;X!==null&&!Td();)Nc(X)}function Nc(e){var t=Tc(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?Cc(e):X=t,Wi.current=null}function Cc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gf(n,t),n!==null){n.flags&=32767,X=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,X=null;return}}else if(n=Xf(n,t,ye),n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);Z===0&&(Z=5)}function jt(e,t,n){var r=$,s=Te.transition;try{Te.transition=null,$=1,sp(e,t,n,r)}finally{Te.transition=s,$=r}return null}function sp(e,t,n,r){do rn();while(lt!==null);if(M&6)throw Error(x(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Fd(e,l),e===ee&&(X=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nr||(Nr=!0,_c(Wr,function(){return rn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Te.transition,Te.transition=null;var o=$;$=1;var a=M;M|=4,Wi.current=null,Jf(e,n),xc(n,e),Nf(Ll),Vr=!!Rl,Ll=Rl=null,e.current=n,bf(n),_d(),M=a,$=o,Te.transition=l}else e.current=n;if(Nr&&(Nr=!1,lt=e,ls=s),l=e.pendingLanes,l===0&&(dt=null),Rd(n.stateNode),ve(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ss)throw ss=!1,e=Jl,Jl=null,e;return ls&1&&e.tag!==0&&rn(),l=e.pendingLanes,l&1?e===bl?Fn++:(Fn=0,bl=e):Fn=0,yt(),null}function rn(){if(lt!==null){var e=lu(ls),t=Te.transition,n=$;try{if(Te.transition=null,$=16>e?16:e,lt===null)var r=!1;else{if(e=lt,lt=null,ls=0,M&6)throw Error(x(331));var s=M;for(M|=4,S=e.current;S!==null;){var l=S,o=l.child;if(S.flags&16){var a=l.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(S=d;S!==null;){var m=S;switch(m.tag){case 0:case 11:case 15:$n(8,m,l)}var v=m.child;if(v!==null)v.return=m,S=v;else for(;S!==null;){m=S;var h=m.sibling,y=m.return;if(vc(m),m===d){S=null;break}if(h!==null){h.return=y,S=h;break}S=y}}}var w=l.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var O=k.sibling;k.sibling=null,k=O}while(k!==null)}}S=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,S=o;else e:for(;S!==null;){if(l=S,l.flags&2048)switch(l.tag){case 0:case 11:case 15:$n(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,S=f;break e}S=l.return}}var c=e.current;for(S=c;S!==null;){o=S;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,S=p;else e:for(o=c;S!==null;){if(a=S,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:xs(9,a)}}catch(j){B(a,a.return,j)}if(a===o){S=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,S=g;break e}S=a.return}}if(M=s,yt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(ds,e)}catch{}r=!0}return r}finally{$=n,Te.transition=t}}return!1}function ia(e,t,n){t=cn(n,t),t=lc(e,t,1),e=ct(e,t,1),t=ue(),e!==null&&(rr(e,1,t),ve(e,t))}function B(e,t,n){if(e.tag===3)ia(e,e,n);else for(;t!==null;){if(t.tag===3){ia(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(dt===null||!dt.has(r))){e=cn(n,e),e=ic(t,e,1),t=ct(t,e,1),e=ue(),t!==null&&(rr(t,1,e),ve(t,e));break}}t=t.return}}function lp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ue(),e.pingedLanes|=e.suspendedLanes&n,ee===e&&(ne&n)===n&&(Z===4||Z===3&&(ne&130023424)===ne&&500>Y()-Vi?Et(e,0):Ui|=n),ve(e,t)}function Ec(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ue();e=Ge(e,t),e!==null&&(rr(e,t,n),ve(e,n))}function ip(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ec(e,n)}function op(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),Ec(e,n)}var Tc;Tc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,qf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,A&&t.flags&1048576&&Ru(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var s=ln(t,oe.current);nn(t,n),s=Ii(null,t,r,e,s,n);var l=Fi();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(l=!0,qr(t)):l=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ri(t),s.updater=ys,t.stateNode=s,s._reactInternals=t,Wl(t,r,e,n),t=Bl(null,t,r,!0,l,n)):(t.tag=0,A&&l&&Ni(t),ae(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=up(r),e=Le(r,e),s){case 0:t=Vl(null,t,r,e,n);break e;case 1:t=Go(null,t,r,e,n);break e;case 11:t=qo(null,t,r,e,n);break e;case 14:t=Xo(null,t,r,Le(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Vl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Go(e,t,r,s,n);case 3:e:{if(cc(t),e===null)throw Error(x(387));r=t.pendingProps,l=t.memoizedState,s=l.element,Fu(e,t),br(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){s=cn(Error(x(423)),t),t=Zo(e,t,r,n,s);break e}else if(r!==s){s=cn(Error(x(424)),t),t=Zo(e,t,r,n,s);break e}else for(xe=ut(t.stateNode.containerInfo.firstChild),we=t,A=!0,Oe=null,n=$u(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===s){t=Ze(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Du(t),e===null&&Dl(t),r=t.type,s=t.pendingProps,l=e!==null?e.memoizedProps:null,o=s.children,Ml(r,s)?o=null:l!==null&&Ml(r,l)&&(t.flags|=32),uc(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Dl(t),null;case 13:return dc(e,t,n);case 4:return Li(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),qo(e,t,r,s,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,l=t.memoizedProps,o=s.value,I(Zr,r._currentValue),r._currentValue=o,l!==null)if(Fe(l.value,o)){if(l.children===s.children&&!he.current){t=Ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){o=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Ye(-1,n&-n),u.tag=2;var d=l.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?u.next=u:(u.next=m.next,m.next=u),d.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Hl(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(x(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Hl(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}ae(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,nn(t,n),s=_e(s),r=r(s),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,s=Le(r,t.pendingProps),s=Le(r.type,s),Xo(e,t,r,s,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Or(e,t),t.tag=1,me(r)?(e=!0,qr(t)):e=!1,nn(t,n),sc(t,r,s),Wl(t,r,s,n),Bl(null,t,r,!0,e,n);case 19:return fc(e,t,n);case 22:return ac(e,t,n)}throw Error(x(156,t.tag))};function _c(e,t){return tu(e,t)}function ap(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new ap(e,t,n,r)}function Yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function up(e){if(typeof e=="function")return Yi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fi)return 11;if(e===pi)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,s,l){var o=2;if(r=e,typeof e=="function")Yi(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wt:return Tt(n.children,s,l,t);case di:o=8,s|=8;break;case dl:return e=Ee(12,n,t,s|2),e.elementType=dl,e.lanes=l,e;case fl:return e=Ee(13,n,t,s),e.elementType=fl,e.lanes=l,e;case pl:return e=Ee(19,n,t,s),e.elementType=pl,e.lanes=l,e;case Da:return ks(n,s,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ia:o=10;break e;case Fa:o=9;break e;case fi:o=11;break e;case pi:o=14;break e;case et:o=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,s),t.elementType=e,t.type=r,t.lanes=l,t}function Tt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function ks(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Da,e.lanes=n,e.stateNode={isHidden:!1},e}function el(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function tl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cp(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$s(0),this.expirationTimes=$s(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$s(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function qi(e,t,n,r,s,l,o,a,u){return e=new cp(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ee(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(l),e}function dp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zc(e){if(!e)return mt;e=e._reactInternals;e:{if(It(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(me(n))return zu(e,n,t)}return t}function Pc(e,t,n,r,s,l,o,a,u){return e=qi(n,r,!0,e,s,l,o,a,u),e.context=zc(null),n=e.current,r=ue(),s=ft(n),l=Ye(r,s),l.callback=t??null,ct(n,l,s),e.current.lanes=s,rr(e,s,r),ve(e,r),e}function js(e,t,n,r){var s=t.current,l=ue(),o=ft(s);return n=zc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ye(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(s,t,o),e!==null&&(Ie(e,s,o,l),Rr(e,s,o)),o}function os(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function oa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xi(e,t){oa(e,t),(e=e.alternate)&&oa(e,t)}function fp(){return null}var Rc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gi(e){this._internalRoot=e}Ss.prototype.render=Gi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));js(e,t,null,null)};Ss.prototype.unmount=Gi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lt(function(){js(null,e,null,null)}),t[Xe]=null}};function Ss(e){this._internalRoot=e}Ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=au();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nt.length&&t!==0&&t<nt[n].priority;n++);nt.splice(n,0,e),n===0&&cu(e)}};function Zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ns(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aa(){}function pp(e,t,n,r,s){if(s){if(typeof r=="function"){var l=r;r=function(){var d=os(o);l.call(d)}}var o=Pc(t,r,e,0,null,!1,!1,"",aa);return e._reactRootContainer=o,e[Xe]=o.current,Kn(e.nodeType===8?e.parentNode:e),Lt(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var d=os(u);a.call(d)}}var u=qi(e,0,!1,null,null,!1,!1,"",aa);return e._reactRootContainer=u,e[Xe]=u.current,Kn(e.nodeType===8?e.parentNode:e),Lt(function(){js(t,u,n,r)}),u}function Cs(e,t,n,r,s){var l=n._reactRootContainer;if(l){var o=l;if(typeof s=="function"){var a=s;s=function(){var u=os(o);a.call(u)}}js(t,o,e,s)}else o=pp(n,t,e,s,r);return os(o)}iu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tn(t.pendingLanes);n!==0&&(vi(t,n|1),ve(t,Y()),!(M&6)&&(dn=Y()+500,yt()))}break;case 13:Lt(function(){var r=Ge(e,1);if(r!==null){var s=ue();Ie(r,e,1,s)}}),Xi(e,1)}};gi=function(e){if(e.tag===13){var t=Ge(e,134217728);if(t!==null){var n=ue();Ie(t,e,134217728,n)}Xi(e,134217728)}};ou=function(e){if(e.tag===13){var t=ft(e),n=Ge(e,t);if(n!==null){var r=ue();Ie(n,e,t,r)}Xi(e,t)}};au=function(){return $};uu=function(e,t){var n=$;try{return $=e,t()}finally{$=n}};Sl=function(e,t,n){switch(t){case"input":if(vl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=ms(r);if(!s)throw Error(x(90));Aa(r),vl(r,s)}}}break;case"textarea":Ua(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}};Xa=Bi;Ga=Lt;var hp={usingClientEntryPoint:!1,Events:[lr,Qt,ms,Ya,qa,Bi]},Nn={findFiberByHostInstance:St,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mp={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Je.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ba(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||fp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{ds=Cr.inject(mp),We=Cr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zi(t))throw Error(x(200));return dp(e,t,null,n)};je.createRoot=function(e,t){if(!Zi(e))throw Error(x(299));var n=!1,r="",s=Rc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=qi(e,1,!1,null,null,n,!1,r,s),e[Xe]=t.current,Kn(e.nodeType===8?e.parentNode:e),new Gi(t)};je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=ba(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Lt(e)};je.hydrate=function(e,t,n){if(!Ns(t))throw Error(x(200));return Cs(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Zi(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,s=!1,l="",o=Rc;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Pc(t,null,e,1,n??null,s,!1,l,o),e[Xe]=t.current,Kn(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Ss(t)};je.render=function(e,t,n){if(!Ns(t))throw Error(x(200));return Cs(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!Ns(e))throw Error(x(40));return e._reactRootContainer?(Lt(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[Xe]=null})}),!0):!1};je.unstable_batchedUpdates=Bi;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ns(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Cs(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function Lc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lc)}catch(e){console.error(e)}}Lc(),La.exports=je;var vp=La.exports,ua=vp;ul.createRoot=ua.createRoot,ul.hydrateRoot=ua.hydrateRoot;/**
|
|
41
41
|
* @license lucide-react v0.441.0 - ISC
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the ISC license.
|
|
@@ -62,7 +62,7 @@ Error generating stack: `+l.message+`
|
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const
|
|
65
|
+
*/const ni=q("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
66
|
* @license lucide-react v0.441.0 - ISC
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
@@ -122,7 +122,7 @@ Error generating stack: `+l.message+`
|
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const
|
|
125
|
+
*/const ca=q("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
126
126
|
* @license lucide-react v0.441.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
@@ -162,5 +162,5 @@ Error generating stack: `+l.message+`
|
|
|
162
162
|
*
|
|
163
163
|
* This source code is licensed under the ISC license.
|
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const Ip=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class Fp extends ii.Component{constructor(){super(...arguments);Ji(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidUpdate(n){n.resetKey!==this.props.resetKey&&this.state.error&&this.setState({error:null})}render(){return this.state.error?i.jsxs("div",{className:"empty-state glass-card",role:"alert",children:[i.jsx(Lp,{size:48}),i.jsx("h3",{children:"This view could not be displayed"}),i.jsx("p",{children:this.state.error.message||"Studio received data it could not render."}),i.jsxs("button",{className:"refresh-btn",type:"button",onClick:()=>this.setState({error:null}),children:[i.jsx(Oc,{size:16})," Retry view"]})]}):this.props.children}}function Dt({icon:e,label:t,status:n,detail:r}){const s=["ready","active","online","local"].includes(n)?"ready":["warming","idle","missing"].includes(n)?"warming":"degraded";return i.jsxs("div",{className:`health-item ${s}`,children:[i.jsx(e,{size:15,"aria-hidden":"true"}),i.jsxs("span",{children:[i.jsx("strong",{children:t}),i.jsx("small",{children:r})]}),i.jsx("span",{className:"health-state",children:n})]})}function Dp({data:e,loading:t,stale:n,onRetry:r}){var l,o,a,u,d,m,v,h,y,w,k,O,f,c,p,g,j;if(t&&!e)return i.jsxs("div",{className:"system-health loading",children:[i.jsx(ti,{size:16,className:"spinning"})," Checking system health…"]});if(!e||e.error)return i.jsxs("div",{className:"system-health unavailable",role:"alert",children:[i.jsx(ua,{size:16})," Health unavailable",i.jsxs("button",{type:"button",onClick:r,children:[i.jsx(Oc,{size:14})," Retry"]})]});const s=Object.values(((l=e.caches)==null?void 0:l.layers)??{}).filter(C=>C>0).length;return i.jsxs("section",{className:`system-health ${n?"stale":""}`,"aria-label":"System health",children:[i.jsx(Dt,{icon:jp,label:"Index",status:((o=e.index)==null?void 0:o.status)??"missing",detail:`${((a=e.index)==null?void 0:a.patterns)??0} patterns · ${((u=e.index)==null?void 0:u.files)??0} files`}),i.jsx(Dt,{icon:Op,label:"Graph",status:((d=e.graph)==null?void 0:d.status)??"missing",detail:`${((m=e.graph)==null?void 0:m.nodes)??0} nodes · ${((v=e.graph)==null?void 0:v.edges)??0} edges`}),i.jsx(Dt,{icon:wp,label:"Semantic",status:((h=e.semantic)==null?void 0:h.status)??"disabled",detail:((y=e.semantic)==null?void 0:y.message)??"Background enrichment"}),i.jsx(Dt,{icon:_p,label:"Cache",status:((w=e.caches)==null?void 0:w.status)??"warming",detail:`${s}/4 layers populated`}),i.jsx(Dt,{icon:ti,label:"Learning",status:((k=e.learning)==null?void 0:k.status)??"idle",detail:`${((O=e.learning)==null?void 0:O.observations)??0} interactions · ${((f=e.learning)==null?void 0:f.total)??0} lessons`}),i.jsx(Dt,{icon:ua,label:"Storage",status:((c=e.storage)==null?void 0:c.connectivity)??"local",detail:((p=e.storage)==null?void 0:p.connectivity)==="offline"?`${((g=e.storage)==null?void 0:g.queuedChanges)??0} queued`:((j=e.storage)==null?void 0:j.mode)??"local"})]})}const $c="rigour-studio-key",Hp="x-rigour-studio-key";function Ap(){const e=window.location.hash.match(/(?:^#|&)key=([a-f0-9]+)/);if(e){try{sessionStorage.setItem($c,e[1])}catch{}window.history.replaceState(null,"",window.location.pathname+window.location.search)}}function Es(){return Ic().length>0}function Ic(){try{return sessionStorage.getItem($c)??""}catch{return""}}function Mt(e,t,n,r="application/json"){const s={[Hp]:Ic()};return n!==void 0&&(s["Content-Type"]=r),fetch(e,{method:t,headers:s,body:n})}const Fc={edit:"while the agent was writing",review:"when the agent checked its work",stop:"before the agent said done",pr:"at the pull request"};function Ot(e,t=Date.now()){const n=Math.round((t-Date.parse(e))/6e4);if(!Number.isFinite(n))return"";if(n<60)return`${Math.max(1,n)} min ago`;const r=Math.round(n/60);return r<48?`${r} h ago`:new Date(e).toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}function D(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function ge(e){const[t,n]=z.useState(null),[r,s]=z.useState(null),l=z.useCallback(()=>{fetch(e).then(async o=>o.ok?n(await o.json()):s(`HTTP ${o.status}`)).catch(o=>s(o instanceof Error?o.message:String(o)))},[e]);return z.useEffect(l,[l]),{data:t,error:r,reload:l}}function tr(e){return e.split(/(`[^`]+`)/g).map((t,n)=>t.startsWith("`")&&t.endsWith("`")&&t.length>2?ii.createElement("code",{key:n,className:"st-mono st-inline-code"},t.slice(1,-1)):t)}const ca="rigour-intro-hidden",Wp=({onNavigate:e})=>{const{data:t,error:n,reload:r}=ge("/api/week"),[s,l]=z.useState(null),[o,a]=z.useState(()=>{try{return localStorage.getItem(ca)!=="1"}catch{return!0}});if(n)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load this week: ",n,"."]})});if(!t)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const u=()=>{try{localStorage.setItem(ca,"1")}catch{}a(!1)},d=t.needs;return i.jsxs("div",{className:"st-page",children:[o&&i.jsx(Up,{onHide:u}),i.jsx("h1",{className:"st-h1",children:d.length===0?"Nothing needs you.":`${D(d.length,"thing needs","things need")} you.`}),i.jsx("p",{className:"st-lead",children:t.stopped.total>0?`${D(t.stopped.total,"problem")} stopped and fixed before a pull request this week.`:t.recordingSince?"Nothing was stopped this week.":"Rigour has not recorded any agent work in this repository yet."}),d.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:18},children:d.map(m=>i.jsx(Vp,{need:m,onDone:r},`${m.rule}:${m.file}`))}),i.jsxs("div",{className:"st-grid",children:[i.jsxs("section",{children:[i.jsx("h2",{style:{margin:"0 0 14px",fontSize:18,fontWeight:600},children:"What Rigour stopped this week"}),t.stories.length===0?i.jsx("div",{className:"st-empty",children:"When an agent fixes something Rigour caught, it appears here with the code change."}):i.jsx("div",{className:"st-stack",children:t.stories.map(m=>i.jsx(Bp,{story:m,open:s===m.id,onToggle:()=>l(s===m.id?null:m.id)},m.id))})]}),i.jsxs("aside",{className:"st-side",children:[i.jsxs("div",{className:"st-card",children:[i.jsx("div",{className:"st-big",children:t.stopped.total}),i.jsx("div",{style:{fontSize:14,marginTop:6},children:"stopped before a PR"}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:[t.stopped.byStage.edit," while writing · ",t.stopped.byStage.review," on review · ",t.stopped.byStage.stop," before done"]}),i.jsx(Qp,{data:t})]}),i.jsxs("div",{className:"st-card",children:[i.jsx("div",{style:{fontSize:15,fontWeight:600},children:"Is it noisy?"}),i.jsx("div",{style:{fontSize:14,marginTop:8,lineHeight:1.6},children:t.raised===0?"Nothing raised this week.":`Rigour raised ${D(t.raised,"problem")} this week. You overruled ${t.overruled}.`}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:'Say "not a bug" once and Rigour stops raising it.'})]}),i.jsx("button",{className:"st-btn",onClick:()=>e("learns"),type:"button",children:"See how it learns"}),t.recordingSince&&i.jsxs("div",{className:"st-sub",children:["Recording since ",new Date(t.recordingSince).toLocaleDateString()]})]})]})]})},Up=({onHide:e})=>i.jsxs("section",{className:"st-card",style:{marginBottom:28},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",marginBottom:16},children:[i.jsx("strong",{children:"How Rigour works"}),i.jsx("button",{className:"st-btn",onClick:e,type:"button",children:"Got it"})]}),i.jsxs("div",{className:"st-steps",children:[i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"1"}),i.jsxs("div",{children:["Your AI agent writes code",i.jsx("div",{className:"st-sub",children:"Claude Code, Cursor, any agent."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"2"}),i.jsxs("div",{children:["Rigour checks every change",i.jsx("div",{className:"st-sub",children:"It stops the agent only on problems it can prove; the agent fixes them."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"3"}),i.jsxs("div",{children:["Your PR arrives clean",i.jsx("div",{className:"st-sub",children:"A short PR review catches the rest. Every fix teaches Rigour your code."})]})]})]})]}),Vp=({need:e,onDone:t})=>{const[n,r]=z.useState("idle"),s=async()=>{const o=window.prompt("Why is this not a bug? Rigour keeps the reason with the dismissal.");if(!(o!=null&&o.trim())||!e.key)return;(await Mt("/api/dismiss","POST",JSON.stringify({key:e.key,reason:o}))).ok?t():r("failed")},l=async()=>{try{await navigator.clipboard.writeText(`Rigour found a problem you introduced: ${e.title} in ${e.file}. Fix it, then run rigour review.`),r("copied")}catch{r("failed")}};return i.jsxs("div",{className:"st-need",children:[i.jsxs("div",{className:"st-row",children:[i.jsx("span",{className:"st-chip warn",children:"open"}),i.jsxs("span",{className:"st-sub",children:["found ",e.stage?Fc[e.stage]:""," · ",Ot(e.openedAt)]})]}),i.jsx("div",{style:{fontSize:17,marginTop:10,lineHeight:1.5},children:e.title}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.file}),i.jsxs("div",{className:"st-row",style:{marginTop:14,flexWrap:"wrap"},children:[i.jsx("button",{className:"st-btn primary",onClick:l,type:"button",children:n==="copied"?"Copied: paste it to your agent":"Copy for my agent"}),e.key&&i.jsx("button",{className:"st-btn",onClick:s,type:"button",children:"It's fine, not a bug"}),n==="failed"&&i.jsx("span",{className:"st-sub",children:"That didn't work. Open Studio from the link in your terminal and try again."})]})]})},Bp=({story:e,open:t,onToggle:n})=>i.jsxs("div",{children:[i.jsxs("button",{className:"st-story",onClick:n,type:"button","aria-expanded":t,children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:"st-chip",children:Fc[e.stage]}),i.jsx("span",{className:"st-sub",children:Ot(e.at)})]}),i.jsx("div",{style:{fontSize:16,lineHeight:1.55,marginTop:10},children:tr(e.title)}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-mono",children:e.file})," · fixed by the agent"]})]}),t&&i.jsxs("div",{className:"st-story-body",children:[e.diff.length>0&&i.jsx("div",{className:"st-code st-mono",children:e.diff.map((r,s)=>i.jsx("span",{className:`st-ln ${r[0]==="+"?"add":r[0]==="-"?"del":""}`,children:r},s))}),e.details&&e.details!==e.title&&i.jsxs("div",{style:{marginTop:e.diff.length?16:0},children:[i.jsx("strong",{style:{fontSize:13},children:e.stage==="review"&&e.rule==="review"?"What the agent fixed":"How Rigour knew"}),i.jsx("div",{className:"st-sub",style:{marginTop:6,lineHeight:1.6},children:tr(e.details)})]})]})]}),Qp=({data:e})=>{const[t,n]=z.useState(!1);if(e.stopped.total===0)return null;const r=`Rigour stopped ${D(e.stopped.total,"problem")} before a pull request this week: ${e.stopped.byStage.edit} while the agent was writing, ${e.stopped.byStage.review} when it checked its work, ${e.stopped.byStage.stop} before it said done. ${e.overruled} of ${e.raised} overruled.`,s=async()=>{try{await navigator.clipboard.writeText(r),n(!0)}catch{}};return i.jsx("button",{className:"st-btn",onClick:s,type:"button",style:{marginTop:14,width:"100%"},children:t?"Copied":"Copy this week"})},Kp=e=>new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}),nl=(e,t)=>e.reduce((n,r)=>n+t(r),0),Yp=()=>{var l;const{data:e,error:t}=ge("/api/progress");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load progress: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.weeks.slice(-4),r=e.weeks.slice(0,-4),s=((l=e.weeks[e.weeks.length-1])==null?void 0:l.lessons)??0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour is shaping this code"}),i.jsxs("p",{className:"st-lead",children:["Last 4 weeks: ",D(nl(n,o=>o.stopped),"problem")," stopped before a PR",r.length?` (${nl(r,o=>o.stopped)} in the 4 weeks before)`:"",", ",D(nl(n,o=>o.repeatsStopped),"repeat mistake")," caught,"," ",D(s,"lesson")," learned so far."]}),i.jsxs("div",{className:"st-stack",style:{marginTop:24},children:[i.jsx(Ht,{title:"Stopped before a PR",hint:"fixed by the agent after Rigour reported it",weeks:e.weeks,value:o=>o.stopped}),i.jsx(Ht,{title:"Repeat mistakes stopped",hint:"a mistake Rigour had already learned, caught again before a PR",weeks:e.weeks,value:o=>o.repeatsStopped}),i.jsx(Ht,{title:"Repeat mistakes that reached a PR",hint:"lower is better",weeks:e.weeks,value:o=>o.repeatsReachedPr,empty:"Shows once branch reviews run on this machine, for example rigour review --base main in a pre-push hook."}),i.jsx(Ht,{title:"Minutes from report to fix",hint:"median; lower is better",weeks:e.weeks,value:o=>o.minutesToFix}),i.jsx(Ht,{title:"Overruled",hint:"findings someone marked not a bug",weeks:e.weeks,value:o=>o.overruled}),i.jsx(Ht,{title:"Lessons learned",hint:"total by the end of each week",weeks:e.weeks,value:o=>o.lessons})]}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Lessons that stopped the most repeats"}),e.topLessons.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. A lesson ranks here once the mistake it describes is caught again and stopped."}):i.jsx("ol",{style:{margin:"12px 0 0",paddingLeft:20,lineHeight:1.6},children:e.topLessons.map(o=>i.jsxs("li",{style:{marginBottom:8},children:[tr(o.text),i.jsxs("div",{className:"st-sub",children:[D(o.stoppedInDevelopment??0,"repeat")," stopped · ",o.scope==="team"?"shared with team":o.scope]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Checks your team acts on"}),e.checks.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:'Each fix and each "not a bug" scores the check that raised it. Scores appear after the first one.'}):i.jsx("div",{className:"st-stack",style:{marginTop:12,gap:8},children:e.checks.map(o=>i.jsxs("div",{className:"st-row",style:{gap:10},children:[i.jsxs("span",{style:{width:44,fontWeight:600},children:[Math.round(o.precision*100),"%"]}),i.jsx("span",{style:{flex:1,fontSize:14},children:o.check}),i.jsxs("span",{className:"st-sub",children:[o.fixed," fixed · ",o.dismissed," overruled"]}),o.muted&&i.jsx("span",{className:"st-chip",children:"quiet"})]},o.check))})]})]})]})},Ht=({title:e,hint:t,weeks:n,value:r,empty:s})=>{const l=n.map(r),o=l.filter(u=>u!==null),a=Math.max(1,...o);return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:e}),i.jsx("span",{className:"st-sub",children:t})]}),o.length===0&&s?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:s}):i.jsx("div",{className:"st-bars",style:{height:90,gap:12},children:n.map((u,d)=>i.jsxs("div",{className:"st-bar",children:[i.jsx("div",{style:{fontSize:12},children:l[d]??"—"}),i.jsx("span",{style:{height:`${l[d]===null?2:Math.max(2,l[d]/a*56)}px`,opacity:l[d]===null?.25:1}}),i.jsx("div",{className:"st-sub",style:{fontSize:11},children:Kp(u.from)})]},u.from))})]})},qp=()=>{const{data:e,error:t}=ge("/api/week"),n=ge("/api/setup").data,r=n==null?void 0:n.checks.some(l=>l.id==="stop"&&l.state!=="missing"&&l.state!=="broken");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const s=e.stories.filter(l=>l.stage==="stop");return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What only Rigour caught"}),i.jsx("p",{className:"st-lead",children:"Counted only where Rigour can show it. A bug stopped before a PR never reached your other reviewers, so it is not counted against them."}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Your agent tried to finish with a bug"}),i.jsx("p",{className:"st-lead",style:{fontSize:14},children:e.agentSaidDone===0&&n&&!r?"The stop hook is not set up in this repository, so Rigour cannot see an agent finish. Run rigour setup.":e.agentSaidDone===0?"This week no agent tried to finish with a problem Rigour could prove.":`This week an agent tried to finish with a problem Rigour proved ${D(e.agentSaidDone,"time")}. Each was fixed before the agent stopped.`}),i.jsx("div",{className:"st-stack",style:{marginTop:14},children:s.map(l=>i.jsxs("div",{className:"st-card st-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15,lineHeight:1.5},children:l.title}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[i.jsx("span",{className:"st-mono",children:l.file})," · ",Ot(l.at)]})]}),i.jsx("span",{className:"st-chip ok",children:"fixed"})]},l.id))})]}),i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Rigour and your other PR reviewers"}),i.jsxs("div",{className:"st-empty",style:{marginTop:14},children:[e.prCatches===null?"No branch reviews recorded on this machine yet.":`Branch reviews here reported ${D(e.prCatches,"problem")} this week.`," ","Side by side with teammates and review bots (both caught it, only Rigour, only them) needs the PR's review comments; it comes with the PR integration."]})]})]})},rl=(e,t=!0)=>t?e===null?"not recorded here":e===1?"1 time":`${e} times`:"—",Xp=({lesson:e,onDecide:t,onDecideReview:n})=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",alignItems:"flex-start"},children:[i.jsx("div",{style:{fontSize:17,lineHeight:1.5,flex:1},children:tr(e.text)}),i.jsx("span",{className:"st-chip",children:e.scope==="team"?"shared with team":e.scope})]}),i.jsxs("div",{className:"st-journey",children:[i.jsxs("div",{style:{background:"var(--bg-surface)"},children:[i.jsx("div",{className:"st-sub",children:"Learned"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:e.learnedFrom})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Agents told"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rl(e.told)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Stopped in development"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rl(e.stoppedInDevelopment,e.origin==="development")})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reached a PR again"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rl(e.reachedPr,e.origin==="development")})]})]}),e.takenBack&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"taken back"})," ",i.jsx("span",{className:"st-sub",children:e.takenBack.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"Later pull requests a review found repeating it merged and stayed fine. Keep telling agents anyway?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote again"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"rejected"),type:"button",children:"Drop"})]})]}),e.reclassified&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"back to candidate"})," ",i.jsx("span",{className:"st-sub",children:e.reclassified.detail})]}),e.reclassified.evidence.map(r=>i.jsx("div",{className:"st-sub",style:{marginTop:4},children:r},r)),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"A later fix on its lines used to make this a lesson by itself; now a person decides. Keep telling agents?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.suggested&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip",children:"a later fix changed these lines"})," ",i.jsx("span",{className:"st-sub",children:e.suggested.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsxs("span",{className:"st-sub",children:["The pull request (#",e.suggested.pr,") left this point alone, and a later fix changed its lines. If that fix is about this point, the lesson was right."]}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.canDecide&&!e.takenBack&&!e.suggested&&!e.reclassified&&i.jsxs("div",{className:"st-row",style:{marginTop:14},children:[i.jsx("span",{className:"st-sub",children:e.scope==="team"?"Shared by a teammate. Give it to everyone's agents?":"Seen once. Keep it so your agents get told?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>t(e.id,e.scope==="team"?"promoted":"validated"),type:"button",children:e.scope==="team"?"Share with team":"Keep"}),i.jsx("button",{className:"st-btn",onClick:()=>t(e.id,"rejected"),type:"button",children:"Drop"})]})]}),da=e=>`${e.count} of ${e.of}${e.rate===null?"":` (${Math.round(e.rate*100)}%)`}`,Gp=({numbers:e})=>i.jsxs("section",{className:"st-card",style:{margin:"0 0 24px"},children:[i.jsx("strong",{children:"After the merge"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[e.records.merged," merged pull requests read on this machine; ",e.records.settled," settled, ",e.records.unsettled," with the window still open."]}),i.jsxs("div",{className:"st-journey",style:{marginTop:10},children:[i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"CI regressed on the merge"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[da(e.settled.ciRegressed),e.settled.ciUnknown?`, ${e.settled.ciUnknown} with no CI to read`:""]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reverted"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:da(e.settled.reverted)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reviewed by Rigour"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[e.settled.reviewed.prs," pull requests, ",e.settled.reviewed.fixedLater.count," fixed later"]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Not reviewed"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[e.settled.notReviewed.prs," pull requests, ",e.settled.notReviewed.fixedLater.count," fixed later"]})]})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:["Lessons: ",e.lessons.awaitingDecision," waiting on you, ",e.lessons.promotedFromEvidence," promoted from evidence, ",e.lessons.dismissed," dismissed, ",e.lessons.takenBack," taken back."," ","Teams choose which pull requests get reviewed, so the two groups differ: this is not a comparison."]})]}),Zp=()=>{const{data:e,error:t,reload:n}=ge("/api/learning");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load lessons: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const r=async(o,a)=>{(await Mt("/api/lessons","POST",JSON.stringify({id:o,state:a}))).ok&&n()},s=async(o,a)=>{(await Mt("/api/review-lessons","POST",JSON.stringify({id:o,decision:a}))).ok&&n()},l=Math.max(1,...e.weeks.map(o=>Math.max(o.stoppedInDevelopment,o.reachedPr??0)));return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour learns your codebase"}),i.jsx("p",{className:"st-lead",children:"Every mistake fixed in development or caught at a PR becomes a lesson. Your agents are told before they write similar code, so the same mistake is stopped earlier next time."}),i.jsxs("section",{className:"st-card",style:{margin:"24px 0"},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Repeat mistakes, by week"}),i.jsx("span",{className:"st-sub",children:"a mistake Rigour had already learned"})]}),i.jsx("div",{className:"st-bars",children:e.weeks.map(o=>i.jsxs("div",{className:"st-bar",children:[i.jsxs("div",{style:{fontSize:13},children:[o.stoppedInDevelopment," stopped",o.reachedPr===null?"":` · ${o.reachedPr} reached a PR`]}),i.jsx("span",{style:{height:`${Math.max(4,o.stoppedInDevelopment/l*80)}px`}}),i.jsxs("div",{className:"st-sub",children:["from ",new Date(o.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]},o.from))}),!e.prRecorded&&i.jsxs("div",{className:"st-sub",style:{marginTop:14},children:["Repeats that reached a PR show once branch reviews run on this machine (",i.jsx("span",{className:"st-mono",children:"rigour review --base main"}),", for example in a pre-push hook). Reviews in CI stay in CI."]})]}),e.outcomes&&i.jsx(Gp,{numbers:e.outcomes}),e.lessons.length===0?i.jsx("div",{className:"st-empty",children:"No lessons yet. They form when an agent fixes something Rigour reported, when a PR comment leads to a fix, or when you tell your agent to remember something."}):i.jsx("div",{className:"st-stack",children:e.lessons.map(o=>i.jsx(Xp,{lesson:o,onDecide:r,onDecideReview:s},o.id))}),i.jsx(Jp,{})]})},Jp=()=>{var r,s,l;const e=ge("/api/learned-rules").data??[],t=Object.entries(((r=ge("/api/memory").data)==null?void 0:r.memories)??{}),n=(l=(s=ge("/api/index-stats").data)==null?void 0:s.stats)==null?void 0:l.totalPatterns;return i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Rules learned from fixes"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Checked on every edit, like a built-in check."}),e.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. rigour learn turns an agent's fixes into rules once they hold up."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:e.map(o=>i.jsxs("li",{children:[o.message,i.jsxs("div",{className:"st-sub",children:[o.requirement," · ",o.appliesTo]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"What your agents were told to remember"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Facts saved with rigour_remember; agents recall them by meaning."}),t.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"Nothing saved yet."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:t.slice(0,12).map(([o,a])=>i.jsxs("li",{children:[i.jsx("strong",{children:o.replace(/_/g," ")}),": ",a.value.length>220?`${a.value.slice(0,220)}…`:a.value]},o))}),t.length>12&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:["and ",t.length-12," more"]})]}),typeof n=="number"&&n>0&&i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsxs("strong",{children:[n," functions indexed"]}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:"Before an agent writes a new helper, Rigour checks whether one already exists and points to it, so the codebase doesn't fill with near-copies."})]})]})},fa=e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e),bp=()=>{const{data:e,error:t}=ge("/api/context");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load agent context: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.week,r=n.scopes+n.recalls+n.lessonsTold+n.reuse.length===0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What Rigour gave your agents"}),i.jsx("p",{className:"st-lead",children:"Before an agent writes, it can ask Rigour where to look, what this team already knows, and whether the thing it is about to write exists. Preventing a mistake is cheaper than catching it."}),r?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"No agent asked Rigour for context this week. Agents use it through the Rigour tools (rigour_context_scope, rigour_recall, rigour_check_pattern); Setup shows whether they are connected."}):i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsx(pa,{title:"Where to look",value:n.scopes===0?"Not asked this week":`${D(n.filesReturned,"file")} instead of ${n.filesConsidered}`,detail:n.scopes===0?"Agents can ask for the files a task needs instead of reading broadly.":`${D(n.scopes,"request")}. About ${fa(n.tokensReturned)} tokens returned out of ${fa(n.tokensConsidered)} considered (Rigour's estimate).`}),i.jsx(pa,{title:"What this team knows",value:`${D(n.lessonsTold,"lesson")} told`,detail:`${D(n.recalls,"recall")} of saved facts and lessons. How it learns shows what each lesson stopped.`}),i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsx("strong",{children:"Pointed to code that already exists"}),n.reuse.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:"No duplicate was about to be written this week."}):i.jsx("div",{className:"st-stack",style:{marginTop:12},children:n.reuse.map(s=>i.jsxs("div",{className:"st-row",style:{alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${s.action==="BLOCK"?"warn":""}`,children:s.action==="BLOCK"?"reuse":"similar"}),i.jsxs("div",{style:{flex:1,fontSize:14,lineHeight:1.5},children:["About to write ",i.jsx("span",{className:"st-mono",children:s.planned}),"; told to use ",i.jsx("span",{className:"st-mono",children:s.existing})]}),i.jsx("span",{className:"st-sub",children:Ot(s.at)})]},`${s.at}-${s.planned}`))})]})]}),i.jsx(eh,{weeks:e.weeks})]})},pa=({title:e,value:t,detail:n})=>i.jsxs("section",{className:"st-card",children:[i.jsx("div",{className:"st-sub",children:e}),i.jsx("div",{style:{fontSize:22,fontWeight:600,marginTop:6,color:"var(--text-primary)"},children:t}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:n})]}),eh=({weeks:e})=>{const t=e.filter(n=>n.scopes+n.recalls+n.lessonsTold+n.reuse>0).reverse();return i.jsxs("section",{className:"st-card",style:{marginTop:24,padding:0,overflowX:"auto"},children:[i.jsx("div",{style:{padding:"16px 20px 8px"},children:i.jsx("strong",{children:"Last 8 weeks"})}),t.length===0?i.jsx("div",{className:"st-sub",style:{padding:"0 20px 18px"},children:"No context requests in the last 8 weeks."}):i.jsxs("table",{className:"st-table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Week of"}),i.jsx("th",{children:"Focused file lists"}),i.jsx("th",{children:"Files given"}),i.jsx("th",{children:"Recalls"}),i.jsx("th",{children:"Lessons told"}),i.jsx("th",{children:"Duplicates avoided"})]})}),i.jsx("tbody",{children:t.map(n=>i.jsxs("tr",{children:[i.jsx("td",{children:new Date(n.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})}),i.jsx("td",{children:n.scopes}),i.jsx("td",{children:n.scopes?`${n.filesReturned} of ${n.filesConsidered}`:"—"}),i.jsx("td",{children:n.recalls}),i.jsx("td",{children:n.lessonsTold}),i.jsx("td",{children:n.reuse})]},n.from))})]})]})},sl={single:"one judge",cross:"one judge from another vendor",full:"one judge per vendor, findings merged",panel:"a panel: only what a majority confirms blocks"},th=e=>e.file?`${e.file}${e.line?`:${e.line}`:""}`:"",nh=({data:e,canWrite:t,onChange:n})=>{var s,l,o,a;const r=(s=e.status)==null?void 0:s.last;return i.jsxs("section",{style:{marginTop:24},children:[i.jsxs("h2",{style:{margin:"0 0 12px",fontSize:18,fontWeight:600},children:["The reviewer's verdict on ",e.branch]}),((l=e.status)==null?void 0:l.running)&&i.jsxs("div",{className:"st-sub",style:{marginBottom:8},children:["Reviewing ",e.status.running.head.slice(0,9)," now."]}),((o=e.status)==null?void 0:o.attempt)&&i.jsxs("div",{className:"st-card",style:{marginBottom:12},children:[i.jsx("span",{className:"st-chip warn",children:e.status.attempt.outcome==="skipped"?"skipped":"could not run"})," ",i.jsxs("span",{className:"st-sub",children:["The last review, of ",e.status.attempt.head.slice(0,9)," ",Ot(e.status.attempt.at),": ",e.status.attempt.reason]})]}),r?i.jsxs("div",{className:"st-stack",children:[i.jsx("div",{className:"st-card st-row",style:{justifyContent:"space-between"},children:i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${r.open.length?"bad":"ok"}`,children:r.open.length?`${D(r.open.length,"finding")} to fix`:"nothing to fix"})," ",i.jsxs("span",{className:"st-sub",children:[r.ran?`${sl[r.ran.ran]??r.ran.ran}, `:"",r.mode==="delta"?"new commits":"the whole branch"," at ",r.head.slice(0,9),", ",Ot(r.at)]})]})}),r.ran&&(r.ran.degraded||r.ran.escalation||r.ran.asked!==r.ran.ran)&&i.jsxs("div",{className:"st-sub",children:["Asked for ",sl[r.ran.asked]??r.ran.asked," (",r.ran.source,"); ran ",sl[r.ran.ran]??r.ran.ran,". ",[r.ran.degraded,r.ran.escalation].filter(Boolean).join("; ")]}),r.open.map(u=>i.jsx(ha,{item:u,canWrite:t&&e.effective.dismissals,onChange:n},u.id)),r.disputed.length>0&&i.jsx("div",{className:"st-sub",style:{marginTop:8},children:"No majority, so these never block:"}),r.disputed.map(u=>i.jsx(ha,{item:u,disputed:!0,canWrite:!1,onChange:n},u.id))]}):!((a=e.status)!=null&&a.attempt)&&i.jsxs("div",{className:"st-empty",children:["No verdict yet. Run ",i.jsx("span",{className:"st-mono",children:"rigour review --reviewer"}),", or push with the reviewer on."]})]})},ha=({item:e,disputed:t,canWrite:n,onChange:r})=>{const[s,l]=z.useState(""),[o,a]=z.useState(!1),[u,d]=z.useState(null),m=async()=>{const v=await Mt("/api/reviewer/dismiss","POST",JSON.stringify({id:e.id,reason:s}));v.ok?r():d((await v.json().catch(()=>({}))).error??`HTTP ${v.status}`)};return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",gap:12},children:[i.jsx("strong",{style:{fontSize:14},children:e.issue}),i.jsx("span",{className:"st-mono st-sub",children:th(e)})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[t?i.jsx("span",{className:"st-chip warn",children:"disputed"}):i.jsx("span",{className:"st-chip",children:e.class}),e.reviewer&&i.jsxs(i.Fragment,{children:[" found by ",e.reviewer.split("+").join(" and ")]})]}),e.consequence&&i.jsxs("div",{style:{marginTop:8,fontSize:14},children:["What goes wrong: ",e.consequence]}),e.evidence&&i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.evidence}),n&&e.kind!=="prior"&&(o?i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:8},children:[i.jsx("input",{"aria-label":"Why it is not a bug",value:s,onChange:v=>l(v.target.value),placeholder:"Why it is not a bug",style:{flex:1,minHeight:36,padding:"0 10px",borderRadius:8,border:"1px solid var(--text-dim)",background:"var(--bg-card)",color:"var(--text-primary)"}}),i.jsx("button",{className:"st-btn",disabled:s.trim().length<5,onClick:m,children:"Dismiss"})]}):i.jsx("button",{className:"st-btn",style:{marginTop:10},onClick:()=>a(!0),children:"Not a bug"})),u&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-chip bad",children:"not dismissed"})," ",u]})]})},us=({label:e,value:t,options:n,disabled:r,withTeam:s,onChange:l})=>{const o=s?[{value:null,label:"Team"},...n]:n,a=t===void 0?null:t;return i.jsx("div",{className:"st-seg",role:"radiogroup","aria-label":e,children:o.map(u=>{const d=JSON.stringify(u.value)===JSON.stringify(a);return i.jsx("button",{type:"button",role:"radio","aria-checked":d,className:d?"on":"",disabled:r,onClick:()=>!d&&l(u.value),children:u.label},u.label)})})},rh={flag:"this run",env:"environment",user:"yours",team:"team"};function sh(e,t){return e.key==="mode"?t.source.mode:e.key==="panel"?t.source.panel:e.key==="escalate"&&(t.required.panel||t.required.mode)?"team":e.user&&e.user.value!==void 0?"user":"team"}const ll=[{value:!0,label:"on"},{value:!1,label:"off"}],ma=[{value:"single",label:"one judge"},{value:"cross",label:"one, another vendor"},{value:"full",label:"one per vendor"}],lh=({data:e,canWrite:t,saving:n,onSave:r,onSaveTeam:s})=>{const[l,o]=z.useState(!1),a=e.effective,u=e.team,d=a.required.panel||a.required.mode,m=[{key:"enabled",label:"Review at push",help:"Ask the reviewer when you push a branch that has an open pull request.",effective:a.enabled?"on":"off",user:{value:e.user.enabled,options:ll},team:{value:u.enabled??!1,options:ll}},{key:"mode",label:"Mode",help:"One judge; one from a vendor that did not write the code; or one judge per vendor (up to Judges), findings merged.",effective:a.mode,user:{value:e.user.mode,options:ma},team:{value:u.mode??"single",options:ma},locked:a.required.mode?"your team requires at least this":void 0},{key:"mode_required",label:"Required for everyone",help:"No person or run may review with fewer judges than the team's, in CI or anywhere.",effective:a.required.mode?"yes":"no",team:{value:u.mode_required??!1,options:[{value:!0,label:"yes"},{value:!1,label:"no"}]}},{key:"panel",label:"Panel",help:"Judges cross-examine what only one of them found; only what a majority confirms blocks. Required: no one may turn it off.",effective:a.panel?"on":"off",user:{value:e.user.panel,options:ll},team:{value:u.panel??"off",options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}]},locked:a.required.panel?"your team requires the panel":void 0},{key:"dismissals",label:"Dismissals",help:'Whether people may mark a reviewer finding "not a bug". Off: a wrong finding is fixed by improving the reviewer, a right one by fixing the code.',effective:a.dismissals?"allowed":"off",team:{value:u.dismissals??!1,options:[{value:!0,label:"allowed"},{value:!1,label:"off"}]}},{key:"judges",label:"Judges",help:"How many judges a full or panel review uses, each from a different vendor. Three give a real majority.",effective:String(a.judges),user:{value:e.user.judges,options:[{value:2,label:"2"},{value:3,label:"3"}]},team:{value:u.judges??2,options:[{value:2,label:"2"},{value:3,label:"3"}]}},{key:"escalate",label:"When to add judges",help:"Always, or only for a risky change or one a person has reviewed. The backtest shows whether that loses anything.",effective:a.escalate,user:{value:e.user.escalate,options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},team:{value:u.escalate??"always",options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},locked:d?"your team requires every review to be full":void 0}],v=t&&(e.teamFile||l);return i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[i.jsx("strong",{children:"Yours"})," applies to your own runs, in every repository on this machine, and wins over the team's except where the team set a floor. ",i.jsx("strong",{children:"Team"})," is"," ",e.teamFile?i.jsxs(i.Fragment,{children:["in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": a change here edits the file, and you commit it"]}):i.jsxs(i.Fragment,{children:["Rigour's defaults: this repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"})]}),".",!t&&" Open Studio from the link the terminal printed to change settings here."]}),t&&!e.teamFile&&!l&&i.jsxs("div",{className:"st-card st-row",style:{justifyContent:"space-between",marginBottom:12},children:[i.jsxs("span",{className:"st-sub",children:["Setting team defaults creates a ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": from then on this repository uses the team setup."]}),i.jsx("button",{className:"st-btn",onClick:()=>o(!0),children:"Set team defaults"})]}),i.jsx("div",{className:"st-stack",children:m.map(h=>i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:h.label}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:h.help})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:h.effective})," ",i.jsxs("span",{className:"st-sub",children:["· ",rh[sh(h,a)]]}),h.locked&&i.jsxs("span",{title:h.locked,"aria-label":h.locked,children:[" ",i.jsx(as,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),h.user?i.jsx(us,{label:`Your ${h.label}`,withTeam:!0,disabled:!t||n!==null,value:h.user.value,options:h.user.options,onChange:y=>r({[h.key]:y})}):i.jsx("span",{className:"st-sub",children:"set by the team only"}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(us,{label:`Team ${h.label}`,disabled:!v||n!==null,value:h.team.value,options:h.team.options,onChange:y=>s({[h.key]:y},!e.teamFile)})]})]},h.key))}),i.jsx(ih,{data:e}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(h=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",h]},h))})]})},Dc=({diff:e})=>i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{style:{fontSize:14},children:"rigour.yml changed"}),i.jsx("span",{className:"st-sub",children:"Commit it so the change reaches your team."})]}),i.jsx("pre",{className:"st-code",style:{marginTop:8},children:e.split(`
|
|
166
|
-
`).map((t,n)=>i.jsx("div",{className:`st-ln ${t.startsWith("+")?"add":t.startsWith("-")?"del":""}`,children:t},n))})]}),ih=({data:e})=>{var s;const t=((s=e.status)==null?void 0:s.today)??{runs:0,usd:0},{max_runs_per_day:n,max_usd_per_day:r}=e.effective;return i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("div",{style:{fontSize:15},children:"Today in this repository"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:[D(t.runs,"agent run"),n!==void 0?` of ${n} allowed`:"",t.usd||r!==void 0?`, $${t.usd.toFixed(2)} reported${r!==void 0?` of $${r.toFixed(2)}`:""}`:"","."," ",n===void 0&&r===void 0?i.jsxs(i.Fragment,{children:["No daily cap: set ",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"})," or ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"})," in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),"."]}):"Past a cap, reviews are skipped until tomorrow (or cannot run, where your team requires the reviewer)."]})]})},oh=({data:e})=>{const t=new Set(e.available.filter(r=>r.installed&&e.effective.reviewers.includes(r.name)).map(r=>r.vendor)).size,n=e.effective.required.panel||e.effective.required.mode;return i.jsxs("section",{style:{marginTop:20},children:[i.jsx("h3",{style:{margin:"0 0 6px",fontSize:15,fontWeight:600},children:"Agent CLIs on this machine"}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px"},children:["The reviewer uses their own logins: no API key. ",t>=3?"Enough vendors for three judges.":t===2?"Enough for two judges; a third vendor, listed in the reviewers, allows three.":n?"Your team requires two judges from different vendors: with one, the review cannot run until another is installed.":"Two judges need two vendors; with one, the review runs with one judge and says so."]}),i.jsx("div",{className:"st-row",style:{flexWrap:"wrap",gap:8},children:e.available.map(r=>i.jsxs("span",{className:`st-chip ${r.installed?"ok":""}`,children:[r.binary,r.installed?` ${r.version??""}`:": not installed"]},r.name))})]})};function Hc(){return ge("/api/reviewer")}const ah=()=>{const{data:e,error:t,reload:n}=Hc();return t?i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's verdict: ",t,"."]}):e?i.jsx(nh,{data:e,canWrite:Es(),onChange:n}):i.jsx("div",{className:"st-sub",children:"Loading…"})},uh=()=>{const{data:e,error:t,reload:n}=Hc(),[r,s]=z.useState(null),[l,o]=z.useState(null),[a,u]=z.useState(null);if(t)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's settings: ",t,"."]});if(!e)return i.jsx("div",{className:"st-sub",children:"Loading…"});const d=async(m,v,h)=>{s(h),o(null);const y=await Mt(m,"POST",JSON.stringify(v)),w=await y.json().catch(()=>({}));y.ok?m.endsWith("/team")&&u(w.diff??null):o(w.error??`HTTP ${y.status}`),s(null),n()};return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:"The reviewer"}),i.jsx("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:"A second opinion from other AI models, before a person reviews. Off until your team or you turn it on. With two or three judges from different vendors, a finding blocks only when most of them agree and it names what goes wrong."}),i.jsx(lh,{data:e,canWrite:Es(),saving:r,onSave:m=>d("/api/reviewer/settings",m,Object.keys(m)[0]),onSaveTeam:(m,v)=>d("/api/reviewer/team",{patch:m,create:v},`team:${Object.keys(m)[0]}`)}),l&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:l})]}),a&&i.jsx(Dc,{diff:a}),i.jsx(oh,{data:e})]})},ch=e=>e==="agent"?"your agent":e==="human"?"you":e.replace(/^byok:/,""),dh=()=>{const{data:e,error:t}=ge("/api/pre-pr-review");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load reviews: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Review before the PR"}),i.jsx("p",{className:"st-lead",children:"What still stands between this branch and a person's review: the reviewer's verdict, then the risky functions your agent checked."}),i.jsx(ah,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Risky functions your agent checks"}),i.jsxs("p",{className:"st-sub",style:{margin:0,lineHeight:1.6},children:["Rigour picks the riskiest changed functions and asks specific questions about them. Your agent answers with its own model, or you do.",e.reviewed.total>0&&` So far: ${D(e.reviewed.total,"function")} reviewed, ${e.reviewed.fixed} fixed, ${e.reviewed.noIssue} with no issue.`]}),i.jsxs("section",{style:{marginTop:24},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Waiting"}),e.pending.length===0?i.jsx("div",{className:"st-empty",children:"No risky function in the current changes is waiting."}):i.jsx("div",{className:"st-stack",children:e.pending.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{className:"st-mono",style:{fontSize:14},children:n.function}),i.jsxs("span",{className:"st-mono st-sub",children:[n.file,":",n.start]})]}),i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:n.questions.map(r=>i.jsx("li",{children:r},r))})]},`${n.file}:${n.function}`))})]}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Checked"}),e.recent.length===0?i.jsx("div",{className:"st-empty",children:"Nothing reviewed yet. Agents review through rigour_review; you can run rigour review-task."}):i.jsx("div",{className:"st-stack",children:e.recent.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${n.verdict==="fixed"?"ok":""}`,children:n.verdict==="fixed"?"fixed":n.verdict==="no_issue"?"no issue":n.verdict})," ",i.jsx("strong",{className:"st-mono",style:{fontSize:14,marginLeft:8},children:n.function})]}),i.jsxs("span",{className:"st-sub",children:[ch(n.reviewer)," · ",Ot(n.at)]})]}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:n.file}),n.note&&i.jsx("div",{style:{marginTop:10,fontSize:14,lineHeight:1.6},children:n.note})]},`${n.file}:${n.function}:${n.at}`))})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:24},children:["Model reviews with your own key: ",e.spend.runs===0?"none run here":`${D(e.spend.runs,"run")}, ${fh(e.spend)}${e.lastModel?`, last with ${e.lastModel}`:""}`,"."]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})};function fh(e){return e.runs-e.unpricedRuns===0?"cost not reported by the provider":`$${e.costUsd.toFixed(2)} observed${e.unpricedRuns?` (${e.unpricedRuns} without a reported cost)`:""}`}const va={stopped:{label:"blocked",cls:"warn"},fixed:{label:"fixed",cls:"ok"},checked:{label:"checked",cls:""},reviewed:{label:"reviewed",cls:""},taught:{label:"told",cls:""},pr:{label:"PR",cls:"warn"}},il=e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),ph=e=>new Date(e).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"}),hh=()=>{const{data:e,error:t}=ge("/api/activity");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load activity: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Activity"}),i.jsx("p",{className:"st-lead",children:"Each block is one stretch of agent work. What Rigour blocked or got fixed is listed; routine checks fold away."}),e.sessions.length===0?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"Nothing yet. Activity appears as agents edit code, ask for reviews and finish their work."}):i.jsx("div",{className:"st-stack",style:{marginTop:24,gap:16},children:e.sessions.map(n=>i.jsx(mh,{session:n},n.start))})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})},mh=({session:e})=>{const[t,n]=z.useState(!1),r=e.counts,s=r.fixed+r.reviewedFixed,l=[s&&`${D(s,"problem")} fixed`,r.stopped&&`${D(r.stopped,"edit")} blocked`,r.pr&&`${D(r.pr,"branch review")} with findings`,r.reviewed&&`${D(r.reviewed,"risky function")} reviewed${r.reviewed-r.reviewedFixed?` (${r.reviewed-r.reviewedFixed} fine)`:""}`,r.checked&&`${D(r.checked,"edit")} checked clean`,r.taught&&`lessons given ${D(r.taught,"time")}`].filter(Boolean).join(" · ");return i.jsxs("section",{className:"st-card",style:{padding:0},children:[i.jsxs("div",{style:{padding:"16px 20px",borderBottom:e.highlights.length||t?"1px solid var(--border-dim)":0},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("strong",{children:[ph(e.start),", ",il(e.start),e.start!==e.end?`–${il(e.end)}`:""]}),e.rest.length>0&&i.jsx("button",{className:"st-btn",onClick:()=>n(!t),type:"button",style:{minHeight:32},children:t?"Hide routine":`Show ${D(e.rest.length,"routine item")}`})]}),i.jsx("div",{className:"st-sub",style:{marginTop:6},children:l})]}),[...e.highlights,...t?e.rest:[]].map((o,a)=>i.jsxs("div",{className:"st-row",style:{padding:"12px 20px",borderTop:a?"1px solid var(--border-dim)":0,alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"ok":va[o.kind].cls}`,style:{minWidth:70,textAlign:"center"},children:o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"fixed":va[o.kind].label}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:14,lineHeight:1.5},children:tr(o.text)}),o.detail&&i.jsx("div",{className:"st-sub",style:{marginTop:3,lineHeight:1.5},children:o.detail})]}),i.jsx("span",{className:"st-sub",style:{whiteSpace:"nowrap"},children:il(o.at)})]},`${o.at}-${a}`))]})},vh={flag:"this run",env:"environment",user:"yours",team:"team"},gh=({text:e,data:t,canWrite:n,saving:r,problem:s,diff:l,onSave:o})=>{const a=t.effective,u=a.required?`your team requires the ${e.name}`:void 0;return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:e.title}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[e.lead,!n&&" Open Studio from the link the terminal printed to change it here."]}),i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:e.row}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:e.rowHelp})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:a.enabled?"on":"off"})," ",i.jsxs("span",{className:"st-sub",children:["· ",vh[a.source]]}),u&&i.jsxs("span",{title:u,"aria-label":u,children:[" ",i.jsx(as,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),i.jsx(us,{label:`Your ${e.name}`,withTeam:!0,disabled:!n||r,value:t.user??void 0,options:[{value:!0,label:"on"},{value:!1,label:"off"}],onChange:d=>o({user:d})}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(us,{label:`Team ${e.name}`,disabled:!n||r,value:t.team,options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}],onChange:d=>o({team:d,create:!t.teamFile})})]})]}),!t.teamFile&&n&&i.jsxs("div",{className:"st-sub",style:{marginTop:8},children:["This repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": setting the team's value creates one, and from then on it uses the team setup."]}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(d=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",d]},d))}),s&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:s})]}),l&&i.jsx(Dc,{diff:l})]})},ga={goal:{title:"The goal check",lead:i.jsxs(i.Fragment,{children:["Checks a change against what its pull request says it is for: files outside its ",i.jsx("span",{className:"st-mono",children:"Scope"})," or inside ",i.jsx("span",{className:"st-mono",children:"Out of scope"}),", and"," ",i.jsx("span",{className:"st-mono",children:"Done when"})," items naming a file it never touched, block. No model; a description without these sections is never checked."]}),row:"Check the goal",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--goal"})," and ",i.jsx("span",{className:"st-mono",children:"--no-goal"})," choose for one run."]}),name:"goal check"},outcomes:{title:"The outcome loop",lead:i.jsxs(i.Fragment,{children:["What happened after each pull request merged: CI on its merge commit, later commits and fixes on its files, a revert. Read with"," ",i.jsx("span",{className:"st-mono",children:"rigour outcomes"}),", one GitHub call per merged pull request until its window closes, then never again."]}),row:"Read outcomes",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--outcomes"})," and ",i.jsx("span",{className:"st-mono",children:"--no-outcomes"})," choose for one run."]}),name:"outcome loop"}},ya=({name:e})=>{const t=`/api/switches/${e}`,{data:n,error:r,reload:s}=ge(t),[l,o]=z.useState(!1),[a,u]=z.useState(null),[d,m]=z.useState(null);if(r)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the ",ga[e].name,": ",r,"."]});if(!n)return i.jsx("div",{className:"st-sub",children:"Loading…"});const v=async h=>{o(!0),u(null);const y=await Mt(t,"POST",JSON.stringify(h)),w=await y.json().catch(()=>({}));y.ok?"team"in h&&m(w.diff??null):u(w.error??`HTTP ${y.status}`),o(!1),s()};return i.jsx(gh,{text:ga[e],data:n,canWrite:Es(),saving:l,problem:a,diff:d,onSave:v})},yh={working:"ok","set up":"",broken:"bad",missing:"warn"},xh=()=>{const{data:e,error:t}=ge("/api/setup");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't check setup: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Setup"}),i.jsxs("p",{className:"st-lead",children:["What runs in this repository, and whether Rigour saw it work this week. The same checks run with ",i.jsx("span",{className:"st-mono",children:"rigour doctor"}),"."]}),i.jsx("div",{className:"st-stack",style:{marginTop:24},children:e.checks.map(n=>i.jsxs("div",{className:"st-card st-row",children:[i.jsx("span",{className:`st-chip ${yh[n.state]}`,style:{minWidth:72,textAlign:"center"},children:n.state}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15},children:n.name}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:n.detail})]}),n.fix&&n.state!=="working"&&i.jsx("span",{className:"st-mono st-sub",children:n.fix})]},n.id))}),i.jsx(ya,{name:"goal"}),i.jsx(ya,{name:"outcomes"}),i.jsx(uh,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Who double-checks risky code"}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))",marginTop:12},children:[i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your agent's own model"}),i.jsx("span",{children:"Free"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["Your agent calls ",i.jsx("span",{className:"st-mono",children:"rigour_review"})," and answers Rigour's questions with the model you already pay for. No key."]})]}),i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your own API key"}),i.jsx("span",{children:"Pay per use"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["For code written without an agent, and for PR reviews. ",i.jsx("span",{className:"st-mono",children:"rigour settings set-key"}),"; keys are never shown here."]})]})]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Checking…"})})},xa=60,wh=({request:e,onClose:t})=>{const[n,r]=z.useState(xa),[s,l]=z.useState(null);z.useEffect(()=>{const a=e.timestamp?Date.parse(e.timestamp):Date.now(),u=()=>r(Math.max(0,xa-Math.floor((Date.now()-a)/1e3)));u();const d=window.setInterval(u,1e3);return()=>window.clearInterval(d)},[e.timestamp]);const o=async a=>{const u=await Mt("/api/arbitrate","POST",JSON.stringify({requestId:e.requestId||e.id,decision:a}));u.ok?t():l(u.status===403?"Studio was opened without the link from your terminal, or the request expired.":`That didn't go through (HTTP ${u.status}).`)};return i.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Approve a command",style:{position:"fixed",inset:0,background:"rgba(15, 17, 22, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:i.jsxs("div",{className:"st-card",style:{width:"min(560px, calc(100vw - 32px))",padding:24},children:[i.jsx("strong",{style:{fontSize:18},children:"Your agent wants to run a command"}),i.jsx("pre",{className:"st-code st-mono",style:{padding:"12px 14px",marginTop:14,whiteSpace:"pre-wrap"},children:e.command}),e.firewallDecision&&e.firewallDecision!=="allow"&&i.jsxs("div",{className:"st-sub",style:{marginTop:10},children:["Rigour's pre-check: ",e.firewallDecision,e.firewallReason?`: ${e.firewallReason}`:""]}),i.jsx("div",{className:"st-sub",style:{marginTop:10},children:n>0?`Denied automatically in ${n}s if nobody answers.`:"Time ran out: the request was denied."}),s&&i.jsx("div",{className:"st-sub",style:{marginTop:10,color:"var(--status-error)"},children:s}),i.jsxs("div",{className:"st-row",style:{marginTop:18,justifyContent:"flex-end"},children:[i.jsx("button",{className:"st-btn",onClick:t,type:"button",children:"Close"}),i.jsx("button",{className:"st-btn",onClick:()=>o("reject"),type:"button",disabled:n===0,children:"Deny"}),i.jsx("button",{className:"st-btn primary",onClick:()=>o("approve"),type:"button",disabled:n===0,children:"Allow"})]})]})})},wa="rigour-theme-v2",ol=[{id:"week",label:"This week",icon:Cp,page:e=>i.jsx(Wp,{onNavigate:e})},{id:"progress",label:"Progress",icon:Rp,page:()=>i.jsx(Yp,{})},{id:"only",label:"Only Rigour",icon:Mp,page:()=>i.jsx(qp,{})},{id:"learns",label:"How it learns",icon:Np,page:()=>i.jsx(Zp,{})},{id:"context",label:"Agent context",icon:kp,page:()=>i.jsx(bp,{})},{id:"reviews",label:"Review",icon:Ep,page:()=>i.jsx(dh,{})},{id:"activity",label:"Activity",icon:ti,page:()=>i.jsx(hh,{})},{id:"setup",label:"Setup",icon:$p,page:()=>i.jsx(xh,{})}],kh=6e4;function jh(){const[e,t]=z.useState(()=>{try{return localStorage.getItem(wa)||"light"}catch{return"light"}}),[n,r]=z.useState("week"),[s,l]=z.useState(null),[o,a]=z.useState("connecting"),[u,d]=z.useState(null),[m,v]=z.useState(null),[h,y]=z.useState(!0),[w,k]=z.useState(!1),O=z.useCallback(async()=>{y(!0);try{const c=await fetch("/api/health"),p=await c.json();v(c.ok?p:{error:p.error||`HTTP ${c.status}`})}catch(c){v({error:c instanceof Error?c.message:String(c)})}finally{y(!1)}},[]);z.useEffect(()=>{const c=new EventSource("/api/events");return c.onopen=()=>a("live"),c.onerror=()=>a("offline"),c.onmessage=p=>{try{const g=JSON.parse(p.data),j=!g.timestamp||Date.now()-Date.parse(g.timestamp)<kh;g.type==="interception_requested"&&j&&d(g)}catch{}},fetch("/api/info").then(p=>p.json()).then(l).catch(()=>l(null)),()=>c.close()},[]),z.useEffect(()=>{document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(wa,e)}catch{}},[e]);const f=ol.find(c=>c.id===n)??ol[0];return i.jsxs("div",{className:"studio",children:[i.jsxs("aside",{className:"sidebar glass-shell",children:[i.jsxs("div",{className:"brand",children:[i.jsx("div",{className:"logo-icon",children:i.jsx(zp,{size:18})}),i.jsx("span",{children:"Rigour"}),(s==null?void 0:s.studioVersion)&&i.jsxs("div",{className:"version-pill",children:["v",s.studioVersion]})]}),i.jsx("nav",{children:ol.map(c=>i.jsxs("button",{className:`nav-item ${c.id===f.id?"active":""}`,onClick:()=>r(c.id),type:"button",children:[i.jsx(c.icon,{size:18}),i.jsx("span",{children:c.label})]},c.id))}),s&&i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"trust-indicator",title:s.teamSync?"Lessons your team promotes are shared through your team store":"Nothing leaves this machine",children:[i.jsx(as,{size:14}),i.jsx("span",{children:s.teamSync?"Synced with your team":"Stored on this machine"})]})})]}),i.jsxs("main",{className:"main-content",children:[i.jsxs("header",{className:"glass-shell",children:[i.jsx("div",{className:"header-left",children:s&&i.jsxs("div",{className:"project-identity",children:[i.jsx(Sp,{size:14,className:"folder-icon"}),i.jsx("span",{className:"project-name",children:s.projectName}),s.projectVersion&&i.jsxs("span",{className:"project-version-pill",children:["v",s.projectVersion]}),s.branch&&i.jsx("span",{className:"project-version-pill",title:"Current branch",children:s.branch}),i.jsx("span",{className:"project-path",children:s.projectPath})]})}),i.jsxs("div",{className:"header-right",children:[i.jsx("button",{type:"button",className:"connection-status",onClick:()=>{k(c=>!c),O()},"aria-expanded":w,title:"Studio receives Rigour's events live",children:i.jsxs("div",{className:`status-indicator ${o}`,children:[i.jsx("div",{className:"pulse-emitter"}),i.jsx("span",{children:o==="live"?"Live":o==="offline"?"Offline":"Connecting"})]})}),i.jsx("button",{className:"theme-toggle",onClick:()=>t(c=>c==="dark"?"light":"dark"),"aria-label":"Toggle theme",type:"button",children:e==="dark"?i.jsx(Pp,{size:18}):i.jsx(Tp,{size:18})})]})]}),w&&i.jsxs("div",{className:"health-popover",children:[i.jsxs("div",{className:"health-popover-title",children:[i.jsx("strong",{children:"Rigour system health"}),i.jsx("button",{type:"button",onClick:()=>k(!1),"aria-label":"Close health",children:i.jsx(Ip,{size:15})})]}),i.jsx(Dp,{data:m,loading:h,stale:!1,onRetry:O})]}),i.jsxs("div",{className:"view-container",children:[!Es()&&i.jsxs("div",{className:"overview-banner",role:"note",children:[i.jsx(as,{size:18}),i.jsxs("div",{children:[i.jsx("strong",{children:"Read-only"}),i.jsx("p",{children:"Open Studio from the link printed in your terminal to dismiss findings, keep lessons or answer an approval."})]})]}),i.jsx(Fp,{resetKey:f.id,children:i.jsx("div",{className:"full-view",children:f.page(r)})})]})]}),u&&i.jsx(wh,{request:u,onClose:()=>d(null)})]})}Ap();al.createRoot(document.getElementById("root")).render(i.jsx(ii.StrictMode,{children:i.jsx(jh,{})}));
|
|
165
|
+
*/const Ip=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class Fp extends oi.Component{constructor(){super(...arguments);bi(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n}}componentDidUpdate(n){n.resetKey!==this.props.resetKey&&this.state.error&&this.setState({error:null})}render(){return this.state.error?i.jsxs("div",{className:"empty-state glass-card",role:"alert",children:[i.jsx(Lp,{size:48}),i.jsx("h3",{children:"This view could not be displayed"}),i.jsx("p",{children:this.state.error.message||"Studio received data it could not render."}),i.jsxs("button",{className:"refresh-btn",type:"button",onClick:()=>this.setState({error:null}),children:[i.jsx(Oc,{size:16})," Retry view"]})]}):this.props.children}}function Dt({icon:e,label:t,status:n,detail:r}){const s=["ready","active","online","local"].includes(n)?"ready":["warming","idle","missing"].includes(n)?"warming":"degraded";return i.jsxs("div",{className:`health-item ${s}`,children:[i.jsx(e,{size:15,"aria-hidden":"true"}),i.jsxs("span",{children:[i.jsx("strong",{children:t}),i.jsx("small",{children:r})]}),i.jsx("span",{className:"health-state",children:n})]})}function Dp({data:e,loading:t,stale:n,onRetry:r}){var l,o,a,u,d,m,v,h,y,w,k,O,f,c,p,g,j;if(t&&!e)return i.jsxs("div",{className:"system-health loading",children:[i.jsx(ni,{size:16,className:"spinning"})," Checking system health…"]});if(!e||e.error)return i.jsxs("div",{className:"system-health unavailable",role:"alert",children:[i.jsx(ca,{size:16})," Health unavailable",i.jsxs("button",{type:"button",onClick:r,children:[i.jsx(Oc,{size:14})," Retry"]})]});const s=Object.values(((l=e.caches)==null?void 0:l.layers)??{}).filter(C=>C>0).length;return i.jsxs("section",{className:`system-health ${n?"stale":""}`,"aria-label":"System health",children:[i.jsx(Dt,{icon:jp,label:"Index",status:((o=e.index)==null?void 0:o.status)??"missing",detail:`${((a=e.index)==null?void 0:a.patterns)??0} patterns · ${((u=e.index)==null?void 0:u.files)??0} files`}),i.jsx(Dt,{icon:Op,label:"Graph",status:((d=e.graph)==null?void 0:d.status)??"missing",detail:`${((m=e.graph)==null?void 0:m.nodes)??0} nodes · ${((v=e.graph)==null?void 0:v.edges)??0} edges`}),i.jsx(Dt,{icon:wp,label:"Semantic",status:((h=e.semantic)==null?void 0:h.status)??"disabled",detail:((y=e.semantic)==null?void 0:y.message)??"Background enrichment"}),i.jsx(Dt,{icon:_p,label:"Cache",status:((w=e.caches)==null?void 0:w.status)??"warming",detail:`${s}/4 layers populated`}),i.jsx(Dt,{icon:ni,label:"Learning",status:((k=e.learning)==null?void 0:k.status)??"idle",detail:`${((O=e.learning)==null?void 0:O.observations)??0} interactions · ${((f=e.learning)==null?void 0:f.total)??0} lessons`}),i.jsx(Dt,{icon:ca,label:"Storage",status:((c=e.storage)==null?void 0:c.connectivity)??"local",detail:((p=e.storage)==null?void 0:p.connectivity)==="offline"?`${((g=e.storage)==null?void 0:g.queuedChanges)??0} queued`:((j=e.storage)==null?void 0:j.mode)??"local"})]})}const $c="rigour-studio-key",Hp="x-rigour-studio-key";function Ap(){const e=window.location.hash.match(/(?:^#|&)key=([a-f0-9]+)/);if(e){try{sessionStorage.setItem($c,e[1])}catch{}window.history.replaceState(null,"",window.location.pathname+window.location.search)}}function Es(){return Ic().length>0}function Ic(){try{return sessionStorage.getItem($c)??""}catch{return""}}function Mt(e,t,n,r="application/json"){const s={[Hp]:Ic()};return n!==void 0&&(s["Content-Type"]=r),fetch(e,{method:t,headers:s,body:n})}const Fc={edit:"while the agent was writing",review:"when the agent checked its work",stop:"before the agent said done",pr:"at the pull request"};function Ot(e,t=Date.now()){const n=Math.round((t-Date.parse(e))/6e4);if(!Number.isFinite(n))return"";if(n<60)return`${Math.max(1,n)} min ago`;const r=Math.round(n/60);return r<48?`${r} h ago`:new Date(e).toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric"})}function D(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function ge(e){const[t,n]=z.useState(null),[r,s]=z.useState(null),l=z.useCallback(()=>{fetch(e).then(async o=>o.ok?n(await o.json()):s(`HTTP ${o.status}`)).catch(o=>s(o instanceof Error?o.message:String(o)))},[e]);return z.useEffect(l,[l]),{data:t,error:r,reload:l}}function tr(e){return e.split(/(`[^`]+`)/g).map((t,n)=>t.startsWith("`")&&t.endsWith("`")&&t.length>2?oi.createElement("code",{key:n,className:"st-mono st-inline-code"},t.slice(1,-1)):t)}const da="rigour-intro-hidden",Wp=({onNavigate:e})=>{const{data:t,error:n,reload:r}=ge("/api/week"),[s,l]=z.useState(null),[o,a]=z.useState(()=>{try{return localStorage.getItem(da)!=="1"}catch{return!0}});if(n)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load this week: ",n,"."]})});if(!t)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const u=()=>{try{localStorage.setItem(da,"1")}catch{}a(!1)},d=t.needs;return i.jsxs("div",{className:"st-page",children:[o&&i.jsx(Up,{onHide:u}),i.jsx("h1",{className:"st-h1",children:d.length===0?"Nothing needs you.":`${D(d.length,"thing needs","things need")} you.`}),i.jsx("p",{className:"st-lead",children:t.stopped.total>0?`${D(t.stopped.total,"problem")} stopped and fixed before a pull request this week.`:t.recordingSince?"Nothing was stopped this week.":"Rigour has not recorded any agent work in this repository yet."}),d.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:18},children:d.map(m=>i.jsx(Vp,{need:m,onDone:r},`${m.rule}:${m.file}`))}),i.jsxs("div",{className:"st-grid",children:[i.jsxs("section",{children:[i.jsx("h2",{style:{margin:"0 0 14px",fontSize:18,fontWeight:600},children:"What Rigour stopped this week"}),t.stories.length===0?i.jsx("div",{className:"st-empty",children:"When an agent fixes something Rigour caught, it appears here with the code change."}):i.jsx("div",{className:"st-stack",children:t.stories.map(m=>i.jsx(Bp,{story:m,open:s===m.id,onToggle:()=>l(s===m.id?null:m.id)},m.id))})]}),i.jsxs("aside",{className:"st-side",children:[i.jsxs("div",{className:"st-card",children:[i.jsx("div",{className:"st-big",children:t.stopped.total}),i.jsx("div",{style:{fontSize:14,marginTop:6},children:"stopped before a PR"}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:[t.stopped.byStage.edit," while writing · ",t.stopped.byStage.review," on review · ",t.stopped.byStage.stop," before done"]}),i.jsx(Qp,{data:t})]}),i.jsxs("div",{className:"st-card",children:[i.jsx("div",{style:{fontSize:15,fontWeight:600},children:"Is it noisy?"}),i.jsx("div",{style:{fontSize:14,marginTop:8,lineHeight:1.6},children:t.raised===0?"Nothing raised this week.":`Rigour raised ${D(t.raised,"problem")} this week. You overruled ${t.overruled}.`}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:'Say "not a bug" once and Rigour stops raising it.'})]}),i.jsx("button",{className:"st-btn",onClick:()=>e("learns"),type:"button",children:"See how it learns"}),t.recordingSince&&i.jsxs("div",{className:"st-sub",children:["Recording since ",new Date(t.recordingSince).toLocaleDateString()]})]})]})]})},Up=({onHide:e})=>i.jsxs("section",{className:"st-card",style:{marginBottom:28},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",marginBottom:16},children:[i.jsx("strong",{children:"How Rigour works"}),i.jsx("button",{className:"st-btn",onClick:e,type:"button",children:"Got it"})]}),i.jsxs("div",{className:"st-steps",children:[i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"1"}),i.jsxs("div",{children:["Your AI agent writes code",i.jsx("div",{className:"st-sub",children:"Claude Code, Cursor, any agent."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"2"}),i.jsxs("div",{children:["Rigour checks every change",i.jsx("div",{className:"st-sub",children:"It stops the agent only on problems it can prove; the agent fixes them."})]})]}),i.jsxs("div",{className:"st-step",children:[i.jsx("span",{className:"st-num",children:"3"}),i.jsxs("div",{children:["Your PR arrives clean",i.jsx("div",{className:"st-sub",children:"A short PR review catches the rest. Every fix teaches Rigour your code."})]})]})]})]}),Vp=({need:e,onDone:t})=>{const[n,r]=z.useState("idle"),s=async()=>{const o=window.prompt("Why is this not a bug? Rigour keeps the reason with the dismissal.");if(!(o!=null&&o.trim())||!e.key)return;(await Mt("/api/dismiss","POST",JSON.stringify({key:e.key,reason:o}))).ok?t():r("failed")},l=async()=>{try{await navigator.clipboard.writeText(`Rigour found a problem you introduced: ${e.title} in ${e.file}. Fix it, then run rigour review.`),r("copied")}catch{r("failed")}};return i.jsxs("div",{className:"st-need",children:[i.jsxs("div",{className:"st-row",children:[i.jsx("span",{className:"st-chip warn",children:"open"}),i.jsxs("span",{className:"st-sub",children:["found ",e.stage?Fc[e.stage]:""," · ",Ot(e.openedAt)]})]}),i.jsx("div",{style:{fontSize:17,marginTop:10,lineHeight:1.5},children:e.title}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.file}),i.jsxs("div",{className:"st-row",style:{marginTop:14,flexWrap:"wrap"},children:[i.jsx("button",{className:"st-btn primary",onClick:l,type:"button",children:n==="copied"?"Copied: paste it to your agent":"Copy for my agent"}),e.key&&i.jsx("button",{className:"st-btn",onClick:s,type:"button",children:"It's fine, not a bug"}),n==="failed"&&i.jsx("span",{className:"st-sub",children:"That didn't work. Open Studio from the link in your terminal and try again."})]})]})},Bp=({story:e,open:t,onToggle:n})=>i.jsxs("div",{children:[i.jsxs("button",{className:"st-story",onClick:n,type:"button","aria-expanded":t,children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("span",{className:"st-chip",children:Fc[e.stage]}),i.jsx("span",{className:"st-sub",children:Ot(e.at)})]}),i.jsx("div",{style:{fontSize:16,lineHeight:1.55,marginTop:10},children:tr(e.title)}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-mono",children:e.file})," · fixed by the agent"]})]}),t&&i.jsxs("div",{className:"st-story-body",children:[e.diff.length>0&&i.jsx("div",{className:"st-code st-mono",children:e.diff.map((r,s)=>i.jsx("span",{className:`st-ln ${r[0]==="+"?"add":r[0]==="-"?"del":""}`,children:r},s))}),e.details&&e.details!==e.title&&i.jsxs("div",{style:{marginTop:e.diff.length?16:0},children:[i.jsx("strong",{style:{fontSize:13},children:e.stage==="review"&&e.rule==="review"?"What the agent fixed":"How Rigour knew"}),i.jsx("div",{className:"st-sub",style:{marginTop:6,lineHeight:1.6},children:tr(e.details)})]})]})]}),Qp=({data:e})=>{const[t,n]=z.useState(!1);if(e.stopped.total===0)return null;const r=`Rigour stopped ${D(e.stopped.total,"problem")} before a pull request this week: ${e.stopped.byStage.edit} while the agent was writing, ${e.stopped.byStage.review} when it checked its work, ${e.stopped.byStage.stop} before it said done. ${e.overruled} of ${e.raised} overruled.`,s=async()=>{try{await navigator.clipboard.writeText(r),n(!0)}catch{}};return i.jsx("button",{className:"st-btn",onClick:s,type:"button",style:{marginTop:14,width:"100%"},children:t?"Copied":"Copy this week"})},Kp=e=>new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}),nl=(e,t)=>e.reduce((n,r)=>n+t(r),0),Yp=()=>{var l;const{data:e,error:t}=ge("/api/progress");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load progress: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.weeks.slice(-4),r=e.weeks.slice(0,-4),s=((l=e.weeks[e.weeks.length-1])==null?void 0:l.lessons)??0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour is shaping this code"}),i.jsxs("p",{className:"st-lead",children:["Last 4 weeks: ",D(nl(n,o=>o.stopped),"problem")," stopped before a PR",r.length?` (${nl(r,o=>o.stopped)} in the 4 weeks before)`:"",", ",D(nl(n,o=>o.repeatsStopped),"repeat mistake")," caught,"," ",D(s,"lesson")," learned so far."]}),i.jsxs("div",{className:"st-stack",style:{marginTop:24},children:[i.jsx(Ht,{title:"Stopped before a PR",hint:"fixed by the agent after Rigour reported it",weeks:e.weeks,value:o=>o.stopped}),i.jsx(Ht,{title:"Repeat mistakes stopped",hint:"a mistake Rigour had already learned, caught again before a PR",weeks:e.weeks,value:o=>o.repeatsStopped}),i.jsx(Ht,{title:"Repeat mistakes that reached a PR",hint:"lower is better",weeks:e.weeks,value:o=>o.repeatsReachedPr,empty:"Shows once branch reviews run on this machine, for example rigour review --base main in a pre-push hook."}),i.jsx(Ht,{title:"Minutes from report to fix",hint:"median; lower is better",weeks:e.weeks,value:o=>o.minutesToFix}),i.jsx(Ht,{title:"Overruled",hint:"findings someone marked not a bug",weeks:e.weeks,value:o=>o.overruled}),i.jsx(Ht,{title:"Lessons learned",hint:"total by the end of each week",weeks:e.weeks,value:o=>o.lessons})]}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Lessons that stopped the most repeats"}),e.topLessons.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. A lesson ranks here once the mistake it describes is caught again and stopped."}):i.jsx("ol",{style:{margin:"12px 0 0",paddingLeft:20,lineHeight:1.6},children:e.topLessons.map(o=>i.jsxs("li",{style:{marginBottom:8},children:[tr(o.text),i.jsxs("div",{className:"st-sub",children:[D(o.stoppedInDevelopment??0,"repeat")," stopped · ",o.scope==="team"?"shared with team":o.scope]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Checks your team acts on"}),e.checks.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:'Each fix and each "not a bug" scores the check that raised it. Scores appear after the first one.'}):i.jsx("div",{className:"st-stack",style:{marginTop:12,gap:8},children:e.checks.map(o=>i.jsxs("div",{className:"st-row",style:{gap:10},children:[i.jsxs("span",{style:{width:44,fontWeight:600},children:[Math.round(o.precision*100),"%"]}),i.jsx("span",{style:{flex:1,fontSize:14},children:o.check}),i.jsxs("span",{className:"st-sub",children:[o.fixed," fixed · ",o.dismissed," overruled"]}),o.muted&&i.jsx("span",{className:"st-chip",children:"quiet"})]},o.check))})]})]})]})},Ht=({title:e,hint:t,weeks:n,value:r,empty:s})=>{const l=n.map(r),o=l.filter(u=>u!==null),a=Math.max(1,...o);return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:e}),i.jsx("span",{className:"st-sub",children:t})]}),o.length===0&&s?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:s}):i.jsx("div",{className:"st-bars",style:{height:90,gap:12},children:n.map((u,d)=>i.jsxs("div",{className:"st-bar",children:[i.jsx("div",{style:{fontSize:12},children:l[d]??"—"}),i.jsx("span",{style:{height:`${l[d]===null?2:Math.max(2,l[d]/a*56)}px`,opacity:l[d]===null?.25:1}}),i.jsx("div",{className:"st-sub",style:{fontSize:11},children:Kp(u.from)})]},u.from))})]})},qp=()=>{const{data:e,error:t}=ge("/api/week"),n=ge("/api/setup").data,r=n==null?void 0:n.checks.some(l=>l.id==="stop"&&l.state!=="missing"&&l.state!=="broken");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const s=e.stories.filter(l=>l.stage==="stop");return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What only Rigour caught"}),i.jsx("p",{className:"st-lead",children:"Counted only where Rigour can show it. A bug stopped before a PR never reached your other reviewers, so it is not counted against them."}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Your agent tried to finish with a bug"}),i.jsx("p",{className:"st-lead",style:{fontSize:14},children:e.agentSaidDone===0&&n&&!r?"The stop hook is not set up in this repository, so Rigour cannot see an agent finish. Run rigour setup.":e.agentSaidDone===0?"This week no agent tried to finish with a problem Rigour could prove.":`This week an agent tried to finish with a problem Rigour proved ${D(e.agentSaidDone,"time")}. Each was fixed before the agent stopped.`}),i.jsx("div",{className:"st-stack",style:{marginTop:14},children:s.map(l=>i.jsxs("div",{className:"st-card st-row",children:[i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15,lineHeight:1.5},children:l.title}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[i.jsx("span",{className:"st-mono",children:l.file})," · ",Ot(l.at)]})]}),i.jsx("span",{className:"st-chip ok",children:"fixed"})]},l.id))})]}),i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:0,fontSize:18,fontWeight:600},children:"Rigour and your other PR reviewers"}),i.jsxs("div",{className:"st-empty",style:{marginTop:14},children:[e.prCatches===null?"No branch reviews recorded on this machine yet.":`Branch reviews here reported ${D(e.prCatches,"problem")} this week.`," ","Side by side with teammates and review bots (both caught it, only Rigour, only them) needs the PR's review comments; it comes with the PR integration."]})]})]})},rl=(e,t=!0)=>t?e===null?"not recorded here":e===1?"1 time":`${e} times`:"—",Xp=({lesson:e,onDecide:t,onDecideReview:n})=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",alignItems:"flex-start"},children:[i.jsx("div",{style:{fontSize:17,lineHeight:1.5,flex:1},children:tr(e.text)}),i.jsx("span",{className:"st-chip",children:e.scope==="team"?"shared with team":e.scope})]}),i.jsxs("div",{className:"st-journey",children:[i.jsxs("div",{style:{background:"var(--bg-surface)"},children:[i.jsx("div",{className:"st-sub",children:"Learned"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:e.learnedFrom})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Agents told"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rl(e.told)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Stopped in development"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rl(e.stoppedInDevelopment,e.origin==="development")})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reached a PR again"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:rl(e.reachedPr,e.origin==="development")})]})]}),e.takenBack&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"taken back"})," ",i.jsx("span",{className:"st-sub",children:e.takenBack.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"Later pull requests a review found repeating it merged and stayed fine. Keep telling agents anyway?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote again"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"rejected"),type:"button",children:"Drop"})]})]}),e.reclassified&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip warn",children:"back to candidate"})," ",i.jsx("span",{className:"st-sub",children:e.reclassified.detail})]}),e.reclassified.evidence.map(r=>i.jsx("div",{className:"st-sub",style:{marginTop:4},children:r},r)),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsx("span",{className:"st-sub",children:"A later fix on its lines used to make this a lesson by itself; now a person decides. Keep telling agents?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.suggested&&i.jsxs("div",{style:{marginTop:14},children:[i.jsxs("div",{children:[i.jsx("span",{className:"st-chip",children:"a later fix changed these lines"})," ",i.jsx("span",{className:"st-sub",children:e.suggested.detail})]}),i.jsxs("div",{className:"st-row",style:{marginTop:10},children:[i.jsxs("span",{className:"st-sub",children:["The pull request (#",e.suggested.pr,") left this point alone, and a later fix changed its lines. If that fix is about this point, the lesson was right."]}),i.jsx("button",{className:"st-btn primary",onClick:()=>n==null?void 0:n(e.id,"accepted"),type:"button",children:"Promote"}),i.jsx("button",{className:"st-btn",onClick:()=>n==null?void 0:n(e.id,"dismissed"),type:"button",children:"Dismiss"})]})]}),e.canDecide&&!e.takenBack&&!e.suggested&&!e.reclassified&&i.jsxs("div",{className:"st-row",style:{marginTop:14},children:[i.jsx("span",{className:"st-sub",children:e.scope==="team"?"Shared by a teammate. Give it to everyone's agents?":"Seen once. Keep it so your agents get told?"}),i.jsx("button",{className:"st-btn primary",onClick:()=>t(e.id,e.scope==="team"?"promoted":"validated"),type:"button",children:e.scope==="team"?"Share with team":"Keep"}),i.jsx("button",{className:"st-btn",onClick:()=>t(e.id,"rejected"),type:"button",children:"Drop"})]})]}),fa=e=>`${e.count} of ${e.of}${e.rate===null?"":` (${Math.round(e.rate*100)}%)`}`,Gp=({numbers:e})=>i.jsxs("section",{className:"st-card",style:{margin:"0 0 24px"},children:[i.jsx("strong",{children:"After the merge"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[e.records.merged," merged pull requests read on this machine; ",e.records.settled," settled, ",e.records.unsettled," with the window still open."]}),i.jsxs("div",{className:"st-journey",style:{marginTop:10},children:[i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"CI regressed on the merge"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[fa(e.settled.ciRegressed),e.settled.ciUnknown?`, ${e.settled.ciUnknown} with no CI to read`:""]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reverted"}),i.jsx("div",{style:{fontSize:14,marginTop:4},children:fa(e.settled.reverted)})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Reviewed by Rigour"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[e.settled.reviewed.prs," pull requests, ",e.settled.reviewed.fixedLater.count," fixed later"]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"st-sub",children:"Not reviewed"}),i.jsxs("div",{style:{fontSize:14,marginTop:4},children:[e.settled.notReviewed.prs," pull requests, ",e.settled.notReviewed.fixedLater.count," fixed later"]})]})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:["Lessons: ",e.lessons.awaitingDecision," waiting on you, ",e.lessons.promotedFromEvidence," promoted from evidence, ",e.lessons.dismissed," dismissed, ",e.lessons.takenBack," taken back."," ","Teams choose which pull requests get reviewed, so the two groups differ: this is not a comparison."]})]}),Zp=()=>{const{data:e,error:t,reload:n}=ge("/api/learning");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load lessons: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const r=async(o,a)=>{(await Mt("/api/lessons","POST",JSON.stringify({id:o,state:a}))).ok&&n()},s=async(o,a)=>{(await Mt("/api/review-lessons","POST",JSON.stringify({id:o,decision:a}))).ok&&n()},l=Math.max(1,...e.weeks.map(o=>Math.max(o.stoppedInDevelopment,o.reachedPr??0)));return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"How Rigour learns your codebase"}),i.jsx("p",{className:"st-lead",children:"Every mistake fixed in development or caught at a PR becomes a lesson. Your agents are told before they write similar code, so the same mistake is stopped earlier next time."}),i.jsxs("section",{className:"st-card",style:{margin:"24px 0"},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Repeat mistakes, by week"}),i.jsx("span",{className:"st-sub",children:"a mistake Rigour had already learned"})]}),i.jsx("div",{className:"st-bars",children:e.weeks.map(o=>i.jsxs("div",{className:"st-bar",children:[i.jsxs("div",{style:{fontSize:13},children:[o.stoppedInDevelopment," stopped",o.reachedPr===null?"":` · ${o.reachedPr} reached a PR`]}),i.jsx("span",{style:{height:`${Math.max(4,o.stoppedInDevelopment/l*80)}px`}}),i.jsxs("div",{className:"st-sub",children:["from ",new Date(o.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]},o.from))}),!e.prRecorded&&i.jsxs("div",{className:"st-sub",style:{marginTop:14},children:["Repeats that reached a PR show once branch reviews run on this machine (",i.jsx("span",{className:"st-mono",children:"rigour review --base main"}),", for example in a pre-push hook). Reviews in CI stay in CI."]})]}),e.outcomes&&i.jsx(Gp,{numbers:e.outcomes}),e.lessons.length===0?i.jsx("div",{className:"st-empty",children:"No lessons yet. They form when an agent fixes something Rigour reported, when a PR comment leads to a fix, or when you tell your agent to remember something."}):i.jsx("div",{className:"st-stack",children:e.lessons.map(o=>i.jsx(Xp,{lesson:o,onDecide:r,onDecideReview:s},o.id))}),i.jsx(Jp,{})]})},Jp=()=>{var r,s,l;const e=ge("/api/learned-rules").data??[],t=Object.entries(((r=ge("/api/memory").data)==null?void 0:r.memories)??{}),n=(l=(s=ge("/api/index-stats").data)==null?void 0:s.stats)==null?void 0:l.totalPatterns;return i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"Rules learned from fixes"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Checked on every edit, like a built-in check."}),e.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"None yet. rigour learn turns an agent's fixes into rules once they hold up."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:e.map(o=>i.jsxs("li",{children:[o.message,i.jsxs("div",{className:"st-sub",children:[o.requirement," · ",o.appliesTo]})]},o.id))})]}),i.jsxs("section",{className:"st-card",children:[i.jsx("strong",{children:"What your agents were told to remember"}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:"Facts saved with rigour_remember; agents recall them by meaning."}),t.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:10,lineHeight:1.6},children:"Nothing saved yet."}):i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:t.slice(0,12).map(([o,a])=>i.jsxs("li",{children:[i.jsx("strong",{children:o.replace(/_/g," ")}),": ",a.value.length>220?`${a.value.slice(0,220)}…`:a.value]},o))}),t.length>12&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:["and ",t.length-12," more"]})]}),typeof n=="number"&&n>0&&i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsxs("strong",{children:[n," functions indexed"]}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:"Before an agent writes a new helper, Rigour checks whether one already exists and points to it, so the codebase doesn't fill with near-copies."})]})]})},pa=e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e),bp=()=>{const{data:e,error:t}=ge("/api/context");if(t)return i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load agent context: ",t,"."]})});if(!e)return i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})});const n=e.week,r=n.scopes+n.recalls+n.lessonsTold+n.reuse.length===0;return i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"What Rigour gave your agents"}),i.jsx("p",{className:"st-lead",children:"Before an agent writes, it can ask Rigour where to look, what this team already knows, and whether the thing it is about to write exists. Preventing a mistake is cheaper than catching it."}),r?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"No agent asked Rigour for context this week. Agents use it through the Rigour tools (rigour_context_scope, rigour_recall, rigour_check_pattern); Setup shows whether they are connected."}):i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},children:[i.jsx(ha,{title:"Where to look",value:n.scopes===0?"Not asked this week":`${D(n.filesReturned,"file")} instead of ${n.filesConsidered}`,detail:n.scopes===0?"Agents can ask for the files a task needs instead of reading broadly.":`${D(n.scopes,"request")}. About ${pa(n.tokensReturned)} tokens returned out of ${pa(n.tokensConsidered)} considered (Rigour's estimate).`}),i.jsx(ha,{title:"What this team knows",value:`${D(n.lessonsTold,"lesson")} told`,detail:`${D(n.recalls,"recall")} of saved facts and lessons. How it learns shows what each lesson stopped.`}),i.jsxs("section",{className:"st-card",style:{gridColumn:"1 / -1"},children:[i.jsx("strong",{children:"Pointed to code that already exists"}),n.reuse.length===0?i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:"No duplicate was about to be written this week."}):i.jsx("div",{className:"st-stack",style:{marginTop:12},children:n.reuse.map(s=>i.jsxs("div",{className:"st-row",style:{alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${s.action==="BLOCK"?"warn":""}`,children:s.action==="BLOCK"?"reuse":"similar"}),i.jsxs("div",{style:{flex:1,fontSize:14,lineHeight:1.5},children:["About to write ",i.jsx("span",{className:"st-mono",children:s.planned}),"; told to use ",i.jsx("span",{className:"st-mono",children:s.existing})]}),i.jsx("span",{className:"st-sub",children:Ot(s.at)})]},`${s.at}-${s.planned}`))})]})]}),i.jsx(eh,{weeks:e.weeks})]})},ha=({title:e,value:t,detail:n})=>i.jsxs("section",{className:"st-card",children:[i.jsx("div",{className:"st-sub",children:e}),i.jsx("div",{style:{fontSize:22,fontWeight:600,marginTop:6,color:"var(--text-primary)"},children:t}),i.jsx("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:n})]}),eh=({weeks:e})=>{const t=e.filter(n=>n.scopes+n.recalls+n.lessonsTold+n.reuse>0).reverse();return i.jsxs("section",{className:"st-card",style:{marginTop:24,padding:0,overflowX:"auto"},children:[i.jsx("div",{style:{padding:"16px 20px 8px"},children:i.jsx("strong",{children:"Last 8 weeks"})}),t.length===0?i.jsx("div",{className:"st-sub",style:{padding:"0 20px 18px"},children:"No context requests in the last 8 weeks."}):i.jsxs("table",{className:"st-table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Week of"}),i.jsx("th",{children:"Focused file lists"}),i.jsx("th",{children:"Files given"}),i.jsx("th",{children:"Recalls"}),i.jsx("th",{children:"Lessons told"}),i.jsx("th",{children:"Duplicates avoided"})]})}),i.jsx("tbody",{children:t.map(n=>i.jsxs("tr",{children:[i.jsx("td",{children:new Date(n.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})}),i.jsx("td",{children:n.scopes}),i.jsx("td",{children:n.scopes?`${n.filesReturned} of ${n.filesConsidered}`:"—"}),i.jsx("td",{children:n.recalls}),i.jsx("td",{children:n.lessonsTold}),i.jsx("td",{children:n.reuse})]},n.from))})]})]})},sl={single:"one judge",cross:"one judge from another vendor",full:"one judge per vendor, findings merged",panel:"a panel: only what a majority confirms blocks"},th=e=>e.file?`${e.file}${e.line?`:${e.line}`:""}`:"",nh=({data:e,canWrite:t,onChange:n})=>{var s,l,o,a;const r=(s=e.status)==null?void 0:s.last;return i.jsxs("section",{style:{marginTop:24},children:[i.jsxs("h2",{style:{margin:"0 0 12px",fontSize:18,fontWeight:600},children:["The reviewer's verdict on ",e.branch]}),((l=e.status)==null?void 0:l.running)&&i.jsxs("div",{className:"st-sub",style:{marginBottom:8},children:["Reviewing ",e.status.running.head.slice(0,9)," now."]}),((o=e.status)==null?void 0:o.attempt)&&i.jsxs("div",{className:"st-card",style:{marginBottom:12},children:[i.jsx("span",{className:"st-chip warn",children:e.status.attempt.outcome==="skipped"?"skipped":"could not run"})," ",i.jsxs("span",{className:"st-sub",children:["The last review, of ",e.status.attempt.head.slice(0,9)," ",Ot(e.status.attempt.at),": ",e.status.attempt.reason]})]}),r?i.jsxs("div",{className:"st-stack",children:[i.jsx("div",{className:"st-card st-row",style:{justifyContent:"space-between"},children:i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${r.open.length?"bad":"ok"}`,children:r.open.length?`${D(r.open.length,"finding")} to fix`:"nothing to fix"})," ",i.jsxs("span",{className:"st-sub",children:[r.ran?`${sl[r.ran.ran]??r.ran.ran}, `:"",r.mode==="delta"?"new commits":"the whole branch"," at ",r.head.slice(0,9),", ",Ot(r.at)]})]})}),r.ran&&(r.ran.degraded||r.ran.escalation||r.ran.asked!==r.ran.ran)&&i.jsxs("div",{className:"st-sub",children:["Asked for ",sl[r.ran.asked]??r.ran.asked," (",r.ran.source,"); ran ",sl[r.ran.ran]??r.ran.ran,". ",[r.ran.degraded,r.ran.escalation].filter(Boolean).join("; ")]}),r.open.map(u=>i.jsx(ma,{item:u,canWrite:t&&e.effective.dismissals,onChange:n},u.id)),r.disputed.length>0&&i.jsx("div",{className:"st-sub",style:{marginTop:8},children:"No majority, so these never block:"}),r.disputed.map(u=>i.jsx(ma,{item:u,disputed:!0,canWrite:!1,onChange:n},u.id))]}):!((a=e.status)!=null&&a.attempt)&&i.jsxs("div",{className:"st-empty",children:["No verdict yet. Run ",i.jsx("span",{className:"st-mono",children:"rigour review --reviewer"}),", or push with the reviewer on."]})]})},ma=({item:e,disputed:t,canWrite:n,onChange:r})=>{const[s,l]=z.useState(""),[o,a]=z.useState(!1),[u,d]=z.useState(null),m=async()=>{const v=await Mt("/api/reviewer/dismiss","POST",JSON.stringify({id:e.id,reason:s}));v.ok?r():d((await v.json().catch(()=>({}))).error??`HTTP ${v.status}`)};return i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between",gap:12},children:[i.jsx("strong",{style:{fontSize:14},children:e.issue}),i.jsx("span",{className:"st-mono st-sub",children:th(e)})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[t?i.jsx("span",{className:"st-chip warn",children:"disputed"}):i.jsx("span",{className:"st-chip",children:e.class}),e.reviewer&&i.jsxs(i.Fragment,{children:[" found by ",e.reviewer.split("+").join(" and ")]})]}),e.consequence&&i.jsxs("div",{style:{marginTop:8,fontSize:14},children:["What goes wrong: ",e.consequence]}),e.evidence&&i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:e.evidence}),n&&e.kind!=="prior"&&(o?i.jsxs("div",{className:"st-row",style:{marginTop:10,gap:8},children:[i.jsx("input",{"aria-label":"Why it is not a bug",value:s,onChange:v=>l(v.target.value),placeholder:"Why it is not a bug",style:{flex:1,minHeight:36,padding:"0 10px",borderRadius:8,border:"1px solid var(--text-dim)",background:"var(--bg-card)",color:"var(--text-primary)"}}),i.jsx("button",{className:"st-btn",disabled:s.trim().length<5,onClick:m,children:"Dismiss"})]}):i.jsx("button",{className:"st-btn",style:{marginTop:10},onClick:()=>a(!0),children:"Not a bug"})),u&&i.jsxs("div",{className:"st-sub",style:{marginTop:6},children:[i.jsx("span",{className:"st-chip bad",children:"not dismissed"})," ",u]})]})},us=({label:e,value:t,options:n,disabled:r,withTeam:s,onChange:l})=>{const o=s?[{value:null,label:"Team"},...n]:n,a=t===void 0?null:t;return i.jsx("div",{className:"st-seg",role:"radiogroup","aria-label":e,children:o.map(u=>{const d=JSON.stringify(u.value)===JSON.stringify(a);return i.jsx("button",{type:"button",role:"radio","aria-checked":d,className:d?"on":"",disabled:r,onClick:()=>!d&&l(u.value),children:u.label},u.label)})})},rh={flag:"this run",env:"environment",user:"yours",team:"team"};function sh(e,t){return e.key==="mode"?t.source.mode:e.key==="panel"?t.source.panel:e.key==="escalate"&&(t.required.panel||t.required.mode)?"team":e.user&&e.user.value!==void 0?"user":"team"}const ll=[{value:!0,label:"on"},{value:!1,label:"off"}],va=[{value:"single",label:"one judge"},{value:"cross",label:"one, another vendor"},{value:"full",label:"one per vendor"}],lh=({data:e,canWrite:t,saving:n,onSave:r,onSaveTeam:s})=>{const[l,o]=z.useState(!1),a=e.effective,u=e.team,d=a.required.panel||a.required.mode,m=[{key:"enabled",label:"Review at push",help:"Ask the reviewer when you push a branch that has an open pull request.",effective:a.enabled?"on":"off",user:{value:e.user.enabled,options:ll},team:{value:u.enabled??!1,options:ll}},{key:"mode",label:"Mode",help:"One judge; one from a vendor that did not write the code; or one judge per vendor (up to Judges), findings merged.",effective:a.mode,user:{value:e.user.mode,options:va},team:{value:u.mode??"single",options:va},locked:a.required.mode?"your team requires at least this":void 0},{key:"mode_required",label:"Required for everyone",help:"No person or run may review with fewer judges than the team's, in CI or anywhere.",effective:a.required.mode?"yes":"no",team:{value:u.mode_required??!1,options:[{value:!0,label:"yes"},{value:!1,label:"no"}]}},{key:"panel",label:"Panel",help:"Judges cross-examine what only one of them found; only what a majority confirms blocks. Required: no one may turn it off.",effective:a.panel?"on":"off",user:{value:e.user.panel,options:ll},team:{value:u.panel??"off",options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}]},locked:a.required.panel?"your team requires the panel":void 0},{key:"dismissals",label:"Dismissals",help:'Whether people may mark a reviewer finding "not a bug". Off: a wrong finding is fixed by improving the reviewer, a right one by fixing the code.',effective:a.dismissals?"allowed":"off",team:{value:u.dismissals??!1,options:[{value:!0,label:"allowed"},{value:!1,label:"off"}]}},{key:"judges",label:"Judges",help:"How many judges a full or panel review uses, each from a different vendor. Three give a real majority.",effective:String(a.judges),user:{value:e.user.judges,options:[{value:2,label:"2"},{value:3,label:"3"}]},team:{value:u.judges??2,options:[{value:2,label:"2"},{value:3,label:"3"}]}},{key:"escalate",label:"When to add judges",help:"Always, or only for a risky change or one a person has reviewed. The backtest shows whether that loses anything.",effective:a.escalate,user:{value:e.user.escalate,options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},team:{value:u.escalate??"always",options:[{value:"always",label:"always"},{value:"risk",label:"when risky"}]},locked:d?"your team requires every review to be full":void 0}],v=t&&(e.teamFile||l);return i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[i.jsx("strong",{children:"Yours"})," applies to your own runs, in every repository on this machine, and wins over the team's except where the team set a floor. ",i.jsx("strong",{children:"Team"})," is"," ",e.teamFile?i.jsxs(i.Fragment,{children:["in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": a change here edits the file, and you commit it"]}):i.jsxs(i.Fragment,{children:["Rigour's defaults: this repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"})]}),".",!t&&" Open Studio from the link the terminal printed to change settings here."]}),t&&!e.teamFile&&!l&&i.jsxs("div",{className:"st-card st-row",style:{justifyContent:"space-between",marginBottom:12},children:[i.jsxs("span",{className:"st-sub",children:["Setting team defaults creates a ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": from then on this repository uses the team setup."]}),i.jsx("button",{className:"st-btn",onClick:()=>o(!0),children:"Set team defaults"})]}),i.jsx("div",{className:"st-stack",children:m.map(h=>i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:h.label}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:h.help})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:h.effective})," ",i.jsxs("span",{className:"st-sub",children:["· ",rh[sh(h,a)]]}),h.locked&&i.jsxs("span",{title:h.locked,"aria-label":h.locked,children:[" ",i.jsx(as,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),h.user?i.jsx(us,{label:`Your ${h.label}`,withTeam:!0,disabled:!t||n!==null,value:h.user.value,options:h.user.options,onChange:y=>r({[h.key]:y})}):i.jsx("span",{className:"st-sub",children:"set by the team only"}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(us,{label:`Team ${h.label}`,disabled:!v||n!==null,value:h.team.value,options:h.team.options,onChange:y=>s({[h.key]:y},!e.teamFile)})]})]},h.key))}),i.jsx(ih,{data:e}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(h=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",h]},h))})]})},Dc=({diff:e})=>i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{style:{fontSize:14},children:"rigour.yml changed"}),i.jsx("span",{className:"st-sub",children:"Commit it so the change reaches your team."})]}),i.jsx("pre",{className:"st-code",style:{marginTop:8},children:e.split(`
|
|
166
|
+
`).map((t,n)=>i.jsx("div",{className:`st-ln ${t.startsWith("+")?"add":t.startsWith("-")?"del":""}`,children:t},n))})]}),ih=({data:e})=>{var s;const t=((s=e.status)==null?void 0:s.today)??{runs:0,usd:0},{max_runs_per_day:n,max_usd_per_day:r}=e.effective;return i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("div",{style:{fontSize:15},children:"Today in this repository"}),i.jsxs("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.6},children:[D(t.runs,"agent run"),n!==void 0?` of ${n} allowed`:"",t.usd||r!==void 0?`, $${t.usd.toFixed(2)} reported${r!==void 0?` of $${r.toFixed(2)}`:""}`:"","."," ",n===void 0&&r===void 0?i.jsxs(i.Fragment,{children:["No daily cap: set ",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"})," or ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"})," in ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),"."]}):"Past a cap, reviews are skipped until tomorrow (or cannot run, where your team requires the reviewer)."]})]})},oh=({data:e})=>{const t=new Set(e.available.filter(r=>r.installed&&e.effective.reviewers.includes(r.name)).map(r=>r.vendor)).size,n=e.effective.required.panel||e.effective.required.mode;return i.jsxs("section",{style:{marginTop:20},children:[i.jsx("h3",{style:{margin:"0 0 6px",fontSize:15,fontWeight:600},children:"Agent CLIs on this machine"}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px"},children:["The reviewer uses their own logins: no API key. ",t>=3?"Enough vendors for three judges.":t===2?"Enough for two judges; a third vendor, listed in the reviewers, allows three.":n?"Your team requires two judges from different vendors: with one, the review cannot run until another is installed.":"Two judges need two vendors; with one, the review runs with one judge and says so."]}),i.jsx("div",{className:"st-row",style:{flexWrap:"wrap",gap:8},children:e.available.map(r=>i.jsxs("span",{className:`st-chip ${r.installed?"ok":""}`,children:[r.binary,r.installed?` ${r.version??""}`:": not installed"]},r.name))})]})};function Hc(){return ge("/api/reviewer")}const ah=()=>{const{data:e,error:t,reload:n}=Hc();return t?i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's verdict: ",t,"."]}):e?i.jsx(nh,{data:e,canWrite:Es(),onChange:n}):i.jsx("div",{className:"st-sub",children:"Loading…"})},uh=()=>{const{data:e,error:t,reload:n}=Hc(),[r,s]=z.useState(null),[l,o]=z.useState(null),[a,u]=z.useState(null);if(t)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's settings: ",t,"."]});if(!e)return i.jsx("div",{className:"st-sub",children:"Loading…"});const d=async(m,v,h)=>{s(h),o(null);const y=await Mt(m,"POST",JSON.stringify(v)),w=await y.json().catch(()=>({}));y.ok?m.endsWith("/team")&&u(w.diff??null):o(w.error??`HTTP ${y.status}`),s(null),n()};return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:"The reviewer"}),i.jsx("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:"A second opinion from other AI models, before a person reviews. Off until your team or you turn it on. With two or three judges from different vendors, a finding blocks only when most of them agree and it names what goes wrong."}),i.jsx(lh,{data:e,canWrite:Es(),saving:r,onSave:m=>d("/api/reviewer/settings",m,Object.keys(m)[0]),onSaveTeam:(m,v)=>d("/api/reviewer/team",{patch:m,create:v},`team:${Object.keys(m)[0]}`)}),l&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:l})]}),a&&i.jsx(Dc,{diff:a}),i.jsx(oh,{data:e})]})},ch=e=>e==="agent"?"your agent":e==="human"?"you":e.replace(/^byok:/,""),dh=()=>{const{data:e,error:t}=ge("/api/pre-pr-review");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load reviews: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Review before the PR"}),i.jsx("p",{className:"st-lead",children:"What still stands between this branch and a person's review: the reviewer's verdict, then the risky functions your agent checked."}),i.jsx(ah,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Risky functions your agent checks"}),i.jsxs("p",{className:"st-sub",style:{margin:0,lineHeight:1.6},children:["Rigour picks the riskiest changed functions and asks specific questions about them. Your agent answers with its own model, or you do.",e.reviewed.total>0&&` So far: ${D(e.reviewed.total,"function")} reviewed, ${e.reviewed.fixed} fixed, ${e.reviewed.noIssue} with no issue.`]}),i.jsxs("section",{style:{marginTop:24},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Waiting"}),e.pending.length===0?i.jsx("div",{className:"st-empty",children:"No risky function in the current changes is waiting."}):i.jsx("div",{className:"st-stack",children:e.pending.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{className:"st-mono",style:{fontSize:14},children:n.function}),i.jsxs("span",{className:"st-mono st-sub",children:[n.file,":",n.start]})]}),i.jsx("ul",{style:{margin:"10px 0 0",paddingLeft:18,lineHeight:1.6,fontSize:14},children:n.questions.map(r=>i.jsx("li",{children:r},r))})]},`${n.file}:${n.function}`))})]}),i.jsxs("section",{style:{marginTop:28},children:[i.jsx("h3",{style:{margin:"0 0 12px",fontSize:15,fontWeight:600},children:"Checked"}),e.recent.length===0?i.jsx("div",{className:"st-empty",children:"Nothing reviewed yet. Agents review through rigour_review; you can run rigour review-task."}):i.jsx("div",{className:"st-stack",children:e.recent.map(n=>i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("span",{children:[i.jsx("span",{className:`st-chip ${n.verdict==="fixed"?"ok":""}`,children:n.verdict==="fixed"?"fixed":n.verdict==="no_issue"?"no issue":n.verdict})," ",i.jsx("strong",{className:"st-mono",style:{fontSize:14,marginLeft:8},children:n.function})]}),i.jsxs("span",{className:"st-sub",children:[ch(n.reviewer)," · ",Ot(n.at)]})]}),i.jsx("div",{className:"st-mono st-sub",style:{marginTop:6},children:n.file}),n.note&&i.jsx("div",{style:{marginTop:10,fontSize:14,lineHeight:1.6},children:n.note})]},`${n.file}:${n.function}:${n.at}`))})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:24},children:["Model reviews with your own key: ",e.spend.runs===0?"none run here":`${D(e.spend.runs,"run")}, ${fh(e.spend)}${e.lastModel?`, last with ${e.lastModel}`:""}`,"."]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})};function fh(e){return e.runs-e.unpricedRuns===0?"cost not reported by the provider":`$${e.costUsd.toFixed(2)} observed${e.unpricedRuns?` (${e.unpricedRuns} without a reported cost)`:""}`}const ga={stopped:{label:"blocked",cls:"warn"},fixed:{label:"fixed",cls:"ok"},checked:{label:"checked",cls:""},reviewed:{label:"reviewed",cls:""},taught:{label:"told",cls:""},pr:{label:"PR",cls:"warn"}},il=e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),ph=e=>new Date(e).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"}),hh=()=>{const{data:e,error:t}=ge("/api/activity");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't load activity: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Activity"}),i.jsx("p",{className:"st-lead",children:"Each block is one stretch of agent work. What Rigour blocked or got fixed is listed; routine checks fold away."}),e.sessions.length===0?i.jsx("div",{className:"st-empty",style:{marginTop:24},children:"Nothing yet. Activity appears as agents edit code, ask for reviews and finish their work."}):i.jsx("div",{className:"st-stack",style:{marginTop:24,gap:16},children:e.sessions.map(n=>i.jsx(mh,{session:n},n.start))})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})},mh=({session:e})=>{const[t,n]=z.useState(!1),r=e.counts,s=r.fixed+r.reviewedFixed,l=[s&&`${D(s,"problem")} fixed`,r.stopped&&`${D(r.stopped,"edit")} blocked`,r.pr&&`${D(r.pr,"branch review")} with findings`,r.reviewed&&`${D(r.reviewed,"risky function")} reviewed${r.reviewed-r.reviewedFixed?` (${r.reviewed-r.reviewedFixed} fine)`:""}`,r.checked&&`${D(r.checked,"edit")} checked clean`,r.taught&&`lessons given ${D(r.taught,"time")}`].filter(Boolean).join(" · ");return i.jsxs("section",{className:"st-card",style:{padding:0},children:[i.jsxs("div",{style:{padding:"16px 20px",borderBottom:e.highlights.length||t?"1px solid var(--border-dim)":0},children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsxs("strong",{children:[ph(e.start),", ",il(e.start),e.start!==e.end?`–${il(e.end)}`:""]}),e.rest.length>0&&i.jsx("button",{className:"st-btn",onClick:()=>n(!t),type:"button",style:{minHeight:32},children:t?"Hide routine":`Show ${D(e.rest.length,"routine item")}`})]}),i.jsx("div",{className:"st-sub",style:{marginTop:6},children:l})]}),[...e.highlights,...t?e.rest:[]].map((o,a)=>i.jsxs("div",{className:"st-row",style:{padding:"12px 20px",borderTop:a?"1px solid var(--border-dim)":0,alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"ok":ga[o.kind].cls}`,style:{minWidth:70,textAlign:"center"},children:o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"fixed":ga[o.kind].label}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:14,lineHeight:1.5},children:tr(o.text)}),o.detail&&i.jsx("div",{className:"st-sub",style:{marginTop:3,lineHeight:1.5},children:o.detail})]}),i.jsx("span",{className:"st-sub",style:{whiteSpace:"nowrap"},children:il(o.at)})]},`${o.at}-${a}`))]})},vh={flag:"this run",env:"environment",user:"yours",team:"team"},gh=({text:e,data:t,canWrite:n,saving:r,problem:s,diff:l,onSave:o})=>{const a=t.effective,u=a.required?`your team requires the ${e.name}`:void 0;return i.jsxs("section",{style:{marginTop:32},children:[i.jsx("h2",{style:{margin:"0 0 6px",fontSize:18,fontWeight:600},children:e.title}),i.jsxs("p",{className:"st-sub",style:{margin:"0 0 12px",lineHeight:1.6},children:[e.lead,!n&&" Open Studio from the link the terminal printed to change it here."]}),i.jsxs("div",{className:"st-card st-setting",children:[i.jsxs("div",{children:[i.jsx("div",{style:{fontSize:15},children:e.row}),i.jsx("div",{className:"st-sub",style:{marginTop:4,lineHeight:1.5},children:e.rowHelp})]}),i.jsxs("div",{className:"st-setting-controls",children:[i.jsx("span",{className:"st-sub",children:"Runs"}),i.jsxs("span",{children:[i.jsx("span",{className:"st-mono",children:a.enabled?"on":"off"})," ",i.jsxs("span",{className:"st-sub",children:["· ",vh[a.source]]}),u&&i.jsxs("span",{title:u,"aria-label":u,children:[" ",i.jsx(as,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),i.jsx(us,{label:`Your ${e.name}`,withTeam:!0,disabled:!n||r,value:t.user??void 0,options:[{value:!0,label:"on"},{value:!1,label:"off"}],onChange:d=>o({user:d})}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(us,{label:`Team ${e.name}`,disabled:!n||r,value:t.team,options:[{value:"off",label:"off"},{value:"on",label:"on"},{value:"required",label:"required"}],onChange:d=>o({team:d,create:!t.teamFile})})]})]}),!t.teamFile&&n&&i.jsxs("div",{className:"st-sub",style:{marginTop:8},children:["This repository has no ",i.jsx("span",{className:"st-mono",children:"rigour.yml"}),": setting the team's value creates one, and from then on it uses the team setup."]}),a.refused.length>0&&i.jsx("div",{className:"st-stack",style:{marginTop:12},children:a.refused.map(d=>i.jsxs("div",{className:"st-sub",children:[i.jsx("span",{className:"st-chip warn",children:"not applied"})," ",d]},d))}),s&&i.jsxs("div",{className:"st-card",style:{marginTop:12},children:[i.jsx("span",{className:"st-chip bad",children:"not saved"})," ",i.jsx("span",{className:"st-sub",children:s})]}),l&&i.jsx(Dc,{diff:l})]})},ya={goal:{title:"The goal check",lead:i.jsxs(i.Fragment,{children:["Checks a change against what its pull request says it is for: files outside its ",i.jsx("span",{className:"st-mono",children:"Scope"})," or inside ",i.jsx("span",{className:"st-mono",children:"Out of scope"}),", and"," ",i.jsx("span",{className:"st-mono",children:"Done when"})," items naming a file it never touched, block. No model; a description without these sections is never checked."]}),row:"Check the goal",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--goal"})," and ",i.jsx("span",{className:"st-mono",children:"--no-goal"})," choose for one run."]}),name:"goal check"},outcomes:{title:"The outcome loop",lead:i.jsxs(i.Fragment,{children:["What happened after each pull request merged: CI on its merge commit, later commits and fixes on its files, a revert. Read with"," ",i.jsx("span",{className:"st-mono",children:"rigour outcomes"}),", one GitHub call per merged pull request until its window closes, then never again."]}),row:"Read outcomes",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--outcomes"})," and ",i.jsx("span",{className:"st-mono",children:"--no-outcomes"})," choose for one run."]}),name:"outcome loop"},orchestrator:{title:"The review orchestrator",lead:i.jsxs(i.Fragment,{children:["Experimental. Triage, without a model, picks which parts of a review each change needs (earlier human points, correctness, production cost, what the change leaves behind, rules, lessons and the goal), and the judge does only those, in one pass: the same runs as one judge. A change over the judge's limit is split only with what the router has already saved over its last 20 reviews, so on average it never costs more than one judge. A change with nothing for a model to review gets no run. Under required, every part returns or there is no verdict. The daily caps (",i.jsx("span",{className:"st-mono",children:"max_runs_per_day"}),", ",i.jsx("span",{className:"st-mono",children:"max_usd_per_day"}),") count every pass. What blocks is unchanged."]}),row:"Use the orchestrator",rowHelp:i.jsxs(i.Fragment,{children:["Required: no person, environment variable or flag may turn it off. ",i.jsx("span",{className:"st-mono",children:"--orchestrator"})," and ",i.jsx("span",{className:"st-mono",children:"--no-orchestrator"})," choose for one run."]}),name:"review orchestrator"}},ol=({name:e})=>{const t=`/api/switches/${e}`,{data:n,error:r,reload:s}=ge(t),[l,o]=z.useState(!1),[a,u]=z.useState(null),[d,m]=z.useState(null);if(r)return i.jsxs("div",{className:"st-empty",children:["Couldn't load the ",ya[e].name,": ",r,"."]});if(!n)return i.jsx("div",{className:"st-sub",children:"Loading…"});const v=async h=>{o(!0),u(null);const y=await Mt(t,"POST",JSON.stringify(h)),w=await y.json().catch(()=>({}));y.ok?"team"in h&&m(w.diff??null):u(w.error??`HTTP ${y.status}`),o(!1),s()};return i.jsx(gh,{text:ya[e],data:n,canWrite:Es(),saving:l,problem:a,diff:d,onSave:v})},yh={working:"ok","set up":"",broken:"bad",missing:"warn"},xh=()=>{const{data:e,error:t}=ge("/api/setup");return t?i.jsx("div",{className:"st-page",children:i.jsxs("div",{className:"st-empty",children:["Couldn't check setup: ",t,"."]})}):e?i.jsxs("div",{className:"st-page",children:[i.jsx("h1",{className:"st-h1",children:"Setup"}),i.jsxs("p",{className:"st-lead",children:["What runs in this repository, and whether Rigour saw it work this week. The same checks run with ",i.jsx("span",{className:"st-mono",children:"rigour doctor"}),"."]}),i.jsx("div",{className:"st-stack",style:{marginTop:24},children:e.checks.map(n=>i.jsxs("div",{className:"st-card st-row",children:[i.jsx("span",{className:`st-chip ${yh[n.state]}`,style:{minWidth:72,textAlign:"center"},children:n.state}),i.jsxs("div",{style:{flex:1},children:[i.jsx("div",{style:{fontSize:15},children:n.name}),i.jsx("div",{className:"st-sub",style:{marginTop:4},children:n.detail})]}),n.fix&&n.state!=="working"&&i.jsx("span",{className:"st-mono st-sub",children:n.fix})]},n.id))}),i.jsx(ol,{name:"goal"}),i.jsx(ol,{name:"outcomes"}),i.jsx(ol,{name:"orchestrator"}),i.jsx(uh,{}),i.jsx("h2",{style:{margin:"32px 0 6px",fontSize:18,fontWeight:600},children:"Who double-checks risky code"}),i.jsxs("div",{className:"st-grid",style:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))",marginTop:12},children:[i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your agent's own model"}),i.jsx("span",{children:"Free"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["Your agent calls ",i.jsx("span",{className:"st-mono",children:"rigour_review"})," and answers Rigour's questions with the model you already pay for. No key."]})]}),i.jsxs("div",{className:"st-card",children:[i.jsxs("div",{className:"st-row",style:{justifyContent:"space-between"},children:[i.jsx("strong",{children:"Your own API key"}),i.jsx("span",{children:"Pay per use"})]}),i.jsxs("div",{className:"st-sub",style:{marginTop:8,lineHeight:1.6},children:["For code written without an agent, and for PR reviews. ",i.jsx("span",{className:"st-mono",children:"rigour settings set-key"}),"; keys are never shown here."]})]})]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Checking…"})})},xa=60,wh=({request:e,onClose:t})=>{const[n,r]=z.useState(xa),[s,l]=z.useState(null);z.useEffect(()=>{const a=e.timestamp?Date.parse(e.timestamp):Date.now(),u=()=>r(Math.max(0,xa-Math.floor((Date.now()-a)/1e3)));u();const d=window.setInterval(u,1e3);return()=>window.clearInterval(d)},[e.timestamp]);const o=async a=>{const u=await Mt("/api/arbitrate","POST",JSON.stringify({requestId:e.requestId||e.id,decision:a}));u.ok?t():l(u.status===403?"Studio was opened without the link from your terminal, or the request expired.":`That didn't go through (HTTP ${u.status}).`)};return i.jsx("div",{role:"dialog","aria-modal":"true","aria-label":"Approve a command",style:{position:"fixed",inset:0,background:"rgba(15, 17, 22, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50},children:i.jsxs("div",{className:"st-card",style:{width:"min(560px, calc(100vw - 32px))",padding:24},children:[i.jsx("strong",{style:{fontSize:18},children:"Your agent wants to run a command"}),i.jsx("pre",{className:"st-code st-mono",style:{padding:"12px 14px",marginTop:14,whiteSpace:"pre-wrap"},children:e.command}),e.firewallDecision&&e.firewallDecision!=="allow"&&i.jsxs("div",{className:"st-sub",style:{marginTop:10},children:["Rigour's pre-check: ",e.firewallDecision,e.firewallReason?`: ${e.firewallReason}`:""]}),i.jsx("div",{className:"st-sub",style:{marginTop:10},children:n>0?`Denied automatically in ${n}s if nobody answers.`:"Time ran out: the request was denied."}),s&&i.jsx("div",{className:"st-sub",style:{marginTop:10,color:"var(--status-error)"},children:s}),i.jsxs("div",{className:"st-row",style:{marginTop:18,justifyContent:"flex-end"},children:[i.jsx("button",{className:"st-btn",onClick:t,type:"button",children:"Close"}),i.jsx("button",{className:"st-btn",onClick:()=>o("reject"),type:"button",disabled:n===0,children:"Deny"}),i.jsx("button",{className:"st-btn primary",onClick:()=>o("approve"),type:"button",disabled:n===0,children:"Allow"})]})]})})},wa="rigour-theme-v2",al=[{id:"week",label:"This week",icon:Cp,page:e=>i.jsx(Wp,{onNavigate:e})},{id:"progress",label:"Progress",icon:Rp,page:()=>i.jsx(Yp,{})},{id:"only",label:"Only Rigour",icon:Mp,page:()=>i.jsx(qp,{})},{id:"learns",label:"How it learns",icon:Np,page:()=>i.jsx(Zp,{})},{id:"context",label:"Agent context",icon:kp,page:()=>i.jsx(bp,{})},{id:"reviews",label:"Review",icon:Ep,page:()=>i.jsx(dh,{})},{id:"activity",label:"Activity",icon:ni,page:()=>i.jsx(hh,{})},{id:"setup",label:"Setup",icon:$p,page:()=>i.jsx(xh,{})}],kh=6e4;function jh(){const[e,t]=z.useState(()=>{try{return localStorage.getItem(wa)||"light"}catch{return"light"}}),[n,r]=z.useState("week"),[s,l]=z.useState(null),[o,a]=z.useState("connecting"),[u,d]=z.useState(null),[m,v]=z.useState(null),[h,y]=z.useState(!0),[w,k]=z.useState(!1),O=z.useCallback(async()=>{y(!0);try{const c=await fetch("/api/health"),p=await c.json();v(c.ok?p:{error:p.error||`HTTP ${c.status}`})}catch(c){v({error:c instanceof Error?c.message:String(c)})}finally{y(!1)}},[]);z.useEffect(()=>{const c=new EventSource("/api/events");return c.onopen=()=>a("live"),c.onerror=()=>a("offline"),c.onmessage=p=>{try{const g=JSON.parse(p.data),j=!g.timestamp||Date.now()-Date.parse(g.timestamp)<kh;g.type==="interception_requested"&&j&&d(g)}catch{}},fetch("/api/info").then(p=>p.json()).then(l).catch(()=>l(null)),()=>c.close()},[]),z.useEffect(()=>{document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(wa,e)}catch{}},[e]);const f=al.find(c=>c.id===n)??al[0];return i.jsxs("div",{className:"studio",children:[i.jsxs("aside",{className:"sidebar glass-shell",children:[i.jsxs("div",{className:"brand",children:[i.jsx("div",{className:"logo-icon",children:i.jsx(zp,{size:18})}),i.jsx("span",{children:"Rigour"}),(s==null?void 0:s.studioVersion)&&i.jsxs("div",{className:"version-pill",children:["v",s.studioVersion]})]}),i.jsx("nav",{children:al.map(c=>i.jsxs("button",{className:`nav-item ${c.id===f.id?"active":""}`,onClick:()=>r(c.id),type:"button",children:[i.jsx(c.icon,{size:18}),i.jsx("span",{children:c.label})]},c.id))}),s&&i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"trust-indicator",title:s.teamSync?"Lessons your team promotes are shared through your team store":"Nothing leaves this machine",children:[i.jsx(as,{size:14}),i.jsx("span",{children:s.teamSync?"Synced with your team":"Stored on this machine"})]})})]}),i.jsxs("main",{className:"main-content",children:[i.jsxs("header",{className:"glass-shell",children:[i.jsx("div",{className:"header-left",children:s&&i.jsxs("div",{className:"project-identity",children:[i.jsx(Sp,{size:14,className:"folder-icon"}),i.jsx("span",{className:"project-name",children:s.projectName}),s.projectVersion&&i.jsxs("span",{className:"project-version-pill",children:["v",s.projectVersion]}),s.branch&&i.jsx("span",{className:"project-version-pill",title:"Current branch",children:s.branch}),i.jsx("span",{className:"project-path",children:s.projectPath})]})}),i.jsxs("div",{className:"header-right",children:[i.jsx("button",{type:"button",className:"connection-status",onClick:()=>{k(c=>!c),O()},"aria-expanded":w,title:"Studio receives Rigour's events live",children:i.jsxs("div",{className:`status-indicator ${o}`,children:[i.jsx("div",{className:"pulse-emitter"}),i.jsx("span",{children:o==="live"?"Live":o==="offline"?"Offline":"Connecting"})]})}),i.jsx("button",{className:"theme-toggle",onClick:()=>t(c=>c==="dark"?"light":"dark"),"aria-label":"Toggle theme",type:"button",children:e==="dark"?i.jsx(Pp,{size:18}):i.jsx(Tp,{size:18})})]})]}),w&&i.jsxs("div",{className:"health-popover",children:[i.jsxs("div",{className:"health-popover-title",children:[i.jsx("strong",{children:"Rigour system health"}),i.jsx("button",{type:"button",onClick:()=>k(!1),"aria-label":"Close health",children:i.jsx(Ip,{size:15})})]}),i.jsx(Dp,{data:m,loading:h,stale:!1,onRetry:O})]}),i.jsxs("div",{className:"view-container",children:[!Es()&&i.jsxs("div",{className:"overview-banner",role:"note",children:[i.jsx(as,{size:18}),i.jsxs("div",{children:[i.jsx("strong",{children:"Read-only"}),i.jsx("p",{children:"Open Studio from the link printed in your terminal to dismiss findings, keep lessons or answer an approval."})]})]}),i.jsx(Fp,{resetKey:f.id,children:i.jsx("div",{className:"full-view",children:f.page(r)})})]})]}),u&&i.jsx(wh,{request:u,onClose:()=>d(null)})]})}Ap();ul.createRoot(document.getElementById("root")).render(i.jsx(oi.StrictMode,{children:i.jsx(jh,{})}));
|