@@ -4,7 +4,7 @@
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< title > Codex 命令台< / title >
< script type = "module" crossorigin > ( f u n c t i o n ( ) { c o n s t r = d o c u m e n t . c r e a t e E l e m e n t ( " l i n k " ) . r e l L i s t ; i f ( r & & r . s u p p o r t s & & r . s u p p o r t s ( " m o d u l e p r e l o a d " ) ) r e t u r n ; f o r ( c o n s t S o f d o c u m e n t . q u e r y S e l e c t o r A l l ( ' l i n k [ r e l = " m o d u l e p r e l o a d " ] ' ) ) f ( S ) ; n e w M u t a t i o n O b s e r v e r ( S = > { f o r ( c o n s t C o f S ) i f ( C . t y p e = = = " c h i l d L i s t " ) f o r ( c o n s t A o f C . a d d e d N o d e s ) A . t a g N a m e = = = " L I N K " & & A . r e l = = = " m o d u l e p r e l o a d " & & f ( A ) } ) . o b s e r v e ( d o c u m e n t , { c h i l d L i s t : ! 0 , s u b t r e e : ! 0 } ) ; f u n c t i o n h ( S ) { c o n s t C = { } ; r e t u r n S . i n t e g r i t y & & ( C . i n t e g r i t y = S . i n t e g r i t y ) , S . r e f e r r e r P o l i c y & & ( C . r e f e r r e r P o l i c y = S . r e f e r r e r P o l i c y ) , S . c r o s s O r i g i n = = = " u s e - c r e d e n t i a l s " ? C . c r e d e n t i a l s = " i n c l u d e " : S . c r o s s O r i g i n = = = " a n o n y m o u s " ? C . c r e d e n t i a l s = " o m i t " : C . c r e d e n t i a l s = " s a m e - o r i g i n " , C } f u n c t i o n f ( S ) { i f ( S . e p ) r e t u r n ; S . e p = ! 0 ; c o n s t C = h ( S ) ; f e t c h ( S . h r e f , C ) } } ) ( ) ; f u n c t i o n Z h ( i ) { r e t u r n i & & i . _ _ e s M o d u l e & & O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( i , " d e f a u l t " ) ? i . d e f a u l t : i } v a r n o = { e x p o r t s : { } } , u i = { } ; / * *
< script type = "module" crossorigin > ( f u n c t i o n ( ) { c o n s t r = d o c u m e n t . c r e a t e E l e m e n t ( " l i n k " ) . r e l L i s t ; i f ( r & & r . s u p p o r t s & & r . s u p p o r t s ( " m o d u l e p r e l o a d " ) ) r e t u r n ; f o r ( c o n s t g o f d o c u m e n t . q u e r y S e l e c t o r A l l ( ' l i n k [ r e l = " m o d u l e p r e l o a d " ] ' ) ) f ( g ) ; n e w M u t a t i o n O b s e r v e r ( g = > { f o r ( c o n s t C o f g ) i f ( C . t y p e = = = " c h i l d L i s t " ) f o r ( c o n s t A o f C . a d d e d N o d e s ) A . t a g N a m e = = = " L I N K " & & A . r e l = = = " m o d u l e p r e l o a d " & & f ( A ) } ) . o b s e r v e ( d o c u m e n t , { c h i l d L i s t : ! 0 , s u b t r e e : ! 0 } ) ; f u n c t i o n h ( g ) { c o n s t C = { } ; r e t u r n g . i n t e g r i t y & & ( C . i n t e g r i t y = g . i n t e g r i t y ) , g . r e f e r r e r P o l i c y & & ( C . r e f e r r e r P o l i c y = g . r e f e r r e r P o l i c y ) , g . c r o s s O r i g i n = = = " u s e - c r e d e n t i a l s " ? C . c r e d e n t i a l s = " i n c l u d e " : g . c r o s s O r i g i n = = = " a n o n y m o u s " ? C . c r e d e n t i a l s = " o m i t " : C . c r e d e n t i a l s = " s a m e - o r i g i n " , C } f u n c t i o n f ( g ) { i f ( g . e p ) r e t u r n ; g . e p = ! 0 ; c o n s t C = h ( g ) ; f e t c h ( g . h r e f , C ) } } ) ( ) ; f u n c t i o n K h ( i ) { r e t u r n i & & i . _ _ e s M o d u l e & & O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( i , " d e f a u l t " ) ? i . d e f a u l t : i } v a r n o = { e x p o r t s : { } } , u i = { } ; / * *
* @license React
* react-jsx-runtime.production.js
*
@@ -12,7 +12,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Rh;function w y(){if(Rh)return ui;Rh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function h(f,S ,C){var A=null;if(C!==void 0& & (A=""+C),S .key!==void 0& & (A=""+S .key),"key"in S ){C={};for(var p in S)p !=="key"& & (C[p ]=S[p ])}else C=S ;return S =C.ref,{$$typeof:i,type:f,key:A,ref:S !==void 0?S :null,props:C}}return ui.Fragment=r,ui.jsx=h,ui.jsxs=h,ui}var Dh;function k y(){return Dh||(Dh=1,no.exports=w y()),no.exports}var c=k y(),uo={exports:{}},h t={};/**
*/var Rh;function k y(){if(Rh)return ui;Rh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function h(f,g ,C){var A=null;if(C!==void 0& & (A=""+C),g .key!==void 0& & (A=""+g .key),"key"in g ){C={};for(var S in g)S !=="key"& & (C[S ]=g[S ])}else C=g ;return g =C.ref,{$$typeof:i,type:f,key:A,ref:g !==void 0?g :null,props:C}}return ui.Fragment=r,ui.jsx=h,ui.jsxs=h,ui}var Dh;function B y(){return Dh||(Dh=1,no.exports=k y()),no.exports}var c=B y(),uo={exports:{}},y t={};/**
* @license React
* react.production.js
*
@@ -20,7 +20,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Uh;function By(){if(Uh)return ht;Uh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),O=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),w=Symbol.for("react.view_transition"),X=Symbol.iterator;function V(y){return y===null||typeof y!="object"?null:(y=X& & y[X]||y["@@iterator"],typeof y=="function"?y:null)}var at={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,vt={};function bt(y,D,ut){this.props=y,this.context=D,this.refs=vt,this.updater=ut||at}bt.prototype.isReactComponent={},bt.prototype.setState=function(y,D){if(typeof y!="object"& & typeof y!="function"& & y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,D,"setState")},bt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function zt(){}zt.prototype=bt.prototype;function J(y,D,ut){this.props=y,this.context=D,this.refs=vt,this.updater=ut||at}var Rt=J.prototype=new zt;Rt.constructor=J,L(Rt,bt.prototype),Rt.isPureReactComponent=!0;var it=Array.isArray;function Q(){}var rt={H:null,A:null,T:null,S:null},Ut=Object.prototype.hasOwnProperty;function Qt(y,D,ut){var nt=ut.ref;return{$$typeof:i,type:y,key:D,ref:nt!==void 0?nt:null,props:ut}}function Nt(y,D){return Qt(y.type,D,y.props)}function kt(y){return typeof y=="object"& & y!==null& & y.$$typeof===i}function B(y){var D={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ut){return D[ut]})}var ot=/\/+/g;function st(y,D){return typeof y=="object"& & y!==null& & y.key!=null?B(""+y.key):D.toString(36)}function q(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(Q,Q):(y.status="pending",y.then(function(D){y.status==="pending"& & (y.status="fulfilled",y.value=D)},function(D){y.status==="pending"& & (y.status="rejected",y.reason=D)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function N(y,D,ut,nt,Tt){var xt=typeof y;(xt==="undefined"||xt==="boolean")&&(y=null); var Ot=!1;if(y===null)Ot=!0;else switch(xt){case"bigint":case"string":case"number":Ot=!0;break;case"object":switch(y.$$typeof){case i:case r:Ot=!0;break;case Y:return Ot=y._init,N(Ot(y._payload),D,ut,nt,Tt)}}if(Ot)return Tt=Tt(y),Ot=nt===""?"."+st(y,0):nt,it(Tt)?(ut="",Ot!=null& & (ut=Ot.replace(ot,"$& /")+"/"),N(Tt,D,ut,"",function(ce){return ce})):Tt!=null&&(kt(Tt)&&(Tt=Nt(Tt,ut+(Tt.key==null||y&&y.key===Tt.key?"":(""+Tt.key).replace(ot,"$&/")+"/")+Ot)),D.push(Tt)),1; Ot=0;var $=nt===""?".":nt+":";if(it(y))for(var dt=0;dt< y.length ; dt + + ) nt = y[dt],xt=$+st(nt,dt),Ot+=N(nt,D,ut,xt,Tt);else if ( dt = V(y),typeof dt = ="function")for(y=dt.call(y),dt=0;!(nt=y.next()).done;)nt=nt.value,xt=$+st(nt,dt++),Ot+=N(nt,D,ut,xt,Tt);else if ( xt = =="object"){if(typeof y . then = ="function")return N ( q ( y ) , D , ut , nt , Tt ) ; throw D = String(y),Error("Objects are not valid as a React child ( found: " + ( D = =="[object Object ] " ? " object with keys { " + Object . keys ( y ) . join ( " , " ) + " } " :D ) + " ) . If you meant to render a collection of children , use an array instead . " ) } return Ot } function lt ( y , D , ut ) { if ( y = =null)return y ; var nt = [],Tt=0;return N ( y , nt , " " , " " , function ( xt ) { return D . call ( ut , xt , Tt + + ) } ) , nt } function gt ( y ) { if ( y . _status = ==-1){var D = y._result,ut=D();ut.then(function(nt){(y._status===0||y._status===-1)&&(y._status=1,y._result=nt,ut.status===void 0 & & ( ut . status = "fulfilled" , ut . value = nt))},function(nt){(y._status===0||y._status===-1)&&(y._status=2,y._result=nt,ut.status===void 0 & & ( ut . status = "rejected" , ut . reason = nt))}),y._status===-1&&(y._status=0,y._result=ut)}if(y._status===1)return y . _result . default ; throw y . _result } var yt = typeof reportError = ="function"?reportError:function(y){if(typeof window = ="object"&&typeof window . ErrorEvent = ="function"){var D = new window . ErrorEvent ( " error " , { bubbles: ! 0 , cancelable: ! 0 , message:typeof y = ="object"&&y!==null&&typeof y . message = ="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(D))return}else if ( typeof process = ="object"&&typeof process . emit = ="function"){process.emit("uncaughtException",y);return}console.error(y)};function ge ( y ) { var D = rt.T,ut={};ut.types=D!==null?D.types:null,rt.T=ut;try{var nt = y(),Tt=rt.S;Tt!==null&&Tt(ut,nt),typeof nt = ="object"&&nt!==null&&typeof nt . then = ="function"&&nt.then(Q,yt)}catch(xt){yt(xt)}finally{D!==null&&ut.types!==null&&(D.types=ut.types),rt.T=D}}function we ( y ) { var D = rt.T;if(D!==null){var ut = D.types;ut===null?D.types=[y]:ut.indexOf(y)===-1&&ut.push(y)}else ge ( we . bind ( null , y ) ) } var Ce = {map:lt,forEach:function(y,D,ut){lt(y,function(){D.apply(this,arguments)},ut)},count:function(y){var D = 0;return lt ( y , function ( ) { D + + } ) , D Line truncated
*/var Uh;function qy(){if(Uh)return yt;Uh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),k=Symbol.for("react.view_transition"),W=Symbol.iterator;function V(y){return y===null||typeof y!="object"?null:(y=W& & y[W]||y["@@iterator"],typeof y=="function"?y:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,ht={};function gt(y,D,ct){this.props=y,this.context=D,this.refs=ht,this.updater=ct||I}gt.prototype.isReactComponent={},gt.prototype.setState=function(y,D){if(typeof y!="object"& & typeof y!="function"& & y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,D,"setState")},gt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function xt(){}xt.prototype=gt.prototype;function Z(y,D,ct){this.props=y,this.context=D,this.refs=ht,this.updater=ct||I}var Tt=Z.prototype=new xt;Tt.constructor=Z,X(Tt,gt.prototype),Tt.isPureReactComponent=!0;var w=Array.isArray;function Q(){}var et={H:null,A:null,T:null,S:null},zt=Object.prototype.hasOwnProperty;function Bt(y,D,ct){var it=ct.ref;return{$$typeof:i,type:y,key:D,ref:it!==void 0?it:null,props:ct}}function vt(y,D){return Bt(y.type,D,y.props)}function wt(y){return typeof y=="object"& & y!==null& & y.$$typeof===i}function q(y){var D={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ct){return D[ct]})}var ot=/\/+/g;function rt(y,D){return typeof y=="object"& & y!==null& & y.key!=null?q(""+y.key):D.toString(36)}function G(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(Q,Q):(y.status="pending",y.then(function(D){y.status==="pending"& & (y.status="fulfilled",y.value=D)},function(D){y.status==="pending"& & (y.status="rejected",y.reason=D)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function N(y,D,ct,it,Nt){var _t=typeof y;(_t==="undefined"||_t==="boolean")&&(y=null); var Rt=!1;if(y===null)Rt=!0;else switch(_t){case"bigint":case"string":case"number":Rt=!0;break;case"object":switch(y.$$typeof){case i:case r:Rt=!0;break;case Y:return Rt=y._init,N(Rt(y._payload),D,ct,it,Nt)}}if(Rt)return Nt=Nt(y),Rt=it===""?"."+rt(y,0):it,w(Nt)?(ct="",Rt!=null& & (ct=Rt.replace(ot,"$& /")+"/"),N(Nt,D,ct,"",function(ce){return ce})):Nt!=null&&(wt(Nt)&&(Nt=vt(Nt,ct+(Nt.key==null||y&&y.key===Nt.key?"":(""+Nt.key).replace(ot,"$&/")+"/")+Rt)),D.push(Nt)),1; Rt=0;var P=it===""?".":it+":";if(w(y))for(var dt=0;dt< y.length ; dt + + ) it = y[dt],_t=P+rt(it,dt),Rt+=N(it,D,ct,_t,Nt);else if ( dt = V(y),typeof dt = ="function")for(y=dt.call(y),dt=0;!(it=y.next()).done;)it=it.value,_t=P+rt(it,dt++),Rt+=N(it,D,ct,_t,Nt);else if ( _t = =="object"){if(typeof y . then = ="function")return N ( G ( y ) , D , ct , it , Nt ) ; throw D = String(y),Error("Objects are not valid as a React child ( found: " + ( D = =="[object Object ] " ? " object with keys { " + Object . keys ( y ) . join ( " , " ) + " } " :D ) + " ) . If you meant to render a collection of children , use an array instead . " ) } return Rt } function ut ( y , D , ct ) { if ( y = =null)return y ; var it = [],Nt=0;return N ( y , it , " " , " " , function ( _t ) { return D . call ( ct , _t , Nt + + ) } ) , it } function St ( y ) { if ( y . _status = ==-1){var D = y._result,ct=D();ct.then(function(it){(y._status===0||y._status===-1)&&(y._status=1,y._result=it,ct.status===void 0 & & ( ct . status = "fulfilled" , ct . value = it))},function(it){(y._status===0||y._status===-1)&&(y._status=2,y._result=it,ct.status===void 0 & & ( ct . status = "rejected" , ct . reason = it))}),y._status===-1&&(y._status=0,y._result=ct)}if(y._status===1)return y . _result . default ; throw y . _result } var pt = typeof reportError = ="function"?reportError:function(y){if(typeof window = ="object"&&typeof window . ErrorEvent = ="function"){var D = new window . ErrorEvent ( " error " , { bubbles: ! 0 , cancelable: ! 0 , message:typeof y = ="object"&&y!==null&&typeof y . message = ="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(D))return}else if ( typeof process = ="object"&&typeof process . emit = ="function"){process.emit("uncaughtException",y);return}console.error(y)};function ge ( y ) { var D = et.T,ct={};ct.types=D!==null?D.types:null,et.T=ct;try{var it = y(),Nt=et.S;Nt!==null&&Nt(ct,it),typeof it = ="object"&&it!==null&&typeof it . then = ="function"&&it.then(Q,pt)}catch(_t){pt(_t)}finally{D!==null&&ct.types!==null&&(D.types=ct.types),et.T=D}}function we ( y ) { var D = et.T;if(D!==null){var ct = D.types;ct===null?D.types=[y]:ct.indexOf(y)===-1&&ct.push(y)}else ge ( we . bind ( null , y ) ) } var Ce = {map:ut,forEach:function(y,D,ct){ut(y,function(){D.apply(this,arguments)},ct)},count:function(y){var D = 0;return ut ( y , function ( ) { D + + } ) , D } , toAr Line truncated
* @license React
* scheduler.production.js
*
@@ -28,7 +28,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wh;function Y y(){return wh||(wh=1,(function(i){function r(q ,N){var l t=q .length;q .push(N);t:for(;0< lt ; ) { var gt = lt-1 > >>1,y t=q[g t];if(0< S ( yt , N ) ) q [ gt ] = N , q [ lt ] = yt , lt = g t;else break t } } function h ( q ) { return q . length = ==0?null:q [0]}function f ( q ) { if ( q . length = ==0)return null ; var N = q [0],l t=q .pop();if(l t!==N){q [0]=l t;t:for(var gt = 0,y t=q .length,ge=y t > >>1;g t< ge ; ) { var we = 2*(g t+1)-1,Ce=q [we],y=we+1,D=q [y];if(0 > S (Ce,l t))y< yt & & 0 > S (D,Ce)?(q[g t]=D,q [y]=l t,g t=y):(q[g t]=Ce,q [we]=l t,g t=we);else if(y< yt & & 0 > S (D,l t))q[g t]=D,q [y]=l t,g t=y;else break t}}return N}function S(q ,N){var l t=q .sortIndex-N.sortIndex;return l t!==0?l t:q .id-N.id}if(i.unstable_now=void 0,typeof performance=="object"& & typeof performance.now=="function"){var C=performance;i.unstable_now=function(){return C.now()}}else{var A=Date,p =A.now();i.unstable_now=function(){return A.now()-p }}var H=[],O =[],Y=1,j =null,w =3,X =!1,V=!1,at =!1,L =!1,v t=typeof setTimeout=="function"?setTimeout:null,b t=typeof clearTimeout=="function"?clearTimeout:null,z t=typeof setImmediate< "u"?setImmediate:null;function J(q ){for(var N=h(O );N!==null;){if(N.callback===null)f(O );else if(N.startTime< =q )f(O ),N.sortIndex=N.expirationTime,r(H,N);else break;N=h(O )}}function R t(q ){if(at =!1,J(q ),!V)if(h(H)!==null)V=!0,it ||(it =!0,k t());else{var N=h(O );N!==null& & s t(R t,N.startTime-q )}}var it =!1,Q=-1,r t=5,U t=-1;function Q t(){return L ?!0:!(i.unstable_now()-U t< rt ) } function Nt ( ) { if ( L = !1,it ){var q = i.unstable_now();U t=q ;var N = !0;try{t:{V=!1,at &&(at =!1,b t(Q),Q=-1),X =!0;var lt = w ;try{e:{for(J(q ),j =h(H);j !==null&&!(j .expirationTime> q &&Q t()); ){var g t=j .callback;if(typeof g t=="function"){j .callback=null,w=j .priorityLevel;var y t=g t(j .expirationTime< =q );if(q =i.unstable_now(),typeof y t=="function"){j .callback=y t,J(q ),N=!0;break e}j ===h(H)& & f(H),J(q )}else f(H);j =h(H)}if(j !==null)N=!0;else{var ge=h(O );ge!==null& & s t(R t,ge.startTime-q ),N=!1}}break t}finally{j =null,w=l t,X =!1}N=void 0}}finally{N?k t():it =!1}}}var k t;if(typeof z t=="function")k t=function(){z t(N t)};else if(typeof MessageChannel< "u"){var B =new MessageChannel,ot=B .port2;B .port1.onmessage=N t,k t=function(){ot.postMessage(null)}}else k t=function(){v t(N t,0)};function s t(q ,N){Q=v t(function(){q (i.unstable_now())},N)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(q ){q .callback=null},i.unstable_forceFrameRate=function(q ){0>q ||125< q ? console . error ( " forceFrameRate takes a positive int between 0 and 125 , forcing frame rates higher than 125 fps is not supported " ) :r t = 0<q ?Math.floor(1e3/q ):5},i.unstable_getCurrentPriorityLevel=function(){return w } , i . unstable_next = function(q ){switch(w ){case 1:case 2:case 3:var N = 3;break;default:N=w }var lt = w;w =N;try{return q ( ) } finally { w = l t}},i.unstable_requestPaint=function(){L =!0},i.unstable_runWithPriority=function(q ,N){switch(q ){case 1:case 2:case 3:case 4:case 5:break ; default:q = 3}var lt = w;w=q ;try{return N ( ) } finally { w = l t}},i.unstable_scheduleCallback=function(q ,N,l t){var gt = i.unstable_now();switch(typeof lt = ="object"&&l t!==null?(l t=l t.delay,l t=typeof lt = ="number"&&0<l t?g t+l t:g t):l t=g t,q ){case 1:var yt = -1;break;case 2:y t = 250;break;case 5:y t = 1073741823;break;case 4:y t = 1e4;break;default:y t=5e3}return yt = l t+y t,q ={id:Y++,callback:N,priorityLevel:q ,startTime:l t,expirationTime:y t,sortIndex:-1},l t> g t?(q .sortIndex=l t,r(O,q ),h(H)===null& & q ===h(O )& & (at ?(b t(Q),Q=-1):at =!0,s t(R t,l t-g t))):(q .sortIndex=y t,r(H,q ),V||X ||(V=!0,it ||(it =!0,k t()))),q },i.unstable_shouldYield=Q t,i.unstable_wrapCallback=function(q ){var N=w ;return function(){var l t=w;w =N;try{return q .apply(this,arguments)}finally{w=l t}}}})(so)),so}var kh;function G y(){return kh||(kh=1,co.exports=Y y()),co.exports}var ro={exports:{}},He={};/**
*/var wh;function G y(){return wh||(wh=1,(function(i){function r(G ,N){var u t=G .length;G .push(N);t:for(;0< ut ; ) { var St = ut-1 > >>1,p t=G[S t];if(0< g ( pt , N ) ) G [ St ] = N , G [ ut ] = pt , ut = S t;else break t } } function h ( G ) { return G . length = ==0?null:G [0]}function f ( G ) { if ( G . length = ==0)return null ; var N = G [0],u t=G .pop();if(u t!==N){G [0]=u t;t:for(var St = 0,p t=G .length,ge=p t > >>1;S t< ge ; ) { var we = 2*(S t+1)-1,Ce=G [we],y=we+1,D=G [y];if(0 > g (Ce,u t))y< pt & & 0 > g (D,Ce)?(G[S t]=D,G [y]=u t,S t=y):(G[S t]=Ce,G [we]=u t,S t=we);else if(y< pt & & 0 > g (D,u t))G[S t]=D,G [y]=u t,S t=y;else break t}}return N}function g(G ,N){var u t=G .sortIndex-N.sortIndex;return u t!==0?u t:G .id-N.id}if(i.unstable_now=void 0,typeof performance=="object"& & typeof performance.now=="function"){var C=performance;i.unstable_now=function(){return C.now()}}else{var A=Date,S =A.now();i.unstable_now=function(){return A.now()-S }}var H=[],R =[],Y=1,x =null,k =3,W =!1,V=!1,I =!1,X =!1,h t=typeof setTimeout=="function"?setTimeout:null,g t=typeof clearTimeout=="function"?clearTimeout:null,x t=typeof setImmediate< "u"?setImmediate:null;function Z(G ){for(var N=h(R );N!==null;){if(N.callback===null)f(R );else if(N.startTime< =G )f(R ),N.sortIndex=N.expirationTime,r(H,N);else break;N=h(R )}}function T t(G ){if(I =!1,Z(G ),!V)if(h(H)!==null)V=!0,w ||(w =!0,w t());else{var N=h(R );N!==null& & r t(T t,N.startTime-G )}}var w =!1,Q=-1,e t=5,z t=-1;function B t(){return X ?!0:!(i.unstable_now()-z t< et ) } function vt ( ) { if ( X = !1,w ){var G = i.unstable_now();z t=G ;var N = !0;try{t:{V=!1,I &&(I =!1,g t(Q),Q=-1),W =!0;var ut = k ;try{e:{for(Z(G ),x =h(H);x !==null&&!(x .expirationTime> G &&B t()); ){var S t=x .callback;if(typeof S t=="function"){x .callback=null,k=x .priorityLevel;var p t=S t(x .expirationTime< =G );if(G =i.unstable_now(),typeof p t=="function"){x .callback=p t,Z(G ),N=!0;break e}x ===h(H)& & f(H),Z(G )}else f(H);x =h(H)}if(x !==null)N=!0;else{var ge=h(R );ge!==null& & r t(T t,ge.startTime-G ),N=!1}}break t}finally{x =null,k=u t,W =!1}N=void 0}}finally{N?w t():w =!1}}}var w t;if(typeof x t=="function")w t=function(){x t(v t)};else if(typeof MessageChannel< "u"){var q =new MessageChannel,ot=q .port2;q .port1.onmessage=v t,w t=function(){ot.postMessage(null)}}else w t=function(){h t(v t,0)};function r t(G ,N){Q=h t(function(){G (i.unstable_now())},N)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(G ){G .callback=null},i.unstable_forceFrameRate=function(G ){0>G ||125< G ? console . error ( " forceFrameRate takes a positive int between 0 and 125 , forcing frame rates higher than 125 fps is not supported " ) :e t = 0<G ?Math.floor(1e3/G ):5},i.unstable_getCurrentPriorityLevel=function(){return k } , i . unstable_next = function(G ){switch(k ){case 1:case 2:case 3:var N = 3;break;default:N=k }var ut = k;k =N;try{return G ( ) } finally { k = u t}},i.unstable_requestPaint=function(){X =!0},i.unstable_runWithPriority=function(G ,N){switch(G ){case 1:case 2:case 3:case 4:case 5:break ; default:G = 3}var ut = k;k=G ;try{return N ( ) } finally { k = u t}},i.unstable_scheduleCallback=function(G ,N,u t){var St = i.unstable_now();switch(typeof ut = ="object"&&u t!==null?(u t=u t.delay,u t=typeof ut = ="number"&&0<u t?S t+u t:S t):u t=S t,G ){case 1:var pt = -1;break;case 2:p t = 250;break;case 5:p t = 1073741823;break;case 4:p t = 1e4;break;default:p t=5e3}return pt = u t+p t,G ={id:Y++,callback:N,priorityLevel:G ,startTime:u t,expirationTime:p t,sortIndex:-1},u t> S t?(G .sortIndex=u t,r(R,G ),h(H)===null& & G ===h(R )& & (I ?(g t(Q),Q=-1):I =!0,r t(T t,u t-S t))):(G .sortIndex=p t,r(H,G ),V||W ||(V=!0,w ||(w =!0,w t()))),G },i.unstable_shouldYield=B t,i.unstable_wrapCallback=function(G ){var N=k ;return function(){var u t=k;k =N;try{return G .apply(this,arguments)}finally{k=u t}}}})(so)),so}var kh;function Q y(){return kh||(kh=1,co.exports=G y()),co.exports}var ro={exports:{}},He={};/**
* @license React
* react-dom.production.js
*
@@ -36,7 +36,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Bh;function Q y(){if(Bh)return He;Bh=1;var i=yo();function r(Y){var j ="https://react.dev/errors/"+Y;if(1< arguments.length ) { j + = " ? args [ ] = " + encodeURIComponent ( arguments [ 1 ] ) ; for ( var w = 2;w <arguments.length;w ++)j +="&args[]="+encodeURIComponent(arguments[w ])}return"Minified React error # " + Y + " ; visit " + j + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings . " } function h ( ) { } var f = {d:{f:h,r:function(){throw Error ( r ( 522 ) ) } , D:h , C:h , L:h , m:h , X:h , S:h , M:h } , p:0 , findDOMNode:null } , S = Symbol.for("react.portal"),C=Symbol.for("react.recoverable"),A=Symbol.for("react.optimistic_key");function p ( Y , j , w ) { var X = 3<arguments.length&&arguments[3]!==void 0 ? arguments [ 3 ] :null ; return { $ $ typeof:S , key:X = =null?null:X ===A?A:""+X ,children:Y,containerInfo:j ,implementation:w }}var H = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O ( Y , j ) { if ( Y = =="font")return"";if(typeof j = ="string")return j = =="use-credentials"?j :""}return He . __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f,He.browser=function(Y){return{$$typeof:C,_reason:Y}},He.createPortal=function(Y,j ){var w = 2<arguments.length&&arguments[2]!==void 0 ? arguments [ 2 ] :null ; if ( ! j | | j . nodeType ! = = 1 & & j . nodeType ! = = 9 & & j . nodeType ! = = 11 ) throw Error ( r ( 299 ) ) ; return p ( Y , j , null , w ) } , He . flushSync = function(Y){var j = H.T,w =f.p;try{if(H.T=null,f.p=2,Y)return Y ( ) } finally { H . T = j ,f.p=w ,f.d.f()}},He.preconnect=function(Y,j ){typeof Y = ="string"&&(j ?(j=j .crossOrigin,j =typeof j = ="string"?j ==="use-credentials"?j :"":void 0 ) :j = null,f.d.C(Y,j ))},He.prefetchDNS=function(Y){typeof Y = ="string"&&f.d.D(Y)},He.preinit=function(Y,j ){if(typeof Y = ="string"&&j &&typeof j . as = ="string"){var w = j .as,X=O(w,j .crossOrigin),V=typeof j . integrity = ="string"?j .integrity:void 0 , at = typeof j . fetchPriority = ="string"?j .fetchPriority:void 0 ; w = =="style"?f.d.S(Y,typeof j . precedence = ="string"?j .precedence:void 0 , { crossOrigin:X , integrity:V , fetchPriority:at } ) :w = =="script"&&f.d.X(Y,{crossOrigin:X ,integrity:V,fetchPriority:at ,nonce:typeof j . nonce = ="string"?j .nonce:void 0 } ) } } , He . preinitModule = function(Y,j ){if(typeof Y = ="string")if(typeof j = ="object"&&j !==null){if(j .as==null||j .as==="script"){var w = O(j .as,j .crossOrigin);f.d.M(Y,{crossOrigin:w ,integrity:typeof j . integrity = ="string"?j .integrity:void 0 , nonce:typeof j . nonce = ="string"?j .nonce:void 0 , fetchPriority:typeof j . fetchPriority = ="string"?j .fetchPriority:void 0 } ) } } else j = =null&&f.d.M(Y)},He.preload=function(Y,j ){if(typeof Y = ="string"&&typeof j = ="object"&&j !==null&&typeof j . as = ="string"){var w = j .as,X=O(w,j .crossOrigin);f.d.L(Y,w ,{crossOrigin:X ,integrity:typeof j . integrity = ="string"?j .integrity:void 0 , nonce:typeof j . nonce = ="string"?j .nonce:void 0 , type:typeof j . type = ="string"?j .type:void 0 , fetchPriority:typeof j . fetchPriority = ="string"?j .fetchPriority:void 0 , referrerPolicy:typeof j . referrerPolicy = ="string"?j .referrerPolicy:void 0 , imageSrcSet:typeof j . imageSrcSet = ="string"?j .imageSrcSet:void 0 , imageSizes:typeof j . imageSizes = ="string"?j .imageSizes:void 0 , media:typeof j . media = ="string"?j .media:void 0 } ) } } , He . preloadModule = function(Y,j ){if(typeof Y = ="string")if(j ){var w = O(j .as,j .crossOrigin);f.d.m(Y,{as:typeof j . as = ="string"&&j .as!=="script"?j .as:void 0 , crossOrigin:w , integrity:typeof j . integrity = ="string"?j .integrity:void 0 , nonce:typeof j . nonce = ="string"?j .nonce:void 0 , fetchPriority:typeof j . fetchPriority = ="string"?j .fetchPriority:void 0 } ) } else f . d . m ( Y ) } , He . requestFormReset = function(Y){f.d.r(Y)},He.unstable_batchedUpdates=function(Y,j ){return Y ( j ) } , He . useFormState = function(Y,j,w ){return H . H . useFormState ( Y , j , w ) } , He . useFormStatus = function(){return H . H . useHostTransitionStatus ( ) } , He . version = "19.3.1" , He } var qh ; function Xy ( ) { if ( qh ) return ro . exports ; qh = 1;function i ( ) { if ( ! ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),ro.exports=Q y(),ro.exports}/**
*/var Bh;function X y(){if(Bh)return He;Bh=1;var i=yo();function r(Y){var x ="https://react.dev/errors/"+Y;if(1< arguments.length ) { x + = " ? args [ ] = " + encodeURIComponent ( arguments [ 1 ] ) ; for ( var k = 2;k <arguments.length;k ++)x +="&args[]="+encodeURIComponent(arguments[k ])}return"Minified React error # " + Y + " ; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings . " } function h ( ) { } var f = {d:{f:h,r:function(){throw Error ( r ( 522 ) ) } , D:h , C:h , L:h , m:h , X:h , S:h , M:h } , p:0 , findDOMNode:null } , g = Symbol.for("react.portal"),C=Symbol.for("react.recoverable"),A=Symbol.for("react.optimistic_key");function S ( Y , x , k ) { var W = 3<arguments.length&&arguments[3]!==void 0 ? arguments [ 3 ] :null ; return { $ $ typeof:g , key:W = =null?null:W ===A?A:""+W ,children:Y,containerInfo:x ,implementation:k }}var H = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R ( Y , x ) { if ( Y = =="font")return"";if(typeof x = ="string")return x = =="use-credentials"?x :""}return He . __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f,He.browser=function(Y){return{$$typeof:C,_reason:Y}},He.createPortal=function(Y,x ){var k = 2<arguments.length&&arguments[2]!==void 0 ? arguments [ 2 ] :null ; if ( ! x | | x . nodeType ! = = 1 & & x . nodeType ! = = 9 & & x . nodeType ! = = 11 ) throw Error ( r ( 299 ) ) ; return S ( Y , x , null , k ) } , He . flushSync = function(Y){var x = H.T,k =f.p;try{if(H.T=null,f.p=2,Y)return Y ( ) } finally { H . T = x ,f.p=k ,f.d.f()}},He.preconnect=function(Y,x ){typeof Y = ="string"&&(x ?(x=x .crossOrigin,x =typeof x = ="string"?x ==="use-credentials"?x :"":void 0 ) :x = null,f.d.C(Y,x ))},He.prefetchDNS=function(Y){typeof Y = ="string"&&f.d.D(Y)},He.preinit=function(Y,x ){if(typeof Y = ="string"&&x &&typeof x . as = ="string"){var k = x .as,W=R(k,x .crossOrigin),V=typeof x . integrity = ="string"?x .integrity:void 0 , I = typeof x . fetchPriority = ="string"?x .fetchPriority:void 0 ; k = =="style"?f.d.S(Y,typeof x . precedence = ="string"?x .precedence:void 0 , { crossOrigin:W , integrity:V , fetchPriority:I } ) :k = =="script"&&f.d.X(Y,{crossOrigin:W ,integrity:V,fetchPriority:I ,nonce:typeof x . nonce = ="string"?x .nonce:void 0 } ) } } , He . preinitModule = function(Y,x ){if(typeof Y = ="string")if(typeof x = ="object"&&x !==null){if(x .as==null||x .as==="script"){var k = R(x .as,x .crossOrigin);f.d.M(Y,{crossOrigin:k ,integrity:typeof x . integrity = ="string"?x .integrity:void 0 , nonce:typeof x . nonce = ="string"?x .nonce:void 0 , fetchPriority:typeof x . fetchPriority = ="string"?x .fetchPriority:void 0 } ) } } else x = =null&&f.d.M(Y)},He.preload=function(Y,x ){if(typeof Y = ="string"&&typeof x = ="object"&&x !==null&&typeof x . as = ="string"){var k = x .as,W=R(k,x .crossOrigin);f.d.L(Y,k ,{crossOrigin:W ,integrity:typeof x . integrity = ="string"?x .integrity:void 0 , nonce:typeof x . nonce = ="string"?x .nonce:void 0 , type:typeof x . type = ="string"?x .type:void 0 , fetchPriority:typeof x . fetchPriority = ="string"?x .fetchPriority:void 0 , referrerPolicy:typeof x . referrerPolicy = ="string"?x .referrerPolicy:void 0 , imageSrcSet:typeof x . imageSrcSet = ="string"?x .imageSrcSet:void 0 , imageSizes:typeof x . imageSizes = ="string"?x .imageSizes:void 0 , media:typeof x . media = ="string"?x .media:void 0 } ) } } , He . preloadModule = function(Y,x ){if(typeof Y = ="string")if(x ){var k = R(x .as,x .crossOrigin);f.d.m(Y,{as:typeof x . as = ="string"&&x .as!=="script"?x .as:void 0 , crossOrigin:k , integrity:typeof x . integrity = ="string"?x .integrity:void 0 , nonce:typeof x . nonce = ="string"?x .nonce:void 0 , fetchPriority:typeof x . fetchPriority = ="string"?x .fetchPriority:void 0 } ) } else f . d . m ( Y ) } , He . requestFormReset = function(Y){f.d.r(Y)},He.unstable_batchedUpdates=function(Y,x ){return Y ( x ) } , He . useFormState = function(Y,x,k ){return H . H . useFormState ( Y , x , k ) } , He . useFormStatus = function(){return H . H . useHostTransitionStatus ( ) } , He . version = "19.3.1" , He } var qh ; function Ly ( ) { if ( qh ) return ro . exports ; qh = 1;function i ( ) { if ( ! ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),ro.exports=X y(),ro.exports}/**
* @license React
* react-dom-client.production.js
*
@@ -44,37 +44,37 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Yh;function Ly(){if(Yh)return ii;Yh=1;var i=Gy(),r=yo(),h=Xy();function f(t){var e="https://react.dev/errors/"+t;if(1< arguments.length ) { e + = " ? args [ ] = " + encodeURIComponent ( arguments [ 1 ] ) ; for ( var l = 2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error # " + t + " ; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings . " } function S ( t ) { return ! ( ! t | | t . nodeType ! = = 1 & & t . nodeType ! = = 9 & & t . nodeType ! = = 11 ) } function C ( t ) { for ( var e = t,l=e;l&&!l.alternate;)e=l,(e.flags&4098)!==0&&(t=e.return),l=e.return;for(;e.return;)e=e.return;return e . tag = ==3?t:null}function A ( t ) { if ( t . tag = ==13){var e = t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e . dehydrated } return null } function p ( t ) { if ( t . tag = ==31){var e = t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e . dehydrated } return null } function H ( t ) { if ( C ( t ) ! = = t ) throw Error ( f ( 188 ) ) } function O ( t ) { var e = t.alternate;if(!e){if(e=C(t),e===null)throw Error ( f ( 188 ) ) ; return e ! = = t ? null:t } for ( var l = t,a=e;;){var n = l.return;if(n===null)break;var u = n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return H ( n ) , t ; if ( u = ==a)return H ( n ) , e ; u = u.sibling}throw Error ( f ( 188 ) ) } if ( l . return ! = = a . return ) l = n,a=u;else{for(var s = !1,o=n.child;o;){if(o===l){s=!0,l=n,a=u;break}if(o===a){s=!0,a=n,l=u;break}o=o.sibling}if(!s){for(o=u.child;o;){if(o===l){s=!0,l=u,a=n;break}if(o===a){s=!0,a=u,l=n;break}o=o.sibling}if(!s)throw Error ( f ( 189 ) ) } } if ( l . alternate ! = = a ) throw Error ( f ( 190 ) ) } if ( l . tag ! = = 3 ) throw Error ( f ( 188 ) ) ; return l . stateNode . current = ==l?t:e}function Y ( t ) { var e = t.tag;if(e===5||e===26||e===27||e===6)return t ; for ( t = t.child;t!==null;){if(e=Y(t),e!==null)return e ; t = t.sibling}return null } function j ( t , e , l , a , n , u ) { for ( ; t ! = = null ; ) { if ( ( t . tag = ==5||t.tag===27||t.tag===6)&&l(t,a,n,u)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&j(t.child,e,l,a,n,u))return!0;t=t.sibling}return!1}function w ( t ) { for ( t = t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t ; t = t.return}return null } function X ( t ) { var e = !1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e } function V ( t ) { var e = [null,null],l=w(t);return l = ==null||at(e,t,l.child,{foundSelf:!1}),e}function at ( t , e , l , a ) { for ( ; l ! = = null ; ) { if ( l = ==e)a.foundSelf=!0;else if ( l . tag = ==5||l.tag===27||l.tag===6){if(a.foundSelf)return t [ 1 ] = l , ! 0 ; t [ 0 ] = l } else if ( ( l . tag ! = = 22 | | l . memoizedState = ==null)&&at(t,e,l.child,a))return!0;l=l.sibling}return!1}function L ( t ) { switch ( t . tag ) { case 5:case 27:case 6:return t . stateNode ; case 3:return t . stateNode . containerInfo ; default:throw Error ( f ( 559 ) ) } } var vt = null,bt=null;function zt ( t , e , l ) { return t = ==l?!0:t===e?(vt=t,!0):!1}function J ( t , e , l ) { return t = ==l?(bt=t,!1):t===e?(bt!==null&&(vt=t),!0):!1}function Rt ( t ) { if ( t = ==null)return null ; do t = t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t | | null } function it ( t , e , l ) { for ( var a = 0,n=t;n;n=l(n))a++;n=0;for(var u = e;u;u=l(u))n++;for(;0<a-n;)t=l(t),a--;for(;0<n-a;)e=l(e),n--;for(;a--;){if(t===e||e!==null&&t===e.alternate)return t ; t = l(t),e=l(e)}return null } var Q = Object.assign,rt=Symbol.for("react.element"),Ut=Symbol.for("react.transitional.element"),Qt=Symbol.for("react.portal"),Nt=Symbol.for("react.fragment"),kt=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),ot=Symbol.for("react.consumer"),st=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),we=Symbol.for("react.legacy_hidden"),Ce=Symbol.for("react.memo_cache_sentinel"),y=Symbol.for("react.view_transition"),D=Symbol.for("react.recoverable"),ut=Symbol.iterator;function nt ( t ) { return t = ==null||typeof t ! = " object " ? null: ( t = ut&&t[ut]||t["@@iterator"],typeof t = ="function"?t:null)}var Tt = Symbol.for("react.client.reference");function xt ( t ) { if ( t = =null)return null ; if ( typeof t = ="function")return t . $ $ typeof = ==Tt?null:t.displayName||t.name||null;if(typeof t = ="string")return t ; switch ( t ) { case Nt:return " Fragment " ; case B:return " Profiler " ; case kt:return " StrictMode " ; case N:return " Suspense " ; case lt:return " SuspenseList " ; case ge:return " Activity " ; case y:return " ViewTransition " } if ( typeof t = ="object")switch(t.$$typeof){case Qt:return " Portal " ; case st:return t . displayName | | " Context " ; case ot:return ( t . _context . displayName | | " Context " ) + " . Consumer " ; case q:var e = t.render;return t = t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case gt:return e = t.displayName||null,e!==null?e:xt(t.type)||"Memo";case yt:e = t._payload,t=t._init;try{return xt ( t ( e ) ) } catch { } } return null } var Ot = Array.isArray,$=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dt=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,acti Line truncated
*/var Yh;function Vy(){if(Yh)return ii;Yh=1;var i=Qy(),r=yo(),h=Ly();function f(t){var e="https://react.dev/errors/"+t;if(1< arguments.length ) { e + = " ? args [ ] = " + encodeURIComponent ( arguments [ 1 ] ) ; for ( var l = 2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error # " + t + " ; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings . " } function g ( t ) { return ! ( ! t | | t . nodeType ! = = 1 & & t . nodeType ! = = 9 & & t . nodeType ! = = 11 ) } function C ( t ) { for ( var e = t,l=e;l&&!l.alternate;)e=l,(e.flags&4098)!==0&&(t=e.return),l=e.return;for(;e.return;)e=e.return;return e . tag = ==3?t:null}function A ( t ) { if ( t . tag = ==13){var e = t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e . dehydrated } return null } function S ( t ) { if ( t . tag = ==31){var e = t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e . dehydrated } return null } function H ( t ) { if ( C ( t ) ! = = t ) throw Error ( f ( 188 ) ) } function R ( t ) { var e = t.alternate;if(!e){if(e=C(t),e===null)throw Error ( f ( 188 ) ) ; return e ! = = t ? null:t } for ( var l = t,a=e;;){var n = l.return;if(n===null)break;var u = n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return H ( n ) , t ; if ( u = ==a)return H ( n ) , e ; u = u.sibling}throw Error ( f ( 188 ) ) } if ( l . return ! = = a . return ) l = n,a=u;else{for(var s = !1,o=n.child;o;){if(o===l){s=!0,l=n,a=u;break}if(o===a){s=!0,a=n,l=u;break}o=o.sibling}if(!s){for(o=u.child;o;){if(o===l){s=!0,l=u,a=n;break}if(o===a){s=!0,a=u,l=n;break}o=o.sibling}if(!s)throw Error ( f ( 189 ) ) } } if ( l . alternate ! = = a ) throw Error ( f ( 190 ) ) } if ( l . tag ! = = 3 ) throw Error ( f ( 188 ) ) ; return l . stateNode . current = ==l?t:e}function Y ( t ) { var e = t.tag;if(e===5||e===26||e===27||e===6)return t ; for ( t = t.child;t!==null;){if(e=Y(t),e!==null)return e ; t = t.sibling}return null } function x ( t , e , l , a , n , u ) { for ( ; t ! = = null ; ) { if ( ( t . tag = ==5||t.tag===27||t.tag===6)&&l(t,a,n,u)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&x(t.child,e,l,a,n,u))return!0;t=t.sibling}return!1}function k ( t ) { for ( t = t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t ; t = t.return}return null } function W ( t ) { var e = !1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e } function V ( t ) { var e = [null,null],l=k(t);return l = ==null||I(e,t,l.child,{foundSelf:!1}),e}function I ( t , e , l , a ) { for ( ; l ! = = null ; ) { if ( l = ==e)a.foundSelf=!0;else if ( l . tag = ==5||l.tag===27||l.tag===6){if(a.foundSelf)return t [ 1 ] = l , ! 0 ; t [ 0 ] = l } else if ( ( l . tag ! = = 22 | | l . memoizedState = ==null)&&I(t,e,l.child,a))return!0;l=l.sibling}return!1}function X ( t ) { switch ( t . tag ) { case 5:case 27:case 6:return t . stateNode ; case 3:return t . stateNode . containerInfo ; default:throw Error ( f ( 559 ) ) } } var ht = null,gt=null;function xt ( t , e , l ) { return t = ==l?!0:t===e?(ht=t,!0):!1}function Z ( t , e , l ) { return t = ==l?(gt=t,!1):t===e?(gt!==null&&(ht=t),!0):!1}function Tt ( t ) { if ( t = ==null)return null ; do t = t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t | | null } function w ( t , e , l ) { for ( var a = 0,n=t;n;n=l(n))a++;n=0;for(var u = e;u;u=l(u))n++;for(;0<a-n;)t=l(t),a--;for(;0<n-a;)e=l(e),n--;for(;a--;){if(t===e||e!==null&&t===e.alternate)return t ; t = l(t),e=l(e)}return null } var Q = Object.assign,et=Symbol.for("react.element"),zt=Symbol.for("react.transitional.element"),Bt=Symbol.for("react.portal"),vt=Symbol.for("react.fragment"),wt=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),ot=Symbol.for("react.consumer"),rt=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),St=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),we=Symbol.for("react.legacy_hidden"),Ce=Symbol.for("react.memo_cache_sentinel"),y=Symbol.for("react.view_transition"),D=Symbol.for("react.recoverable"),ct=Symbol.iterator;function it ( t ) { return t = ==null||typeof t ! = " object " ? null: ( t = ct&&t[ct]||t["@@iterator"],typeof t = ="function"?t:null)}var Nt = Symbol.for("react.client.reference");function _t ( t ) { if ( t = =null)return null ; if ( typeof t = ="function")return t . $ $ typeof = ==Nt?null:t.displayName||t.name||null;if(typeof t = ="string")return t ; switch ( t ) { case vt:return " Fragment " ; case q:return " Profiler " ; case wt:return " StrictMode " ; case N:return " Suspense " ; case ut:return " SuspenseList " ; case ge:return " Activity " ; case y:return " ViewTransition " } if ( typeof t = ="object")switch(t.$$typeof){case Bt:return " Portal " ; case rt:return t . displayName | | " Context " ; case ot:return ( t . _context . displayName | | " Context " ) + " . Consumer " ; case G:var e = t.render;return t = t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case St:return e = t.displayName||null,e!==null?e:_t(t.type)||"Memo";case pt:e = t._payload,t=t._init;try{return _t ( t ( e ) ) } catch { } } return null } var Rt = Array.isArray,P=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dt=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:n Line truncated
at`)?" (< anonymous > )":-1< l.stack.indexOf ( " @ " ) ? " @ unknown:0:0 " : " " } return `
`+Be+t+se}var rl=!1;function J l(t,e){if(!t||rl)return"";rl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var R =function(){throw Error()};if(Object.defineProperty(R .prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"& & Reflect.construct){try{Reflect.construct(R ,[])}catch(G ){var g=G }Reflect.construct(t,[],R )}else{try{R .call()}catch(G ){g=G}R =!1;try{var _=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),R =!0,new t}finally{R & & (_!==void 0?Object.defineProperty(t.prototype,"props",_):delete t.prototype.props)}}}else{try{throw Error()}catch(G ){g=G }(R =t())& & typeof R .catch=="function"& & R .catch(function(){})}}catch(G ){if(G & & g & & typeof G .stack=="string")return[G .stack,g .stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"}); var u=a.DetermineComponentFrameRoot(),s=u[0],o=u[1];if(s& & o){var m=s.split(`
`),x =o.split(`
`);for(n=a=0;a< m.length & & ! m [ a ] . includes ( " DetermineComponentFrameRoot " ) ; ) a + + ; for ( ; n < x . length & & ! x [ n ] . includes ( " DetermineComponentFrameRoot " ) ; ) n + + ; if ( a = ==m.length||n===x .length)for(a=m.length-1,n=x .length-1;1<=a&&0<=n&&m[a]!==x [n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==x [n]){if(a!==1||n!==1)do if ( a-- , n-- , 0 > n||m[a]!==x [n]){var E=`
`+m[a].replace(" at new "," at ");return t.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",t.displayName)),E}while(1<=a&&0<=n); break}}}finally{rl=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?re(l):""}function d a(t,e){switch(t.tag){case 26:case 27:case 5:return re(t.type);case 16:return re("Lazy");case 13:return t.child!==e& & e!==null?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return J l(t.type,!1);case 11:return J l(t.type.render,!1);case 1:return J l(t.type,!0);case 31:return re("Activity");case 30:return re("ViewTransition");default:return""}}function Dl(t){try{var e="",l=null;do e+=d a(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
`+Be+t+se}var rl=!1;function F l(t,e){if(!t||rl)return"";rl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var z =function(){throw Error()};if(Object.defineProperty(z .prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"& & Reflect.construct){try{Reflect.construct(z ,[])}catch(L ){var p=L }Reflect.construct(t,[],z )}else{try{z .call()}catch(L ){p=L}z =!1;try{var _=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),z =!0,new t}finally{z & & (_!==void 0?Object.defineProperty(t.prototype,"props",_):delete t.prototype.props)}}}else{try{throw Error()}catch(L ){p=L }(z =t())& & typeof z .catch=="function"& & z .catch(function(){})}}catch(L ){if(L & & p & & typeof L .stack=="string")return[L .stack,p .stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"}); var u=a.DetermineComponentFrameRoot(),s=u[0],o=u[1];if(s& & o){var m=s.split(`
`),j =o.split(`
`);for(n=a=0;a< m.length & & ! m [ a ] . includes ( " DetermineComponentFrameRoot " ) ; ) a + + ; for ( ; n < j . length & & ! j [ n ] . includes ( " DetermineComponentFrameRoot " ) ; ) n + + ; if ( a = ==m.length||n===j .length)for(a=m.length-1,n=j .length-1;1<=a&&0<=n&&m[a]!==j [n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==j [n]){if(a!==1||n!==1)do if ( a-- , n-- , 0 > n||m[a]!==j [n]){var E=`
`+m[a].replace(" at new "," at ");return t.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",t.displayName)),E}while(1<=a&&0<=n); break}}}finally{rl=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?re(l):""}function m a(t,e){switch(t.tag){case 26:case 27:case 5:return re(t.type);case 16:return re("Lazy");case 13:return t.child!==e& & e!==null?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return F l(t.type,!1);case 11:return F l(t.type.render,!1);case 1:return F l(t.type,!0);case 31:return re("Activity");case 30:return re("ViewTransition");default:return""}}function Dl(t){try{var e="",l=null;do e+=m a(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var te=Object.prototype.hasOwnProperty,Pe=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,_l=i.unstable_shouldYield,ol=i.unstable_requestPaint,Wt=i.unstable_now,Ul=i.unstable_getCurrentPriorityLevel,mn=i.unstable_ImmediatePriority,Qa=i.unstable_UserBlockingPriority,Se=i.unstable_NormalPriority,Xa=i.unstable_LowPriority,ma=i.unstable_IdlePriority,su=i.log,ru=i.unstable_setDisableYieldValue,Fl=null,Ae=null;function fl(t){if(typeof su=="function"& & ru(t),Ae& & typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Fl,t)}catch{}}var Oe=Math.clz32?Math.clz32:du,ou=Math.log,fu=Math.LN2;function du(t){return t>>>=0,t===0?32:31-(ou(t)/fu|0)|0}var k=256,U=262144,W=4194304;function tt(t){var e=t&42; if(e!==0)return e;switch(t& -t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t; case 262144:case 524288:case 1048576:case 2097152:return t&3932160; case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560; case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function M(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var o=a&134217727; return o!==0?(a=o& ~u,a!==0?n=tt(a):(s& =o,s!==0?n=tt(s):l||(l=o& ~t,l!==0& & (n=tt(l))))):(o=a& ~u,o!==0?n=tt(o):s!==0?n=tt(s):l||(l=a& ~t,l!==0& & (n=tt(l)))),n===0?0:e!==0& & e!==n& & (e& u)===0& & (u=n& -n,l=e& -e,u>=l||u===32& & (l& 4194048)!==0)?e:n}function Z(t,e){return(t.pendingLanes& ~(t.suspendedLanes& ~t.pingedLanes)& e)===0}function et(t,e){(e&8)!==0&&(e|=e&32); var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e; 0< l ; ) { var a = 31-Oe(l),n=1<<a;e|=t[a],l&=~n}return e } function Bt ( t , e ) { switch ( t ) { case 1:case 2:case 4:case 8:case 64:return e + 250 ; case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e + 5e3 ; case 4194304:case 8388608:case 16777216:case 33554432:return-1 ; case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1 ; default:return-1 } } function Mt ( ) { var t = W;return W < < = 1 , ( W & 62914560 ) = = = 0 & & ( W = 4194304),t}function be ( t ) { for ( var e = [],l=0;31 > l;l++)e.push(t);return e}function xe(t,e){t.pendingLanes|=e,e!==268435456& & (t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dc(t,e,l,a,n,u){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0; var o=t.entanglements,m=t.expirationTimes,x=t.hiddenUpdates;for(l=s&~l; 0< l ; ) { var E = 31-Oe(l),R=1<<E;o[E]=0,m[E]=-1;var g = x[E];if(g!==null)for(x[E]=null,E=0;E<g.length;E++){var _ = g[E];_!==null&&(_.lane&=-536870913)}l&=~R}a!==0&&ci(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function ci ( t , e , l ) { t . pendingLanes | = e , t . suspendedLanes & = ~ e ; var a = 31-Oe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function hn ( t , e ) { var l = t.entangledLanes|=e;for(t=t.entanglements;l;){var a = 31-Oe(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Wl ( t , e ) { var l = e&-e;return l = (l&42)!==0?1:Hl(l),(l&(t.suspendedLanes|e))!==0?0:l}function Hl ( t ) { switch ( t ) { case 2:t = 1;break;case 8:t = 4;break;case 32:t = 16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t = 128;break;case 268435456:t = 134217728;break;default:t=0}return t } function mu ( t ) { return t & = -t , 2 < t ? 8 < t ? ( t & 134217727 ) ! = = 0 ? 32:268435456:8:2 } function hu ( ) { var t = dt.p;return t ! = = 0 ? t: ( t = window.event,t===void 0 ? 32:Eh ( t . type ) ) } function Ze ( t , e ) { var l = dt.p;try{return dt . p = t,e()}finally{dt.p=l}}var ae = Math.random().toString(36).slice(2),ve="__reactFiber$"+ae,Ke="__reactProps$"+ae,vn="__reactContainer$"+ae,So="__reactEvents$"+ae,Ih="__reactListeners$"+ae,Ph="__reactHandles$"+ae,bo="__reactResources$"+ae,vu="__reactMarker$"+ae,si="__reactLoad$"+ae;function ri ( t ) { delete t [ ve ] , delete t [ Ke ] , delete t [ Ih ] , delete t [ Ph ] } function La ( t ) { var e ; if ( e = t[ve])return e ; for ( var l = t.parentNode;l;){if(e=l[vn]||l[ve]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=uh(t);t!==null;){if(l=t[ve])return l ; t = uh(t)}return e } t = l,l=t.parentNode}return null } function yn ( t ) { if ( t = t[ve]||t[vn]){var e = t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t } return null } function yu ( t ) { var e = t.tag;if(e===5||e===26||e===27||e===6)return t . stateNode ; throw Error ( f ( 33 ) ) } function gn ( t ) { var e = t[bo];return e | | ( e = t[bo]={hoistableStyles:new Map , hoistableScripts:new Map } ) , e } function je ( t ) { t [ vu ] = ! 0 } function xo ( t ) { t [ si ] = void 0 } var jo = new Set , To = {};function Va ( t , e ) { pn ( t , e ) , pn ( t + " Capture " , e ) } function pn ( t , Line truncated
`).replace(Y0,"")}function qm(t,e){return e=Bm(e),Bm(t)===e}function Vt(t,e,l,a,n,u){switch(l){case"children":if(typeof a=="string")e==="body"||e==="textarea"&&a===""||bn(t,a); else if(typeof a=="number"||typeof a=="bigint")e!=="body"&&bn(t,""+a); else return;break;case"className":fi(t,"class",a);break;case"tabIndex":fi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fi(t,l,a);break;case"style":Do(t,a,u);return;case"data":if(e!=="object"){fi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l); break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=di(a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Vt(t,e,"name",n.name,n,null),Vt(t,e,"formEncType",n.formEncType,n,null),Vt(t,e,"formMethod",n.formMethod,n,null),Vt(t,e,"formTarget",n.formTarget,n,null)):(Vt(t,e,"encType",n.encType,n,null),Vt(t,e,"method",n.method,n,null),Vt(t,e,"target",n.target,n,null))); if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=di(a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=wl); return;case"onScroll":a!=null&&Et("scroll",t); return;case"onScrollEnd":a!=null&&Et("scrollend",t); return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));(u!=null?u.__html:void 0)!==l&&(t.innerHTML=l)}}break; case"multiple":t.multiple=a& & typeof a!="function"& & typeof a!="symbol";break;case"muted":t.muted=a& & typeof a!="function"& & typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=di(a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null& & typeof a!="function"& & typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a& & typeof a!="function"& & typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1& & a!=null& & typeof a!="function"& & typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null& & typeof a!="function"& & typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l); break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":Et("beforetoggle",t),Et("toggle",t),oi(t,"popover",a);break;case"xlinkActuate":$l(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$l(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$l(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$l(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$l(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$l(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$l(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$l(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$l(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":oi(t,"is",a);break;case"innerText":case"textContent":return;default:if(!(2< l.length ) | | l [ 0 ] ! = = " o " & & l [ 0 ] ! = = " O " | | l [ 1 ] ! = = " n " & & l [ 1 ] ! = = " N " ) l = uv.get(l)||l,oi(t,l,a);else return } Ht = !0}function Hr ( t , e , l , a , n , u ) { switch ( l ) { case " style " :Do ( t , a , u ) ; return ; case " dangerouslySetInnerHTML " :if ( a ! = null ) { if ( typeof a ! = " object " | | ! ( " __html " in a ) ) throw Error ( f ( 61 ) ) ; if ( l = a.__html,l!=null){if(n.children!=null)throw Error ( f ( 60 ) ) ; ( u ! = null ? u . __html:void 0 ) ! = = l & & ( t . innerHTML = l)}}break;case"children":if(typeof a = ="string")bn(t,a);else if ( typeof a = ="number"||typeof a = ="bigint")bn(t,""+a);else return ; break ; case " onScroll " :a ! = null & & Et ( " scroll " , t ) ; return ; case " onScrollEnd " :a ! = null & & Et ( " scro Line truncated
`;B t& & (b e+=B t+`
`),M t& & (b e+=(Array.isArray(M t)?M t.join(`
`):String(M t))+`
`),be+=JSON.stringify(et,null,2).slice(0,4e3),jl(be),ce("已返回登录信息,见下方")}catch(et){ce("发起失败:"+et.message)}},[]),U=d.useCallback(async()=>{const M=V.trim();if(!M){X("请填要查配额的用户 id");return}try{const Z=await I(K.adminQuotaUser(M));X("用户 "+M.slice(0,8)+":本月用量 "+fo(Z.used_usd_micros)+" / 配额 "+fo(Z.quota_usd_micros)+(Z.remaining_usd_micros!==null& & Z.remaining_usd_micros!==void 0?"(剩余 "+fo(Z.remaining_usd_micros)+") ":"")+" | 月份 "+(Z.month||""))}catch(Z){X(oo(Z))}},[V]),W=d.useCallback(async()=>{if(window.confirm("确定手动触发 sweep 吗?超阈值的陈旧 running 任务会被标为 interrupted。"))try{const Z=(await I(K.adminSweep,"POST",{})).swept||[];X("sweep 完成,清理 "+Z.length+" 个任务"+(Z.length?": "+Z.join("、"):""))}catch(M){X(oo(M))}},[]),tt=d.useCallback(async()=>{try{const M=await I(K.adminBackup,"POST",{});X("备份完成:backend="+M.backend+" | 路径 "+M.path+" | 大小 "+M.size_bytes+" 字节 | 任务 "+M.task_count+" 行")}catch(M){X(oo(M))}},[]);return{keySaved:i,keyState:h,quotaText:S,healthText:A,adminGate:H,adminBody:Y,adminResult:w,adminUserId:V,setAdminUserId:at,projects:L,projectId:bt,setProjectId:zt,projectMsg:J,githubRepos:it,workers:rt,workersSummary:Qt,workersError:kt,members:ot,memberMsg:q,memberError:lt,skills:yt,apps:we,mcpServers:y,skillMsg:ut,skillError:Tt,mcpMsg:Ot,mcpOauthMsg:dt,mcpOauthBox:Ga,envs:Le,envCount:Yt,envMsg:Kl,envRepoLine:fa,envRepoBar:zl,envRepoMsg:Tl,envSelect:se,setEnvSelect:re,models:rl,modelCustomVisible:da,refreshHealth:qe,loadQuota:_l,probeAdmin:ol,refreshProjects:Wt,loadGithubRepos:Ul,loadRelayModels:mn,refreshWorkers:Qa,refreshEnvs:Se,refreshMembers:Xa,refreshSkills:ma,saveKeyInput:su,clearKeyInput:ru,createProject:Fl,createEnv:Ae,archiveEnv:fl,saveEnvRepo:Oe,inviteMember:ou,changeMemberRole:fu,reloadMcp:du,mcpOauth:k,adminQuota:U,adminSweep:W,adminBackup:tt}}const mo=20;function lg(){const[i,r]=d.useState([]),[h,f]=d.useState(""),[S,C]=d.useState(""),[A,p]=d.useState(""),[H,O]=d.useState(""),[Y,j]=d.useState(0),[w,X]=d.useState(0),[V,at]=d.useState({}),L=d.useRef(0),vt=d.useRef({status:"",executor:"",q:""});vt.current={status:S,executor:A,q:H};const bt=d.useRef(""),zt=d.useCallback(async(ot,st,q)=>{const N=ot!==void 0?ot:st;if(!N){r([]),X(0),at({});return}bt.current=N;const lt=q!==void 0?q:L.current,gt=vt.current;try{const yt=await I(K.tasksPage(N,mo,lt*mo,gt.status,gt.executor,gt.q));r(yt.tasks||[]),X(yt.total??(yt.tasks||[]).length),at(yt.status_counts||{}),f("")}catch(yt){f("加载失败:"+yt.message)}},[]),J=d.useCallback(ot=>{const st=Math.max(0,ot);L.current=st,j(st)},[]),Rt=d.useCallback(ot=>{J(ot),zt(bt.current||void 0,void 0,ot)},[zt,J]);d.useEffect(()=>{if(!bt.current)return;const ot=setTimeout(()=>{zt(bt.current,void 0,0)},300);return()=>clearTimeout(ot)},[S,A,H]);const it=d.useCallback(ot=>{C(ot),J(0)},[J]),Q=d.useCallback(ot=>{p(ot),J(0)},[J]),rt=d.useCallback(ot=>{O(ot),J(0)},[J]),Ut=d.useCallback(async ot=>{J(0),await zt(ot,void 0,0)},[zt,J]),Qt=Math.max(1,Math.ceil(w/mo)),Nt=w===0?"共 0 个任务":"共 "+w+" 个任务,第 "+(Y+1)+" / "+Qt+" 页",kt=i,B=d.useCallback(async(ot,st)=>{const q={...ot};st.length& & (q.upload_id=await Py(st));const N=await I(K.tasksCreate,"POST",q);return"任务已建:"+Ne(N.id)},[]);return{tasks:i,taskError:h,statusFilter:S,setStatusFilter:it,executorFilter:A,setExecutorFilter:Q,searchText:H,setSearchText:rt,filteredTasks:kt,taskCountText:Nt,refreshTasks:zt,refreshTasksFirstPage:Ut,page:Y,totalPages:Qt,taskTotal:w,taskStatusCounts:V,goToPage:Rt,dispatch:B}}function ag(i,r){const[h,f]=d.useState(null),[S,C]=d.useState(""),[A,p]=d.useState(""),[H,O]=d.useState(""),[Y,j]=d.useState(""),[w,X]=d.useState(void 0),[V,at]=d.useState(!1),[L,vt]=d.useState(""),[bt,zt]=d.useState([]),[J,Rt]=d.useState([]),[it,Q]=d.useState(""),[rt,Ut]=d.useState([]),[Qt,Nt]=d.useState(""),[kt,B]=d.useState(""),[ot,st]=d.useState([]),[q,N]=d.useState(""),[lt,gt]=d.useState(""),[yt,ge]=d.useState(""),[we,Ce]=d.useState(""),[y,D]=d.useState([]),[ut,nt]=d.useState([]),[Tt,xt]=d.useState(""),[Ot,$]=d.useState([]),[dt,ce]=d.useState(""),[Ga,jl]=d.useState(""),[Le,le]=d.useState(""),[Yt,he]=d.useState(""),[Kl,pe]=d.useState([]),[fa,Ve]=d.useState(""),[zl,Rl]=d.useState(null),Tl=d.useRef(null),Be=d.useRef(null),se=d.useRef(null);se.current=h;const re=d.useCallback(()=>{if(Tl.current){try{Tl.current.abort()}catch{}Tl.current=null}Be.current& & (clearTimeout(Be.current),Be.current=null)},[]),rl=d.useCallback(async k=>{try{const U=await I(K.taskAgents(k));Rt(U.agents||[]),Q(U.note||"")}catch(U){Rt([]),Q("子代理链路加载失败:"+U.message)}},[]),Jl=d.useCallback(k=>{Be.current& & clearTimeout(Be.current),Be.current=setTimeout(()=>void rl(k),1e3)},[rl]),da=d.useCallback(async k=>{if(!k.coordinator_parts){zt([]);return}try{const U=await I(K.tasksByParent(k.project_id||"",k.id));zt(U.tasks||[])}catch{zt([])}},[]),Dl=d.useCallback(async k=>{trLine truncated
`+a.stack}}var te=Object.prototype.hasOwnProperty,Pe=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,_l=i.unstable_shouldYield,ol=i.unstable_requestPaint,Wt=i.unstable_now,Ul=i.unstable_getCurrentPriorityLevel,mn=i.unstable_ImmediatePriority,Qa=i.unstable_UserBlockingPriority,Se=i.unstable_NormalPriority,Xa=i.unstable_LowPriority,ha=i.unstable_IdlePriority,su=i.log,ru=i.unstable_setDisableYieldValue,Wl=null,Ae=null;function fl(t){if(typeof su=="function"& & ru(t),Ae& & typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(Wl,t)}catch{}}var Oe=Math.clz32?Math.clz32:du,ou=Math.log,fu=Math.LN2;function du(t){return t>>>=0,t===0?32:31-(ou(t)/fu|0)|0}var B=256,U=262144,$=4194304;function at(t){var e=t&42; if(e!==0)return e;switch(t& -t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t; case 262144:case 524288:case 1048576:case 2097152:return t&3932160; case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560; case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function O(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var o=a&134217727; return o!==0?(a=o& ~u,a!==0?n=at(a):(s& =o,s!==0?n=at(s):l||(l=o& ~t,l!==0& & (n=at(l))))):(o=a& ~u,o!==0?n=at(o):s!==0?n=at(s):l||(l=a& ~t,l!==0& & (n=at(l)))),n===0?0:e!==0& & e!==n& & (e& u)===0& & (u=n& -n,l=e& -e,u>=l||u===32& & (l& 4194048)!==0)?e:n}function J(t,e){return(t.pendingLanes& ~(t.suspendedLanes& ~t.pingedLanes)& e)===0}function nt(t,e){(e&8)!==0&&(e|=e&32); var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e; 0< l ; ) { var a = 31-Oe(l),n=1<<a;e|=t[a],l&=~n}return e } function qt ( t , e ) { switch ( t ) { case 1:case 2:case 4:case 8:case 64:return e + 250 ; case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e + 5e3 ; case 4194304:case 8388608:case 16777216:case 33554432:return-1 ; case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1 ; default:return-1 } } function Dt ( ) { var t = $;return $ < < = 1 , ( $ & 62914560 ) = = = 0 & & ( $ = 4194304 ) , t } function xe ( t ) { for ( var e = [],l=0;31 > l;l++)e.push(t);return e}function be(t,e){t.pendingLanes|=e,e!==268435456& & (t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Dc(t,e,l,a,n,u){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0; var o=t.entanglements,m=t.expirationTimes,j=t.hiddenUpdates;for(l=s&~l; 0< l ; ) { var E = 31-Oe(l),z=1<<E;o[E]=0,m[E]=-1;var p = j[E];if(p!==null)for(j[E]=null,E=0;E<p.length;E++){var _ = p[E];_!==null&&(_.lane&=-536870913)}l&=~z}a!==0&&ci(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function ci ( t , e , l ) { t . pendingLanes | = e , t . suspendedLanes & = ~ e ; var a = 31-Oe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function hn ( t , e ) { var l = t.entangledLanes|=e;for(t=t.entanglements;l;){var a = 31-Oe(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function $ l ( t , e ) { var l = e&-e;return l = (l&42)!==0?1:Hl(l),(l&(t.suspendedLanes|e))!==0?0:l}function Hl ( t ) { switch ( t ) { case 2:t = 1;break;case 8:t = 4;break;case 32:t = 16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t = 128;break;case 268435456:t = 134217728;break;default:t=0}return t } function mu ( t ) { return t & = -t , 2 < t ? 8 < t ? ( t & 134217727 ) ! = = 0 ? 32:268435456:8:2 } function hu ( ) { var t = dt.p;return t ! = = 0 ? t: ( t = window.event,t===void 0 ? 32:Eh ( t . type ) ) } function Ze ( t , e ) { var l = dt.p;try{return dt . p = t,e()}finally{dt.p=l}}var ae = Math.random().toString(36).slice(2),ve="__reactFiber$"+ae,Ke="__reactProps$"+ae,vn="__reactContainer$"+ae,So="__reactEvents$"+ae,Ph="__reactListeners$"+ae,tv="__reactHandles$"+ae,xo="__reactResources$"+ae,vu="__reactMarker$"+ae,si="__reactLoad$"+ae;function ri ( t ) { delete t [ ve ] , delete t [ Ke ] , delete t [ Ph ] , delete t [ tv ] } function La ( t ) { var e ; if ( e = t[ve])return e ; for ( var l = t.parentNode;l;){if(e=l[vn]||l[ve]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=uh(t);t!==null;){if(l=t[ve])return l ; t = uh(t)}return e } t = l,l=t.parentNode}return null } function yn ( t ) { if ( t = t[ve]||t[vn]){var e = t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t } return null } function yu ( t ) { var e = t.tag;if(e===5||e===26||e===27||e===6)return t . stateNode ; throw Error ( f ( 33 ) ) } function gn ( t ) { var e = t[xo];return e | | ( e = t[xo]={hoistableStyles:new Map , hoistableScripts:new Map } ) , e } function je ( t ) { t [ vu ] = ! 0 } function bo ( t ) { t [ si ] = void 0 } var jo = new Set , To = {};function Va ( t , e ) { pn ( t , e ) , pn ( t + " Capture " , e ) } function pn ( t , Line truncated
`).replace(G0,"")}function qm(t,e){return e=Bm(e),Bm(t)===e}function Vt(t,e,l,a,n,u){switch(l){case"children":if(typeof a=="string")e==="body"||e==="textarea"&&a===""||xn(t,a); else if(typeof a=="number"||typeof a=="bigint")e!=="body"&&xn(t,""+a); else return;break;case"className":fi(t,"class",a);break;case"tabIndex":fi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fi(t,l,a);break;case"style":Do(t,a,u);return;case"data":if(e!=="object"){fi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l); break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=di(a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Vt(t,e,"name",n.name,n,null),Vt(t,e,"formEncType",n.formEncType,n,null),Vt(t,e,"formMethod",n.formMethod,n,null),Vt(t,e,"formTarget",n.formTarget,n,null)):(Vt(t,e,"encType",n.encType,n,null),Vt(t,e,"method",n.method,n,null),Vt(t,e,"target",n.target,n,null))); if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=di(a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=wl); return;case"onScroll":a!=null&&At("scroll",t); return;case"onScrollEnd":a!=null&&At("scrollend",t); return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));(u!=null?u.__html:void 0)!==l&&(t.innerHTML=l)}}break; case"multiple":t.multiple=a& & typeof a!="function"& & typeof a!="symbol";break;case"muted":t.muted=a& & typeof a!="function"& & typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=di(a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null& & typeof a!="function"& & typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a& & typeof a!="function"& & typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1& & a!=null& & typeof a!="function"& & typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null& & typeof a!="function"& & typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l); break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":At("beforetoggle",t),At("toggle",t),oi(t,"popover",a);break;case"xlinkActuate":Il(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Il(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Il(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Il(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Il(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Il(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Il(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Il(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Il(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":oi(t,"is",a);break;case"innerText":case"textContent":return;default:if(!(2< l.length ) | | l [ 0 ] ! = = " o " & & l [ 0 ] ! = = " O " | | l [ 1 ] ! = = " n " & & l [ 1 ] ! = = " N " ) l = iv.get(l)||l,oi(t,l,a);else return } kt = !0}function Hr ( t , e , l , a , n , u ) { switch ( l ) { case " style " :Do ( t , a , u ) ; return ; case " dangerouslySetInnerHTML " :if ( a ! = null ) { if ( typeof a ! = " object " | | ! ( " __html " in a ) ) throw Error ( f ( 61 ) ) ; if ( l = a.__html,l!=null){if(n.children!=null)throw Error ( f ( 60 ) ) ; ( u ! = null ? u . __html:void 0 ) ! = = l & & ( t . innerHTML = l)}}break;case"children":if(typeof a = ="string")xn(t,a);else if ( typeof a = ="number"||typeof a = ="bigint")xn(t,""+a);else return ; break ; case " onScroll " :a ! = null & & At ( " scroll " , t ) ; return ; case " onScrollEnd " :a ! = null & & At ( " scro Line truncated
`;q t& & (x e+=q t+`
`),D t& & (x e+=(Array.isArray(D t)?D t.join(`
`):String(D t))+`
`),xe+=JSON.stringify(nt,null,2).slice(0,4e3),jl(xe),ce("已返回登录信息,见下方")}catch(nt){ce("发起失败:"+nt.message)}},[]),U=d.useCallback(async()=>{const O=V.trim();if(!O){W("请填要查配额的用户 id");return}try{const J=await tt(K.adminQuotaUser(O));W("用户 "+O.slice(0,8)+":本月用量 "+fo(J.used_usd_micros)+" / 配额 "+fo(J.quota_usd_micros)+(J.remaining_usd_micros!==null& & J.remaining_usd_micros!==void 0?"(剩余 "+fo(J.remaining_usd_micros)+") ":"")+" | 月份 "+(J.month||""))}catch(J){W(oo(J))}},[V]),$=d.useCallback(async()=>{if(window.confirm("确定手动触发 sweep 吗?超阈值的陈旧 running 任务会被标为 interrupted。"))try{const J=(await tt(K.adminSweep,"POST",{})).swept||[];W("sweep 完成,清理 "+J.length+" 个任务"+(J.length?": "+J.join("、"):""))}catch(O){W(oo(O))}},[]),at=d.useCallback(async()=>{try{const O=await tt(K.adminBackup,"POST",{});W("备份完成:backend="+O.backend+" | 路径 "+O.path+" | 大小 "+O.size_bytes+" 字节 | 任务 "+O.task_count+" 行")}catch(O){W(oo(O))}},[]);return{keySaved:i,keyState:h,quotaText:g,healthText:A,adminGate:H,adminBody:Y,adminResult:k,adminUserId:V,setAdminUserId:I,projects:X,projectId:gt,setProjectId:xt,projectMsg:Z,githubRepos:w,workers:et,workersSummary:Bt,workersError:wt,members:ot,memberMsg:G,memberError:ut,skills:pt,apps:we,mcpServers:y,skillMsg:ct,skillError:Nt,mcpMsg:Rt,mcpOauthMsg:dt,mcpOauthBox:Ga,envs:Le,envCount:Gt,envMsg:Jl,envRepoLine:da,envRepoBar:zl,envRepoMsg:Tl,envSelect:se,setEnvSelect:re,models:rl,modelCustomVisible:ma,refreshHealth:qe,loadQuota:_l,probeAdmin:ol,refreshProjects:Wt,loadGithubRepos:Ul,loadRelayModels:mn,refreshWorkers:Qa,refreshEnvs:Se,refreshMembers:Xa,refreshSkills:ha,saveKeyInput:su,clearKeyInput:ru,createProject:Wl,createEnv:Ae,archiveEnv:fl,saveEnvRepo:Oe,inviteMember:ou,changeMemberRole:fu,reloadMcp:du,mcpOauth:B,adminQuota:U,adminSweep:$,adminBackup:at}}const mo=20;function ag(){const[i,r]=d.useState([]),[h,f]=d.useState(""),[g,C]=d.useState(""),[A,S]=d.useState(""),[H,R]=d.useState(""),[Y,x]=d.useState(0),[k,W]=d.useState(0),[V,I]=d.useState({}),X=d.useRef(0),ht=d.useRef({status:"",executor:"",q:""});ht.current={status:g,executor:A,q:H};const gt=d.useRef(""),xt=d.useCallback(async(ot,rt,G)=>{const N=ot!==void 0?ot:rt;if(!N){r([]),W(0),I({});return}gt.current=N;const ut=G!==void 0?G:X.current,St=ht.current;try{const pt=await tt(K.tasksPage(N,mo,ut*mo,St.status,St.executor,St.q));r(pt.tasks||[]),W(pt.total??(pt.tasks||[]).length),I(pt.status_counts||{}),f("")}catch(pt){f("加载失败:"+pt.message)}},[]),Z=d.useCallback(ot=>{const rt=Math.max(0,ot);X.current=rt,x(rt)},[]),Tt=d.useCallback(ot=>{Z(ot),xt(gt.current||void 0,void 0,ot)},[xt,Z]);d.useEffect(()=>{if(!gt.current)return;const ot=setTimeout(()=>{xt(gt.current,void 0,0)},300);return()=>clearTimeout(ot)},[g,A,H]);const w=d.useCallback(ot=>{C(ot),Z(0)},[Z]),Q=d.useCallback(ot=>{S(ot),Z(0)},[Z]),et=d.useCallback(ot=>{R(ot),Z(0)},[Z]),zt=d.useCallback(async ot=>{Z(0),await xt(ot,void 0,0)},[xt,Z]),Bt=Math.max(1,Math.ceil(k/mo)),vt=k===0?"共 0 个任务":"共 "+k+" 个任务,第 "+(Y+1)+" / "+Bt+" 页",wt=i,q=d.useCallback(async(ot,rt)=>{const G={...ot};rt.length& & (G.upload_id=await tg(rt));const N=await tt(K.tasksCreate,"POST",G);return"任务已建:"+Ne(N.id)},[]);return{tasks:i,taskError:h,statusFilter:g,setStatusFilter:w,executorFilter:A,setExecutorFilter:Q,searchText:H,setSearchText:et,filteredTasks:wt,taskCountText:vt,refreshTasks:xt,refreshTasksFirstPage:zt,page:Y,totalPages:Bt,taskTotal:k,taskStatusCounts:V,goToPage:Tt,dispatch:q}}function ng(i,r){const[h,f]=d.useState(null),[g,C]=d.useState(""),[A,S]=d.useState(""),[H,R]=d.useState(""),[Y,x]=d.useState(""),[k,W]=d.useState(void 0),[V,I]=d.useState(!1),[X,ht]=d.useState(""),[gt,xt]=d.useState([]),[Z,Tt]=d.useState([]),[w,Q]=d.useState(""),[et,zt]=d.useState([]),[Bt,vt]=d.useState(""),[wt,q]=d.useState(""),[ot,rt]=d.useState([]),[G,N]=d.useState(""),[ut,St]=d.useState(""),[pt,ge]=d.useState(""),[we,Ce]=d.useState(""),[y,D]=d.useState([]),[ct,it]=d.useState([]),[Nt,_t]=d.useState(""),[Rt,P]=d.useState([]),[dt,ce]=d.useState(""),[Ga,jl]=d.useState(""),[Le,le]=d.useState(""),[Gt,he]=d.useState(""),[Jl,pe]=d.useState([]),[da,Ve]=d.useState(""),[zl,Rl]=d.useState(null),Tl=d.useRef(null),Be=d.useRef(null),se=d.useRef(null);se.current=h;const re=d.useCallback(()=>{if(Tl.current){try{Tl.current.abort()}catch{}Tl.current=null}Be.current& & (clearTimeout(Be.current),Be.current=null)},[]),rl=d.useCallback(async B=>{try{const U=await tt(K.taskAgents(B));Tt(U.agents||[]),Q(U.note||"")}catch(U){Tt([]),Q("子代理链路加载失败:"+U.message)}},[]),Fl=d.useCallback(B=>{Be.current& & clearTimeout(Be.current),Be.current=setTimeout(()=>void rl(B),1e3)},[rl]),ma=d.useCallback(async B=>{if(!B.coordinator_parts){xt([]);return}try{const U=await tt(K.tasksByParent(B.project_id||"",B.id));xt(U.tasks||[])}catch{xt([])}},[]),Dl=d.useCallback(async B=>{try{Line truncated
`);hn=Hl.pop()||"";for(const mu of Hl){const hu=mu.split(`
`).filter(Ze=>Ze.indexOf("data: ")===0).map(Ze=>Ze.slice(6)).join(`
`);if(hu)try{const Ze=JSON.parse(hu);if(Ze.type==="snapshot")t t=Ze.entries||[],Object.keys(M ).forEach(ae=>delete M [ae]),t t.forEach((ae,ve)=>{ae.id&&(M [ae.id]=ve)}),Z =Ze.note||"",s t([...t t]),N(Z ),J l(k ); else if(Ze.type==="entry"){const ae=Ze.entry;ae.id& & ae.id in M?t t[M [ae.id]]=ae:(ae.id& & (M [ae.id]=t t.length),t t.push(ae)),s t([...t t]),J l(k )}else Ze.type==="done"&&(e t=!0,B t=Ze.status,g t(B t))}catch{}}if(e t)break}}catch(M t){if(M t&&M t.name==="AbortError")return; N("链路流中断:"+M t.message);return}e t& & r()},[re,J l,r]),Se=d.useCallback(async k =>{re();try{const U=await I (K.task(k ));f(U);let W ="";U.result_text& & (W +=`=== result ===
`);if(hu)try{const Ze=JSON.parse(hu);if(Ze.type==="snapshot")a t=Ze.entries||[],Object.keys(O ).forEach(ae=>delete O [ae]),a t.forEach((ae,ve)=>{ae.id&&(O [ae.id]=ve)}),J =Ze.note||"",r t([...a t]),N(J ),F l(B ); else if(Ze.type==="entry"){const ae=Ze.entry;ae.id& & ae.id in O?a t[O [ae.id]]=ae:(ae.id& & (O [ae.id]=a t.length),a t.push(ae)),r t([...a t]),F l(B )}else Ze.type==="done"&&(n t=!0,q t=Ze.status,S t(q t))}catch{}}if(n t)break}}catch(D t){if(D t&&D t.name==="AbortError")return; N("链路流中断:"+D t.message);return}n t& & r()},[re,F l,r]),Se=d.useCallback(async B =>{re();try{const U=await tt (K.task(B ));f(U);let $ ="";U.result_text& & ($ +=`=== result ===
`+U.result_text.slice(0,8e3)+`
`),U.error_text& & (W +=`=== error ===
`),U.error_text& & ($ +=`=== error ===
`+U.error_text.slice(0,8e3)+`
`),W ||(W ="(暂无 result/error 输出)"),C(W ),j (""),X (void 0),Dl(k ),at (!1),v t(""),ce(""),he(""),mn(U.status);const t t=i(U.project_id),M=t t==="maintainer"||t t==="owner",Z=t t==="contributor"||M,e t=uu.includes(U.status),B t=[];["failed","interrupted","merge-failed"].includes(U.status)& & M ||B t.push("重试:不可用——仅 failed/interrupted/merge-failed 可重试"+(M ?"":",且仅 maintainer 可重试")),!e t& & Z ||B t.push("取消:不可用——"+(e t?"终态任务不可取消":"仅项目成员(contributor 及以上)可取消")),U.status==="completed"& & M ||B t.push("合并:不可用——仅 completed 可合并"+(M ?"":",且仅 maintainer 可合并")),U.status==="merged"& & M ||B t.push("提 PR:不可用——仅 merged 可提 PR"+(M ?"":",且仅 maintainer 可提 PR")),O(B t.join("; ")),p (""),Qa(k ,U.status),rl(k ),d a(U),Pe(k ),te(k ),ol(k ),Wt(k ),Ul(k ),qe(k ),_l(k )}catch(U){f(null),C("加载失败:"+U.message)}},[re,Qa,rl,d a,Pe,te,ol,Wt,Ul,qe,_l,Dl,i]),Xa=d.useCallback(async()=>{const k =se.current;if(k ){try{const U=await I (K.task(k .id));f(U);let W ="";U.result_text& & (W +=`=== result ===
`),$ ||($ ="(暂无 result/error 输出)"),C($ ),x (""),W (void 0),Dl(B ),I (!1),h t(""),ce(""),he(""),mn(U.status);const a t=i(U.project_id),O=a t==="maintainer"||a t==="owner",J=a t==="contributor"||O,n t=uu.includes(U.status),q t=[];["failed","interrupted","merge-failed"].includes(U.status)& & O ||q t.push("重试:不可用——仅 failed/interrupted/merge-failed 可重试"+(O ?"":",且仅 maintainer 可重试")),!n t& & J ||q t.push("取消:不可用——"+(n t?"终态任务不可取消":"仅项目成员(contributor 及以上)可取消")),U.status==="completed"& & O ||q t.push("合并:不可用——仅 completed 可合并"+(O ?"":",且仅 maintainer 可合并")),U.status==="merged"& & O ||q t.push("提 PR:不可用——仅 merged 可提 PR"+(O ?"":",且仅 maintainer 可提 PR")),R(q t.join("; ")),S (""),Qa(B ,U.status),rl(B ),m a(U),Pe(B ),te(B ),ol(B ),Wt(B ),Ul(B ),qe(B ),_l(B )}catch(U){f(null),C("加载失败:"+U.message)}},[re,Qa,rl,m a,Pe,te,ol,Wt,Ul,qe,_l,Dl,i]),Xa=d.useCallback(async()=>{const B =se.current;if(B ){try{const U=await tt (K.task(B .id));f(U);let $ ="";U.result_text& & ($ +=`=== result ===
`+U.result_text.slice(0,8e3)+`
`),U.error_text& & (W +=`=== error ===
`),U.error_text& & ($ +=`=== error ===
`+U.error_text.slice(0,8e3)+`
`),C(W||"(暂无 result/error 输出)")}catch{}te(k.id),Pe(k.id),qe(k.id),_l(k.id),da(k),rl(k.id),ol(k.id),Wt(k.id),Ul(k.id),Dl(k.id)}},[te,Pe,qe,_l,da,rl,ol,Wt,Ul,Dl]),ma=d.useCallback(async k=>{const U=se.current;if(!U)return;const W={cancel:"确定取消该任务吗?",merge:"确定把 completed 任务标为 merged 吗?",pr:"确定为该任务提 PR 吗?(会在仓库真实建 PR) "};if(!(W[k]& & !window.confirm(W[k])))try{const tt=await I(K.taskAction(U.id,k),"POST",{});p(k+" 已提交:"+JSON.stringify(tt).slice(0,300)),r(),await Se(U.id)}catch(tt){p(k+" 失败:"+tt.message)}},[Se,r]),su=d.useCallback(async()=>{const k=se.current;if(k)try{const U=await I(K.taskCost(k.id));j(JSON.stringify(U,null,2).slice(0,4e3))}catch(U){j("查成本失败:"+U.message)}},[]),ru=d.useCallback(async k=>{const U=se.current;if(U){if(!k.trim()){vt("分支消息必填");return}if(!uu.includes(U.status)){vt("仅终态任务可分支");return}try{const W=await I(K.taskFork(U.id),"POST",{message:k.trim()});vt("分支任务已建:"+W.id.slice(0,8)),r()}catch(W){vt("分支失败:"+W.message)}}},[r]),Fl=d.useCallback(async k=>{const U=se.current;if(U)try{await I(K.taskReviews(U.id),"POST",k),Nt("评审已登记(requested) "),await qe(U.id)}catch(W){Nt("登记评审需求失败:"+W.message)}},[qe]),Ae=d.useCallback(k=>{const U=se.current;if(!U)return;const W=window.prompt("输入该条评审的 findings(将写回记录并标为 completed):");W!==null& & I(K.taskReviewFindings(U.id,k),"POST",{findings:W}).then(()=>void qe(U.id)).catch(tt=>Nt("写 findings 失败:"+tt.message))},[qe]),fl=d.useCallback((k,U)=>{const W=se.current;if(!W)return;const tt=U==="approved"?"approve":"deny";I(K.taskApprovalDecision(W.id,k,tt),"POST",{}).then(()=>{xt("已记录"+(U==="approved"?"允许":"拒绝")+"(当前版本只留回执,不拦截实时行为)"),_l(W.id)}).catch(M=>xt("决定失败:"+M.message))},[_l]),Oe=d.useCallback(async(k,U,W)=>{const tt=se.current;if(tt){if(!U.trim()){ce("目标任务 id 不能为空");return}if(!W.trim()){ce("消息正文不能为空");return}try{const M=await I(K.taskMessagesTo(U.trim()),"POST",{from_task_id:tt.id,body:W.trim(),mode:k});ce("已发送("+M.delivery+") "),await ol(tt.id)}catch(M){ce("发送失败:"+M.message)}}},[ol]),ou=d.useCallback((k,U)=>{const W=se.current;if(!W)return;if(!["completed","failed","interrupted"].includes(W.status)){he("仅 completed/failed/interrupted 任务可操作线程(merged/merge-failed 不可改,服务端同样 409) ");return}const tt={};if(k==="rename"){if(!U.trim()){he("新线程名不能为空");return}tt.name=U.trim()}I(K.taskThreadAction(W.id,k),"POST",tt).then(M=>{he(k+" 已提交:"+JSON.stringify(M).slice(0,300)),Wt(W.id),Ul(W.id)}).catch(M=>he(k+" 失败:"+M.message))},[Wt,Ul]),fu=d.useCallback(async k=>{const U=se.current;if(!U)return;const W=k.trim();if(!W){Ve("消息不能为空");return}try{uu.includes(U.status)& & U.status!=="merged"?(await I(K.taskContinue(U.id),"POST",{message:W}),Ve("已重新排队,同一会话继续"),r(),await Se(U.id)):["queued","running"].includes(U.status)?(await I(K.taskFollowups(U.id),"POST",{body:W,mode:"direct"}),Ve("已直接发送"),await te(U.id),await Pe(U.id)):Ve("merged/merge-failed 任务不可继续,也不可发后续消息")}catch(tt){Ve("发送失败:"+tt.message)}},[Se,r,te,Pe]),du=d.useCallback(async()=>{const k=se.current;if(!k){Ce("先选一个任务");return}try{const U=await I(K.taskTrace(k.id)),W=new Blob([JSON.stringify({task_id:k.id,status:U.status,note:U.note||"",count:(U.entries||[]).length,entries:U.entries||[]},null,2)],{type:"application/json"}),tt=document.createElement("a");tt.href=URL.createObjectURL(W),tt.download="trace-"+k.id.slice(0,8)+".json",document.body.appendChild(tt),tt.click(),tt.remove(),setTimeout(()=>URL.revokeObjectURL(tt.href),1e3),Ce("已下载完整链路 "+(U.entries||[]).length+" 条")}catch(U){Ce("下载失败:"+U.message)}},[]);return d.useEffect(()=>()=>re(),[re]),{currentTask:h,detailBody:S,actionMsg:A,actionReasons:H,costBox:Y,costSummary:w,forkVisible:V,setForkVisible:at,forkMsg:L,coordChildren:bt,agents:J,agentsNote:it,reviews:rt,reviewMsg:Qt,reviewError:kt,traceEntries:ot,traceNote:q,traceDone:lt,traceKind:yt,setTraceKind:ge,traceMsg:we,followups:y,approvals:ut,approvalMsg:Tt,peerMessages:Ot,peerMsg:dt,threadText:Ga,threadGateNote:Le,threadMsg:Yt,threadList:Kl,chatMsg:fa,chatHistory:zl,showDetail:Se,refreshDetailLists:Xa,doAction:ma,taskCost:su,forkTask:ru,postReview:Fl,submitFindings:Ae,decideApproval:fl,postPeer:Oe,threadAction:ou,sendChatMessage:fu,downloadTrace:du,refreshReviews:()=>void qe(),refreshApprovals:()=>void _l()}}function ng(i){const[r,h]=d.useState([]),[f,S]=d.useState(""),[C,A]=d.useState(null),[p,H]=d.useState(""),O=d.useCallback(async X=>{const V=X!==void 0?X:i();if(!V){h([]);return}try{const at=await I(K.projectAutomations(V));h(at.automations||[])}catch(at){S("自动化加载失败:"+at.message)}},[i]),Line truncated
(链路摘要已截断至 300 字,完整回复见右侧任务结果)`:f,label:"助手"}}if(i.kind==="exec"||i.kind==="file"||i.kind==="tool"||i.kind==="call"){const f=i.kind==="exec"?"命令":i.kind==="file"?"文件":i.kind==="tool"?"工具":"调用";return{id:h,role:"tool",kind:i.kind,text:vo(i),label:f}}return i.kind==="plan"?{id:h,role:"status",kind:i.kind,text:i.text||""}:i.kind==="reasoning"?{id:h,role:"status",kind:i.kind,text:"思考:"+(i.summary||"")}:i.kind==="agent-start"?{id:h,role:"status",kind:i.kind,text:"子代理开始:"+(i.name||"")+(i.prompt?"( "+i.prompt+") ":"")}:i.kind==="agent-done"?{id:h,role:"status",kind:i.kind,text:"子代理结束:"+(i.name||"")+" "+(i.status||"")}:{id:h,role:"status",kind:i.kind,text:vo(i)}}function gg(){const i=Zt(),r=i.currentTask,h=d.useMemo(()=>{if(!r)return[];let H;if(i.chatHistory){H=i.chatHistory.messages.map(V=>({id:V.id,role:V.role,text:V.text,label:V.label,kind:V.kind}));const w=new Set(H.map(V=>V.id)),X=i.traceEntries.filter(V=>V.id&&!w.has(V.id)&&!String(V.id).startsWith("fu-")).map((V,at)=>Xh(V,at)); H=[...H,...X]}else{const w=r.prompt?[{id:"task-prompt",role:"user",text:r.prompt}]:[],X=i.traceEntries.filter(at=>!String(at.id||"").startsWith("fu-")).map((at,L)=>Xh(at,L)),V=i.followups.map((at,L)=>({id:"followup-"+L,role:"user",text:String(at.body||""),label:"后续消息"}));H=[...w,...X,...V]}const O=i.traceKind,Y=O?H.filter(w=>w.role==="user"||!w.kind||w.kind===O):H,j=i.traceDone?[{id:"trace-done",role:"status",text:"链路已结束("+i.traceDone+") "}]:[];return[...Y,...j]},[r,i.chatHistory,i.traceEntries,i.followups,i.traceKind,i.traceDone]);if(!r)return c.jsx("div",{className:"muted",children:"点任务行查看详情后,这里显示继续会话"});const f=uu.includes(r.status),S=["queued","running"].includes(r.status),C=f||S,A=f?"终态任务:发送走继续接口(同一会话再跑一轮)":S?"运行中/排队中:发送走后续消息直接发送(跑完当前轮后优先执行)":"merged/merge-failed 任务不可继续,也不可发后续消息",p=i.chatHistory?i.chatHistory.legacy_continue_count??null:null;return c.jsxs("div",{className:"chat-column",children:[c.jsx("div",{className:"muted",children:"实时对话"}),c.jsxs(wt,{children:[c.jsxs("select",{"aria-label":"链路类型",value:i.traceKind,onChange:H=>i.setTraceKind(H.target.value),children:[c.jsx("option",{value:"",children:"链路类型:全部"}),["exec","file","call","tool","message","reasoning","plan","agent-start","agent-done"].map(H=>c.jsx("option",{value:H,children:H==="exec"?"命令":H==="file"?"文件":H==="call"?"调用":H==="tool"?"工具":H==="message"?"消息":H==="reasoning"?"思考":H==="plan"?"计划":"子代理"},H))]}),c.jsx("button",{onClick:i.downloadTrace,children:"下载完整链路"}),c.jsx("span",{className:"muted",children:i.traceMsg})]}),i.traceNote?c.jsx("div",{children:c.jsx("span",{className:"err",children:i.traceNote})}):null,p!==null& & p>0?c.jsxs("div",{className:"muted",children:["此前有 ",p," 条继续消息发生在持久化之前,未入库,上面历史不完整;部署后新发的继续消息会正常显示。"]}):null,i.chatHistory& & i.chatHistory.trace_note?c.jsx("div",{className:"muted",children:i.chatHistory.trace_note}):null,c.jsx(vg,{messages:h,empty:"(暂无会话消息)"}),c.jsx(yg,{disabled:!C,placeholder:"消息",onSend:H=>void i.sendChatMessage(H)}),c.jsxs("div",{className:"muted",children:[A,"。",i.chatMsg]}),c.jsx("div",{className:"muted",children:"对话时间线:首条是本任务 prompt(用户);助手回复、命令/文件/工具/调用、计划/思考/子代理开始结束都在同一列里,不再另起一份链路名单。流式进行中时新条目实时追加;你在底部时自动跟随,往上翻时暂停跟随,点“回到最新”恢复。"})]})}function pg(){return Zt().currentTask?c.jsx("div",{className:"conversation",children:c.jsx(gg,{})}):c.jsx("div",{className:"conversation",children:c.jsx("div",{className:"muted",children:"在任务列表里点一条任务,对话和详情就切到该任务;也可以在上面派发一个新任务。"})})}function Sg(){const i=Zt(),r=i.currentTask,[h,f]=d.useState("");if(!r)return null;const S=uu.includes(r.status),C=["failed","interrupted","merge-failed"].includes(r.status);return c.jsxs(c.Fragment,{children:[c.jsxs(wt,{children:[c.jsx("button",{disabled:!C,title:C?"":"仅 failed/interrupted/merge-failed 可重试",onClick:()=>i.doAction("retry"),children:"重试"}),c.jsx("button",{className:"danger",disabled:S,title:S?"终态任务不可取消":"",onClick:()=>i.doAction("cancel"),children:"取消"}),c.jsx("button",{disabled:r.status!=="completed",title:r.status!=="completed"?"仅 completed 可合并":"",onClick:()=>i.doAction("merge"),children:"合并(completed → merged) "}),c.jsx("button",{disabled:r.status!=="merged",title:r.status!=="merged"?"仅 merged 可提 PR":"",onClick:()=>i.doAction("pr"),children:"提 PR(须Line truncated
`),C($||"(暂无 result/error 输出)")}catch{}te(B.id),Pe(B.id),qe(B.id),_l(B.id),ma(B),rl(B.id),ol(B.id),Wt(B.id),Ul(B.id),Dl(B.id)}},[te,Pe,qe,_l,ma,rl,ol,Wt,Ul,Dl]),ha=d.useCallback(async B=>{const U=se.current;if(!U)return;const $={cancel:"确定取消该任务吗?",merge:"确定把 completed 任务标为 merged 吗?",pr:"确定为该任务提 PR 吗?(会在仓库真实建 PR) "};if(!($[B]& & !window.confirm($[B])))try{const at=await tt(K.taskAction(U.id,B),"POST",{});S(B+" 已提交:"+JSON.stringify(at).slice(0,300)),r(),await Se(U.id)}catch(at){S(B+" 失败:"+at.message)}},[Se,r]),su=d.useCallback(async()=>{const B=se.current;if(B)try{const U=await tt(K.taskCost(B.id));x(JSON.stringify(U,null,2).slice(0,4e3))}catch(U){x("查成本失败:"+U.message)}},[]),ru=d.useCallback(async B=>{const U=se.current;if(U){if(!B.trim()){ht("分支消息必填");return}if(!uu.includes(U.status)){ht("仅终态任务可分支");return}try{const $=await tt(K.taskFork(U.id),"POST",{message:B.trim()});ht("分支任务已建:"+$.id.slice(0,8)),r()}catch($){ht("分支失败:"+$.message)}}},[r]),Wl=d.useCallback(async B=>{const U=se.current;if(U)try{await tt(K.taskReviews(U.id),"POST",B),vt("评审已登记(requested) "),await qe(U.id)}catch($){vt("登记评审需求失败:"+$.message)}},[qe]),Ae=d.useCallback(B=>{const U=se.current;if(!U)return;const $=window.prompt("输入该条评审的 findings(将写回记录并标为 completed):");$!==null& & tt(K.taskReviewFindings(U.id,B),"POST",{findings:$}).then(()=>void qe(U.id)).catch(at=>vt("写 findings 失败:"+at.message))},[qe]),fl=d.useCallback((B,U)=>{const $=se.current;if(!$)return;const at=U==="approved"?"approve":"deny";tt(K.taskApprovalDecision($.id,B,at),"POST",{}).then(()=>{_t("已记录"+(U==="approved"?"允许":"拒绝")+"(当前版本只留回执,不拦截实时行为)"),_l($.id)}).catch(O=>_t("决定失败:"+O.message))},[_l]),Oe=d.useCallback(async(B,U,$)=>{const at=se.current;if(at){if(!U.trim()){ce("目标任务 id 不能为空");return}if(!$.trim()){ce("消息正文不能为空");return}try{const O=await tt(K.taskMessagesTo(U.trim()),"POST",{from_task_id:at.id,body:$.trim(),mode:B});ce("已发送("+O.delivery+") "),await ol(at.id)}catch(O){ce("发送失败:"+O.message)}}},[ol]),ou=d.useCallback((B,U)=>{const $=se.current;if(!$)return;if(!["completed","failed","interrupted"].includes($.status)){he("仅 completed/failed/interrupted 任务可操作线程(merged/merge-failed 不可改,服务端同样 409) ");return}const at={};if(B==="rename"){if(!U.trim()){he("新线程名不能为空");return}at.name=U.trim()}tt(K.taskThreadAction($.id,B),"POST",at).then(O=>{he(B+" 已提交:"+JSON.stringify(O).slice(0,300)),Wt($.id),Ul($.id)}).catch(O=>he(B+" 失败:"+O.message))},[Wt,Ul]),fu=d.useCallback(async B=>{const U=se.current;if(!U)return;const $=B.trim();if(!$){Ve("消息不能为空");return}try{uu.includes(U.status)& & U.status!=="merged"?(await tt(K.taskContinue(U.id),"POST",{message:$}),Ve("已重新排队,同一会话继续"),r(),await Se(U.id)):["queued","running"].includes(U.status)?(await tt(K.taskFollowups(U.id),"POST",{body:$,mode:"direct"}),Ve("已直接发送"),await te(U.id),await Pe(U.id)):Ve("merged/merge-failed 任务不可继续,也不可发后续消息")}catch(at){Ve("发送失败:"+at.message)}},[Se,r,te,Pe]),du=d.useCallback(async()=>{const B=se.current;if(!B){Ce("先选一个任务");return}try{const U=await tt(K.taskTrace(B.id)),$=new Blob([JSON.stringify({task_id:B.id,status:U.status,note:U.note||"",count:(U.entries||[]).length,entries:U.entries||[]},null,2)],{type:"application/json"}),at=document.createElement("a");at.href=URL.createObjectURL($),at.download="trace-"+B.id.slice(0,8)+".json",document.body.appendChild(at),at.click(),at.remove(),setTimeout(()=>URL.revokeObjectURL(at.href),1e3),Ce("已下载完整链路 "+(U.entries||[]).length+" 条")}catch(U){Ce("下载失败:"+U.message)}},[]);return d.useEffect(()=>()=>re(),[re]),{currentTask:h,detailBody:g,actionMsg:A,actionReasons:H,costBox:Y,costSummary:k,forkVisible:V,setForkVisible:I,forkMsg:X,coordChildren:gt,agents:Z,agentsNote:w,reviews:et,reviewMsg:Bt,reviewError:wt,traceEntries:ot,traceNote:G,traceDone:ut,traceKind:pt,setTraceKind:ge,traceMsg:we,followups:y,approvals:ct,approvalMsg:Nt,peerMessages:Rt,peerMsg:dt,threadText:Ga,threadGateNote:Le,threadMsg:Gt,threadList:Jl,chatMsg:da,chatHistory:zl,showDetail:Se,refreshDetailLists:Xa,doAction:ha,taskCost:su,forkTask:ru,postReview:Wl,submitFindings:Ae,decideApproval:fl,postPeer:Oe,threadAction:ou,sendChatMessage:fu,downloadTrace:du,refreshReviews:()=>void qe(),refreshApprovals:()=>void _l()}}function ug(i){const[r,h]=d.useState([]),[f,g]=d.useState(""),[C,A]=d.useState(null),[S,H]=d.useState(""),R=d.useCallback(async V=>{const I=V!==void 0?V:i();if(!I){h([]);return}try{const X=await tt(K.projectAutomations(I));h(X.automations||[])}catch(X){g("自动化加载失败:"+X.message)}}Line truncated
(链路摘要已截断至 300 字,完整回复见右侧任务结果)`:f,label:"助手"}}if(i.kind==="exec"||i.kind==="file"||i.kind==="tool"||i.kind==="call"){const f=i.kind==="exec"?"命令":i.kind==="file"?"文件":i.kind==="tool"?"工具":"调用";return{id:h,role:"tool",kind:i.kind,text:vo(i),label:f}}return i.kind==="plan"?{id:h,role:"status",kind:i.kind,text:i.text||""}:i.kind==="reasoning"?{id:h,role:"status",kind:i.kind,text:"思考:"+(i.summary||"")}:i.kind==="agent-start"?{id:h,role:"status",kind:i.kind,text:"子代理开始:"+(i.name||"")+(i.prompt?"( "+i.prompt+") ":"")}:i.kind==="agent-done"?{id:h,role:"status",kind:i.kind,text:"子代理结束:"+(i.name||"")+" "+(i.status||"")}:{id:h,role:"status",kind:i.kind,text:vo(i)}}function pg(){const i=Zt(),r=i.currentTask,h=d.useMemo(()=>{if(!r)return[];let H;if(i.chatHistory){H=i.chatHistory.messages.map(V=>({id:V.id,role:V.role,text:V.text,label:V.label,kind:V.kind}));const k=new Set(H.map(V=>V.id)),W=i.traceEntries.filter(V=>V.id&&!k.has(V.id)&&!String(V.id).startsWith("fu-")).map((V,I)=>Xh(V,I)); H=[...H,...W]}else{const k=r.prompt?[{id:"task-prompt",role:"user",text:r.prompt}]:[],W=i.traceEntries.filter(I=>!String(I.id||"").startsWith("fu-")).map((I,X)=>Xh(I,X)),V=i.followups.map((I,X)=>({id:"followup-"+X,role:"user",text:String(I.body||""),label:"后续消息"}));H=[...k,...W,...V]}const R=i.traceKind,Y=R?H.filter(k=>k.role==="user"||!k.kind||k.kind===R):H,x=i.traceDone?[{id:"trace-done",role:"status",text:"链路已结束("+i.traceDone+") "}]:[];return[...Y,...x]},[r,i.chatHistory,i.traceEntries,i.followups,i.traceKind,i.traceDone]);if(!r)return c.jsx("div",{className:"muted",children:"点任务行查看详情后,这里显示继续会话"});const f=uu.includes(r.status),g=["queued","running"].includes(r.status),C=f||g,A=f?"终态任务:发送走继续接口(同一会话再跑一轮)":g?"运行中/排队中:发送走后续消息直接发送(跑完当前轮后优先执行)":"merged/merge-failed 任务不可继续,也不可发后续消息",S=i.chatHistory?i.chatHistory.legacy_continue_count??null:null;return c.jsxs("div",{className:"chat-column",children:[c.jsx("div",{className:"muted",children:"实时对话"}),c.jsxs(Ht,{children:[c.jsxs("select",{"aria-label":"链路类型",value:i.traceKind,onChange:H=>i.setTraceKind(H.target.value),children:[c.jsx("option",{value:"",children:"链路类型:全部"}),["exec","file","call","tool","message","reasoning","plan","agent-start","agent-done"].map(H=>c.jsx("option",{value:H,children:H==="exec"?"命令":H==="file"?"文件":H==="call"?"调用":H==="tool"?"工具":H==="message"?"消息":H==="reasoning"?"思考":H==="plan"?"计划":"子代理"},H))]}),c.jsx("button",{onClick:i.downloadTrace,children:"下载完整链路"}),c.jsx("span",{className:"muted",children:i.traceMsg})]}),i.traceNote?c.jsx("div",{children:c.jsx("span",{className:"err",children:i.traceNote})}):null,S!==null& & S>0?c.jsxs("div",{className:"muted",children:["此前有 ",S," 条继续消息发生在持久化之前,未入库,上面历史不完整;部署后新发的继续消息会正常显示。"]}):null,i.chatHistory& & i.chatHistory.trace_note?c.jsx("div",{className:"muted",children:i.chatHistory.trace_note}):null,c.jsx(yg,{messages:h,empty:"(暂无会话消息)"}),c.jsx(gg,{disabled:!C,placeholder:"消息",onSend:H=>void i.sendChatMessage(H)}),c.jsxs("div",{className:"muted",children:[A,"。",i.chatMsg]}),c.jsx("div",{className:"muted",children:"对话时间线:首条是本任务 prompt(用户);助手回复、命令/文件/工具/调用、计划/思考/子代理开始结束都在同一列里,不再另起一份链路名单。流式进行中时新条目实时追加;你在底部时自动跟随,往上翻时暂停跟随,点“回到最新”恢复。"})]})}function Sg(){return Zt().currentTask?c.jsx("div",{className:"conversation",children:c.jsx(pg,{})}):c.jsx("div",{className:"conversation",children:c.jsx("div",{className:"muted",children:"在任务列表里点一条任务,对话和详情就切到该任务;也可以在上面派发一个新任务。"})})}function xg(){const i=Zt(),r=i.currentTask,[h,f]=d.useState("");if(!r)return null;const g=uu.includes(r.status),C=["failed","interrupted","merge-failed"].includes(r.status);return c.jsxs(c.Fragment,{children:[c.jsxs(Ht,{children:[c.jsx("button",{disabled:!C,title:C?"":"仅 failed/interrupted/merge-failed 可重试",onClick:()=>i.doAction("retry"),children:"重试"}),c.jsx("button",{className:"danger",disabled:g,title:g?"终态任务不可取消":"",onClick:()=>i.doAction("cancel"),children:"取消"}),c.jsx("button",{disabled:r.status!=="completed",title:r.status!=="completed"?"仅 completed 可合并":"",onClick:()=>i.doAction("merge"),children:"合并(completed → merged) "}),c.jsx("button",{disabled:r.status!=="merged",title:r.status!=="merged"?"仅 merged 可提 PR":"",onClick:()=>i.doAction("pr"),children:"提 PR(须 mergedLine truncated
`);for(;ot>=0;){const s t=N t.slice(0,ot);N t=N t.slice(ot+2);for(const q of s t.split(`
`))if(q .startsWith("data: "))try{const N=JSON.parse(q .slice(6));N.waiting?p (N.task_status==="interrupted"?"任务已中断,等待续跑…":N.task_status==="paused"?"任务已暂停…":"等待会话…"):N.image&&(f("data:image/jpeg; base64,"+N.image),p ("直播中"));const l t={};N.holder& & (l t.holder=N.holder),N.url& & (l t.url=N.url),N.title!==void 0& & (l t.title=N.title),Object.keys(l t).length>0& & C(g t=>({...g t||{},...l t}))}catch{}ot=N t.indexOf(`
`);for(;ot>=0;){const r t=v t.slice(0,ot);v t=v t.slice(ot+2);for(const G of r t.split(`
`))if(G .startsWith("data: "))try{const N=JSON.parse(G .slice(6));N.waiting?S (N.task_status==="interrupted"?"任务已中断,等待续跑…":N.task_status==="paused"?"任务已暂停…":"等待会话…"):N.image&&(f("data:image/jpeg; base64,"+N.image),S ("直播中"));const u t={};N.holder& & (u t.holder=N.holder),N.url& & (u t.url=N.url),N.title!==void 0& & (u t.title=N.title),Object.keys(u t).length>0& & C(S t=>({...S t||{},...u t}))}catch{}ot=v t.indexOf(`
`)}}p("流已断开")}catch(rt){if(rt.name==="AbortError")return;O(rt instanceof Error?rt.message:String(rt)),p("未开始")}finally{j(!1)}},[r]),L=d.useCallback(()=>{var it;(it=w.current)==null||it.abort(),j(!1),p("已停止")},[]),vt=d.useCallback(async it=>{if(r)try{const Q=await I(K.taskBrowserControl(r.id),"POST",{holder:it});C(Q),O("")}catch(Q){O(Q instanceof Error?Q.message:String(Q))}},[r]),bt=d.useCallback(async it=>{if(!r||(S==null?void 0:S.holder)!=="user"||!X.current)return;const Q=X.current.getBoundingClientRect(),rt=Math.round((it.clientX-Q.left)/Q.width*1280),Ut=Math.round((it.clientY-Q.top)/Q.height*800);try{await I(K.taskBrowserInput(r.id),"POST",{type:"mouse_click",x:rt,y:Ut})}catch(Qt){O(Qt instanceof Error?Qt.message:String(Qt))}},[r,S]),zt=d.useCallback(async it=>{if(!(!r||(S==null?void 0:S.holder)!=="user")){it.preventDefault();try{it.key.length===1?await I(K.taskBrowserInput(r.id),"POST",{type:"type",text:it.key}):await I(K.taskBrowserInput(r.id),"POST",{type:"key",key:it.key})}catch(Q){O(Q instanceof Error?Q.message:String(Q))}}},[r,S]);if(!r)return c.jsx("div",{className:"muted",children:"点任务行查看详情"});const J=(S==null?void 0:S.holder)||"—",Rt=S!==null;return c.jsxs("div",{children:[c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center"},children:[c.jsxs("span",{children:["状态 ",c.jsx("b",{children:A})]}),c.jsxs("span",{className:"muted",children:["会话 ",Rt?"活跃":"未激活(轮次结束即消失)"]}),c.jsxs("span",{className:"muted",children:["控制权 ",J]}),S!=null& & S.url?c.jsx("span",{className:"muted",title:S.url,children:S.url.slice(0,80)}):null]}),c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginTop:8},children:[Y?c.jsx("button",{type:"button",onClick:L,children:"停止观看"}):c.jsx("button",{type:"button",onClick:()=>void at(),children:"开始观看"}),c.jsx("button",{type:"button",onClick:()=>void V(),children:"刷新状态"}),J!=="user"?c.jsx("button",{type:"button",onClick:()=>void vt("user"),disabled:!Rt,children:"接管"}):c.jsx("button",{type:"button",onClick:()=>void vt("agent"),children:"交还给 Agent"})]}),H?c.jsx("div",{className:"muted",style:{marginTop:8},children:H}):null,J==="user"?c.jsx("div",{className:"muted",style:{marginTop:8},children:"你已接管:点画面即点击,键盘输入直达页面。交还后 Agent 续跑前会先快照确认你的改动。"}):null,c.jsx("div",{style:{marginTop:8},children:h?c.jsx("img",{ref:X,src:h,alt:"浏览器实时画面",tabIndex:0,onClick:it=>void bt(it),onKeyDown:it=>void zt(it),style:{width:"100%",maxWidth:1280,cursor:J==="user"?"crosshair":"default",border:"1px solid var(--border, #ccc)"}}):c.jsx("div",{className:"muted",children:Rt?"点“开始观看”接入画面流(接管后点画面即点击)":"浏览器会话未激活:任务本轮未开浏览器,或轮次已结束。"})})]})}function xg(){const i=Zt(),[r,h]=d.useState("uncommittedChanges"),[f,S]=d.useState(""),[C,A]=d.useState(""),[p,H]=d.useState("");return c.jsxs(c.Fragment,{children:[c.jsx("h3",{children:"评审队列"}),c.jsxs("select",{"aria-label":"评审目标",value:r,onChange:O=>h(O.target.value),children:[c.jsx("option",{value:"uncommittedChanges",children:"未提交改动(工作区)"}),c.jsx("option",{value:"baseBranch",children:"与分支的差异"}),c.jsx("option",{value:"commit",children:"指定提交"}),c.jsx("option",{value:"custom",children:"自定义评审指令"})]}),c.jsx("input",{className:"stacked",placeholder:"与分支的差异用:分支名(如 main) ",style:{width:"100%"},value:f,onChange:O=>S(O.target.value)}),c.jsx("input",{className:"stacked",placeholder:"指定提交用:提交 sha",style:{width:"100%"},value:C,onChange:O=>A(O.target.value)}),c.jsx("textarea",{placeholder:"自定义评审指令用:评审指令正文",value:p,onChange:O=>H(O.target.value)}),c.jsxs(wt,{children:[c.jsx("button",{className:"primary",onClick:()=>void i.postReview({target_type:r,branch:f.trim()||void 0,sha:C.trim()||void 0,instructions:p.trim()||void 0}),children:"登记评审需求"}),c.jsx("button",{onClick:i.refreshReviews,children:"刷新队列"}),c.jsx("span",{className:"muted",children:i.reviewMsg})]}),c.jsx("div",{className:"muted",children:"本基线只登记评审需求(requested),不自动跑评审;评审是否执行、结果如何,以评审队列里的记录为准。"}),i.reviewError?c.jsx("div",{className:"muted",children:i.reviewError}):i.reviews.length===0?c.jsx("div",{className:"muted",children:"点任务行查看详情后,点“刷新队列”查看评审记录"}):c.jsx(cu,{children:i.reviews.map(O=>{let Y=O.target_type||"";return O.branch& & (Y+=": "+O.branch),O.sha& & (Y+=": "+String(O.sha).slice(0,12)),O.instructions& & (Y+=": "+String(O.instructions).slice(0,80)),c.jsxs("li",{children:[c.jsxs("span",{className:"row-main",children:[c.jsx("b",{children:"评审"})," ",Ne(O.id)," | ",Y," | ",c.jsx("span",{className:"st-"+(O.status||Line truncated
`)}}S("流已断开")}catch(et){if(et.name==="AbortError")return;R(et instanceof Error?et.message:String(et)),S("未开始")}finally{x(!1)}},[r]),X=d.useCallback(()=>{var w;(w=k.current)==null||w.abort(),x(!1),S("已停止")},[]),ht=d.useCallback(async w=>{if(r)try{const Q=await tt(K.taskBrowserControl(r.id),"POST",{holder:w});C(Q),R("")}catch(Q){R(Q instanceof Error?Q.message:String(Q))}},[r]),gt=d.useCallback(async w=>{if(!r||(g==null?void 0:g.holder)!=="user"||!W.current)return;const Q=W.current.getBoundingClientRect(),et=Math.round((w.clientX-Q.left)/Q.width*1280),zt=Math.round((w.clientY-Q.top)/Q.height*800);try{await tt(K.taskBrowserInput(r.id),"POST",{type:"mouse_click",x:et,y:zt})}catch(Bt){R(Bt instanceof Error?Bt.message:String(Bt))}},[r,g]),xt=d.useCallback(async w=>{if(!(!r||(g==null?void 0:g.holder)!=="user")){w.preventDefault();try{w.key.length===1?await tt(K.taskBrowserInput(r.id),"POST",{type:"type",text:w.key}):await tt(K.taskBrowserInput(r.id),"POST",{type:"key",key:w.key})}catch(Q){R(Q instanceof Error?Q.message:String(Q))}}},[r,g]);if(!r)return c.jsx("div",{className:"muted",children:"点任务行查看详情"});const Z=(g==null?void 0:g.holder)||"—",Tt=g!==null;return c.jsxs("div",{children:[c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center"},children:[c.jsxs("span",{children:["状态 ",c.jsx("b",{children:A})]}),c.jsxs("span",{className:"muted",children:["会话 ",Tt?"活跃":"未激活(轮次结束即消失)"]}),c.jsxs("span",{className:"muted",children:["控制权 ",Z]}),g!=null& & g.url?c.jsx("span",{className:"muted",title:g.url,children:g.url.slice(0,80)}):null]}),c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginTop:8},children:[Y?c.jsx("button",{type:"button",onClick:X,children:"停止观看"}):c.jsx("button",{type:"button",onClick:()=>void I(),children:"开始观看"}),c.jsx("button",{type:"button",onClick:()=>void V(),children:"刷新状态"}),Z!=="user"?c.jsx("button",{type:"button",onClick:()=>void ht("user"),disabled:!Tt,children:"接管"}):c.jsx("button",{type:"button",onClick:()=>void ht("agent"),children:"交还给 Agent"})]}),H?c.jsx("div",{className:"muted",style:{marginTop:8},children:H}):null,Z==="user"?c.jsx("div",{className:"muted",style:{marginTop:8},children:"你已接管:点画面即点击,键盘输入直达页面。交还后 Agent 续跑前会先快照确认你的改动。"}):null,c.jsx("div",{style:{marginTop:8},children:h?c.jsx("img",{ref:W,src:h,alt:"浏览器实时画面",tabIndex:0,onClick:w=>void gt(w),onKeyDown:w=>void xt(w),style:{width:"100%",maxWidth:1280,cursor:Z==="user"?"crosshair":"default",border:"1px solid var(--border, #ccc)"}}):c.jsx("div",{className:"muted",children:Tt?"点“开始观看”接入画面流(接管后点画面即点击)":"浏览器会话未激活:任务本轮未开浏览器,或轮次已结束。"})})]})}function jg(){const i=Zt(),[r,h]=d.useState("uncommittedChanges"),[f,g]=d.useState(""),[C,A]=d.useState(""),[S,H]=d.useState("");return c.jsxs(c.Fragment,{children:[c.jsx("h3",{children:"评审队列"}),c.jsxs("select",{"aria-label":"评审目标",value:r,onChange:R=>h(R.target.value),children:[c.jsx("option",{value:"uncommittedChanges",children:"未提交改动(工作区)"}),c.jsx("option",{value:"baseBranch",children:"与分支的差异"}),c.jsx("option",{value:"commit",children:"指定提交"}),c.jsx("option",{value:"custom",children:"自定义评审指令"})]}),c.jsx("input",{className:"stacked",placeholder:"与分支的差异用:分支名(如 main) ",style:{width:"100%"},value:f,onChange:R=>g(R.target.value)}),c.jsx("input",{className:"stacked",placeholder:"指定提交用:提交 sha",style:{width:"100%"},value:C,onChange:R=>A(R.target.value)}),c.jsx("textarea",{placeholder:"自定义评审指令用:评审指令正文",value:S,onChange:R=>H(R.target.value)}),c.jsxs(Ht,{children:[c.jsx("button",{className:"primary",onClick:()=>void i.postReview({target_type:r,branch:f.trim()||void 0,sha:C.trim()||void 0,instructions:S.trim()||void 0}),children:"登记评审需求"}),c.jsx("button",{onClick:i.refreshReviews,children:"刷新队列"}),c.jsx("span",{className:"muted",children:i.reviewMsg})]}),c.jsx("div",{className:"muted",children:"本基线只登记评审需求(requested),不自动跑评审;评审是否执行、结果如何,以评审队列里的记录为准。"}),i.reviewError?c.jsx("div",{className:"muted",children:i.reviewError}):i.reviews.length===0?c.jsx("div",{className:"muted",children:"点任务行查看详情后,点“刷新队列”查看评审记录"}):c.jsx(cu,{children:i.reviews.map(R=>{let Y=R.target_type||"";return R.branch& & (Y+=": "+R.branch),R.sha& & (Y+=": "+String(R.sha).slice(0,12)),R.instructions& & (Y+=": "+String(R.instructions).slice(0,80)),c.jsxs("li",{children:[c.jsxs("span",{className:"row-main",children:[c.jsx("b",{children:"评审"})," ",Ne(R.id)," | ",Y," | ",c.jsx("span",{className:"st-"+(R.status||""),children:RLine truncated
< style rel = "stylesheet" crossorigin > : r o o t { - - t e x t : # 1 f 2 3 2 8 ; - - m u t e d : # 6 5 6 d 7 6 ; - - s u b t l e : # 6 e 7 7 8 1 ; - - l i n e : # d 0 d 7 d e ; - - l i n e - m u t e d : # d 8 d e e 4 ; - - p a p e r : # f f f f f f ; - - c a r d : # f f f f f f ; - - s u b t l e - b g : # f 6 f 8 f a ; - - i n s e t - b g : # f 6 f 8 f a ; - - a c c e n t : # 0 9 6 9 d a ; - - a c c e n t - e m p h a s i s : # 0 9 6 9 d a ; - - g r e e n : # 2 d a 4 4 e ; - - g r e e n - h o v e r : # 2 c 9 7 4 b ; - - s u c c e s s : # 1 a 7 f 3 7 ; - - d a n g e r : # d 1 2 4 2 f ; - - d a n g e r - b g : # f f e b e 9 ; - - a t t e n t i o n : # 9 a 6 7 0 0 ; - - d o n e : # 8 2 5 0 d f ; - - s e l e c t e d - b g : # d d f 4 f f ; - - r a d i u s : 6 p x ; - - s h a d o w : 0 1 p x 0 r g b a ( 2 7 , 3 1 , 3 6 , . 0 4 ) ; - - s a n s : - a p p l e - s y s t e m , B l i n k M a c S y s t e m F o n t , " S e g o e U I " , " N o t o S a n s " , H e l v e t i c a , A r i a l , s a n s - s e r i f ; - - m o n o : u i - m o n o s p a c e , S F M o n o - R e g u l a r , S F M o n o - R e g u l a r , M e n l o , C o n s o l a s , " L i b e r a t i o n M o n o " , m o n o s p a c e ; - - c t l : 3 2 p x } * { b o x - s i z i n g : b o r d e r - b o x } h t m l , b o d y , # r o o t { h e i g h t : 1 0 0 % } b o d y { f o n t - f a m i l y : v a r ( - - s a n s ) ; m a r g i n : 0 ; c o l o r : v a r ( - - t e x t ) ; b a c k g r o u n d : # f f f ; l i n e - h e i g h t : 1 . 5 ; f o n t - s i z e : 1 4 p x } a { c o l o r : v a r ( - - a c c e n t ) ; t e x t - u n d e r l i n e - o f f s e t : 3 p x } : f o c u s - v i s i b l e { o u t l i n e : 2 p x s o l i d v a r ( - - a c c e n t ) ; o u t l i n e - o f f s e t : 2 p x } @ m e d i a ( p r e f e r s - r e d u c e d - m o t i o n : r e d u c e ) { * { s c r o l l - b e h a v i o r : a u t o ! i m p o r t a n t ; t r a n s i t i o n : n o n e ! i m p o r t a n t } } . m u t e d { c o l o r : v a r ( - - m u t e d ) ; f o n t - s i z e : 1 2 p x ; l i n e - h e i g h t : 1 . 5 } . e r r { c o l o r : v a r ( - - d a n g e r ) } . o k { c o l o r : v a r ( - - s u c c e s s ) } b u t t o n { c u r s o r : p o i n t e r ; f o n t - w e i g h t : 5 0 0 ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) ; b o r d e r : 1 p x s o l i d v a r ( - - l i n e ) ; b a c k g r o u n d : # f f f ; c o l o r : v a r ( - - t e x t ) ; b o x - s h a d o w : v a r ( - - s h a d o w ) } b u t t o n : h o v e r { b a c k g r o u n d : v a r ( - - s u b t l e - b g ) } b u t t o n : d i s a b l e d { o p a c i t y : . 4 5 ; c u r s o r : n o t - a l l o w e d ; b o x - s h a d o w : n o n e } b u t t o n . p r i m a r y , b u t t o n . s e a l { b a c k g r o u n d : v a r ( - - g r e e n ) ; b o r d e r - c o l o r : # 1 b 1 f 2 4 2 6 ; c o l o r : # f f f } b u t t o n . p r i m a r y : h o v e r , b u t t o n . s e a l : h o v e r { b a c k g r o u n d : v a r ( - - g r e e n - h o v e r ) } b u t t o n . d a n g e r { c o l o r : v a r ( - - d a n g e r ) ; b o r d e r - c o l o r : v a r ( - - l i n e ) ; b a c k g r o u n d : # f f f } b u t t o n . d a n g e r : h o v e r { b a c k g r o u n d : v a r ( - - d a n g e r - b g ) ; c o l o r : v a r ( - - d a n g e r ) } . i c o n - b t n { w i d t h : 3 2 p x ; h e i g h t : 3 2 p x ; p a d d i n g : 0 ; d i s p l a y : g r i d ; p l a c e - i t e m s : c e n t e r ; b o r d e r : 1 p x s o l i d v a r ( - - l i n e ) ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) ; b a c k g r o u n d : # f f f ; c o l o r : v a r ( - - t e x t ) ; f o n t - s i z e : 1 6 p x ; l i n e - h e i g h t : 1 } . i c o n - b t n : h o v e r { b a c k g r o u n d : v a r ( - - s u b t l e - b g ) } . d a s h - t o p b a r { p o s i t i o n : s t i c k y ; t o p : 0 ; z - i n d e x : 1 0 ; b a c k g r o u n d : # 2 4 2 9 2 f ; c o l o r : # f f f ; b o r d e r - b o t t o m : 1 p x s o l i d r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , . 1 5 ) ; p a d d i n g : 1 0 p x 2 0 p x 8 p x } . d a s h - t o p b a r . m u t e d { c o l o r : # f f f f f f b f } . d a s h - t o p b a r - r o w { d i s p l a y : f l e x ; g a p : 1 4 p x ; a l i g n - i t e m s : c e n t e r ; f l e x - w r a p : w r a p } . d a s h - b r a n d { f o n t - w e i g h t : 6 0 0 ; f o n t - s i z e : 1 6 p x ; c o l o r : # f f f } . d a s h - s t a t u s { f o n t - s i z e : 1 3 p x ; f o n t - w e i g h t : 6 0 0 ; c o l o r : # f f f f f f b f } . d a s h - s t a t u s . o k { c o l o r : # 2 d a 4 4 e } . d a s h - s t a m p { m a r g i n - l e f t : a u t o } . d a s h - n a v { d i s p l a y : f l e x ; g a p : 4 p x ; f l e x - w r a p : w r a p ; m a r g i n - t o p : 8 p x } . d a s h - n a v a { c o l o r : # f f f ; t e x t - d e c o r a t i o n : n o n e ; f o n t - s i z e : 1 3 p x ; f o n t - w e i g h t : 6 0 0 ; p a d d i n g : 6 p x 1 2 p x ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) } . d a s h - n a v a : h o v e r { b a c k g r o u n d : # f f f f f f 1 f ; t e x t - d e c o r a t i o n : n o n e } . t a b - n a v b u t t o n { b a c k g r o u n d : t r a n s p a r e n t ; b o r d e r : 0 ; b o x - s h a d o w : n o n e ; c o l o r : # f f f ; f o n t - s i z e : 1 3 p x ; f o n t - w e i g h t : 6 0 0 ; p a d d i n g : 6 p x 1 2 p x ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) } . t a b - n a v b u t t o n : h o v e r { b a c k g r o u n d : # f f f f f f 1 f } . t a b - n a v b u t t o n . a c t i v e { b a c k g r o u n d : # f f f f f f 2 e } . d a s h - p a g e - t a b s { d i s p l a y : f l e x } . d a s h - p a g e - t a b s > . t a b - c o n t e n t { g r i d - c o l u m n : 1 / - 1 ; m i n - w i d t h : 0 ; d i s p l a y : f l e x ; f l e x - d i r e c t i o n : c o l u m n ; g a p : 2 0 p x } . t a b - w o r k b e n c h { d i s p l a y : g r i d ; g r i d - t e m p l a t e - c o l u m n s : 3 2 0 p x m i n m a x ( 0 , 1 f r ) ; g a p : 2 0 p x ; a l i g n - i t e m s : s t a r t } . t a b - w o r k b e n c h > * { m i n - w i d t h : 0 } @ m e d i a ( m a x - w i d t h : 8 9 9 p x ) { . t a b - w o r k b e n c h { g r i d - t e m p l a t e - c o l u m n s : 1 f r } . t a b - w o r k b e n c h # s e c - d i s p a t c h { o r d e r : 1 } . t a b - w o r k b e n c h # s e c - t a s k s { o r d e r : 2 } . t a b - w o r k b e n c h # s e c - c o n v { o r d e r : 3 } } . d a s h - p a g e { m a x - w i d t h : 1 1 8 0 p x ; m a r g i n : 0 a u t o ; p a d d i n g : 2 0 p x ; d i s p l a y : f l e x ; f l e x - d i r e c t i o n : c o l u m n ; g a p : 2 0 p x } . d a s h - p a g e > * { m i n - w i d t h : 0 } . d a s h - s e c t i o n > * { m i n - w i d t h : 0 } . d a s h - s e c t i o n { s c r o l l - m a r g i n - t o p : 1 3 0 p x ; d i s p l a y : f l e x ; f l e x - d i r e c t i o n : c o l u m n ; g a p : 1 6 p x } . d a s h - s e c t i o n . c a r d { p a d d i n g : 1 6 p x } . d a s h - c a r d s { d i s p l a y : g r i d ; g r i d - t e m p l a t e - c o l u m n s : r e p e a t ( 3 , 1 f r ) ; g a p : 1 2 p x } . d a s h - c a r d { b a c k g r o u n d : # f f f ; b o r d e r : 1 p x s o l i d v a r ( - - l i n e ) ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) ; p a d d i n g : 1 6 p x ; m i n - w i d t h : 0 } . d a s h - c a r d - l a b e l { c o l o r : v a r ( - - m u t e d ) ; f o n t - s i z e : 1 2 p x ; f o n t - w e i g h t : 6 0 0 } . d a s h - c a r d - v a l u e { f o n t - s i z e : 2 4 p x ; f o n t - w e i g h t : 6 0 0 ; l i n e - h e i g h t : 1 . 3 ; o v e r f l o w - w r a p : a n y w h e r e } . c a r d { b a c k g r o u n d : v a r ( - - c a r d ) ; b o r d e r : 1 p x s o l i d v a r ( - - l i n e ) ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) ; b o x - s h a d o w : n o n e ; p a d d i n g : 1 6 p x } . c a r d h 2 { f o n t - s i z e : 1 4 p x ; m a r g i n : 0 0 1 2 p x ; f o n t - w e i g h t : 6 0 0 } . c a r d h 3 { f o n t - s i z e : 1 4 p x ; m a r g i n : 2 4 p x 0 1 2 p x ; p a d d i n g - t o p : 1 6 p x ; b o r d e r - t o p : 1 p x s o l i d v a r ( - - l i n e ) ; f o n t - w e i g h t : 6 0 0 } . c a r d h 3 : f i r s t - o f - t y p e { b o r d e r - t o p : 0 ; p a d d i n g - t o p : 0 } . c o m p o s e r h 2 { f o n t - s i z e : 1 6 p x } . c o m p o s e r t e x t a r e a . p r o m p t { m i n - h e i g h t : 1 4 8 p x ; f o n t - s i z e : 1 4 p x ; p a d d i n g : 1 2 p x ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) } . c o m p o s e r t e x t a r e a . c o o r d { f o n t - f a m i l y : v a r ( - - m o n o ) ; f o n t - s i z e : 1 3 p x } . b a r { d i s p l a y : f l e x ; g a p : 8 p x ; f l e x - w r a p : w r a p ; a l i g n - i t e m s : c e n t e r ; m a r g i n : 1 2 p x 0 } . b a r > b u t t o n , . b a r > l a b e l { d i s p l a y : i n l i n e - f l e x ; a l i g n - i t e m s : c e n t e r ; h e i g h t : v a r ( - - c t l ) ; m i n - h e i g h t : v a r ( - - c t l ) ; p a d d i n g : 0 1 6 p x ; b o x - s i z i n g : b o r d e r - b o x ; w h i t e - s p a c e : n o w r a p } . b a r > i n p u t , . b a r > s e l e c t { h e i g h t : v a r ( - - c t l ) ; m i n - h e i g h t : v a r ( - - c t l ) } i n p u t , s e l e c t , t e x t a r e a , b u t t o n { f o n t : i n h e r i t ; f o n t - s i z e : 1 4 p x ; p a d d i n g : 5 p x 1 2 p x ; b o r d e r - r a d i u s : v a r ( - - r a d i u s ) ; b o r d e r : 1 p x s o l i d v a r ( - - l i n e ) ; b a c k g r o u n d : # f f f ; c o l o r : v a r ( - - t e x t ) } i n p u t : f o c u s , s e l e c t : f o c u s , t e x t a r e a : f o c u s { o u t l i n e : n o n e ; b o r d e r - c o l o r : v a r ( - - a c c e n t ) ; b o x - s h a d o w : 0 0 0 3 p x # 0 9 6 9 d a 4 d } s e l e c t { - m o z - a p p e a r a n c e : n o n e ; a p p e a r a n c e : n o n e ; - w e b k i t - a p p e a r a n c e : n o n e ; c u r s Line truncated
< / head >
< body >