@spexcode/spec-dashboard 0.7.0-next.7 → 0.7.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{App-DbqxElOY.js → App-C_vUCsZ4.js} +2 -2
- package/{dist-public/assets/EmptyView-BhnoNsVg.js → dist/assets/EmptyView-D5O8Qc51.js} +1 -1
- package/{dist-public/assets/EvalsPage-BQjQTms7.js → dist/assets/EvalsPage-D0189r-H.js} +1 -1
- package/dist/assets/{FileView-B34lzxCP.js → FileView-Cgk0UAt3.js} +2 -2
- package/dist/assets/{GraphView-DlyYL5i7.js → GraphView-BbQD7wmx.js} +3 -3
- package/dist/assets/{IssuesPage-C-UN9ikl.js → IssuesPage-C0plQDiv.js} +1 -1
- package/dist/assets/{MobileApp-DMroaXDt.js → MobileApp-D07GDpVL.js} +2 -2
- package/dist/assets/{Modal-DRD7ouvU.js → Modal-BQSRvnM6.js} +1 -1
- package/dist/assets/{NodeView-DzoQCYz8.js → NodeView-DiszPD9Q.js} +1 -1
- package/{dist-public/assets/ProjectsPage-CNf0IHXM.js → dist/assets/ProjectsPage-CURT6-L8.js} +1 -1
- package/dist/assets/{ProseActions-CnguPdrA.js → ProseActions-DxlOQ4L3.js} +1 -1
- package/dist/assets/{Settings-DGe1-Sk6.js → Settings-9mDE8PUC.js} +1 -1
- package/dist/assets/{SpecView-CYC3S1M6.js → SpecView-Dms8C7Rz.js} +1 -1
- package/dist/assets/{Thread-DKjV7rGQ.js → Thread-CNeRDPHy.js} +1 -1
- package/dist/assets/{WorkspaceSurface-DqS6tHKe.js → WorkspaceSurface-C6tbLzaQ.js} +1 -1
- package/dist/assets/{index-DSjQgXkH.js → index-BkvRaPWI.js} +1 -1
- package/dist/assets/index-CDeR37ZW.css +1 -0
- package/{dist-public/assets/index-jeX_pfuC.js → dist/assets/index-DU_oTIcl.js} +1 -1
- package/dist/assets/{tabs-CFXe7WEj.js → tabs-BDG08OAm.js} +47 -47
- package/dist/index.html +2 -2
- package/dist-public/assets/{App-DW9WVPow.js → App-BhQDZjCW.js} +2 -2
- package/{dist/assets/EmptyView-CRAnl-h8.js → dist-public/assets/EmptyView-B0TpRjOF.js} +1 -1
- package/{dist/assets/EvalsPage-Dm95x9IR.js → dist-public/assets/EvalsPage-C3YrABQ3.js} +1 -1
- package/dist-public/assets/{FileView-BWS_tu4U.js → FileView-C22J3fY3.js} +2 -2
- package/dist-public/assets/{GraphView-Br_Z_VZc.js → GraphView-CthGFCRj.js} +3 -3
- package/dist-public/assets/{IssuesPage-B8DqJ3c3.js → IssuesPage-BucqZHrL.js} +1 -1
- package/dist-public/assets/{MobileApp-oeRfIDZI.js → MobileApp-CaqBlER2.js} +2 -2
- package/dist-public/assets/{Modal-DsJCtJVA.js → Modal-BIn1zFl7.js} +1 -1
- package/dist-public/assets/{NodeView--GutLk9i.js → NodeView-CBUlvgSS.js} +1 -1
- package/{dist/assets/ProjectsPage-CGEcST4W.js → dist-public/assets/ProjectsPage-HtCaFipY.js} +1 -1
- package/dist-public/assets/{ProseActions-DgM0gokz.js → ProseActions-B44ZRwxJ.js} +1 -1
- package/dist-public/assets/{Settings-H-Yos_f0.js → Settings-Tf9ea2hZ.js} +1 -1
- package/dist-public/assets/{SpecView-BU-ZU8P_.js → SpecView-EPe01eQc.js} +1 -1
- package/dist-public/assets/{Thread-DHIhR1gh.js → Thread-Brhr4H5Q.js} +1 -1
- package/dist-public/assets/{WorkspaceSurface-DT24Snmj.js → WorkspaceSurface-DhMdacUd.js} +1 -1
- package/dist-public/assets/{index-B0GW_0uY.js → index-BEBsDR92.js} +1 -1
- package/dist-public/assets/index-CDeR37ZW.css +1 -0
- package/{dist/assets/index-Bmg4p7if.js → dist-public/assets/index-St8KVw4j.js} +1 -1
- package/dist-public/assets/{tabs-BpNqFWvE.js → tabs-D4JilJWJ.js} +47 -47
- package/dist-public/index.html +2 -2
- package/package.json +6 -6
- package/dist/assets/index-CjNin6fF.css +0 -1
- package/dist-public/assets/index-CjNin6fF.css +0 -1
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
`+s[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=i);break}}}finally{Ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Sn(e):""}function Cd(e){switch(e.tag){case 5:return Sn(e.type);case 16:return Sn("Lazy");case 13:return Sn("Suspense");case 19:return Sn("SuspenseList");case 0:case 2:case 15:return e=Rs(e.type,!1),e;case 11:return e=Rs(e.type.render,!1),e;case 1:return e=Rs(e.type,!0),e;default:return""}}function io(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 Ut:return"Fragment";case At:return"Portal";case so:return"Profiler";case ul:return"StrictMode";case oo:return"Suspense";case lo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ua:return(e.displayName||"Context")+".Consumer";case Aa:return(e._context.displayName||"Context")+".Provider";case cl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dl:return t=e.displayName||null,t!==null?t:io(e.type)||"Memo";case et:t=e._payload,e=e._init;try{return io(e(t))}catch{}}return null}function Ed(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 io(t);case 8:return t===ul?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ha(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jd(e){var t=Ha(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ar(e){e._valueTracker||(e._valueTracker=jd(e))}function Va(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ha(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ir(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 ao(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function li(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wa(e,t){t=t.checked,t!=null&&al(e,"checked",t,!1)}function uo(e,t){Wa(e,t);var n=ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?co(e,t.type,n):t.hasOwnProperty("defaultValue")&&co(e,t.type,ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ii(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 co(e,t,n){(t!=="number"||Ir(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cn=Array.isArray;function Jt(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ht(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function fo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ai(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(x(92));if(Cn(n)){if(1<n.length)throw Error(x(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ht(n)}}function Qa(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 ui(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ga(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 po(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ga(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ur,Ka=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ur=ur||document.createElement("div"),ur.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ur.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tn={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},Td=["Webkit","ms","Moz","O"];Object.keys(Tn).forEach(function(e){Td.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]})});function Za(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Ya(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Za(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Pd=W({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 ho(e,t){if(t){if(Pd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function mo(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 vo=null;function fl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var go=null,qt=null,bt=null;function ci(e){if(e=nr(e)){if(typeof go!="function")throw Error(x(280));var t=e.stateNode;t&&(t=fs(t),go(e.stateNode,e.type,t))}}function Xa(e){qt?bt?bt.push(e):bt=[e]:qt=e}function Ja(){if(qt){var e=qt,t=bt;if(bt=qt=null,ci(e),t)for(e=0;e<t.length;e++)ci(t[e])}}function qa(e,t){return e(t)}function ba(){}var Fs=!1;function eu(e,t,n){if(Fs)return e(t,n);Fs=!0;try{return qa(e,t,n)}finally{Fs=!1,(qt!==null||bt!==null)&&(ba(),Ja())}}function Dn(e,t){var n=e.stateNode;if(n===null)return null;var r=fs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(x(231,t,typeof n));return n}var yo=!1;if(Ke)try{var mn={};Object.defineProperty(mn,"passive",{get:function(){yo=!0}}),window.addEventListener("test",mn,mn),window.removeEventListener("test",mn,mn)}catch{yo=!1}function Nd(e,t,n,r,s,o,l,i,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(v){this.onError(v)}}var Pn=!1,zr=null,Dr=!1,wo=null,$d={onError:function(e){Pn=!0,zr=e}};function _d(e,t,n,r,s,o,l,i,a){Pn=!1,zr=null,Nd.apply($d,arguments)}function Ld(e,t,n,r,s,o,l,i,a){if(_d.apply(this,arguments),Pn){if(Pn){var c=zr;Pn=!1,zr=null}else throw Error(x(198));Dr||(Dr=!0,wo=c)}}function zt(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 tu(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 di(e){if(zt(e)!==e)throw Error(x(188))}function Md(e){var t=e.alternate;if(!t){if(t=zt(e),t===null)throw Error(x(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return di(s),e;if(o===r)return di(s),t;o=o.sibling}throw Error(x(188))}if(n.return!==r.return)n=s,r=o;else{for(var l=!1,i=s.child;i;){if(i===n){l=!0,n=s,r=o;break}if(i===r){l=!0,r=s,n=o;break}i=i.sibling}if(!l){for(i=o.child;i;){if(i===n){l=!0,n=o,r=s;break}if(i===r){l=!0,r=o,n=s;break}i=i.sibling}if(!l)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?e:t}function nu(e){return e=Md(e),e!==null?ru(e):null}function ru(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ru(e);if(t!==null)return t;e=e.sibling}return null}var su=xe.unstable_scheduleCallback,fi=xe.unstable_cancelCallback,Rd=xe.unstable_shouldYield,Fd=xe.unstable_requestPaint,K=xe.unstable_now,Od=xe.unstable_getCurrentPriorityLevel,pl=xe.unstable_ImmediatePriority,ou=xe.unstable_UserBlockingPriority,Ar=xe.unstable_NormalPriority,Id=xe.unstable_LowPriority,lu=xe.unstable_IdlePriority,as=null,Ue=null;function zd(e){if(Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(as,e,void 0,(e.current.flags&128)===128)}catch{}}var Fe=Math.clz32?Math.clz32:Ud,Dd=Math.log,Ad=Math.LN2;function Ud(e){return e>>>=0,e===0?32:31-(Dd(e)/Ad|0)|0}var cr=64,dr=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,s=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var i=l&~s;i!==0?r=En(i):(o&=l,o!==0&&(r=En(o)))}else l=n&~s,l!==0?r=En(l):o!==0&&(r=En(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,o=t&-t,s>=o||s===16&&(o&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-Fe(t),s=1<<n,r|=e[n],t&=~s;return r}function Bd(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 Hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Fe(o),i=1<<l,a=s[l];a===-1?(!(i&n)||i&r)&&(s[l]=Bd(i,t)):a<=t&&(e.expiredLanes|=i),o&=~i}}function ko(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function iu(){var e=cr;return cr<<=1,!(cr&4194240)&&(cr=64),e}function Os(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function er(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fe(t),e[t]=n}function Vd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Fe(n),o=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~o}}function hl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fe(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var I=0;function au(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uu,ml,cu,du,fu,xo=!1,fr=[],lt=null,it=null,at=null,An=new Map,Un=new Map,nt=[],Wd="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 pi(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":at=null;break;case"pointerover":case"pointerout":An.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function vn(e,t,n,r,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[s]},t!==null&&(t=nr(t),t!==null&&ml(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Qd(e,t,n,r,s){switch(t){case"focusin":return lt=vn(lt,e,t,n,r,s),!0;case"dragenter":return it=vn(it,e,t,n,r,s),!0;case"mouseover":return at=vn(at,e,t,n,r,s),!0;case"pointerover":var o=s.pointerId;return An.set(o,vn(An.get(o)||null,e,t,n,r,s)),!0;case"gotpointercapture":return o=s.pointerId,Un.set(o,vn(Un.get(o)||null,e,t,n,r,s)),!0}return!1}function pu(e){var t=jt(e.target);if(t!==null){var n=zt(t);if(n!==null){if(t=n.tag,t===13){if(t=tu(n),t!==null){e.blockedOn=t,fu(e.priority,function(){cu(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 jr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=So(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vo=r,n.target.dispatchEvent(r),vo=null}else return t=nr(n),t!==null&&ml(t),e.blockedOn=n,!1;t.shift()}return!0}function hi(e,t,n){jr(e)&&n.delete(t)}function Gd(){xo=!1,lt!==null&&jr(lt)&&(lt=null),it!==null&&jr(it)&&(it=null),at!==null&&jr(at)&&(at=null),An.forEach(hi),Un.forEach(hi)}function gn(e,t){e.blockedOn===t&&(e.blockedOn=null,xo||(xo=!0,xe.unstable_scheduleCallback(xe.unstable_NormalPriority,Gd)))}function Bn(e){function t(s){return gn(s,e)}if(0<fr.length){gn(fr[0],e);for(var n=1;n<fr.length;n++){var r=fr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(lt!==null&&gn(lt,e),it!==null&&gn(it,e),at!==null&&gn(at,e),An.forEach(t),Un.forEach(t),n=0;n<nt.length;n++)r=nt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nt.length&&(n=nt[0],n.blockedOn===null);)pu(n),n.blockedOn===null&&nt.shift()}var en=Je.ReactCurrentBatchConfig,Br=!0;function Kd(e,t,n,r){var s=I,o=en.transition;en.transition=null;try{I=1,vl(e,t,n,r)}finally{I=s,en.transition=o}}function Zd(e,t,n,r){var s=I,o=en.transition;en.transition=null;try{I=4,vl(e,t,n,r)}finally{I=s,en.transition=o}}function vl(e,t,n,r){if(Br){var s=So(e,t,n,r);if(s===null)Qs(e,t,r,Hr,n),pi(e,r);else if(Qd(s,e,t,n,r))r.stopPropagation();else if(pi(e,r),t&4&&-1<Wd.indexOf(e)){for(;s!==null;){var o=nr(s);if(o!==null&&uu(o),o=So(e,t,n,r),o===null&&Qs(e,t,r,Hr,n),o===s)break;s=o}s!==null&&r.stopPropagation()}else Qs(e,t,r,null,n)}}var Hr=null;function So(e,t,n,r){if(Hr=null,e=fl(r),e=jt(e),e!==null)if(t=zt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tu(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 Hr=e,null}function hu(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(Od()){case pl:return 1;case ou:return 4;case Ar:case Id:return 16;case lu:return 536870912;default:return 16}default:return 16}}var st=null,gl=null,Tr=null;function mu(){if(Tr)return Tr;var e,t=gl,n=t.length,r,s="value"in st?st.value:st.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===s[o-r];r++);return Tr=s.slice(e,1<r?1-r:void 0)}function Pr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pr(){return!0}function mi(){return!1}function Ce(e){function t(n,r,s,o,l){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?pr:mi,this.isPropagationStopped=mi,this}return W(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=pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yl=Ce(fn),tr=W({},fn,{view:0,detail:0}),Yd=Ce(tr),Is,zs,yn,us=W({},tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,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!==yn&&(yn&&e.type==="mousemove"?(Is=e.screenX-yn.screenX,zs=e.screenY-yn.screenY):zs=Is=0,yn=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:zs}}),vi=Ce(us),Xd=W({},us,{dataTransfer:0}),Jd=Ce(Xd),qd=W({},tr,{relatedTarget:0}),Ds=Ce(qd),bd=W({},fn,{animationName:0,elapsedTime:0,pseudoElement:0}),ef=Ce(bd),tf=W({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nf=Ce(tf),rf=W({},fn,{data:0}),gi=Ce(rf),sf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},of={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"},lf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function af(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lf[e])?!!t[e]:!1}function wl(){return af}var uf=W({},tr,{key:function(e){if(e.key){var t=sf[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"?of[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,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}}),cf=Ce(uf),df=W({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yi=Ce(df),ff=W({},tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),pf=Ce(ff),hf=W({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),mf=Ce(hf),vf=W({},us,{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}),gf=Ce(vf),yf=[9,13,27,32],kl=Ke&&"CompositionEvent"in window,Nn=null;Ke&&"documentMode"in document&&(Nn=document.documentMode);var wf=Ke&&"TextEvent"in window&&!Nn,vu=Ke&&(!kl||Nn&&8<Nn&&11>=Nn),wi=" ",ki=!1;function gu(e,t){switch(e){case"keyup":return yf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bt=!1;function kf(e,t){switch(e){case"compositionend":return yu(t);case"keypress":return t.which!==32?null:(ki=!0,wi);case"textInput":return e=t.data,e===wi&&ki?null:e;default:return null}}function xf(e,t){if(Bt)return e==="compositionend"||!kl&&gu(e,t)?(e=mu(),Tr=gl=st=null,Bt=!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 vu&&t.locale!=="ko"?null:t.data;default:return null}}var Sf={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 xi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sf[e.type]:t==="textarea"}function wu(e,t,n,r){Xa(r),t=Vr(t,"onChange"),0<t.length&&(n=new yl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Hn=null;function Cf(e){_u(e,0)}function cs(e){var t=Wt(e);if(Va(t))return e}function Ef(e,t){if(e==="change")return t}var ku=!1;if(Ke){var As;if(Ke){var Us="oninput"in document;if(!Us){var Si=document.createElement("div");Si.setAttribute("oninput","return;"),Us=typeof Si.oninput=="function"}As=Us}else As=!1;ku=As&&(!document.documentMode||9<document.documentMode)}function Ci(){$n&&($n.detachEvent("onpropertychange",xu),Hn=$n=null)}function xu(e){if(e.propertyName==="value"&&cs(Hn)){var t=[];wu(t,Hn,e,fl(e)),eu(Cf,t)}}function jf(e,t,n){e==="focusin"?(Ci(),$n=t,Hn=n,$n.attachEvent("onpropertychange",xu)):e==="focusout"&&Ci()}function Tf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cs(Hn)}function Pf(e,t){if(e==="click")return cs(t)}function Nf(e,t){if(e==="input"||e==="change")return cs(t)}function $f(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ie=typeof Object.is=="function"?Object.is:$f;function Vn(e,t){if(Ie(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!ro.call(t,s)||!Ie(e[s],t[s]))return!1}return!0}function Ei(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ji(e,t){var n=Ei(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=Ei(n)}}function Su(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Su(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cu(){for(var e=window,t=Ir();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ir(e.document)}return t}function xl(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 _f(e){var t=Cu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Su(n.ownerDocument.documentElement,n)){if(r!==null&&xl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(r.start,s);r=r.end===void 0?o:Math.min(r.end,s),!e.extend&&o>r&&(s=r,r=o,o=s),s=ji(n,o);var l=ji(n,r);s&&l&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 Lf=Ke&&"documentMode"in document&&11>=document.documentMode,Ht=null,Co=null,_n=null,Eo=!1;function Ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eo||Ht==null||Ht!==Ir(r)||(r=Ht,"selectionStart"in r&&xl(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}),_n&&Vn(_n,r)||(_n=r,r=Vr(Co,"onSelect"),0<r.length&&(t=new yl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ht)))}function hr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vt={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionend:hr("Transition","TransitionEnd")},Bs={},Eu={};Ke&&(Eu=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 ds(e){if(Bs[e])return Bs[e];if(!Vt[e])return e;var t=Vt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Eu)return Bs[e]=t[n];return e}var ju=ds("animationend"),Tu=ds("animationiteration"),Pu=ds("animationstart"),Nu=ds("transitionend"),$u=new Map,Pi="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){$u.set(e,t),It(t,[e])}for(var Hs=0;Hs<Pi.length;Hs++){var Vs=Pi[Hs],Mf=Vs.toLowerCase(),Rf=Vs[0].toUpperCase()+Vs.slice(1);vt(Mf,"on"+Rf)}vt(ju,"onAnimationEnd");vt(Tu,"onAnimationIteration");vt(Pu,"onAnimationStart");vt("dblclick","onDoubleClick");vt("focusin","onFocus");vt("focusout","onBlur");vt(Nu,"onTransitionEnd");rn("onMouseEnter",["mouseout","mouseover"]);rn("onMouseLeave",["mouseout","mouseover"]);rn("onPointerEnter",["pointerout","pointerover"]);rn("onPointerLeave",["pointerout","pointerover"]);It("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));It("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));It("onBeforeInput",["compositionend","keypress","textInput","paste"]);It("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));It("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));It("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jn="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(" "),Ff=new Set("cancel close invalid load scroll toggle".split(" ").concat(jn));function Ni(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ld(r,t,void 0,e),e.currentTarget=null}function _u(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var i=r[l],a=i.instance,c=i.currentTarget;if(i=i.listener,a!==o&&s.isPropagationStopped())break e;Ni(s,i,c),o=a}else for(l=0;l<r.length;l++){if(i=r[l],a=i.instance,c=i.currentTarget,i=i.listener,a!==o&&s.isPropagationStopped())break e;Ni(s,i,c),o=a}}}if(Dr)throw e=wo,Dr=!1,wo=null,e}function D(e,t){var n=t[$o];n===void 0&&(n=t[$o]=new Set);var r=e+"__bubble";n.has(r)||(Lu(t,e,2,!1),n.add(r))}function Ws(e,t,n){var r=0;t&&(r|=4),Lu(n,e,r,t)}var mr="_reactListening"+Math.random().toString(36).slice(2);function Wn(e){if(!e[mr]){e[mr]=!0,Da.forEach(function(n){n!=="selectionchange"&&(Ff.has(n)||Ws(n,!1,e),Ws(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mr]||(t[mr]=!0,Ws("selectionchange",!1,t))}}function Lu(e,t,n,r){switch(hu(t)){case 1:var s=Kd;break;case 4:s=Zd;break;default:s=vl}n=s.bind(null,t,n,e),s=void 0,!yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Qs(e,t,n,r,s){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var i=r.stateNode.containerInfo;if(i===s||i.nodeType===8&&i.parentNode===s)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;l=l.return}for(;i!==null;){if(l=jt(i),l===null)return;if(a=l.tag,a===5||a===6){r=o=l;continue e}i=i.parentNode}}r=r.return}eu(function(){var c=o,v=fl(n),h=[];e:{var f=$u.get(e);if(f!==void 0){var y=yl,g=e;switch(e){case"keypress":if(Pr(n)===0)break e;case"keydown":case"keyup":y=cf;break;case"focusin":g="focus",y=Ds;break;case"focusout":g="blur",y=Ds;break;case"beforeblur":case"afterblur":y=Ds;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=vi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=pf;break;case ju:case Tu:case Pu:y=ef;break;case Nu:y=mf;break;case"scroll":y=Yd;break;case"wheel":y=gf;break;case"copy":case"cut":case"paste":y=nf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=yi}var w=(t&4)!==0,$=!w&&e==="scroll",p=w?f!==null?f+"Capture":null:f;w=[];for(var d=c,m;d!==null;){m=d;var k=m.stateNode;if(m.tag===5&&k!==null&&(m=k,p!==null&&(k=Dn(d,p),k!=null&&w.push(Qn(d,k,m)))),$)break;d=d.return}0<w.length&&(f=new y(f,g,null,n,v),h.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==vo&&(g=n.relatedTarget||n.fromElement)&&(jt(g)||g[Ze]))break e;if((y||f)&&(f=v.window===v?v:(f=v.ownerDocument)?f.defaultView||f.parentWindow:window,y?(g=n.relatedTarget||n.toElement,y=c,g=g?jt(g):null,g!==null&&($=zt(g),g!==$||g.tag!==5&&g.tag!==6)&&(g=null)):(y=null,g=c),y!==g)){if(w=vi,k="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(w=yi,k="onPointerLeave",p="onPointerEnter",d="pointer"),$=y==null?f:Wt(y),m=g==null?f:Wt(g),f=new w(k,d+"leave",y,n,v),f.target=$,f.relatedTarget=m,k=null,jt(v)===c&&(w=new w(p,d+"enter",g,n,v),w.target=m,w.relatedTarget=$,k=w),$=k,y&&g)t:{for(w=y,p=g,d=0,m=w;m;m=Dt(m))d++;for(m=0,k=p;k;k=Dt(k))m++;for(;0<d-m;)w=Dt(w),d--;for(;0<m-d;)p=Dt(p),m--;for(;d--;){if(w===p||p!==null&&w===p.alternate)break t;w=Dt(w),p=Dt(p)}w=null}else w=null;y!==null&&$i(h,f,y,w,!1),g!==null&&$!==null&&$i(h,$,g,w,!0)}}e:{if(f=c?Wt(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var S=Ef;else if(xi(f))if(ku)S=Nf;else{S=Tf;var j=jf}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=Pf);if(S&&(S=S(e,c))){wu(h,S,n,v);break e}j&&j(e,f,c),e==="focusout"&&(j=f._wrapperState)&&j.controlled&&f.type==="number"&&co(f,"number",f.value)}switch(j=c?Wt(c):window,e){case"focusin":(xi(j)||j.contentEditable==="true")&&(Ht=j,Co=c,_n=null);break;case"focusout":_n=Co=Ht=null;break;case"mousedown":Eo=!0;break;case"contextmenu":case"mouseup":case"dragend":Eo=!1,Ti(h,n,v);break;case"selectionchange":if(Lf)break;case"keydown":case"keyup":Ti(h,n,v)}var P;if(kl)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Bt?gu(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(vu&&n.locale!=="ko"&&(Bt||N!=="onCompositionStart"?N==="onCompositionEnd"&&Bt&&(P=mu()):(st=v,gl="value"in st?st.value:st.textContent,Bt=!0)),j=Vr(c,N),0<j.length&&(N=new gi(N,e,null,n,v),h.push({event:N,listeners:j}),P?N.data=P:(P=yu(n),P!==null&&(N.data=P)))),(P=wf?kf(e,n):xf(e,n))&&(c=Vr(c,"onBeforeInput"),0<c.length&&(v=new gi("onBeforeInput","beforeinput",null,n,v),h.push({event:v,listeners:c}),v.data=P))}_u(h,t)})}function Qn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,o=s.stateNode;s.tag===5&&o!==null&&(s=o,o=Dn(e,n),o!=null&&r.unshift(Qn(e,o,s)),o=Dn(e,t),o!=null&&r.push(Qn(e,o,s))),e=e.return}return r}function Dt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $i(e,t,n,r,s){for(var o=t._reactName,l=[];n!==null&&n!==r;){var i=n,a=i.alternate,c=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&c!==null&&(i=c,s?(a=Dn(n,o),a!=null&&l.unshift(Qn(n,a,i))):s||(a=Dn(n,o),a!=null&&l.push(Qn(n,a,i)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Of=/\r\n?/g,If=/\u0000|\uFFFD/g;function _i(e){return(typeof e=="string"?e:""+e).replace(Of,`
|
|
38
38
|
`).replace(If,"")}function vr(e,t,n){if(t=_i(t),_i(e)!==t&&n)throw Error(x(425))}function Wr(){}var jo=null,To=null;function Po(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 No=typeof setTimeout=="function"?setTimeout:void 0,zf=typeof clearTimeout=="function"?clearTimeout:void 0,Li=typeof Promise=="function"?Promise:void 0,Df=typeof queueMicrotask=="function"?queueMicrotask:typeof Li<"u"?function(e){return Li.resolve(null).then(e).catch(Af)}:No;function Af(e){setTimeout(function(){throw e})}function Gs(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Bn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Bn(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 Mi(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),Ae="__reactFiber$"+pn,Gn="__reactProps$"+pn,Ze="__reactContainer$"+pn,$o="__reactEvents$"+pn,Uf="__reactListeners$"+pn,Bf="__reactHandles$"+pn;function jt(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mi(e);e!==null;){if(n=e[Ae])return n;e=Mi(e)}return t}e=n,n=e.parentNode}return null}function nr(e){return e=e[Ae]||e[Ze],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function fs(e){return e[Gn]||null}var _o=[],Qt=-1;function gt(e){return{current:e}}function A(e){0>Qt||(e.current=_o[Qt],_o[Qt]=null,Qt--)}function z(e,t){Qt++,_o[Qt]=e.current,e.current=t}var mt={},le=gt(mt),me=gt(!1),Lt=mt;function sn(e,t){var n=e.type.contextTypes;if(!n)return mt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in n)s[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function ve(e){return e=e.childContextTypes,e!=null}function Qr(){A(me),A(le)}function Ri(e,t,n){if(le.current!==mt)throw Error(x(168));z(le,t),z(me,n)}function Mu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(x(108,Ed(e)||"Unknown",s));return W({},n,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mt,Lt=le.current,z(le,e),z(me,me.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(x(169));n?(e=Mu(e,t,Lt),r.__reactInternalMemoizedMergedChildContext=e,A(me),A(le),z(le,e)):A(me),z(me,n)}var Ve=null,ps=!1,Ks=!1;function Ru(e){Ve===null?Ve=[e]:Ve.push(e)}function Hf(e){ps=!0,Ru(e)}function yt(){if(!Ks&&Ve!==null){Ks=!0;var e=0,t=I;try{var n=Ve;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ve=null,ps=!1}catch(s){throw Ve!==null&&(Ve=Ve.slice(e+1)),su(pl,yt),s}finally{I=t,Ks=!1}}return null}var Gt=[],Kt=0,Kr=null,Zr=0,Ee=[],je=0,Mt=null,We=1,Qe="";function Ct(e,t){Gt[Kt++]=Zr,Gt[Kt++]=Kr,Kr=e,Zr=t}function Fu(e,t,n){Ee[je++]=We,Ee[je++]=Qe,Ee[je++]=Mt,Mt=e;var r=We;e=Qe;var s=32-Fe(r)-1;r&=~(1<<s),n+=1;var o=32-Fe(t)+s;if(30<o){var l=s-s%5;o=(r&(1<<l)-1).toString(32),r>>=l,s-=l,We=1<<32-Fe(t)+s|n<<s|r,Qe=o+e}else We=1<<o|n<<s|r,Qe=e}function Sl(e){e.return!==null&&(Ct(e,1),Fu(e,1,0))}function Cl(e){for(;e===Kr;)Kr=Gt[--Kt],Gt[Kt]=null,Zr=Gt[--Kt],Gt[Kt]=null;for(;e===Mt;)Mt=Ee[--je],Ee[je]=null,Qe=Ee[--je],Ee[je]=null,We=Ee[--je],Ee[je]=null}var ke=null,we=null,U=!1,Re=null;function Ou(e,t){var n=Te(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 Oi(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,ke=e,we=ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ke=e,we=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Mt!==null?{id:We,overflow:Qe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Te(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ke=e,we=null,!0):!1;default:return!1}}function Lo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mo(e){if(U){var t=we;if(t){var n=t;if(!Oi(e,t)){if(Lo(e))throw Error(x(418));t=ut(n.nextSibling);var r=ke;t&&Oi(e,t)?Ou(r,n):(e.flags=e.flags&-4097|2,U=!1,ke=e)}}else{if(Lo(e))throw Error(x(418));e.flags=e.flags&-4097|2,U=!1,ke=e}}}function Ii(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ke=e}function gr(e){if(e!==ke)return!1;if(!U)return Ii(e),U=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Po(e.type,e.memoizedProps)),t&&(t=we)){if(Lo(e))throw Iu(),Error(x(418));for(;t;)Ou(e,t),t=ut(t.nextSibling)}if(Ii(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){we=ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}we=null}}else we=ke?ut(e.stateNode.nextSibling):null;return!0}function Iu(){for(var e=we;e;)e=ut(e.nextSibling)}function on(){we=ke=null,U=!1}function El(e){Re===null?Re=[e]:Re.push(e)}var Vf=Je.ReactCurrentBatchConfig;function wn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,e));var s=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var i=s.refs;l===null?delete i[o]:i[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,e))}return e}function yr(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zi(e){var t=e._init;return t(e._payload)}function zu(e){function t(p,d){if(e){var m=p.deletions;m===null?(p.deletions=[d],p.flags|=16):m.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function s(p,d){return p=pt(p,d),p.index=0,p.sibling=null,p}function o(p,d,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<d?(p.flags|=2,d):m):(p.flags|=2,d)):(p.flags|=1048576,d)}function l(p){return e&&p.alternate===null&&(p.flags|=2),p}function i(p,d,m,k){return d===null||d.tag!==6?(d=eo(m,p.mode,k),d.return=p,d):(d=s(d,m),d.return=p,d)}function a(p,d,m,k){var S=m.type;return S===Ut?v(p,d,m.props.children,k,m.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===et&&zi(S)===d.type)?(k=s(d,m.props),k.ref=wn(p,d,m),k.return=p,k):(k=Fr(m.type,m.key,m.props,null,p.mode,k),k.ref=wn(p,d,m),k.return=p,k)}function c(p,d,m,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=to(m,p.mode,k),d.return=p,d):(d=s(d,m.children||[]),d.return=p,d)}function v(p,d,m,k,S){return d===null||d.tag!==7?(d=$t(m,p.mode,k,S),d.return=p,d):(d=s(d,m),d.return=p,d)}function h(p,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=eo(""+d,p.mode,m),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ir:return m=Fr(d.type,d.key,d.props,null,p.mode,m),m.ref=wn(p,null,d),m.return=p,m;case At:return d=to(d,p.mode,m),d.return=p,d;case et:var k=d._init;return h(p,k(d._payload),m)}if(Cn(d)||hn(d))return d=$t(d,p.mode,m,null),d.return=p,d;yr(p,d)}return null}function f(p,d,m,k){var S=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:i(p,d,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ir:return m.key===S?a(p,d,m,k):null;case At:return m.key===S?c(p,d,m,k):null;case et:return S=m._init,f(p,d,S(m._payload),k)}if(Cn(m)||hn(m))return S!==null?null:v(p,d,m,k,null);yr(p,m)}return null}function y(p,d,m,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return p=p.get(m)||null,i(d,p,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ir:return p=p.get(k.key===null?m:k.key)||null,a(d,p,k,S);case At:return p=p.get(k.key===null?m:k.key)||null,c(d,p,k,S);case et:var j=k._init;return y(p,d,m,j(k._payload),S)}if(Cn(k)||hn(k))return p=p.get(m)||null,v(d,p,k,S,null);yr(d,k)}return null}function g(p,d,m,k){for(var S=null,j=null,P=d,N=d=0,O=null;P!==null&&N<m.length;N++){P.index>N?(O=P,P=null):O=P.sibling;var L=f(p,P,m[N],k);if(L===null){P===null&&(P=O);break}e&&P&&L.alternate===null&&t(p,P),d=o(L,d,N),j===null?S=L:j.sibling=L,j=L,P=O}if(N===m.length)return n(p,P),U&&Ct(p,N),S;if(P===null){for(;N<m.length;N++)P=h(p,m[N],k),P!==null&&(d=o(P,d,N),j===null?S=P:j.sibling=P,j=P);return U&&Ct(p,N),S}for(P=r(p,P);N<m.length;N++)O=y(P,p,N,m[N],k),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?N:O.key),d=o(O,d,N),j===null?S=O:j.sibling=O,j=O);return e&&P.forEach(function(ie){return t(p,ie)}),U&&Ct(p,N),S}function w(p,d,m,k){var S=hn(m);if(typeof S!="function")throw Error(x(150));if(m=S.call(m),m==null)throw Error(x(151));for(var j=S=null,P=d,N=d=0,O=null,L=m.next();P!==null&&!L.done;N++,L=m.next()){P.index>N?(O=P,P=null):O=P.sibling;var ie=f(p,P,L.value,k);if(ie===null){P===null&&(P=O);break}e&&P&&ie.alternate===null&&t(p,P),d=o(ie,d,N),j===null?S=ie:j.sibling=ie,j=ie,P=O}if(L.done)return n(p,P),U&&Ct(p,N),S;if(P===null){for(;!L.done;N++,L=m.next())L=h(p,L.value,k),L!==null&&(d=o(L,d,N),j===null?S=L:j.sibling=L,j=L);return U&&Ct(p,N),S}for(P=r(p,P);!L.done;N++,L=m.next())L=y(P,p,N,L.value,k),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?N:L.key),d=o(L,d,N),j===null?S=L:j.sibling=L,j=L);return e&&P.forEach(function(qe){return t(p,qe)}),U&&Ct(p,N),S}function $(p,d,m,k){if(typeof m=="object"&&m!==null&&m.type===Ut&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ir:e:{for(var S=m.key,j=d;j!==null;){if(j.key===S){if(S=m.type,S===Ut){if(j.tag===7){n(p,j.sibling),d=s(j,m.props.children),d.return=p,p=d;break e}}else if(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===et&&zi(S)===j.type){n(p,j.sibling),d=s(j,m.props),d.ref=wn(p,j,m),d.return=p,p=d;break e}n(p,j);break}else t(p,j);j=j.sibling}m.type===Ut?(d=$t(m.props.children,p.mode,k,m.key),d.return=p,p=d):(k=Fr(m.type,m.key,m.props,null,p.mode,k),k.ref=wn(p,d,m),k.return=p,p=k)}return l(p);case At:e:{for(j=m.key;d!==null;){if(d.key===j)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=s(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=to(m,p.mode,k),d.return=p,p=d}return l(p);case et:return j=m._init,$(p,d,j(m._payload),k)}if(Cn(m))return g(p,d,m,k);if(hn(m))return w(p,d,m,k);yr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=s(d,m),d.return=p,p=d):(n(p,d),d=eo(m,p.mode,k),d.return=p,p=d),l(p)):n(p,d)}return $}var ln=zu(!0),Du=zu(!1),Yr=gt(null),Xr=null,Zt=null,jl=null;function Tl(){jl=Zt=Xr=null}function Pl(e){var t=Yr.current;A(Yr),e._currentValue=t}function Ro(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){Xr=e,jl=Zt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(he=!0),e.firstContext=null)}function Ne(e){var t=e._currentValue;if(jl!==e)if(e={context:e,memoizedValue:t,next:null},Zt===null){if(Xr===null)throw Error(x(308));Zt=e,Xr.dependencies={lanes:0,firstContext:e}}else Zt=Zt.next=e;return t}var Tt=null;function Nl(e){Tt===null?Tt=[e]:Tt.push(e)}function Au(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Nl(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ye(e,r)}function Ye(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 $l(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uu(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 Ge(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,F&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ye(e,n)}return s=r.interleaved,s===null?(t.next=t,Nl(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ye(e,n)}function Nr(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,hl(e,n)}}function Di(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?s=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:o,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 Jr(e,t,n,r){var s=e.updateQueue;tt=!1;var o=s.firstBaseUpdate,l=s.lastBaseUpdate,i=s.shared.pending;if(i!==null){s.shared.pending=null;var a=i,c=a.next;a.next=null,l===null?o=c:l.next=c,l=a;var v=e.alternate;v!==null&&(v=v.updateQueue,i=v.lastBaseUpdate,i!==l&&(i===null?v.firstBaseUpdate=c:i.next=c,v.lastBaseUpdate=a))}if(o!==null){var h=s.baseState;l=0,v=c=a=null,i=o;do{var f=i.lane,y=i.eventTime;if((r&f)===f){v!==null&&(v=v.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var g=e,w=i;switch(f=t,y=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){h=g.call(y,h,f);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,f=typeof g=="function"?g.call(y,h,f):g,f==null)break e;h=W({},h,f);break e;case 2:tt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[i]:f.push(i))}else y={eventTime:y,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},v===null?(c=v=y,a=h):v=v.next=y,l|=f;if(i=i.next,i===null){if(i=s.shared.pending,i===null)break;f=i,i=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(v===null&&(a=h),s.baseState=a,s.firstBaseUpdate=c,s.lastBaseUpdate=v,t=s.shared.interleaved,t!==null){s=t;do l|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Ft|=l,e.lanes=l,e.memoizedState=h}}function Ai(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(x(191,s));s.call(r)}}}var rr={},Be=gt(rr),Kn=gt(rr),Zn=gt(rr);function Pt(e){if(e===rr)throw Error(x(174));return e}function _l(e,t){switch(z(Zn,t),z(Kn,e),z(Be,rr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:po(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=po(t,e)}A(Be),z(Be,t)}function an(){A(Be),A(Kn),A(Zn)}function Bu(e){Pt(Zn.current);var t=Pt(Be.current),n=po(t,e.type);t!==n&&(z(Kn,e),z(Be,n))}function Ll(e){Kn.current===e&&(A(Be),A(Kn))}var H=gt(0);function qr(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 Zs=[];function Ml(){for(var e=0;e<Zs.length;e++)Zs[e]._workInProgressVersionPrimary=null;Zs.length=0}var $r=Je.ReactCurrentDispatcher,Ys=Je.ReactCurrentBatchConfig,Rt=0,V=null,Y=null,q=null,br=!1,Ln=!1,Yn=0,Wf=0;function re(){throw Error(x(321))}function Rl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ie(e[n],t[n]))return!1;return!0}function Fl(e,t,n,r,s,o){if(Rt=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$r.current=e===null||e.memoizedState===null?Zf:Yf,e=n(r,s),Ln){o=0;do{if(Ln=!1,Yn=0,25<=o)throw Error(x(301));o+=1,q=Y=null,t.updateQueue=null,$r.current=Xf,e=n(r,s)}while(Ln)}if($r.current=es,t=Y!==null&&Y.next!==null,Rt=0,q=Y=V=null,br=!1,t)throw Error(x(300));return e}function Ol(){var e=Yn!==0;return Yn=0,e}function De(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return q===null?V.memoizedState=q=e:q=q.next=e,q}function $e(){if(Y===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=Y.next;var t=q===null?V.memoizedState:q.next;if(t!==null)q=t,Y=e;else{if(e===null)throw Error(x(310));Y=e,e={memoizedState:Y.memoizedState,baseState:Y.baseState,baseQueue:Y.baseQueue,queue:Y.queue,next:null},q===null?V.memoizedState=q=e:q=q.next=e}return q}function Xn(e,t){return typeof t=="function"?t(e):t}function Xs(e){var t=$e(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=Y,s=r.baseQueue,o=n.pending;if(o!==null){if(s!==null){var l=s.next;s.next=o.next,o.next=l}r.baseQueue=s=o,n.pending=null}if(s!==null){o=s.next,r=r.baseState;var i=l=null,a=null,c=o;do{var v=c.lane;if((Rt&v)===v)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:v,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(i=a=h,l=r):a=a.next=h,V.lanes|=v,Ft|=v}c=c.next}while(c!==null&&c!==o);a===null?l=r:a.next=i,Ie(r,t.memoizedState)||(he=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do o=s.lane,V.lanes|=o,Ft|=o,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Js(e){var t=$e(),n=t.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var l=s=s.next;do o=e(o,l.action),l=l.next;while(l!==s);Ie(o,t.memoizedState)||(he=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Hu(){}function Vu(e,t){var n=V,r=$e(),s=t(),o=!Ie(r.memoizedState,s);if(o&&(r.memoizedState=s,he=!0),r=r.queue,Il(Gu.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||q!==null&&q.memoizedState.tag&1){if(n.flags|=2048,Jn(9,Qu.bind(null,n,r,s,t),void 0,null),b===null)throw Error(x(349));Rt&30||Wu(n,t,s)}return s}function Wu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qu(e,t,n,r){t.value=n,t.getSnapshot=r,Ku(t)&&Zu(e)}function Gu(e,t,n){return n(function(){Ku(t)&&Zu(e)})}function Ku(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ie(e,n)}catch{return!0}}function Zu(e){var t=Ye(e,1);t!==null&&Oe(t,e,1,-1)}function Ui(e){var t=De();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},t.queue=e,e=e.dispatch=Kf.bind(null,V,e),[t.memoizedState,e]}function Jn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.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 Yu(){return $e().memoizedState}function _r(e,t,n,r){var s=De();V.flags|=e,s.memoizedState=Jn(1|t,n,void 0,r===void 0?null:r)}function hs(e,t,n,r){var s=$e();r=r===void 0?null:r;var o=void 0;if(Y!==null){var l=Y.memoizedState;if(o=l.destroy,r!==null&&Rl(r,l.deps)){s.memoizedState=Jn(t,n,o,r);return}}V.flags|=e,s.memoizedState=Jn(1|t,n,o,r)}function Bi(e,t){return _r(8390656,8,e,t)}function Il(e,t){return hs(2048,8,e,t)}function Xu(e,t){return hs(4,2,e,t)}function Ju(e,t){return hs(4,4,e,t)}function qu(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 bu(e,t,n){return n=n!=null?n.concat([e]):null,hs(4,4,qu.bind(null,t,e),n)}function zl(){}function ec(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tc(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nc(e,t,n){return Rt&21?(Ie(n,t)||(n=iu(),V.lanes|=n,Ft|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,he=!0),e.memoizedState=n)}function Qf(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=Ys.transition;Ys.transition={};try{e(!1),t()}finally{I=n,Ys.transition=r}}function rc(){return $e().memoizedState}function Gf(e,t,n){var r=ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e))oc(t,n);else if(n=Au(e,t,n,r),n!==null){var s=ce();Oe(n,e,r,s),lc(n,t,r)}}function Kf(e,t,n){var r=ft(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))oc(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,i=o(l,n);if(s.hasEagerState=!0,s.eagerState=i,Ie(i,l)){var a=t.interleaved;a===null?(s.next=s,Nl(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=Au(e,t,s,r),n!==null&&(s=ce(),Oe(n,e,r,s),lc(n,t,r))}}function sc(e){var t=e.alternate;return e===V||t!==null&&t===V}function oc(e,t){Ln=br=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hl(e,n)}}var es={readContext:Ne,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},Zf={readContext:Ne,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:Ne,useEffect:Bi,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_r(4194308,4,qu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _r(4194308,4,e,t)},useInsertionEffect:function(e,t){return _r(4,2,e,t)},useMemo:function(e,t){var n=De();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=De();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=Gf.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:Ui,useDebugValue:zl,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=Ui(!1),t=e[0];return e=Qf.bind(null,e[1]),De().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,s=De();if(U){if(n===void 0)throw Error(x(407));n=n()}else{if(n=t(),b===null)throw Error(x(349));Rt&30||Wu(r,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Bi(Gu.bind(null,r,o,e),[e]),r.flags|=2048,Jn(9,Qu.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=De(),t=b.identifierPrefix;if(U){var n=Qe,r=We;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Wf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yf={readContext:Ne,useCallback:ec,useContext:Ne,useEffect:Il,useImperativeHandle:bu,useInsertionEffect:Xu,useLayoutEffect:Ju,useMemo:tc,useReducer:Xs,useRef:Yu,useState:function(){return Xs(Xn)},useDebugValue:zl,useDeferredValue:function(e){var t=$e();return nc(t,Y.memoizedState,e)},useTransition:function(){var e=Xs(Xn)[0],t=$e().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Vu,useId:rc,unstable_isNewReconciler:!1},Xf={readContext:Ne,useCallback:ec,useContext:Ne,useEffect:Il,useImperativeHandle:bu,useInsertionEffect:Xu,useLayoutEffect:Ju,useMemo:tc,useReducer:Js,useRef:Yu,useState:function(){return Js(Xn)},useDebugValue:zl,useDeferredValue:function(e){var t=$e();return Y===null?t.memoizedState=e:nc(t,Y.memoizedState,e)},useTransition:function(){var e=Js(Xn)[0],t=$e().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Vu,useId:rc,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Fo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ms={isMounted:function(e){return(e=e._reactInternals)?zt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ce(),s=ft(e),o=Ge(r,s);o.payload=t,n!=null&&(o.callback=n),t=ct(e,o,s),t!==null&&(Oe(t,e,s,r),Nr(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ce(),s=ft(e),o=Ge(r,s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ct(e,o,s),t!==null&&(Oe(t,e,s,r),Nr(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ce(),r=ft(e),s=Ge(n,r);s.tag=2,t!=null&&(s.callback=t),t=ct(e,s,r),t!==null&&(Oe(t,e,r,n),Nr(t,e,r))}};function Hi(e,t,n,r,s,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Vn(n,r)||!Vn(s,o):!0}function ic(e,t,n){var r=!1,s=mt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ne(o):(s=ve(t)?Lt:le.current,r=t.contextTypes,o=(r=r!=null)?sn(e,s):mt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ms,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vi(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&&ms.enqueueReplaceState(t,t.state,null)}function Oo(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},$l(e);var o=t.contextType;typeof o=="object"&&o!==null?s.context=Ne(o):(o=ve(t)?Lt:le.current,s.context=sn(e,o)),s.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Fo(e,t,o,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&ms.enqueueReplaceState(s,s.state,null),Jr(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function un(e,t){try{var n="",r=t;do n+=Cd(r),r=r.return;while(r);var s=n}catch(o){s=`
|
|
39
39
|
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:s,digest:null}}function qs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Io(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jf=typeof WeakMap=="function"?WeakMap:Map;function ac(e,t,n){n=Ge(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ns||(ns=!0,Go=r),Io(e,t)},n}function uc(e,t,n){n=Ge(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Io(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Io(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Wi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jf;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=dp.bind(null,e,t,n),t.then(e,e))}function Qi(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 Gi(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ge(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var qf=Je.ReactCurrentOwner,he=!1;function ue(e,t,n,r){t.child=e===null?Du(t,null,n,r):ln(t,e.child,n,r)}function Ki(e,t,n,r,s){n=n.render;var o=t.ref;return tn(t,s),r=Fl(e,t,n,r,o,s),n=Ol(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xe(e,t,s)):(U&&n&&Sl(t),t.flags|=1,ue(e,t,r,s),t.child)}function Zi(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Ql(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cc(e,t,o,r,s)):(e=Fr(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Vn,n(l,r)&&e.ref===t.ref)return Xe(e,t,s)}return t.flags|=1,e=pt(o,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(Vn(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,Xe(e,t,s)}return zo(e,t,n,r,s)}function dc(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},z(Xt,ye),ye|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,z(Xt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,z(Xt,ye),ye|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,z(Xt,ye),ye|=r;return ue(e,t,s,n),t.child}function fc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zo(e,t,n,r,s){var o=ve(n)?Lt:le.current;return o=sn(t,o),tn(t,s),n=Fl(e,t,n,r,o,s),r=Ol(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xe(e,t,s)):(U&&r&&Sl(t),t.flags|=1,ue(e,t,n,s),t.child)}function Yi(e,t,n,r,s){if(ve(n)){var o=!0;Gr(t)}else o=!1;if(tn(t,s),t.stateNode===null)Lr(e,t),ic(t,n,r),Oo(t,n,r,s),r=!0;else if(e===null){var l=t.stateNode,i=t.memoizedProps;l.props=i;var a=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ne(c):(c=ve(n)?Lt:le.current,c=sn(t,c));var v=n.getDerivedStateFromProps,h=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==r||a!==c)&&Vi(t,l,r,c),tt=!1;var f=t.memoizedState;l.state=f,Jr(t,r,l,s),a=t.memoizedState,i!==r||f!==a||me.current||tt?(typeof v=="function"&&(Fo(t,n,v,r),a=t.memoizedState),(i=tt||Hi(t,n,i,r,f,a,c))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=c,r=i):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Uu(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:Le(t.type,i),l.props=c,h=t.pendingProps,f=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ne(a):(a=ve(n)?Lt:le.current,a=sn(t,a));var y=n.getDerivedStateFromProps;(v=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==h||f!==a)&&Vi(t,l,r,a),tt=!1,f=t.memoizedState,l.state=f,Jr(t,r,l,s);var g=t.memoizedState;i!==h||f!==g||me.current||tt?(typeof y=="function"&&(Fo(t,n,y,r),g=t.memoizedState),(c=tt||Hi(t,n,c,r,f,g,a)||!1)?(v||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=a,r=c):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Do(e,t,n,r,o,s)}function Do(e,t,n,r,s,o){fc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return s&&Fi(t,n,!1),Xe(e,t,o);r=t.stateNode,qf.current=t;var i=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=ln(t,e.child,null,o),t.child=ln(t,null,i,o)):ue(e,t,i,o),t.memoizedState=r.state,s&&Fi(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?Ri(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(e,t.context,!1),_l(e,t.containerInfo)}function Xi(e,t,n,r,s){return on(),El(s),t.flags|=256,ue(e,t,n,r),t.child}var Ao={dehydrated:null,treeContext:null,retryLane:0};function Uo(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,s=H.current,o=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),z(H,s&1),e===null)return Mo(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):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=ys(l,r,0,null),e=$t(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Uo(n),t.memoizedState=Ao,e):Dl(t,l));if(s=e.memoizedState,s!==null&&(i=s.dehydrated,i!==null))return bf(e,t,l,r,i,s,n);if(o){o=r.fallback,l=t.mode,s=e.child,i=s.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=pt(s,a),r.subtreeFlags=s.subtreeFlags&14680064),i!==null?o=pt(i,o):(o=$t(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Uo(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Ao,r}return o=e.child,e=o.sibling,r=pt(o,{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 Dl(e,t){return t=ys({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wr(e,t,n,r){return r!==null&&El(r),ln(t,e.child,null,n),e=Dl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bf(e,t,n,r,s,o,l){if(n)return t.flags&256?(t.flags&=-257,r=qs(Error(x(422))),wr(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=ys({mode:"visible",children:r.children},s,0,null),o=$t(o,s,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ln(t,e.child,null,l),t.child.memoizedState=Uo(l),t.memoizedState=Ao,o);if(!(t.mode&1))return wr(e,t,l,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(x(419)),r=qs(o,r,void 0),wr(e,t,l,r)}if(i=(l&e.childLanes)!==0,he||i){if(r=b,r!==null){switch(l&-l){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|l)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Ye(e,s),Oe(r,e,s,-1))}return Wl(),r=qs(Error(x(421))),wr(e,t,l,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=fp.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,we=ut(s.nextSibling),ke=t,U=!0,Re=null,e!==null&&(Ee[je++]=We,Ee[je++]=Qe,Ee[je++]=Mt,We=e.id,Qe=e.overflow,Mt=t),t=Dl(t,r.children),t.flags|=4096,t)}function Ji(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ro(e.return,t,n)}function bs(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function mc(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(ue(e,t,r.children,n),r=H.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&&Ji(e,n,t);else if(e.tag===19)Ji(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(z(H,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&qr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),bs(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&qr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}bs(t,!0,n,null,o);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xe(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ft|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ep(e,t,n){switch(t.tag){case 3:pc(t),on();break;case 5:Bu(t);break;case 1:ve(t.type)&&Gr(t);break;case 4:_l(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;z(Yr,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(z(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?hc(e,t,n):(z(H,H.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);z(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mc(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),z(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,dc(e,t,n)}return Xe(e,t,n)}var vc,Bo,gc,yc;vc=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}};Bo=function(){};gc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Pt(Be.current);var o=null;switch(n){case"input":s=ao(e,s),r=ao(e,r),o=[];break;case"select":s=W({},s,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":s=fo(e,s),r=fo(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wr)}ho(n,r);var l;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var i=s[c];for(l in i)i.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(In.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var a=r[c];if(i=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(l in i)!i.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&i[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(o||(o=[]),o.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(o=o||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(In.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&D("scroll",e),o||i===a||(o=[])):(o=o||[]).push(c,a))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function kn(e,t){if(!U)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 s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function tp(e,t,n){var r=t.pendingProps;switch(Cl(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 ve(t.type)&&Qr(),se(t),null;case 3:return r=t.stateNode,an(),A(me),A(le),Ml(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Re!==null&&(Yo(Re),Re=null))),Bo(e,t),se(t),null;case 5:Ll(t);var s=Pt(Zn.current);if(n=t.type,e!==null&&t.stateNode!=null)gc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return se(t),null}if(e=Pt(Be.current),gr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ae]=t,r[Gn]=o,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(s=0;s<jn.length;s++)D(jn[s],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":li(r,o),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},D("invalid",r);break;case"textarea":ai(r,o),D("invalid",r)}ho(n,o),s=null;for(var l in o)if(o.hasOwnProperty(l)){var i=o[l];l==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&vr(r.textContent,i,e),s=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&vr(r.textContent,i,e),s=["children",""+i]):In.hasOwnProperty(l)&&i!=null&&l==="onScroll"&&D("scroll",r)}switch(n){case"input":ar(r),ii(r,o,!0);break;case"textarea":ar(r),ui(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Wr)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ga(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ae]=t,e[Gn]=r,vc(e,t,!1,!1),t.stateNode=e;e:{switch(l=mo(n,r),n){case"dialog":D("cancel",e),D("close",e),s=r;break;case"iframe":case"object":case"embed":D("load",e),s=r;break;case"video":case"audio":for(s=0;s<jn.length;s++)D(jn[s],e);s=r;break;case"source":D("error",e),s=r;break;case"img":case"image":case"link":D("error",e),D("load",e),s=r;break;case"details":D("toggle",e),s=r;break;case"input":li(e,r),s=ao(e,r),D("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=W({},r,{value:void 0}),D("invalid",e);break;case"textarea":ai(e,r),s=fo(e,r),D("invalid",e);break;default:s=r}ho(n,s),i=s;for(o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="style"?Ya(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ka(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&zn(e,a):typeof a=="number"&&zn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(In.hasOwnProperty(o)?a!=null&&o==="onScroll"&&D("scroll",e):a!=null&&al(e,o,a,l))}switch(n){case"input":ar(e),ii(e,r,!1);break;case"textarea":ar(e),ui(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Jt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Wr)}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)yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Pt(Zn.current),Pt(Be.current),gr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(o=r.nodeValue!==n)&&(e=ke,e!==null))switch(e.tag){case 3:vr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return se(t),null;case 13:if(A(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&we!==null&&t.mode&1&&!(t.flags&128))Iu(),on(),t.flags|=98560,o=!1;else if(o=gr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(x(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(x(317));o[Ae]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),o=!1}else Re!==null&&(Yo(Re),Re=null),o=!0;if(!o)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||H.current&1?X===0&&(X=3):Wl())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return an(),Bo(e,t),e===null&&Wn(t.stateNode.containerInfo),se(t),null;case 10:return Pl(t.type._context),se(t),null;case 17:return ve(t.type)&&Qr(),se(t),null;case 19:if(A(H),o=t.memoizedState,o===null)return se(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)kn(o,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=qr(e),l!==null){for(t.flags|=128,kn(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return z(H,H.current&1|2),t.child}e=e.sibling}o.tail!==null&&K()>cn&&(t.flags|=128,r=!0,kn(o,!1),t.lanes=4194304)}else{if(!r)if(e=qr(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!U)return se(t),null}else 2*K()-o.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,kn(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=H.current,z(H,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Vl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function np(e,t){switch(Cl(t),t.tag){case 1:return ve(t.type)&&Qr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),A(me),A(le),Ml(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ll(t),null;case 13:if(A(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(H),null;case 4:return an(),null;case 10:return Pl(t.type._context),null;case 22:case 23:return Vl(),null;case 24:return null;default:return null}}var kr=!1,oe=!1,rp=typeof WeakSet=="function"?WeakSet:Set,C=null;function Yt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function Ho(e,t,n){try{n()}catch(r){Q(e,t,r)}}var qi=!1;function sp(e,t){if(jo=Br,e=Cu(),xl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,i=-1,a=-1,c=0,v=0,h=e,f=null;t:for(;;){for(var y;h!==n||s!==0&&h.nodeType!==3||(i=l+s),h!==o||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++c===s&&(i=l),f===o&&++v===r&&(a=l),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(To={focusedElem:e,selectionRange:n},Br=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,$=g.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Le(t.type,w),$);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(k){Q(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return g=qi,qi=!1,g}function Mn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Ho(t,n,o)}s=s.next}while(s!==r)}}function vs(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 Vo(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 wc(e){var t=e.alternate;t!==null&&(e.alternate=null,wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Gn],delete t[$o],delete t[Uf],delete t[Bf])),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 kc(e){return e.tag===5||e.tag===3||e.tag===4}function bi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kc(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 Wo(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=Wr));else if(r!==4&&(e=e.child,e!==null))for(Wo(e,t,n),e=e.sibling;e!==null;)Wo(e,t,n),e=e.sibling}function Qo(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(Qo(e,t,n),e=e.sibling;e!==null;)Qo(e,t,n),e=e.sibling}var ee=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)xc(e,t,n),n=n.sibling}function xc(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(as,n)}catch{}switch(n.tag){case 5:oe||Yt(n,t);case 6:var r=ee,s=Me;ee=null,be(e,t,n),ee=r,Me=s,ee!==null&&(Me?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Me?(e=ee,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),Bn(e)):Gs(ee,n.stateNode));break;case 4:r=ee,s=Me,ee=n.stateNode.containerInfo,Me=!0,be(e,t,n),ee=r,Me=s;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ho(n,t,l),s=s.next}while(s!==r)}be(e,t,n);break;case 1:if(!oe&&(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Q(n,t,i)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,be(e,t,n),oe=r):be(e,t,n);break;default:be(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rp),t.forEach(function(r){var s=pp.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function _e(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,l=t,i=l;e:for(;i!==null;){switch(i.tag){case 5:ee=i.stateNode,Me=!1;break e;case 3:ee=i.stateNode.containerInfo,Me=!0;break e;case 4:ee=i.stateNode.containerInfo,Me=!0;break e}i=i.return}if(ee===null)throw Error(x(160));xc(o,l,s),ee=null,Me=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(c){Q(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sc(t,e),t=t.sibling}function Sc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_e(t,e),ze(e),r&4){try{Mn(3,e,e.return),vs(3,e)}catch(w){Q(e,e.return,w)}try{Mn(5,e,e.return)}catch(w){Q(e,e.return,w)}}break;case 1:_e(t,e),ze(e),r&512&&n!==null&&Yt(n,n.return);break;case 5:if(_e(t,e),ze(e),r&512&&n!==null&&Yt(n,n.return),e.flags&32){var s=e.stateNode;try{zn(s,"")}catch(w){Q(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&Wa(s,o),mo(i,l);var c=mo(i,o);for(l=0;l<a.length;l+=2){var v=a[l],h=a[l+1];v==="style"?Ya(s,h):v==="dangerouslySetInnerHTML"?Ka(s,h):v==="children"?zn(s,h):al(s,v,h,c)}switch(i){case"input":uo(s,o);break;case"textarea":Qa(s,o);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Jt(s,!!o.multiple,y,!1):f!==!!o.multiple&&(o.defaultValue!=null?Jt(s,!!o.multiple,o.defaultValue,!0):Jt(s,!!o.multiple,o.multiple?[]:"",!1))}s[Gn]=o}catch(w){Q(e,e.return,w)}}break;case 6:if(_e(t,e),ze(e),r&4){if(e.stateNode===null)throw Error(x(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(w){Q(e,e.return,w)}}break;case 3:if(_e(t,e),ze(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(w){Q(e,e.return,w)}break;case 4:_e(t,e),ze(e);break;case 13:_e(t,e),ze(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Bl=K())),r&4&&ea(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(oe=(c=oe)||v,_e(t,e),oe=c):_e(t,e),ze(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!v&&e.mode&1)for(C=e,v=e.child;v!==null;){for(h=C=v;C!==null;){switch(f=C,y=f.child,f.tag){case 0:case 11:case 14:case 15:Mn(4,f,f.return);break;case 1:Yt(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(w){Q(r,n,w)}}break;case 5:Yt(f,f.return);break;case 22:if(f.memoizedState!==null){na(h);continue}}y!==null?(y.return=f,C=y):na(h)}v=v.sibling}e:for(v=null,h=e;;){if(h.tag===5){if(v===null){v=h;try{s=h.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=h.stateNode,a=h.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Za("display",l))}catch(w){Q(e,e.return,w)}}}else if(h.tag===6){if(v===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(w){Q(e,e.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;v===h&&(v=null),h=h.return}v===h&&(v=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:_e(t,e),ze(e),r&4&&ea(e);break;case 21:break;default:_e(t,e),ze(e)}}function ze(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(zn(s,""),r.flags&=-33);var o=bi(e);Qo(e,o,s);break;case 3:case 4:var l=r.stateNode.containerInfo,i=bi(e);Wo(e,i,l);break;default:throw Error(x(161))}}catch(a){Q(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function op(e,t,n){C=e,Cc(e)}function Cc(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var s=C,o=s.child;if(s.tag===22&&r){var l=s.memoizedState!==null||kr;if(!l){var i=s.alternate,a=i!==null&&i.memoizedState!==null||oe;i=kr;var c=oe;if(kr=l,(oe=a)&&!c)for(C=s;C!==null;)l=C,a=l.child,l.tag===22&&l.memoizedState!==null?ra(s):a!==null?(a.return=l,C=a):ra(s);for(;o!==null;)C=o,Cc(o),o=o.sibling;C=s,kr=i,oe=c}ta(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,C=o):ta(e)}}function ta(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:oe||vs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!oe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ai(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ai(t,l,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var v=c.memoizedState;if(v!==null){var h=v.dehydrated;h!==null&&Bn(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}oe||t.flags&512&&Vo(t)}catch(f){Q(t,t.return,f)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function na(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function ra(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vs(4,t)}catch(a){Q(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){Q(t,s,a)}}var o=t.return;try{Vo(t)}catch(a){Q(t,o,a)}break;case 5:var l=t.return;try{Vo(t)}catch(a){Q(t,l,a)}}}catch(a){Q(t,t.return,a)}if(t===e){C=null;break}var i=t.sibling;if(i!==null){i.return=t.return,C=i;break}C=t.return}}var lp=Math.ceil,ts=Je.ReactCurrentDispatcher,Al=Je.ReactCurrentOwner,Pe=Je.ReactCurrentBatchConfig,F=0,b=null,Z=null,te=0,ye=0,Xt=gt(0),X=0,qn=null,Ft=0,gs=0,Ul=0,Rn=null,pe=null,Bl=0,cn=1/0,He=null,ns=!1,Go=null,dt=null,xr=!1,ot=null,rs=0,Fn=0,Ko=null,Mr=-1,Rr=0;function ce(){return F&6?K():Mr!==-1?Mr:Mr=K()}function ft(e){return e.mode&1?F&2&&te!==0?te&-te:Vf.transition!==null?(Rr===0&&(Rr=iu()),Rr):(e=I,e!==0||(e=window.event,e=e===void 0?16:hu(e.type)),e):1}function Oe(e,t,n,r){if(50<Fn)throw Fn=0,Ko=null,Error(x(185));er(e,n,r),(!(F&2)||e!==b)&&(e===b&&(!(F&2)&&(gs|=n),X===4&&rt(e,te)),ge(e,r),n===1&&F===0&&!(t.mode&1)&&(cn=K()+500,ps&&yt()))}function ge(e,t){var n=e.callbackNode;Hd(e,t);var r=Ur(e,e===b?te:0);if(r===0)n!==null&&fi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fi(n),t===1)e.tag===0?Hf(sa.bind(null,e)):Ru(sa.bind(null,e)),Df(function(){!(F&6)&&yt()}),n=null;else{switch(au(r)){case 1:n=pl;break;case 4:n=ou;break;case 16:n=Ar;break;case 536870912:n=lu;break;default:n=Ar}n=Lc(n,Ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ec(e,t){if(Mr=-1,Rr=0,F&6)throw Error(x(327));var n=e.callbackNode;if(nn()&&e.callbackNode!==n)return null;var r=Ur(e,e===b?te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ss(e,r);else{t=r;var s=F;F|=2;var o=Tc();(b!==e||te!==t)&&(He=null,cn=K()+500,Nt(e,t));do try{up();break}catch(i){jc(e,i)}while(!0);Tl(),ts.current=o,F=s,Z!==null?t=0:(b=null,te=0,t=X)}if(t!==0){if(t===2&&(s=ko(e),s!==0&&(r=s,t=Zo(e,s))),t===1)throw n=qn,Nt(e,0),rt(e,r),ge(e,K()),n;if(t===6)rt(e,r);else{if(s=e.current.alternate,!(r&30)&&!ip(s)&&(t=ss(e,r),t===2&&(o=ko(e),o!==0&&(r=o,t=Zo(e,o))),t===1))throw n=qn,Nt(e,0),rt(e,r),ge(e,K()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:Et(e,pe,He);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Bl+500-K(),10<t)){if(Ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=No(Et.bind(null,e,pe,He),t);break}Et(e,pe,He);break;case 4:if(rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var l=31-Fe(r);o=1<<l,l=t[l],l>s&&(s=l),r&=~o}if(r=s,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lp(r/1960))-r,10<r){e.timeoutHandle=No(Et.bind(null,e,pe,He),r);break}Et(e,pe,He);break;case 5:Et(e,pe,He);break;default:throw Error(x(329))}}}return ge(e,K()),e.callbackNode===n?Ec.bind(null,e):null}function Zo(e,t){var n=Rn;return e.current.memoizedState.isDehydrated&&(Nt(e,t).flags|=256),e=ss(e,t),e!==2&&(t=pe,pe=n,t!==null&&Yo(t)),e}function Yo(e){pe===null?pe=e:pe.push.apply(pe,e)}function ip(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!Ie(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rt(e,t){for(t&=~Ul,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Fe(t),r=1<<n;e[n]=-1,t&=~r}}function sa(e){if(F&6)throw Error(x(327));nn();var t=Ur(e,0);if(!(t&1))return ge(e,K()),null;var n=ss(e,t);if(e.tag!==0&&n===2){var r=ko(e);r!==0&&(t=r,n=Zo(e,r))}if(n===1)throw n=qn,Nt(e,0),rt(e,t),ge(e,K()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Et(e,pe,He),ge(e,K()),null}function Hl(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(cn=K()+500,ps&&yt())}}function Ot(e){ot!==null&&ot.tag===0&&!(F&6)&&nn();var t=F;F|=1;var n=Pe.transition,r=I;try{if(Pe.transition=null,I=1,e)return e()}finally{I=r,Pe.transition=n,F=t,!(F&6)&&yt()}}function Vl(){ye=Xt.current,A(Xt)}function Nt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zf(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(Cl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qr();break;case 3:an(),A(me),A(le),Ml();break;case 5:Ll(r);break;case 4:an();break;case 13:A(H);break;case 19:A(H);break;case 10:Pl(r.type._context);break;case 22:case 23:Vl()}n=n.return}if(b=e,Z=e=pt(e.current,null),te=ye=t,X=0,qn=null,Ul=gs=Ft=0,pe=Rn=null,Tt!==null){for(t=0;t<Tt.length;t++)if(n=Tt[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=s,r.next=l}n.pending=r}Tt=null}return e}function jc(e,t){do{var n=Z;try{if(Tl(),$r.current=es,br){for(var r=V.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}br=!1}if(Rt=0,q=Y=V=null,Ln=!1,Yn=0,Al.current=null,n===null||n.return===null){X=1,qn=t,Z=null;break}e:{var o=e,l=n.return,i=n,a=t;if(t=te,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,v=i,h=v.tag;if(!(v.mode&1)&&(h===0||h===11||h===15)){var f=v.alternate;f?(v.updateQueue=f.updateQueue,v.memoizedState=f.memoizedState,v.lanes=f.lanes):(v.updateQueue=null,v.memoizedState=null)}var y=Qi(l);if(y!==null){y.flags&=-257,Gi(y,l,i,o,t),y.mode&1&&Wi(o,c,t),t=y,a=c;var g=t.updateQueue;if(g===null){var w=new Set;w.add(a),t.updateQueue=w}else g.add(a);break e}else{if(!(t&1)){Wi(o,c,t),Wl();break e}a=Error(x(426))}}else if(U&&i.mode&1){var $=Qi(l);if($!==null){!($.flags&65536)&&($.flags|=256),Gi($,l,i,o,t),El(un(a,i));break e}}o=a=un(a,i),X!==4&&(X=2),Rn===null?Rn=[o]:Rn.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=ac(o,a,t);Di(o,p);break e;case 1:i=a;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(dt===null||!dt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=uc(o,i,t);Di(o,k);break e}}o=o.return}while(o!==null)}Nc(n)}catch(S){t=S,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(!0)}function Tc(){var e=ts.current;return ts.current=es,e===null?es:e}function Wl(){(X===0||X===3||X===2)&&(X=4),b===null||!(Ft&268435455)&&!(gs&268435455)||rt(b,te)}function ss(e,t){var n=F;F|=2;var r=Tc();(b!==e||te!==t)&&(He=null,Nt(e,t));do try{ap();break}catch(s){jc(e,s)}while(!0);if(Tl(),F=n,ts.current=r,Z!==null)throw Error(x(261));return b=null,te=0,X}function ap(){for(;Z!==null;)Pc(Z)}function up(){for(;Z!==null&&!Rd();)Pc(Z)}function Pc(e){var t=_c(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?Nc(e):Z=t,Al.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=np(n,t),n!==null){n.flags&=32767,Z=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{X=6,Z=null;return}}else if(n=tp(n,t,ye),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);X===0&&(X=5)}function Et(e,t,n){var r=I,s=Pe.transition;try{Pe.transition=null,I=1,cp(e,t,n,r)}finally{Pe.transition=s,I=r}return null}function cp(e,t,n,r){do nn();while(ot!==null);if(F&6)throw Error(x(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Vd(e,o),e===b&&(Z=b=null,te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xr||(xr=!0,Lc(Ar,function(){return nn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Pe.transition,Pe.transition=null;var l=I;I=1;var i=F;F|=4,Al.current=null,sp(e,n),Sc(n,e),_f(To),Br=!!jo,To=jo=null,e.current=n,op(n),Fd(),F=i,I=l,Pe.transition=o}else e.current=n;if(xr&&(xr=!1,ot=e,rs=s),o=e.pendingLanes,o===0&&(dt=null),zd(n.stateNode),ge(e,K()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ns)throw ns=!1,e=Go,Go=null,e;return rs&1&&e.tag!==0&&nn(),o=e.pendingLanes,o&1?e===Ko?Fn++:(Fn=0,Ko=e):Fn=0,yt(),null}function nn(){if(ot!==null){var e=au(rs),t=Pe.transition,n=I;try{if(Pe.transition=null,I=16>e?16:e,ot===null)var r=!1;else{if(e=ot,ot=null,rs=0,F&6)throw Error(x(331));var s=F;for(F|=4,C=e.current;C!==null;){var o=C,l=o.child;if(C.flags&16){var i=o.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for(C=c;C!==null;){var v=C;switch(v.tag){case 0:case 11:case 15:Mn(8,v,o)}var h=v.child;if(h!==null)h.return=v,C=h;else for(;C!==null;){v=C;var f=v.sibling,y=v.return;if(wc(v),v===c){C=null;break}if(f!==null){f.return=y,C=f;break}C=y}}}var g=o.alternate;if(g!==null){var w=g.child;if(w!==null){g.child=null;do{var $=w.sibling;w.sibling=null,w=$}while(w!==null)}}C=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,C=l;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Mn(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,C=p;break e}C=o.return}}var d=e.current;for(C=d;C!==null;){l=C;var m=l.child;if(l.subtreeFlags&2064&&m!==null)m.return=l,C=m;else e:for(l=d;C!==null;){if(i=C,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:vs(9,i)}}catch(S){Q(i,i.return,S)}if(i===l){C=null;break e}var k=i.sibling;if(k!==null){k.return=i.return,C=k;break e}C=i.return}}if(F=s,yt(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(as,e)}catch{}r=!0}return r}finally{I=n,Pe.transition=t}}return!1}function oa(e,t,n){t=un(n,t),t=ac(e,t,1),e=ct(e,t,1),t=ce(),e!==null&&(er(e,1,t),ge(e,t))}function Q(e,t,n){if(e.tag===3)oa(e,e,n);else for(;t!==null;){if(t.tag===3){oa(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=uc(t,e,1),t=ct(t,e,1),e=ce(),t!==null&&(er(t,1,e),ge(t,e));break}}t=t.return}}function dp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,b===e&&(te&n)===n&&(X===4||X===3&&(te&130023424)===te&&500>K()-Bl?Nt(e,0):Ul|=n),ge(e,t)}function $c(e,t){t===0&&(e.mode&1?(t=dr,dr<<=1,!(dr&130023424)&&(dr=4194304)):t=1);var n=ce();e=Ye(e,t),e!==null&&(er(e,t,n),ge(e,n))}function fp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$c(e,n)}function pp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),$c(e,n)}var _c;_c=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,ep(e,t,n);he=!!(e.flags&131072)}else he=!1,U&&t.flags&1048576&&Fu(t,Zr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lr(e,t),e=t.pendingProps;var s=sn(t,le.current);tn(t,n),s=Fl(null,t,r,e,s,n);var o=Ol();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ve(r)?(o=!0,Gr(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,$l(t),s.updater=ms,t.stateNode=s,s._reactInternals=t,Oo(t,r,e,n),t=Do(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Sl(t),ue(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lr(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=mp(r),e=Le(r,e),s){case 0:t=zo(null,t,r,e,n);break e;case 1:t=Yi(null,t,r,e,n);break e;case 11:t=Ki(null,t,r,e,n);break e;case 14:t=Zi(null,t,r,Le(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),zo(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Yi(e,t,r,s,n);case 3:e:{if(pc(t),e===null)throw Error(x(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Uu(e,t),Jr(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=un(Error(x(423)),t),t=Xi(e,t,r,n,s);break e}else if(r!==s){s=un(Error(x(424)),t),t=Xi(e,t,r,n,s);break e}else for(we=ut(t.stateNode.containerInfo.firstChild),ke=t,U=!0,Re=null,n=Du(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===s){t=Xe(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return Bu(t),e===null&&Mo(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,Po(r,s)?l=null:o!==null&&Po(r,o)&&(t.flags|=32),fc(e,t),ue(e,t,l,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return hc(e,t,n);case 4:return _l(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ln(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Ki(e,t,r,s,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,l=s.value,z(Yr,r._currentValue),r._currentValue=l,o!==null)if(Ie(o.value,l)){if(o.children===s.children&&!me.current){t=Xe(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){l=o.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ge(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?a.next=a:(a.next=v.next,v.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ro(o.return,n,t),i.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(x(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),Ro(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ue(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,tn(t,n),s=Ne(s),r=r(s),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,s=Le(r,t.pendingProps),s=Le(r.type,s),Zi(e,t,r,s,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Lr(e,t),t.tag=1,ve(r)?(e=!0,Gr(t)):e=!1,tn(t,n),ic(t,r,s),Oo(t,r,s,n),Do(null,t,r,!0,e,n);case 19:return mc(e,t,n);case 22:return dc(e,t,n)}throw Error(x(156,t.tag))};function Lc(e,t){return su(e,t)}function hp(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 Te(e,t,n,r){return new hp(e,t,n,r)}function Ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mp(e){if(typeof e=="function")return Ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cl)return 11;if(e===dl)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Te(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,s,o){var l=2;if(r=e,typeof e=="function")Ql(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ut:return $t(n.children,s,o,t);case ul:l=8,s|=8;break;case so:return e=Te(12,n,t,s|2),e.elementType=so,e.lanes=o,e;case oo:return e=Te(13,n,t,s),e.elementType=oo,e.lanes=o,e;case lo:return e=Te(19,n,t,s),e.elementType=lo,e.lanes=o,e;case Ba:return ys(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:l=10;break e;case Ua:l=9;break e;case cl:l=11;break e;case dl:l=14;break e;case et:l=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Te(l,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function $t(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function ys(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Ba,e.lanes=n,e.stateNode={isHidden:!1},e}function eo(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function to(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vp(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Os(0),this.expirationTimes=Os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Gl(e,t,n,r,s,o,l,i,a){return e=new vp(e,t,n,i,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$l(o),e}function gp(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 Mc(e){if(!e)return mt;e=e._reactInternals;e:{if(zt(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(ve(n))return Mu(e,n,t)}return t}function Rc(e,t,n,r,s,o,l,i,a){return e=Gl(n,r,!0,e,s,o,l,i,a),e.context=Mc(null),n=e.current,r=ce(),s=ft(n),o=Ge(r,s),o.callback=t??null,ct(n,o,s),e.current.lanes=s,er(e,s,r),ge(e,r),e}function ws(e,t,n,r){var s=t.current,o=ce(),l=ft(s);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ge(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(s,t,l),e!==null&&(Oe(e,s,l,o),Nr(e,s,l)),l}function os(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function la(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Kl(e,t){la(e,t),(e=e.alternate)&&la(e,t)}function yp(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zl(e){this._internalRoot=e}ks.prototype.render=Zl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));ws(e,t,null,null)};ks.prototype.unmount=Zl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ot(function(){ws(null,e,null,null)}),t[Ze]=null}};function ks(e){this._internalRoot=e}ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=du();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&&pu(e)}};function Yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ia(){}function wp(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var c=os(l);o.call(c)}}var l=Rc(t,r,e,0,null,!1,!1,"",ia);return e._reactRootContainer=l,e[Ze]=l.current,Wn(e.nodeType===8?e.parentNode:e),Ot(),l}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var i=r;r=function(){var c=os(a);i.call(c)}}var a=Gl(e,0,!1,null,null,!1,!1,"",ia);return e._reactRootContainer=a,e[Ze]=a.current,Wn(e.nodeType===8?e.parentNode:e),Ot(function(){ws(t,a,n,r)}),a}function Ss(e,t,n,r,s){var o=n._reactRootContainer;if(o){var l=o;if(typeof s=="function"){var i=s;s=function(){var a=os(l);i.call(a)}}ws(t,l,e,s)}else l=wp(n,t,e,s,r);return os(l)}uu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=En(t.pendingLanes);n!==0&&(hl(t,n|1),ge(t,K()),!(F&6)&&(cn=K()+500,yt()))}break;case 13:Ot(function(){var r=Ye(e,1);if(r!==null){var s=ce();Oe(r,e,1,s)}}),Kl(e,1)}};ml=function(e){if(e.tag===13){var t=Ye(e,134217728);if(t!==null){var n=ce();Oe(t,e,134217728,n)}Kl(e,134217728)}};cu=function(e){if(e.tag===13){var t=ft(e),n=Ye(e,t);if(n!==null){var r=ce();Oe(n,e,t,r)}Kl(e,t)}};du=function(){return I};fu=function(e,t){var n=I;try{return I=e,t()}finally{I=n}};go=function(e,t,n){switch(t){case"input":if(uo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=fs(r);if(!s)throw Error(x(90));Va(r),uo(r,s)}}}break;case"textarea":Qa(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}};qa=Hl;ba=Ot;var kp={usingClientEntryPoint:!1,Events:[nr,Wt,fs,Xa,Ja,Hl]},xn={findFiberByHostInstance:jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xp={bundleType:xn.bundleType,version:xn.version,rendererPackageName:xn.rendererPackageName,rendererConfig:xn.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=nu(e),e===null?null:e.stateNode},findFiberByHostInstance:xn.findFiberByHostInstance||yp,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 Sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sr.isDisabled&&Sr.supportsFiber)try{as=Sr.inject(xp),Ue=Sr}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kp;Se.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yl(t))throw Error(x(200));return gp(e,t,null,n)};Se.createRoot=function(e,t){if(!Yl(e))throw Error(x(299));var n=!1,r="",s=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Gl(e,1,!1,null,null,n,!1,r,s),e[Ze]=t.current,Wn(e.nodeType===8?e.parentNode:e),new Zl(t)};Se.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=nu(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e){return Ot(e)};Se.hydrate=function(e,t,n){if(!xs(t))throw Error(x(200));return Ss(null,e,t,!0,n)};Se.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",l=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Rc(t,null,e,1,n??null,s,!1,o,l),e[Ze]=t.current,Wn(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new ks(t)};Se.render=function(e,t,n){if(!xs(t))throw Error(x(200));return Ss(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!xs(e))throw Error(x(40));return e._reactRootContainer?(Ot(function(){Ss(null,null,e,!1,function(){e._reactRootContainer=null,e[Ze]=null})}),!0):!1};Se.unstable_batchedUpdates=Hl;Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xs(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Ss(e,t,n,!1,r)};Se.version="18.3.1-next-f1338f8080-20240426";function Oc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oc)}catch(e){console.error(e)}}Oc(),Oa.exports=Se;var Sp=Oa.exports,aa=Sp;no.createRoot=aa.createRoot,no.hydrateRoot=aa.hydrateRoot;const Cp="modulepreload",Ep=function(e){return"/"+e},ua={},jp=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),i=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=Promise.allSettled(n.map(a=>{if(a=Ep(a),a in ua)return;ua[a]=!0;const c=a.endsWith(".css"),v=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${v}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":Cp,c||(h.as="script"),h.crossOrigin="",h.href=a,i&&h.setAttribute("nonce",i),document.head.appendChild(h),c)return new Promise((f,y)=>{h.addEventListener("load",f),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(l){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l}return s.then(l=>{for(const i of l||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},Tp={plus:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M5 12h14"}),u.jsx("path",{d:"M12 5v14"})]})},x:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M18 6 6 18"}),u.jsx("path",{d:"m6 6 12 12"})]})},"chevron-left":{node:u.jsx("path",{d:"m15 18-6-6 6-6"}),sw:2},"arrow-left":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m12 19-7-7 7-7"}),u.jsx("path",{d:"M19 12H5"})]}),sw:2},"corner-up-left":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m9 14-5-5 5-5"}),u.jsx("path",{d:"M4 9h8a8 8 0 0 1 8 8v2"})]}),sw:2},"chevron-right":{node:u.jsx("path",{d:"m9 18 6-6-6-6"}),sw:2},"chevron-down":{node:u.jsx("path",{d:"m6 9 6 6 6-6"}),sw:2},check:{node:u.jsx("path",{d:"M20 6 9 17l-5-5"}),sw:2},blank:{node:null},"circle-check":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m4.8 8 2 2L11.5 5.5"})]})},"circle-x":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m5.4 5.4 5.2 5.2"}),u.jsx("path",{d:"m10.6 5.4-5.2 5.2"})]})},"circle-check-dashed":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"}),u.jsx("path",{d:"m4.8 8 2 2L11.5 5.5"})]})},"circle-x-dashed":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"}),u.jsx("path",{d:"m5.4 5.4 5.2 5.2"}),u.jsx("path",{d:"m10.6 5.4-5.2 5.2"})]})},"circle-minus":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"M4.8 8h6.4"})]})},"circle-dashed":{vb:16,sw:1.5,node:u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"})},ellipsis:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor",stroke:"none"})]})},"message-square":{node:u.jsx(u.Fragment,{children:u.jsx("path",{d:"M21 15a3 3 0 0 1-3 3H8l-5 3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3Z"})})},stop:{node:u.jsx("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2"}),sw:2},send:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m5 12 7-7 7 7"}),u.jsx("path",{d:"M12 19V5"})]}),sw:2},download:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 15V3"}),u.jsx("path",{d:"m7 10 5 5 5-5"}),u.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"})]})},copy:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),u.jsx("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})]})},"folder-open":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 14.5 8.5 6H21l-2.5 8.5a2 2 0 0 1-1.9 1.5H7.9A2 2 0 0 1 6 14.5Z"}),u.jsx("path",{d:"M3 6h5l2-2h4"}),u.jsx("path",{d:"M3 6v12a2 2 0 0 0 2 2h12"})]})},globe:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M3 12h18"}),u.jsx("path",{d:"M12 3c2.5 2.5 3.8 5.5 3.8 9S14.5 18.5 12 21c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3Z"})]})},eye:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"})]})},clock:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 6v6l4 2"})]})},search:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("path",{d:"m21 21-4.3-4.3"})]})},star:{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z"})},"star-filled":{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z",fill:"currentColor"})},filter:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M4 6h16"}),u.jsx("path",{d:"M7 12h10"}),u.jsx("path",{d:"M10 18h4"})]})},info:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 16v-4"}),u.jsx("path",{d:"M12 8h.01"})]}),sw:2},"triangle-alert":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m12 3 9 17H3Z"}),u.jsx("path",{d:"M12 9v4"}),u.jsx("path",{d:"M12 17h.01"})]}),sw:1.8},pencil:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 20h9"}),u.jsx("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})},terminal:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m4 17 6-6-6-6"}),u.jsx("path",{d:"M12 19h8"})]}),sw:2},command:{node:u.jsx("path",{d:"M18 9a3 3 0 1 0-3-3v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3Z"})},keyboard:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),u.jsx("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M8 12h.01M12 12h.01M16 12h.01M7 16h10"})]})},"git-merge":{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"6",cy:"6",r:"3"}),u.jsx("circle",{cx:"18",cy:"18",r:"3"}),u.jsx("path",{d:"M6 21V9a9 9 0 0 0 9 9"})]})},"git-compare":{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"18",cy:"18",r:"3"}),u.jsx("circle",{cx:"6",cy:"6",r:"3"}),u.jsx("path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}),u.jsx("path",{d:"M11 18H8a2 2 0 0 1-2-2V9"})]})},"file-diff":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 3h8l4 4v14H6z"}),u.jsx("path",{d:"M14 3v5h5"}),u.jsx("path",{d:"M9 12h6M9 16h3"})]})},"rotate-ccw":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),u.jsx("path",{d:"M3 3v5h5"})]})},"list-checks":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m3 7 2 2 4-4"}),u.jsx("path",{d:"m3 17 2 2 4-4"}),u.jsx("path",{d:"M13 6h8"}),u.jsx("path",{d:"M13 12h8"}),u.jsx("path",{d:"M13 18h8"})]})},archive:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M21 8v13H3V8"}),u.jsx("path",{d:"M1 3h22v5H1z"}),u.jsx("path",{d:"M10 12h4"})]})},trash:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 6h18"}),u.jsx("path",{d:"M8 6V4h8v2"}),u.jsx("path",{d:"M19 6l-1 14H6L5 6"}),u.jsx("path",{d:"M10 11v5"}),u.jsx("path",{d:"M14 11v5"})]})},play:{node:u.jsx("path",{d:"M6 3.5 19.5 12 6 20.5Z"})},pause:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),u.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]})},settings:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},graph:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"6.5",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"1.8",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"11.8",width:"5",height:"4.4",rx:"1"}),u.jsx("path",{d:"M6.5 8.7 h2.2 M11.5 4 h-1.3 q-1.5 0-1.5 1.5 v7 q0 1.5 1.5 1.5 h1.3"})]})},sessions:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M4.6 6.5 l2.6 2.3 -2.6 2.3 M9 12.4 h4"})]})},evals:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 15.5 v-11"}),u.jsx("path",{d:"M2.5 15.5 h13"}),u.jsx("rect",{x:"4.6",y:"10",width:"2.6",height:"3.5",rx:"0.5"}),u.jsx("rect",{x:"8.7",y:"7",width:"2.6",height:"6.5",rx:"0.5"}),u.jsx("path",{d:"M13 6 l1.4 1.4 L16.5 3.6"})]})},issues:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 3.5 h13 v8.4 h-7 l-3.6 3 v-3 h-2.4 z"}),u.jsx("path",{d:"M5.4 6.7 h7.2 M5.4 9.2 h4.8"})]})},projects:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M9 2.2 16 5.8 9 9.4 2 5.8Z"}),u.jsx("path",{d:"M2 9.4 9 13 16 9.4"}),u.jsx("path",{d:"M2 12.8 9 16.4 16 12.8"})]})},files:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6.3 2.4h5.1l3.6 3.6v6.1"}),u.jsx("path",{d:"M2.5 5.9h5.4l3.6 3.6v6.1h-9z"}),u.jsx("path",{d:"M7.9 5.9v3.6h3.6"})]})},"session-list":{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"3",cy:"4.5",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"3",cy:"9",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"3",cy:"13.5",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("path",{d:"M6 4.5h9.5M6 9h9.5M6 13.5h9.5"})]})},"panel-left":{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6.4 2.5H3.1a1.6 1.6 0 0 0-1.6 1.6v9.8a1.6 1.6 0 0 0 1.6 1.6h3.3z",fill:"currentColor",stroke:"none",opacity:"0.4"}),u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M6.4 2.5v13"})]})},"panel-right":{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M11.6 2.5h3.3a1.6 1.6 0 0 1 1.6 1.6v9.8a1.6 1.6 0 0 1-1.6 1.6h-3.3z",fill:"currentColor",stroke:"none",opacity:"0.4"}),u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M11.6 2.5v13"})]})},"issue-opened":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),u.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"})]})},"issue-closed":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),u.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"})]})},lock:{vb:16,sw:1.3,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1.2"}),u.jsx("path",{d:"M5.5 7 V5 a2.5 2.5 0 0 1 5 0 V7"})]})},paperclip:{vb:16,sw:1.3,node:u.jsx("path",{d:"M12.5 7.2 L7 12.6 a2.6 2.6 0 0 1-3.7-3.7 L9 3.2 a1.7 1.7 0 0 1 2.4 2.4 L5.8 11.2 a0.8 0.8 0 0 1-1.2-1.2 L9.7 5"})},loader:{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.3"}),u.jsx("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5"})]})},"collapse-all":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M9 9H4v1h5V9z"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z"})]})},maximize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2 6V2h4"}),u.jsx("path",{d:"M14 6V2h-4"}),u.jsx("path",{d:"M2 10v4h4"}),u.jsx("path",{d:"M14 10v4h-4"})]})},minimize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 2v4H2"}),u.jsx("path",{d:"M10 2v4h4"}),u.jsx("path",{d:"M6 14v-4H2"}),u.jsx("path",{d:"M10 14v-4h4"})]})}};function Cs({name:e,size:t=16,strokeWidth:n,className:r,style:s}){const o=Tp[e];if(!o)return console.error(`unknown icon: ${e}`),u.jsx("svg",{width:t,height:t,viewBox:"0 0 16 16",className:r,style:s,"aria-hidden":"true",children:u.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeDasharray:"3 2"})});const l=o.vb||24;return u.jsx("svg",{width:t,height:t,viewBox:`0 0 ${l} ${l}`,fill:o.fill??"none",stroke:o.stroke??"currentColor",strokeWidth:n??o.sw??1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:r,style:s,children:o.node})}function wh({open:e=!1,size:t=12,className:n=""}){return u.jsx(Cs,{name:"chevron-right",size:t,className:`caret${e?" is-open":""}${n?` ${n}`:""}`})}function Pp({icon:e,label:t,onClick:n,className:r,size:s,iconClassName:o,...l}){return u.jsx("button",{type:"button",className:r,"data-tip":t,"aria-label":t,onClick:n,...l,children:u.jsx(Cs,{name:e,size:s,className:o})})}const kh=()=>u.jsx("svg",{className:"si-agent-glyph",viewBox:"0 0 24 24","aria-hidden":"true",children:u.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})}),xh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 160 160","aria-hidden":"true",children:[u.jsx("path",{d:"M135 80C135 49.6243 110.376 25 80 25C49.6243 25 25 49.6243 25 80C25 110.376 49.6243 135 80 135V149C41.8924 149 11 118.108 11 80C11 41.8924 41.8924 11 80 11C118.108 11 149 41.8924 149 80C149 118.108 118.108 149 80 149V135C110.376 135 135 110.376 135 80Z"}),u.jsx("path",{d:"M50.9235 54.3903C54.0216 52.577 58.0026 53.6185 59.8161 56.7165L70.9294 75.7009C72.6642 78.6649 72.6642 82.3345 70.9294 85.2985L59.8161 104.283C58.0026 107.381 54.0216 108.422 50.9235 106.609C47.8255 104.796 46.784 100.815 48.5973 97.7165L58.6745 80.4997L48.5973 63.2829C46.784 60.1848 47.8255 56.2038 50.9235 54.3903Z"}),u.jsx("path",{d:"M112 89.5C115.59 89.5 118.5 92.4101 118.5 96C118.5 99.5899 115.59 102.5 112 102.5H85C81.4101 102.5 78.5 99.5899 78.5 96C78.5 92.4101 81.4101 89.5 85 89.5H112Z"})]}),Sh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 240 300","aria-hidden":"true",children:[u.jsx("path",{d:"M180 240H60V120H180V240Z",opacity:"0.35"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z"})]}),Ch=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 45 45","aria-hidden":"true",children:[u.jsx("path",{fillRule:"evenodd",d:"M9.3 9.3h19.8v13.2h-6.6v6.6H15.9v6.6H9.3Zm6.6 6.6v6.6h6.6v-6.6Z"}),u.jsx("path",{d:"M29.1 22.5h6.6v13.2h-6.6Z"})]}),Xl={common:{new:"new",none:"none",idle:"idle",sessions:"sessions",session:"session",loading:"loading…",noVersions:"no versions yet — this spec is the latest ground truth.",cancel:"cancel",save:"save",close:"close"},status:{working:"working",idle:"idle",offline:"offline",starting:"starting",review:"review",done:"done","close-pending":"close-pending",parked:"parked",error:"error",asking:"asking",queued:"queued",unknown:"unknown",corrupt:"corrupt",retired:"retired",merged:"merged",active:"active",drift:"drift",pending:"pending"},sessionZone:{need:"needs you",run:"running",offline:"offline",archive:"archive",showHistory:({n:e})=>`show ${e} dormant session${e===1?"":"s"} (history is kept, never deleted)`,hideHistory:({n:e})=>`fold the ${e} dormant session${e===1?"":"s"} away`,showArchive:({n:e})=>`show ${e} archived session${e===1?"":"s"}`,hideArchive:({n:e})=>`fold the ${e} archived session${e===1?"":"s"} away`},specView:{missing:"no such node: {id}"},fileView:{none:"no file selected"},fileTree:{aria:"project file tree",specs:"Specs",files:"Files",graph:"Spec graph"},diskTree:{loading:"loading…"},dockModes:{collapse:"Collapse sidebar",expand:"Expand sidebar",aria:"dock mode",explorer:"Explorer",sessions:"Sessions",searchNodes:"Search nodes",searchSessions:"Search sessions",collapseFolders:"Collapse folders"},dockSessions:{new:"New session",archive:"Archived sessions",rowTip:"open · ctrl-click opens in a new tab · alt-click scopes the graph to this session"},sessionPicker:{label:"choose a session",filter:"filter sessions",empty:"no matching sessions",newSession:"new session…",overlaySessions:"sessions touching this node"},contextDock:{title:"Context",scenarios:"Scenarios",issues:"Issues",open:"show context dock",close:"hide context dock",loading:"loading scenarios…",loadingIssues:"loading issues…",noScenarios:"no scenarios declared",noIssues:"no open issues",states:{pass:"pass",fail:"fail",stalePass:"stale pass",staleFail:"stale fail",missing:"unmeasured",empty:"unmeasured"}},empty:{title:"Nothing open",hint:"You closed the last document. Pick one to open — nothing is lost, the tabs simply hold nothing right now.",search:"Search for a node",explorer:"Browse the explorer"},tabs:{aria:"open documents",close:"close tab",graph:"Graph",spec:"Spec",sessions:"Sessions",evals:"Evals",issues:"Issues",settings:"Settings",issueNew:"New issue",openInNewTab:"Open in a new tab",menuLabel:"tab actions",menuClose:"Close",menuCloseOthers:"Close others",menuSplit:"Send to split pane",surfaceTerminal:"terminal",surfaceConversation:"conversation",surfaceDiff:"diff"},documentActions:{aria:"document actions"},place:{graph:"Graph",sessions:"Sessions",evals:"Evals",issues:"Issues",settings:"Settings",empty:"Workspace",projects:"Projects"},nav:{railLabel:"main navigation",graph:"Spec Node Graph",explorer:"Explorer",spec:"Spec",sessions:"Sessions",spec:"Spec",evals:"Evals",issues:"Issues",settings:"Settings",projectChip:"project: {name} — switch project",projectChipLogin:"project: {name} — sign in to manage projects",projectOnline:"online",projectOffline:"offline",allProjects:"All projects"},projects:{title:"Projects",count:"{n} project(s)",pagination:"project pages",previousPage:"previous project page",nextPage:"next project page",pageOf:"page {page} of {pages}",current:"current",empty:"No projects yet — add a repository by its root path, or run `spex serve` in a repo and its backend registers itself here.",absent:"This deployment serves a single project — the multi-project catalog is not available here.",open:"open",add:"add project",addTitle:"Add project",addPlaceholder:"/abs/path/to/repo",addSubmit:"add",addBusy:"adding…",browseParent:"parent folder",browseHome:"home folder",browseGo:"go",browseNew:"new project",browseLoading:"loading…",browseCreating:"creating…",folderList:"folders",folderEmpty:"no subfolders",folderMissing:"folder does not exist",initGit:"initialize Git repository",initSpex:"initialize SpexCode",spexInitialized:"SpexCode initialized",harnessTargets:"harness targets",alreadyAdded:"already in the project catalog",configTitle:"edit spexcode.json",configEditor:"spexcode.json contents",configLoading:"loading…",configSave:"save",configSaving:"saving…",configReload:"reload",configSaved:"saved",configInvalid:"top level must be a valid JSON object",gatewayIcon:"gateway icon",projectIcon:"project icon",editGatewayIcon:"edit gateway icon",editProjectIcon:"edit project icon",gatewaySettings:"gateway settings",iconSearch:"search icons",iconSources:"icon sources",iconSourceFeatured:"Featured",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"Brands",iconSearching:"searching…",iconSearchEmpty:"no matching icons",iconSearchFailed:"icon search unavailable",setupTitle:"setup — init / doctor",harnessLabel:"harness:",harnessRequired:"pick at least one harness target — init refuses to guess",init:"init",doctor:"doctor",running:"running…",start:"start",startBusy:"starting…",opOk:"{op}: exit 0 — succeeded",opFail:"{op}: exit {code} — failed",actionFailed:"the gateway rejected the request",removeRegistration:"remove project registration",removeRegistrationHint:"removes the SpexCode entry, never the local source",removeTitle:"Remove project registration?",removeWarning:"This is deliberately a stop-and-confirm action. The project will leave the SpexCode catalog.",removeKeepsFiles:"The local directory, Git history, and source files stay exactly where they are. Disk deletion is not part of this action.",removeStopsFirst:"An online backend or active session blocks removal; the project password is cleared after success.",removeUnderstand:"I understand this removes only the catalog registration, not the local directory.",removeTypePrompt:"Type this exact confirmation phrase:",removeTypeLabel:"removal confirmation phrase",removeConfirm:"confirm registration removal",removeBusy:"removing…",passwordTitle:"project password",passwordPlaceholder:"new project password",passwordSet:"set",passwordClear:"clear",adminPassword:"admin password",adminPasswordPlaceholder:"new administrator password",adminUngated:"No administrator password is set — management works from this machine only. Set one to sign in remotely; you stay signed in.",health:{probing:"checking…",running:"running",unreachable:"unreachable",stopped:"backend stopped — start it from here"}},credential:{adminTitle:"administrator sign-in",adminBody:"This is a private agent workspace. Enter the administrator password to manage projects.",projectTitle:"unlock {name}",projectBody:"This project is protected. Enter its access password to continue.",lockedTitle:"management is locked",lockedBody:"No administrator password is configured, so remote management is locked. Set one from the machine running the gateway, then sign in here.",passwordLabel:"password",wrong:"Incorrect password — try again.",failed:"Sign-in failed — the gateway did not accept the request.",checking:"checking…",unlock:"unlock"},statusBar:{hidden:"hidden — restore from the bar",restore:"restore hidden status items",nodes:({n:e})=>`${e} spec nodes — merged · active · drift · pending. Open the graph`,evals:({pass:e,fail:t,stalePass:n,staleFail:r,empty:s})=>`eval scenarios: ${e} fresh pass, ${t} fresh fail, ${n} stale pass, ${r} stale fail, ${s} unmeasured`,openEvals:"open the Evals view",issues:({n:e})=>`${e} open issues — open the issues view`,sessions:"sessions by launcher — open the sessions console",launcher:({name:e})=>`${e}: running / needs-you / other — open the sessions console`,launcherSummary:({n:e})=>`${e} launchers: running / needs-you / other — open the sessions console`},backend:{offline:"backend unavailable — displayed data may be stale",retry:"retry",stale:"stale"},hud:{helpTitle:"help — keymap & legend",loading:"loading specs from git…",loadError:"backend unreachable — the graph failed to load.",retry:"retry"},viewError:{title:"This view crashed.",retry:"Retry"},evalsFeed:{title:"Evals",kind:{video:"video",image:"image",all:"all"},summary:({n:e})=>`${e} current`,datasetEmpty:"No evals yet.",noMatches:"No evals match this view.",annotate:"open & annotate",inSession:"measured by this session",okdTip:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,okChip:({n:e})=>`${e} ok’d`,okChipTitle:"show the fresh, human-ok’d scenarios the feed default-hides",filedBy:({by:e})=>`filed by ${e}`,filedAt:({at:e})=>`filed ${e} ago`,sessionTag:"session",freshnessDeferred:"freshness is pending; this row is ordered but not scored"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"All",search:"Search",searchIssues:"Search issues",searchEvals:"Search evals",rowMenu:"row actions",copyAddress:"Copy address",clearSearch:"Clear search",showing:({shown:e,total:t})=>`showing ${e} of ${t}`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"Current",needsReview:"Needs review",reviewed:"Reviewed",filters:"Filters",activeFilters:({n:e})=>`${e} active filter${e===1?"":"s"}`,facetStore:"Store",facetVerdict:"Verdict",facetFreshness:"Freshness",facetKind:"Evidence",facetAuthor:"Author",facetLabel:"Label",facetNode:"Spec node",facetFiler:"Filer",facetState:"State",facetReview:"Human review",facetSession:"Source session",sessionPresent:"Present",sessionMissing:"Missing",openedBy:({by:e})=>`opened by ${e}`,openedAt:({at:e})=>`opened ${e} ago`,verdict:{pass:"Pass",fail:"Fail",unmeasured:"Unmeasured",deferred:"Freshness pending",unscored:"Unscored"},freshness:{fresh:"Fresh",stale:"Stale"},pagination:"Pagination",previous:"Previous",next:"Next",prevPage:"Previous Page",nextPage:"Next Page",page:({n:e})=>`Page ${e}`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`no eval found for ${e} · ${t}`,evalUnmeasured:"this scenario has not been measured yet",scopeFallback:"this session worktree no longer exists; the measurements below are from trunk",issueNotFound:({id:e})=>`no issue found for ${e}`,backToEvals:"← all evals",backToIssues:"← all issues"},detail:{sideReading:"result",sideFiler:"filed by",sideOk:"human-ok",sideStore:"store",sideLabels:"labels",sideOriginator:"opened by",sideNodes:"spec nodes",backToEvals:"back to evals",backToIssues:"back to issues",sideQueue:"continue reviewing",queuePrev:"previous",queueNext:"up next",sideIssue:"issue",sideNode:"spec node"},annotator:{title:"annotator",play:"play",pause:"pause",fullscreen:"fullscreen",exitFullscreen:"exit fullscreen",capturing:"capturing frame…",failed:"failed — is the backend up?",comments:({n:e})=>e?`review track (${e})`:"review track",abOlder:"older eval (‹ toward the A / reproduced bug)",abNewer:"newer eval (toward the B / verified fix ›)",abLatest:"latest",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`older results (${e})`,okd:"human-ok",okBy:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,menuReview:"review commands",cmd:{okDesc:"sign off this result — you reviewed it and agree with its verdict; binds to THIS latest result only, monotonic (no un-ok)"}},thread:{anchorNow:"anchor",anchorTitle:"anchor this comment to the current frame",mentionActor:"insert @ — mention a session",mentionNode:"insert [[ — link a spec node",reviewCommands:"insert / — review commands",resolved:"resolved",resolvedBy:"resolved by {by}",openRemark:"open",resolve:"resolve",resolveTitle:"resolve this remark — a second party’s judgment that it is addressed (monotonic: no un-resolve)",retract:"retract",retractTitle:"withdraw your own unresolved remark — removes it from the thread",anchorDegraded:"this step is gone from the current eval — the m:ss is the frozen original, not seekable",originatorIssue:"open the session that filed this issue: {by}",originatorEval:"open the session that filed this eval: {by}"},sessionEval:{btn:"eval",btnTitle:"open this session's measured eval evidence on the Evals page",scopeDoor:"Back to session terminal",none:"no evaluation for this session yet",unavailable:"evaluation unavailable until the session model loads successfully.",loadFailed:({reason:e})=>`session evaluation failed to load — ${e}`,export:"export",exportTitle:"export this evaluation as a self-contained HTML report",empty:"nothing measured for this session yet.",unmeasured:"unmeasured",unknownCoverage:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`},time:{justNow:"now",minutes:({n:e})=>`${e}m`,hours:({n:e})=>`${e}h`,days:({n:e})=>`${e}d`,weeks:({n:e})=>`${e}w`},legend:{title:"help · keymap & legend",close:"close (esc)",secBoard:"graph keys",secPopup:"node-info popup",secStatus:"status dot",secOp:"overlay op",secOpSub:"(a worktree's pending change)",secBadges:"badges",secRing:"node ring",graph:{move:"move up / down the focused column (siblings)",parent:"to the parent",child:"to the nearest child",zoom:"zoom in / out · reset to overview",info:"open the node-info popup (or double-click a node)",search:"search & jump across nodes, sessions, issues & scenarios",overlayCycle:"cycle through nodes a worktree is changing (⇧ reverse)",fresh:"start a fresh session on the focus node",evals:"open the evals page (the project’s current measured loss)",newChild:"new child node under the focus (chord)",del:"delete the focused node (chord)",settings:"open settings (language…)",help:"open this help"},shell:{newSession:"open new session",evals:"open evals page",search:"search sessions",sessionPrevious:"select previous session",sessionNext:"select next session",sessionExpand:"expand the selected session",sessionCollapse:"collapse the selected session",dockToggle:"toggle explorer dock",dockMode:"switch explorer / sessions dock mode",contextToggle:"toggle context dock",tabClose:"close active tab",tabNext:"select next tab",tabPrevious:"select previous tab",tabSplit:"send active tab to split pane",commandBox:"toggle the session Command Box"},explorer:{menu:"open the row menu for the focused explorer row",openInNewTab:"open the focused explorer row in a new tab"},popup:{switch:"switch pane (spec / history)",scroll:"scroll · reveal the next version",lens:"walk the tree behind the popup — it follows the focus",enter:"inert — the popup is a read-only surface",esc:"close the popup"},statusRows:{merged:"spec & code in sync",active:"in-flight — the dot pulses",drift:"governed code is ahead of its spec",pending:"no committed version yet"},opRows:{added:"added",edited:"edited",deleted:"deleted",moved:"moved"},badgeDrift:"drift: N commits of code ahead of the spec",badgeVer:"version: N content commits to the node's spec.md",ringDashed:"dashed = uncommitted overlay",ringSolid:"solid = committed; ring colour = the author session",ringGhost:"translucent “ghost” = an added node not yet on main"},sessionWindow:{badgeLabel:"sessions on this graph",menuLabel:"session actions",rowTitle:"click to lock the graph onto this session · double-click to open it",lockedTitle:"graph locked to this session — click again to release",emptyBefore:"no live worktrees — press ",emptyAfter:" to start one",lock:"lock on graph",rename:"rename",attach:"open in terminal…",select:"select…",detach:"remove from parent",resume:"resume & relaunch",quarantine:"quarantine record",quarantineTitle:"quarantine unreadable record",quarantineConfirm:"quarantine",quarantineAdapter:"adapter",quarantineThread:"native thread",quarantineTmux:"tmux session",quarantineWorktree:"worktree path",quarantineBranch:"branch",quarantineRestore:"restore quarantined record",close:"close",closeTitle:"close “{name}”?",closeConfirm:"This closes the session and removes its worktree. Any uncommitted changes are lost.",renameTitle:"rename “{name}”",renamePlaceholder:"display name (blank to reset)",attachTitle:"attach to “{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"copy",attachCopied:"copied"},sessionSelect:{selected:({n:e})=>`${e} selected`,close:"close selected",closeTitle:({n:e})=>`close ${e} selected session${e===1?"":"s"}?`,closeConfirm:"This closes the selected sessions and removes their worktrees. Any uncommitted changes are lost."},lockHint:{cycleBefore:"press ",cycleNext:" next",cyclePrev:" previous",cycleAfter:({n:e})=>` through this session's ${e} changed nodes`,singleChanged:"this session changed 1 node",empty:"this session has no pending spec changes",release:"release",releaseTitle:"release the lock (or click the session again)"},nodeView:{carries:"Carries",paneSpec:"spec",paneHistory:"history",paneIssues:"issues",paneEval:"eval",paneEdit:"edit",filterIssues:"filter issues…",filterScenarios:"filter scenarios…",filterNone:"nothing matches the filter.",noEdit:"no pending change — this node has no live edit in flight.",editCommitted:"committed",editDirty:"uncommitted",pendingEdits:({n:e})=>`${e} session${e===1?"":"s"} editing this node`,openIssues:({n:e})=>`${e} open`,closedIssues:({n:e})=>`${e} closed`,noIssues:"no issues linked to this node yet.",hint:"←→/hl/tab switch · j/k/↑↓ scroll · ⇧+nav walk the tree · esc back",statusLabel:"status:",versionLabel:"version:",lastEditedBy:"last edited by:",governs:"Governs",proseNode:"No file owned · prose node",rawTitle:"raw source",rawOwner:"human",rawNote:"rarely changed · needs approval",expandedTitle:"expanded spec",expandedOwner:"agent",expandedNote:"versioned often · must match raw source",filesChanged:({n:e})=>`${e} file${e===1?"":"s"} changed`,loadingChange:"loading diff…",noChange:"no recorded change yet — this spec is the latest ground truth.",diffLabel:"spec line diff",loadingHistory:"loading history…",eval:{noScenarios:"no scenarios declared — this node has no eval.md to measure.",noReadings:"no measurements yet — run `spex eval add` to file one. The declared scenarios:",staleAxes:({axes:e})=>`stale: ${e} moved since this eval`,staleLabel:"stale:",staleReadoutTitle:"this eval is behind — the axes that moved since it, and for the code axis which governed files drifted and by how many commits (+N)",danglingTitle:"this scenario was renamed or deleted — its remarks have no eval to attach to, but stay resolvable via their refs",danglingGone:"scenario gone",pass:"✓ pass",fail:"✗ fail",note:"≈ note",legacy:"legacy",expected:"expected:",noteLabel:"note:",loadingTranscript:"loading transcript…",loadingData:"loading data…",data:"structured data (JSON)",dataInvalid:"structured data — invalid JSON",miss:"miss original file — the evidence was pruned from the cache.",noImage:"no evidence — the agent attested without a capture.",shotAlt:({scenario:e})=>`captured evidence for ${e}`,openDetail:"open this scenario's eval detail page",passCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & passing`,failCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & failing`}},stats:{statusTitle:({n:e,status:t})=>`${e} ${t} — click to walk them`,issueTitle:({n:e})=>`${e} distinct open issue${e===1?"":"s"} linked to the tree — click to walk the nodes carrying them`,scorePass:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & passing — click to walk the nodes carrying them`,scoreFail:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & failing — click to walk the nodes carrying them`,scoreStalePass:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale pass (code moved since the last passing measurement) — click to walk the nodes carrying them`,scoreStaleFail:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale fail (code moved since the last failing measurement) — click to walk the nodes carrying them`,scoreEmpty:({n:e})=>`${e} unmeasured or unscored scenario${e===1?"":"s"} (a blind spot) — click to walk the nodes carrying them`},score:{pass:"current pass — measured, fresh, and passing",fail:"current fail — measured, fresh, and failing",stalePass:"stale — last measured a pass, now out of date",staleFail:"stale — last measured a fail, now out of date",empty:"no current score — never measured, or no pass/fail verdict",missing:"not measured yet — no eval filed for this scenario",count:({satisfied:e,total:t,outstanding:n})=>`${e} of ${t} scenario${t===1?"":"s"} satisfied (fresh & passing)`+(n?` · ${n} outstanding — failing, stale, or unmeasured`:""),openList:"open the Evals list filtered to this node"},specNode:{liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,more:({n:e})=>`${e} more`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`${e} ahead`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?" (uncommitted)":""}`,openIssues:({n:e})=>`${e} open issue${e===1?"":"s"} — open node info to read them`,expandable:({n:e})=>`${e} child${e===1?"":"ren"} — focus to drill in`},explorerMenu:{nodeLabel:"node actions",fileLabel:"file actions",revealOnGraph:"reveal on graph",revealOwner:"reveal owning node",copyLink:"copy link",copyPath:"copy path",copyNodeId:"copy node id",copied:"copied",failed:"copy failed"},nodeMenu:{menuLabel:"node actions",info:"node info",copyUrl:"copy node URL",copied:"copied",failed:"copy failed",newSession:"new session",newChild:"new child node…",del:"delete node…"},proseActions:{groupLabel:"selected passage — send to a session, or edit it here",nodeGroupLabel:"current node actions",nodeSend:"Send current node to a session",nodeCopy:"Copy node link",nodeCopied:"node link copied",act:{send:"Send to Session",editSend:"Edit & Send",explain:"Explain",manual:"Edit Manually"},prompt:{edit:"Rewrite this passage of the spec so it says what it should. Commit the change with its node on your branch.",polish:"Polish the wording of this passage. Keep its meaning exactly as it is.",explain:"Explain this passage — what it means and why it is there. Answer here in the session; do not change the spec."},sendLabel:"send this passage to a session",presets:"insert / — preset intents",addressTip:"who receives it — a live session, or a new one",newWith:"new · {launcher}",jumpTip:"open the session after sending",editLabel:"edit this passage",messagePlaceholder:"a message to send with it (optional)",lines:"lines {a}–{b}",target:"to",newSession:"a new session…",send:"Send",sendJump:"Jump to Session",sentTo:"passage sent to {name}",sendFailed:"the session did not accept the message",commit:"Commit",committing:"committing…",committed:"committed {sha} — the node re-versions from it",noChange:"nothing changed, so nothing was committed",editNote:"commits to this checkout as a real change to spec.md"},session:{menuLabel:"session actions — rename, attach, lock on graph, close",opsTitle:"nodes this session is changing — ctrl-click opens in a new tab · right-click for session actions",lockTitle:"ctrl-click opens in a new tab · right-click for session actions, including lock on graph",newSession:"New Session",newSessionTitle:"New Session",searchTitle:"Search",resizeList:"Resize sessions list",issuesOff:"The issues workflow is off.",issuesEmpty:"No issues yet.",issuesNoMatch:"No issues match this view.",issuesLoading:"loading issues…",issuesFocusNode:"focus this node on the graph",issuesReplies:({n:e})=>`${e} ${e===1?"reply":"replies"}`,issuesOpenOnStore:"Open on {store} ↗",issuesThreadsTitle:"threads",issuesStoreAll:"all",issuesStoreLabel:"store",issuesNew:"New",issuesNewTitle:"New issue",issuesTitleLabel:"title",issuesBodyLabel:"description",issuesWrite:"Write",issuesPreview:"Preview",issuesPreviewEmpty:"nothing to preview yet",issuesNodesHint:"write [[id]] to link a node",issuesCancel:"Cancel",issuesSend:"Send",issuesPost:"Create",issuesSending:"sending…",issuesPostFailed:"post failed",issuesClosing:"closing…",issuesCloseIssue:"Close issue",issuesCloseIssueTitle:"close this issue — the work is finished or the forge issue should be closed",issuesActing:"working…",issuesPromote:"Promote",issuesPromoteTitle:"promote this local issue to the forge — create the real forge issue first, then close the local thread with the permalink",issuesReplyPlaceholder:"reply…",issuesConcernPlaceholder:"concern — one line",issuesBodyPlaceholder:"details (optional)",inputPlaceholder:"describe the work · @ session · [[ spec · / command · ⏎ to launch · ⇧⏎ newline",menuCommands:"commands",menuPresets:"command presets",menuSpecNodes:"spec nodes",menuSessions:"sessions",menuHint:"↑↓ pick · ⏎ insert",hint:{before:"type ",mid:" to reference a spec · ",after:" to apply a command preset"},harnessLabel:"agent launcher",launcherLabel:"launcher",launcherTip:"edit spexcode.json / spexcode.local.json to change launchers",tabTerminal:"terminal",tabConversation:"conversation",tabDiff:"diff",resumeInputTitle:"resume this session?",resumeInputMessage:"This session is waiting for a resume. Confirm before sending the first key.",resumeInputConfirm:"resume and send key",surfaceSwitcher:"session surface",diffLoading:"loading diff…",diffEmpty:"no branch changes",diffNoCommits:"this branch has no commits of its own yet",diffGroupCommitted:"committed ({n})",diffGroupUncommitted:"not committed ({n})",diffUncommitted:"uncommitted",diffUnavailable:"branch diff unavailable — this session no longer has a diffable branch",diffMerged:"merged into {base}",diffCommit:"open commit {commit}",diffFailed:"diff unavailable: {message}",diffScope:"branch diff",diffClose:"leave the branch diff, back to the session",diffComment:"comment on lines",diffCommentPlaceholder:"leave a review comment",diffCommentSave:"save comment",diffEdit:"edit comment",diffRetract:"retract comment",diffSend:"send comments to agent",diffMode:"diff mode",diffSplit:"split",diffUnified:"unified",diffWrap:"wrap lines",diffFiles:"changed files",diffPrevious:"previous change",diffNext:"next change",diffSent:"sent {n} comment(s)",diffUnsent:"{n} unsent comment(s)",tabEval:"eval",tabEvalTitle:"open this session's evaluation on the Evals page",toolbarLabel:"session terminal toolbar",conversationToolbarLabel:"session conversation toolbar",switchToConversation:"switch to conversation",switchToTerminal:"switch to terminal",executionRunning:"running",filesTitle:"session files",filesEmptyTitle:"no posted session files",filesListLabel:"posted session files",previewFile:"preview file",downloadFile:"download file",fileDownloadFailed:"file download failed (HTTP {status})",filePreviewFailed:"file preview failed (HTTP {status})",fileCopyUnavailable:"copying file paths is unavailable in this browser",addResourceTab:"open a posted file or web service",resourceMenuLabel:"posted files and web services",resourceMenuEmpty:"all posted resources are already open",refreshResourceTab:"refresh {name}",unreadResources:"{n} new posted resource(s)",closeResourceTab:"close {name}",surfaceLabel:"current session surface",toolbarToolsLabel:"session tools",evalLoading:"loading this session's eval summary",evalDormant:"this session's eval summary is not computed — open Eval to measure it",evalDormantLast:"last known — this retained session is not being recomputed",evalDormantKnown:({summary:e})=>`last known, not being recomputed — ${e}`,evalUnavailable:"this session's eval summary is unavailable",evalUpdating:({summary:e})=>`updating this session's eval summary — last known: ${e}`,evalDisconnected:({summary:e})=>e?`graph stream disconnected — last known: ${e}`:"graph stream disconnected — eval summary has no last-known value",evalFailedKnown:({summary:e})=>`eval summary update failed — last known: ${e}`,evalPass:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and passing`,evalFail:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and failing`,evalReview:({n:e})=>`${e} measured scenario${e===1?"":"s"} stale or unscored and needing review`,evalBlind:({n:e})=>`${e} declared scenario${e===1?"":"s"} not measured`,evalUnknown:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:s})=>`open this session's Evals page — ${e} fresh pass, ${t} fresh fail, ${n} need review, ${r} unmeasured, ${s} unknown`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"open Command Box for an atomic prompt or graph command",commandClose:"close Command Box",commandPlaceholder:"Send an atomic prompt or run a graph command",commandSend:"send from Command Box",relaunch:"relaunch",relaunchTitle:"relaunch and resume this session",offlineReadOnly:"⏻ agent offline · read only",archivedReadOnly:"▤ archived · read only",relaunchResume:"⏵ relaunch & resume",merges:({n:e})=>`merged ×${e}`,mergesTitle:"times merged to main",offlineMsg:"⏻ offline — no live process for this worktree.",offlineSubBefore:"the worktree and its session ",offlineSubAfter:" are intact. relaunch to resume the same conversation.",archiveTitle:"Archive",archiveCount:({n:e})=>`${e} closed session${e===1?"":"s"}`,archiveViewAll:({n:e})=>`View all ${e}`,archiveSearch:"Search archive",archiveEmpty:"no matching closed sessions",archiveToday:"Today",archiveYesterday:"Yesterday",archiveUnknownDate:"Time unknown",shelfRestore:"restore",rootDrop:"move to top level",outcomeWorking:"working...",outcomeSending:"sending...",outcomeAccepted:"accepted — handing it to the agent",outcomeDelivered:"delivered",outcomeQueued:"accepted, waiting for the terminal transport — retry is safe",outcomeUnconfirmed:"delivery not confirmed — retry is safe",deliveryFailed:({status:e})=>`not delivered (HTTP ${e})`,msgError:"⚠ not delivered — retry",launchSend:"launch this session",attachTitle:"attach a file (or paste / drop) — uploaded to the session machine, its /tmp path inserted",attachError:"⚠ upload failed",attachQueued:"queued",attachDone:"attached",attachCancelled:"cancelled",attachRetry:"retry upload",attachCancel:"cancel upload",attachDismiss:"dismiss attachment status",codeSelectionAttachments:"code selection attachments",removeCodeSelection:"remove code selection",cmd:{evalDesc:"open this session's Evals page — affected scenarios and measured evidence",stopTitle:"stop this session (kill the agent, keep the worktree — resumable)",stopDesc:"stop — kill the agent + tmux but KEEP the worktree, so it can be resumed",closeTitle:"close this session (removes the worktree)",closeDesc:"close — remove the worktree + branch, discarding the work (= row menu → Close)"}},settings:{title:"Settings",close:"close (esc)",secLanguage:"Language",uiLanguage:"Interface language",secTheme:"Theme",secTerminal:"Terminal",defaultSessionSurface:"Default session view",terminalFontSize:"Font size",secShortcuts:"Shortcuts",bindPrompt:"Press a key…",shortcutsHint:"Click a key to rebind it. Nav & chord keys are fixed. (A game controller binds to actions, not keys — rebinding here never touches the pad.)",reset:"Reset to defaults"},search:{title:"search nodes & sessions",placeholder:"search nodes, sessions…",empty:"no match",hint:"↑↓ pick · ⏎ jump · esc close",kind:{spec:"node",session:"session"}},mobile:{worked:"worked",more:"more",specsTab:"specs",sessionsTab:"sessions",evalsTab:"evals",issuesTab:"issues",childrenTab:({n:e})=>`children ${e}`,liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,noSessions:"no live sessions — tap + above to start one",newSession:"new session",newPlaceholder:"describe the task for a new agent…",launch:"launch",launching:"launching…",launchFailed:"launch failed — the backend refused or is unreachable",back:"back",noEvents:"nothing recorded yet — status changes and messages will land here",you:"you",inputPlaceholder:"message the agent…",send:"send",stop:"stop",stopFailed:"not stopped — the agent did not take the interrupt",copy:"copy",copied:"copied",copyFailed:"copy failed — selection kept",sendFailed:"not delivered — the agent may be offline",offlineHint:"agent offline — messages cannot be delivered until it is relaunched"}},Np={common:{new:"新建",none:"无",idle:"空闲",sessions:"会话",session:"会话",loading:"加载中…",noVersions:"尚无版本——此规格即最新的事实依据。",cancel:"取消",save:"保存",close:"关闭"},status:{working:"工作中",idle:"空闲",offline:"离线",starting:"启动中",review:"待审查",done:"已完成","close-pending":"待关闭",parked:"驻留",error:"错误",asking:"待答",queued:"排队中",unknown:"未知",corrupt:"损坏",retired:"已退役",merged:"已合并",active:"进行中",drift:"偏移",pending:"待定"},sessionZone:{need:"待你处理",run:"自运行",offline:"离线",archive:"归档",showHistory:({n:e})=>`展开 ${e} 个休眠会话(历史仅收纳,绝不删除)`,hideHistory:({n:e})=>`收起这 ${e} 个休眠会话`,showArchive:({n:e})=>`展开 ${e} 个已归档会话`,hideArchive:({n:e})=>`收起这 ${e} 个已归档会话`},specView:{missing:"没有这个节点:{id}"},fileView:{none:"未选择文件"},fileTree:{aria:"项目文件树",specs:"规格",files:"文件",graph:"规格图谱",collapseAll:"收起所有规格文件夹"},diskTree:{loading:"正在加载…"},dockModes:{collapse:"收起侧边栏",expand:"展开侧边栏",aria:"停靠栏模式",explorer:"资源管理器",sessions:"会话",searchNodes:"搜索节点",searchSessions:"搜索会话",collapseFolders:"收起所有文件夹"},dockSessions:{new:"新建会话",archive:"已归档会话",rowTip:"打开 · ctrl+点击在新标签打开 · alt+点击把图锁定到该会话"},sessionPicker:{label:"选择会话",filter:"筛选会话",empty:"没有匹配的会话",newSession:"新建会话…",overlaySessions:"正在修改此节点的会话"},contextDock:{title:"上下文",scenarios:"场景",issues:"议题",open:"显示上下文栏",close:"隐藏上下文栏",loading:"正在加载场景…",loadingIssues:"正在加载议题…",noScenarios:"没有声明场景",noIssues:"没有未关闭的议题",states:{pass:"通过",fail:"失败",stalePass:"旧通过",staleFail:"旧失败",missing:"未测量",empty:"未测量"}},empty:{title:"当前没有打开的文档",hint:"你关掉了最后一个文档。选一个打开即可——什么都没丢,只是现在标签栏是空的。",search:"搜索节点",explorer:"在资源管理器里浏览"},tabs:{aria:"已打开的文档",close:"关闭标签",graph:"图",spec:"规格",sessions:"会话",evals:"评测",issues:"议题",settings:"设置",issueNew:"新建议题",openInNewTab:"在新标签打开",menuLabel:"标签操作",menuClose:"关闭",menuCloseOthers:"关闭其他",menuSplit:"送入分屏",surfaceTerminal:"终端",surfaceConversation:"对话",surfaceDiff:"差异"},documentActions:{aria:"文档操作"},place:{graph:"节点图",sessions:"会话",evals:"评测",issues:"议题",settings:"设置",empty:"工作区",projects:"项目"},nav:{railLabel:"主导航",graph:"规格节点图",explorer:"资源管理器",spec:"规格",sessions:"会话面板",spec:"规格",evals:"Evals",issues:"议题",settings:"设置",projectChip:"项目:{name} — 切换项目",projectChipLogin:"项目:{name} — 登录管理项目",projectOnline:"在线",projectOffline:"离线",allProjects:"全部项目"},projects:{title:"项目",count:"{n} 个项目",pagination:"项目分页",previousPage:"上一页项目",nextPage:"下一页项目",pageOf:"第 {page} / {pages} 页",current:"当前",empty:"还没有项目 — 按仓库根路径添加一个,或在仓库里运行 `spex serve`,它的 backend 会自己注册到这里。",absent:"此部署只服务单个项目 — 这里没有多项目目录。",open:"打开",add:"添加项目",addTitle:"添加项目",addPlaceholder:"/仓库/根/绝对路径",addSubmit:"添加",addBusy:"添加中…",browseParent:"上级目录",browseHome:"主目录",browseGo:"前往",browseNew:"新建项目",browseLoading:"加载中…",browseCreating:"创建中…",folderList:"文件夹",folderEmpty:"没有子目录",folderMissing:"文件夹不存在",initGit:"初始化 Git 仓库",initSpex:"初始化 SpexCode",spexInitialized:"已初始化 SpexCode",harnessTargets:"harness 目标",alreadyAdded:"已在项目目录中",configTitle:"编辑 spexcode.json",configEditor:"spexcode.json 内容",configLoading:"加载中…",configSave:"保存",configSaving:"保存中…",configReload:"重新加载",configSaved:"已保存",configInvalid:"顶层内容必须是有效的 JSON 对象",gatewayIcon:"gateway 图标",projectIcon:"项目图标",editGatewayIcon:"编辑 gateway 图标",editProjectIcon:"编辑项目图标",gatewaySettings:"gateway 设置",iconSearch:"搜索图标",iconSources:"图标来源",iconSourceFeatured:"精选",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"品牌",iconSearching:"搜索中…",iconSearchEmpty:"没有匹配的图标",iconSearchFailed:"图标搜索暂不可用",setupTitle:"项目操作 — init / doctor",harnessLabel:"harness:",harnessRequired:"至少选择一个 harness 目标 — init 不会替你猜",init:"init",doctor:"doctor",running:"运行中…",start:"启动",startBusy:"启动中…",opOk:"{op}:exit 0 — 成功",opFail:"{op}:exit {code} — 失败",actionFailed:"gateway 拒绝了该请求",removeRegistration:"移除项目登记",removeRegistrationHint:"只移除 SpexCode 目录,不删除本地源码",removeTitle:"移除项目登记?",removeWarning:"这是一个需要停下来确认的操作。项目会从 SpexCode 项目目录中移除。",removeKeepsFiles:"本地项目目录、Git 历史和源码不会被删除。磁盘删除不属于这个操作。",removeStopsFirst:"在线 backend 或活动会话会阻止移除;项目密码会在成功后清除。",removeUnderstand:"我确认这里只移除登记,不删除本地目录。",removeTypePrompt:"请输入下面的确认短语:",removeTypeLabel:"移除确认短语",removeConfirm:"确认移除登记",removeBusy:"移除中…",passwordTitle:"项目密码",passwordPlaceholder:"新的项目密码",passwordSet:"设置",passwordClear:"清除",adminPassword:"管理员密码",adminPasswordPlaceholder:"新的管理员密码",adminUngated:"尚未设置管理员密码 — 管理仅限本机。设置后即可远程登录;设置动作本身会保持你的登录态。",health:{probing:"检测中…",running:"运行中",unreachable:"不可达",stopped:"backend 已停止 — 可在此启动"}},credential:{adminTitle:"管理员登录",adminBody:"这是一个私有的 agent 工作台。输入管理员密码以管理项目。",projectTitle:"解锁 {name}",projectBody:"该项目受密码保护。输入访问密码以继续。",lockedTitle:"管理已锁定",lockedBody:"尚未配置管理员密码,远程管理已锁定。请在运行 gateway 的机器上设置密码,然后回到这里登录。",passwordLabel:"密码",wrong:"密码不正确 — 请重试。",failed:"登录失败 — gateway 未接受请求。",checking:"校验中…",unlock:"解锁"},statusBar:{hidden:"已隐藏 —— 从状态栏恢复",restore:"恢复隐藏的状态项",nodes:({n:e})=>`${e} 个规格节点 —— 已合并 · 进行中 · 漂移 · 待建。打开节点图`,evals:({pass:e,fail:t,stalePass:n,staleFail:r,empty:s})=>`评测场景:${e} 最新通过,${t} 最新失败,${n} 过期通过,${r} 过期失败,${s} 未测量`,openEvals:"打开 Evals 看板",issues:({n:e})=>`${e} 个未关闭议题 —— 打开议题看板`,sessions:"按 launcher 分组的会话 —— 打开会话面板",launcher:({name:e})=>`${e}:运行中 / 等你 / 其他 —— 打开会话面板`,launcherSummary:({n:e})=>`${e} 个 launcher:运行中 / 等你 / 其他 —— 打开会话面板`},backend:{offline:"后端不可达 —— 当前显示的数据可能已陈旧",retry:"重试",stale:"陈旧"},hud:{helpTitle:"帮助 — 按键与图例",loading:"正在从 git 加载规格…",loadError:"无法连接后端 —— 看板加载失败。",retry:"重试"},viewError:{title:"这个视图崩溃了。",retry:"重试"},evalsFeed:{title:"评测",kind:{video:"视频",image:"图片",all:"全部"},summary:({n:e})=>`${e} 条当前`,datasetEmpty:"暂无评测。",noMatches:"当前视图没有匹配的评测。",annotate:"打开并标注",inSession:"由本会话测得",okdTip:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,okChip:({n:e})=>`${e} 已签核`,okChipTitle:"显示被默认隐藏的已签核场景",filedBy:({by:e})=>`由 ${e} 提交`,filedAt:({at:e})=>`${e}前提交`,sessionTag:"会话",freshnessDeferred:"新鲜度仍在计算;此行可排序但尚未评分"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"全部",search:"搜索",searchIssues:"搜索 issues",searchEvals:"搜索 evals",rowMenu:"行操作",copyAddress:"复制地址",clearSearch:"清除搜索",showing:({shown:e,total:t})=>`显示 ${e} / ${t} 条`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"当前",needsReview:"待人工复核",reviewed:"已人工复核",filters:"筛选",activeFilters:({n:e})=>`${e} 个已启用筛选`,facetStore:"存储",facetVerdict:"判定",facetFreshness:"新鲜度",facetKind:"证据",facetAuthor:"发起者",facetLabel:"标签",facetNode:"规格节点",facetFiler:"提交者",facetState:"状态",facetReview:"人工复核",facetSession:"来源会话",sessionPresent:"仍在",sessionMissing:"已不在",openedBy:({by:e})=>`由 ${e} 发起`,openedAt:({at:e})=>`${e}前发起`,verdict:{pass:"通过",fail:"未通过",unmeasured:"未测量",deferred:"等待新鲜度",unscored:"未评分"},freshness:{fresh:"最新",stale:"过期"},pagination:"分页",previous:"上一页",next:"下一页",prevPage:"上一页",nextPage:"下一页",page:({n:e})=>`第 ${e} 页`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`找不到 ${e} · ${t} 的评测`,evalUnmeasured:"该场景尚未测量",scopeFallback:"该 session 的工作区已不存在,下面是主干上的读数",issueNotFound:({id:e})=>`找不到 issue ${e}`,backToEvals:"← 全部评测",backToIssues:"← 全部 issues"},detail:{sideReading:"结果",sideFiler:"提交者",sideOk:"人工签核",sideStore:"存储",sideLabels:"标签",sideOriginator:"发起者",sideNodes:"规格节点",backToEvals:"返回评测列表",backToIssues:"返回 issues 列表",sideQueue:"继续查看",queuePrev:"前面",queueNext:"接下来",sideIssue:"议题",sideNode:"规格节点"},annotator:{title:"标注器",play:"播放",pause:"暂停",fullscreen:"全屏",exitFullscreen:"退出全屏",capturing:"正在截取画面…",failed:"失败 — 后端在跑吗?",comments:({n:e})=>e?`评审轨道(${e})`:"评审轨道",abOlder:"更早的 eval(‹ 靠近 A / 复现出的 bug)",abNewer:"更新的 eval(靠近 B / 验证过的修复 ›)",abLatest:"最新",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`更早的结果(${e})`,okd:"已签核",okBy:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,menuReview:"评审命令",cmd:{okDesc:"签核这条结果 — 你已复核并认可其判定;只绑定当前最新结果,单调(无撤销)"}},thread:{anchorNow:"锚定",anchorTitle:"把这条评论锚定到当前帧",mentionActor:"插入 @ —— 提及会话",mentionNode:"插入 [[ —— 引用规格节点",reviewCommands:"插入 / —— 评审命令",resolved:"已解决",resolvedBy:"由 {by} 解决",openRemark:"未解决",resolve:"解决",resolveTitle:"解决此评注 —— 第二人的判定(单调:不可撤销解决)",retract:"撤回",retractTitle:"撤回你自己未解决的评注 —— 从线程中移除",anchorDegraded:"该步骤已不在当前测量中——此 m:ss 为原始冻结值,无法跳转",originatorIssue:"打开发起此 issue 的会话:{by}",originatorEval:"打开记录此评测的会话:{by}"},sessionEval:{btn:"评测",btnTitle:"在 Evals 页打开此会话已测得的评测证据",scopeDoor:"返回会话终端",none:"此会话暂无评测",unavailable:"会话模型成功加载前无法显示评测。",loadFailed:({reason:e})=>`会话评测加载失败 — ${e}`,export:"导出",exportTitle:"导出本次评测为自包含的 HTML 报告",empty:"该会话尚无测量。",unmeasured:"未测量",unknownCoverage:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`},time:{justNow:"刚刚",minutes:({n:e})=>`${e} 分钟`,hours:({n:e})=>`${e} 小时`,days:({n:e})=>`${e} 天`,weeks:({n:e})=>`${e} 周`},legend:{title:"帮助 · 按键与图例",close:"关闭(esc)",secBoard:"面板按键",secPopup:"节点信息弹窗",secStatus:"状态点",secOp:"叠加操作",secOpSub:"(工作树的待定改动)",secBadges:"徽标",secRing:"节点边框",graph:{move:"在聚焦列内上/下移动(同级节点)",parent:"前往父节点",child:"前往最近的子节点",zoom:"放大 / 缩小 · 重置为概览",info:"打开节点信息弹窗(或双击节点)",search:"跨节点、会话、议题与场景搜索并跳转",overlayCycle:"在工作树正在修改的节点间循环(⇧ 反向)",fresh:"在聚焦节点上开启一个全新会话",evals:"打开 evals 页(项目当前的实测损失)",newChild:"在聚焦节点下新建子节点(连击)",del:"删除聚焦节点(连击)",settings:"打开设置(语言…)",help:"打开此帮助"},shell:{newSession:"打开新会话",evals:"打开评测页面",search:"搜索会话",sessionPrevious:"选择上一个会话",sessionNext:"选择下一个会话",sessionExpand:"展开当前会话",sessionCollapse:"折叠当前会话",dockToggle:"切换资源管理器停靠栏",dockMode:"切换资源管理器 / 会话停靠模式",contextToggle:"切换上下文停靠栏",tabClose:"关闭当前页签",tabNext:"选择下一个页签",tabPrevious:"选择上一个页签",tabSplit:"将当前页签送入分屏",commandBox:"开关会话 Command Box"},explorer:{menu:"打开当前资源管理器行的右键菜单",openInNewTab:"在新标签打开当前行"},popup:{switch:"切换页签(规格 / 历史)",scroll:"滚动 · 展开下一版本",lens:"穿透弹窗在树上移动——弹窗跟随焦点",enter:"无操作——弹窗是纯阅读界面",esc:"关闭弹窗"},statusRows:{merged:"规格与代码一致",active:"进行中——状态点会闪动",drift:"受管代码领先于其规格",pending:"尚无已提交的版本"},opRows:{added:"新增",edited:"编辑",deleted:"删除",moved:"移动"},badgeDrift:"偏移:代码领先于规格 N 次提交",badgeVer:"版本:该节点 spec.md 的 N 次内容提交",ringDashed:"虚线 = 未提交的叠加",ringSolid:"实线 = 已提交;边框颜色 = 作者会话",ringGhost:"半透明“幽灵” = 尚未进入 main 的新增节点"},sessionWindow:{badgeLabel:"此图上的会话",menuLabel:"会话操作",rowTitle:"单击将图锁定到此会话 · 双击打开它",lockedTitle:"图已锁定到此会话——再次单击解除",emptyBefore:"没有活动的工作树——按 ",emptyAfter:" 开始一个",lock:"锁定到图谱",rename:"重命名",attach:"在终端中打开…",select:"多选…",detach:"解除父级关系",resume:"恢复并重新启动",quarantine:"隔离记录",quarantineTitle:"隔离不可读记录",quarantineConfirm:"隔离",quarantineAdapter:"适配器",quarantineThread:"原生线程",quarantineTmux:"tmux 会话",quarantineWorktree:"工作树路径",quarantineBranch:"分支",quarantineRestore:"恢复已隔离记录",close:"关闭",closeTitle:"关闭“{name}”?",closeConfirm:"这将关闭会话并删除其工作树。任何未提交的更改都会丢失。",renameTitle:"重命名“{name}”",renamePlaceholder:"显示名称(留空以重置)",attachTitle:"接入“{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"复制",attachCopied:"已复制"},sessionSelect:{selected:({n:e})=>`已选择 ${e} 个`,close:"关闭所选会话",closeTitle:({n:e})=>`关闭所选的 ${e} 个会话?`,closeConfirm:"这将关闭所选会话并删除其工作树。任何未提交的更改都会丢失。"},lockHint:{cycleBefore:"按 ",cycleNext:" 下一个",cyclePrev:" 上一个",cycleAfter:({n:e})=>`,浏览此会话更改的 ${e} 个节点`,singleChanged:"此会话更改了 1 个节点",empty:"此会话没有待处理的规格更改",release:"解除",releaseTitle:"解除锁定(或再次单击该会话)"},nodeView:{carries:"携带",paneSpec:"规格",paneHistory:"历史",paneIssues:"issue",paneEval:"评测",paneEdit:"改动",filterIssues:"筛选 issue…",filterScenarios:"筛选场景…",filterNone:"没有匹配的条目。",noEdit:"暂无进行中的改动 —— 此节点没有正在编辑的会话。",editCommitted:"已提交",editDirty:"未提交",pendingEdits:({n:e})=>`${e} 个会话正在编辑此节点`,openIssues:({n:e})=>`${e} 个待办`,closedIssues:({n:e})=>`${e} 个已关闭`,noIssues:"尚无关联到此节点的 issue。",hint:"←→/hl/tab 切换 · j/k/↑↓ 滚动 · ⇧+方向 树上移动 · esc 返回",statusLabel:"状态:",versionLabel:"版本:",lastEditedBy:"最后编辑者:",governs:"管辖",proseNode:"无管辖文件 · 纯文档节点",rawTitle:"原始来源",rawOwner:"人工",rawNote:"极少改动 · 需要审批",expandedTitle:"展开规格",expandedOwner:"智能体",expandedNote:"经常更新版本 · 须与原始来源一致",filesChanged:({n:e})=>`改动 ${e} 个文件`,loadingChange:"正在加载差异…",noChange:"尚无记录的改动——此规格即最新的事实依据。",diffLabel:"规格行差异",loadingHistory:"正在加载历史…",eval:{noScenarios:"尚未声明场景 —— 此节点没有可测量的 eval.md。",noReadings:"尚无测量 —— 运行 `spex eval add` 归档一次。已声明的场景:",staleAxes:({axes:e})=>`已过期:自本次读取以来 ${e} 已变动`,staleLabel:"已过期:",staleReadoutTitle:"这条读取已落后——列出自它以来变动的轴;对于 code 轴,还显示是哪些受管文件漂移了、以及落后了几个提交(+N)",danglingTitle:"该场景已被重命名或删除——其评注无读取可依附,但仍可通过 ref 解决",danglingGone:"场景已失",pass:"✓ 通过",fail:"✗ 未通过",note:"≈ 备注",legacy:"旧版",expected:"预期:",noteLabel:"备注:",loadingTranscript:"正在加载文本记录…",loadingData:"正在加载数据…",data:"结构化数据(JSON)",dataInvalid:"结构化数据 —— 无效 JSON",miss:"原始文件缺失 —— 证据已从缓存中清除。",noImage:"无证据 —— 代理未捕获即作出判定。",shotAlt:({scenario:e})=>`${e} 的捕获证据`,openDetail:"打开该场景的 eval 详情页",passCount:({n:e})=>`${e} 个场景最新且通过`,failCount:({n:e})=>`${e} 个场景最新且未通过`}},stats:{statusTitle:({n:e,status:t})=>`${e} 个${t} —— 点击逐个走查`,issueTitle:({n:e})=>`链接到树上的不同未关闭议题共 ${e} 个 —— 点击逐个走查承载它们的节点`,scorePass:({n:e})=>`${e} 个场景测量为最新且通过 —— 点击逐个走查承载它们的节点`,scoreFail:({n:e})=>`${e} 个场景测量为最新且未通过 —— 点击逐个走查承载它们的节点`,scoreStalePass:({n:e})=>`${e} 个场景为过期通过(最近一次通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreStaleFail:({n:e})=>`${e} 个场景为过期未通过(最近一次未通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreEmpty:({n:e})=>`${e} 个场景未测量或未评分(盲点)—— 点击逐个走查承载它们的节点`},score:{pass:"当前通过 —— 已测量、最新且通过",fail:"当前未通过 —— 已测量、最新且未通过",stalePass:"已过期 —— 上次测量为通过,现已过时",staleFail:"已过期 —— 上次测量为未通过,现已过时",empty:"暂无当前评分 —— 从未测量,或无通过/未通过判定",missing:"尚未测量 —— 该场景还没有任何读数",count:({satisfied:e,total:t,outstanding:n})=>`${t} 个场景中有 ${e} 个已满足(最新且通过)`+(n?` · ${n} 个待处理 —— 未通过、已过期或未测量`:""),openList:"打开该节点的 Evals 过滤列表"},specNode:{liveEditors:({n:e})=>`${e} 个实时编辑者`,more:({n:e})=>`还有 ${e} 个`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`领先 ${e}`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?"(未提交)":""}`,openIssues:({n:e})=>`${e} 个待办 issue——打开节点信息查看`,expandable:({n:e})=>`${e} 个子节点——聚焦展开`},explorerMenu:{nodeLabel:"节点操作",fileLabel:"文件操作",revealOnGraph:"在图中定位",revealOwner:"打开所属节点",copyLink:"复制链接",copyPath:"复制路径",copyNodeId:"复制节点 id",copied:"已复制",failed:"复制失败"},nodeMenu:{menuLabel:"节点操作",info:"查看详情",copyUrl:"复制节点 URL",copied:"已复制",failed:"复制失败",newSession:"新建会话",newChild:"新建子节点…",del:"删除节点…"},proseActions:{groupLabel:"选中的正文 —— 发给会话,或就地编辑",nodeGroupLabel:"当前节点操作",nodeSend:"把当前节点发给会话",nodeCopy:"复制节点链接",nodeCopied:"节点链接已复制",act:{send:"发到会话",editSend:"改写并发送",explain:"解释",manual:"手动编辑"},prompt:{edit:"改写这段 spec 正文,让它说该说的话。改完连同它的节点一起提交到你的分支。",polish:"润色这段正文的措辞,意思一个字都不要变。",explain:"解释这段正文:它在说什么、为什么在这里。只在会话里回答,不要改 spec。"},sendLabel:"把这段正文发给一个会话",presets:"插入 / —— 预置意图",addressTip:"发给谁 —— 一个在线会话,或新建一个",newWith:"新建 · {launcher}",jumpTip:"发送后打开这个会话",editLabel:"编辑这段正文",messagePlaceholder:"一起发过去的话(可以不写)",lines:"第 {a}–{b} 行",target:"发给",newSession:"新建会话…",send:"发送",sendJump:"发送并跳转",sentTo:"正文已发给 {name}",sendFailed:"会话没有接收这条消息",commit:"提交",committing:"提交中…",committed:"已提交 {sha} —— 节点版本随之重算",noChange:"内容没变,所以什么都没提交",editNote:"会在当前 checkout 上真的提交一次 spec.md 改动"},session:{menuLabel:"会话操作 —— 重命名、attach、锁定到图谱、关闭",opsTitle:"此会话正在改动的节点 —— ctrl+点击在新标签打开 · 右键打开会话操作",lockTitle:"ctrl+点击在新标签打开 · 右键打开会话操作,包括锁定到图谱",newSession:"新建会话",newSessionTitle:"新建会话",searchTitle:"搜索",resizeList:"调整会话列表宽度",issuesOff:"issues 工作流已关闭。",issuesEmpty:"暂无 issue。",issuesNoMatch:"当前视图没有匹配的 issue。",issuesLoading:"正在加载 issues……",issuesFocusNode:"在看板上聚焦此节点",issuesReplies:({n:e})=>`${e} 条回复`,issuesOpenOnStore:"在 {store} 上打开 ↗",issuesThreadsTitle:"讨论帖",issuesStoreAll:"全部",issuesStoreLabel:"来源",issuesNew:"新建",issuesNewTitle:"新建 issue",issuesTitleLabel:"标题",issuesBodyLabel:"正文",issuesWrite:"编辑",issuesPreview:"预览",issuesPreviewEmpty:"还没有可预览的内容",issuesNodesHint:"在正文里写 [[id]] 即可关联",issuesCancel:"取消",issuesSend:"发送",issuesPost:"创建",issuesSending:"发送中……",issuesPostFailed:"发布失败",issuesClosing:"关闭中……",issuesCloseIssue:"关闭 issue",issuesCloseIssueTitle:"关闭此 issue —— 工作已完成,或真实 forge issue 应被关闭",issuesActing:"处理中……",issuesPromote:"升级",issuesPromoteTitle:"升级到 forge —— 先创建真实 forge issue,再用永久链接关闭本地线程",issuesReplyPlaceholder:"回复……",issuesConcernPlaceholder:"关切 —— 一行概述",issuesBodyPlaceholder:"详情(可选)",inputPlaceholder:"描述工作 · @ 会话 · [[ 规格 · / 命令 · ⏎ 启动 · ⇧⏎ 换行",menuCommands:"命令",menuPresets:"命令预设",menuSpecNodes:"规格节点",menuSessions:"会话",menuHint:"↑↓ 选择 · ⏎ 插入",hint:{before:"输入 ",mid:" 以引用规格 · ",after:" 以套用命令预设"},harnessLabel:"启动智能体",launcherLabel:"启动器",launcherTip:"修改 spexcode.json / spexcode.local.json 来配置启动器",tabTerminal:"终端",tabConversation:"对话",tabDiff:"差异",resumeInputTitle:"恢复此会话?",resumeInputMessage:"此会话正在等待恢复。发送第一个按键前请先确认。",resumeInputConfirm:"恢复并发送按键",surfaceSwitcher:"会话视图",diffLoading:"正在加载差异……",diffEmpty:"没有分支改动",diffNoCommits:"这个分支还没有自己的提交",diffGroupCommitted:"已提交({n})",diffGroupUncommitted:"未提交({n})",diffUncommitted:"未提交",diffUnavailable:"分支 diff 不可用——该会话已没有可对比的分支",diffMerged:"已合并到 {base}",diffCommit:"打开提交 {commit}",diffFailed:"差异不可用:{message}",diffScope:"分支差异",diffClose:"离开分支差异,回到会话",diffComment:"评论这些行",diffCommentPlaceholder:"留下评审评论",diffCommentSave:"保存评论",diffEdit:"编辑评论",diffRetract:"撤回评论",diffSend:"发送评论给智能体",diffMode:"差异模式",diffSplit:"并排",diffUnified:"统一",diffWrap:"折行",diffFiles:"变更文件",diffPrevious:"上一个改动",diffNext:"下一个改动",diffSent:"已发送 {n} 条评论",diffUnsent:"{n} 条评论未发送",tabEval:"评测",tabEvalTitle:"打开此会话在 Evals 页的评测",toolbarLabel:"会话终端工具栏",conversationToolbarLabel:"会话对话工具栏",switchToConversation:"切换到对话",switchToTerminal:"切换到终端",executionRunning:"执行中",filesTitle:"会话文件",filesEmptyTitle:"尚未发布会话文件",filesListLabel:"已发布的会话文件",previewFile:"预览文件",downloadFile:"下载文件",fileDownloadFailed:"文件下载失败(HTTP {status})",filePreviewFailed:"文件预览失败(HTTP {status})",fileCopyUnavailable:"此浏览器无法复制文件路径",addResourceTab:"打开已发布的文件或网页服务",resourceMenuLabel:"已发布的文件和网页服务",resourceMenuEmpty:"所有已发布资源均已打开",refreshResourceTab:"刷新 {name}",unreadResources:"有 {n} 个新的已发布资源",closeResourceTab:"关闭 {name}",surfaceLabel:"当前会话界面",toolbarToolsLabel:"会话工具",evalLoading:"正在载入此会话的评测概况",evalDormant:"此会话的评测概况尚未计算 — 打开 Eval 即可测量",evalDormantLast:"上次已知 — 此留存会话不再重新计算",evalDormantKnown:({summary:e})=>`上次已知,不再重新计算 — ${e}`,evalUnavailable:"此会话的评测概况不可用",evalUpdating:({summary:e})=>`正在更新此会话的评测概况 — 上次已知:${e}`,evalDisconnected:({summary:e})=>e?`图数据流已断开 — 上次已知:${e}`:"图数据流已断开 — 尚无评测概况",evalFailedKnown:({summary:e})=>`评测概况更新失败 — 上次已知:${e}`,evalPass:({n:e})=>`${e} 个场景为新鲜通过`,evalFail:({n:e})=>`${e} 个场景为新鲜失败`,evalReview:({n:e})=>`${e} 个已评测场景已过期或未评分,需人工复核`,evalBlind:({n:e})=>`${e} 个已声明场景尚未评测`,evalUnknown:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:s})=>`打开此会话的 Evals 页 — 新鲜通过 ${e},新鲜失败 ${t},待人工复核 ${n},未评测 ${r},覆盖未知 ${s}`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"打开 Command Box,发送完整指令或执行面板命令",commandClose:"关闭 Command Box",commandPlaceholder:"发送完整指令或执行面板命令",commandSend:"从 Command Box 发送",relaunch:"重新启动",relaunchTitle:"重新启动并恢复此会话",offlineReadOnly:"⏻ agent 已离线 · 内容只读",archivedReadOnly:"▤ 已归档 · 内容只读",relaunchResume:"⏵ 重新启动并恢复",merges:({n:e})=>`已合并 ×${e}`,mergesTitle:"合并到 main 的次数",offlineMsg:"⏻ 离线——此工作树没有活动进程。",offlineSubBefore:"工作树及其会话 ",offlineSubAfter:" 仍然完好。重新启动以恢复同一对话。",archiveTitle:"归档",archiveCount:({n:e})=>`${e} 个已关闭会话`,archiveViewAll:({n:e})=>`查看全部 ${e}`,archiveSearch:"搜索归档",archiveEmpty:"没有匹配的已关闭会话",archiveToday:"今天",archiveYesterday:"昨天",archiveUnknownDate:"时间未知",shelfRestore:"取回",rootDrop:"移到顶层",outcomeWorking:"正在处理...",outcomeSending:"正在发送...",outcomeAccepted:"已接收 —— 正在交给 agent",outcomeDelivered:"已送达",outcomeQueued:"已接收,正在等待终端传输 — 可安全重试",outcomeUnconfirmed:"尚未确认送达 — 可安全重试",deliveryFailed:({status:e})=>`未送达(HTTP ${e})`,msgError:"⚠ 未送达 — 重试",launchSend:"启动这个会话",attachTitle:"附加文件(或粘贴 / 拖入)—— 上传到会话所在机器,并插入其 /tmp 路径",attachError:"⚠ 上传失败",attachQueued:"等待上传",attachDone:"已附加",attachCancelled:"已取消",attachRetry:"重试上传",attachCancel:"取消上传",attachDismiss:"隐藏此附件状态",codeSelectionAttachments:"代码选区附件",removeCodeSelection:"移除代码选区",cmd:{evalDesc:"切换到此会话的 Evals 页 —— 受影响场景与实测证据",stopTitle:"停止此会话(结束智能体,保留工作树 —— 可恢复)",stopDesc:"停止 —— 结束智能体与 tmux,但保留工作树,之后可恢复",closeTitle:"关闭此会话(移除工作树)",closeDesc:"关闭 —— 移除工作树与分支,丢弃此工作(等同右键菜单 → 关闭)"}},settings:{title:"设置",close:"关闭(esc)",secLanguage:"语言",uiLanguage:"界面语言",secTheme:"主题",secTerminal:"终端",defaultSessionSurface:"默认会话界面",terminalFontSize:"字体大小",secShortcuts:"快捷键",bindPrompt:"按一个键…",shortcutsHint:"点击某个键即可重绑定。导航键与连击键固定不可改。(手柄绑定的是动作而非按键——这里的重绑定不影响手柄。)",reset:"恢复默认"},search:{title:"搜索节点与会话",placeholder:"搜索节点、会话…",empty:"没有匹配项",hint:"↑↓ 选择 · ⏎ 跳转 · esc 关闭",kind:{spec:"节点",session:"会话"}},mobile:{worked:"工作了",more:"展开",specsTab:"规格",sessionsTab:"会话",evalsTab:"评测",issuesTab:"issues",childrenTab:({n:e})=>`子节点 ${e}`,liveEditors:({n:e})=>`${e} 个在线编辑者`,noSessions:"没有运行中的会话 —— 点上方 + 新建",newSession:"新建会话",newPlaceholder:"描述要交给新 agent 的任务…",launch:"启动",launching:"启动中…",launchFailed:"启动失败 —— 后端拒绝或不可达",back:"返回",noEvents:"暂无记录 —— 状态变化和消息会出现在这里",you:"我",inputPlaceholder:"给 agent 发消息…",send:"发送",stop:"停止",stopFailed:"未停止——agent 没有接受中断",copy:"复制",copied:"已复制",copyFailed:"复制失败 —— 选区已保留",sendFailed:"未送达 —— agent 可能已离线",offlineHint:"agent 已离线 —— 需要重新拉起后消息才能送达"}},Xo={en:Xl,zh:Np},Ic="spexcode.lang",Eh=[{code:"en",label:"English"},{code:"zh",label:"中文"}];function $p(){return(typeof navigator<"u"&&navigator.language||"en").toLowerCase().startsWith("zh")?"zh":"en"}function _p(){try{const e=localStorage.getItem(Ic);if(e&&Xo[e])return e}catch{}return $p()}function ca(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Lp(e,t){return t?e.replace(/\{(\w+)\}/g,(n,r)=>t[r]!=null?t[r]:`{${r}}`):e}function Mp(e,t,n){let r=ca(e,t);return r===void 0&&(r=ca(Xl,t)),typeof r=="function"?r(n||{}):typeof r=="string"?Lp(r,n):t}const zc=T.createContext(null);function Rp({children:e}){const[t,n]=T.useState(_p);T.useEffect(()=>{try{document.documentElement.lang=t}catch{}},[t]);const r=T.useCallback(o=>{if(Xo[o]){try{localStorage.setItem(Ic,o)}catch{}n(o)}},[]),s=T.useMemo(()=>{const o=Xo[t]||Xl;return{lang:t,setLang:r,t:(l,i)=>Mp(o,l,i)}},[t,r]);return u.jsx(zc.Provider,{value:s,children:e})}function Fp(){const e=T.useContext(zc);if(!e)throw new Error("useI18n must be used within <I18nProvider>");return e}function Es(){return Fp().t}const Op=5e3,Ip=14e3,zp=3200,Dp=70;function Ap(e){const t=Array.from(String(e)).length,n=zp+t*Dp;return Math.min(Ip,Math.max(Op,n))}function Up(e,t){const n=t===void 0?Ap(e):t;if(!Number.isFinite(n)||n<0)throw new Error("notice duration must be a non-negative finite number");return n}const Dc=T.createContext(null);let Bp=0;function Hp(e,t={}){const n=["success","error","info"].includes(t.kind)?t.kind:"info",r=Up(e,t.duration);return{kind:n,duration:r,onClick:typeof t.onClick=="function"?t.onClick:null}}function Vp({notices:e,dismiss:t,setInteraction:n}){const r=Es(),s=T.useRef(null);if(T.useLayoutEffect(()=>{const l=s.current;l&&(l.scrollTop=l.scrollHeight)},[e.length]),!e.length)return null;const o={success:"circle-check",error:"circle-x",info:"info"};return u.jsx("div",{className:"tn-viewport",ref:s,children:e.map(l=>u.jsxs("div",{className:`tn-notice ${l.kind}`,"data-paused":l.paused?"true":void 0,style:{"--tn-duration":`${l.duration}ms`},role:l.kind==="error"?"alert":"status",tabIndex:l.onClick?0:void 0,onClick:l.onClick?i=>{i.target.closest("button")||l.onClick()}:void 0,onKeyDown:l.onClick?i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),l.onClick())}:void 0,onPointerEnter:()=>n(l.id,"pointer",!0),onPointerLeave:()=>n(l.id,"pointer",!1),onFocus:()=>n(l.id,"focus",!0),onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||n(l.id,"focus",!1)},children:[u.jsx(Cs,{name:o[l.kind],size:16,className:"tn-icon"}),u.jsx("span",{className:"tn-message",children:l.message}),u.jsx(Pp,{icon:"x",size:14,className:"tn-dismiss",label:r("common.close"),onClick:()=>t(l.id)}),l.duration>0&&u.jsx("span",{className:"tn-progress","aria-hidden":"true"})]},l.id))})}function da({children:e}){const[t,n]=T.useState([]),r=T.useRef(new Map),s=T.useRef(new Map),o=T.useCallback(h=>{const f=r.current.get(h);f&&(f.handle&&window.clearTimeout(f.handle),r.current.delete(h))},[]),l=T.useCallback(h=>{o(h),s.current.delete(h),n(f=>f.filter(y=>y.id!==h))},[o]),i=T.useCallback((h,f)=>{if(f<=0){l(h);return}o(h);const y=Date.now()+f,g=window.setTimeout(()=>l(h),f);r.current.set(h,{deadline:y,remaining:f,handle:g})},[o,l]),a=T.useCallback((h,f)=>{const y=String(h??"").trim();if(!y)return null;const{kind:g,duration:w}=Hp(y,f),$=typeof(f==null?void 0:f.onClick)=="function"?f.onClick:null,p=`notice-${++Bp}`;return s.current.set(p,{pointer:!1,focus:!1}),n(d=>[...d,{id:p,kind:g,message:y,duration:w,paused:!1,onClick:$}]),w&&i(p,w),p},[i]),c=T.useCallback((h,f,y)=>{const g=s.current.get(h);if(!g||g[f]===y)return;g[f]=y;const w=g.pointer||g.focus,$=r.current.get(h);$&&(w&&$.handle?(window.clearTimeout($.handle),$.handle=null,$.remaining=Math.max(0,$.deadline-Date.now())):!w&&!$.handle&&i(h,$.remaining),n(p=>p.map(d=>d.id===h?{...d,paused:w}:d)))},[i]);T.useEffect(()=>()=>{for(const{handle:h}of r.current.values())h&&window.clearTimeout(h);r.current.clear(),s.current.clear()},[]);const v=T.useMemo(()=>({notify:a,dismiss:l}),[a,l]);return u.jsxs(Dc.Provider,{value:v,children:[e,u.jsx(Vp,{notices:t,dismiss:l,setInteraction:c})]})}function jh(){const e=T.useContext(Dc);if(!e)throw new Error("useTransientNotice must be rendered inside TransientNoticeProvider");return e}function Jo(e){let t=2166136261;for(let n=0;n<(e||"").length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Ac(e){return Jo(e)%360}function Th(e){const t=Ac(e);return{bg:`hsl(${t} 55% 42%)`,fg:`hsl(${t} 70% 92%)`}}function Ph(e){return`hsl(${Ac(e)} 65% 50%)`}const Jl=T.createContext(null);function Nh({scope:e,children:t}){return u.jsx(Jl.Provider,{value:e,children:t})}function $h(){const e=T.useContext(Jl);if(!e)throw new Error("useViewScope must be used inside a ViewHost");return e}function Wp(){return T.useContext(Jl)}function Qp(e,t=null){if(!t||t.kind!=="view")return e;if((e==null?void 0:e.side)!=="right")throw new TypeError(`view status item must use the right group: ${String(e==null?void 0:e.id)}`);return e}const ql=T.createContext(null),Uc=T.createContext(null),Bc="spexcode.statusHidden",Gp=()=>{try{return new Set(JSON.parse(localStorage.getItem(Bc)||"[]"))}catch{return new Set}},fa=(e,t)=>t.priority-e.priority||Jo(t.id)-Jo(e.id)||(e.id<t.id?-1:1),qo=e=>e&&`${e.id}|${e.side}|${e.priority}|${e.kind??""}|${e.overflow?"overflow":""}|${typeof e.text=="string"?e.text:""}|${e.tooltip??""}`;function pa({children:e}){const[t,n]=T.useState(()=>new Map),[r,s]=T.useState(Gp),o=T.useCallback(v=>{Qp(v,v==null?void 0:v.owner),n(h=>{const f=h.get(v.id);return f&&qo(f)===qo(v)&&f.node===v.node&&f.onClick===v.onClick?h:new Map(h).set(v.id,v)})},[]),l=T.useCallback(v=>{n(h=>h.has(v)?(()=>{const f=new Map(h);return f.delete(v),f})():h)},[]),i=T.useCallback(v=>{s(h=>{const f=new Set(h);f.has(v)?f.delete(v):f.add(v);try{localStorage.setItem(Bc,JSON.stringify([...f]))}catch{}return f})},[]),a=T.useMemo(()=>({register:o,dispose:l,toggleHidden:i}),[o,l,i]),c=T.useMemo(()=>({items:t,hidden:r}),[t,r]);return u.jsx(ql.Provider,{value:a,children:u.jsx(Uc.Provider,{value:c,children:e})})}function _h(e){const t=T.useContext(ql),n=Wp(),r=e&&{...e,owner:(n==null?void 0:n.owner)||null},{id:s}=r||{},o=T.useRef(r);o.current=r;const l=qo(r);T.useEffect(()=>{if(!(!t||!s))return t.register(o.current),()=>t.dispose(s)},[t,s,l]);const i=T.useRef(r==null?void 0:r.node);T.useEffect(()=>{var a,c;!t||!s||i.current!==((a=o.current)==null?void 0:a.node)&&(i.current=(c=o.current)==null?void 0:c.node,t.register(o.current))})}function ha({item:e,onToggleHidden:t}){const n=`sb-item${e.kind&&e.kind!=="standard"?` sb-${e.kind}`:""}${e.onClick?" sb-act":""}${e.overflow?" sb-overflow":""}`,r=e.node??e.text,s={className:n,"data-tip":e.tooltip||void 0,onContextMenu:o=>{o.preventDefault(),t(e.id)}};return e.onClick?u.jsx("button",{type:"button",...s,onClick:e.onClick,children:r}):u.jsx("span",{...s,children:r})}function Lh(){const e=T.useContext(ql),t=T.useContext(Uc),n=Es();if(!e||!t)return null;const r=[...t.items.values()].filter(a=>!t.hidden.has(a.id)),s=r.filter(a=>a.side!=="right").sort(fa),o=r.filter(a=>a.side==="right").sort(fa),l=t.items.size-r.length,i=r.some(a=>a.overflow);return u.jsxs("footer",{className:i?"statusbar has-overlay":"statusbar",role:"status",children:[u.jsx("div",{className:"sb-group sb-left",children:s.map(a=>u.jsx(ha,{item:a,onToggleHidden:e.toggleHidden},a.id))}),u.jsxs("div",{className:"sb-group sb-right",children:[o.map(a=>u.jsx(ha,{item:a,onToggleHidden:e.toggleHidden},a.id)),l>0&&u.jsxs("button",{type:"button",className:"sb-item sb-restore","data-tip":n("statusBar.restore"),onClick:()=>[...t.items.keys()].filter(a=>t.hidden.has(a)).forEach(e.toggleHidden),children:["+",l]})]})]})}const Hc=T.createContext(null),Vc=T.createContext(null),ma=(e,t)=>`${e}\0${t}`,bo=e=>[e.document,e.id,e.icon,e.label,e.disabled?"1":"0",e.disabledReason||"",e.pressed?"1":"0",e.menuKey||(e.menu?"menu":""),e.nodeKey||(e.node?"node":"")].join("|");function va({children:e}){const[t,n]=T.useState(()=>new Map),r=T.useCallback(i=>{if(!(i!=null&&i.document)||!(i!=null&&i.id))return;const a=ma(i.document,i.id);n(c=>{const v=c.get(a);return v&&bo(v)===bo(i)&&v.onClick===i.onClick?c:new Map(c).set(a,{...i,key:a})})},[]),s=T.useCallback((i,a)=>{const c=ma(i,a);n(v=>{if(!v.has(c))return v;const h=new Map(v);return h.delete(c),h})},[]),o=T.useMemo(()=>({register:r,dispose:s}),[r,s]),l=T.useMemo(()=>({actions:t}),[t]);return u.jsx(Hc.Provider,{value:o,children:u.jsx(Vc.Provider,{value:l,children:e})})}function Mh(e,t){const n=T.useContext(Hc),r=T.useRef(t);r.current=t;const s=t==null?void 0:t.id,o=T.useMemo(()=>(...i)=>{var a,c;return(c=(a=r.current)==null?void 0:a.onClick)==null?void 0:c.call(a,...i)},[e,s]),l=bo({document:e,...t});return T.useEffect(()=>{if(!(!n||!e||!s))return n.register({...r.current,document:e,onClick:o}),()=>n.dispose(e,s)},[n,e,s,l,o]),null}function Rh(){var e;return((e=T.useContext(Vc))==null?void 0:e.actions)||new Map}const On=new Map,el=new Set;function Kp(e,t){const n=typeof t=="string"?t.trim():"";if(!e||!n||On.get(e)===n)return;On.set(e,n);const r=new Map(On);for(const s of[...el])s(r)}function Fh(){const[e,t]=T.useState(()=>new Map(On));return T.useEffect(()=>(el.add(t),t(new Map(On)),()=>{el.delete(t)}),[]),e}function Oh(e,t){return T.useEffect(()=>{Kp(e,t)},[e,t]),null}const Zp={},js=Zp??{},Yp=js.VITE_PUBLIC_GRAPH_ONLY==="1",Xp=js.VITE_PUBLIC_GRAPH_SOURCE||"./public-graph.json",Jp=js.VITE_PUBLIC_GRAPH_DOCUMENT_SOURCE||"./specs",qp=js.VITE_PUBLIC_GRAPH_METADATA_SOURCE||"./public-graph-meta.json",bp=e=>"error"in e;function eh(e,t){if(bp(t))return{state:e,payload:t};const{kind:n,removed:r,turns:s,...o}=t;if(n!=="delta"){const c=[...s||[]];return{state:{turns:c},payload:{...o,turns:c}}}const l=new Set(r||[]),i=e.turns.filter(c=>!l.has(c.id)),a=new Map(i.map((c,v)=>[c.id,v]));for(const c of s||[]){const v=a.get(c.id);v===void 0?(a.set(c.id,i.length),i.push(c)):i[v]=c}return{state:{turns:i},payload:{...o,turns:i}}}const th=1e4,nh=2.5*th;function Wc(e,{deadMs:t=nh,setTimeoutImpl:n=setTimeout,clearTimeoutImpl:r=clearTimeout}={}){let s=0;const o=()=>{s&&(r(s),s=0)};return{arm:()=>{o(),s=n(()=>{s=0,e()},t)},disarm:o}}function Qc(e){const t=/^\/p\/([^/]+)(?:\/|$)/.exec(e||"");if(!t)return{id:null,base:""};let n=t[1];try{n=decodeURIComponent(n)}catch{}return{id:n,base:`/p/${t[1]}`}}const Gc=Qc(typeof location<"u"?location.pathname:""),Ih=Gc.id,rh=Gc.base,sh=(e,t)=>e.startsWith("/api")?t+e:e,Ts=e=>sh(e,rh),zh=(e,t="#/graph")=>`/p/${encodeURIComponent(e)}/${t}`,oh=()=>"/projects";function lh(e,t){return Qc(e).id&&(t||"").replace(/^#\/?/,"").split("?")[0].replace(/\/+$/,"")==="projects"?oh():null}const ih=280,ga=54,ah=.4,uh=1.6,tl={width:176,height:50},ch=.43,dh=tl.width+44;function Dh(e){const t=Object.fromEntries(e.map(f=>[f.id,f])),n=f=>(typeof f.path=="string"?f.path.split(/[\\/]/).filter(Boolean):[]).at(-2)||f.id,r=f=>String(f.title||n(f)),s=new Map;for(const f of e)s.set(r(f),(s.get(r(f))||0)+1);const o=e.filter(f=>s.get(r(f))>1),l=new Map(e.map(f=>[f.id,r(f)]));if(!o.length)return l;const i=new Set(e.map(r)),a=new Map;for(const f of o){const y=[];for(let g=f;g;g=g.parent?t[g.parent]:null)y.unshift(r(g));a.set(f.id,y)}const c=new Set(o.map(f=>f.id)),v=new Set,h=Math.max(...[...a.values()].map(f=>f.length));for(let f=2;f<=h&&c.size;f++){const y=new Map;for(const g of c){const w=a.get(g),$=w.slice(-Math.min(f,w.length)).join("/");y.has($)||y.set($,[]),y.get($).push(g)}for(const[g,w]of y)w.length!==1||i.has(g)||v.has(g)||(l.set(w[0],g),v.add(g),c.delete(w[0]))}for(const f of c){const y=a.get(f),g=y.slice(-Math.min(2,y.length)).join("/");l.set(f,`${g}/${f}`)}return l}function Ah({focus:e,parent:t=null,child:n=null,visible:r=[],width:s,height:o,zoom:l,minZoom:i=ah,maxZoom:a=uh,tileWidth:c=tl.width,tileHeight:v=tl.height,anchorRatio:h=ch,gutter:f=dh,fit:y=!0}){if(!e||s<=0||o<=0)return{x:0,y:0,zoom:l};const g=r.length?r:[e],w=Math.min(...g.map(ae=>ae.x-c/2)),$=Math.max(...g.map(ae=>ae.x+c/2)),p=Math.min(...g.map(ae=>ae.y-v/2)),d=Math.max(...g.map(ae=>ae.y+v/2)),m=Math.max(1,$-w),k=Math.max(1,d-p),S=Number.isFinite(l)&&m*l<=s-f&&k*l<=o,j=Math.min(a,(s-f)/m,o/k);if(y&&S&&j>=i){const ae=Math.min(j,l);return{x:f-w*ae,y:(o-k*ae)/2-p*ae,zoom:ae}}const P=t?e.x:n?(e.x+n.x)/2:e.x,N=t?.5:h,O=y&&!S&&j>=i?j:l,L=o/2-e.y*O;if(!y)return{x:s*N-P*O,y:L,zoom:O};const ie=-p*O,qe=o-d*O,kt=ie<=qe?Math.min(qe,Math.max(ie,L)):ie;return{x:s*N-P*O,y:kt,zoom:O}}function Uh(e,t){var a;const n={};e.forEach(c=>{var v;c.parent&&(n[v=c.parent]??(n[v]=[])).push(c.id)});const r={},s=e.filter(c=>!c.parent),o=(c,v,h)=>{const f=h-(c.length-1)/2*ga;c.forEach((y,g)=>{r[y]={x:v*ih,y:f+g*ga}})};if(!s.length)return r;o(s.map(c=>c.id),0,0);let l=(a=s.find(c=>t.has(c.id)))==null?void 0:a.id,i=1;for(;l;){const c=t.has(l)?n[l]||[]:[];if(!c.length)break;o(c,i,r[l].y),l=c.find(v=>t.has(v)),i+=1}return r}function Bh(e,t){const n=Object.fromEntries(e.map(o=>[o.id,o])),r=n[t]||e.find(o=>!o.parent)||e[0],s=new Set;for(let o=r;o;o=o.parent?n[o.parent]:null)s.add(o.id);return s}const ya=[150,350,600,900],fh=new Set([502,503,504]),Hh=15e3,ls=new Set;let _t={offline:!1,retryKey:0};function wa(e){_t.offline!==e&&(_t={..._t,offline:e},ls.forEach(t=>t()))}function ka(){return _t}function ph(e){return ls.add(e),()=>ls.delete(e)}function hh(){_t={..._t,retryKey:_t.retryKey+1},ls.forEach(e=>e())}async function B(e,t){const n=typeof e=="string"?Ts(e):e;for(let r=0;;r++)try{const s=await fetch(n,t);return wa(fh.has(s.status)),s}catch(s){if(r>=ya.length)throw wa(!0),s;await new Promise(o=>setTimeout(o,ya[r]))}}let Or="";const xa=()=>{Or=""};async function Vh(){const e=await B("/api/graph",{cache:"no-store",headers:Or?{"If-None-Match":Or}:{}});if(e.status===304)return null;if(e.status===401||e.status===403){const r=await e.json().catch(()=>null);return{authRequired:(r==null?void 0:r.reason)||"project-login"}}if(!e.ok){const r=await e.json().catch(()=>null);throw new Error((r==null?void 0:r.error)||`graph load failed (${e.status})`)}const t=e.headers.get("etag")||"";return{board:await e.json(),seal:()=>{Or=t}}}async function Wh(){const e=await fetch(Xp,{cache:"no-cache"});if(!e.ok)throw new Error(`public graph unavailable: ${e.status}`);const t=await e.json();if((t==null?void 0:t.schema)!=="spexcode.public-spec-graph/v1"||!Array.isArray(t==null?void 0:t.nodes)||!(t!=null&&t.identity))throw new Error("public graph payload is invalid");return{...t,sessions:[],issuesStamp:null}}async function Qh(){var r,s,o;const e=await fetch(qp,{cache:"no-cache"});if(!e.ok)throw new Error(`public graph metadata unavailable: ${e.status}`);const t=await e.json(),n=(r=t==null?void 0:t.release)==null?void 0:r.archive;if((t==null?void 0:t.schema)!=="spexcode.public-spec-site/v1"||!Array.isArray((s=t==null?void 0:t.about)==null?void 0:s.facts)||!((o=t==null?void 0:t.release)!=null&&o.revision)||!(n!=null&&n.path)||!(n!=null&&n.name))throw new Error("public graph metadata is invalid");return t}async function Gh(e){const t=`${Jp}/${encodeURIComponent(e)}.json`,n=await fetch(t,{cache:"no-cache"});if(!n.ok)throw new Error(`public spec unavailable: ${n.status}`);const r=await n.json();if((r==null?void 0:r.schema)!=="spexcode.public-spec-document/v1"||r.id!==e||typeof r.body!="string")throw new Error("public spec payload is invalid");return r}const bl=(e,...t)=>Ts(`/api/specs/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);async function Kh(e){const t=await B(bl(e,"files")),n=await t.json().catch(()=>null);if(!t.ok)throw new Error((n==null?void 0:n.error)||`attachment list failed (${t.status})`);return(n==null?void 0:n.files)||[]}async function Zh(e,t,n=0,r){const s=new URLSearchParams({name:t,offset:String(n)}),o=await B(`${bl(e,"files","content")}?${s}`),l=await o.json().catch(()=>null);if(!o.ok)throw new Error((l==null?void 0:l.error)||`attachment read failed (${o.status})`);return l}async function Yh(e,t=0,n){const r=new URLSearchParams({path:e,offset:String(t)}),s=await B(`/api/source?${r}`),o=await s.json().catch(()=>null);if(!s.ok)throw new Error((o==null?void 0:o.error)||`source read failed (${s.status})`);return o}async function Xh(e=""){const t=await B(`/api/files?${new URLSearchParams({dir:e})}`),n=await t.json().catch(()=>null);if(!t.ok)throw new Error((n==null?void 0:n.error)||`directory list failed (${t.status})`);return{entries:(n==null?void 0:n.entries)||[],truncated:!!(n!=null&&n.truncated)}}function Jh({onBoard:e,onLegacyChange:t,onStatus:n}){let r=null,s=!1,o=null,l="";const i=y=>{const{nodes:g=[],sessions:w=[],...$}=y,p=new Map([["meta",$],["nodes#order",g.map(d=>d.id)],["sess#order",w.map(d=>d.id)]]);return g.forEach(d=>p.set("node:"+d.id,d)),w.forEach(d=>p.set("sess:"+d.id,d)),p},a=y=>{const g=(w,$)=>(y.get($)||[]).map(p=>y.get(w+p));return{...y.get("meta")||{},nodes:g("node:","nodes#order"),sessions:g("sess:","sess#order")}},c=()=>{try{r==null||r.close()}catch{}o=null,l="",f()},v=Wc(()=>{!r||s||(n==null||n(!1),c(),v.arm(),t==null||t())}),h=()=>v.arm(),f=()=>{if(!s){try{r=new EventSource(Ts("/api/graph/stream?mode=delta"))}catch{r=null;return}r.addEventListener("graph-full",y=>{h();const{to:g,graph:w}=JSON.parse(y.data);o=i(w),l=g,xa(),e(w,{authoritative:!0,tag:g}),n==null||n(!0)}),r.addEventListener("graph-delta",y=>{h();const g=JSON.parse(y.data);if(!o||l!==g.from){c();return}for(const w of g.del||[])o.delete(w);for(const[w,$]of Object.entries(g.set||{}))o.set(w,$);l=g.to,xa(),e(a(o),{authoritative:!1,tag:g.to}),n==null||n(!0)}),r.addEventListener("graph-changed",()=>{h(),t==null||t()}),r.addEventListener("error",()=>n==null?void 0:n(!1)),r.addEventListener("ping",h),r.addEventListener("ready",h)}};return f(),n==null||n(!1),h(),()=>{s=!0,v.disarm();try{r==null||r.close()}catch{}}}function qh(e,t,n=!1){if(!(e!=null&&e.sessions))return e;const r=new Set(e.sessions.map(l=>l.id));if(n)for(const l of t.keys())r.has(l)||t.delete(l);let s=!1;const o=e.sessions.map(l=>{var h,f;const i=l.evalSummary;if(!i||!Number.isInteger(i.generation)||!i.epoch)return l;const a=t.get(l.id),c=a&&a.epoch!==i.epoch;if(!a||(c?n:i.generation>=a.generation)){const y=((h=a==null?void 0:a.projection)==null?void 0:h.phase)==="ready"&&a.projection.value?{generation:a.projection.generation,revision:a.projection.revision,value:a.projection.value}:(f=a==null?void 0:a.projection)==null?void 0:f.lastKnown,g=c&&!i.value&&!i.lastKnown&&y?{...i,lastKnown:y}:i;return t.set(l.id,{epoch:g.epoch,generation:g.generation,projection:g}),g!==i?(s=!0,{...l,evalSummary:g}):l}return s=!0,{...l,evalSummary:a.projection}});return s?{...e,sessions:o}:e}const bh=e=>{var t,n;return{title:((t=e==null?void 0:e.identity)==null?void 0:t.title)||(e==null?void 0:e.project)||"",icon:((n=e==null?void 0:e.identity)==null?void 0:n.icon)||(e==null?void 0:e.projectIcon)||"spexcode"}},wt=(e,...t)=>Ts(`/api/sessions/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);async function em(e){var s,o;const t=await B(wt(e,"timeline"),{cache:"no-store"});if(!t.ok)return null;const n=await t.json(),r=Date.parse(((o=(s=t.headers)==null?void 0:s.get)==null?void 0:o.call(s,"date"))||"");return Number.isFinite(r)?{...n,serverNow:r}:n}async function tm(e,t,n){const r=new URLSearchParams({from:String(t),to:String(n)}),s=await B(`${wt(e,"transcript")}?${r}`,{cache:"no-store"}),o=await s.json().catch(()=>({}));return s.ok?{ok:!0,data:o}:{ok:!1,error:(o==null?void 0:o.error)||`HTTP ${s.status}`}}async function nm(e,t,n){const r=new URLSearchParams({from:String(t)}),s=await B(`${wt(e,"transcript","tool",n)}?${r}`,{cache:"no-store"}),o=await s.json().catch(()=>({}));return s.ok?{ok:!0,data:o}:{ok:!1,error:(o==null?void 0:o.error)||`HTTP ${s.status}`}}function rm(e,t,n){let r=null,s=!1,o={turns:[]};const l=()=>{try{r==null||r.close()}catch{}c()},i=Wc(()=>{s||(l(),i.arm())}),a=v=>{i.arm();try{const h=eh(o,JSON.parse(v.data));o=h.state,n(h.payload)}catch{}},c=()=>{if(!s){try{r=new EventSource(`${wt(e,"transcript","stream")}?from=${encodeURIComponent(String(t))}`)}catch{r=null;return}r.addEventListener("transcript",a),r.addEventListener("ping",()=>i.arm())}};return c(),i.arm(),()=>{s=!0,i.disarm();try{r==null||r.close()}catch{}}}async function sm(e){const t=await B(wt(e,"interrupt"),{method:"POST"}),n=await t.json().catch(()=>({}));return{ok:t.ok&&(n==null?void 0:n.ok)!==!1,error:n==null?void 0:n.error}}async function om(e){const t=await B(wt(e));return t.ok?t.json():null}async function lm(e,t,{replyVia:n}={}){const r=await B(wt(e,"input"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"text",text:t,...n?{replyVia:n}:{}})}),s=await r.json().catch(()=>({}));return{ok:r.ok&&(s==null?void 0:s.ok)!==!1,error:s==null?void 0:s.error}}async function im(e,t,{deliveryId:n,signal:r,replyVia:s}={}){const o=await fetch(wt(e,"input"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"command",text:t,...n?{deliveryId:n}:{},...s==="note"?{replyVia:"note"}:{}}),signal:r}),l=await o.json().catch(()=>null);return{ok:o.ok,status:o.status,outcome:l}}async function am(e,t){const n=await B(bl(e,"body"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);if(!n.ok){const s=new Error((r==null?void 0:r.error)||`spec body edit failed (${n.status})`);throw s.code=(r==null?void 0:r.code)||"http-error",s.current=r==null?void 0:r.current,s}return r}async function um(){return(await B("/api/plugins")).json()}async function cm(){return(await B("/api/plugins?surface=review")).json()}async function dm(){return(await B("/api/settings")).json()}async function fm(e){const t=await B(`/api/issues/${encodeURIComponent(e)}`);if(t.status===404)return!1;if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}async function pm(e,t,n){return(await B(`/api/issues/${encodeURIComponent(e)}/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:t,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function hm(e){return(await B(`/api/issues/${encodeURIComponent(e)}/close`,{method:"POST"})).json()}async function mm(e){return(await B(`/api/issues/${encodeURIComponent(e)}/promote`,{method:"POST"})).json()}async function vm(e,t){return(await B(`/api/remarks/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:t})})).json()}async function gm({concern:e,body:t,evidence:n,store:r}){return(await B("/api/issues",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({concern:e,body:t,store:r,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function ym({node:e,scenario:t,issue:n,body:r,codeSha:s,evidence:o}){return(await B("/api/remarks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node:e,scenario:t,issue:n,body:r,...s?{codeSha:s}:{},...o!=null&&o.length?{evidence:o}:{}})})).json()}async function wm(e,t){return(await B(`/api/specs/${encodeURIComponent(e)}/evals/ok`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scenario:t})})).json()}async function km(e){return(await B("/api/evidence",{method:"POST",headers:{"Content-Type":"image/png"},body:e})).json()}function mh(){return T.useSyncExternalStore(ph,ka,ka)}function vh({children:e}){const t=Es(),n=mh();return u.jsxs("div",{className:"backend-frame",children:[n.offline&&u.jsxs("div",{className:"backend-offline-banner",role:"alert",children:[u.jsx(Cs,{name:"info",size:14}),u.jsx("span",{children:t("backend.offline")}),u.jsx("button",{type:"button",onClick:hh,children:t("backend.retry")})]}),e]})}const Sa=T.lazy(()=>jp(()=>import("./App-DbqxElOY.js").then(e=>e.W),[]));function gh(){const e=Es();return Yp?u.jsx(da,{children:u.jsx(pa,{children:u.jsx(va,{children:u.jsx(T.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:u.jsx(Sa,{})})})})}):u.jsx(da,{children:u.jsx(pa,{children:u.jsx(va,{children:u.jsx(T.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:u.jsx(Sa,{})})})})})}function yh(){return u.jsx(vh,{children:u.jsx(gh,{})})}const Ca=lh(location.pathname,location.hash);Ca?location.replace(Ca):no.createRoot(document.getElementById("root")).render(u.jsx(cd.StrictMode,{children:u.jsx(Rp,{children:u.jsx(yh,{})})}));export{Qh as $,em as A,om as B,wh as C,rm as D,tm as E,nm as F,im as G,sm as H,Cs as I,Fp as J,wt as K,kh as L,xh as M,Ch as N,Sh as O,Yp as P,Ph as Q,Rh as R,Lh as S,$h as T,Hh as U,Nh as V,Mh as W,rh as X,Zc as Y,cd as Z,jp as _,Pp as a,Bh as a0,Uh as a1,Dh as a2,tl as a3,Ah as a4,uh as a5,ah as a6,ih as a7,ga as a8,Yh as a9,Zh as aa,cm as ab,km as ac,ym as ad,wm as ae,Oh as af,mm as ag,hm as ah,pm as ai,fm as aj,gm as ak,bl as al,Gh as am,lm as an,am as ao,vm as ap,Eh as aq,mh as b,qh as c,Vh as d,Ih as e,Sp as f,Xh as g,Kh as h,jh as i,u as j,B as k,Wh as l,Ts as m,Fh as n,_h as o,bh as p,zh as q,T as r,Jh as s,oh as t,Es as u,Wc as v,Jo as w,Th as x,dm as y,um as z};
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:s,digest:null}}function qs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Io(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jf=typeof WeakMap=="function"?WeakMap:Map;function ac(e,t,n){n=Ge(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ns||(ns=!0,Go=r),Io(e,t)},n}function uc(e,t,n){n=Ge(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Io(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Io(e,t),typeof r!="function"&&(dt===null?dt=new Set([this]):dt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Wi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jf;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=dp.bind(null,e,t,n),t.then(e,e))}function Qi(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 Gi(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ge(-1,1),t.tag=2,ct(n,t,1))),n.lanes|=1),e)}var qf=Je.ReactCurrentOwner,he=!1;function ue(e,t,n,r){t.child=e===null?Du(t,null,n,r):ln(t,e.child,n,r)}function Ki(e,t,n,r,s){n=n.render;var o=t.ref;return tn(t,s),r=Fl(e,t,n,r,o,s),n=Ol(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xe(e,t,s)):(U&&n&&Sl(t),t.flags|=1,ue(e,t,r,s),t.child)}function Zi(e,t,n,r,s){if(e===null){var o=n.type;return typeof o=="function"&&!Ql(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cc(e,t,o,r,s)):(e=Fr(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Vn,n(l,r)&&e.ref===t.ref)return Xe(e,t,s)}return t.flags|=1,e=pt(o,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,s){if(e!==null){var o=e.memoizedProps;if(Vn(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&s)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,Xe(e,t,s)}return zo(e,t,n,r,s)}function dc(e,t,n){var r=t.pendingProps,s=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},z(Xt,ye),ye|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,z(Xt,ye),ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,z(Xt,ye),ye|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,z(Xt,ye),ye|=r;return ue(e,t,s,n),t.child}function fc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zo(e,t,n,r,s){var o=ve(n)?Lt:le.current;return o=sn(t,o),tn(t,s),n=Fl(e,t,n,r,o,s),r=Ol(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Xe(e,t,s)):(U&&r&&Sl(t),t.flags|=1,ue(e,t,n,s),t.child)}function Yi(e,t,n,r,s){if(ve(n)){var o=!0;Gr(t)}else o=!1;if(tn(t,s),t.stateNode===null)Lr(e,t),ic(t,n,r),Oo(t,n,r,s),r=!0;else if(e===null){var l=t.stateNode,i=t.memoizedProps;l.props=i;var a=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ne(c):(c=ve(n)?Lt:le.current,c=sn(t,c));var v=n.getDerivedStateFromProps,h=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==r||a!==c)&&Vi(t,l,r,c),tt=!1;var f=t.memoizedState;l.state=f,Jr(t,r,l,s),a=t.memoizedState,i!==r||f!==a||me.current||tt?(typeof v=="function"&&(Fo(t,n,v,r),a=t.memoizedState),(i=tt||Hi(t,n,i,r,f,a,c))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=c,r=i):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Uu(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:Le(t.type,i),l.props=c,h=t.pendingProps,f=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ne(a):(a=ve(n)?Lt:le.current,a=sn(t,a));var y=n.getDerivedStateFromProps;(v=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==h||f!==a)&&Vi(t,l,r,a),tt=!1,f=t.memoizedState,l.state=f,Jr(t,r,l,s);var g=t.memoizedState;i!==h||f!==g||me.current||tt?(typeof y=="function"&&(Fo(t,n,y,r),g=t.memoizedState),(c=tt||Hi(t,n,c,r,f,g,a)||!1)?(v||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,g,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,g,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),l.props=r,l.state=g,l.context=a,r=c):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Do(e,t,n,r,o,s)}function Do(e,t,n,r,s,o){fc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return s&&Fi(t,n,!1),Xe(e,t,o);r=t.stateNode,qf.current=t;var i=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=ln(t,e.child,null,o),t.child=ln(t,null,i,o)):ue(e,t,i,o),t.memoizedState=r.state,s&&Fi(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?Ri(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(e,t.context,!1),_l(e,t.containerInfo)}function Xi(e,t,n,r,s){return on(),El(s),t.flags|=256,ue(e,t,n,r),t.child}var Ao={dehydrated:null,treeContext:null,retryLane:0};function Uo(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,s=H.current,o=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(s&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),z(H,s&1),e===null)return Mo(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):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=ys(l,r,0,null),e=$t(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Uo(n),t.memoizedState=Ao,e):Dl(t,l));if(s=e.memoizedState,s!==null&&(i=s.dehydrated,i!==null))return bf(e,t,l,r,i,s,n);if(o){o=r.fallback,l=t.mode,s=e.child,i=s.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=pt(s,a),r.subtreeFlags=s.subtreeFlags&14680064),i!==null?o=pt(i,o):(o=$t(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Uo(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Ao,r}return o=e.child,e=o.sibling,r=pt(o,{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 Dl(e,t){return t=ys({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function wr(e,t,n,r){return r!==null&&El(r),ln(t,e.child,null,n),e=Dl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bf(e,t,n,r,s,o,l){if(n)return t.flags&256?(t.flags&=-257,r=qs(Error(x(422))),wr(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,s=t.mode,r=ys({mode:"visible",children:r.children},s,0,null),o=$t(o,s,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ln(t,e.child,null,l),t.child.memoizedState=Uo(l),t.memoizedState=Ao,o);if(!(t.mode&1))return wr(e,t,l,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(x(419)),r=qs(o,r,void 0),wr(e,t,l,r)}if(i=(l&e.childLanes)!==0,he||i){if(r=b,r!==null){switch(l&-l){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|l)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,Ye(e,s),Oe(r,e,s,-1))}return Wl(),r=qs(Error(x(421))),wr(e,t,l,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=fp.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,we=ut(s.nextSibling),ke=t,U=!0,Re=null,e!==null&&(Ee[je++]=We,Ee[je++]=Qe,Ee[je++]=Mt,We=e.id,Qe=e.overflow,Mt=t),t=Dl(t,r.children),t.flags|=4096,t)}function Ji(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ro(e.return,t,n)}function bs(e,t,n,r,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=s)}function mc(e,t,n){var r=t.pendingProps,s=r.revealOrder,o=r.tail;if(ue(e,t,r.children,n),r=H.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&&Ji(e,n,t);else if(e.tag===19)Ji(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(z(H,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&qr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),bs(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&qr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}bs(t,!0,n,null,o);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xe(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ft|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ep(e,t,n){switch(t.tag){case 3:pc(t),on();break;case 5:Bu(t);break;case 1:ve(t.type)&&Gr(t);break;case 4:_l(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;z(Yr,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(z(H,H.current&1),t.flags|=128,null):n&t.child.childLanes?hc(e,t,n):(z(H,H.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);z(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mc(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),z(H,H.current),r)break;return null;case 22:case 23:return t.lanes=0,dc(e,t,n)}return Xe(e,t,n)}var vc,Bo,gc,yc;vc=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}};Bo=function(){};gc=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Pt(Be.current);var o=null;switch(n){case"input":s=ao(e,s),r=ao(e,r),o=[];break;case"select":s=W({},s,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":s=fo(e,s),r=fo(e,r),o=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wr)}ho(n,r);var l;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var i=s[c];for(l in i)i.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(In.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var a=r[c];if(i=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(l in i)!i.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&i[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(o||(o=[]),o.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(o=o||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(In.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&D("scroll",e),o||i===a||(o=[])):(o=o||[]).push(c,a))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function kn(e,t){if(!U)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 s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function tp(e,t,n){var r=t.pendingProps;switch(Cl(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 ve(t.type)&&Qr(),se(t),null;case 3:return r=t.stateNode,an(),A(me),A(le),Ml(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Re!==null&&(Yo(Re),Re=null))),Bo(e,t),se(t),null;case 5:Ll(t);var s=Pt(Zn.current);if(n=t.type,e!==null&&t.stateNode!=null)gc(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(x(166));return se(t),null}if(e=Pt(Be.current),gr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ae]=t,r[Gn]=o,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(s=0;s<jn.length;s++)D(jn[s],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":li(r,o),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},D("invalid",r);break;case"textarea":ai(r,o),D("invalid",r)}ho(n,o),s=null;for(var l in o)if(o.hasOwnProperty(l)){var i=o[l];l==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&vr(r.textContent,i,e),s=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&vr(r.textContent,i,e),s=["children",""+i]):In.hasOwnProperty(l)&&i!=null&&l==="onScroll"&&D("scroll",r)}switch(n){case"input":ar(r),ii(r,o,!0);break;case"textarea":ar(r),ui(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Wr)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ga(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ae]=t,e[Gn]=r,vc(e,t,!1,!1),t.stateNode=e;e:{switch(l=mo(n,r),n){case"dialog":D("cancel",e),D("close",e),s=r;break;case"iframe":case"object":case"embed":D("load",e),s=r;break;case"video":case"audio":for(s=0;s<jn.length;s++)D(jn[s],e);s=r;break;case"source":D("error",e),s=r;break;case"img":case"image":case"link":D("error",e),D("load",e),s=r;break;case"details":D("toggle",e),s=r;break;case"input":li(e,r),s=ao(e,r),D("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=W({},r,{value:void 0}),D("invalid",e);break;case"textarea":ai(e,r),s=fo(e,r),D("invalid",e);break;default:s=r}ho(n,s),i=s;for(o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="style"?Ya(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ka(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&zn(e,a):typeof a=="number"&&zn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(In.hasOwnProperty(o)?a!=null&&o==="onScroll"&&D("scroll",e):a!=null&&al(e,o,a,l))}switch(n){case"input":ar(e),ii(e,r,!1);break;case"textarea":ar(e),ui(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ht(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Jt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Jt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Wr)}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)yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(x(166));if(n=Pt(Zn.current),Pt(Be.current),gr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(o=r.nodeValue!==n)&&(e=ke,e!==null))switch(e.tag){case 3:vr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return se(t),null;case 13:if(A(H),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&we!==null&&t.mode&1&&!(t.flags&128))Iu(),on(),t.flags|=98560,o=!1;else if(o=gr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(x(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(x(317));o[Ae]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),o=!1}else Re!==null&&(Yo(Re),Re=null),o=!0;if(!o)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||H.current&1?X===0&&(X=3):Wl())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return an(),Bo(e,t),e===null&&Wn(t.stateNode.containerInfo),se(t),null;case 10:return Pl(t.type._context),se(t),null;case 17:return ve(t.type)&&Qr(),se(t),null;case 19:if(A(H),o=t.memoizedState,o===null)return se(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)kn(o,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=qr(e),l!==null){for(t.flags|=128,kn(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return z(H,H.current&1|2),t.child}e=e.sibling}o.tail!==null&&K()>cn&&(t.flags|=128,r=!0,kn(o,!1),t.lanes=4194304)}else{if(!r)if(e=qr(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!U)return se(t),null}else 2*K()-o.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,kn(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=H.current,z(H,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Vl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ye&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function np(e,t){switch(Cl(t),t.tag){case 1:return ve(t.type)&&Qr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),A(me),A(le),Ml(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ll(t),null;case 13:if(A(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(H),null;case 4:return an(),null;case 10:return Pl(t.type._context),null;case 22:case 23:return Vl(),null;case 24:return null;default:return null}}var kr=!1,oe=!1,rp=typeof WeakSet=="function"?WeakSet:Set,C=null;function Yt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function Ho(e,t,n){try{n()}catch(r){Q(e,t,r)}}var qi=!1;function sp(e,t){if(jo=Br,e=Cu(),xl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,i=-1,a=-1,c=0,v=0,h=e,f=null;t:for(;;){for(var y;h!==n||s!==0&&h.nodeType!==3||(i=l+s),h!==o||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++c===s&&(i=l),f===o&&++v===r&&(a=l),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(To={focusedElem:e,selectionRange:n},Br=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,$=g.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Le(t.type,w),$);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(k){Q(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return g=qi,qi=!1,g}function Mn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Ho(t,n,o)}s=s.next}while(s!==r)}}function vs(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 Vo(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 wc(e){var t=e.alternate;t!==null&&(e.alternate=null,wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Gn],delete t[$o],delete t[Uf],delete t[Bf])),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 kc(e){return e.tag===5||e.tag===3||e.tag===4}function bi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kc(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 Wo(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=Wr));else if(r!==4&&(e=e.child,e!==null))for(Wo(e,t,n),e=e.sibling;e!==null;)Wo(e,t,n),e=e.sibling}function Qo(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(Qo(e,t,n),e=e.sibling;e!==null;)Qo(e,t,n),e=e.sibling}var ee=null,Me=!1;function be(e,t,n){for(n=n.child;n!==null;)xc(e,t,n),n=n.sibling}function xc(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(as,n)}catch{}switch(n.tag){case 5:oe||Yt(n,t);case 6:var r=ee,s=Me;ee=null,be(e,t,n),ee=r,Me=s,ee!==null&&(Me?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Me?(e=ee,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),Bn(e)):Gs(ee,n.stateNode));break;case 4:r=ee,s=Me,ee=n.stateNode.containerInfo,Me=!0,be(e,t,n),ee=r,Me=s;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var o=s,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Ho(n,t,l),s=s.next}while(s!==r)}be(e,t,n);break;case 1:if(!oe&&(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Q(n,t,i)}be(e,t,n);break;case 21:be(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,be(e,t,n),oe=r):be(e,t,n);break;default:be(e,t,n)}}function ea(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rp),t.forEach(function(r){var s=pp.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function _e(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var o=e,l=t,i=l;e:for(;i!==null;){switch(i.tag){case 5:ee=i.stateNode,Me=!1;break e;case 3:ee=i.stateNode.containerInfo,Me=!0;break e;case 4:ee=i.stateNode.containerInfo,Me=!0;break e}i=i.return}if(ee===null)throw Error(x(160));xc(o,l,s),ee=null,Me=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(c){Q(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Sc(t,e),t=t.sibling}function Sc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_e(t,e),ze(e),r&4){try{Mn(3,e,e.return),vs(3,e)}catch(w){Q(e,e.return,w)}try{Mn(5,e,e.return)}catch(w){Q(e,e.return,w)}}break;case 1:_e(t,e),ze(e),r&512&&n!==null&&Yt(n,n.return);break;case 5:if(_e(t,e),ze(e),r&512&&n!==null&&Yt(n,n.return),e.flags&32){var s=e.stateNode;try{zn(s,"")}catch(w){Q(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&Wa(s,o),mo(i,l);var c=mo(i,o);for(l=0;l<a.length;l+=2){var v=a[l],h=a[l+1];v==="style"?Ya(s,h):v==="dangerouslySetInnerHTML"?Ka(s,h):v==="children"?zn(s,h):al(s,v,h,c)}switch(i){case"input":uo(s,o);break;case"textarea":Qa(s,o);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Jt(s,!!o.multiple,y,!1):f!==!!o.multiple&&(o.defaultValue!=null?Jt(s,!!o.multiple,o.defaultValue,!0):Jt(s,!!o.multiple,o.multiple?[]:"",!1))}s[Gn]=o}catch(w){Q(e,e.return,w)}}break;case 6:if(_e(t,e),ze(e),r&4){if(e.stateNode===null)throw Error(x(162));s=e.stateNode,o=e.memoizedProps;try{s.nodeValue=o}catch(w){Q(e,e.return,w)}}break;case 3:if(_e(t,e),ze(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(w){Q(e,e.return,w)}break;case 4:_e(t,e),ze(e);break;case 13:_e(t,e),ze(e),s=e.child,s.flags&8192&&(o=s.memoizedState!==null,s.stateNode.isHidden=o,!o||s.alternate!==null&&s.alternate.memoizedState!==null||(Bl=K())),r&4&&ea(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(oe=(c=oe)||v,_e(t,e),oe=c):_e(t,e),ze(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!v&&e.mode&1)for(C=e,v=e.child;v!==null;){for(h=C=v;C!==null;){switch(f=C,y=f.child,f.tag){case 0:case 11:case 14:case 15:Mn(4,f,f.return);break;case 1:Yt(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(w){Q(r,n,w)}}break;case 5:Yt(f,f.return);break;case 22:if(f.memoizedState!==null){na(h);continue}}y!==null?(y.return=f,C=y):na(h)}v=v.sibling}e:for(v=null,h=e;;){if(h.tag===5){if(v===null){v=h;try{s=h.stateNode,c?(o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=h.stateNode,a=h.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Za("display",l))}catch(w){Q(e,e.return,w)}}}else if(h.tag===6){if(v===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(w){Q(e,e.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;v===h&&(v=null),h=h.return}v===h&&(v=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:_e(t,e),ze(e),r&4&&ea(e);break;case 21:break;default:_e(t,e),ze(e)}}function ze(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kc(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(zn(s,""),r.flags&=-33);var o=bi(e);Qo(e,o,s);break;case 3:case 4:var l=r.stateNode.containerInfo,i=bi(e);Wo(e,i,l);break;default:throw Error(x(161))}}catch(a){Q(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function op(e,t,n){C=e,Cc(e)}function Cc(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var s=C,o=s.child;if(s.tag===22&&r){var l=s.memoizedState!==null||kr;if(!l){var i=s.alternate,a=i!==null&&i.memoizedState!==null||oe;i=kr;var c=oe;if(kr=l,(oe=a)&&!c)for(C=s;C!==null;)l=C,a=l.child,l.tag===22&&l.memoizedState!==null?ra(s):a!==null?(a.return=l,C=a):ra(s);for(;o!==null;)C=o,Cc(o),o=o.sibling;C=s,kr=i,oe=c}ta(e)}else s.subtreeFlags&8772&&o!==null?(o.return=s,C=o):ta(e)}}function ta(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:oe||vs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!oe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ai(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ai(t,l,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var v=c.memoizedState;if(v!==null){var h=v.dehydrated;h!==null&&Bn(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}oe||t.flags&512&&Vo(t)}catch(f){Q(t,t.return,f)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function na(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function ra(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vs(4,t)}catch(a){Q(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){Q(t,s,a)}}var o=t.return;try{Vo(t)}catch(a){Q(t,o,a)}break;case 5:var l=t.return;try{Vo(t)}catch(a){Q(t,l,a)}}}catch(a){Q(t,t.return,a)}if(t===e){C=null;break}var i=t.sibling;if(i!==null){i.return=t.return,C=i;break}C=t.return}}var lp=Math.ceil,ts=Je.ReactCurrentDispatcher,Al=Je.ReactCurrentOwner,Pe=Je.ReactCurrentBatchConfig,F=0,b=null,Z=null,te=0,ye=0,Xt=gt(0),X=0,qn=null,Ft=0,gs=0,Ul=0,Rn=null,pe=null,Bl=0,cn=1/0,He=null,ns=!1,Go=null,dt=null,xr=!1,ot=null,rs=0,Fn=0,Ko=null,Mr=-1,Rr=0;function ce(){return F&6?K():Mr!==-1?Mr:Mr=K()}function ft(e){return e.mode&1?F&2&&te!==0?te&-te:Vf.transition!==null?(Rr===0&&(Rr=iu()),Rr):(e=I,e!==0||(e=window.event,e=e===void 0?16:hu(e.type)),e):1}function Oe(e,t,n,r){if(50<Fn)throw Fn=0,Ko=null,Error(x(185));er(e,n,r),(!(F&2)||e!==b)&&(e===b&&(!(F&2)&&(gs|=n),X===4&&rt(e,te)),ge(e,r),n===1&&F===0&&!(t.mode&1)&&(cn=K()+500,ps&&yt()))}function ge(e,t){var n=e.callbackNode;Hd(e,t);var r=Ur(e,e===b?te:0);if(r===0)n!==null&&fi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fi(n),t===1)e.tag===0?Hf(sa.bind(null,e)):Ru(sa.bind(null,e)),Df(function(){!(F&6)&&yt()}),n=null;else{switch(au(r)){case 1:n=pl;break;case 4:n=ou;break;case 16:n=Ar;break;case 536870912:n=lu;break;default:n=Ar}n=Lc(n,Ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ec(e,t){if(Mr=-1,Rr=0,F&6)throw Error(x(327));var n=e.callbackNode;if(nn()&&e.callbackNode!==n)return null;var r=Ur(e,e===b?te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ss(e,r);else{t=r;var s=F;F|=2;var o=Tc();(b!==e||te!==t)&&(He=null,cn=K()+500,Nt(e,t));do try{up();break}catch(i){jc(e,i)}while(!0);Tl(),ts.current=o,F=s,Z!==null?t=0:(b=null,te=0,t=X)}if(t!==0){if(t===2&&(s=ko(e),s!==0&&(r=s,t=Zo(e,s))),t===1)throw n=qn,Nt(e,0),rt(e,r),ge(e,K()),n;if(t===6)rt(e,r);else{if(s=e.current.alternate,!(r&30)&&!ip(s)&&(t=ss(e,r),t===2&&(o=ko(e),o!==0&&(r=o,t=Zo(e,o))),t===1))throw n=qn,Nt(e,0),rt(e,r),ge(e,K()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(x(345));case 2:Et(e,pe,He);break;case 3:if(rt(e,r),(r&130023424)===r&&(t=Bl+500-K(),10<t)){if(Ur(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=No(Et.bind(null,e,pe,He),t);break}Et(e,pe,He);break;case 4:if(rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var l=31-Fe(r);o=1<<l,l=t[l],l>s&&(s=l),r&=~o}if(r=s,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lp(r/1960))-r,10<r){e.timeoutHandle=No(Et.bind(null,e,pe,He),r);break}Et(e,pe,He);break;case 5:Et(e,pe,He);break;default:throw Error(x(329))}}}return ge(e,K()),e.callbackNode===n?Ec.bind(null,e):null}function Zo(e,t){var n=Rn;return e.current.memoizedState.isDehydrated&&(Nt(e,t).flags|=256),e=ss(e,t),e!==2&&(t=pe,pe=n,t!==null&&Yo(t)),e}function Yo(e){pe===null?pe=e:pe.push.apply(pe,e)}function ip(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],o=s.getSnapshot;s=s.value;try{if(!Ie(o(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rt(e,t){for(t&=~Ul,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Fe(t),r=1<<n;e[n]=-1,t&=~r}}function sa(e){if(F&6)throw Error(x(327));nn();var t=Ur(e,0);if(!(t&1))return ge(e,K()),null;var n=ss(e,t);if(e.tag!==0&&n===2){var r=ko(e);r!==0&&(t=r,n=Zo(e,r))}if(n===1)throw n=qn,Nt(e,0),rt(e,t),ge(e,K()),n;if(n===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Et(e,pe,He),ge(e,K()),null}function Hl(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(cn=K()+500,ps&&yt())}}function Ot(e){ot!==null&&ot.tag===0&&!(F&6)&&nn();var t=F;F|=1;var n=Pe.transition,r=I;try{if(Pe.transition=null,I=1,e)return e()}finally{I=r,Pe.transition=n,F=t,!(F&6)&&yt()}}function Vl(){ye=Xt.current,A(Xt)}function Nt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zf(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(Cl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qr();break;case 3:an(),A(me),A(le),Ml();break;case 5:Ll(r);break;case 4:an();break;case 13:A(H);break;case 19:A(H);break;case 10:Pl(r.type._context);break;case 22:case 23:Vl()}n=n.return}if(b=e,Z=e=pt(e.current,null),te=ye=t,X=0,qn=null,Ul=gs=Ft=0,pe=Rn=null,Tt!==null){for(t=0;t<Tt.length;t++)if(n=Tt[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=s,r.next=l}n.pending=r}Tt=null}return e}function jc(e,t){do{var n=Z;try{if(Tl(),$r.current=es,br){for(var r=V.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}br=!1}if(Rt=0,q=Y=V=null,Ln=!1,Yn=0,Al.current=null,n===null||n.return===null){X=1,qn=t,Z=null;break}e:{var o=e,l=n.return,i=n,a=t;if(t=te,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,v=i,h=v.tag;if(!(v.mode&1)&&(h===0||h===11||h===15)){var f=v.alternate;f?(v.updateQueue=f.updateQueue,v.memoizedState=f.memoizedState,v.lanes=f.lanes):(v.updateQueue=null,v.memoizedState=null)}var y=Qi(l);if(y!==null){y.flags&=-257,Gi(y,l,i,o,t),y.mode&1&&Wi(o,c,t),t=y,a=c;var g=t.updateQueue;if(g===null){var w=new Set;w.add(a),t.updateQueue=w}else g.add(a);break e}else{if(!(t&1)){Wi(o,c,t),Wl();break e}a=Error(x(426))}}else if(U&&i.mode&1){var $=Qi(l);if($!==null){!($.flags&65536)&&($.flags|=256),Gi($,l,i,o,t),El(un(a,i));break e}}o=a=un(a,i),X!==4&&(X=2),Rn===null?Rn=[o]:Rn.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=ac(o,a,t);Di(o,p);break e;case 1:i=a;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(dt===null||!dt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=uc(o,i,t);Di(o,k);break e}}o=o.return}while(o!==null)}Nc(n)}catch(S){t=S,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(!0)}function Tc(){var e=ts.current;return ts.current=es,e===null?es:e}function Wl(){(X===0||X===3||X===2)&&(X=4),b===null||!(Ft&268435455)&&!(gs&268435455)||rt(b,te)}function ss(e,t){var n=F;F|=2;var r=Tc();(b!==e||te!==t)&&(He=null,Nt(e,t));do try{ap();break}catch(s){jc(e,s)}while(!0);if(Tl(),F=n,ts.current=r,Z!==null)throw Error(x(261));return b=null,te=0,X}function ap(){for(;Z!==null;)Pc(Z)}function up(){for(;Z!==null&&!Rd();)Pc(Z)}function Pc(e){var t=_c(e.alternate,e,ye);e.memoizedProps=e.pendingProps,t===null?Nc(e):Z=t,Al.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=np(n,t),n!==null){n.flags&=32767,Z=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{X=6,Z=null;return}}else if(n=tp(n,t,ye),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);X===0&&(X=5)}function Et(e,t,n){var r=I,s=Pe.transition;try{Pe.transition=null,I=1,cp(e,t,n,r)}finally{Pe.transition=s,I=r}return null}function cp(e,t,n,r){do nn();while(ot!==null);if(F&6)throw Error(x(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Vd(e,o),e===b&&(Z=b=null,te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xr||(xr=!0,Lc(Ar,function(){return nn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Pe.transition,Pe.transition=null;var l=I;I=1;var i=F;F|=4,Al.current=null,sp(e,n),Sc(n,e),_f(To),Br=!!jo,To=jo=null,e.current=n,op(n),Fd(),F=i,I=l,Pe.transition=o}else e.current=n;if(xr&&(xr=!1,ot=e,rs=s),o=e.pendingLanes,o===0&&(dt=null),zd(n.stateNode),ge(e,K()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ns)throw ns=!1,e=Go,Go=null,e;return rs&1&&e.tag!==0&&nn(),o=e.pendingLanes,o&1?e===Ko?Fn++:(Fn=0,Ko=e):Fn=0,yt(),null}function nn(){if(ot!==null){var e=au(rs),t=Pe.transition,n=I;try{if(Pe.transition=null,I=16>e?16:e,ot===null)var r=!1;else{if(e=ot,ot=null,rs=0,F&6)throw Error(x(331));var s=F;for(F|=4,C=e.current;C!==null;){var o=C,l=o.child;if(C.flags&16){var i=o.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for(C=c;C!==null;){var v=C;switch(v.tag){case 0:case 11:case 15:Mn(8,v,o)}var h=v.child;if(h!==null)h.return=v,C=h;else for(;C!==null;){v=C;var f=v.sibling,y=v.return;if(wc(v),v===c){C=null;break}if(f!==null){f.return=y,C=f;break}C=y}}}var g=o.alternate;if(g!==null){var w=g.child;if(w!==null){g.child=null;do{var $=w.sibling;w.sibling=null,w=$}while(w!==null)}}C=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,C=l;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Mn(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,C=p;break e}C=o.return}}var d=e.current;for(C=d;C!==null;){l=C;var m=l.child;if(l.subtreeFlags&2064&&m!==null)m.return=l,C=m;else e:for(l=d;C!==null;){if(i=C,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:vs(9,i)}}catch(S){Q(i,i.return,S)}if(i===l){C=null;break e}var k=i.sibling;if(k!==null){k.return=i.return,C=k;break e}C=i.return}}if(F=s,yt(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(as,e)}catch{}r=!0}return r}finally{I=n,Pe.transition=t}}return!1}function oa(e,t,n){t=un(n,t),t=ac(e,t,1),e=ct(e,t,1),t=ce(),e!==null&&(er(e,1,t),ge(e,t))}function Q(e,t,n){if(e.tag===3)oa(e,e,n);else for(;t!==null;){if(t.tag===3){oa(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=uc(t,e,1),t=ct(t,e,1),e=ce(),t!==null&&(er(t,1,e),ge(t,e));break}}t=t.return}}function dp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,b===e&&(te&n)===n&&(X===4||X===3&&(te&130023424)===te&&500>K()-Bl?Nt(e,0):Ul|=n),ge(e,t)}function $c(e,t){t===0&&(e.mode&1?(t=dr,dr<<=1,!(dr&130023424)&&(dr=4194304)):t=1);var n=ce();e=Ye(e,t),e!==null&&(er(e,t,n),ge(e,n))}function fp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$c(e,n)}function pp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(t),$c(e,n)}var _c;_c=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,ep(e,t,n);he=!!(e.flags&131072)}else he=!1,U&&t.flags&1048576&&Fu(t,Zr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lr(e,t),e=t.pendingProps;var s=sn(t,le.current);tn(t,n),s=Fl(null,t,r,e,s,n);var o=Ol();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ve(r)?(o=!0,Gr(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,$l(t),s.updater=ms,t.stateNode=s,s._reactInternals=t,Oo(t,r,e,n),t=Do(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Sl(t),ue(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lr(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=mp(r),e=Le(r,e),s){case 0:t=zo(null,t,r,e,n);break e;case 1:t=Yi(null,t,r,e,n);break e;case 11:t=Ki(null,t,r,e,n);break e;case 14:t=Zi(null,t,r,Le(r.type,e),n);break e}throw Error(x(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),zo(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Yi(e,t,r,s,n);case 3:e:{if(pc(t),e===null)throw Error(x(387));r=t.pendingProps,o=t.memoizedState,s=o.element,Uu(e,t),Jr(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=un(Error(x(423)),t),t=Xi(e,t,r,n,s);break e}else if(r!==s){s=un(Error(x(424)),t),t=Xi(e,t,r,n,s);break e}else for(we=ut(t.stateNode.containerInfo.firstChild),ke=t,U=!0,Re=null,n=Du(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===s){t=Xe(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return Bu(t),e===null&&Mo(t),r=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,Po(r,s)?l=null:o!==null&&Po(r,o)&&(t.flags|=32),fc(e,t),ue(e,t,l,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return hc(e,t,n);case 4:return _l(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ln(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Ki(e,t,r,s,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,o=t.memoizedProps,l=s.value,z(Yr,r._currentValue),r._currentValue=l,o!==null)if(Ie(o.value,l)){if(o.children===s.children&&!me.current){t=Xe(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){l=o.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ge(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?a.next=a:(a.next=v.next,v.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ro(o.return,n,t),i.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(x(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),Ro(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ue(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,tn(t,n),s=Ne(s),r=r(s),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,s=Le(r,t.pendingProps),s=Le(r.type,s),Zi(e,t,r,s,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Le(r,s),Lr(e,t),t.tag=1,ve(r)?(e=!0,Gr(t)):e=!1,tn(t,n),ic(t,r,s),Oo(t,r,s,n),Do(null,t,r,!0,e,n);case 19:return mc(e,t,n);case 22:return dc(e,t,n)}throw Error(x(156,t.tag))};function Lc(e,t){return su(e,t)}function hp(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 Te(e,t,n,r){return new hp(e,t,n,r)}function Ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mp(e){if(typeof e=="function")return Ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cl)return 11;if(e===dl)return 14}return 2}function pt(e,t){var n=e.alternate;return n===null?(n=Te(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fr(e,t,n,r,s,o){var l=2;if(r=e,typeof e=="function")Ql(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ut:return $t(n.children,s,o,t);case ul:l=8,s|=8;break;case so:return e=Te(12,n,t,s|2),e.elementType=so,e.lanes=o,e;case oo:return e=Te(13,n,t,s),e.elementType=oo,e.lanes=o,e;case lo:return e=Te(19,n,t,s),e.elementType=lo,e.lanes=o,e;case Ba:return ys(n,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:l=10;break e;case Ua:l=9;break e;case cl:l=11;break e;case dl:l=14;break e;case et:l=16,r=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Te(l,n,t,s),t.elementType=e,t.type=r,t.lanes=o,t}function $t(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function ys(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Ba,e.lanes=n,e.stateNode={isHidden:!1},e}function eo(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function to(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vp(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Os(0),this.expirationTimes=Os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Gl(e,t,n,r,s,o,l,i,a){return e=new vp(e,t,n,i,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$l(o),e}function gp(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 Mc(e){if(!e)return mt;e=e._reactInternals;e:{if(zt(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ve(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var n=e.type;if(ve(n))return Mu(e,n,t)}return t}function Rc(e,t,n,r,s,o,l,i,a){return e=Gl(n,r,!0,e,s,o,l,i,a),e.context=Mc(null),n=e.current,r=ce(),s=ft(n),o=Ge(r,s),o.callback=t??null,ct(n,o,s),e.current.lanes=s,er(e,s,r),ge(e,r),e}function ws(e,t,n,r){var s=t.current,o=ce(),l=ft(s);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ge(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ct(s,t,l),e!==null&&(Oe(e,s,l,o),Nr(e,s,l)),l}function os(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function la(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Kl(e,t){la(e,t),(e=e.alternate)&&la(e,t)}function yp(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zl(e){this._internalRoot=e}ks.prototype.render=Zl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));ws(e,t,null,null)};ks.prototype.unmount=Zl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ot(function(){ws(null,e,null,null)}),t[Ze]=null}};function ks(e){this._internalRoot=e}ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=du();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&&pu(e)}};function Yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ia(){}function wp(e,t,n,r,s){if(s){if(typeof r=="function"){var o=r;r=function(){var c=os(l);o.call(c)}}var l=Rc(t,r,e,0,null,!1,!1,"",ia);return e._reactRootContainer=l,e[Ze]=l.current,Wn(e.nodeType===8?e.parentNode:e),Ot(),l}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var i=r;r=function(){var c=os(a);i.call(c)}}var a=Gl(e,0,!1,null,null,!1,!1,"",ia);return e._reactRootContainer=a,e[Ze]=a.current,Wn(e.nodeType===8?e.parentNode:e),Ot(function(){ws(t,a,n,r)}),a}function Ss(e,t,n,r,s){var o=n._reactRootContainer;if(o){var l=o;if(typeof s=="function"){var i=s;s=function(){var a=os(l);i.call(a)}}ws(t,l,e,s)}else l=wp(n,t,e,s,r);return os(l)}uu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=En(t.pendingLanes);n!==0&&(hl(t,n|1),ge(t,K()),!(F&6)&&(cn=K()+500,yt()))}break;case 13:Ot(function(){var r=Ye(e,1);if(r!==null){var s=ce();Oe(r,e,1,s)}}),Kl(e,1)}};ml=function(e){if(e.tag===13){var t=Ye(e,134217728);if(t!==null){var n=ce();Oe(t,e,134217728,n)}Kl(e,134217728)}};cu=function(e){if(e.tag===13){var t=ft(e),n=Ye(e,t);if(n!==null){var r=ce();Oe(n,e,t,r)}Kl(e,t)}};du=function(){return I};fu=function(e,t){var n=I;try{return I=e,t()}finally{I=n}};go=function(e,t,n){switch(t){case"input":if(uo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=fs(r);if(!s)throw Error(x(90));Va(r),uo(r,s)}}}break;case"textarea":Qa(e,n);break;case"select":t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}};qa=Hl;ba=Ot;var kp={usingClientEntryPoint:!1,Events:[nr,Wt,fs,Xa,Ja,Hl]},xn={findFiberByHostInstance:jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xp={bundleType:xn.bundleType,version:xn.version,rendererPackageName:xn.rendererPackageName,rendererConfig:xn.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=nu(e),e===null?null:e.stateNode},findFiberByHostInstance:xn.findFiberByHostInstance||yp,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 Sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sr.isDisabled&&Sr.supportsFiber)try{as=Sr.inject(xp),Ue=Sr}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kp;Se.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yl(t))throw Error(x(200));return gp(e,t,null,n)};Se.createRoot=function(e,t){if(!Yl(e))throw Error(x(299));var n=!1,r="",s=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Gl(e,1,!1,null,null,n,!1,r,s),e[Ze]=t.current,Wn(e.nodeType===8?e.parentNode:e),new Zl(t)};Se.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=nu(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e){return Ot(e)};Se.hydrate=function(e,t,n){if(!xs(t))throw Error(x(200));return Ss(null,e,t,!0,n)};Se.hydrateRoot=function(e,t,n){if(!Yl(e))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,s=!1,o="",l=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Rc(t,null,e,1,n??null,s,!1,o,l),e[Ze]=t.current,Wn(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new ks(t)};Se.render=function(e,t,n){if(!xs(t))throw Error(x(200));return Ss(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!xs(e))throw Error(x(40));return e._reactRootContainer?(Ot(function(){Ss(null,null,e,!1,function(){e._reactRootContainer=null,e[Ze]=null})}),!0):!1};Se.unstable_batchedUpdates=Hl;Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xs(n))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return Ss(e,t,n,!1,r)};Se.version="18.3.1-next-f1338f8080-20240426";function Oc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oc)}catch(e){console.error(e)}}Oc(),Oa.exports=Se;var Sp=Oa.exports,aa=Sp;no.createRoot=aa.createRoot,no.hydrateRoot=aa.hydrateRoot;const Cp="modulepreload",Ep=function(e){return"/"+e},ua={},jp=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),i=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=Promise.allSettled(n.map(a=>{if(a=Ep(a),a in ua)return;ua[a]=!0;const c=a.endsWith(".css"),v=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${v}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":Cp,c||(h.as="script"),h.crossOrigin="",h.href=a,i&&h.setAttribute("nonce",i),document.head.appendChild(h),c)return new Promise((f,y)=>{h.addEventListener("load",f),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(l){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l}return s.then(l=>{for(const i of l||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},Tp={plus:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M5 12h14"}),u.jsx("path",{d:"M12 5v14"})]})},x:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M18 6 6 18"}),u.jsx("path",{d:"m6 6 12 12"})]})},"chevron-left":{node:u.jsx("path",{d:"m15 18-6-6 6-6"}),sw:2},"arrow-left":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m12 19-7-7 7-7"}),u.jsx("path",{d:"M19 12H5"})]}),sw:2},"corner-up-left":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m9 14-5-5 5-5"}),u.jsx("path",{d:"M4 9h8a8 8 0 0 1 8 8v2"})]}),sw:2},"chevron-right":{node:u.jsx("path",{d:"m9 18 6-6-6-6"}),sw:2},"chevron-down":{node:u.jsx("path",{d:"m6 9 6 6 6-6"}),sw:2},check:{node:u.jsx("path",{d:"M20 6 9 17l-5-5"}),sw:2},blank:{node:null},"circle-check":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m4.8 8 2 2L11.5 5.5"})]})},"circle-x":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m5.4 5.4 5.2 5.2"}),u.jsx("path",{d:"m10.6 5.4-5.2 5.2"})]})},"circle-check-dashed":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"}),u.jsx("path",{d:"m4.8 8 2 2L11.5 5.5"})]})},"circle-x-dashed":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"}),u.jsx("path",{d:"m5.4 5.4 5.2 5.2"}),u.jsx("path",{d:"m10.6 5.4-5.2 5.2"})]})},"circle-minus":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"M4.8 8h6.4"})]})},"circle-dashed":{vb:16,sw:1.5,node:u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"})},ellipsis:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor",stroke:"none"})]})},"message-square":{node:u.jsx(u.Fragment,{children:u.jsx("path",{d:"M21 15a3 3 0 0 1-3 3H8l-5 3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3Z"})})},stop:{node:u.jsx("rect",{x:"5",y:"5",width:"14",height:"14",rx:"2"}),sw:2},send:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m5 12 7-7 7 7"}),u.jsx("path",{d:"M12 19V5"})]}),sw:2},download:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 15V3"}),u.jsx("path",{d:"m7 10 5 5 5-5"}),u.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"})]})},copy:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),u.jsx("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})]})},"folder-open":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 14.5 8.5 6H21l-2.5 8.5a2 2 0 0 1-1.9 1.5H7.9A2 2 0 0 1 6 14.5Z"}),u.jsx("path",{d:"M3 6h5l2-2h4"}),u.jsx("path",{d:"M3 6v12a2 2 0 0 0 2 2h12"})]})},globe:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M3 12h18"}),u.jsx("path",{d:"M12 3c2.5 2.5 3.8 5.5 3.8 9S14.5 18.5 12 21c-2.5-2.5-3.8-5.5-3.8-9S9.5 5.5 12 3Z"})]})},eye:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"}),u.jsx("circle",{cx:"12",cy:"12",r:"3"})]})},clock:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 6v6l4 2"})]})},search:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("path",{d:"m21 21-4.3-4.3"})]})},star:{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z"})},"star-filled":{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z",fill:"currentColor"})},filter:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M4 6h16"}),u.jsx("path",{d:"M7 12h10"}),u.jsx("path",{d:"M10 18h4"})]})},info:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 16v-4"}),u.jsx("path",{d:"M12 8h.01"})]}),sw:2},"triangle-alert":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m12 3 9 17H3Z"}),u.jsx("path",{d:"M12 9v4"}),u.jsx("path",{d:"M12 17h.01"})]}),sw:1.8},pencil:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 20h9"}),u.jsx("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})},terminal:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m4 17 6-6-6-6"}),u.jsx("path",{d:"M12 19h8"})]}),sw:2},command:{node:u.jsx("path",{d:"M18 9a3 3 0 1 0-3-3v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3Z"})},keyboard:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),u.jsx("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M8 12h.01M12 12h.01M16 12h.01M7 16h10"})]})},"git-merge":{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"6",cy:"6",r:"3"}),u.jsx("circle",{cx:"18",cy:"18",r:"3"}),u.jsx("path",{d:"M6 21V9a9 9 0 0 0 9 9"})]})},"git-compare":{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"18",cy:"18",r:"3"}),u.jsx("circle",{cx:"6",cy:"6",r:"3"}),u.jsx("path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}),u.jsx("path",{d:"M11 18H8a2 2 0 0 1-2-2V9"})]})},"file-diff":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 3h8l4 4v14H6z"}),u.jsx("path",{d:"M14 3v5h5"}),u.jsx("path",{d:"M9 12h6M9 16h3"})]})},"rotate-ccw":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),u.jsx("path",{d:"M3 3v5h5"})]})},"list-checks":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m3 7 2 2 4-4"}),u.jsx("path",{d:"m3 17 2 2 4-4"}),u.jsx("path",{d:"M13 6h8"}),u.jsx("path",{d:"M13 12h8"}),u.jsx("path",{d:"M13 18h8"})]})},archive:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M21 8v13H3V8"}),u.jsx("path",{d:"M1 3h22v5H1z"}),u.jsx("path",{d:"M10 12h4"})]})},trash:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 6h18"}),u.jsx("path",{d:"M8 6V4h8v2"}),u.jsx("path",{d:"M19 6l-1 14H6L5 6"}),u.jsx("path",{d:"M10 11v5"}),u.jsx("path",{d:"M14 11v5"})]})},play:{node:u.jsx("path",{d:"M6 3.5 19.5 12 6 20.5Z"})},pause:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),u.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]})},settings:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},graph:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"6.5",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"1.8",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"11.8",width:"5",height:"4.4",rx:"1"}),u.jsx("path",{d:"M6.5 8.7 h2.2 M11.5 4 h-1.3 q-1.5 0-1.5 1.5 v7 q0 1.5 1.5 1.5 h1.3"})]})},sessions:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M4.6 6.5 l2.6 2.3 -2.6 2.3 M9 12.4 h4"})]})},evals:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 15.5 v-11"}),u.jsx("path",{d:"M2.5 15.5 h13"}),u.jsx("rect",{x:"4.6",y:"10",width:"2.6",height:"3.5",rx:"0.5"}),u.jsx("rect",{x:"8.7",y:"7",width:"2.6",height:"6.5",rx:"0.5"}),u.jsx("path",{d:"M13 6 l1.4 1.4 L16.5 3.6"})]})},issues:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 3.5 h13 v8.4 h-7 l-3.6 3 v-3 h-2.4 z"}),u.jsx("path",{d:"M5.4 6.7 h7.2 M5.4 9.2 h4.8"})]})},projects:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M9 2.2 16 5.8 9 9.4 2 5.8Z"}),u.jsx("path",{d:"M2 9.4 9 13 16 9.4"}),u.jsx("path",{d:"M2 12.8 9 16.4 16 12.8"})]})},files:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6.3 2.4h5.1l3.6 3.6v6.1"}),u.jsx("path",{d:"M2.5 5.9h5.4l3.6 3.6v6.1h-9z"}),u.jsx("path",{d:"M7.9 5.9v3.6h3.6"})]})},"session-list":{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"3",cy:"4.5",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"3",cy:"9",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"3",cy:"13.5",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("path",{d:"M6 4.5h9.5M6 9h9.5M6 13.5h9.5"})]})},"panel-left":{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6.4 2.5H3.1a1.6 1.6 0 0 0-1.6 1.6v9.8a1.6 1.6 0 0 0 1.6 1.6h3.3z",fill:"currentColor",stroke:"none",opacity:"0.4"}),u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M6.4 2.5v13"})]})},"panel-right":{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M11.6 2.5h3.3a1.6 1.6 0 0 1 1.6 1.6v9.8a1.6 1.6 0 0 1-1.6 1.6h-3.3z",fill:"currentColor",stroke:"none",opacity:"0.4"}),u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M11.6 2.5v13"})]})},"issue-opened":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),u.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"})]})},"issue-closed":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),u.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"})]})},lock:{vb:16,sw:1.3,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1.2"}),u.jsx("path",{d:"M5.5 7 V5 a2.5 2.5 0 0 1 5 0 V7"})]})},paperclip:{vb:16,sw:1.3,node:u.jsx("path",{d:"M12.5 7.2 L7 12.6 a2.6 2.6 0 0 1-3.7-3.7 L9 3.2 a1.7 1.7 0 0 1 2.4 2.4 L5.8 11.2 a0.8 0.8 0 0 1-1.2-1.2 L9.7 5"})},loader:{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.3"}),u.jsx("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5"})]})},"collapse-all":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M9 9H4v1h5V9z"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z"})]})},maximize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2 6V2h4"}),u.jsx("path",{d:"M14 6V2h-4"}),u.jsx("path",{d:"M2 10v4h4"}),u.jsx("path",{d:"M14 10v4h-4"})]})},minimize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 2v4H2"}),u.jsx("path",{d:"M10 2v4h4"}),u.jsx("path",{d:"M6 14v-4H2"}),u.jsx("path",{d:"M10 14v-4h4"})]})}};function Cs({name:e,size:t=16,strokeWidth:n,className:r,style:s}){const o=Tp[e];if(!o)return console.error(`unknown icon: ${e}`),u.jsx("svg",{width:t,height:t,viewBox:"0 0 16 16",className:r,style:s,"aria-hidden":"true",children:u.jsx("rect",{x:"2",y:"2",width:"12",height:"12",rx:"2",fill:"none",stroke:"currentColor",strokeDasharray:"3 2"})});const l=o.vb||24;return u.jsx("svg",{width:t,height:t,viewBox:`0 0 ${l} ${l}`,fill:o.fill??"none",stroke:o.stroke??"currentColor",strokeWidth:n??o.sw??1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:r,style:s,children:o.node})}function wh({open:e=!1,size:t=12,className:n=""}){return u.jsx(Cs,{name:"chevron-right",size:t,className:`caret${e?" is-open":""}${n?` ${n}`:""}`})}function Pp({icon:e,label:t,onClick:n,className:r,size:s,iconClassName:o,...l}){return u.jsx("button",{type:"button",className:r,"data-tip":t,"aria-label":t,onClick:n,...l,children:u.jsx(Cs,{name:e,size:s,className:o})})}const kh=()=>u.jsx("svg",{className:"si-agent-glyph",viewBox:"0 0 24 24","aria-hidden":"true",children:u.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})}),xh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 160 160","aria-hidden":"true",children:[u.jsx("path",{d:"M135 80C135 49.6243 110.376 25 80 25C49.6243 25 25 49.6243 25 80C25 110.376 49.6243 135 80 135V149C41.8924 149 11 118.108 11 80C11 41.8924 41.8924 11 80 11C118.108 11 149 41.8924 149 80C149 118.108 118.108 149 80 149V135C110.376 135 135 110.376 135 80Z"}),u.jsx("path",{d:"M50.9235 54.3903C54.0216 52.577 58.0026 53.6185 59.8161 56.7165L70.9294 75.7009C72.6642 78.6649 72.6642 82.3345 70.9294 85.2985L59.8161 104.283C58.0026 107.381 54.0216 108.422 50.9235 106.609C47.8255 104.796 46.784 100.815 48.5973 97.7165L58.6745 80.4997L48.5973 63.2829C46.784 60.1848 47.8255 56.2038 50.9235 54.3903Z"}),u.jsx("path",{d:"M112 89.5C115.59 89.5 118.5 92.4101 118.5 96C118.5 99.5899 115.59 102.5 112 102.5H85C81.4101 102.5 78.5 99.5899 78.5 96C78.5 92.4101 81.4101 89.5 85 89.5H112Z"})]}),Sh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 240 300","aria-hidden":"true",children:[u.jsx("path",{d:"M180 240H60V120H180V240Z",opacity:"0.35"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z"})]}),Ch=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 45 45","aria-hidden":"true",children:[u.jsx("path",{fillRule:"evenodd",d:"M9.3 9.3h19.8v13.2h-6.6v6.6H15.9v6.6H9.3Zm6.6 6.6v6.6h6.6v-6.6Z"}),u.jsx("path",{d:"M29.1 22.5h6.6v13.2h-6.6Z"})]}),Xl={common:{new:"new",none:"none",idle:"idle",sessions:"sessions",session:"session",loading:"loading…",noVersions:"no versions yet — this spec is the latest ground truth.",cancel:"cancel",save:"save",close:"close"},status:{working:"working",idle:"idle",offline:"offline",starting:"starting",review:"review",done:"done","close-pending":"close-pending",parked:"parked",error:"error",asking:"asking",queued:"queued",unknown:"unknown",corrupt:"corrupt",retired:"retired",merged:"merged",active:"active",drift:"drift",pending:"pending"},sessionZone:{need:"needs you",run:"running",offline:"offline",archive:"archive",showHistory:({n:e})=>`show ${e} dormant session${e===1?"":"s"} (history is kept, never deleted)`,hideHistory:({n:e})=>`fold the ${e} dormant session${e===1?"":"s"} away`,showArchive:({n:e})=>`show ${e} archived session${e===1?"":"s"}`,hideArchive:({n:e})=>`fold the ${e} archived session${e===1?"":"s"} away`},specView:{missing:"no such node: {id}"},fileView:{none:"no file selected"},fileTree:{aria:"project file tree",specs:"Specs",files:"Files",graph:"Spec graph"},diskTree:{loading:"loading…"},dockModes:{collapse:"Collapse sidebar",expand:"Expand sidebar",aria:"dock mode",explorer:"Explorer",sessions:"Sessions",searchNodes:"Search nodes",searchSessions:"Search sessions",collapseFolders:"Collapse folders"},dockSessions:{new:"New session",archive:"Archived sessions",rowTip:"open · ctrl-click opens in a new tab · alt-click scopes the graph to this session"},sessionPicker:{label:"choose a session",filter:"filter sessions",empty:"no matching sessions",newSession:"new session…",overlaySessions:"sessions touching this node"},contextDock:{title:"Context",scenarios:"Scenarios",issues:"Issues",open:"show context dock",close:"hide context dock",loading:"loading scenarios…",loadingIssues:"loading issues…",noScenarios:"no scenarios declared",noIssues:"no open issues",states:{pass:"pass",fail:"fail",stalePass:"stale pass",staleFail:"stale fail",missing:"unmeasured",empty:"unmeasured"}},empty:{title:"Nothing open",hint:"You closed the last document. Pick one to open — nothing is lost, the tabs simply hold nothing right now.",search:"Search for a node",explorer:"Browse the explorer"},tabs:{aria:"open documents",close:"close tab",graph:"Graph",spec:"Spec",sessions:"Sessions",evals:"Evals",issues:"Issues",settings:"Settings",issueNew:"New issue",openInNewTab:"Open in a new tab",menuLabel:"tab actions",menuClose:"Close",menuCloseOthers:"Close others",menuSplit:"Send to split pane",surfaceTerminal:"terminal",surfaceConversation:"conversation",surfaceDiff:"diff"},documentActions:{aria:"document actions"},place:{graph:"Graph",sessions:"Sessions",evals:"Evals",issues:"Issues",settings:"Settings",empty:"Workspace",projects:"Projects"},nav:{railLabel:"main navigation",graph:"Spec Node Graph",explorer:"Explorer",spec:"Spec",sessions:"Sessions",spec:"Spec",evals:"Evals",issues:"Issues",settings:"Settings",projectChip:"project: {name} — switch project",projectChipLogin:"project: {name} — sign in to manage projects",projectOnline:"online",projectOffline:"offline",allProjects:"All projects"},projects:{title:"Projects",count:"{n} project(s)",pagination:"project pages",previousPage:"previous project page",nextPage:"next project page",pageOf:"page {page} of {pages}",current:"current",empty:"No projects yet — add a repository by its root path, or run `spex serve` in a repo and its backend registers itself here.",absent:"This deployment serves a single project — the multi-project catalog is not available here.",open:"open",add:"add project",addTitle:"Add project",addPlaceholder:"/abs/path/to/repo",addSubmit:"add",addBusy:"adding…",browseParent:"parent folder",browseHome:"home folder",browseGo:"go",browseNew:"new project",browseLoading:"loading…",browseCreating:"creating…",folderList:"folders",folderEmpty:"no subfolders",folderMissing:"folder does not exist",initGit:"initialize Git repository",initSpex:"initialize SpexCode",spexInitialized:"SpexCode initialized",harnessTargets:"harness targets",alreadyAdded:"already in the project catalog",configTitle:"edit spexcode.json",configEditor:"spexcode.json contents",configLoading:"loading…",configSave:"save",configSaving:"saving…",configReload:"reload",configSaved:"saved",configInvalid:"top level must be a valid JSON object",gatewayIcon:"gateway icon",projectIcon:"project icon",editGatewayIcon:"edit gateway icon",editProjectIcon:"edit project icon",gatewaySettings:"gateway settings",iconSearch:"search icons",iconSources:"icon sources",iconSourceFeatured:"Featured",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"Brands",iconSearching:"searching…",iconSearchEmpty:"no matching icons",iconSearchFailed:"icon search unavailable",setupTitle:"setup — init / doctor",harnessLabel:"harness:",harnessRequired:"pick at least one harness target — init refuses to guess",init:"init",doctor:"doctor",running:"running…",start:"start",startBusy:"starting…",opOk:"{op}: exit 0 — succeeded",opFail:"{op}: exit {code} — failed",actionFailed:"the gateway rejected the request",removeRegistration:"remove project registration",removeRegistrationHint:"removes the SpexCode entry, never the local source",removeTitle:"Remove project registration?",removeWarning:"This is deliberately a stop-and-confirm action. The project will leave the SpexCode catalog.",removeKeepsFiles:"The local directory, Git history, and source files stay exactly where they are. Disk deletion is not part of this action.",removeStopsFirst:"An online backend or active session blocks removal; the project password is cleared after success.",removeUnderstand:"I understand this removes only the catalog registration, not the local directory.",removeTypePrompt:"Type this exact confirmation phrase:",removeTypeLabel:"removal confirmation phrase",removeConfirm:"confirm registration removal",removeBusy:"removing…",passwordTitle:"project password",passwordPlaceholder:"new project password",passwordSet:"set",passwordClear:"clear",adminPassword:"admin password",adminPasswordPlaceholder:"new administrator password",adminUngated:"No administrator password is set — management works from this machine only. Set one to sign in remotely; you stay signed in.",health:{probing:"checking…",running:"running",unreachable:"unreachable",stopped:"backend stopped — start it from here"}},credential:{adminTitle:"administrator sign-in",adminBody:"This is a private agent workspace. Enter the administrator password to manage projects.",projectTitle:"unlock {name}",projectBody:"This project is protected. Enter its access password to continue.",lockedTitle:"management is locked",lockedBody:"No administrator password is configured, so remote management is locked. Set one from the machine running the gateway, then sign in here.",passwordLabel:"password",wrong:"Incorrect password — try again.",failed:"Sign-in failed — the gateway did not accept the request.",checking:"checking…",unlock:"unlock"},statusBar:{hidden:"hidden — restore from the bar",restore:"restore hidden status items",nodes:({n:e})=>`${e} spec nodes — merged · active · drift · pending. Open the graph`,evals:({pass:e,fail:t,stalePass:n,staleFail:r,empty:s})=>`eval scenarios: ${e} fresh pass, ${t} fresh fail, ${n} stale pass, ${r} stale fail, ${s} unmeasured`,openEvals:"open the Evals view",issues:({n:e})=>`${e} open issues — open the issues view`,sessions:"sessions by launcher — open the sessions console",launcher:({name:e})=>`${e}: running / needs-you / other — open the sessions console`,launcherSummary:({n:e})=>`${e} launchers: running / needs-you / other — open the sessions console`},backend:{offline:"backend unavailable — displayed data may be stale",retry:"retry",stale:"stale"},hud:{helpTitle:"help — keymap & legend",loading:"loading specs from git…",loadError:"backend unreachable — the graph failed to load.",retry:"retry"},viewError:{title:"This view crashed.",retry:"Retry"},evalsFeed:{title:"Evals",kind:{video:"video",image:"image",all:"all"},summary:({n:e})=>`${e} current`,datasetEmpty:"No evals yet.",noMatches:"No evals match this view.",annotate:"open & annotate",inSession:"measured by this session",okdTip:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,okChip:({n:e})=>`${e} ok’d`,okChipTitle:"show the fresh, human-ok’d scenarios the feed default-hides",filedBy:({by:e})=>`filed by ${e}`,filedAt:({at:e})=>`filed ${e} ago`,sessionTag:"session",freshnessDeferred:"freshness is pending; this row is ordered but not scored"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"All",search:"Search",searchIssues:"Search issues",searchEvals:"Search evals",rowMenu:"row actions",copyAddress:"Copy address",clearSearch:"Clear search",showing:({shown:e,total:t})=>`showing ${e} of ${t}`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"Current",needsReview:"Needs review",reviewed:"Reviewed",filters:"Filters",activeFilters:({n:e})=>`${e} active filter${e===1?"":"s"}`,facetStore:"Store",facetVerdict:"Verdict",facetFreshness:"Freshness",facetKind:"Evidence",facetAuthor:"Author",facetLabel:"Label",facetNode:"Spec node",facetFiler:"Filer",facetState:"State",facetReview:"Human review",facetSession:"Source session",sessionPresent:"Present",sessionMissing:"Missing",openedBy:({by:e})=>`opened by ${e}`,openedAt:({at:e})=>`opened ${e} ago`,verdict:{pass:"Pass",fail:"Fail",unmeasured:"Unmeasured",deferred:"Freshness pending",unscored:"Unscored"},freshness:{fresh:"Fresh",stale:"Stale"},pagination:"Pagination",previous:"Previous",next:"Next",prevPage:"Previous Page",nextPage:"Next Page",page:({n:e})=>`Page ${e}`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`no eval found for ${e} · ${t}`,evalUnmeasured:"this scenario has not been measured yet",scopeFallback:"this session worktree no longer exists; the measurements below are from trunk",issueNotFound:({id:e})=>`no issue found for ${e}`,backToEvals:"← all evals",backToIssues:"← all issues"},detail:{sideReading:"result",sideFiler:"filed by",sideOk:"human-ok",sideStore:"store",sideLabels:"labels",sideOriginator:"opened by",sideNodes:"spec nodes",backToEvals:"back to evals",backToIssues:"back to issues",sideQueue:"continue reviewing",queuePrev:"previous",queueNext:"up next",sideIssue:"issue",sideNode:"spec node"},annotator:{title:"annotator",play:"play",pause:"pause",fullscreen:"fullscreen",exitFullscreen:"exit fullscreen",capturing:"capturing frame…",failed:"failed — is the backend up?",comments:({n:e})=>e?`review track (${e})`:"review track",abOlder:"older eval (‹ toward the A / reproduced bug)",abNewer:"newer eval (toward the B / verified fix ›)",abLatest:"latest",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`older results (${e})`,okd:"human-ok",okBy:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,menuReview:"review commands",cmd:{okDesc:"sign off this result — you reviewed it and agree with its verdict; binds to THIS latest result only, monotonic (no un-ok)"}},thread:{anchorNow:"anchor",anchorTitle:"anchor this comment to the current frame",mentionActor:"insert @ — mention a session",mentionNode:"insert [[ — link a spec node",reviewCommands:"insert / — review commands",resolved:"resolved",resolvedBy:"resolved by {by}",openRemark:"open",resolve:"resolve",resolveTitle:"resolve this remark — a second party’s judgment that it is addressed (monotonic: no un-resolve)",retract:"retract",retractTitle:"withdraw your own unresolved remark — removes it from the thread",anchorDegraded:"this step is gone from the current eval — the m:ss is the frozen original, not seekable",originatorIssue:"open the session that filed this issue: {by}",originatorEval:"open the session that filed this eval: {by}"},sessionEval:{btn:"eval",btnTitle:"open this session's measured eval evidence on the Evals page",scopeDoor:"Back to session terminal",none:"no evaluation for this session yet",unavailable:"evaluation unavailable until the session model loads successfully.",loadFailed:({reason:e})=>`session evaluation failed to load — ${e}`,export:"export",exportTitle:"export this evaluation as a self-contained HTML report",empty:"nothing measured for this session yet.",unmeasured:"unmeasured",unknownCoverage:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`},time:{justNow:"now",minutes:({n:e})=>`${e}m`,hours:({n:e})=>`${e}h`,days:({n:e})=>`${e}d`,weeks:({n:e})=>`${e}w`},legend:{title:"help · keymap & legend",close:"close (esc)",secBoard:"graph keys",secPopup:"node-info popup",secStatus:"status dot",secOp:"overlay op",secOpSub:"(a worktree's pending change)",secBadges:"badges",secRing:"node ring",graph:{move:"move up / down the focused column (siblings)",parent:"to the parent",child:"to the nearest child",zoom:"zoom in / out · reset to overview",info:"open the node-info popup (or double-click a node)",search:"search & jump across nodes, sessions, issues & scenarios",overlayCycle:"cycle through nodes a worktree is changing (⇧ reverse)",fresh:"start a fresh session on the focus node",evals:"open the evals page (the project’s current measured loss)",newChild:"new child node under the focus (chord)",del:"delete the focused node (chord)",settings:"open settings (language…)",help:"open this help"},shell:{newSession:"open new session",evals:"open evals page",search:"search sessions",sessionPrevious:"select previous session",sessionNext:"select next session",sessionExpand:"expand the selected session",sessionCollapse:"collapse the selected session",dockToggle:"toggle explorer dock",dockMode:"switch explorer / sessions dock mode",contextToggle:"toggle context dock",tabClose:"close active tab",tabNext:"select next tab",tabPrevious:"select previous tab",tabSplit:"send active tab to split pane",commandBox:"toggle the session Command Box"},explorer:{menu:"open the row menu for the focused explorer row",openInNewTab:"open the focused explorer row in a new tab"},popup:{switch:"switch pane (spec / history)",scroll:"scroll · reveal the next version",lens:"walk the tree behind the popup — it follows the focus",enter:"inert — the popup is a read-only surface",esc:"close the popup"},statusRows:{merged:"spec & code in sync",active:"in-flight — the dot pulses",drift:"governed code is ahead of its spec",pending:"no committed version yet"},opRows:{added:"added",edited:"edited",deleted:"deleted",moved:"moved"},badgeDrift:"drift: N commits of code ahead of the spec",badgeVer:"version: N content commits to the node's spec.md",ringDashed:"dashed = uncommitted overlay",ringSolid:"solid = committed; ring colour = the author session",ringGhost:"translucent “ghost” = an added node not yet on main"},sessionWindow:{badgeLabel:"sessions on this graph",menuLabel:"session actions",rowTitle:"click to lock the graph onto this session · double-click to open it",lockedTitle:"graph locked to this session — click again to release",emptyBefore:"no live worktrees — press ",emptyAfter:" to start one",lock:"lock on graph",rename:"rename",attach:"open in terminal…",select:"select…",detach:"remove from parent",resume:"resume & relaunch",quarantine:"quarantine record",quarantineTitle:"quarantine unreadable record",quarantineConfirm:"quarantine",quarantineAdapter:"adapter",quarantineThread:"native thread",quarantineTmux:"tmux session",quarantineWorktree:"worktree path",quarantineBranch:"branch",quarantineRestore:"restore quarantined record",close:"close",closeTitle:"close “{name}”?",closeConfirm:"This closes the session and removes its worktree. Any uncommitted changes are lost.",renameTitle:"rename “{name}”",renamePlaceholder:"display name (blank to reset)",attachTitle:"attach to “{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"copy",attachCopied:"copied"},sessionSelect:{selected:({n:e})=>`${e} selected`,close:"close selected",closeTitle:({n:e})=>`close ${e} selected session${e===1?"":"s"}?`,closeConfirm:"This closes the selected sessions and removes their worktrees. Any uncommitted changes are lost."},lockHint:{cycleBefore:"press ",cycleNext:" next",cyclePrev:" previous",cycleAfter:({n:e})=>` through this session's ${e} changed nodes`,singleChanged:"this session changed 1 node",empty:"this session has no pending spec changes",release:"release",releaseTitle:"release the lock (or click the session again)"},nodeView:{carries:"Carries",paneSpec:"spec",paneHistory:"history",paneIssues:"issues",paneEval:"eval",paneEdit:"edit",filterIssues:"filter issues…",filterScenarios:"filter scenarios…",filterNone:"nothing matches the filter.",noEdit:"no pending change — this node has no live edit in flight.",editCommitted:"committed",editDirty:"uncommitted",pendingEdits:({n:e})=>`${e} session${e===1?"":"s"} editing this node`,openIssues:({n:e})=>`${e} open`,closedIssues:({n:e})=>`${e} closed`,noIssues:"no issues linked to this node yet.",hint:"←→/hl/tab switch · j/k/↑↓ scroll · ⇧+nav walk the tree · esc back",statusLabel:"status:",versionLabel:"version:",lastEditedBy:"last edited by:",governs:"Governs",proseNode:"No file owned · prose node",rawTitle:"raw source",rawOwner:"human",rawNote:"rarely changed · needs approval",expandedTitle:"expanded spec",expandedOwner:"agent",expandedNote:"versioned often · must match raw source",filesChanged:({n:e})=>`${e} file${e===1?"":"s"} changed`,loadingChange:"loading diff…",noChange:"no recorded change yet — this spec is the latest ground truth.",diffLabel:"spec line diff",loadingHistory:"loading history…",eval:{noScenarios:"no scenarios declared — this node has no eval.md to measure.",noReadings:"no measurements yet — run `spex eval add` to file one. The declared scenarios:",staleAxes:({axes:e})=>`stale: ${e} moved since this eval`,staleLabel:"stale:",staleReadoutTitle:"this eval is behind — the axes that moved since it, and for the code axis which governed files drifted and by how many commits (+N)",danglingTitle:"this scenario was renamed or deleted — its remarks have no eval to attach to, but stay resolvable via their refs",danglingGone:"scenario gone",pass:"✓ pass",fail:"✗ fail",note:"≈ note",legacy:"legacy",expected:"expected:",noteLabel:"note:",loadingTranscript:"loading transcript…",loadingData:"loading data…",data:"structured data (JSON)",dataInvalid:"structured data — invalid JSON",miss:"miss original file — the evidence was pruned from the cache.",noImage:"no evidence — the agent attested without a capture.",shotAlt:({scenario:e})=>`captured evidence for ${e}`,openDetail:"open this scenario's eval detail page",passCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & passing`,failCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & failing`}},stats:{statusTitle:({n:e,status:t})=>`${e} ${t} — click to walk them`,issueTitle:({n:e})=>`${e} distinct open issue${e===1?"":"s"} linked to the tree — click to walk the nodes carrying them`,scorePass:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & passing — click to walk the nodes carrying them`,scoreFail:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & failing — click to walk the nodes carrying them`,scoreStalePass:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale pass (code moved since the last passing measurement) — click to walk the nodes carrying them`,scoreStaleFail:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale fail (code moved since the last failing measurement) — click to walk the nodes carrying them`,scoreEmpty:({n:e})=>`${e} unmeasured or unscored scenario${e===1?"":"s"} (a blind spot) — click to walk the nodes carrying them`},score:{pass:"current pass — measured, fresh, and passing",fail:"current fail — measured, fresh, and failing",stalePass:"stale — last measured a pass, now out of date",staleFail:"stale — last measured a fail, now out of date",empty:"no current score — never measured, or no pass/fail verdict",missing:"not measured yet — no eval filed for this scenario",count:({satisfied:e,total:t,outstanding:n})=>`${e} of ${t} scenario${t===1?"":"s"} satisfied (fresh & passing)`+(n?` · ${n} outstanding — failing, stale, or unmeasured`:""),openList:"open the Evals list filtered to this node"},specNode:{liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,more:({n:e})=>`${e} more`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`${e} ahead`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?" (uncommitted)":""}`,openIssues:({n:e})=>`${e} open issue${e===1?"":"s"} — open node info to read them`,expandable:({n:e})=>`${e} child${e===1?"":"ren"} — focus to drill in`},explorerMenu:{nodeLabel:"node actions",fileLabel:"file actions",revealOnGraph:"reveal on graph",revealOwner:"reveal owning node",copyLink:"copy link",copyPath:"copy path",copyNodeId:"copy node id",copied:"copied",failed:"copy failed"},nodeMenu:{menuLabel:"node actions",info:"node info",copyUrl:"copy node URL",copied:"copied",failed:"copy failed",newSession:"new session",newChild:"new child node…",del:"delete node…"},proseActions:{groupLabel:"selected passage — send to a session, or edit it here",nodeGroupLabel:"current node actions",nodeSend:"Send current node to a session",nodeCopy:"Copy node link",nodeCopied:"node link copied",act:{send:"Send to Session",editSend:"Edit & Send",explain:"Explain",manual:"Edit Manually"},prompt:{edit:"Rewrite this passage of the spec so it says what it should. Commit the change with its node on your branch.",polish:"Polish the wording of this passage. Keep its meaning exactly as it is.",explain:"Explain this passage — what it means and why it is there. Answer here in the session; do not change the spec."},sendLabel:"send this passage to a session",presets:"insert / — preset intents",addressTip:"who receives it — a live session, or a new one",newWith:"new · {launcher}",jumpTip:"open the session after sending",editLabel:"edit this passage",messagePlaceholder:"a message to send with it (optional)",lines:"lines {a}–{b}",target:"to",newSession:"a new session…",send:"Send",sendJump:"Jump to Session",sentTo:"passage sent to {name}",sendFailed:"the session did not accept the message",commit:"Commit",committing:"committing…",committed:"committed {sha} — the node re-versions from it",noChange:"nothing changed, so nothing was committed",editNote:"commits to this checkout as a real change to spec.md"},session:{menuLabel:"session actions — rename, attach, lock on graph, close",opsTitle:"nodes this session is changing — ctrl-click opens in a new tab · right-click for session actions",lockTitle:"ctrl-click opens in a new tab · right-click for session actions, including lock on graph",newSession:"New Session",newSessionTitle:"New Session",searchTitle:"Search",resizeList:"Resize sessions list",issuesOff:"The issues workflow is off.",issuesEmpty:"No issues yet.",issuesNoMatch:"No issues match this view.",issuesLoading:"loading issues…",issuesFocusNode:"focus this node on the graph",issuesReplies:({n:e})=>`${e} ${e===1?"reply":"replies"}`,issuesOpenOnStore:"Open on {store} ↗",issuesThreadsTitle:"threads",issuesStoreAll:"all",issuesStoreLabel:"store",issuesNew:"New",issuesNewTitle:"New issue",issuesTitleLabel:"title",issuesBodyLabel:"description",issuesWrite:"Write",issuesPreview:"Preview",issuesPreviewEmpty:"nothing to preview yet",issuesNodesHint:"write [[id]] to link a node",issuesCancel:"Cancel",issuesSend:"Send",issuesPost:"Create",issuesSending:"sending…",issuesPostFailed:"post failed",issuesClosing:"closing…",issuesCloseIssue:"Close issue",issuesCloseIssueTitle:"close this issue — the work is finished or the forge issue should be closed",issuesActing:"working…",issuesPromote:"Promote",issuesPromoteTitle:"promote this local issue to the forge — create the real forge issue first, then close the local thread with the permalink",issuesReplyPlaceholder:"reply…",issuesConcernPlaceholder:"concern — one line",issuesBodyPlaceholder:"details (optional)",inputPlaceholder:"describe the work · @ session · [[ spec · / command · ⏎ to launch · ⇧⏎ newline",menuCommands:"commands",menuPresets:"command presets",menuSpecNodes:"spec nodes",menuSessions:"sessions",menuHint:"↑↓ pick · ⏎ insert",hint:{before:"type ",mid:" to reference a spec · ",after:" to apply a command preset"},harnessLabel:"agent launcher",launcherLabel:"launcher",launcherTip:"edit spexcode.json / spexcode.local.json to change launchers",tabTerminal:"terminal",tabConversation:"conversation",tabDiff:"diff",resumeInputTitle:"resume this session?",resumeInputMessage:"This session is waiting for a resume. Confirm before sending the first key.",resumeInputConfirm:"resume and send key",surfaceSwitcher:"session surface",diffLoading:"loading diff…",diffEmpty:"no branch changes",diffNoCommits:"this branch has no commits of its own yet",diffGroupCommitted:"committed ({n})",diffGroupUncommitted:"not committed ({n})",diffUncommitted:"uncommitted",diffUnavailable:"branch diff unavailable — this session no longer has a diffable branch",diffMerged:"merged into {base}",diffCommit:"open commit {commit}",diffFailed:"diff unavailable: {message}",diffScope:"branch diff",diffClose:"leave the branch diff, back to the session",diffComment:"comment on lines",diffCommentPlaceholder:"leave a review comment",diffCommentSave:"save comment",diffEdit:"edit comment",diffRetract:"retract comment",diffSend:"send comments to agent",diffMode:"diff mode",diffSplit:"split",diffUnified:"unified",diffWrap:"wrap lines",diffFiles:"changed files",diffPrevious:"previous change",diffNext:"next change",diffSent:"sent {n} comment(s)",diffUnsent:"{n} unsent comment(s)",tabEval:"eval",tabEvalTitle:"open this session's evaluation on the Evals page",toolbarLabel:"session terminal toolbar",conversationToolbarLabel:"session conversation toolbar",switchToConversation:"switch to conversation",switchToTerminal:"switch to terminal",executionRunning:"running",filesTitle:"session files",filesEmptyTitle:"no posted session files",filesListLabel:"posted session files",previewFile:"preview file",downloadFile:"download file",fileDownloadFailed:"file download failed (HTTP {status})",filePreviewFailed:"file preview failed (HTTP {status})",fileCopyUnavailable:"copying file paths is unavailable in this browser",addResourceTab:"open a posted file or web service",resourceMenuLabel:"posted files and web services",resourceMenuEmpty:"all posted resources are already open",refreshResourceTab:"refresh {name}",unreadResources:"{n} new posted resource(s)",closeResourceTab:"close {name}",surfaceLabel:"current session surface",toolbarToolsLabel:"session tools",evalLoading:"loading this session's eval summary",evalDormant:"this session's eval summary is not computed — open Eval to measure it",evalDormantLast:"last known — this retained session is not being recomputed",evalDormantKnown:({summary:e})=>`last known, not being recomputed — ${e}`,evalUnavailable:"this session's eval summary is unavailable",evalUpdating:({summary:e})=>`updating this session's eval summary — last known: ${e}`,evalDisconnected:({summary:e})=>e?`graph stream disconnected — last known: ${e}`:"graph stream disconnected — eval summary has no last-known value",evalFailedKnown:({summary:e})=>`eval summary update failed — last known: ${e}`,evalPass:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and passing`,evalFail:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and failing`,evalReview:({n:e})=>`${e} measured scenario${e===1?"":"s"} stale or unscored and needing review`,evalBlind:({n:e})=>`${e} declared scenario${e===1?"":"s"} not measured`,evalUnknown:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:s})=>`open this session's Evals page — ${e} fresh pass, ${t} fresh fail, ${n} need review, ${r} unmeasured, ${s} unknown`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"open Command Box for an atomic prompt or graph command",commandClose:"close Command Box",commandPlaceholder:"Send an atomic prompt or run a graph command",commandSend:"send from Command Box",relaunch:"relaunch",relaunchTitle:"relaunch and resume this session",offlineReadOnly:"⏻ agent offline · read only",archivedReadOnly:"▤ archived · read only",relaunchResume:"⏵ relaunch & resume",merges:({n:e})=>`merged ×${e}`,mergesTitle:"times merged to main",offlineMsg:"⏻ offline — no live process for this worktree.",offlineSubBefore:"the worktree and its session ",offlineSubAfter:" are intact. relaunch to resume the same conversation.",archiveTitle:"Archive",archiveCount:({n:e})=>`${e} closed session${e===1?"":"s"}`,archiveViewAll:({n:e})=>`View all ${e}`,archiveSearch:"Search archive",archiveEmpty:"no matching closed sessions",archiveToday:"Today",archiveYesterday:"Yesterday",archiveUnknownDate:"Time unknown",shelfRestore:"restore",rootDrop:"move to top level",outcomeWorking:"working...",outcomeSending:"sending...",outcomeAccepted:"accepted — handing it to the agent",outcomeDelivered:"delivered",outcomeQueued:"accepted, waiting for the terminal transport — retry is safe",outcomeUnconfirmed:"delivery not confirmed — retry is safe",deliveryFailed:({status:e})=>`not delivered (HTTP ${e})`,msgError:"⚠ not delivered — retry",launchSend:"launch this session",attachTitle:"attach a file (or paste / drop) — uploaded to the session machine, its /tmp path inserted",attachError:"⚠ upload failed",attachQueued:"queued",attachDone:"attached",attachCancelled:"cancelled",attachRetry:"retry upload",attachCancel:"cancel upload",attachDismiss:"dismiss attachment status",codeSelectionAttachments:"code selection attachments",removeCodeSelection:"remove code selection",cmd:{evalDesc:"open this session's Evals page — affected scenarios and measured evidence",stopTitle:"stop this session (kill the agent, keep the worktree — resumable)",stopDesc:"stop — kill the agent + tmux but KEEP the worktree, so it can be resumed",closeTitle:"close this session (removes the worktree)",closeDesc:"close — remove the worktree + branch, discarding the work (= row menu → Close)"}},settings:{title:"Settings",close:"close (esc)",secLanguage:"Language",uiLanguage:"Interface language",secTheme:"Theme",secTerminal:"Terminal",defaultSessionSurface:"Default session view",terminalFontSize:"Font size",secShortcuts:"Shortcuts",bindPrompt:"Press a key…",shortcutsHint:"Click a key to rebind it. Nav & chord keys are fixed. (A game controller binds to actions, not keys — rebinding here never touches the pad.)",reset:"Reset to defaults"},search:{title:"search nodes & sessions",placeholder:"search nodes, sessions…",empty:"no match",hint:"↑↓ pick · ⏎ jump · esc close",kind:{spec:"node",session:"session"}},mobile:{worked:"worked",more:"more",specsTab:"specs",sessionsTab:"sessions",evalsTab:"evals",issuesTab:"issues",childrenTab:({n:e})=>`children ${e}`,liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,noSessions:"no live sessions — tap + above to start one",newSession:"new session",newPlaceholder:"describe the task for a new agent…",launch:"launch",launching:"launching…",launchFailed:"launch failed — the backend refused or is unreachable",back:"back",noEvents:"nothing recorded yet — status changes and messages will land here",you:"you",inputPlaceholder:"message the agent…",send:"send",stop:"stop",stopFailed:"not stopped — the agent did not take the interrupt",copy:"copy",copied:"copied",copyFailed:"copy failed — selection kept",sendFailed:"not delivered — the agent may be offline",offlineHint:"agent offline — messages cannot be delivered until it is relaunched"}},Np={common:{new:"新建",none:"无",idle:"空闲",sessions:"会话",session:"会话",loading:"加载中…",noVersions:"尚无版本——此规格即最新的事实依据。",cancel:"取消",save:"保存",close:"关闭"},status:{working:"工作中",idle:"空闲",offline:"离线",starting:"启动中",review:"待审查",done:"已完成","close-pending":"待关闭",parked:"驻留",error:"错误",asking:"待答",queued:"排队中",unknown:"未知",corrupt:"损坏",retired:"已退役",merged:"已合并",active:"进行中",drift:"偏移",pending:"待定"},sessionZone:{need:"待你处理",run:"自运行",offline:"离线",archive:"归档",showHistory:({n:e})=>`展开 ${e} 个休眠会话(历史仅收纳,绝不删除)`,hideHistory:({n:e})=>`收起这 ${e} 个休眠会话`,showArchive:({n:e})=>`展开 ${e} 个已归档会话`,hideArchive:({n:e})=>`收起这 ${e} 个已归档会话`},specView:{missing:"没有这个节点:{id}"},fileView:{none:"未选择文件"},fileTree:{aria:"项目文件树",specs:"规格",files:"文件",graph:"规格图谱",collapseAll:"收起所有规格文件夹"},diskTree:{loading:"正在加载…"},dockModes:{collapse:"收起侧边栏",expand:"展开侧边栏",aria:"停靠栏模式",explorer:"资源管理器",sessions:"会话",searchNodes:"搜索节点",searchSessions:"搜索会话",collapseFolders:"收起所有文件夹"},dockSessions:{new:"新建会话",archive:"已归档会话",rowTip:"打开 · ctrl+点击在新标签打开 · alt+点击把图锁定到该会话"},sessionPicker:{label:"选择会话",filter:"筛选会话",empty:"没有匹配的会话",newSession:"新建会话…",overlaySessions:"正在修改此节点的会话"},contextDock:{title:"上下文",scenarios:"场景",issues:"议题",open:"显示上下文栏",close:"隐藏上下文栏",loading:"正在加载场景…",loadingIssues:"正在加载议题…",noScenarios:"没有声明场景",noIssues:"没有未关闭的议题",states:{pass:"通过",fail:"失败",stalePass:"旧通过",staleFail:"旧失败",missing:"未测量",empty:"未测量"}},empty:{title:"当前没有打开的文档",hint:"你关掉了最后一个文档。选一个打开即可——什么都没丢,只是现在标签栏是空的。",search:"搜索节点",explorer:"在资源管理器里浏览"},tabs:{aria:"已打开的文档",close:"关闭标签",graph:"图",spec:"规格",sessions:"会话",evals:"评测",issues:"议题",settings:"设置",issueNew:"新建议题",openInNewTab:"在新标签打开",menuLabel:"标签操作",menuClose:"关闭",menuCloseOthers:"关闭其他",menuSplit:"送入分屏",surfaceTerminal:"终端",surfaceConversation:"对话",surfaceDiff:"差异"},documentActions:{aria:"文档操作"},place:{graph:"节点图",sessions:"会话",evals:"评测",issues:"议题",settings:"设置",empty:"工作区",projects:"项目"},nav:{railLabel:"主导航",graph:"规格节点图",explorer:"资源管理器",spec:"规格",sessions:"会话面板",spec:"规格",evals:"Evals",issues:"议题",settings:"设置",projectChip:"项目:{name} — 切换项目",projectChipLogin:"项目:{name} — 登录管理项目",projectOnline:"在线",projectOffline:"离线",allProjects:"全部项目"},projects:{title:"项目",count:"{n} 个项目",pagination:"项目分页",previousPage:"上一页项目",nextPage:"下一页项目",pageOf:"第 {page} / {pages} 页",current:"当前",empty:"还没有项目 — 按仓库根路径添加一个,或在仓库里运行 `spex serve`,它的 backend 会自己注册到这里。",absent:"此部署只服务单个项目 — 这里没有多项目目录。",open:"打开",add:"添加项目",addTitle:"添加项目",addPlaceholder:"/仓库/根/绝对路径",addSubmit:"添加",addBusy:"添加中…",browseParent:"上级目录",browseHome:"主目录",browseGo:"前往",browseNew:"新建项目",browseLoading:"加载中…",browseCreating:"创建中…",folderList:"文件夹",folderEmpty:"没有子目录",folderMissing:"文件夹不存在",initGit:"初始化 Git 仓库",initSpex:"初始化 SpexCode",spexInitialized:"已初始化 SpexCode",harnessTargets:"harness 目标",alreadyAdded:"已在项目目录中",configTitle:"编辑 spexcode.json",configEditor:"spexcode.json 内容",configLoading:"加载中…",configSave:"保存",configSaving:"保存中…",configReload:"重新加载",configSaved:"已保存",configInvalid:"顶层内容必须是有效的 JSON 对象",gatewayIcon:"gateway 图标",projectIcon:"项目图标",editGatewayIcon:"编辑 gateway 图标",editProjectIcon:"编辑项目图标",gatewaySettings:"gateway 设置",iconSearch:"搜索图标",iconSources:"图标来源",iconSourceFeatured:"精选",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"品牌",iconSearching:"搜索中…",iconSearchEmpty:"没有匹配的图标",iconSearchFailed:"图标搜索暂不可用",setupTitle:"项目操作 — init / doctor",harnessLabel:"harness:",harnessRequired:"至少选择一个 harness 目标 — init 不会替你猜",init:"init",doctor:"doctor",running:"运行中…",start:"启动",startBusy:"启动中…",opOk:"{op}:exit 0 — 成功",opFail:"{op}:exit {code} — 失败",actionFailed:"gateway 拒绝了该请求",removeRegistration:"移除项目登记",removeRegistrationHint:"只移除 SpexCode 目录,不删除本地源码",removeTitle:"移除项目登记?",removeWarning:"这是一个需要停下来确认的操作。项目会从 SpexCode 项目目录中移除。",removeKeepsFiles:"本地项目目录、Git 历史和源码不会被删除。磁盘删除不属于这个操作。",removeStopsFirst:"在线 backend 或活动会话会阻止移除;项目密码会在成功后清除。",removeUnderstand:"我确认这里只移除登记,不删除本地目录。",removeTypePrompt:"请输入下面的确认短语:",removeTypeLabel:"移除确认短语",removeConfirm:"确认移除登记",removeBusy:"移除中…",passwordTitle:"项目密码",passwordPlaceholder:"新的项目密码",passwordSet:"设置",passwordClear:"清除",adminPassword:"管理员密码",adminPasswordPlaceholder:"新的管理员密码",adminUngated:"尚未设置管理员密码 — 管理仅限本机。设置后即可远程登录;设置动作本身会保持你的登录态。",health:{probing:"检测中…",running:"运行中",unreachable:"不可达",stopped:"backend 已停止 — 可在此启动"}},credential:{adminTitle:"管理员登录",adminBody:"这是一个私有的 agent 工作台。输入管理员密码以管理项目。",projectTitle:"解锁 {name}",projectBody:"该项目受密码保护。输入访问密码以继续。",lockedTitle:"管理已锁定",lockedBody:"尚未配置管理员密码,远程管理已锁定。请在运行 gateway 的机器上设置密码,然后回到这里登录。",passwordLabel:"密码",wrong:"密码不正确 — 请重试。",failed:"登录失败 — gateway 未接受请求。",checking:"校验中…",unlock:"解锁"},statusBar:{hidden:"已隐藏 —— 从状态栏恢复",restore:"恢复隐藏的状态项",nodes:({n:e})=>`${e} 个规格节点 —— 已合并 · 进行中 · 漂移 · 待建。打开节点图`,evals:({pass:e,fail:t,stalePass:n,staleFail:r,empty:s})=>`评测场景:${e} 最新通过,${t} 最新失败,${n} 过期通过,${r} 过期失败,${s} 未测量`,openEvals:"打开 Evals 看板",issues:({n:e})=>`${e} 个未关闭议题 —— 打开议题看板`,sessions:"按 launcher 分组的会话 —— 打开会话面板",launcher:({name:e})=>`${e}:运行中 / 等你 / 其他 —— 打开会话面板`,launcherSummary:({n:e})=>`${e} 个 launcher:运行中 / 等你 / 其他 —— 打开会话面板`},backend:{offline:"后端不可达 —— 当前显示的数据可能已陈旧",retry:"重试",stale:"陈旧"},hud:{helpTitle:"帮助 — 按键与图例",loading:"正在从 git 加载规格…",loadError:"无法连接后端 —— 看板加载失败。",retry:"重试"},viewError:{title:"这个视图崩溃了。",retry:"重试"},evalsFeed:{title:"评测",kind:{video:"视频",image:"图片",all:"全部"},summary:({n:e})=>`${e} 条当前`,datasetEmpty:"暂无评测。",noMatches:"当前视图没有匹配的评测。",annotate:"打开并标注",inSession:"由本会话测得",okdTip:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,okChip:({n:e})=>`${e} 已签核`,okChipTitle:"显示被默认隐藏的已签核场景",filedBy:({by:e})=>`由 ${e} 提交`,filedAt:({at:e})=>`${e}前提交`,sessionTag:"会话",freshnessDeferred:"新鲜度仍在计算;此行可排序但尚未评分"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"全部",search:"搜索",searchIssues:"搜索 issues",searchEvals:"搜索 evals",rowMenu:"行操作",copyAddress:"复制地址",clearSearch:"清除搜索",showing:({shown:e,total:t})=>`显示 ${e} / ${t} 条`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"当前",needsReview:"待人工复核",reviewed:"已人工复核",filters:"筛选",activeFilters:({n:e})=>`${e} 个已启用筛选`,facetStore:"存储",facetVerdict:"判定",facetFreshness:"新鲜度",facetKind:"证据",facetAuthor:"发起者",facetLabel:"标签",facetNode:"规格节点",facetFiler:"提交者",facetState:"状态",facetReview:"人工复核",facetSession:"来源会话",sessionPresent:"仍在",sessionMissing:"已不在",openedBy:({by:e})=>`由 ${e} 发起`,openedAt:({at:e})=>`${e}前发起`,verdict:{pass:"通过",fail:"未通过",unmeasured:"未测量",deferred:"等待新鲜度",unscored:"未评分"},freshness:{fresh:"最新",stale:"过期"},pagination:"分页",previous:"上一页",next:"下一页",prevPage:"上一页",nextPage:"下一页",page:({n:e})=>`第 ${e} 页`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`找不到 ${e} · ${t} 的评测`,evalUnmeasured:"该场景尚未测量",scopeFallback:"该 session 的工作区已不存在,下面是主干上的读数",issueNotFound:({id:e})=>`找不到 issue ${e}`,backToEvals:"← 全部评测",backToIssues:"← 全部 issues"},detail:{sideReading:"结果",sideFiler:"提交者",sideOk:"人工签核",sideStore:"存储",sideLabels:"标签",sideOriginator:"发起者",sideNodes:"规格节点",backToEvals:"返回评测列表",backToIssues:"返回 issues 列表",sideQueue:"继续查看",queuePrev:"前面",queueNext:"接下来",sideIssue:"议题",sideNode:"规格节点"},annotator:{title:"标注器",play:"播放",pause:"暂停",fullscreen:"全屏",exitFullscreen:"退出全屏",capturing:"正在截取画面…",failed:"失败 — 后端在跑吗?",comments:({n:e})=>e?`评审轨道(${e})`:"评审轨道",abOlder:"更早的 eval(‹ 靠近 A / 复现出的 bug)",abNewer:"更新的 eval(靠近 B / 验证过的修复 ›)",abLatest:"最新",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`更早的结果(${e})`,okd:"已签核",okBy:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,menuReview:"评审命令",cmd:{okDesc:"签核这条结果 — 你已复核并认可其判定;只绑定当前最新结果,单调(无撤销)"}},thread:{anchorNow:"锚定",anchorTitle:"把这条评论锚定到当前帧",mentionActor:"插入 @ —— 提及会话",mentionNode:"插入 [[ —— 引用规格节点",reviewCommands:"插入 / —— 评审命令",resolved:"已解决",resolvedBy:"由 {by} 解决",openRemark:"未解决",resolve:"解决",resolveTitle:"解决此评注 —— 第二人的判定(单调:不可撤销解决)",retract:"撤回",retractTitle:"撤回你自己未解决的评注 —— 从线程中移除",anchorDegraded:"该步骤已不在当前测量中——此 m:ss 为原始冻结值,无法跳转",originatorIssue:"打开发起此 issue 的会话:{by}",originatorEval:"打开记录此评测的会话:{by}"},sessionEval:{btn:"评测",btnTitle:"在 Evals 页打开此会话已测得的评测证据",scopeDoor:"返回会话终端",none:"此会话暂无评测",unavailable:"会话模型成功加载前无法显示评测。",loadFailed:({reason:e})=>`会话评测加载失败 — ${e}`,export:"导出",exportTitle:"导出本次评测为自包含的 HTML 报告",empty:"该会话尚无测量。",unmeasured:"未测量",unknownCoverage:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`},time:{justNow:"刚刚",minutes:({n:e})=>`${e} 分钟`,hours:({n:e})=>`${e} 小时`,days:({n:e})=>`${e} 天`,weeks:({n:e})=>`${e} 周`},legend:{title:"帮助 · 按键与图例",close:"关闭(esc)",secBoard:"面板按键",secPopup:"节点信息弹窗",secStatus:"状态点",secOp:"叠加操作",secOpSub:"(工作树的待定改动)",secBadges:"徽标",secRing:"节点边框",graph:{move:"在聚焦列内上/下移动(同级节点)",parent:"前往父节点",child:"前往最近的子节点",zoom:"放大 / 缩小 · 重置为概览",info:"打开节点信息弹窗(或双击节点)",search:"跨节点、会话、议题与场景搜索并跳转",overlayCycle:"在工作树正在修改的节点间循环(⇧ 反向)",fresh:"在聚焦节点上开启一个全新会话",evals:"打开 evals 页(项目当前的实测损失)",newChild:"在聚焦节点下新建子节点(连击)",del:"删除聚焦节点(连击)",settings:"打开设置(语言…)",help:"打开此帮助"},shell:{newSession:"打开新会话",evals:"打开评测页面",search:"搜索会话",sessionPrevious:"选择上一个会话",sessionNext:"选择下一个会话",sessionExpand:"展开当前会话",sessionCollapse:"折叠当前会话",dockToggle:"切换资源管理器停靠栏",dockMode:"切换资源管理器 / 会话停靠模式",contextToggle:"切换上下文停靠栏",tabClose:"关闭当前页签",tabNext:"选择下一个页签",tabPrevious:"选择上一个页签",tabSplit:"将当前页签送入分屏",commandBox:"开关会话 Command Box"},explorer:{menu:"打开当前资源管理器行的右键菜单",openInNewTab:"在新标签打开当前行"},popup:{switch:"切换页签(规格 / 历史)",scroll:"滚动 · 展开下一版本",lens:"穿透弹窗在树上移动——弹窗跟随焦点",enter:"无操作——弹窗是纯阅读界面",esc:"关闭弹窗"},statusRows:{merged:"规格与代码一致",active:"进行中——状态点会闪动",drift:"受管代码领先于其规格",pending:"尚无已提交的版本"},opRows:{added:"新增",edited:"编辑",deleted:"删除",moved:"移动"},badgeDrift:"偏移:代码领先于规格 N 次提交",badgeVer:"版本:该节点 spec.md 的 N 次内容提交",ringDashed:"虚线 = 未提交的叠加",ringSolid:"实线 = 已提交;边框颜色 = 作者会话",ringGhost:"半透明“幽灵” = 尚未进入 main 的新增节点"},sessionWindow:{badgeLabel:"此图上的会话",menuLabel:"会话操作",rowTitle:"单击将图锁定到此会话 · 双击打开它",lockedTitle:"图已锁定到此会话——再次单击解除",emptyBefore:"没有活动的工作树——按 ",emptyAfter:" 开始一个",lock:"锁定到图谱",rename:"重命名",attach:"在终端中打开…",select:"多选…",detach:"解除父级关系",resume:"恢复并重新启动",quarantine:"隔离记录",quarantineTitle:"隔离不可读记录",quarantineConfirm:"隔离",quarantineAdapter:"适配器",quarantineThread:"原生线程",quarantineTmux:"tmux 会话",quarantineWorktree:"工作树路径",quarantineBranch:"分支",quarantineRestore:"恢复已隔离记录",close:"关闭",closeTitle:"关闭“{name}”?",closeConfirm:"这将关闭会话并删除其工作树。任何未提交的更改都会丢失。",renameTitle:"重命名“{name}”",renamePlaceholder:"显示名称(留空以重置)",attachTitle:"接入“{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"复制",attachCopied:"已复制"},sessionSelect:{selected:({n:e})=>`已选择 ${e} 个`,close:"关闭所选会话",closeTitle:({n:e})=>`关闭所选的 ${e} 个会话?`,closeConfirm:"这将关闭所选会话并删除其工作树。任何未提交的更改都会丢失。"},lockHint:{cycleBefore:"按 ",cycleNext:" 下一个",cyclePrev:" 上一个",cycleAfter:({n:e})=>`,浏览此会话更改的 ${e} 个节点`,singleChanged:"此会话更改了 1 个节点",empty:"此会话没有待处理的规格更改",release:"解除",releaseTitle:"解除锁定(或再次单击该会话)"},nodeView:{carries:"携带",paneSpec:"规格",paneHistory:"历史",paneIssues:"issue",paneEval:"评测",paneEdit:"改动",filterIssues:"筛选 issue…",filterScenarios:"筛选场景…",filterNone:"没有匹配的条目。",noEdit:"暂无进行中的改动 —— 此节点没有正在编辑的会话。",editCommitted:"已提交",editDirty:"未提交",pendingEdits:({n:e})=>`${e} 个会话正在编辑此节点`,openIssues:({n:e})=>`${e} 个待办`,closedIssues:({n:e})=>`${e} 个已关闭`,noIssues:"尚无关联到此节点的 issue。",hint:"←→/hl/tab 切换 · j/k/↑↓ 滚动 · ⇧+方向 树上移动 · esc 返回",statusLabel:"状态:",versionLabel:"版本:",lastEditedBy:"最后编辑者:",governs:"管辖",proseNode:"无管辖文件 · 纯文档节点",rawTitle:"原始来源",rawOwner:"人工",rawNote:"极少改动 · 需要审批",expandedTitle:"展开规格",expandedOwner:"智能体",expandedNote:"经常更新版本 · 须与原始来源一致",filesChanged:({n:e})=>`改动 ${e} 个文件`,loadingChange:"正在加载差异…",noChange:"尚无记录的改动——此规格即最新的事实依据。",diffLabel:"规格行差异",loadingHistory:"正在加载历史…",eval:{noScenarios:"尚未声明场景 —— 此节点没有可测量的 eval.md。",noReadings:"尚无测量 —— 运行 `spex eval add` 归档一次。已声明的场景:",staleAxes:({axes:e})=>`已过期:自本次读取以来 ${e} 已变动`,staleLabel:"已过期:",staleReadoutTitle:"这条读取已落后——列出自它以来变动的轴;对于 code 轴,还显示是哪些受管文件漂移了、以及落后了几个提交(+N)",danglingTitle:"该场景已被重命名或删除——其评注无读取可依附,但仍可通过 ref 解决",danglingGone:"场景已失",pass:"✓ 通过",fail:"✗ 未通过",note:"≈ 备注",legacy:"旧版",expected:"预期:",noteLabel:"备注:",loadingTranscript:"正在加载文本记录…",loadingData:"正在加载数据…",data:"结构化数据(JSON)",dataInvalid:"结构化数据 —— 无效 JSON",miss:"原始文件缺失 —— 证据已从缓存中清除。",noImage:"无证据 —— 代理未捕获即作出判定。",shotAlt:({scenario:e})=>`${e} 的捕获证据`,openDetail:"打开该场景的 eval 详情页",passCount:({n:e})=>`${e} 个场景最新且通过`,failCount:({n:e})=>`${e} 个场景最新且未通过`}},stats:{statusTitle:({n:e,status:t})=>`${e} 个${t} —— 点击逐个走查`,issueTitle:({n:e})=>`链接到树上的不同未关闭议题共 ${e} 个 —— 点击逐个走查承载它们的节点`,scorePass:({n:e})=>`${e} 个场景测量为最新且通过 —— 点击逐个走查承载它们的节点`,scoreFail:({n:e})=>`${e} 个场景测量为最新且未通过 —— 点击逐个走查承载它们的节点`,scoreStalePass:({n:e})=>`${e} 个场景为过期通过(最近一次通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreStaleFail:({n:e})=>`${e} 个场景为过期未通过(最近一次未通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreEmpty:({n:e})=>`${e} 个场景未测量或未评分(盲点)—— 点击逐个走查承载它们的节点`},score:{pass:"当前通过 —— 已测量、最新且通过",fail:"当前未通过 —— 已测量、最新且未通过",stalePass:"已过期 —— 上次测量为通过,现已过时",staleFail:"已过期 —— 上次测量为未通过,现已过时",empty:"暂无当前评分 —— 从未测量,或无通过/未通过判定",missing:"尚未测量 —— 该场景还没有任何读数",count:({satisfied:e,total:t,outstanding:n})=>`${t} 个场景中有 ${e} 个已满足(最新且通过)`+(n?` · ${n} 个待处理 —— 未通过、已过期或未测量`:""),openList:"打开该节点的 Evals 过滤列表"},specNode:{liveEditors:({n:e})=>`${e} 个实时编辑者`,more:({n:e})=>`还有 ${e} 个`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`领先 ${e}`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?"(未提交)":""}`,openIssues:({n:e})=>`${e} 个待办 issue——打开节点信息查看`,expandable:({n:e})=>`${e} 个子节点——聚焦展开`},explorerMenu:{nodeLabel:"节点操作",fileLabel:"文件操作",revealOnGraph:"在图中定位",revealOwner:"打开所属节点",copyLink:"复制链接",copyPath:"复制路径",copyNodeId:"复制节点 id",copied:"已复制",failed:"复制失败"},nodeMenu:{menuLabel:"节点操作",info:"查看详情",copyUrl:"复制节点 URL",copied:"已复制",failed:"复制失败",newSession:"新建会话",newChild:"新建子节点…",del:"删除节点…"},proseActions:{groupLabel:"选中的正文 —— 发给会话,或就地编辑",nodeGroupLabel:"当前节点操作",nodeSend:"把当前节点发给会话",nodeCopy:"复制节点链接",nodeCopied:"节点链接已复制",act:{send:"发到会话",editSend:"改写并发送",explain:"解释",manual:"手动编辑"},prompt:{edit:"改写这段 spec 正文,让它说该说的话。改完连同它的节点一起提交到你的分支。",polish:"润色这段正文的措辞,意思一个字都不要变。",explain:"解释这段正文:它在说什么、为什么在这里。只在会话里回答,不要改 spec。"},sendLabel:"把这段正文发给一个会话",presets:"插入 / —— 预置意图",addressTip:"发给谁 —— 一个在线会话,或新建一个",newWith:"新建 · {launcher}",jumpTip:"发送后打开这个会话",editLabel:"编辑这段正文",messagePlaceholder:"一起发过去的话(可以不写)",lines:"第 {a}–{b} 行",target:"发给",newSession:"新建会话…",send:"发送",sendJump:"发送并跳转",sentTo:"正文已发给 {name}",sendFailed:"会话没有接收这条消息",commit:"提交",committing:"提交中…",committed:"已提交 {sha} —— 节点版本随之重算",noChange:"内容没变,所以什么都没提交",editNote:"会在当前 checkout 上真的提交一次 spec.md 改动"},session:{menuLabel:"会话操作 —— 重命名、attach、锁定到图谱、关闭",opsTitle:"此会话正在改动的节点 —— ctrl+点击在新标签打开 · 右键打开会话操作",lockTitle:"ctrl+点击在新标签打开 · 右键打开会话操作,包括锁定到图谱",newSession:"新建会话",newSessionTitle:"新建会话",searchTitle:"搜索",resizeList:"调整会话列表宽度",issuesOff:"issues 工作流已关闭。",issuesEmpty:"暂无 issue。",issuesNoMatch:"当前视图没有匹配的 issue。",issuesLoading:"正在加载 issues……",issuesFocusNode:"在看板上聚焦此节点",issuesReplies:({n:e})=>`${e} 条回复`,issuesOpenOnStore:"在 {store} 上打开 ↗",issuesThreadsTitle:"讨论帖",issuesStoreAll:"全部",issuesStoreLabel:"来源",issuesNew:"新建",issuesNewTitle:"新建 issue",issuesTitleLabel:"标题",issuesBodyLabel:"正文",issuesWrite:"编辑",issuesPreview:"预览",issuesPreviewEmpty:"还没有可预览的内容",issuesNodesHint:"在正文里写 [[id]] 即可关联",issuesCancel:"取消",issuesSend:"发送",issuesPost:"创建",issuesSending:"发送中……",issuesPostFailed:"发布失败",issuesClosing:"关闭中……",issuesCloseIssue:"关闭 issue",issuesCloseIssueTitle:"关闭此 issue —— 工作已完成,或真实 forge issue 应被关闭",issuesActing:"处理中……",issuesPromote:"升级",issuesPromoteTitle:"升级到 forge —— 先创建真实 forge issue,再用永久链接关闭本地线程",issuesReplyPlaceholder:"回复……",issuesConcernPlaceholder:"关切 —— 一行概述",issuesBodyPlaceholder:"详情(可选)",inputPlaceholder:"描述工作 · @ 会话 · [[ 规格 · / 命令 · ⏎ 启动 · ⇧⏎ 换行",menuCommands:"命令",menuPresets:"命令预设",menuSpecNodes:"规格节点",menuSessions:"会话",menuHint:"↑↓ 选择 · ⏎ 插入",hint:{before:"输入 ",mid:" 以引用规格 · ",after:" 以套用命令预设"},harnessLabel:"启动智能体",launcherLabel:"启动器",launcherTip:"修改 spexcode.json / spexcode.local.json 来配置启动器",tabTerminal:"终端",tabConversation:"对话",tabDiff:"差异",resumeInputTitle:"恢复此会话?",resumeInputMessage:"此会话正在等待恢复。发送第一个按键前请先确认。",resumeInputConfirm:"恢复并发送按键",surfaceSwitcher:"会话视图",diffLoading:"正在加载差异……",diffEmpty:"没有分支改动",diffNoCommits:"这个分支还没有自己的提交",diffGroupCommitted:"已提交({n})",diffGroupUncommitted:"未提交({n})",diffUncommitted:"未提交",diffUnavailable:"分支 diff 不可用——该会话已没有可对比的分支",diffMerged:"已合并到 {base}",diffCommit:"打开提交 {commit}",diffFailed:"差异不可用:{message}",diffScope:"分支差异",diffClose:"离开分支差异,回到会话",diffComment:"评论这些行",diffCommentPlaceholder:"留下评审评论",diffCommentSave:"保存评论",diffEdit:"编辑评论",diffRetract:"撤回评论",diffSend:"发送评论给智能体",diffMode:"差异模式",diffSplit:"并排",diffUnified:"统一",diffWrap:"折行",diffFiles:"变更文件",diffPrevious:"上一个改动",diffNext:"下一个改动",diffSent:"已发送 {n} 条评论",diffUnsent:"{n} 条评论未发送",tabEval:"评测",tabEvalTitle:"打开此会话在 Evals 页的评测",toolbarLabel:"会话终端工具栏",conversationToolbarLabel:"会话对话工具栏",switchToConversation:"切换到对话",switchToTerminal:"切换到终端",executionRunning:"执行中",filesTitle:"会话文件",filesEmptyTitle:"尚未发布会话文件",filesListLabel:"已发布的会话文件",previewFile:"预览文件",downloadFile:"下载文件",fileDownloadFailed:"文件下载失败(HTTP {status})",filePreviewFailed:"文件预览失败(HTTP {status})",fileCopyUnavailable:"此浏览器无法复制文件路径",addResourceTab:"打开已发布的文件或网页服务",resourceMenuLabel:"已发布的文件和网页服务",resourceMenuEmpty:"所有已发布资源均已打开",refreshResourceTab:"刷新 {name}",unreadResources:"有 {n} 个新的已发布资源",closeResourceTab:"关闭 {name}",surfaceLabel:"当前会话界面",toolbarToolsLabel:"会话工具",evalLoading:"正在载入此会话的评测概况",evalDormant:"此会话的评测概况尚未计算 — 打开 Eval 即可测量",evalDormantLast:"上次已知 — 此留存会话不再重新计算",evalDormantKnown:({summary:e})=>`上次已知,不再重新计算 — ${e}`,evalUnavailable:"此会话的评测概况不可用",evalUpdating:({summary:e})=>`正在更新此会话的评测概况 — 上次已知:${e}`,evalDisconnected:({summary:e})=>e?`图数据流已断开 — 上次已知:${e}`:"图数据流已断开 — 尚无评测概况",evalFailedKnown:({summary:e})=>`评测概况更新失败 — 上次已知:${e}`,evalPass:({n:e})=>`${e} 个场景为新鲜通过`,evalFail:({n:e})=>`${e} 个场景为新鲜失败`,evalReview:({n:e})=>`${e} 个已评测场景已过期或未评分,需人工复核`,evalBlind:({n:e})=>`${e} 个已声明场景尚未评测`,evalUnknown:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:s})=>`打开此会话的 Evals 页 — 新鲜通过 ${e},新鲜失败 ${t},待人工复核 ${n},未评测 ${r},覆盖未知 ${s}`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"打开 Command Box,发送完整指令或执行面板命令",commandClose:"关闭 Command Box",commandPlaceholder:"发送完整指令或执行面板命令",commandSend:"从 Command Box 发送",relaunch:"重新启动",relaunchTitle:"重新启动并恢复此会话",offlineReadOnly:"⏻ agent 已离线 · 内容只读",archivedReadOnly:"▤ 已归档 · 内容只读",relaunchResume:"⏵ 重新启动并恢复",merges:({n:e})=>`已合并 ×${e}`,mergesTitle:"合并到 main 的次数",offlineMsg:"⏻ 离线——此工作树没有活动进程。",offlineSubBefore:"工作树及其会话 ",offlineSubAfter:" 仍然完好。重新启动以恢复同一对话。",archiveTitle:"归档",archiveCount:({n:e})=>`${e} 个已关闭会话`,archiveViewAll:({n:e})=>`查看全部 ${e}`,archiveSearch:"搜索归档",archiveEmpty:"没有匹配的已关闭会话",archiveToday:"今天",archiveYesterday:"昨天",archiveUnknownDate:"时间未知",shelfRestore:"取回",rootDrop:"移到顶层",outcomeWorking:"正在处理...",outcomeSending:"正在发送...",outcomeAccepted:"已接收 —— 正在交给 agent",outcomeDelivered:"已送达",outcomeQueued:"已接收,正在等待终端传输 — 可安全重试",outcomeUnconfirmed:"尚未确认送达 — 可安全重试",deliveryFailed:({status:e})=>`未送达(HTTP ${e})`,msgError:"⚠ 未送达 — 重试",launchSend:"启动这个会话",attachTitle:"附加文件(或粘贴 / 拖入)—— 上传到会话所在机器,并插入其 /tmp 路径",attachError:"⚠ 上传失败",attachQueued:"等待上传",attachDone:"已附加",attachCancelled:"已取消",attachRetry:"重试上传",attachCancel:"取消上传",attachDismiss:"隐藏此附件状态",codeSelectionAttachments:"代码选区附件",removeCodeSelection:"移除代码选区",cmd:{evalDesc:"切换到此会话的 Evals 页 —— 受影响场景与实测证据",stopTitle:"停止此会话(结束智能体,保留工作树 —— 可恢复)",stopDesc:"停止 —— 结束智能体与 tmux,但保留工作树,之后可恢复",closeTitle:"关闭此会话(移除工作树)",closeDesc:"关闭 —— 移除工作树与分支,丢弃此工作(等同右键菜单 → 关闭)"}},settings:{title:"设置",close:"关闭(esc)",secLanguage:"语言",uiLanguage:"界面语言",secTheme:"主题",secTerminal:"终端",defaultSessionSurface:"默认会话界面",terminalFontSize:"字体大小",secShortcuts:"快捷键",bindPrompt:"按一个键…",shortcutsHint:"点击某个键即可重绑定。导航键与连击键固定不可改。(手柄绑定的是动作而非按键——这里的重绑定不影响手柄。)",reset:"恢复默认"},search:{title:"搜索节点与会话",placeholder:"搜索节点、会话…",empty:"没有匹配项",hint:"↑↓ 选择 · ⏎ 跳转 · esc 关闭",kind:{spec:"节点",session:"会话"}},mobile:{worked:"工作了",more:"展开",specsTab:"规格",sessionsTab:"会话",evalsTab:"评测",issuesTab:"issues",childrenTab:({n:e})=>`子节点 ${e}`,liveEditors:({n:e})=>`${e} 个在线编辑者`,noSessions:"没有运行中的会话 —— 点上方 + 新建",newSession:"新建会话",newPlaceholder:"描述要交给新 agent 的任务…",launch:"启动",launching:"启动中…",launchFailed:"启动失败 —— 后端拒绝或不可达",back:"返回",noEvents:"暂无记录 —— 状态变化和消息会出现在这里",you:"我",inputPlaceholder:"给 agent 发消息…",send:"发送",stop:"停止",stopFailed:"未停止——agent 没有接受中断",copy:"复制",copied:"已复制",copyFailed:"复制失败 —— 选区已保留",sendFailed:"未送达 —— agent 可能已离线",offlineHint:"agent 已离线 —— 需要重新拉起后消息才能送达"}},Xo={en:Xl,zh:Np},Ic="spexcode.lang",Eh=[{code:"en",label:"English"},{code:"zh",label:"中文"}];function $p(){return(typeof navigator<"u"&&navigator.language||"en").toLowerCase().startsWith("zh")?"zh":"en"}function _p(){try{const e=localStorage.getItem(Ic);if(e&&Xo[e])return e}catch{}return $p()}function ca(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Lp(e,t){return t?e.replace(/\{(\w+)\}/g,(n,r)=>t[r]!=null?t[r]:`{${r}}`):e}function Mp(e,t,n){let r=ca(e,t);return r===void 0&&(r=ca(Xl,t)),typeof r=="function"?r(n||{}):typeof r=="string"?Lp(r,n):t}const zc=T.createContext(null);function Rp({children:e}){const[t,n]=T.useState(_p);T.useEffect(()=>{try{document.documentElement.lang=t}catch{}},[t]);const r=T.useCallback(o=>{if(Xo[o]){try{localStorage.setItem(Ic,o)}catch{}n(o)}},[]),s=T.useMemo(()=>{const o=Xo[t]||Xl;return{lang:t,setLang:r,t:(l,i)=>Mp(o,l,i)}},[t,r]);return u.jsx(zc.Provider,{value:s,children:e})}function Fp(){const e=T.useContext(zc);if(!e)throw new Error("useI18n must be used within <I18nProvider>");return e}function Es(){return Fp().t}const Op=5e3,Ip=14e3,zp=3200,Dp=70;function Ap(e){const t=Array.from(String(e)).length,n=zp+t*Dp;return Math.min(Ip,Math.max(Op,n))}function Up(e,t){const n=t===void 0?Ap(e):t;if(!Number.isFinite(n)||n<0)throw new Error("notice duration must be a non-negative finite number");return n}const Dc=T.createContext(null);let Bp=0;function Hp(e,t={}){const n=["success","error","info"].includes(t.kind)?t.kind:"info",r=Up(e,t.duration);return{kind:n,duration:r,onClick:typeof t.onClick=="function"?t.onClick:null}}function Vp({notices:e,dismiss:t,setInteraction:n}){const r=Es(),s=T.useRef(null);if(T.useLayoutEffect(()=>{const l=s.current;l&&(l.scrollTop=l.scrollHeight)},[e.length]),!e.length)return null;const o={success:"circle-check",error:"circle-x",info:"info"};return u.jsx("div",{className:"tn-viewport",ref:s,children:e.map(l=>u.jsxs("div",{className:`tn-notice ${l.kind}`,"data-paused":l.paused?"true":void 0,style:{"--tn-duration":`${l.duration}ms`},role:l.kind==="error"?"alert":"status",tabIndex:l.onClick?0:void 0,onClick:l.onClick?i=>{i.target.closest("button")||l.onClick()}:void 0,onKeyDown:l.onClick?i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),l.onClick())}:void 0,onPointerEnter:()=>n(l.id,"pointer",!0),onPointerLeave:()=>n(l.id,"pointer",!1),onFocus:()=>n(l.id,"focus",!0),onBlur:i=>{i.currentTarget.contains(i.relatedTarget)||n(l.id,"focus",!1)},children:[u.jsx(Cs,{name:o[l.kind],size:16,className:"tn-icon"}),u.jsx("span",{className:"tn-message",children:l.message}),u.jsx(Pp,{icon:"x",size:14,className:"tn-dismiss",label:r("common.close"),onClick:()=>t(l.id)}),l.duration>0&&u.jsx("span",{className:"tn-progress","aria-hidden":"true"})]},l.id))})}function da({children:e}){const[t,n]=T.useState([]),r=T.useRef(new Map),s=T.useRef(new Map),o=T.useCallback(h=>{const f=r.current.get(h);f&&(f.handle&&window.clearTimeout(f.handle),r.current.delete(h))},[]),l=T.useCallback(h=>{o(h),s.current.delete(h),n(f=>f.filter(y=>y.id!==h))},[o]),i=T.useCallback((h,f)=>{if(f<=0){l(h);return}o(h);const y=Date.now()+f,g=window.setTimeout(()=>l(h),f);r.current.set(h,{deadline:y,remaining:f,handle:g})},[o,l]),a=T.useCallback((h,f)=>{const y=String(h??"").trim();if(!y)return null;const{kind:g,duration:w}=Hp(y,f),$=typeof(f==null?void 0:f.onClick)=="function"?f.onClick:null,p=`notice-${++Bp}`;return s.current.set(p,{pointer:!1,focus:!1}),n(d=>[...d,{id:p,kind:g,message:y,duration:w,paused:!1,onClick:$}]),w&&i(p,w),p},[i]),c=T.useCallback((h,f,y)=>{const g=s.current.get(h);if(!g||g[f]===y)return;g[f]=y;const w=g.pointer||g.focus,$=r.current.get(h);$&&(w&&$.handle?(window.clearTimeout($.handle),$.handle=null,$.remaining=Math.max(0,$.deadline-Date.now())):!w&&!$.handle&&i(h,$.remaining),n(p=>p.map(d=>d.id===h?{...d,paused:w}:d)))},[i]);T.useEffect(()=>()=>{for(const{handle:h}of r.current.values())h&&window.clearTimeout(h);r.current.clear(),s.current.clear()},[]);const v=T.useMemo(()=>({notify:a,dismiss:l}),[a,l]);return u.jsxs(Dc.Provider,{value:v,children:[e,u.jsx(Vp,{notices:t,dismiss:l,setInteraction:c})]})}function jh(){const e=T.useContext(Dc);if(!e)throw new Error("useTransientNotice must be rendered inside TransientNoticeProvider");return e}function Jo(e){let t=2166136261;for(let n=0;n<(e||"").length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Ac(e){return Jo(e)%360}function Th(e){const t=Ac(e);return{bg:`hsl(${t} 55% 42%)`,fg:`hsl(${t} 70% 92%)`}}function Ph(e){return`hsl(${Ac(e)} 65% 50%)`}const Jl=T.createContext(null);function Nh({scope:e,children:t}){return u.jsx(Jl.Provider,{value:e,children:t})}function $h(){const e=T.useContext(Jl);if(!e)throw new Error("useViewScope must be used inside a ViewHost");return e}function Wp(){return T.useContext(Jl)}function Qp(e,t=null){if(!t||t.kind!=="view")return e;if((e==null?void 0:e.side)!=="right")throw new TypeError(`view status item must use the right group: ${String(e==null?void 0:e.id)}`);return e}const ql=T.createContext(null),Uc=T.createContext(null),Bc="spexcode.statusHidden",Gp=()=>{try{return new Set(JSON.parse(localStorage.getItem(Bc)||"[]"))}catch{return new Set}},fa=(e,t)=>t.priority-e.priority||Jo(t.id)-Jo(e.id)||(e.id<t.id?-1:1),qo=e=>e&&`${e.id}|${e.side}|${e.priority}|${e.kind??""}|${e.overflow?"overflow":""}|${typeof e.text=="string"?e.text:""}|${e.tooltip??""}`;function pa({children:e}){const[t,n]=T.useState(()=>new Map),[r,s]=T.useState(Gp),o=T.useCallback(v=>{Qp(v,v==null?void 0:v.owner),n(h=>{const f=h.get(v.id);return f&&qo(f)===qo(v)&&f.node===v.node&&f.onClick===v.onClick?h:new Map(h).set(v.id,v)})},[]),l=T.useCallback(v=>{n(h=>h.has(v)?(()=>{const f=new Map(h);return f.delete(v),f})():h)},[]),i=T.useCallback(v=>{s(h=>{const f=new Set(h);f.has(v)?f.delete(v):f.add(v);try{localStorage.setItem(Bc,JSON.stringify([...f]))}catch{}return f})},[]),a=T.useMemo(()=>({register:o,dispose:l,toggleHidden:i}),[o,l,i]),c=T.useMemo(()=>({items:t,hidden:r}),[t,r]);return u.jsx(ql.Provider,{value:a,children:u.jsx(Uc.Provider,{value:c,children:e})})}function _h(e){const t=T.useContext(ql),n=Wp(),r=e&&{...e,owner:(n==null?void 0:n.owner)||null},{id:s}=r||{},o=T.useRef(r);o.current=r;const l=qo(r);T.useEffect(()=>{if(!(!t||!s))return t.register(o.current),()=>t.dispose(s)},[t,s,l]);const i=T.useRef(r==null?void 0:r.node);T.useEffect(()=>{var a,c;!t||!s||i.current!==((a=o.current)==null?void 0:a.node)&&(i.current=(c=o.current)==null?void 0:c.node,t.register(o.current))})}function ha({item:e,onToggleHidden:t}){const n=`sb-item${e.kind&&e.kind!=="standard"?` sb-${e.kind}`:""}${e.onClick?" sb-act":""}${e.overflow?" sb-overflow":""}`,r=e.node??e.text,s={className:n,"data-tip":e.tooltip||void 0,onContextMenu:o=>{o.preventDefault(),t(e.id)}};return e.onClick?u.jsx("button",{type:"button",...s,onClick:e.onClick,children:r}):u.jsx("span",{...s,children:r})}function Lh(){const e=T.useContext(ql),t=T.useContext(Uc),n=Es();if(!e||!t)return null;const r=[...t.items.values()].filter(a=>!t.hidden.has(a.id)),s=r.filter(a=>a.side!=="right").sort(fa),o=r.filter(a=>a.side==="right").sort(fa),l=t.items.size-r.length,i=r.some(a=>a.overflow);return u.jsxs("footer",{className:i?"statusbar has-overlay":"statusbar",role:"status",children:[u.jsx("div",{className:"sb-group sb-left",children:s.map(a=>u.jsx(ha,{item:a,onToggleHidden:e.toggleHidden},a.id))}),u.jsxs("div",{className:"sb-group sb-right",children:[o.map(a=>u.jsx(ha,{item:a,onToggleHidden:e.toggleHidden},a.id)),l>0&&u.jsxs("button",{type:"button",className:"sb-item sb-restore","data-tip":n("statusBar.restore"),onClick:()=>[...t.items.keys()].filter(a=>t.hidden.has(a)).forEach(e.toggleHidden),children:["+",l]})]})]})}const Hc=T.createContext(null),Vc=T.createContext(null),ma=(e,t)=>`${e}\0${t}`,bo=e=>[e.document,e.id,e.icon,e.label,e.disabled?"1":"0",e.disabledReason||"",e.pressed?"1":"0",e.menuKey||(e.menu?"menu":""),e.nodeKey||(e.node?"node":"")].join("|");function va({children:e}){const[t,n]=T.useState(()=>new Map),r=T.useCallback(i=>{if(!(i!=null&&i.document)||!(i!=null&&i.id))return;const a=ma(i.document,i.id);n(c=>{const v=c.get(a);return v&&bo(v)===bo(i)&&v.onClick===i.onClick?c:new Map(c).set(a,{...i,key:a})})},[]),s=T.useCallback((i,a)=>{const c=ma(i,a);n(v=>{if(!v.has(c))return v;const h=new Map(v);return h.delete(c),h})},[]),o=T.useMemo(()=>({register:r,dispose:s}),[r,s]),l=T.useMemo(()=>({actions:t}),[t]);return u.jsx(Hc.Provider,{value:o,children:u.jsx(Vc.Provider,{value:l,children:e})})}function Mh(e,t){const n=T.useContext(Hc),r=T.useRef(t);r.current=t;const s=t==null?void 0:t.id,o=T.useMemo(()=>(...i)=>{var a,c;return(c=(a=r.current)==null?void 0:a.onClick)==null?void 0:c.call(a,...i)},[e,s]),l=bo({document:e,...t});return T.useEffect(()=>{if(!(!n||!e||!s))return n.register({...r.current,document:e,onClick:o}),()=>n.dispose(e,s)},[n,e,s,l,o]),null}function Rh(){var e;return((e=T.useContext(Vc))==null?void 0:e.actions)||new Map}const On=new Map,el=new Set;function Kp(e,t){const n=typeof t=="string"?t.trim():"";if(!e||!n||On.get(e)===n)return;On.set(e,n);const r=new Map(On);for(const s of[...el])s(r)}function Fh(){const[e,t]=T.useState(()=>new Map(On));return T.useEffect(()=>(el.add(t),t(new Map(On)),()=>{el.delete(t)}),[]),e}function Oh(e,t){return T.useEffect(()=>{Kp(e,t)},[e,t]),null}const Zp={},js=Zp??{},Yp=js.VITE_PUBLIC_GRAPH_ONLY==="1",Xp=js.VITE_PUBLIC_GRAPH_SOURCE||"./public-graph.json",Jp=js.VITE_PUBLIC_GRAPH_DOCUMENT_SOURCE||"./specs",qp=js.VITE_PUBLIC_GRAPH_METADATA_SOURCE||"./public-graph-meta.json",bp=e=>"error"in e;function eh(e,t){if(bp(t))return{state:e,payload:t};const{kind:n,removed:r,turns:s,...o}=t;if(n!=="delta"){const c=[...s||[]];return{state:{turns:c},payload:{...o,turns:c}}}const l=new Set(r||[]),i=e.turns.filter(c=>!l.has(c.id)),a=new Map(i.map((c,v)=>[c.id,v]));for(const c of s||[]){const v=a.get(c.id);v===void 0?(a.set(c.id,i.length),i.push(c)):i[v]=c}return{state:{turns:i},payload:{...o,turns:i}}}const th=1e4,nh=2.5*th;function Wc(e,{deadMs:t=nh,setTimeoutImpl:n=setTimeout,clearTimeoutImpl:r=clearTimeout}={}){let s=0;const o=()=>{s&&(r(s),s=0)};return{arm:()=>{o(),s=n(()=>{s=0,e()},t)},disarm:o}}function Qc(e){const t=/^\/p\/([^/]+)(?:\/|$)/.exec(e||"");if(!t)return{id:null,base:""};let n=t[1];try{n=decodeURIComponent(n)}catch{}return{id:n,base:`/p/${t[1]}`}}const Gc=Qc(typeof location<"u"?location.pathname:""),Ih=Gc.id,rh=Gc.base,sh=(e,t)=>e.startsWith("/api")?t+e:e,Ts=e=>sh(e,rh),zh=(e,t="#/graph")=>`/p/${encodeURIComponent(e)}/${t}`,oh=()=>"/projects";function lh(e,t){return Qc(e).id&&(t||"").replace(/^#\/?/,"").split("?")[0].replace(/\/+$/,"")==="projects"?oh():null}const ih=280,ga=54,ah=.4,uh=1.6,tl={width:176,height:50},ch=.43,dh=tl.width+44;function Dh(e){const t=Object.fromEntries(e.map(f=>[f.id,f])),n=f=>(typeof f.path=="string"?f.path.split(/[\\/]/).filter(Boolean):[]).at(-2)||f.id,r=f=>String(f.title||n(f)),s=new Map;for(const f of e)s.set(r(f),(s.get(r(f))||0)+1);const o=e.filter(f=>s.get(r(f))>1),l=new Map(e.map(f=>[f.id,r(f)]));if(!o.length)return l;const i=new Set(e.map(r)),a=new Map;for(const f of o){const y=[];for(let g=f;g;g=g.parent?t[g.parent]:null)y.unshift(r(g));a.set(f.id,y)}const c=new Set(o.map(f=>f.id)),v=new Set,h=Math.max(...[...a.values()].map(f=>f.length));for(let f=2;f<=h&&c.size;f++){const y=new Map;for(const g of c){const w=a.get(g),$=w.slice(-Math.min(f,w.length)).join("/");y.has($)||y.set($,[]),y.get($).push(g)}for(const[g,w]of y)w.length!==1||i.has(g)||v.has(g)||(l.set(w[0],g),v.add(g),c.delete(w[0]))}for(const f of c){const y=a.get(f),g=y.slice(-Math.min(2,y.length)).join("/");l.set(f,`${g}/${f}`)}return l}function Ah({focus:e,parent:t=null,child:n=null,visible:r=[],width:s,height:o,zoom:l,minZoom:i=ah,maxZoom:a=uh,tileWidth:c=tl.width,tileHeight:v=tl.height,anchorRatio:h=ch,gutter:f=dh,fit:y=!0}){if(!e||s<=0||o<=0)return{x:0,y:0,zoom:l};const g=r.length?r:[e],w=Math.min(...g.map(ae=>ae.x-c/2)),$=Math.max(...g.map(ae=>ae.x+c/2)),p=Math.min(...g.map(ae=>ae.y-v/2)),d=Math.max(...g.map(ae=>ae.y+v/2)),m=Math.max(1,$-w),k=Math.max(1,d-p),S=Number.isFinite(l)&&m*l<=s-f&&k*l<=o,j=Math.min(a,(s-f)/m,o/k);if(y&&S&&j>=i){const ae=Math.min(j,l);return{x:f-w*ae,y:(o-k*ae)/2-p*ae,zoom:ae}}const P=t?e.x:n?(e.x+n.x)/2:e.x,N=t?.5:h,O=y&&!S&&j>=i?j:l,L=o/2-e.y*O;if(!y)return{x:s*N-P*O,y:L,zoom:O};const ie=-p*O,qe=o-d*O,kt=ie<=qe?Math.min(qe,Math.max(ie,L)):ie;return{x:s*N-P*O,y:kt,zoom:O}}function Uh(e,t){var a;const n={};e.forEach(c=>{var v;c.parent&&(n[v=c.parent]??(n[v]=[])).push(c.id)});const r={},s=e.filter(c=>!c.parent),o=(c,v,h)=>{const f=h-(c.length-1)/2*ga;c.forEach((y,g)=>{r[y]={x:v*ih,y:f+g*ga}})};if(!s.length)return r;o(s.map(c=>c.id),0,0);let l=(a=s.find(c=>t.has(c.id)))==null?void 0:a.id,i=1;for(;l;){const c=t.has(l)?n[l]||[]:[];if(!c.length)break;o(c,i,r[l].y),l=c.find(v=>t.has(v)),i+=1}return r}function Bh(e,t){const n=Object.fromEntries(e.map(o=>[o.id,o])),r=n[t]||e.find(o=>!o.parent)||e[0],s=new Set;for(let o=r;o;o=o.parent?n[o.parent]:null)s.add(o.id);return s}const ya=[150,350,600,900],fh=new Set([502,503,504]),Hh=15e3,ls=new Set;let _t={offline:!1,retryKey:0};function wa(e){_t.offline!==e&&(_t={..._t,offline:e},ls.forEach(t=>t()))}function ka(){return _t}function ph(e){return ls.add(e),()=>ls.delete(e)}function hh(){_t={..._t,retryKey:_t.retryKey+1},ls.forEach(e=>e())}async function B(e,t){const n=typeof e=="string"?Ts(e):e;for(let r=0;;r++)try{const s=await fetch(n,t);return wa(fh.has(s.status)),s}catch(s){if(r>=ya.length)throw wa(!0),s;await new Promise(o=>setTimeout(o,ya[r]))}}let Or="";const xa=()=>{Or=""};async function Vh(){const e=await B("/api/graph",{cache:"no-store",headers:Or?{"If-None-Match":Or}:{}});if(e.status===304)return null;if(e.status===401||e.status===403){const r=await e.json().catch(()=>null);return{authRequired:(r==null?void 0:r.reason)||"project-login"}}if(!e.ok){const r=await e.json().catch(()=>null);throw new Error((r==null?void 0:r.error)||`graph load failed (${e.status})`)}const t=e.headers.get("etag")||"";return{board:await e.json(),seal:()=>{Or=t}}}async function Wh(){const e=await fetch(Xp,{cache:"no-cache"});if(!e.ok)throw new Error(`public graph unavailable: ${e.status}`);const t=await e.json();if((t==null?void 0:t.schema)!=="spexcode.public-spec-graph/v1"||!Array.isArray(t==null?void 0:t.nodes)||!(t!=null&&t.identity))throw new Error("public graph payload is invalid");return{...t,sessions:[],issuesStamp:null}}async function Qh(){var r,s,o;const e=await fetch(qp,{cache:"no-cache"});if(!e.ok)throw new Error(`public graph metadata unavailable: ${e.status}`);const t=await e.json(),n=(r=t==null?void 0:t.release)==null?void 0:r.archive;if((t==null?void 0:t.schema)!=="spexcode.public-spec-site/v1"||!Array.isArray((s=t==null?void 0:t.about)==null?void 0:s.facts)||!((o=t==null?void 0:t.release)!=null&&o.revision)||!(n!=null&&n.path)||!(n!=null&&n.name))throw new Error("public graph metadata is invalid");return t}async function Gh(e){const t=`${Jp}/${encodeURIComponent(e)}.json`,n=await fetch(t,{cache:"no-cache"});if(!n.ok)throw new Error(`public spec unavailable: ${n.status}`);const r=await n.json();if((r==null?void 0:r.schema)!=="spexcode.public-spec-document/v1"||r.id!==e||typeof r.body!="string")throw new Error("public spec payload is invalid");return r}const bl=(e,...t)=>Ts(`/api/specs/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);async function Kh(e){const t=await B(bl(e,"files")),n=await t.json().catch(()=>null);if(!t.ok)throw new Error((n==null?void 0:n.error)||`attachment list failed (${t.status})`);return(n==null?void 0:n.files)||[]}async function Zh(e,t,n=0,r){const s=new URLSearchParams({name:t,offset:String(n)}),o=await B(`${bl(e,"files","content")}?${s}`),l=await o.json().catch(()=>null);if(!o.ok)throw new Error((l==null?void 0:l.error)||`attachment read failed (${o.status})`);return l}async function Yh(e,t=0,n){const r=new URLSearchParams({path:e,offset:String(t)}),s=await B(`/api/source?${r}`),o=await s.json().catch(()=>null);if(!s.ok)throw new Error((o==null?void 0:o.error)||`source read failed (${s.status})`);return o}async function Xh(e=""){const t=await B(`/api/files?${new URLSearchParams({dir:e})}`),n=await t.json().catch(()=>null);if(!t.ok)throw new Error((n==null?void 0:n.error)||`directory list failed (${t.status})`);return{entries:(n==null?void 0:n.entries)||[],truncated:!!(n!=null&&n.truncated)}}function Jh({onBoard:e,onLegacyChange:t,onStatus:n}){let r=null,s=!1,o=null,l="";const i=y=>{const{nodes:g=[],sessions:w=[],...$}=y,p=new Map([["meta",$],["nodes#order",g.map(d=>d.id)],["sess#order",w.map(d=>d.id)]]);return g.forEach(d=>p.set("node:"+d.id,d)),w.forEach(d=>p.set("sess:"+d.id,d)),p},a=y=>{const g=(w,$)=>(y.get($)||[]).map(p=>y.get(w+p));return{...y.get("meta")||{},nodes:g("node:","nodes#order"),sessions:g("sess:","sess#order")}},c=()=>{try{r==null||r.close()}catch{}o=null,l="",f()},v=Wc(()=>{!r||s||(n==null||n(!1),c(),v.arm(),t==null||t())}),h=()=>v.arm(),f=()=>{if(!s){try{r=new EventSource(Ts("/api/graph/stream?mode=delta"))}catch{r=null;return}r.addEventListener("graph-full",y=>{h();const{to:g,graph:w}=JSON.parse(y.data);o=i(w),l=g,xa(),e(w,{authoritative:!0,tag:g}),n==null||n(!0)}),r.addEventListener("graph-delta",y=>{h();const g=JSON.parse(y.data);if(!o||l!==g.from){c();return}for(const w of g.del||[])o.delete(w);for(const[w,$]of Object.entries(g.set||{}))o.set(w,$);l=g.to,xa(),e(a(o),{authoritative:!1,tag:g.to}),n==null||n(!0)}),r.addEventListener("graph-changed",()=>{h(),t==null||t()}),r.addEventListener("error",()=>n==null?void 0:n(!1)),r.addEventListener("ping",h),r.addEventListener("ready",h)}};return f(),n==null||n(!1),h(),()=>{s=!0,v.disarm();try{r==null||r.close()}catch{}}}function qh(e,t,n=!1){if(!(e!=null&&e.sessions))return e;const r=new Set(e.sessions.map(l=>l.id));if(n)for(const l of t.keys())r.has(l)||t.delete(l);let s=!1;const o=e.sessions.map(l=>{var h,f;const i=l.evalSummary;if(!i||!Number.isInteger(i.generation)||!i.epoch)return l;const a=t.get(l.id),c=a&&a.epoch!==i.epoch;if(!a||(c?n:i.generation>=a.generation)){const y=((h=a==null?void 0:a.projection)==null?void 0:h.phase)==="ready"&&a.projection.value?{generation:a.projection.generation,revision:a.projection.revision,value:a.projection.value}:(f=a==null?void 0:a.projection)==null?void 0:f.lastKnown,g=c&&!i.value&&!i.lastKnown&&y?{...i,lastKnown:y}:i;return t.set(l.id,{epoch:g.epoch,generation:g.generation,projection:g}),g!==i?(s=!0,{...l,evalSummary:g}):l}return s=!0,{...l,evalSummary:a.projection}});return s?{...e,sessions:o}:e}const bh=e=>{var t,n;return{title:((t=e==null?void 0:e.identity)==null?void 0:t.title)||(e==null?void 0:e.project)||"",icon:((n=e==null?void 0:e.identity)==null?void 0:n.icon)||(e==null?void 0:e.projectIcon)||"spexcode"}},wt=(e,...t)=>Ts(`/api/sessions/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);async function em(e){var s,o;const t=await B(wt(e,"timeline"),{cache:"no-store"});if(!t.ok)return null;const n=await t.json(),r=Date.parse(((o=(s=t.headers)==null?void 0:s.get)==null?void 0:o.call(s,"date"))||"");return Number.isFinite(r)?{...n,serverNow:r}:n}async function tm(e,t,n){const r=new URLSearchParams({from:String(t),to:String(n)}),s=await B(`${wt(e,"transcript")}?${r}`,{cache:"no-store"}),o=await s.json().catch(()=>({}));return s.ok?{ok:!0,data:o}:{ok:!1,error:(o==null?void 0:o.error)||`HTTP ${s.status}`}}async function nm(e,t,n){const r=new URLSearchParams({from:String(t)}),s=await B(`${wt(e,"transcript","tool",n)}?${r}`,{cache:"no-store"}),o=await s.json().catch(()=>({}));return s.ok?{ok:!0,data:o}:{ok:!1,error:(o==null?void 0:o.error)||`HTTP ${s.status}`}}function rm(e,t,n){let r=null,s=!1,o={turns:[]};const l=()=>{try{r==null||r.close()}catch{}c()},i=Wc(()=>{s||(l(),i.arm())}),a=v=>{i.arm();try{const h=eh(o,JSON.parse(v.data));o=h.state,n(h.payload)}catch{}},c=()=>{if(!s){try{r=new EventSource(`${wt(e,"transcript","stream")}?from=${encodeURIComponent(String(t))}`)}catch{r=null;return}r.addEventListener("transcript",a),r.addEventListener("ping",()=>i.arm())}};return c(),i.arm(),()=>{s=!0,i.disarm();try{r==null||r.close()}catch{}}}async function sm(e){const t=await B(wt(e,"interrupt"),{method:"POST"}),n=await t.json().catch(()=>({}));return{ok:t.ok&&(n==null?void 0:n.ok)!==!1,error:n==null?void 0:n.error}}async function om(e){const t=await B(wt(e));return t.ok?t.json():null}async function lm(e,t,{replyVia:n}={}){const r=await B(wt(e,"input"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"text",text:t,...n?{replyVia:n}:{}})}),s=await r.json().catch(()=>({}));return{ok:r.ok&&(s==null?void 0:s.ok)!==!1,error:s==null?void 0:s.error}}async function im(e,t,{deliveryId:n,signal:r,replyVia:s}={}){const o=await fetch(wt(e,"input"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"command",text:t,...n?{deliveryId:n}:{},...s==="note"?{replyVia:"note"}:{}}),signal:r}),l=await o.json().catch(()=>null);return{ok:o.ok,status:o.status,outcome:l}}async function am(e,t){const n=await B(bl(e,"body"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);if(!n.ok){const s=new Error((r==null?void 0:r.error)||`spec body edit failed (${n.status})`);throw s.code=(r==null?void 0:r.code)||"http-error",s.current=r==null?void 0:r.current,s}return r}async function um(){return(await B("/api/plugins")).json()}async function cm(){return(await B("/api/plugins?surface=review")).json()}async function dm(){return(await B("/api/settings")).json()}async function fm(e){const t=await B(`/api/issues/${encodeURIComponent(e)}`);if(t.status===404)return!1;if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}async function pm(e,t,n){return(await B(`/api/issues/${encodeURIComponent(e)}/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:t,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function hm(e){return(await B(`/api/issues/${encodeURIComponent(e)}/close`,{method:"POST"})).json()}async function mm(e){return(await B(`/api/issues/${encodeURIComponent(e)}/promote`,{method:"POST"})).json()}async function vm(e,t){return(await B(`/api/remarks/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:t})})).json()}async function gm({concern:e,body:t,evidence:n,store:r}){return(await B("/api/issues",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({concern:e,body:t,store:r,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function ym({node:e,scenario:t,issue:n,body:r,codeSha:s,evidence:o}){return(await B("/api/remarks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node:e,scenario:t,issue:n,body:r,...s?{codeSha:s}:{},...o!=null&&o.length?{evidence:o}:{}})})).json()}async function wm(e,t){return(await B(`/api/specs/${encodeURIComponent(e)}/evals/ok`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scenario:t})})).json()}async function km(e){return(await B("/api/evidence",{method:"POST",headers:{"Content-Type":"image/png"},body:e})).json()}function mh(){return T.useSyncExternalStore(ph,ka,ka)}function vh({children:e}){const t=Es(),n=mh();return u.jsxs("div",{className:"backend-frame",children:[n.offline&&u.jsxs("div",{className:"backend-offline-banner",role:"alert",children:[u.jsx(Cs,{name:"info",size:14}),u.jsx("span",{children:t("backend.offline")}),u.jsx("button",{type:"button",onClick:hh,children:t("backend.retry")})]}),e]})}const Sa=T.lazy(()=>jp(()=>import("./App-C_vUCsZ4.js").then(e=>e.W),[]));function gh(){const e=Es();return Yp?u.jsx(da,{children:u.jsx(pa,{children:u.jsx(va,{children:u.jsx(T.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:u.jsx(Sa,{})})})})}):u.jsx(da,{children:u.jsx(pa,{children:u.jsx(va,{children:u.jsx(T.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:u.jsx(Sa,{})})})})})}function yh(){return u.jsx(vh,{children:u.jsx(gh,{})})}const Ca=lh(location.pathname,location.hash);Ca?location.replace(Ca):no.createRoot(document.getElementById("root")).render(u.jsx(cd.StrictMode,{children:u.jsx(Rp,{children:u.jsx(yh,{})})}));export{Qh as $,em as A,om as B,wh as C,rm as D,tm as E,nm as F,im as G,sm as H,Cs as I,Fp as J,wt as K,kh as L,xh as M,Ch as N,Sh as O,Yp as P,Ph as Q,Rh as R,Lh as S,$h as T,Hh as U,Nh as V,Mh as W,rh as X,Zc as Y,cd as Z,jp as _,Pp as a,Bh as a0,Uh as a1,Dh as a2,tl as a3,Ah as a4,uh as a5,ah as a6,ih as a7,ga as a8,Yh as a9,Zh as aa,cm as ab,km as ac,ym as ad,wm as ae,Oh as af,mm as ag,hm as ah,pm as ai,fm as aj,gm as ak,bl as al,Gh as am,lm as an,am as ao,vm as ap,Eh as aq,mh as b,qh as c,Vh as d,Ih as e,Sp as f,Xh as g,Kh as h,jh as i,u as j,B as k,Wh as l,Ts as m,Fh as n,_h as o,bh as p,zh as q,T as r,Jh as s,oh as t,Es as u,Wc as v,Jo as w,Th as x,dm as y,um as z};
|