@rigour-labs/cli 6.8.1 → 6.9.0-rc.2

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.
@@ -1,166 +0,0 @@
1
- var $c=Object.defineProperty;var Fc=(e,t,n)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zi=(e,t,n)=>Fc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function Ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ya={exports:{}},al={},xa={exports:{}},R={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var tr=Symbol.for("react.element"),Hc=Symbol.for("react.portal"),Wc=Symbol.for("react.fragment"),Uc=Symbol.for("react.strict_mode"),Vc=Symbol.for("react.profiler"),Bc=Symbol.for("react.provider"),Qc=Symbol.for("react.context"),Kc=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),Xc=Symbol.for("react.memo"),Gc=Symbol.for("react.lazy"),Ji=Symbol.iterator;function qc(e){return e===null||typeof e!="object"?null:(e=Ji&&e[Ji]||e["@@iterator"],typeof e=="function"?e:null)}var wa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ka=Object.assign,ja={};function dn(e,t,n){this.props=e,this.context=t,this.refs=ja,this.updater=n||wa}dn.prototype.isReactComponent={};dn.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")};dn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sa(){}Sa.prototype=dn.prototype;function ei(e,t,n){this.props=e,this.context=t,this.refs=ja,this.updater=n||wa}var ti=ei.prototype=new Sa;ti.constructor=ei;ka(ti,dn.prototype);ti.isPureReactComponent=!0;var bi=Array.isArray,Na=Object.prototype.hasOwnProperty,ni={current:null},Ca={key:!0,ref:!0,__self:!0,__source:!0};function Ea(e,t,n){var r,l={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Na.call(t,r)&&!Ca.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:tr,type:e,key:s,ref:o,props:l,_owner:ni.current}}function Zc(e,t){return{$$typeof:tr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ri(e){return typeof e=="object"&&e!==null&&e.$$typeof===tr}function Jc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eo=/\/+/g;function Tl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Jc(""+e.key):t.toString(36)}function Er(e,t,n,r,l){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case tr:case Hc:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Tl(o,0):r,bi(l)?(n="",e!=null&&(n=e.replace(eo,"$&/")+"/"),Er(l,t,n,"",function(d){return d})):l!=null&&(ri(l)&&(l=Zc(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(eo,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",bi(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+Tl(s,a);o+=Er(s,t,n,u,l)}else if(u=qc(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+Tl(s,a++),o+=Er(s,t,n,u,l);else if(s==="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=[],l=0;return Er(e,r,"","",function(s){return t.call(n,s,l++)}),r}function bc(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},ed={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:Tr,ReactCurrentOwner:ni};function Ta(){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(!ri(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Component=dn;R.Fragment=Wc;R.Profiler=Vc;R.PureComponent=ei;R.StrictMode=Uc;R.Suspense=Yc;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ed;R.act=Ta;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=ka({},e.props),l=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ni.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)Na.call(t,u)&&!Ca.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:tr,type:e.type,key:l,ref:s,props:r,_owner:o}};R.createContext=function(e){return e={$$typeof:Qc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bc,_context:e},e.Consumer=e};R.createElement=Ea;R.createFactory=function(e){var t=Ea.bind(null,e);return t.type=e,t};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:Kc,render:e}};R.isValidElement=ri;R.lazy=function(e){return{$$typeof:Gc,_payload:{_status:-1,_result:e},_init:bc}};R.memo=function(e,t){return{$$typeof:Xc,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=Ta;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";xa.exports=R;var P=xa.exports;const li=Ac(P);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var td=P,nd=Symbol.for("react.element"),rd=Symbol.for("react.fragment"),ld=Object.prototype.hasOwnProperty,sd=td.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,id={key:!0,ref:!0,__self:!0,__source:!0};function _a(e,t,n){var r,l={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ld.call(t,r)&&!id.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:nd,type:e,key:s,ref:o,props:l,_owner:sd.current}}al.Fragment=rd;al.jsx=_a;al.jsxs=_a;ya.exports=al;var i=ya.exports,ss={},za={exports:{}},je={},Pa={exports:{}},Ra={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(N,_){var z=N.length;N.push(_);e:for(;0<z;){var K=z-1>>>1,J=N[K];if(0<l(J,_))N[K]=_,N[z]=J,z=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],z=N.pop();if(z!==_){N[0]=z;e:for(var K=0,J=N.length,or=J>>>1;K<or;){var xt=2*(K+1)-1,El=N[xt],wt=xt+1,ar=N[wt];if(0>l(El,z))wt<J&&0>l(ar,El)?(N[K]=ar,N[wt]=z,K=wt):(N[K]=El,N[xt]=z,K=xt);else if(wt<J&&0>l(ar,z))N[K]=ar,N[wt]=z,K=wt;else break e}}return _}function l(N,_){var z=N.sortIndex-_.sortIndex;return z!==0?z:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.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,x=!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,Nl(j);else{var _=n(d);_!==null&&Cl(g,_.startTime-N)}}function j(N,_){w=!1,k&&(k=!1,f(T),T=-1),x=!0;var z=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&&Cl(g,xt.startTime-_),or=!1}return or}finally{v=null,h=z,x=!1}}var C=!1,E=null,T=-1,Q=5,L=-1;function Pe(){return!(e.unstable_now()-L<Q)}function hn(){if(E!==null){var N=e.unstable_now();L=N;var _=!0;try{_=E(!0,N)}finally{_?mn():(C=!1,E=null)}}else C=!1}var mn;if(typeof c=="function")mn=function(){c(hn)};else if(typeof MessageChannel<"u"){var qi=new MessageChannel,Ic=qi.port2;qi.port1.onmessage=hn,mn=function(){Ic.postMessage(null)}}else mn=function(){O(hn,0)};function Nl(N){E=N,C||(C=!0,mn())}function Cl(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||x||(w=!0,Nl(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 z=h;h=_;try{return N()}finally{h=z}},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 z=h;h=N;try{return _()}finally{h=z}},e.unstable_scheduleCallback=function(N,_,z){var K=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?K+z:K):z=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=z+J,N={id:m++,callback:_,priorityLevel:N,startTime:z,expirationTime:J,sortIndex:-1},z>K?(N.sortIndex=z,t(d,N),n(u)===null&&N===n(d)&&(k?(f(T),T=-1):k=!0,Cl(g,z-K))):(N.sortIndex=J,t(u,N),w||x||(w=!0,Nl(j))),N},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(N){var _=h;return function(){var z=h;h=_;try{return N.apply(this,arguments)}finally{h=z}}}})(Ra);Pa.exports=Ra;var od=Pa.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var ad=P,ke=od;function y(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 La=new Set,$n={};function Ot(e,t){rn(e,t),rn(e+"Capture",t)}function rn(e,t){for($n[e]=t,e=0;e<t.length;e++)La.add(t[e])}var Xe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),is=Object.prototype.hasOwnProperty,ud=/^[: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]*$/,to={},no={};function cd(e){return is.call(no,e)?!0:is.call(to,e)?!1:ud.test(e)?no[e]=!0:(to[e]=!0,!1)}function dd(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 fd(e,t,n,r){if(t===null||typeof t>"u"||dd(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,l,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,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 si=/[\-:]([a-z])/g;function ii(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(si,ii);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(si,ii);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(si,ii);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 oi(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(fd(t,n,l,r)&&(n=null),r||l===null?cd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Je=ad.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cr=Symbol.for("react.element"),At=Symbol.for("react.portal"),Ht=Symbol.for("react.fragment"),ai=Symbol.for("react.strict_mode"),os=Symbol.for("react.profiler"),Ma=Symbol.for("react.provider"),Oa=Symbol.for("react.context"),ui=Symbol.for("react.forward_ref"),as=Symbol.for("react.suspense"),us=Symbol.for("react.suspense_list"),ci=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),Da=Symbol.for("react.offscreen"),ro=Symbol.iterator;function vn(e){return e===null||typeof e!="object"?null:(e=ro&&e[ro]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,_l;function Nn(e){if(_l===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||""}return`
34
- `+_l+e}var zl=!1;function Pl(e,t){if(!e||zl)return"";zl=!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 l=d.stack.split(`
35
- `),s=r.stack.split(`
36
- `),o=l.length-1,a=s.length-1;1<=o&&0<=a&&l[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==s[a]){var u=`
37
- `+l[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{zl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nn(e):""}function pd(e){switch(e.tag){case 5:return Nn(e.type);case 16:return Nn("Lazy");case 13:return Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function cs(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 Ht:return"Fragment";case At:return"Portal";case os:return"Profiler";case ai:return"StrictMode";case as:return"Suspense";case us:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oa:return(e.displayName||"Context")+".Consumer";case Ma:return(e._context.displayName||"Context")+".Provider";case ui:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ci:return t=e.displayName||null,t!==null?t:cs(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return cs(e(t))}catch{}}return null}function hd(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 cs(t);case 8:return t===ai?"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 Ia(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function md(e){var t=Ia(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 l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,s.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=md(e))}function $a(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ia(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fr(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 ds(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 Fa(e,t){t=t.checked,t!=null&&oi(e,"checked",t,!1)}function fs(e,t){Fa(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")?ps(e,t.type,n):t.hasOwnProperty("defaultValue")&&ps(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function so(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 ps(e,t,n){(t!=="number"||Fr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cn=Array.isArray;function Zt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function hs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(y(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function io(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(y(92));if(Cn(n)){if(1<n.length)throw Error(y(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Aa(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 oo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ha(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 ms(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ha(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fr,Wa=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}: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 Fn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _n={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},vd=["Webkit","ms","Moz","O"];Object.keys(_n).forEach(function(e){vd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]})});function Ua(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_n.hasOwnProperty(e)&&_n[e]?(""+t).trim():t+"px"}function Va(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ua(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var gd=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 vs(e,t){if(t){if(gd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function gs(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 ys=null;function di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xs=null,Jt=null,bt=null;function ao(e){if(e=lr(e)){if(typeof xs!="function")throw Error(y(280));var t=e.stateNode;t&&(t=pl(t),xs(e.stateNode,e.type,t))}}function Ba(e){Jt?bt?bt.push(e):bt=[e]:Jt=e}function Qa(){if(Jt){var e=Jt,t=bt;if(bt=Jt=null,ao(e),t)for(e=0;e<t.length;e++)ao(t[e])}}function Ka(e,t){return e(t)}function Ya(){}var Rl=!1;function Xa(e,t,n){if(Rl)return e(t,n);Rl=!0;try{return Ka(e,t,n)}finally{Rl=!1,(Jt!==null||bt!==null)&&(Ya(),Qa())}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=pl(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(y(231,t,typeof n));return n}var ws=!1;if(Xe)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){ws=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{ws=!1}function yd(e,t,n,r,l,s,o,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var zn=!1,Ar=null,Hr=!1,ks=null,xd={onError:function(e){zn=!0,Ar=e}};function wd(e,t,n,r,l,s,o,a,u){zn=!1,Ar=null,yd.apply(xd,arguments)}function kd(e,t,n,r,l,s,o,a,u){if(wd.apply(this,arguments),zn){if(zn){var d=Ar;zn=!1,Ar=null}else throw Error(y(198));Hr||(Hr=!0,ks=d)}}function Dt(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 Ga(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 uo(e){if(Dt(e)!==e)throw Error(y(188))}function jd(e){var t=e.alternate;if(!t){if(t=Dt(e),t===null)throw Error(y(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return uo(l),e;if(s===r)return uo(l),t;s=s.sibling}throw Error(y(188))}if(n.return!==r.return)n=l,r=s;else{for(var o=!1,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){for(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)throw Error(y(189))}}if(n.alternate!==r)throw Error(y(190))}if(n.tag!==3)throw Error(y(188));return n.stateNode.current===n?e:t}function qa(e){return e=jd(e),e!==null?Za(e):null}function Za(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Za(e);if(t!==null)return t;e=e.sibling}return null}var Ja=ke.unstable_scheduleCallback,co=ke.unstable_cancelCallback,Sd=ke.unstable_shouldYield,Nd=ke.unstable_requestPaint,Y=ke.unstable_now,Cd=ke.unstable_getCurrentPriorityLevel,fi=ke.unstable_ImmediatePriority,ba=ke.unstable_UserBlockingPriority,Wr=ke.unstable_NormalPriority,Ed=ke.unstable_LowPriority,eu=ke.unstable_IdlePriority,ul=null,We=null;function Td(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(ul,e,void 0,(e.current.flags&128)===128)}catch{}}var De=Math.clz32?Math.clz32:Pd,_d=Math.log,zd=Math.LN2;function Pd(e){return e>>>=0,e===0?32:31-(_d(e)/zd|0)|0}var pr=64,hr=4194304;function En(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,l=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=En(a):(s&=o,s!==0&&(r=En(s)))}else o=n&~l,o!==0?r=En(o):s!==0&&(r=En(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&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-De(t),l=1<<n,r|=e[n],t&=~l;return r}function Rd(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 Ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-De(s),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=Rd(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function js(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tu(){var e=pr;return pr<<=1,!(pr&4194240)&&(pr=64),e}function Ll(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function Md(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 l=31-De(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function pi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-De(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var D=0;function nu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ru,hi,lu,su,iu,Ss=!1,mr=[],it=null,ot=null,at=null,Hn=new Map,Wn=new Map,nt=[],Od="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 fo(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":Hn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wn.delete(t.pointerId)}}function yn(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=lr(t),t!==null&&hi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Dd(e,t,n,r,l){switch(t){case"focusin":return it=yn(it,e,t,n,r,l),!0;case"dragenter":return ot=yn(ot,e,t,n,r,l),!0;case"mouseover":return at=yn(at,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return Hn.set(s,yn(Hn.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,Wn.set(s,yn(Wn.get(s)||null,e,t,n,r,l)),!0}return!1}function ou(e){var t=St(e.target);if(t!==null){var n=Dt(t);if(n!==null){if(t=n.tag,t===13){if(t=Ga(n),t!==null){e.blockedOn=t,iu(e.priority,function(){lu(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=Ns(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ys=r,n.target.dispatchEvent(r),ys=null}else return t=lr(n),t!==null&&hi(t),e.blockedOn=n,!1;t.shift()}return!0}function po(e,t,n){_r(e)&&n.delete(t)}function Id(){Ss=!1,it!==null&&_r(it)&&(it=null),ot!==null&&_r(ot)&&(ot=null),at!==null&&_r(at)&&(at=null),Hn.forEach(po),Wn.forEach(po)}function xn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ss||(Ss=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Id)))}function Un(e){function t(l){return xn(l,e)}if(0<mr.length){xn(mr[0],e);for(var n=1;n<mr.length;n++){var r=mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&xn(it,e),ot!==null&&xn(ot,e),at!==null&&xn(at,e),Hn.forEach(t),Wn.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);)ou(n),n.blockedOn===null&&nt.shift()}var en=Je.ReactCurrentBatchConfig,Vr=!0;function $d(e,t,n,r){var l=D,s=en.transition;en.transition=null;try{D=1,mi(e,t,n,r)}finally{D=l,en.transition=s}}function Fd(e,t,n,r){var l=D,s=en.transition;en.transition=null;try{D=4,mi(e,t,n,r)}finally{D=l,en.transition=s}}function mi(e,t,n,r){if(Vr){var l=Ns(e,t,n,r);if(l===null)Ul(e,t,r,Br,n),fo(e,r);else if(Dd(l,e,t,n,r))r.stopPropagation();else if(fo(e,r),t&4&&-1<Od.indexOf(e)){for(;l!==null;){var s=lr(l);if(s!==null&&ru(s),s=Ns(e,t,n,r),s===null&&Ul(e,t,r,Br,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else Ul(e,t,r,null,n)}}var Br=null;function Ns(e,t,n,r){if(Br=null,e=di(r),e=St(e),e!==null)if(t=Dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ga(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 au(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(Cd()){case fi:return 1;case ba:return 4;case Wr:case Ed:return 16;case eu:return 536870912;default:return 16}default:return 16}}var lt=null,vi=null,zr=null;function uu(){if(zr)return zr;var e,t=vi,n=t.length,r,l="value"in lt?lt.value:lt.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[s-r];r++);return zr=l.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 ho(){return!1}function Se(e){function t(n,r,l,s,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?vr:ho,this.isPropagationStopped=ho,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 fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=Se(fn),rr=V({},fn,{view:0,detail:0}),Ad=Se(rr),Ml,Ol,wn,cl=V({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yi,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!==wn&&(wn&&e.type==="mousemove"?(Ml=e.screenX-wn.screenX,Ol=e.screenY-wn.screenY):Ol=Ml=0,wn=e),Ml)},movementY:function(e){return"movementY"in e?e.movementY:Ol}}),mo=Se(cl),Hd=V({},cl,{dataTransfer:0}),Wd=Se(Hd),Ud=V({},rr,{relatedTarget:0}),Dl=Se(Ud),Vd=V({},fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bd=Se(Vd),Qd=V({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kd=Se(Qd),Yd=V({},fn,{data:0}),vo=Se(Yd),Xd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gd={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"},qd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qd[e])?!!t[e]:!1}function yi(){return Zd}var Jd=V({},rr,{key:function(e){if(e.key){var t=Xd[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"?Gd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yi,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}}),bd=Se(Jd),ef=V({},cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),go=Se(ef),tf=V({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yi}),nf=Se(tf),rf=V({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),lf=Se(rf),sf=V({},cl,{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}),of=Se(sf),af=[9,13,27,32],xi=Xe&&"CompositionEvent"in window,Pn=null;Xe&&"documentMode"in document&&(Pn=document.documentMode);var uf=Xe&&"TextEvent"in window&&!Pn,cu=Xe&&(!xi||Pn&&8<Pn&&11>=Pn),yo=" ",xo=!1;function du(e,t){switch(e){case"keyup":return af.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wt=!1;function cf(e,t){switch(e){case"compositionend":return fu(t);case"keypress":return t.which!==32?null:(xo=!0,yo);case"textInput":return e=t.data,e===yo&&xo?null:e;default:return null}}function df(e,t){if(Wt)return e==="compositionend"||!xi&&du(e,t)?(e=uu(),zr=vi=lt=null,Wt=!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 cu&&t.locale!=="ko"?null:t.data;default:return null}}var ff={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 wo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ff[e.type]:t==="textarea"}function pu(e,t,n,r){Ba(r),t=Qr(t,"onChange"),0<t.length&&(n=new gi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,Vn=null;function pf(e){Nu(e,0)}function dl(e){var t=Bt(e);if($a(t))return e}function hf(e,t){if(e==="change")return t}var hu=!1;if(Xe){var Il;if(Xe){var $l="oninput"in document;if(!$l){var ko=document.createElement("div");ko.setAttribute("oninput","return;"),$l=typeof ko.oninput=="function"}Il=$l}else Il=!1;hu=Il&&(!document.documentMode||9<document.documentMode)}function jo(){Rn&&(Rn.detachEvent("onpropertychange",mu),Vn=Rn=null)}function mu(e){if(e.propertyName==="value"&&dl(Vn)){var t=[];pu(t,Vn,e,di(e)),Xa(pf,t)}}function mf(e,t,n){e==="focusin"?(jo(),Rn=t,Vn=n,Rn.attachEvent("onpropertychange",mu)):e==="focusout"&&jo()}function vf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dl(Vn)}function gf(e,t){if(e==="click")return dl(t)}function yf(e,t){if(e==="input"||e==="change")return dl(t)}function xf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $e=typeof Object.is=="function"?Object.is:xf;function Bn(e,t){if($e(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 l=n[r];if(!is.call(t,l)||!$e(e[l],t[l]))return!1}return!0}function So(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function No(e,t){var n=So(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=So(n)}}function vu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gu(){for(var e=window,t=Fr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fr(e.document)}return t}function wi(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 wf(e){var t=gu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vu(n.ownerDocument.documentElement,n)){if(r!==null&&wi(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 l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=No(n,s);var o=No(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>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 kf=Xe&&"documentMode"in document&&11>=document.documentMode,Ut=null,Cs=null,Ln=null,Es=!1;function Co(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Es||Ut==null||Ut!==Fr(r)||(r=Ut,"selectionStart"in r&&wi(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}),Ln&&Bn(Ln,r)||(Ln=r,r=Qr(Cs,"onSelect"),0<r.length&&(t=new gi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ut)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vt={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Fl={},yu={};Xe&&(yu=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);function fl(e){if(Fl[e])return Fl[e];if(!Vt[e])return e;var t=Vt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yu)return Fl[e]=t[n];return e}var xu=fl("animationend"),wu=fl("animationiteration"),ku=fl("animationstart"),ju=fl("transitionend"),Su=new Map,Eo="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){Su.set(e,t),Ot(t,[e])}for(var Al=0;Al<Eo.length;Al++){var Hl=Eo[Al],jf=Hl.toLowerCase(),Sf=Hl[0].toUpperCase()+Hl.slice(1);vt(jf,"on"+Sf)}vt(xu,"onAnimationEnd");vt(wu,"onAnimationIteration");vt(ku,"onAnimationStart");vt("dblclick","onDoubleClick");vt("focusin","onFocus");vt("focusout","onBlur");vt(ju,"onTransitionEnd");rn("onMouseEnter",["mouseout","mouseover"]);rn("onMouseLeave",["mouseout","mouseover"]);rn("onPointerEnter",["pointerout","pointerover"]);rn("onPointerLeave",["pointerout","pointerover"]);Ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ot("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tn="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(" "),Nf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tn));function To(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,kd(r,t,void 0,e),e.currentTarget=null}function Nu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var s=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!==s&&l.isPropagationStopped())break e;To(l,a,d),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,d=a.currentTarget,a=a.listener,u!==s&&l.isPropagationStopped())break e;To(l,a,d),s=u}}}if(Hr)throw e=ks,Hr=!1,ks=null,e}function $(e,t){var n=t[Rs];n===void 0&&(n=t[Rs]=new Set);var r=e+"__bubble";n.has(r)||(Cu(t,e,2,!1),n.add(r))}function Wl(e,t,n){var r=0;t&&(r|=4),Cu(n,e,r,t)}var yr="_reactListening"+Math.random().toString(36).slice(2);function Qn(e){if(!e[yr]){e[yr]=!0,La.forEach(function(n){n!=="selectionchange"&&(Nf.has(n)||Wl(n,!1,e),Wl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yr]||(t[yr]=!0,Wl("selectionchange",!1,t))}}function Cu(e,t,n,r){switch(au(t)){case 1:var l=$d;break;case 4:l=Fd;break;default:l=mi}n=l.bind(null,t,n,e),l=void 0,!ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ul(e,t,n,r,l){var s=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===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=St(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Xa(function(){var d=s,m=di(n),v=[];e:{var h=Su.get(e);if(h!==void 0){var x=gi,w=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":x=bd;break;case"focusin":w="focus",x=Dl;break;case"focusout":w="blur",x=Dl;break;case"beforeblur":case"afterblur":x=Dl;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":x=mo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Wd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=nf;break;case xu:case wu:case ku:x=Bd;break;case ju:x=lf;break;case"scroll":x=Ad;break;case"wheel":x=of;break;case"copy":case"cut":case"paste":x=Kd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=go}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(Kn(c,g,p)))),O)break;c=c.return}0<k.length&&(h=new x(h,w,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",h&&n!==ys&&(w=n.relatedTarget||n.fromElement)&&(St(w)||w[Ge]))break e;if((x||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=d,w=w?St(w):null,w!==null&&(O=Dt(w),w!==O||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=d),x!==w)){if(k=mo,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=go,g="onPointerLeave",f="onPointerEnter",c="pointer"),O=x==null?h:Bt(x),p=w==null?h:Bt(w),h=new k(g,c+"leave",x,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,x&&w)t:{for(k=x,f=w,c=0,p=k;p;p=It(p))c++;for(p=0,g=f;g;g=It(g))p++;for(;0<c-p;)k=It(k),c--;for(;0<p-c;)f=It(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=It(k),f=It(f)}k=null}else k=null;x!==null&&_o(v,h,x,k,!1),w!==null&&O!==null&&_o(v,O,w,k,!0)}}e:{if(h=d?Bt(d):window,x=h.nodeName&&h.nodeName.toLowerCase(),x==="select"||x==="input"&&h.type==="file")var j=hf;else if(wo(h))if(hu)j=yf;else{j=vf;var C=mf}else(x=h.nodeName)&&x.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=gf);if(j&&(j=j(e,d))){pu(v,j,n,m);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&ps(h,"number",h.value)}switch(C=d?Bt(d):window,e){case"focusin":(wo(C)||C.contentEditable==="true")&&(Ut=C,Cs=d,Ln=null);break;case"focusout":Ln=Cs=Ut=null;break;case"mousedown":Es=!0;break;case"contextmenu":case"mouseup":case"dragend":Es=!1,Co(v,n,m);break;case"selectionchange":if(kf)break;case"keydown":case"keyup":Co(v,n,m)}var E;if(xi)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 Wt?du(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(cu&&n.locale!=="ko"&&(Wt||T!=="onCompositionStart"?T==="onCompositionEnd"&&Wt&&(E=uu()):(lt=m,vi="value"in lt?lt.value:lt.textContent,Wt=!0)),C=Qr(d,T),0<C.length&&(T=new vo(T,e,null,n,m),v.push({event:T,listeners:C}),E?T.data=E:(E=fu(n),E!==null&&(T.data=E)))),(E=uf?cf(e,n):df(e,n))&&(d=Qr(d,"onBeforeInput"),0<d.length&&(m=new vo("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:d}),m.data=E))}Nu(v,t)})}function Kn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=An(e,n),s!=null&&r.unshift(Kn(e,s,l)),s=An(e,t),s!=null&&r.push(Kn(e,s,l))),e=e.return}return r}function It(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _o(e,t,n,r,l){for(var s=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,l?(u=An(n,s),u!=null&&o.unshift(Kn(n,u,a))):l||(u=An(n,s),u!=null&&o.push(Kn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Cf=/\r\n?/g,Ef=/\u0000|\uFFFD/g;function zo(e){return(typeof e=="string"?e:""+e).replace(Cf,`
38
- `).replace(Ef,"")}function xr(e,t,n){if(t=zo(t),zo(e)!==t&&n)throw Error(y(425))}function Kr(){}var Ts=null,_s=null;function zs(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 Ps=typeof setTimeout=="function"?setTimeout:void 0,Tf=typeof clearTimeout=="function"?clearTimeout:void 0,Po=typeof Promise=="function"?Promise:void 0,_f=typeof queueMicrotask=="function"?queueMicrotask:typeof Po<"u"?function(e){return Po.resolve(null).then(e).catch(zf)}:Ps;function zf(e){setTimeout(function(){throw e})}function Vl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Un(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Un(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 Ro(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 pn=Math.random().toString(36).slice(2),He="__reactFiber$"+pn,Yn="__reactProps$"+pn,Ge="__reactContainer$"+pn,Rs="__reactEvents$"+pn,Pf="__reactListeners$"+pn,Rf="__reactHandles$"+pn;function St(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ge]||n[He]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ro(e);e!==null;){if(n=e[He])return n;e=Ro(e)}return t}e=n,n=e.parentNode}return null}function lr(e){return e=e[He]||e[Ge],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(y(33))}function pl(e){return e[Yn]||null}var Ls=[],Qt=-1;function gt(e){return{current:e}}function A(e){0>Qt||(e.current=Ls[Qt],Ls[Qt]=null,Qt--)}function I(e,t){Qt++,Ls[Qt]=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 l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Yr(){A(he),A(oe)}function Lo(e,t,n){if(oe.current!==mt)throw Error(y(168));I(oe,t),I(he,n)}function Eu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,hd(e)||"Unknown",l));return V({},n,r)}function Xr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,_t=oe.current,I(oe,e),I(he,he.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=Eu(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,A(he),A(oe),I(oe,e)):A(he),I(he,n)}var Be=null,hl=!1,Bl=!1;function Tu(e){Be===null?Be=[e]:Be.push(e)}function Lf(e){hl=!0,Tu(e)}function yt(){if(!Bl&&Be!==null){Bl=!0;var e=0,t=D;try{var n=Be;for(D=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Be=null,hl=!1}catch(l){throw Be!==null&&(Be=Be.slice(e+1)),Ja(fi,yt),l}finally{D=t,Bl=!1}}return null}var Kt=[],Yt=0,Gr=null,qr=0,Ne=[],Ce=0,zt=null,Qe=1,Ke="";function kt(e,t){Kt[Yt++]=qr,Kt[Yt++]=Gr,Gr=e,qr=t}function _u(e,t,n){Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,zt=e;var r=Qe;e=Ke;var l=32-De(r)-1;r&=~(1<<l),n+=1;var s=32-De(t)+l;if(30<s){var o=l-l%5;s=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Qe=1<<32-De(t)+l|n<<l|r,Ke=s+e}else Qe=1<<s|n<<l|r,Ke=e}function ki(e){e.return!==null&&(kt(e,1),_u(e,1,0))}function ji(e){for(;e===Gr;)Gr=Kt[--Yt],Kt[Yt]=null,qr=Kt[--Yt],Kt[Yt]=null;for(;e===zt;)zt=Ne[--Ce],Ne[Ce]=null,Ke=Ne[--Ce],Ne[Ce]=null,Qe=Ne[--Ce],Ne[Ce]=null}var xe=null,ye=null,H=!1,Oe=null;function zu(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 Oo(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,xe=e,ye=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xe=e,ye=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,xe=e,ye=null,!0):!1;default:return!1}}function Ms(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Os(e){if(H){var t=ye;if(t){var n=t;if(!Oo(e,t)){if(Ms(e))throw Error(y(418));t=ut(n.nextSibling);var r=xe;t&&Oo(e,t)?zu(r,n):(e.flags=e.flags&-4097|2,H=!1,xe=e)}}else{if(Ms(e))throw Error(y(418));e.flags=e.flags&-4097|2,H=!1,xe=e}}}function Do(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xe=e}function wr(e){if(e!==xe)return!1;if(!H)return Do(e),H=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zs(e.type,e.memoizedProps)),t&&(t=ye)){if(Ms(e))throw Pu(),Error(y(418));for(;t;)zu(e,t),t=ut(t.nextSibling)}if(Do(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(y(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ye=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ye=null}}else ye=xe?ut(e.stateNode.nextSibling):null;return!0}function Pu(){for(var e=ye;e;)e=ut(e.nextSibling)}function sn(){ye=xe=null,H=!1}function Si(e){Oe===null?Oe=[e]:Oe.push(e)}var Mf=Je.ReactCurrentBatchConfig;function kn(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(y(309));var r=n.stateNode}if(!r)throw Error(y(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=l.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(y(284));if(!n._owner)throw Error(y(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(y(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Io(e){var t=e._init;return t(e._payload)}function Ru(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 l(f,c){return f=pt(f,c),f.index=0,f.sibling=null,f}function s(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=Zl(p,f.mode,g),c.return=f,c):(c=l(c,p),c.return=f,c)}function u(f,c,p,g){var j=p.type;return j===Ht?m(f,c,p.props.children,g,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Io(j)===c.type)?(g=l(c,p.props),g.ref=kn(f,c,p),g.return=f,g):(g=$r(p.type,p.key,p.props,null,f.mode,g),g.ref=kn(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=Jl(p,f.mode,g),c.return=f,c):(c=l(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=l(c,p),c.return=f,c)}function v(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Zl(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case cr:return p=$r(c.type,c.key,c.props,null,f.mode,p),p.ref=kn(f,null,c),p.return=f,p;case At:return c=Jl(c,f.mode,p),c.return=f,c;case et:var g=c._init;return v(f,g(c._payload),p)}if(Cn(c)||vn(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(Cn(p)||vn(p))return j!==null?null:m(f,c,p,g,null);kr(f,p)}return null}function x(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 x(f,c,p,C(g._payload),j)}if(Cn(g)||vn(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=s(L,c,T),C===null?j=L:C.sibling=L,C=L,E=Q}if(T===p.length)return n(f,E),H&&kt(f,T),j;if(E===null){for(;T<p.length;T++)E=v(f,p[T],g),E!==null&&(c=s(E,c,T),C===null?j=E:C.sibling=E,C=E);return H&&kt(f,T),j}for(E=r(f,E);T<p.length;T++)Q=x(E,f,T,p[T],g),Q!==null&&(e&&Q.alternate!==null&&E.delete(Q.key===null?T:Q.key),c=s(Q,c,T),C===null?j=Q:C.sibling=Q,C=Q);return e&&E.forEach(function(Pe){return t(f,Pe)}),H&&kt(f,T),j}function k(f,c,p,g){var j=vn(p);if(typeof j!="function")throw Error(y(150));if(p=j.call(p),p==null)throw Error(y(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=s(Pe,c,T),C===null?j=Pe:C.sibling=Pe,C=Pe,E=Q}if(L.done)return n(f,E),H&&kt(f,T),j;if(E===null){for(;!L.done;T++,L=p.next())L=v(f,L.value,g),L!==null&&(c=s(L,c,T),C===null?j=L:C.sibling=L,C=L);return H&&kt(f,T),j}for(E=r(f,E);!L.done;T++,L=p.next())L=x(E,f,T,L.value,g),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),c=s(L,c,T),C===null?j=L:C.sibling=L,C=L);return e&&E.forEach(function(hn){return t(f,hn)}),H&&kt(f,T),j}function O(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Ht&&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===Ht){if(C.tag===7){n(f,C.sibling),c=l(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===et&&Io(j)===C.type){n(f,C.sibling),c=l(C,p.props),c.ref=kn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===Ht?(c=Tt(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=$r(p.type,p.key,p.props,null,f.mode,g),g.ref=kn(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=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Jl(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(Cn(p))return w(f,c,p,g);if(vn(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=l(c,p),c.return=f,f=c):(n(f,c),c=Zl(p,f.mode,g),c.return=f,f=c),o(f)):n(f,c)}return O}var on=Ru(!0),Lu=Ru(!1),Zr=gt(null),Jr=null,Xt=null,Ni=null;function Ci(){Ni=Xt=Jr=null}function Ei(e){var t=Zr.current;A(Zr),e._currentValue=t}function Ds(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 tn(e,t){Jr=e,Ni=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(Ni!==e)if(e={context:e,memoizedValue:t,next:null},Xt===null){if(Jr===null)throw Error(y(308));Xt=e,Jr.dependencies={lanes:0,firstContext:e}}else Xt=Xt.next=e;return t}var Nt=null;function Ti(e){Nt===null?Nt=[e]:Nt.push(e)}function Mu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ti(t)):(n.next=l.next,l.next=n),t.interleaved=n,qe(e,r)}function qe(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 _i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ou(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 l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,qe(e,n)}return l=r.interleaved,l===null?(t.next=t,Ti(r)):(t.next=l.next,l.next=t),r.interleaved=t,qe(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,pi(e,n)}}function $o(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=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};s===null?l=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,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 l=e.updateQueue;tt=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,d=u.next;u.next=null,o===null?s=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(s!==null){var v=l.baseState;o=0,m=d=u=null,a=s;do{var h=a.lane,x=a.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(h=t,x=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){v=w.call(x,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(x,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=l.effects,h===null?l.effects=[a]:h.push(a))}else x={eventTime:x,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(d=m=x,u=v):m=m.next=x,o|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(m===null&&(u=v),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Rt|=o,e.lanes=o,e.memoizedState=v}}function Fo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(y(191,l));l.call(r)}}}var sr={},Ue=gt(sr),Xn=gt(sr),Gn=gt(sr);function Ct(e){if(e===sr)throw Error(y(174));return e}function zi(e,t){switch(I(Gn,t),I(Xn,e),I(Ue,sr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ms(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ms(t,e)}A(Ue),I(Ue,t)}function an(){A(Ue),A(Xn),A(Gn)}function Du(e){Ct(Gn.current);var t=Ct(Ue.current),n=ms(t,e.type);t!==n&&(I(Xn,e),I(Ue,n))}function Pi(e){Xn.current===e&&(A(Ue),A(Xn))}var W=gt(0);function el(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 Ql=[];function Ri(){for(var e=0;e<Ql.length;e++)Ql[e]._workInProgressVersionPrimary=null;Ql.length=0}var Lr=Je.ReactCurrentDispatcher,Kl=Je.ReactCurrentBatchConfig,Pt=0,U=null,q=null,b=null,tl=!1,Mn=!1,qn=0,Of=0;function le(){throw Error(y(321))}function Li(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$e(e[n],t[n]))return!1;return!0}function Mi(e,t,n,r,l,s){if(Pt=s,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lr.current=e===null||e.memoizedState===null?Ff:Af,e=n(r,l),Mn){s=0;do{if(Mn=!1,qn=0,25<=s)throw Error(y(301));s+=1,b=q=null,t.updateQueue=null,Lr.current=Hf,e=n(r,l)}while(Mn)}if(Lr.current=nl,t=q!==null&&q.next!==null,Pt=0,b=q=U=null,tl=!1,t)throw Error(y(300));return e}function Oi(){var e=qn!==0;return qn=0,e}function Ae(){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(q===null){var e=U.alternate;e=e!==null?e.memoizedState:null}else e=q.next;var t=b===null?U.memoizedState:b.next;if(t!==null)b=t,q=e;else{if(e===null)throw Error(y(310));q=e,e={memoizedState:q.memoizedState,baseState:q.baseState,baseQueue:q.baseQueue,queue:q.queue,next:null},b===null?U.memoizedState=b=e:b=b.next=e}return b}function Zn(e,t){return typeof t=="function"?t(e):t}function Yl(e){var t=ze(),n=t.queue;if(n===null)throw Error(y(311));n.lastRenderedReducer=e;var r=q,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var o=l.next;l.next=s.next,s.next=o}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var a=o=null,u=null,d=s;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!==s);u===null?o=r:u.next=a,$e(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,U.lanes|=s,Rt|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xl(e){var t=ze(),n=t.queue;if(n===null)throw Error(y(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do s=e(s,o.action),o=o.next;while(o!==l);$e(s,t.memoizedState)||(pe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Iu(){}function $u(e,t){var n=U,r=ze(),l=t(),s=!$e(r.memoizedState,l);if(s&&(r.memoizedState=l,pe=!0),r=r.queue,Di(Hu.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||b!==null&&b.memoizedState.tag&1){if(n.flags|=2048,Jn(9,Au.bind(null,n,r,l,t),void 0,null),ee===null)throw Error(y(349));Pt&30||Fu(n,t,l)}return l}function Fu(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 Au(e,t,n,r){t.value=n,t.getSnapshot=r,Wu(t)&&Uu(e)}function Hu(e,t,n){return n(function(){Wu(t)&&Uu(e)})}function Wu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$e(e,n)}catch{return!0}}function Uu(e){var t=qe(e,1);t!==null&&Ie(t,e,1,-1)}function Ao(e){var t=Ae();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t.queue=e,e=e.dispatch=$f.bind(null,U,e),[t.memoizedState,e]}function Jn(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 Vu(){return ze().memoizedState}function Mr(e,t,n,r){var l=Ae();U.flags|=e,l.memoizedState=Jn(1|t,n,void 0,r===void 0?null:r)}function ml(e,t,n,r){var l=ze();r=r===void 0?null:r;var s=void 0;if(q!==null){var o=q.memoizedState;if(s=o.destroy,r!==null&&Li(r,o.deps)){l.memoizedState=Jn(t,n,s,r);return}}U.flags|=e,l.memoizedState=Jn(1|t,n,s,r)}function Ho(e,t){return Mr(8390656,8,e,t)}function Di(e,t){return ml(2048,8,e,t)}function Bu(e,t){return ml(4,2,e,t)}function Qu(e,t){return ml(4,4,e,t)}function Ku(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 Yu(e,t,n){return n=n!=null?n.concat([e]):null,ml(4,4,Ku.bind(null,t,e),n)}function Ii(){}function Xu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Li(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gu(e,t){var n=ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Li(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qu(e,t,n){return Pt&21?($e(n,t)||(n=tu(),U.lanes|=n,Rt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Df(e,t){var n=D;D=n!==0&&4>n?n:4,e(!0);var r=Kl.transition;Kl.transition={};try{e(!1),t()}finally{D=n,Kl.transition=r}}function Zu(){return ze().memoizedState}function If(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ju(e))bu(t,n);else if(n=Mu(e,t,n,r),n!==null){var l=ue();Ie(n,e,r,l),ec(n,t,r)}}function $f(e,t,n){var r=ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ju(e))bu(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(l.hasEagerState=!0,l.eagerState=a,$e(a,o)){var u=t.interleaved;u===null?(l.next=l,Ti(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Mu(e,t,l,r),n!==null&&(l=ue(),Ie(n,e,r,l),ec(n,t,r))}}function Ju(e){var t=e.alternate;return e===U||t!==null&&t===U}function bu(e,t){Mn=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ec(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pi(e,n)}}var nl={readContext:_e,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},Ff={readContext:_e,useCallback:function(e,t){return Ae().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Ho,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Ku.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=Ae();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ae();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=If.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var t=Ae();return e={current:e},t.memoizedState=e},useState:Ao,useDebugValue:Ii,useDeferredValue:function(e){return Ae().memoizedState=e},useTransition:function(){var e=Ao(!1),t=e[0];return e=Df.bind(null,e[1]),Ae().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=U,l=Ae();if(H){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),ee===null)throw Error(y(349));Pt&30||Fu(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,Ho(Hu.bind(null,r,s,e),[e]),r.flags|=2048,Jn(9,Au.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ae(),t=ee.identifierPrefix;if(H){var n=Ke,r=Qe;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Of++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Af={readContext:_e,useCallback:Xu,useContext:_e,useEffect:Di,useImperativeHandle:Yu,useInsertionEffect:Bu,useLayoutEffect:Qu,useMemo:Gu,useReducer:Yl,useRef:Vu,useState:function(){return Yl(Zn)},useDebugValue:Ii,useDeferredValue:function(e){var t=ze();return qu(t,q.memoizedState,e)},useTransition:function(){var e=Yl(Zn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Iu,useSyncExternalStore:$u,useId:Zu,unstable_isNewReconciler:!1},Hf={readContext:_e,useCallback:Xu,useContext:_e,useEffect:Di,useImperativeHandle:Yu,useInsertionEffect:Bu,useLayoutEffect:Qu,useMemo:Gu,useReducer:Xl,useRef:Vu,useState:function(){return Xl(Zn)},useDebugValue:Ii,useDeferredValue:function(e){var t=ze();return q===null?t.memoizedState=e:qu(t,q.memoizedState,e)},useTransition:function(){var e=Xl(Zn)[0],t=ze().memoizedState;return[e,t]},useMutableSource:Iu,useSyncExternalStore:$u,useId:Zu,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 Is(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 vl={isMounted:function(e){return(e=e._reactInternals)?Dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ue(),l=ft(e),s=Ye(r,l);s.payload=t,n!=null&&(s.callback=n),t=ct(e,s,l),t!==null&&(Ie(t,e,l,r),Rr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ue(),l=ft(e),s=Ye(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ct(e,s,l),t!==null&&(Ie(t,e,l,r),Rr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ue(),r=ft(e),l=Ye(n,r);l.tag=2,t!=null&&(l.callback=t),t=ct(e,l,r),t!==null&&(Ie(t,e,r,n),Rr(t,e,r))}};function Wo(e,t,n,r,l,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Bn(n,r)||!Bn(l,s):!0}function tc(e,t,n){var r=!1,l=mt,s=t.contextType;return typeof s=="object"&&s!==null?s=_e(s):(l=me(t)?_t:oe.current,r=t.contextTypes,s=(r=r!=null)?ln(e,l):mt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function Uo(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&&vl.enqueueReplaceState(t,t.state,null)}function $s(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},_i(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=_e(s):(s=me(t)?_t:oe.current,l.context=ln(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Is(e,t,s,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&vl.enqueueReplaceState(l,l.state,null),br(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function un(e,t){try{var n="",r=t;do n+=pd(r),r=r.return;while(r);var l=n}catch(s){l=`
39
- Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:l,digest:null}}function Gl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wf=typeof WeakMap=="function"?WeakMap:Map;function nc(e,t,n){n=Ye(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,Xs=r),Fs(e,t)},n}function rc(e,t,n){n=Ye(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Fs(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Fs(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 Vo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wf;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=tp.bind(null,e,t,n),t.then(e,e))}function Bo(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 Qo(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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 Uf=Je.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?Lu(t,null,n,r):on(t,e.child,n,r)}function Ko(e,t,n,r,l){n=n.render;var s=t.ref;return tn(t,l),r=Mi(e,t,n,r,s,l),n=Oi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):(H&&n&&ki(t),t.flags|=1,ae(e,t,r,l),t.child)}function Yo(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!Bi(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,lc(e,t,s,r,l)):(e=$r(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&l)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Bn,n(o,r)&&e.ref===t.ref)return Ze(e,t,l)}return t.flags|=1,e=pt(s,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(Bn(s,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=s,(e.lanes&l)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,Ze(e,t,l)}return As(e,t,n,r,l)}function sc(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(qt,ge),ge|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(qt,ge),ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,I(qt,ge),ge|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,I(qt,ge),ge|=r;return ae(e,t,l,n),t.child}function ic(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function As(e,t,n,r,l){var s=me(n)?_t:oe.current;return s=ln(t,s),tn(t,l),n=Mi(e,t,n,r,s,l),r=Oi(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ze(e,t,l)):(H&&r&&ki(t),t.flags|=1,ae(e,t,n,l),t.child)}function Xo(e,t,n,r,l){if(me(n)){var s=!0;Xr(t)}else s=!1;if(tn(t,l),t.stateNode===null)Or(e,t),tc(t,n,r),$s(t,n,r,l),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)&&Uo(t,o,r,d),tt=!1;var h=t.memoizedState;o.state=h,br(t,r,o,l),u=t.memoizedState,a!==r||h!==u||he.current||tt?(typeof m=="function"&&(Is(t,n,m,r),u=t.memoizedState),(a=tt||Wo(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,Ou(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 x=n.getDerivedStateFromProps;(m=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==v||h!==u)&&Uo(t,o,r,u),tt=!1,h=t.memoizedState,o.state=h,br(t,r,o,l);var w=t.memoizedState;a!==v||h!==w||he.current||tt?(typeof x=="function"&&(Is(t,n,x,r),w=t.memoizedState),(d=tt||Wo(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 Hs(e,t,n,r,s,l)}function Hs(e,t,n,r,l,s){ic(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Mo(t,n,!1),Ze(e,t,s);r=t.stateNode,Uf.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=on(t,e.child,null,s),t.child=on(t,null,a,s)):ae(e,t,a,s),t.memoizedState=r.state,l&&Mo(t,n,!0),t.child}function oc(e){var t=e.stateNode;t.pendingContext?Lo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(e,t.context,!1),zi(e,t.containerInfo)}function Go(e,t,n,r,l){return sn(),Si(l),t.flags|=256,ae(e,t,n,r),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0};function Us(e){return{baseLanes:e,cachePool:null,transitions:null}}function ac(e,t,n){var r=t.pendingProps,l=W.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),I(W,l&1),e===null)return Os(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,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=xl(o,r,0,null),e=Tt(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Us(n),t.memoizedState=Ws,e):$i(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Vf(e,t,o,r,a,l,n);if(s){s=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=pt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?s=pt(a,s):(s=Tt(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Us(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Ws,r}return s=e.child,e=s.sibling,r=pt(s,{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 $i(e,t){return t=xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&Si(r),on(t,e.child,null,n),e=$i(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vf(e,t,n,r,l,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Gl(Error(y(422))),jr(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=xl({mode:"visible",children:r.children},l,0,null),s=Tt(s,l,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&on(t,e.child,null,o),t.child.memoizedState=Us(o),t.memoizedState=Ws,s);if(!(t.mode&1))return jr(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(y(419)),r=Gl(s,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:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,qe(e,l),Ie(r,e,l,-1))}return Vi(),r=Gl(Error(y(421))),jr(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=np.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,ye=ut(l.nextSibling),xe=t,H=!0,Oe=null,e!==null&&(Ne[Ce++]=Qe,Ne[Ce++]=Ke,Ne[Ce++]=zt,Qe=e.id,Ke=e.overflow,zt=t),t=$i(t,r.children),t.flags|=4096,t)}function qo(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ds(e.return,t,n)}function ql(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function uc(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=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&&qo(e,n,t);else if(e.tag===19)qo(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(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&el(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ql(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&el(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ql(t,!0,n,null,s);break;case"together":ql(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(y(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 Bf(e,t,n){switch(t.tag){case 3:oc(t),sn();break;case 5:Du(t);break;case 1:me(t.type)&&Xr(t);break;case 4:zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;I(Zr,r._currentValue),r._currentValue=l;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?ac(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 uc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),I(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,sc(e,t,n)}return Ze(e,t,n)}var cc,Vs,dc,fc;cc=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}};Vs=function(){};dc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ct(Ue.current);var s=null;switch(n){case"input":l=ds(e,l),r=ds(e,r),s=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),s=[];break;case"textarea":l=hs(e,l),r=hs(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}vs(n,r);var o;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var a=l[d];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&($n.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(a=l!=null?l[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||(s||(s=[]),s.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&($n.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&$("scroll",e),s||a===u||(s=[])):(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function jn(e,t){if(!H)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 se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qf(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return me(t.type)&&Yr(),se(t),null;case 3:return r=t.stateNode,an(),A(he),A(oe),Ri(),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&&(Zs(Oe),Oe=null))),Vs(e,t),se(t),null;case 5:Pi(t);var l=Ct(Gn.current);if(n=t.type,e!==null&&t.stateNode!=null)dc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(y(166));return se(t),null}if(e=Ct(Ue.current),wr(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[He]=t,r[Yn]=s,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(l=0;l<Tn.length;l++)$(Tn[l],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":lo(r,s),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$("invalid",r);break;case"textarea":io(r,s),$("invalid",r)}vs(n,s),l=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&xr(r.textContent,a,e),l=["children",""+a]):$n.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&$("scroll",r)}switch(n){case"input":dr(r),so(r,s,!0);break;case"textarea":dr(r),oo(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ha(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[He]=t,e[Yn]=r,cc(e,t,!1,!1),t.stateNode=e;e:{switch(o=gs(n,r),n){case"dialog":$("cancel",e),$("close",e),l=r;break;case"iframe":case"object":case"embed":$("load",e),l=r;break;case"video":case"audio":for(l=0;l<Tn.length;l++)$(Tn[l],e);l=r;break;case"source":$("error",e),l=r;break;case"img":case"image":case"link":$("error",e),$("load",e),l=r;break;case"details":$("toggle",e),l=r;break;case"input":lo(e,r),l=ds(e,r),$("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),$("invalid",e);break;case"textarea":io(e,r),l=hs(e,r),$("invalid",e);break;default:l=r}vs(n,l),a=l;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?Va(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Wa(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Fn(e,u):typeof u=="number"&&Fn(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($n.hasOwnProperty(s)?u!=null&&s==="onScroll"&&$("scroll",e):u!=null&&oi(e,s,u,o))}switch(n){case"input":dr(e),so(e,r,!1);break;case"textarea":dr(e),oo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Zt(e,!!r.multiple,s,!1):r.defaultValue!=null&&Zt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.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 se(t),null;case 6:if(e&&t.stateNode!=null)fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(y(166));if(n=Ct(Gn.current),Ct(Ue.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[He]=t,(s=r.nodeValue!==n)&&(e=xe,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)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[He]=t,t.stateNode=r}return se(t),null;case 13:if(A(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(H&&ye!==null&&t.mode&1&&!(t.flags&128))Pu(),sn(),t.flags|=98560,s=!1;else if(s=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(y(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(y(317));s[He]=t}else sn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),s=!1}else Oe!==null&&(Zs(Oe),Oe=null),s=!0;if(!s)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):Vi())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return an(),Vs(e,t),e===null&&Qn(t.stateNode.containerInfo),se(t),null;case 10:return Ei(t.type._context),se(t),null;case 17:return me(t.type)&&Yr(),se(t),null;case 19:if(A(W),s=t.memoizedState,s===null)return se(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)jn(s,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=el(e),o!==null){for(t.flags|=128,jn(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.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}s.tail!==null&&Y()>cn&&(t.flags|=128,r=!0,jn(s,!1),t.lanes=4194304)}else{if(!r)if(e=el(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!H)return se(t),null}else 2*Y()-s.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,jn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Ui(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function Kf(e,t){switch(ji(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 an(),A(he),A(oe),Ri(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pi(t),null;case 13:if(A(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(W),null;case 4:return an(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return Ui(),null;case 24:return null;default:return null}}var Sr=!1,ie=!1,Yf=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 Bs(e,t,n){try{n()}catch(r){B(e,t,r)}}var Zo=!1;function Xf(e,t){if(Ts=Vr,e=gu(),wi(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 l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.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 x;v!==n||l!==0&&v.nodeType!==3||(a=o+l),v!==s||r!==0&&v.nodeType!==3||(u=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(x=v.firstChild)!==null;)h=v,v=x;for(;;){if(v===e)break t;if(h===n&&++d===l&&(a=o),h===s&&++m===r&&(u=o),(x=v.nextSibling)!==null)break;v=h,h=v.parentNode}v=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_s={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(y(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=Zo,Zo=!1,w}function On(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&Bs(t,n,s)}l=l.next}while(l!==r)}}function gl(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 Qs(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 pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[Yn],delete t[Rs],delete t[Pf],delete t[Rf])),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 hc(e){return e.tag===5||e.tag===3||e.tag===4}function Jo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(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 Ks(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(Ks(e,t,n),e=e.sibling;e!==null;)Ks(e,t,n),e=e.sibling}function Ys(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(Ys(e,t,n),e=e.sibling;e!==null;)Ys(e,t,n),e=e.sibling}var te=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(ul,n)}catch{}switch(n.tag){case 5:ie||Gt(n,t);case 6:var r=te,l=Me;te=null,be(e,t,n),te=r,Me=l,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?Vl(e.parentNode,n):e.nodeType===1&&Vl(e,n),Un(e)):Vl(te,n.stateNode));break;case 4:r=te,l=Me,te=n.stateNode.containerInfo,Me=!0,be(e,t,n),te=r,Me=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Bs(n,t,o),l=l.next}while(l!==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 bo(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yf),t.forEach(function(r){var l=rp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=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(y(160));mc(s,o,l),te=null,Me=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){B(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Re(t,e),Fe(e),r&4){try{On(3,e,e.return),gl(3,e)}catch(k){B(e,e.return,k)}try{On(5,e,e.return)}catch(k){B(e,e.return,k)}}break;case 1:Re(t,e),Fe(e),r&512&&n!==null&&Gt(n,n.return);break;case 5:if(Re(t,e),Fe(e),r&512&&n!==null&&Gt(n,n.return),e.flags&32){var l=e.stateNode;try{Fn(l,"")}catch(k){B(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Fa(l,s),gs(a,o);var d=gs(a,s);for(o=0;o<u.length;o+=2){var m=u[o],v=u[o+1];m==="style"?Va(l,v):m==="dangerouslySetInnerHTML"?Wa(l,v):m==="children"?Fn(l,v):oi(l,m,v,d)}switch(a){case"input":fs(l,s);break;case"textarea":Aa(l,s);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?Zt(l,!!s.multiple,x,!1):h!==!!s.multiple&&(s.defaultValue!=null?Zt(l,!!s.multiple,s.defaultValue,!0):Zt(l,!!s.multiple,s.multiple?[]:"",!1))}l[Yn]=s}catch(k){B(e,e.return,k)}}break;case 6:if(Re(t,e),Fe(e),r&4){if(e.stateNode===null)throw Error(y(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(k){B(e,e.return,k)}}break;case 3:if(Re(t,e),Fe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Un(t.containerInfo)}catch(k){B(e,e.return,k)}break;case 4:Re(t,e),Fe(e);break;case 13:Re(t,e),Fe(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(Hi=Y())),r&4&&bo(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),Fe(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,x=h.child,h.tag){case 0:case 11:case 14:case 15:On(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){ta(v);continue}}x!==null?(x.return=h,S=x):ta(v)}m=m.sibling}e:for(m=null,v=e;;){if(v.tag===5){if(m===null){m=v;try{l=v.stateNode,d?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=v.stateNode,u=v.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Ua("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),Fe(e),r&4&&bo(e);break;case 21:break;default:Re(t,e),Fe(e)}}function Fe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hc(n)){var r=n;break e}n=n.return}throw Error(y(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Fn(l,""),r.flags&=-33);var s=Jo(e);Ys(e,s,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Jo(e);Ks(e,a,o);break;default:throw Error(y(161))}}catch(u){B(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gf(e,t,n){S=e,gc(e)}function gc(e,t,n){for(var r=(e.mode&1)!==0;S!==null;){var l=S,s=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Sr;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ie;a=Sr;var d=ie;if(Sr=o,(ie=u)&&!d)for(S=l;S!==null;)o=S,u=o.child,o.tag===22&&o.memoizedState!==null?na(l):u!==null?(u.return=o,S=u):na(l);for(;s!==null;)S=s,gc(s),s=s.sibling;S=l,Sr=a,ie=d}ea(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,S=s):ea(e)}}function ea(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||gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ie)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Fo(t,s,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}Fo(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&&Un(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(y(163))}ie||t.flags&512&&Qs(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 ta(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 na(e){for(;S!==null;){var t=S;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gl(4,t)}catch(u){B(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){B(t,l,u)}}var s=t.return;try{Qs(t)}catch(u){B(t,s,u)}break;case 5:var o=t.return;try{Qs(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 qf=Math.ceil,rl=Je.ReactCurrentDispatcher,Fi=Je.ReactCurrentOwner,Te=Je.ReactCurrentBatchConfig,M=0,ee=null,G=null,ne=0,ge=0,qt=gt(0),Z=0,bn=null,Rt=0,yl=0,Ai=0,Dn=null,fe=null,Hi=0,cn=1/0,Ve=null,ll=!1,Xs=null,dt=null,Nr=!1,st=null,sl=0,In=0,Gs=null,Dr=-1,Ir=0;function ue(){return M&6?Y():Dr!==-1?Dr:Dr=Y()}function ft(e){return e.mode&1?M&2&&ne!==0?ne&-ne:Mf.transition!==null?(Ir===0&&(Ir=tu()),Ir):(e=D,e!==0||(e=window.event,e=e===void 0?16:au(e.type)),e):1}function Ie(e,t,n,r){if(50<In)throw In=0,Gs=null,Error(y(185));nr(e,n,r),(!(M&2)||e!==ee)&&(e===ee&&(!(M&2)&&(yl|=n),Z===4&&rt(e,ne)),ve(e,r),n===1&&M===0&&!(t.mode&1)&&(cn=Y()+500,hl&&yt()))}function ve(e,t){var n=e.callbackNode;Ld(e,t);var r=Ur(e,e===ee?ne:0);if(r===0)n!==null&&co(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&co(n),t===1)e.tag===0?Lf(ra.bind(null,e)):Tu(ra.bind(null,e)),_f(function(){!(M&6)&&yt()}),n=null;else{switch(nu(r)){case 1:n=fi;break;case 4:n=ba;break;case 16:n=Wr;break;case 536870912:n=eu;break;default:n=Wr}n=Cc(n,yc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yc(e,t){if(Dr=-1,Ir=0,M&6)throw Error(y(327));var n=e.callbackNode;if(nn()&&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=il(e,r);else{t=r;var l=M;M|=2;var s=wc();(ee!==e||ne!==t)&&(Ve=null,cn=Y()+500,Et(e,t));do try{bf();break}catch(a){xc(e,a)}while(!0);Ci(),rl.current=s,M=l,G!==null?t=0:(ee=null,ne=0,t=Z)}if(t!==0){if(t===2&&(l=js(e),l!==0&&(r=l,t=qs(e,l))),t===1)throw n=bn,Et(e,0),rt(e,r),ve(e,Y()),n;if(t===6)rt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Zf(l)&&(t=il(e,r),t===2&&(s=js(e),s!==0&&(r=s,t=qs(e,s))),t===1))throw n=bn,Et(e,0),rt(e,r),ve(e,Y()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(y(345));case 2:jt(e,fe,Ve);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Hi+500-Y(),10<t)){if(Ur(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ps(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,l=-1;0<r;){var o=31-De(r);s=1<<o,o=t[o],o>l&&(l=o),r&=~s}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qf(r/1960))-r,10<r){e.timeoutHandle=Ps(jt.bind(null,e,fe,Ve),r);break}jt(e,fe,Ve);break;case 5:jt(e,fe,Ve);break;default:throw Error(y(329))}}}return ve(e,Y()),e.callbackNode===n?yc.bind(null,e):null}function qs(e,t){var n=Dn;return e.current.memoizedState.isDehydrated&&(Et(e,t).flags|=256),e=il(e,t),e!==2&&(t=fe,fe=n,t!==null&&Zs(t)),e}function Zs(e){fe===null?fe=e:fe.push.apply(fe,e)}function Zf(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 l=n[r],s=l.getSnapshot;l=l.value;try{if(!$e(s(),l))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&=~Ai,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-De(t),r=1<<n;e[n]=-1,t&=~r}}function ra(e){if(M&6)throw Error(y(327));nn();var t=Ur(e,0);if(!(t&1))return ve(e,Y()),null;var n=il(e,t);if(e.tag!==0&&n===2){var r=js(e);r!==0&&(t=r,n=qs(e,r))}if(n===1)throw n=bn,Et(e,0),rt(e,t),ve(e,Y()),n;if(n===6)throw Error(y(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jt(e,fe,Ve),ve(e,Y()),null}function Wi(e,t){var n=M;M|=1;try{return e(t)}finally{M=n,M===0&&(cn=Y()+500,hl&&yt())}}function Lt(e){st!==null&&st.tag===0&&!(M&6)&&nn();var t=M;M|=1;var n=Te.transition,r=D;try{if(Te.transition=null,D=1,e)return e()}finally{D=r,Te.transition=n,M=t,!(M&6)&&yt()}}function Ui(){ge=qt.current,A(qt)}function Et(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Tf(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(ji(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yr();break;case 3:an(),A(he),A(oe),Ri();break;case 5:Pi(r);break;case 4:an();break;case 13:A(W);break;case 19:A(W);break;case 10:Ei(r.type._context);break;case 22:case 23:Ui()}n=n.return}if(ee=e,G=e=pt(e.current,null),ne=ge=t,Z=0,bn=null,Ai=yl=Rt=0,fe=Dn=null,Nt!==null){for(t=0;t<Nt.length;t++)if(n=Nt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=l,r.next=o}n.pending=r}Nt=null}return e}function xc(e,t){do{var n=G;try{if(Ci(),Lr.current=nl,tl){for(var r=U.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}tl=!1}if(Pt=0,b=q=U=null,Mn=!1,qn=0,Fi.current=null,n===null||n.return===null){Z=1,bn=t,G=null;break}e:{var s=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 x=Bo(o);if(x!==null){x.flags&=-257,Qo(x,o,a,s,t),x.mode&1&&Vo(s,d,t),t=x,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)){Vo(s,d,t),Vi();break e}u=Error(y(426))}}else if(H&&a.mode&1){var O=Bo(o);if(O!==null){!(O.flags&65536)&&(O.flags|=256),Qo(O,o,a,s,t),Si(un(u,a));break e}}s=u=un(u,a),Z!==4&&(Z=2),Dn===null?Dn=[s]:Dn.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var f=nc(s,u,t);$o(s,f);break e;case 1:a=u;var c=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(dt===null||!dt.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=rc(s,a,t);$o(s,g);break e}}s=s.return}while(s!==null)}jc(n)}catch(j){t=j,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function wc(){var e=rl.current;return rl.current=nl,e===null?nl:e}function Vi(){(Z===0||Z===3||Z===2)&&(Z=4),ee===null||!(Rt&268435455)&&!(yl&268435455)||rt(ee,ne)}function il(e,t){var n=M;M|=2;var r=wc();(ee!==e||ne!==t)&&(Ve=null,Et(e,t));do try{Jf();break}catch(l){xc(e,l)}while(!0);if(Ci(),M=n,rl.current=r,G!==null)throw Error(y(261));return ee=null,ne=0,Z}function Jf(){for(;G!==null;)kc(G)}function bf(){for(;G!==null&&!Sd();)kc(G)}function kc(e){var t=Nc(e.alternate,e,ge);e.memoizedProps=e.pendingProps,t===null?jc(e):G=t,Fi.current=null}function jc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kf(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,G=null;return}}else if(n=Qf(n,t,ge),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);Z===0&&(Z=5)}function jt(e,t,n){var r=D,l=Te.transition;try{Te.transition=null,D=1,ep(e,t,n,r)}finally{Te.transition=l,D=r}return null}function ep(e,t,n,r){do nn();while(st!==null);if(M&6)throw Error(y(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(y(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Md(e,s),e===ee&&(G=ee=null,ne=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nr||(Nr=!0,Cc(Wr,function(){return nn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Te.transition,Te.transition=null;var o=D;D=1;var a=M;M|=4,Fi.current=null,Xf(e,n),vc(n,e),wf(_s),Vr=!!Ts,_s=Ts=null,e.current=n,Gf(n),Nd(),M=a,D=o,Te.transition=s}else e.current=n;if(Nr&&(Nr=!1,st=e,sl=l),s=e.pendingLanes,s===0&&(dt=null),Td(n.stateNode),ve(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(ll)throw ll=!1,e=Xs,Xs=null,e;return sl&1&&e.tag!==0&&nn(),s=e.pendingLanes,s&1?e===Gs?In++:(In=0,Gs=e):In=0,yt(),null}function nn(){if(st!==null){var e=nu(sl),t=Te.transition,n=D;try{if(Te.transition=null,D=16>e?16:e,st===null)var r=!1;else{if(e=st,st=null,sl=0,M&6)throw Error(y(331));var l=M;for(M|=4,S=e.current;S!==null;){var s=S,o=s.child;if(S.flags&16){var a=s.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:On(8,m,s)}var v=m.child;if(v!==null)v.return=m,S=v;else for(;S!==null;){m=S;var h=m.sibling,x=m.return;if(pc(m),m===d){S=null;break}if(h!==null){h.return=x,S=h;break}S=x}}}var w=s.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=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,S=o;else e:for(;S!==null;){if(s=S,s.flags&2048)switch(s.tag){case 0:case 11:case 15:On(9,s,s.return)}var f=s.sibling;if(f!==null){f.return=s.return,S=f;break e}S=s.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:gl(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=l,yt(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(ul,e)}catch{}r=!0}return r}finally{D=n,Te.transition=t}}return!1}function la(e,t,n){t=un(n,t),t=nc(e,t,1),e=ct(e,t,1),t=ue(),e!==null&&(nr(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=un(n,e),e=rc(t,e,1),t=ct(t,e,1),e=ue(),t!==null&&(nr(t,1,e),ve(t,e));break}}t=t.return}}function tp(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()-Hi?Et(e,0):Ai|=n),ve(e,t)}function Sc(e,t){t===0&&(e.mode&1?(t=hr,hr<<=1,!(hr&130023424)&&(hr=4194304)):t=1);var n=ue();e=qe(e,t),e!==null&&(nr(e,t,n),ve(e,n))}function np(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sc(e,n)}function rp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Sc(e,n)}var Nc;Nc=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,Bf(e,t,n);pe=!!(e.flags&131072)}else pe=!1,H&&t.flags&1048576&&_u(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Or(e,t),e=t.pendingProps;var l=ln(t,oe.current);tn(t,n),l=Mi(null,t,r,e,l,n);var s=Oi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(s=!0,Xr(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,_i(t),l.updater=vl,t.stateNode=l,l._reactInternals=t,$s(t,r,e,n),t=Hs(null,t,r,!0,s,n)):(t.tag=0,H&&s&&ki(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Or(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=sp(r),e=Le(r,e),l){case 0:t=As(null,t,r,e,n);break e;case 1:t=Xo(null,t,r,e,n);break e;case 11:t=Ko(null,t,r,e,n);break e;case 14:t=Yo(null,t,r,Le(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),As(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Xo(e,t,r,l,n);case 3:e:{if(oc(t),e===null)throw Error(y(387));r=t.pendingProps,s=t.memoizedState,l=s.element,Ou(e,t),br(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=un(Error(y(423)),t),t=Go(e,t,r,n,l);break e}else if(r!==l){l=un(Error(y(424)),t),t=Go(e,t,r,n,l);break e}else for(ye=ut(t.stateNode.containerInfo.firstChild),xe=t,H=!0,Oe=null,n=Lu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===l){t=Ze(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return Du(t),e===null&&Os(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,zs(r,l)?o=null:s!==null&&zs(r,s)&&(t.flags|=32),ic(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Os(t),null;case 13:return ac(e,t,n);case 4:return zi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=on(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ko(e,t,r,l,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,l=t.pendingProps,s=t.memoizedProps,o=l.value,I(Zr,r._currentValue),r._currentValue=o,s!==null)if($e(s.value,o)){if(s.children===l.children&&!he.current){t=Ze(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Ye(-1,n&-n),u.tag=2;var d=s.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}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Ds(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(y(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ds(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tn(t,n),l=_e(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),Yo(e,t,r,l,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Or(e,t),t.tag=1,me(r)?(e=!0,Xr(t)):e=!1,tn(t,n),tc(t,r,l),$s(t,r,l,n),Hs(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return sc(e,t,n)}throw Error(y(156,t.tag))};function Cc(e,t){return Ja(e,t)}function lp(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 lp(e,t,n,r)}function Bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sp(e){if(typeof e=="function")return Bi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ui)return 11;if(e===ci)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 $r(e,t,n,r,l,s){var o=2;if(r=e,typeof e=="function")Bi(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ht:return Tt(n.children,l,s,t);case ai:o=8,l|=8;break;case os:return e=Ee(12,n,t,l|2),e.elementType=os,e.lanes=s,e;case as:return e=Ee(13,n,t,l),e.elementType=as,e.lanes=s,e;case us:return e=Ee(19,n,t,l),e.elementType=us,e.lanes=s,e;case Da:return xl(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ma:o=10;break e;case Oa:o=9;break e;case ui:o=11;break e;case ci:o=14;break e;case et:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function Tt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function xl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Da,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function Jl(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 ip(e,t,n,r,l){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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Qi(e,t,n,r,l,s,o,a,u){return e=new ip(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ee(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_i(s),e}function op(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 Ec(e){if(!e)return mt;e=e._reactInternals;e:{if(Dt(e)!==e||e.tag!==1)throw Error(y(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(y(171))}if(e.tag===1){var n=e.type;if(me(n))return Eu(e,n,t)}return t}function Tc(e,t,n,r,l,s,o,a,u){return e=Qi(n,r,!0,e,l,s,o,a,u),e.context=Ec(null),n=e.current,r=ue(),l=ft(n),s=Ye(r,l),s.callback=t??null,ct(n,s,l),e.current.lanes=l,nr(e,l,r),ve(e,r),e}function wl(e,t,n,r){var l=t.current,s=ue(),o=ft(l);return n=Ec(n),t.context===null?t.context=n:t.pendingContext=n,t=Ye(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(l,t,o),e!==null&&(Ie(e,l,o,s),Rr(e,l,o)),o}function ol(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 sa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ki(e,t){sa(e,t),(e=e.alternate)&&sa(e,t)}function ap(){return null}var _c=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yi(e){this._internalRoot=e}kl.prototype.render=Yi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(y(409));wl(e,t,null,null)};kl.prototype.unmount=Yi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lt(function(){wl(null,e,null,null)}),t[Ge]=null}};function kl(e){this._internalRoot=e}kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=su();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&&ou(e)}};function Xi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ia(){}function up(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var d=ol(o);s.call(d)}}var o=Tc(t,r,e,0,null,!1,!1,"",ia);return e._reactRootContainer=o,e[Ge]=o.current,Qn(e.nodeType===8?e.parentNode:e),Lt(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var d=ol(u);a.call(d)}}var u=Qi(e,0,!1,null,null,!1,!1,"",ia);return e._reactRootContainer=u,e[Ge]=u.current,Qn(e.nodeType===8?e.parentNode:e),Lt(function(){wl(t,u,n,r)}),u}function Sl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var o=s;if(typeof l=="function"){var a=l;l=function(){var u=ol(o);a.call(u)}}wl(t,o,e,l)}else o=up(n,t,e,l,r);return ol(o)}ru=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=En(t.pendingLanes);n!==0&&(pi(t,n|1),ve(t,Y()),!(M&6)&&(cn=Y()+500,yt()))}break;case 13:Lt(function(){var r=qe(e,1);if(r!==null){var l=ue();Ie(r,e,1,l)}}),Ki(e,1)}};hi=function(e){if(e.tag===13){var t=qe(e,134217728);if(t!==null){var n=ue();Ie(t,e,134217728,n)}Ki(e,134217728)}};lu=function(e){if(e.tag===13){var t=ft(e),n=qe(e,t);if(n!==null){var r=ue();Ie(n,e,t,r)}Ki(e,t)}};su=function(){return D};iu=function(e,t){var n=D;try{return D=e,t()}finally{D=n}};xs=function(e,t,n){switch(t){case"input":if(fs(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 l=pl(r);if(!l)throw Error(y(90));$a(r),fs(r,l)}}}break;case"textarea":Aa(e,n);break;case"select":t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}};Ka=Wi;Ya=Lt;var cp={usingClientEntryPoint:!1,Events:[lr,Bt,pl,Ba,Qa,Wi]},Sn={findFiberByHostInstance:St,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dp={bundleType:Sn.bundleType,version:Sn.version,rendererPackageName:Sn.rendererPackageName,rendererConfig:Sn.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=qa(e),e===null?null:e.stateNode},findFiberByHostInstance:Sn.findFiberByHostInstance||ap,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{ul=Cr.inject(dp),We=Cr}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cp;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xi(t))throw Error(y(200));return op(e,t,null,n)};je.createRoot=function(e,t){if(!Xi(e))throw Error(y(299));var n=!1,r="",l=_c;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Qi(e,1,!1,null,null,n,!1,r,l),e[Ge]=t.current,Qn(e.nodeType===8?e.parentNode:e),new Yi(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(y(188)):(e=Object.keys(e).join(","),Error(y(268,e)));return e=qa(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Lt(e)};je.hydrate=function(e,t,n){if(!jl(t))throw Error(y(200));return Sl(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Xi(e))throw Error(y(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",o=_c;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Tc(t,null,e,1,n??null,l,!1,s,o),e[Ge]=t.current,Qn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new kl(t)};je.render=function(e,t,n){if(!jl(t))throw Error(y(200));return Sl(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!jl(e))throw Error(y(40));return e._reactRootContainer?(Lt(function(){Sl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ge]=null})}),!0):!1};je.unstable_batchedUpdates=Wi;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jl(n))throw Error(y(200));if(e==null||e._reactInternals===void 0)throw Error(y(38));return Sl(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function zc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zc)}catch(e){console.error(e)}}zc(),za.exports=je;var fp=za.exports,oa=fp;ss.createRoot=oa.createRoot,ss.hydrateRoot=oa.hydrateRoot;/**
41
- * @license lucide-react v0.441.0 - ISC
42
- *
43
- * This source code is licensed under the ISC license.
44
- * See the LICENSE file in the root directory of this source tree.
45
- */const pp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pc=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
46
- * @license lucide-react v0.441.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */var hp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
- * @license lucide-react v0.441.0 - ISC
52
- *
53
- * This source code is licensed under the ISC license.
54
- * See the LICENSE file in the root directory of this source tree.
55
- */const mp=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:s,iconNode:o,...a},u)=>P.createElement("svg",{ref:u,...hp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Pc("lucide",l),...a},[...o.map(([d,m])=>P.createElement(d,m)),...Array.isArray(s)?s:[s]]));/**
56
- * @license lucide-react v0.441.0 - ISC
57
- *
58
- * This source code is licensed under the ISC license.
59
- * See the LICENSE file in the root directory of this source tree.
60
- */const X=(e,t)=>{const n=P.forwardRef(({className:r,...l},s)=>P.createElement(mp,{ref:s,iconNode:t,className:Pc(`lucide-${pp(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
61
- * @license lucide-react v0.441.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Js=X("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
- * @license lucide-react v0.441.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */const vp=X("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
71
- * @license lucide-react v0.441.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const gp=X("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
76
- * @license lucide-react v0.441.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const yp=X("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
81
- * @license lucide-react v0.441.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const xp=X("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
86
- * @license lucide-react v0.441.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const wp=X("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
91
- * @license lucide-react v0.441.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const kp=X("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
96
- * @license lucide-react v0.441.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const jp=X("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
101
- * @license lucide-react v0.441.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const bs=X("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
106
- * @license lucide-react v0.441.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const Sp=X("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
111
- * @license lucide-react v0.441.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const Np=X("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
116
- * @license lucide-react v0.441.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Rc=X("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
121
- * @license lucide-react v0.441.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const aa=X("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
- * @license lucide-react v0.441.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const Cp=X("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
131
- * @license lucide-react v0.441.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const Ep=X("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
136
- * @license lucide-react v0.441.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Tp=X("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
141
- * @license lucide-react v0.441.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const _p=X("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
146
- * @license lucide-react v0.441.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const zp=X("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
151
- * @license lucide-react v0.441.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const Pp=X("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
156
- * @license lucide-react v0.441.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const Rp=X("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
161
- * @license lucide-react v0.441.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const Lp=X("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class Mp extends li.Component{constructor(){super(...arguments);Zi(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(_p,{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(Rc,{size:16})," Retry view"]})]}):this.props.children}}function $t({icon:e,label:t,status:n,detail:r}){const l=["ready","active","online","local"].includes(n)?"ready":["warming","idle","missing"].includes(n)?"warming":"degraded";return i.jsxs("div",{className:`health-item ${l}`,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 Op({data:e,loading:t,stale:n,onRetry:r}){var s,o,a,u,d,m,v,h,x,w,k,O,f,c,p,g,j;if(t&&!e)return i.jsxs("div",{className:"system-health loading",children:[i.jsx(Js,{size:16,className:"spinning"})," Checking system health…"]});if(!e||e.error)return i.jsxs("div",{className:"system-health unavailable",role:"alert",children:[i.jsx(aa,{size:16})," Health unavailable",i.jsxs("button",{type:"button",onClick:r,children:[i.jsx(Rc,{size:14})," Retry"]})]});const l=Object.values(((s=e.caches)==null?void 0:s.layers)??{}).filter(C=>C>0).length;return i.jsxs("section",{className:`system-health ${n?"stale":""}`,"aria-label":"System health",children:[i.jsx($t,{icon:yp,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($t,{icon:Pp,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($t,{icon:vp,label:"Semantic",status:((h=e.semantic)==null?void 0:h.status)??"disabled",detail:((x=e.semantic)==null?void 0:x.message)??"Background enrichment"}),i.jsx($t,{icon:Np,label:"Cache",status:((w=e.caches)==null?void 0:w.status)??"warming",detail:`${l}/4 layers populated`}),i.jsx($t,{icon:Js,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($t,{icon:aa,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 Lc="rigour-studio-key",Dp="x-rigour-studio-key";function Ip(){const e=window.location.hash.match(/(?:^#|&)key=([a-f0-9]+)/);if(e){try{sessionStorage.setItem(Lc,e[1])}catch{}window.history.replaceState(null,"",window.location.pathname+window.location.search)}}function Gi(){return Mc().length>0}function Mc(){try{return sessionStorage.getItem(Lc)??""}catch{return""}}function ir(e,t,n,r="application/json"){const l={[Dp]:Mc()};return n!==void 0&&(l["Content-Type"]=r),fetch(e,{method:t,headers:l,body:n})}const Oc={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 Mt(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 F(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function we(e){const[t,n]=P.useState(null),[r,l]=P.useState(null),s=P.useCallback(()=>{fetch(e).then(async o=>o.ok?n(await o.json()):l(`HTTP ${o.status}`)).catch(o=>l(o instanceof Error?o.message:String(o)))},[e]);return P.useEffect(s,[s]),{data:t,error:r,reload:s}}function er(e){return e.split(/(`[^`]+`)/g).map((t,n)=>t.startsWith("`")&&t.endsWith("`")&&t.length>2?li.createElement("code",{key:n,className:"st-mono st-inline-code"},t.slice(1,-1)):t)}const ua="rigour-intro-hidden",$p=({onNavigate:e})=>{const{data:t,error:n,reload:r}=we("/api/week"),[l,s]=P.useState(null),[o,a]=P.useState(()=>{try{return localStorage.getItem(ua)!=="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(ua,"1")}catch{}a(!1)},d=t.needs;return i.jsxs("div",{className:"st-page",children:[o&&i.jsx(Fp,{onHide:u}),i.jsx("h1",{className:"st-h1",children:d.length===0?"Nothing needs you.":`${F(d.length,"thing needs","things need")} you.`}),i.jsx("p",{className:"st-lead",children:t.stopped.total>0?`${F(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(Ap,{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(Hp,{story:m,open:l===m.id,onToggle:()=>s(l===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(Wp,{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 ${F(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()]})]})]})]})},Fp=({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."})]})]})]})]}),Ap=({need:e,onDone:t})=>{const[n,r]=P.useState("idle"),l=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 ir("/api/dismiss","POST",JSON.stringify({key:e.key,reason:o}))).ok?t():r("failed")},s=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?Oc[e.stage]:""," · ",Mt(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:s,type:"button",children:n==="copied"?"Copied: paste it to your agent":"Copy for my agent"}),e.key&&i.jsx("button",{className:"st-btn",onClick:l,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."})]})]})},Hp=({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:Oc[e.stage]}),i.jsx("span",{className:"st-sub",children:Mt(e.at)})]}),i.jsx("div",{style:{fontSize:16,lineHeight:1.55,marginTop:10},children:er(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,l)=>i.jsx("span",{className:`st-ln ${r[0]==="+"?"add":r[0]==="-"?"del":""}`,children:r},l))}),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:er(e.details)})]})]})]}),Wp=({data:e})=>{const[t,n]=P.useState(!1);if(e.stopped.total===0)return null;const r=`Rigour stopped ${F(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.`,l=async()=>{try{await navigator.clipboard.writeText(r),n(!0)}catch{}};return i.jsx("button",{className:"st-btn",onClick:l,type:"button",style:{marginTop:14,width:"100%"},children:t?"Copied":"Copy this week"})},Up=e=>new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"}),bl=(e,t)=>e.reduce((n,r)=>n+t(r),0),Vp=()=>{var s;const{data:e,error:t}=we("/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),l=((s=e.weeks[e.weeks.length-1])==null?void 0:s.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: ",F(bl(n,o=>o.stopped),"problem")," stopped before a PR",r.length?` (${bl(r,o=>o.stopped)} in the 4 weeks before)`:"",", ",F(bl(n,o=>o.repeatsStopped),"repeat mistake")," caught,"," ",F(l,"lesson")," learned so far."]}),i.jsxs("div",{className:"st-stack",style:{marginTop:24},children:[i.jsx(Ft,{title:"Stopped before a PR",hint:"fixed by the agent after Rigour reported it",weeks:e.weeks,value:o=>o.stopped}),i.jsx(Ft,{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(Ft,{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(Ft,{title:"Minutes from report to fix",hint:"median; lower is better",weeks:e.weeks,value:o=>o.minutesToFix}),i.jsx(Ft,{title:"Overruled",hint:"findings someone marked not a bug",weeks:e.weeks,value:o=>o.overruled}),i.jsx(Ft,{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:[er(o.text),i.jsxs("div",{className:"st-sub",children:[F(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))})]})]})]})},Ft=({title:e,hint:t,weeks:n,value:r,empty:l})=>{const s=n.map(r),o=s.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&&l?i.jsx("div",{className:"st-sub",style:{marginTop:10},children:l}):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:s[d]??"—"}),i.jsx("span",{style:{height:`${s[d]===null?2:Math.max(2,s[d]/a*56)}px`,opacity:s[d]===null?.25:1}}),i.jsx("div",{className:"st-sub",style:{fontSize:11},children:Up(u.from)})]},u.from))})]})},Bp=()=>{const{data:e,error:t}=we("/api/week"),n=we("/api/setup").data,r=n==null?void 0:n.checks.some(s=>s.id==="stop"&&s.state!=="missing"&&s.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 l=e.stories.filter(s=>s.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 ${F(e.agentSaidDone,"time")}. Each was fixed before the agent stopped.`}),i.jsx("div",{className:"st-stack",style:{marginTop:14},children:l.map(s=>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:s.title}),i.jsxs("div",{className:"st-sub",style:{marginTop:4},children:[i.jsx("span",{className:"st-mono",children:s.file})," · ",Mt(s.at)]})]}),i.jsx("span",{className:"st-chip ok",children:"fixed"})]},s.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 ${F(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."]})]})]})},es=(e,t=!0)=>t?e===null?"not recorded here":e===1?"1 time":`${e} times`:"—",Qp=()=>{const{data:e,error:t,reload:n}=we("/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(s,o)=>{(await ir("/api/lessons","POST",JSON.stringify({id:s,state:o}))).ok&&n()},l=Math.max(1,...e.weeks.map(s=>Math.max(s.stoppedInDevelopment,s.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(s=>i.jsxs("div",{className:"st-bar",children:[i.jsxs("div",{style:{fontSize:13},children:[s.stoppedInDevelopment," stopped",s.reachedPr===null?"":` · ${s.reachedPr} reached a PR`]}),i.jsx("span",{style:{height:`${Math.max(4,s.stoppedInDevelopment/l*80)}px`}}),i.jsxs("div",{className:"st-sub",children:["from ",new Date(s.from).toLocaleDateString(void 0,{month:"short",day:"numeric"})]})]},s.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.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(s=>i.jsx(Kp,{lesson:s,onDecide:r},s.id))}),i.jsx(Yp,{})]})},Kp=({lesson:e,onDecide:t})=>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:er(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:es(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:es(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:es(e.reachedPr,e.origin==="development")})]})]}),e.canDecide&&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"})]})]}),Yp=()=>{var r,l,s;const e=we("/api/learned-rules").data??[],t=Object.entries(((r=we("/api/memory").data)==null?void 0:r.memories)??{}),n=(s=(l=we("/api/index-stats").data)==null?void 0:l.stats)==null?void 0:s.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."})]})]})},ca=e=>e>=1e3?`${Math.round(e/1e3)}k`:String(e),Xp=()=>{const{data:e,error:t}=we("/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(da,{title:"Where to look",value:n.scopes===0?"Not asked this week":`${F(n.filesReturned,"file")} instead of ${n.filesConsidered}`,detail:n.scopes===0?"Agents can ask for the files a task needs instead of reading broadly.":`${F(n.scopes,"request")}. About ${ca(n.tokensReturned)} tokens returned out of ${ca(n.tokensConsidered)} considered (Rigour's estimate).`}),i.jsx(da,{title:"What this team knows",value:`${F(n.lessonsTold,"lesson")} told`,detail:`${F(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(l=>i.jsxs("div",{className:"st-row",style:{alignItems:"flex-start"},children:[i.jsx("span",{className:`st-chip ${l.action==="BLOCK"?"warn":""}`,children:l.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:l.planned}),"; told to use ",i.jsx("span",{className:"st-mono",children:l.existing})]}),i.jsx("span",{className:"st-sub",children:Mt(l.at)})]},`${l.at}-${l.planned}`))})]})]}),i.jsx(Gp,{weeks:e.weeks})]})},da=({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})]}),Gp=({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))})]})]})},ts={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"},qp=e=>e.file?`${e.file}${e.line?`:${e.line}`:""}`:"",Zp=({data:e,canWrite:t,onChange:n})=>{var l,s,o,a;const r=(l=e.status)==null?void 0:l.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]}),((s=e.status)==null?void 0:s.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)," ",Mt(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?`${F(r.open.length,"finding")} to fix`:"nothing to fix"})," ",i.jsxs("span",{className:"st-sub",children:[r.ran?`${ts[r.ran.ran]??r.ran.ran}, `:"",r.mode==="delta"?"new commits":"the whole branch"," at ",r.head.slice(0,9),", ",Mt(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 ",ts[r.ran.asked]??r.ran.asked," (",r.ran.source,"); ran ",ts[r.ran.ran]??r.ran.ran,". ",[r.ran.degraded,r.ran.escalation].filter(Boolean).join("; ")]}),r.open.map(u=>i.jsx(fa,{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(fa,{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."]})]})},fa=({item:e,disputed:t,canWrite:n,onChange:r})=>{const[l,s]=P.useState(""),[o,a]=P.useState(!1),[u,d]=P.useState(null),m=async()=>{const v=await ir("/api/reviewer/dismiss","POST",JSON.stringify({id:e.id,reason:l}));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:qp(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:l,onChange:v=>s(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:l.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]})]})},pa=({label:e,value:t,options:n,disabled:r,withTeam:l,onChange:s})=>{const o=l?[{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&&s(u.value),children:u.label},u.label)})})},Jp={flag:"this run",env:"environment",user:"yours",team:"team"};function bp(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 ns=[{value:!0,label:"on"},{value:!1,label:"off"}],ha=[{value:"single",label:"one judge"},{value:"cross",label:"one, another vendor"},{value:"full",label:"one per vendor"}],eh=({data:e,canWrite:t,saving:n,onSave:r,onSaveTeam:l})=>{const[s,o]=P.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:ns},team:{value:u.enabled??!1,options:ns}},{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:ha},team:{value:u.mode??"single",options:ha},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:ns},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||s);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&&!s&&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:["· ",Jp[bp(h,a)]]}),h.locked&&i.jsxs("span",{title:h.locked,"aria-label":h.locked,children:[" ",i.jsx(bs,{size:12})]})]}),i.jsx("span",{className:"st-sub",children:"Yours"}),h.user?i.jsx(pa,{label:`Your ${h.label}`,withTeam:!0,disabled:!t||n!==null,value:h.user.value,options:h.user.options,onChange:x=>r({[h.key]:x})}):i.jsx("span",{className:"st-sub",children:"set by the team only"}),i.jsx("span",{className:"st-sub",children:"Team"}),i.jsx(pa,{label:`Team ${h.label}`,disabled:!v||n!==null,value:h.team.value,options:h.team.options,onChange:x=>l({[h.key]:x},!e.teamFile)})]})]},h.key))}),i.jsx(th,{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))})]})},th=({data:e})=>{var l;const t=((l=e.status)==null?void 0:l.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:[F(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)."]})]})},nh=({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 Dc(){return we("/api/reviewer")}const rh=()=>{const{data:e,error:t,reload:n}=Dc();return t?i.jsxs("div",{className:"st-empty",children:["Couldn't load the reviewer's verdict: ",t,"."]}):e?i.jsx(Zp,{data:e,canWrite:Gi(),onChange:n}):i.jsx("div",{className:"st-sub",children:"Loading…"})},lh=()=>{const{data:e,error:t,reload:n}=Dc(),[r,l]=P.useState(null),[s,o]=P.useState(null),[a,u]=P.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)=>{l(h),o(null);const x=await ir(m,"POST",JSON.stringify(v)),w=await x.json().catch(()=>({}));x.ok?m.endsWith("/team")&&u(w.diff??null):o(w.error??`HTTP ${x.status}`),l(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(eh,{data:e,canWrite:Gi(),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]}`)}),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})]}),a&&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:a.split(`
166
- `).map((m,v)=>i.jsx("div",{className:`st-ln ${m.startsWith("+")?"add":m.startsWith("-")?"del":""}`,children:m},v))})]}),i.jsx(nh,{data:e})]})},sh=e=>e==="agent"?"your agent":e==="human"?"you":e.replace(/^byok:/,""),ih=()=>{const{data:e,error:t}=we("/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(rh,{}),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: ${F(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:[sh(n.reviewer)," · ",Mt(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":`${F(e.spend.runs,"run")}, ${oh(e.spend)}${e.lastModel?`, last with ${e.lastModel}`:""}`,"."]})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})};function oh(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 ma={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"}},rs=e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),ah=e=>new Date(e).toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"}),uh=()=>{const{data:e,error:t}=we("/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(ch,{session:n},n.start))})]}):i.jsx("div",{className:"st-page",children:i.jsx("div",{className:"st-sub",children:"Loading…"})})},ch=({session:e})=>{const[t,n]=P.useState(!1),r=e.counts,l=r.fixed+r.reviewedFixed,s=[l&&`${F(l,"problem")} fixed`,r.stopped&&`${F(r.stopped,"edit")} blocked`,r.pr&&`${F(r.pr,"branch review")} with findings`,r.reviewed&&`${F(r.reviewed,"risky function")} reviewed${r.reviewed-r.reviewedFixed?` (${r.reviewed-r.reviewedFixed} fine)`:""}`,r.checked&&`${F(r.checked,"edit")} checked clean`,r.taught&&`lessons given ${F(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:[ah(e.start),", ",rs(e.start),e.start!==e.end?`–${rs(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 ${F(e.rest.length,"routine item")}`})]}),i.jsx("div",{className:"st-sub",style:{marginTop:6},children:s})]}),[...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":ma[o.kind].cls}`,style:{minWidth:70,textAlign:"center"},children:o.kind==="reviewed"&&o.text.startsWith("Fixed ")?"fixed":ma[o.kind].label}),i.jsxs("div",{style:{flex:1,minWidth:0},children:[i.jsx("div",{style:{fontSize:14,lineHeight:1.5},children:er(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:rs(o.at)})]},`${o.at}-${a}`))]})},dh={working:"ok","set up":"",broken:"bad",missing:"warn"},fh=()=>{const{data:e,error:t}=we("/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 ${dh[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(lh,{}),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…"})})},va=60,ph=({request:e,onClose:t})=>{const[n,r]=P.useState(va),[l,s]=P.useState(null);P.useEffect(()=>{const a=e.timestamp?Date.parse(e.timestamp):Date.now(),u=()=>r(Math.max(0,va-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 ir("/api/arbitrate","POST",JSON.stringify({requestId:e.requestId||e.id,decision:a}));u.ok?t():s(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."}),l&&i.jsx("div",{className:"st-sub",style:{marginTop:10,color:"var(--status-error)"},children:l}),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"})]})]})})},ga="rigour-theme-v2",ls=[{id:"week",label:"This week",icon:kp,page:e=>i.jsx($p,{onNavigate:e})},{id:"progress",label:"Progress",icon:Tp,page:()=>i.jsx(Vp,{})},{id:"only",label:"Only Rigour",icon:zp,page:()=>i.jsx(Bp,{})},{id:"learns",label:"How it learns",icon:wp,page:()=>i.jsx(Qp,{})},{id:"context",label:"Agent context",icon:gp,page:()=>i.jsx(Xp,{})},{id:"reviews",label:"Review",icon:jp,page:()=>i.jsx(ih,{})},{id:"activity",label:"Activity",icon:Js,page:()=>i.jsx(uh,{})},{id:"setup",label:"Setup",icon:Rp,page:()=>i.jsx(fh,{})}],hh=6e4;function mh(){const[e,t]=P.useState(()=>{try{return localStorage.getItem(ga)||"light"}catch{return"light"}}),[n,r]=P.useState("week"),[l,s]=P.useState(null),[o,a]=P.useState("connecting"),[u,d]=P.useState(null),[m,v]=P.useState(null),[h,x]=P.useState(!0),[w,k]=P.useState(!1),O=P.useCallback(async()=>{x(!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{x(!1)}},[]);P.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)<hh;g.type==="interception_requested"&&j&&d(g)}catch{}},fetch("/api/info").then(p=>p.json()).then(s).catch(()=>s(null)),()=>c.close()},[]),P.useEffect(()=>{document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem(ga,e)}catch{}},[e]);const f=ls.find(c=>c.id===n)??ls[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(Cp,{size:18})}),i.jsx("span",{children:"Rigour"}),(l==null?void 0:l.studioVersion)&&i.jsxs("div",{className:"version-pill",children:["v",l.studioVersion]})]}),i.jsx("nav",{children:ls.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))}),l&&i.jsx("div",{className:"sidebar-footer",children:i.jsxs("div",{className:"trust-indicator",title:l.teamSync?"Lessons your team promotes are shared through your team store":"Nothing leaves this machine",children:[i.jsx(bs,{size:14}),i.jsx("span",{children:l.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:l&&i.jsxs("div",{className:"project-identity",children:[i.jsx(xp,{size:14,className:"folder-icon"}),i.jsx("span",{className:"project-name",children:l.projectName}),l.projectVersion&&i.jsxs("span",{className:"project-version-pill",children:["v",l.projectVersion]}),l.branch&&i.jsx("span",{className:"project-version-pill",title:"Current branch",children:l.branch}),i.jsx("span",{className:"project-path",children:l.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(Ep,{size:18}):i.jsx(Sp,{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(Lp,{size:15})})]}),i.jsx(Op,{data:m,loading:h,stale:!1,onRetry:O})]}),i.jsxs("div",{className:"view-container",children:[!Gi()&&i.jsxs("div",{className:"overview-banner",role:"note",children:[i.jsx(bs,{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(Mp,{resetKey:f.id,children:i.jsx("div",{className:"full-view",children:f.page(r)})})]})]}),u&&i.jsx(ph,{request:u,onClose:()=>d(null)})]})}Ip();ss.createRoot(document.getElementById("root")).render(i.jsx(li.StrictMode,{children:i.jsx(mh,{})}));