@@ -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 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 N o f g ) i f ( N . t y p e = = = " c h i l d L i s t " ) f o r ( c o n s t A o f N . 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 N = { } ; r e t u r n g . i n t e g r i t y & & ( N . 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 & & ( N . 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 " ? N . 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 " ? N . c r e d e n t i a l s = " o m i t " : N . c r e d e n t i a l s = " s a m e - o r i g i n " , N } 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 N = h ( g ) ; f e t c h ( g . h r e f , N ) } } ) ( ) ; 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 = { } ; / * *
< 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 p 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 ( p ) ; n e w M u t a t i o n O b s e r v e r ( p = > { f o r ( c o n s t N o f p ) i f ( N . t y p e = = = " c h i l d L i s t " ) f o r ( c o n s t C o f N . a d d e d N o d e s ) C . t a g N a m e = = = " L I N K " & & C . r e l = = = " m o d u l e p r e l o a d " & & f ( C ) } ) . 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 ( p ) { c o n s t N = { } ; r e t u r n p . i n t e g r i t y & & ( N . i n t e g r i t y = p . i n t e g r i t y ) , p . r e f e r r e r P o l i c y & & ( N . r e f e r r e r P o l i c y = p . r e f e r r e r P o l i c y ) , p . 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 " ? N . c r e d e n t i a l s = " i n c l u d e " : p . c r o s s O r i g i n = = = " a n o n y m o u s " ? N . c r e d e n t i a l s = " o m i t " : N . c r e d e n t i a l s = " s a m e - o r i g i n " , N } f u n c t i o n f ( p ) { i f ( p . e p ) r e t u r n ; p . e p = ! 0 ; c o n s t N = h ( p ) ; f e t c h ( p . h r e f , N ) } } ) ( ) ; f u n c t i o n W 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 i 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 R h;function k y(){if(R h)return ui;R h=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function h(f,g ,N){var A =null;if(N!==void 0& & (A =""+N),g .key!==void 0& & (A =""+g .key),"key"in g ){N={};for(var S in g)S !=="key"& & (N[S ]=g[S ])}else N=g ;return g =N.ref,{$$typeof:i,type:f,key:A ,ref:g !==void 0?g :null,props:N}}return ui.Fragment=r,ui.jsx=h,ui.jsxs=h,ui}var D h;function B y(){return D h||(D h=1,n o.exports=k y()),n o.exports}var c=B y(),u o={exports:{}},y t={};/**
*/var w h;function q y(){if(w h)return ui;w h=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function h(f,p ,N){var C =null;if(N!==void 0& & (C =""+N),p .key!==void 0& & (C =""+p .key),"key"in p ){N={};for(var j in p)j !=="key"& & (N[j ]=p[j ])}else N=p ;return p =N.ref,{$$typeof:i,type:f,key:C ,ref:p !==void 0?p :null,props:N}}return ui.Fragment=r,ui.jsx=h,ui.jsxs=h,ui}var U h;function Y y(){return U h||(U h=1,i o.exports=q y()),i o.exports}var c=Y y(),c o={exports:{}},p 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 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"),N=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 C(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,C(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,"$& /")+"/"),C(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+=C(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+=C(it,D,ct,_t,Nt);else if ( _t = =="object"){if(typeof y . then = ="function")return C ( 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 C ( 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
*/var Hh;function Gy(){if(Hh)return pt;Hh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),C=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),U=Symbol.for("react.view_transition"),F=Symbol.iterator;function X(y){return y===null||typeof y!="object"?null:(y=F& & y[F]||y["@@iterator"],typeof y=="function"?y:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,vt={};function St(y,D,ut){this.props=y,this.context=D,this.refs=vt,this.updater=ut||J}St.prototype.isReactComponent={},St.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")},St.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function jt(){}jt.prototype=St.prototype;function K(y,D,ut){this.props=y,this.context=D,this.refs=vt,this.updater=ut||J}var Nt=K.prototype=new jt;Nt.constructor=K,V(Nt,St.prototype),Nt.isPureReactComponent=!0;var w=Array.isArray;function Q(){}var nt={H:null,A:null,T:null,S:null},Dt=Object.prototype.hasOwnProperty;function qt(y,D,ut){var et=ut.ref;return{$$typeof:i,type:y,key:D,ref:et!==void 0?et:null,props:ut}}function dt(y,D){return qt(y.type,D,y.props)}function kt(y){return typeof y=="object"& & y!==null& & y.$$typeof===i}function H(y){var D={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ut){return D[ut]})}var ot=/\/+/g;function yt(y,D){return typeof y=="object"& & y!==null& & y.key!=null?H(""+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 Y(y,D,ut,et,Ct){var bt=typeof y;(bt==="undefined"||bt==="boolean")&&(y=null); var Tt=!1;if(y===null)Tt=!0;else switch(bt){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(y.$$typeof){case i:case r:Tt=!0;break;case q:return Tt=y._init,Y(Tt(y._payload),D,ut,et,Ct)}}if(Tt)return Ct=Ct(y),Tt=et===""?"."+yt(y,0):et,w(Ct)?(ut="",Tt!=null& & (ut=Tt.replace(ot,"$& /")+"/"),Y(Ct,D,ut,"",function(re){return re})):Ct!=null&&(kt(Ct)&&(Ct=dt(Ct,ut+(Ct.key==null||y&&y.key===Ct.key?"":(""+Ct.key).replace(ot,"$&/")+"/")+Tt)),D.push(Ct)),1; Tt=0;var lt=et===""?".":et+":";if(w(y))for(var mt=0;mt< y.length ; mt + + ) et = y[mt],bt=lt+yt(et,mt),Tt+=Y(et,D,ut,bt,Ct);else if ( mt = X(y),typeof mt = ="function")for(y=mt.call(y),mt=0;!(et=y.next()).done;)et=et.value,bt=lt+yt(et,mt++),Tt+=Y(et,D,ut,bt,Ct);else if ( bt = =="object"){if(typeof y . then = ="function")return Y ( G ( y ) , D , ut , et , Ct ) ; 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 Tt } function tt ( y , D , ut ) { if ( y = =null)return y ; var et = [],Ct=0;return Y ( y , et , " " , " " , function ( bt ) { return D . call ( ut , bt , Ct + + ) } ) , et } function gt ( y ) { if ( y . _status = ==-1){var D = y._result,ut=D();ut.then(function(et){(y._status===0||y._status===-1)&&(y._status=1,y._result=et,ut.status===void 0 & & ( ut . status = "fulfilled" , ut . value = et))},function(et){(y._status===0||y._status===-1)&&(y._status=2,y._result=et,ut.status===void 0 & & ( ut . status = "rejected" , ut . reason = et))}),y._status===-1&&(y._status=0,y._result=ut)}if(y._status===1)return y . _result . default ; throw y . _result } var xt = 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 Se ( y ) { var D = nt.T,ut={};ut.types=D!==null?D.types:null,nt.T=ut;try{var et = y(),Ct=nt.S;Ct!==null&&Ct(ut,et),typeof et = ="object"&&et!==null&&typeof et . then = ="function"&&et.then(Q,xt)}catch(bt){xt(bt)}finally{D!==null&&ut.types!==null&&(D.types=ut.types),nt.T=D}}function L ( y ) { var D = nt.T;if(D!==null){var ut = D.types;ut===null?D.types=[y]:ut.indexOf(y)===-1&&ut.push(y)}else Se ( L . bind ( null , y ) ) } var se = {map:tt,forEach:function(y,D,ut){tt(y,function(){D.apply(this,arguments)},ut)},count:function(y){var D = 0;return tt ( y , function ( ) { D + + } ) , D } , toA 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 w h;function G y(){return w h||(w h=1,(function(i){function r(G,C ){var u t=G.length;G.push(C );t:for(;0< ut ; ) { var St = ut-1 > >>1,p t=G[S t];if(0< g ( pt , C ) ) G [ St ] = C , 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 C = G[0],u t=G.pop();if(u t!==C ){G[0]=u t;t:for(var St = 0,p t=G.length,g e=p t > >>1;S t< ge ; ) { var we = 2*(S t+1)-1,C e=G[we ],y=we +1,D=G[y];if(0 > g(C e,u t))y< pt & & 0 > g (D,C e)?(G[S t]=D,G[y]=u t,S t=y):(G[S t]=C e,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 C }function g (G,C ){var u t=G.sortIndex-C .sortIndex;return u t!==0?u t:G.id-C .id}if(i.unstable_now=void 0,typeof performance=="object"& & typeof performance.now=="function"){var N=performance;i.unstable_now=function(){return N.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 C =h(R);C !==null;){if(C .callback===null)f(R);else if(C .startTime< =G)f(R),C .sortIndex=C .expirationTime,r(H,C );else break;C =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 C =h(R);C !==null& & r t(T t,C .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 C = !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),C =!0;break e}x ===h(H )& & f(H ),Z (G)}else f(H );x =h(H )}if(x !==null)C =!0;else{var g e=h(R);g e!==null& & r t(T t,g e.startTime-G),C =!1}}break t}finally{x =null,k=u t,W =!1}C =void 0}}finally{C?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,C ){Q=h t(function(){G(i.unstable_now())},C )}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 C = 3;break;default:C=k }var ut = k;k=C ;try{return G ( ) } finally { k = u t}},i.unstable_requestPaint=function(){X =!0},i.unstable_runWithPriority=function(G,C ){switch(G){case 1:case 2:case 3:case 4:case 5:break ; default:G = 3}var ut = k;k =G;try{return C ( ) } finally { k = u t}},i.unstable_scheduleCallback=function(G,C,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:C ,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 C=k ;return function(){var u t=k;k=C ;try{return G.apply(this,arguments)}finally{k=u t}}}})(s o)),s o}var k h;function Q y(){return k h||(k h=1,c o.exports=G y()),c o.exports}var r o={exports:{}},H e={};/**
*/var q h;function V y(){return q h||(q h=1,(function(i){function r(G,Y ){var t t=G.length;G.push(Y );t:for(;0< tt ; ) { var gt = tt-1 > >>1,x t=G[g t];if(0< p ( xt , Y ) ) G [ gt ] = Y , G [ tt ] = xt , tt = g t;else break t } } function h ( G ) { return G . length = ==0?null:G[0]}function f ( G ) { if ( G . length = ==0)return null ; var Y = G[0],t t=G.pop();if(t t!==Y ){G[0]=t t;t:for(var gt = 0,x t=G.length,S e=x t > >>1;g t< Se ; ) { var L = 2*(g t+1)-1,s e=G[L ],y=L +1,D=G[y];if(0 > p(s e,t t))y< xt & & 0 > p (D,s e)?(G[g t]=D,G[y]=t t,g t=y):(G[g t]=s e,G[L ]=t t,g t=L );else if(y< xt & & 0 > p (D,t t))G[g t]=D,G[y]=t t,g t=y;else break t}}return Y }function p (G,Y ){var t t=G.sortIndex-Y .sortIndex;return t t!==0?t t:G.id-Y .id}if(i.unstable_now=void 0,typeof performance=="object"& & typeof performance.now=="function"){var N=performance;i.unstable_now=function(){return N.now()}}else{var C =Date,j=C .now();i.unstable_now=function(){return C .now()-j }}var z =[],R=[],q =1,g =null,U =3,F =!1,X =!1,J =!1,V =!1,v t=typeof setTimeout=="function"?setTimeout:null,S t=typeof clearTimeout=="function"?clearTimeout:null,j t=typeof setImmediate< "u"?setImmediate:null;function K (G){for(var Y =h(R);Y !==null;){if(Y .callback===null)f(R);else if(Y .startTime< =G)f(R),Y .sortIndex=Y .expirationTime,r(z,Y );else break;Y =h(R)}}function N t(G){if(J =!1,K (G),!X )if(h(z )!==null)X =!0,w||(w=!0,k t());else{var Y =h(R);Y !==null& & y t(N t,Y .startTime-G)}}var w=!1,Q=-1,n t=5,D t=-1;function q t(){return V ?!0:!(i.unstable_now()-D t< nt ) } function dt ( ) { if ( V = !1,w){var G = i.unstable_now();D t=G;var Y = !0;try{t:{X =!1,J &&(J =!1,S t(Q),Q=-1),F =!0;var tt = U ;try{e:{for(K (G),g =h(z );g !==null&&!(g .expirationTime> G&&q t()); ){var g t=g .callback;if(typeof g t=="function"){g .callback=null,U=g .priorityLevel;var x t=g t(g .expirationTime< =G);if(G=i.unstable_now(),typeof x t=="function"){g .callback=x t,K (G),Y =!0;break e}g ===h(z )& & f(z ),K (G)}else f(z );g =h(z )}if(g !==null)Y =!0;else{var S e=h(R);S e!==null& & y t(N t,S e.startTime-G),Y =!1}}break t}finally{g =null,U=t t,F =!1}Y =void 0}}finally{Y?k t():w=!1}}}var k t;if(typeof j t=="function")k t=function(){j t(d t)};else if(typeof MessageChannel< "u"){var H =new MessageChannel,ot=H .port2;H .port1.onmessage=d t,k t=function(){ot.postMessage(null)}}else k t=function(){v t(d t,0)};function y t(G,Y ){Q=v t(function(){G(i.unstable_now())},Y )}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 " ) :n t = 0<G?Math.floor(1e3/G):5},i.unstable_getCurrentPriorityLevel=function(){return U } , i . unstable_next = function(G){switch(U ){case 1:case 2:case 3:var Y = 3;break;default:Y=U }var tt = U;U=Y ;try{return G ( ) } finally { U = t t}},i.unstable_requestPaint=function(){V =!0},i.unstable_runWithPriority=function(G,Y ){switch(G){case 1:case 2:case 3:case 4:case 5:break ; default:G = 3}var tt = U;U =G;try{return Y ( ) } finally { U = t t}},i.unstable_scheduleCallback=function(G,Y,t t){var gt = i.unstable_now();switch(typeof tt = ="object"&&t t!==null?(t t=t t.delay,t t=typeof tt = ="number"&&0<t t?g t+t t:g t):t t=g t,G){case 1:var xt = -1;break;case 2:x t = 250;break;case 5:x t = 1073741823;break;case 4:x t = 1e4;break;default:x t=5e3}return xt = t t+x t,G={id:q ++,callback:Y ,priorityLevel:G,startTime:t t,expirationTime:x t,sortIndex:-1},t t> g t?(G.sortIndex=t t,r(R,G),h(z )===null& & G===h(R)& & (J ?(S t(Q),Q=-1):J =!0,y t(N t,t t-g t))):(G.sortIndex=x t,r(z ,G),X ||F ||(X =!0,w||(w=!0,k t()))),G},i.unstable_shouldYield=q t,i.unstable_wrapCallback=function(G){var Y=U ;return function(){var t t=U;U=Y ;try{return G.apply(this,arguments)}finally{U=t t}}}})(o o)),o o}var Y h;function X y(){return Y h||(Y h=1,r o.exports=V y()),r o.exports}var f o={exports:{}},U e={};/**
* @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 B h;function X y(){if(B h)return H e;B h=1;var i=y o();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"),N=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,H e.browser=function(Y ){return{$$typeof:N,_reason:Y }},H e.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()}},H e.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 ))},H e.prefetchDNS=function(Y ){typeof Y = ="string"&&f.d.D(Y )},H e.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 )},H e.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 )},H e.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(),r o.exports=X y(),r o.exports}/**
*/var G h;function L y(){if(G h)return U e;G h=1;var i=p o();function r(q ){var g ="https://react.dev/errors/"+q ;if(1< arguments.length ) { g + = " ? args [ ] = " + encodeURIComponent ( arguments [ 1 ] ) ; for ( var U = 2;U <arguments.length;U ++)g +="&args[]="+encodeURIComponent(arguments[U ])}return"Minified React error # " + q + " ; visit " + g + " 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 } , p = Symbol.for("react.portal"),N=Symbol.for("react.recoverable"),C =Symbol.for("react.optimistic_key");function j ( q , g , U ) { var F = 3<arguments.length&&arguments[3]!==void 0 ? arguments [ 3 ] :null ; return { $ $ typeof:p , key:F = =null?null:F ===C?C :""+F ,children:q ,containerInfo:g ,implementation:U }}var z = i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R ( q , g ) { if ( q = =="font")return"";if(typeof g = ="string")return g = =="use-credentials"?g :""}return Ue . __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = f,U e.browser=function(q ){return{$$typeof:N,_reason:q }},U e.createPortal=function(q,g ){var U = 2<arguments.length&&arguments[2]!==void 0 ? arguments [ 2 ] :null ; if ( ! g | | g . nodeType ! = = 1 & & g . nodeType ! = = 9 & & g . nodeType ! = = 11 ) throw Error ( r ( 299 ) ) ; return j ( q , g , null , U ) } , Ue . flushSync = function(q ){var g = z .T,U =f.p;try{if(z .T=null,f.p=2,q )return q ( ) } finally { z . T = g ,f.p=U ,f.d.f()}},U e.preconnect=function(q,g ){typeof q = ="string"&&(g ?(g=g .crossOrigin,g =typeof g = ="string"?g ==="use-credentials"?g :"":void 0 ) :g = null,f.d.C(q,g ))},U e.prefetchDNS=function(q ){typeof q = ="string"&&f.d.D(q )},U e.preinit=function(q,g ){if(typeof q = ="string"&&g &&typeof g . as = ="string"){var U = g .as,F =R(U,g .crossOrigin),X =typeof g . integrity = ="string"?g .integrity:void 0 , J = typeof g . fetchPriority = ="string"?g .fetchPriority:void 0 ; U = =="style"?f.d.S(q ,typeof g . precedence = ="string"?g .precedence:void 0 , { crossOrigin:F , integrity:X , fetchPriority:J } ) :U = =="script"&&f.d.X(q ,{crossOrigin:F ,integrity:X ,fetchPriority:J ,nonce:typeof g . nonce = ="string"?g .nonce:void 0 } ) } } , Ue . preinitModule = function(q,g ){if(typeof q = ="string")if(typeof g = ="object"&&g !==null){if(g .as==null||g .as==="script"){var U = R(g .as,g .crossOrigin);f.d.M(q ,{crossOrigin:U ,integrity:typeof g . integrity = ="string"?g .integrity:void 0 , nonce:typeof g . nonce = ="string"?g .nonce:void 0 , fetchPriority:typeof g . fetchPriority = ="string"?g .fetchPriority:void 0 } ) } } else g = =null&&f.d.M(q )},U e.preload=function(q,g ){if(typeof q = ="string"&&typeof g = ="object"&&g !==null&&typeof g . as = ="string"){var U = g .as,F =R(U,g .crossOrigin);f.d.L(q,U ,{crossOrigin:F ,integrity:typeof g . integrity = ="string"?g .integrity:void 0 , nonce:typeof g . nonce = ="string"?g .nonce:void 0 , type:typeof g . type = ="string"?g .type:void 0 , fetchPriority:typeof g . fetchPriority = ="string"?g .fetchPriority:void 0 , referrerPolicy:typeof g . referrerPolicy = ="string"?g .referrerPolicy:void 0 , imageSrcSet:typeof g . imageSrcSet = ="string"?g .imageSrcSet:void 0 , imageSizes:typeof g . imageSizes = ="string"?g .imageSizes:void 0 , media:typeof g . media = ="string"?g .media:void 0 } ) } } , Ue . preloadModule = function(q,g ){if(typeof q = ="string")if(g ){var U = R(g .as,g .crossOrigin);f.d.m(q ,{as:typeof g . as = ="string"&&g .as!=="script"?g .as:void 0 , crossOrigin:U , integrity:typeof g . integrity = ="string"?g .integrity:void 0 , nonce:typeof g . nonce = ="string"?g .nonce:void 0 , fetchPriority:typeof g . fetchPriority = ="string"?g .fetchPriority:void 0 } ) } else f . d . m ( q ) } , Ue . requestFormReset = function(q ){f.d.r(q )},U e.unstable_batchedUpdates=function(q,g ){return q ( g ) } , Ue . useFormState = function(q,g,U ){return z . H . useFormState ( q , g , U ) } , Ue . useFormStatus = function(){return z . H . useHostTransitionStatus ( ) } , Ue . version = "19.3.1" , Ue } var Qh ; function Zy ( ) { if ( Qh ) return fo . 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(),f o.exports=L y(),f o.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 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 N ( 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 ( N ( t ) ! = = t ) throw Error ( f ( 188 ) ) } function R ( t ) { var e = t.alternate;if(!e){if(e=N(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"),C=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 C: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
*/var Vh;function Ky(){if(Vh)return ii;Vh=1;var i=Xy(),r=po(),h=Zy();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 p ( t ) { return ! ( ! t | | t . nodeType ! = = 1 & & t . nodeType ! = = 9 & & t . nodeType ! = = 11 ) } function N ( 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 C ( 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 j ( 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 z ( t ) { if ( N ( t ) ! = = t ) throw Error ( f ( 188 ) ) } function R ( t ) { var e = t.alternate;if(!e){if(e=N(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 z ( n ) , t ; if ( u = ==a)return z ( 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 q ( t ) { var e = t.tag;if(e===5||e===26||e===27||e===6)return t ; for ( t = t.child;t!==null;){if(e=q(t),e!==null)return e ; t = t.sibling}return null } function g ( 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)&&g(t.child,e,l,a,n,u))return!0;t=t.sibling}return!1}function U ( 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 F ( 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 X ( t ) { var e = [null,null],l=U(t);return l = ==null||J(e,t,l.child,{foundSelf:!1}),e}function J ( 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)&&J(t,e,l.child,a))return!0;l=l.sibling}return!1}function V ( 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,St=null;function jt ( t , e , l ) { return t = ==l?!0:t===e?(vt=t,!0):!1}function K ( t , e , l ) { return t = ==l?(St=t,!1):t===e?(St!==null&&(vt=t),!0):!1}function Nt ( 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,nt=Symbol.for("react.element"),Dt=Symbol.for("react.transitional.element"),qt=Symbol.for("react.portal"),dt=Symbol.for("react.fragment"),kt=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),ot=Symbol.for("react.consumer"),yt=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),L=Symbol.for("react.legacy_hidden"),se=Symbol.for("react.memo_cache_sentinel"),y=Symbol.for("react.view_transition"),D=Symbol.for("react.recoverable"),ut=Symbol.iterator;function et ( t ) { return t = ==null||typeof t ! = " object " ? null: ( t = ut&&t[ut]||t["@@iterator"],typeof t = ="function"?t:null)}var Ct = Symbol.for("react.client.reference");function bt ( t ) { if ( t = =null)return null ; if ( typeof t = ="function")return t . $ $ typeof = ==Ct?null:t.displayName||t.name||null;if(typeof t = ="string")return t ; switch ( t ) { case dt:return " Fragment " ; case H:return " Profiler " ; case kt:return " StrictMode " ; case Y:return " Suspense " ; case tt:return " SuspenseList " ; case Se:return " Activity " ; case y:return " ViewTransition " } if ( typeof t = ="object")switch(t.$$typeof){case qt:return " Portal " ; case yt: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 gt:return e = t.displayName||null,e!==null?e:bt(t.type)||"Memo";case xt:e = t._payload,t=t._init;try{return bt ( t ( e ) ) } catch { } } return null } var Tt = Array.isArray,lt=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:n Line truncated
at`)?" (< anonymous > )":-1< l.stack.indexOf ( " @ " ) ? " @ unknown:0:0 " : " " } return `
`+Be+t+s e}var rl=!1;function Fl(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:"")?r e(l):""}function ma(t,e){switch(t.tag){case 26:case 27:case 5:return r e(t.type);case 16:return r e("Lazy");case 13:return t.child!==e& & e!==null?r e("Suspense Fallback"):r e("Suspense");case 19:return r e("SuspenseList");case 0:case 15:return Fl(t.type,!1);case 11:return Fl(t.type.render,!1);case 1:return Fl(t.type,!0);case 31:return r e("Activity");case 30:return r e("ViewTransition");default:return""}}function Dl(t){try{var e="",l=null;do e+=ma(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
`+Be+t+o e}var rl=!1;function Fl(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 O =function(){throw Error()};if(Object.defineProperty(O .prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"& & Reflect.construct){try{Reflect.construct(O ,[])}catch(Z ){var S=Z }Reflect.construct(t,[],O )}else{try{O .call()}catch(Z ){S=Z}O =!1;try{var _=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),O =!0,new t}finally{O & & (_!==void 0?Object.defineProperty(t.prototype,"props",_):delete t.prototype.props)}}}else{try{throw Error()}catch(Z ){S=Z }(O =t())& & typeof O .catch=="function"& & O .catch(function(){})}}catch(Z ){if(Z & & S & & typeof Z .stack=="string")return[Z .stack,S .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(`
`),b =o.split(`
`);for(n=a=0;a< m.length & & ! m [ a ] . includes ( " DetermineComponentFrameRoot " ) ; ) a + + ; for ( ; n < b . length & & ! b [ n ] . includes ( " DetermineComponentFrameRoot " ) ; ) n + + ; if ( a = ==m.length||n===b .length)for(a=m.length-1,n=b .length-1;1<=a&&0<=n&&m[a]!==b [n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==b [n]){if(a!==1||n!==1)do if ( a-- , n-- , 0 > n||m[a]!==b [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:"")?f e(l):""}function ma(t,e){switch(t.tag){case 26:case 27:case 5:return f e(t.type);case 16:return f e("Lazy");case 13:return t.child!==e& & e!==null?f e("Suspense Fallback"):f e("Suspense");case 19:return f e("SuspenseList");case 0:case 15:return Fl(t.type,!1);case 11:return Fl(t.type.render,!1);case 1:return Fl(t.type,!0);case 31:return f e("Activity");case 30:return f e("ViewTransition");default:return""}}function Dl(t){try{var e="",l=null;do e+=ma(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,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,N]=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 C=ot!==void 0?ot:rt;if(!C){r([]),W(0),I({});return}gt.current=C;const ut=G!==void 0?G:X.current,St=ht.current;try{const pt=await tt(K.tasksPage(C,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=>{N(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 C=await tt(K.tasksCreate,"POST",G);return"任务已建:"+Ne(C.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,N]=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,C]=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
`+a.stack}}var ee=Object.prototype.hasOwnProperty,Pe=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,_l=i.unstable_shouldYield,ol=i.unstable_requestPaint,$t=i.unstable_now,kl=i.unstable_getCurrentPriorityLevel,mn=i.unstable_ImmediatePriority,Qa=i.unstable_UserBlockingPriority,be=i.unstable_NormalPriority,Va=i.unstable_LowPriority,ha=i.unstable_IdlePriority,su=i.log,ru=i.unstable_setDisableYieldValue,Wl=null,Me=null;function fl(t){if(typeof su=="function"& & ru(t),Me& & typeof Me.setStrictMode=="function")try{Me.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,k=262144,P=4194304;function ct(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 A(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=ct(a):(s& =o,s!==0?n=ct(s):l||(l=o& ~t,l!==0& & (n=ct(l))))):(o=a& ~u,o!==0?n=ct(o):s!==0?n=ct(s):l||(l=a& ~t,l!==0& & (n=ct(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 $(t,e){return(t.pendingLanes& ~(t.suspendedLanes& ~t.pingedLanes)& e)===0}function st(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 Yt ( 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 wt ( ) { var t = P;return P < < = 1 , ( P & 62914560 ) = = = 0 & & ( P = 4194304),t}function je ( t ) { for ( var e = [],l=0;31 > l;l++)e.push(t);return e}function Te(t,e){t.pendingLanes|=e,e!==268435456& & (t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function wc(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,b=t.hiddenUpdates;for(l=s&~l; 0< l ; ) { var E = 31-Oe(l),O=1<<E;o[E]=0,m[E]=-1;var S = b[E];if(S!==null)for(b[E]=null,E=0;E<S.length;E++){var _ = S[E];_!==null&&(_.lane&=-536870913)}l&=~O}a!==0&&si(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function si ( 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:wl(l),(l&(t.suspendedLanes|e))!==0?0:l}function wl ( 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 = mt.p;return t ! = = 0 ? t: ( t = window.event,t===void 0 ? 32:Ah ( t . type ) ) } function Ze ( t , e ) { var l = mt.p;try{return mt . p = t,e()}finally{mt.p=l}}var ne = Math.random().toString(36).slice(2),ge="__reactFiber$"+ne,Ke="__reactProps$"+ne,vn="__reactContainer$"+ne,jo="__reactEvents$"+ne,ev="__reactListeners$"+ne,lv="__reactHandles$"+ne,To="__reactResources$"+ne,vu="__reactMarker$"+ne,ri="__reactLoad$"+ne;function oi ( t ) { delete t [ ge ] , delete t [ Ke ] , delete t [ ev ] , delete t [ lv ] } function Xa ( t ) { var e ; if ( e = t[ge])return e ; for ( var l = t.parentNode;l;){if(e=l[vn]||l[ge]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=sh(t);t!==null;){if(l=t[ge])return l ; t = sh(t)}return e } t = l,l=t.parentNode}return null } function yn ( t ) { if ( t = t[ge]||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[To];return e | | ( e = t[To]={hoistableStyles:new Map , hoistableScripts:new Map } ) , e } function _e ( t ) { t [ vu ] = ! 0 } function _o ( t ) { t [ ri ] = void 0 } var Eo = new Set , No = {};function La ( t , e ) { pn ( t , e ) , pn ( t + " Capture " , e ) } function pn ( t , Line truncated
`).replace(V0,"")}function Qm(t,e){return e=Gm(e),Gm(t)===e}function Zt(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":di(t,"class",a);break;case"tabIndex":di(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":di(t,l,a);break;case"style":Uo(t,a,u);return;case"data":if(e!=="object"){di(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=mi(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"&&Zt(t,e,"name",n.name,n,null),Zt(t,e,"formEncType",n.formEncType,n,null),Zt(t,e,"formMethod",n.formMethod,n,null),Zt(t,e,"formTarget",n.formTarget,n,null)):(Zt(t,e,"encType",n.encType,n,null),Zt(t,e,"method",n.method,n,null),Zt(t,e,"target",n.target,n,null))); if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=mi(a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ul); return;case"onScroll":a!=null&&Ot("scroll",t); return;case"onScrollEnd":a!=null&&Ot("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=mi(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":Ot("beforetoggle",t),Ot("toggle",t),fi(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":fi(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 = sv.get(l)||l,fi(t,l,a);else return } Bt = !0}function Hr ( t , e , l , a , n , u ) { switch ( l ) { case " style " :Uo ( 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 & & Ot ( " scroll " , t ) ; return ; case " onScrollEnd " :a ! = null & & Ot ( " scro Line truncated
`;Y t& & (j e+=Y t+`
`),w t& & (j e+=(Array.isArray(w t)?w t.join(`
`):String(w t))+`
`),je+=JSON.stringify(st,null,2).slice(0,4e3),jl(je),re("已返回登录信息,见下方")}catch(st){re("发起失败:"+st.message)}},[]),k=d.useCallback(async()=>{const A=X.trim();if(!A){F("请填要查配额的用户 id");return}try{const $=await at(W.adminQuotaUser(A));F("用户 "+A.slice(0,8)+":本月用量 "+ho($.used_usd_micros)+" / 配额 "+ho($.quota_usd_micros)+($.remaining_usd_micros!==null& & $.remaining_usd_micros!==void 0?"(剩余 "+ho($.remaining_usd_micros)+") ":"")+" | 月份 "+($.month||""))}catch($){F(mo($))}},[X]),P=d.useCallback(async()=>{if(window.confirm("确定手动触发 sweep 吗?超阈值的陈旧 running 任务会被标为 interrupted。"))try{const $=(await at(W.adminSweep,"POST",{})).swept||[];F("sweep 完成,清理 "+$.length+" 个任务"+($.length?": "+$.join("、"):""))}catch(A){F(mo(A))}},[]),ct=d.useCallback(async()=>{try{const A=await at(W.adminBackup,"POST",{});F("备份完成:backend="+A.backend+" | 路径 "+A.path+" | 大小 "+A.size_bytes+" 字节 | 任务 "+A.task_count+" 行")}catch(A){F(mo(A))}},[]);return{keySaved:i,keyState:h,quotaText:p,healthText:C,adminGate:z,adminBody:q,adminResult:U,adminUserId:X,setAdminUserId:J,projects:V,projectId:St,setProjectId:jt,projectMsg:K,githubRepos:w,workers:nt,workersSummary:qt,workersError:kt,members:ot,memberMsg:G,memberError:tt,skills:xt,apps:L,mcpServers:y,skillMsg:ut,skillError:Ct,mcpMsg:Tt,mcpOauthMsg:mt,mcpOauthBox:Ga,envs:Xe,envCount:Qt,envMsg:Jl,envRepoLine:da,envRepoBar:zl,envRepoMsg:Tl,envSelect:oe,setEnvSelect:fe,models:rl,modelCustomVisible:ma,refreshHealth:qe,loadQuota:_l,probeAdmin:ol,refreshProjects:$t,loadGithubRepos:kl,loadRelayModels:mn,refreshWorkers:Qa,refreshEnvs:be,refreshMembers:Va,refreshSkills:ha,saveKeyInput:su,clearKeyInput:ru,createProject:Wl,createEnv:Me,archiveEnv:fl,saveEnvRepo:Oe,inviteMember:ou,changeMemberRole:fu,reloadMcp:du,mcpOauth:B,adminQuota:k,adminSweep:P,adminBackup:ct}}const vo=20;function ug(){const[i,r]=d.useState([]),[h,f]=d.useState(""),[p,N]=d.useState(""),[C,j]=d.useState(""),[z,R]=d.useState(""),[q,g]=d.useState(0),[U,F]=d.useState(0),[X,J]=d.useState({}),V=d.useRef(0),vt=d.useRef({status:"",executor:"",q:""});vt.current={status:p,executor:C,q:z};const St=d.useRef(""),jt=d.useCallback(async(ot,yt,G)=>{const Y=ot!==void 0?ot:yt;if(!Y){r([]),F(0),J({});return}St.current=Y;const tt=G!==void 0?G:V.current,gt=vt.current;try{const xt=await at(W.tasksPage(Y,vo,tt*vo,gt.status,gt.executor,gt.q));r(xt.tasks||[]),F(xt.total??(xt.tasks||[]).length),J(xt.status_counts||{}),f("")}catch(xt){f("加载失败:"+xt.message)}},[]),K=d.useCallback(ot=>{const yt=Math.max(0,ot);V.current=yt,g(yt)},[]),Nt=d.useCallback(ot=>{K(ot),jt(St.current||void 0,void 0,ot)},[jt,K]);d.useEffect(()=>{if(!St.current)return;const ot=setTimeout(()=>{jt(St.current,void 0,0)},300);return()=>clearTimeout(ot)},[p,C,z]);const w=d.useCallback(ot=>{N(ot),K(0)},[K]),Q=d.useCallback(ot=>{j(ot),K(0)},[K]),nt=d.useCallback(ot=>{R(ot),K(0)},[K]),Dt=d.useCallback(async ot=>{K(0),await jt(ot,void 0,0)},[jt,K]),qt=Math.max(1,Math.ceil(U/vo)),dt=U===0?"共 0 个任务":"共 "+U+" 个任务,第 "+(q+1)+" / "+qt+" 页",kt=i,H=d.useCallback(async(ot,yt)=>{const G={...ot};yt.length& & (G.upload_id=await lg(yt));const Y=await at(W.tasksCreate,"POST",G);return"任务已建:"+Ae(Y.id)},[]);return{tasks:i,taskError:h,statusFilter:p,setStatusFilter:w,executorFilter:C,setExecutorFilter:Q,searchText:z,setSearchText:nt,filteredTasks:kt,taskCountText:dt,refreshTasks:jt,refreshTasksFirstPage:Dt,page:q,totalPages:qt,taskTotal:U,taskStatusCounts:X,goToPage:Nt,dispatch:H}}function ig(i,r){const[h,f]=d.useState(null),[p,N]=d.useState(""),[C,j]=d.useState(""),[z,R]=d.useState(""),[q,g]=d.useState(""),[U,F]=d.useState(void 0),[X,J]=d.useState(!1),[V,vt]=d.useState(""),[St,jt]=d.useState([]),[K,Nt]=d.useState([]),[w,Q]=d.useState(""),[nt,Dt]=d.useState([]),[qt,dt]=d.useState(""),[kt,H]=d.useState(""),[ot,yt]=d.useState([]),[G,Y]=d.useState(""),[tt,gt]=d.useState(""),[xt,Se]=d.useState(""),[L,se]=d.useState(""),[y,D]=d.useState([]),[ut,et]=d.useState([]),[Ct,bt]=d.useState(""),[Tt,lt]=d.useState([]),[mt,re]=d.useState(""),[Ga,jl]=d.useState(""),[Xe,ae]=d.useState(""),[Qt,ye]=d.useState(""),[Jl,xe]=d.useState([]),[da,Le]=d.useState(""),[zl,Rl]=d.useState(null),Tl=d.useRef(null),Be=d.useRef(null),oe=d.useRef(null);oe.current=h;const fe=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 k=await at(W.taskAgents(B));Nt(k.agents||[]),Q(k.note||"")}catch(k){Nt([]),Q("子代理链路加载失败:"+k.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){jt([]);return}try{const k=await at(W.tasksByParent(B.project_id||"",B.id));jt(k.tasks||[])}catch{jt([])}},[]),Dl=d.useCallback(async B=>{try{cLine truncated
`);hn=H l.pop()||"";for(const mu of H l){const hu=mu.split(`
`);hn=w l.pop()||"";for(const mu of w l){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")a t=Ze.entries||[],Object.keys(O ).forEach(a e=>delete O[a e]),a t.forEach((a e,v e)=>{a e.id&&(O[a e.id]=v e)}),J =Ze.note||"",r t([...a t]),C(J ),Fl(B); else if(Ze.type==="entry"){const a e=Ze.entry;a e.id& & a e.id in O?at[O[a e.id]]=a e:(a e.id& & (O[a e.id]=a t.length),a t.push(a e)),r t([...a t]),Fl(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; C ("链路流中断:"+D t.message);return}n t& & r()},[r e,Fl,r]),S e=d.useCallback(async B=>{r e();try{const U =await t t(K .task(B));f(U );let $ ="";U .result_text& & ($ +=`=== result ===
`+U .result_text.slice(0,8e3)+`
`),U .error_text& & ($ +=`=== error ===
`+U .error_text.slice(0,8e3)+`
`),$ ||($ ="(暂无 result/error 输出)"),N($ ),x (""),W (void 0),Dl(B),I (!1),h t(""),c e(""),h e(""),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),ma(U ),Pe(B),t e(B),ol(B),W t(B),U l(B),qe(B),_l(B)}catch(U ){f(null),N("加载失败:"+U .message)}},[r e,Qa,rl,ma,Pe,t e,ol,W t,U l,qe,_l,Dl,i]),X a=d.useCallback(async()=>{const B=s e.current;if(B){try{const U =await t t(K .task(B.id));f(U );let $ ="";U .result_text& & ($ +=`=== result ===
`+U .result_text.slice(0,8e3)+`
`),U .error_text& & ($ +=`=== error ===
`+U .error_text.slice(0,8e3)+`
`),N($||"(暂无 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(""),[N,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),N=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:!N,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),N=["failed","interrupted","merge-failed"].includes(r.status);return c.jsxs(c.Fragment,{children:[c.jsxs(Ht,{children:[c.jsx("button",{disabled:!N,title:N?"":"仅 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
`);if(hu)try{const Ze=JSON.parse(hu);if(Ze.type==="snapshot")c t=Ze.entries||[],Object.keys(A ).forEach(n e=>delete A[n e]),c t.forEach((n e,g e)=>{n e.id&&(A[n e.id]=g e)}),$ =Ze.note||"",y t([...c t]),Y($ ),Fl(B); else if(Ze.type==="entry"){const n e=Ze.entry;n e.id& & n e.id in A?ct[A[n e.id]]=n e:(n e.id& & (A[n e.id]=c t.length),c t.push(n e)),y t([...c t]),Fl(B)}else Ze.type==="done"&&(s t=!0,Y t=Ze.status,g t(Y t))}catch{}}if(s t)break}}catch(w t){if(w t&&w t.name==="AbortError")return; Y ("链路流中断:"+w t.message);return}s t& & r()},[f e,Fl,r]),b e=d.useCallback(async B=>{f e();try{const k =await a t(W .task(B));f(k );let P ="";k .result_text& & (P +=`=== result ===
`+k .result_text.slice(0,8e3)+`
`),k .error_text& & (P +=`=== error ===
`+k .error_text.slice(0,8e3)+`
`),P ||(P ="(暂无 result/error 输出)"),N(P ),g (""),F (void 0),Dl(B),J (!1),v t(""),r e(""),y e(""),mn(k .status);const c t=i(k .project_id),A=c t==="maintainer"||c t==="owner",$=c t==="contributor"||A,s t=uu.includes(k .status),Y t=[];["failed","interrupted","merge-failed"].includes(k .status)& & A ||Y t.push("重试:不可用——仅 failed/interrupted/merge-failed 可重试"+(A ?"":",且仅 maintainer 可重试")),!s t& & $ ||Y t.push("取消:不可用——"+(s t?"终态任务不可取消":"仅项目成员(contributor 及以上)可取消")),k .status==="completed"& & A ||Y t.push("合并:不可用——仅 completed 可合并"+(A ?"":",且仅 maintainer 可合并")),k .status==="merged"& & A ||Y t.push("提 PR:不可用——仅 merged 可提 PR"+(A ?"":",且仅 maintainer 可提 PR")),R(Y t.join("; ")),j (""),Qa(B,k .status),rl(B),ma(k ),Pe(B),e e(B),ol(B),$ t(B),k l(B),qe(B),_l(B)}catch(k ){f(null),N("加载失败:"+k .message)}},[f e,Qa,rl,ma,Pe,e e,ol,$ t,k l,qe,_l,Dl,i]),V a=d.useCallback(async()=>{const B=o e.current;if(B){try{const k =await a t(W .task(B.id));f(k );let P ="";k .result_text& & (P +=`=== result ===
`+k .result_text.slice(0,8e3)+`
`),k .error_text& & (P +=`=== error ===
`+k .error_text.slice(0,8e3)+`
`),N(P||"(暂无 result/error 输出)")}catch{}ee(B.id),Pe(B.id),qe(B.id),_l(B.id),ma(B),rl(B.id),ol(B.id),$t(B.id),kl(B.id),Dl(B.id)}},[ee,Pe,qe,_l,ma,rl,ol,$t,kl,Dl]),ha=d.useCallback(async B=>{const k=oe.current;if(!k)return;const P={cancel:"确定取消该任务吗?",merge:"确定把 completed 任务标为 merged 吗?",pr:"确定为该任务提 PR 吗?(会在仓库真实建 PR) "};if(!(P[B]& & !window.confirm(P[B])))try{const ct=await at(W.taskAction(k.id,B),"POST",{});j(B+" 已提交:"+JSON.stringify(ct).slice(0,300)),r(),await be(k.id)}catch(ct){j(B+" 失败:"+ct.message)}},[be,r]),su=d.useCallback(async()=>{const B=oe.current;if(B)try{const k=await at(W.taskCost(B.id));g(JSON.stringify(k,null,2).slice(0,4e3))}catch(k){g("查成本失败:"+k.message)}},[]),ru=d.useCallback(async B=>{const k=oe.current;if(k){if(!B.trim()){vt("分支消息必填");return}if(!uu.includes(k.status)){vt("仅终态任务可分支");return}try{const P=await at(W.taskFork(k.id),"POST",{message:B.trim()});vt("分支任务已建:"+P.id.slice(0,8)),r()}catch(P){vt("分支失败:"+P.message)}}},[r]),Wl=d.useCallback(async B=>{const k=oe.current;if(k)try{await at(W.taskReviews(k.id),"POST",B),dt("评审已登记(requested) "),await qe(k.id)}catch(P){dt("登记评审需求失败:"+P.message)}},[qe]),Me=d.useCallback(B=>{const k=oe.current;if(!k)return;const P=window.prompt("输入该条评审的 findings(将写回记录并标为 completed):");P!==null& & at(W.taskReviewFindings(k.id,B),"POST",{findings:P}).then(()=>void qe(k.id)).catch(ct=>dt("写 findings 失败:"+ct.message))},[qe]),fl=d.useCallback((B,k)=>{const P=oe.current;if(!P)return;const ct=k==="approved"?"approve":"deny";at(W.taskApprovalDecision(P.id,B,ct),"POST",{}).then(()=>{bt("已记录"+(k==="approved"?"允许":"拒绝")+"(当前版本只留回执,不拦截实时行为)"),_l(P.id)}).catch(A=>bt("决定失败:"+A.message))},[_l]),Oe=d.useCallback(async(B,k,P)=>{const ct=oe.current;if(ct){if(!k.trim()){re("目标任务 id 不能为空");return}if(!P.trim()){re("消息正文不能为空");return}try{const A=await at(W.taskMessagesTo(k.trim()),"POST",{from_task_id:ct.id,body:P.trim(),mode:B});re("已发送("+A.delivery+") "),await ol(ct.id)}catch(A){re("发送失败:"+A.message)}}},[ol]),ou=d.useCallback((B,k)=>{const P=oe.current;if(!P)return;if(!["completed","failed","interrupted"].includes(P.status)){ye("仅 completed/failed/interrupted 任务可操作线程(merged/merge-failed 不可改,服务端同样 409) ");return}const ct={};if(B==="rename"){if(!k.trim()){ye("新线程名不能为空");return}ct.name=k.trim()}at(W.taskThreadAction(P.id,B),"POST",ct).then(A=>{ye(B+" 已提交:"+JSON.stringify(A).slice(0,300)),$t(P.id),kl(P.id)}).catch(A=>ye(B+" 失败:"+A.message))},[$t,kl]),fu=d.useCallback(async B=>{const k=oe.current;if(!k)return;const P=B.trim();if(!P){Le("消息不能为空");return}try{uu.includes(k.status)& & k.status!=="merged"?(await at(W.taskContinue(k.id),"POST",{message:P}),Le("已重新排队,同一会话继续"),r(),await be(k.id)):["queued","running"].includes(k.status)?(await at(W.taskFollowups(k.id),"POST",{body:P,mode:"direct"}),Le("已直接发送"),await ee(k.id),await Pe(k.id)):Le("merged/merge-failed 任务不可继续,也不可发后续消息")}catch(ct){Le("发送失败:"+ct.message)}},[be,r,ee,Pe]),du=d.useCallback(async()=>{const B=oe.current;if(!B){se("先选一个任务");return}try{const k=await at(W.taskTrace(B.id)),P=new Blob([JSON.stringify({task_id:B.id,status:k.status,note:k.note||"",count:(k.entries||[]).length,entries:k.entries||[]},null,2)],{type:"application/json"}),ct=document.createElement("a");ct.href=URL.createObjectURL(P),ct.download="trace-"+B.id.slice(0,8)+".json",document.body.appendChild(ct),ct.click(),ct.remove(),setTimeout(()=>URL.revokeObjectURL(ct.href),1e3),se("已下载完整链路 "+(k.entries||[]).length+" 条")}catch(k){se("下载失败:"+k.message)}},[]);return d.useEffect(()=>()=>fe(),[fe]),{currentTask:h,detailBody:p,actionMsg:C,actionReasons:z,costBox:q,costSummary:U,forkVisible:X,setForkVisible:J,forkMsg:V,coordChildren:St,agents:K,agentsNote:w,reviews:nt,reviewMsg:qt,reviewError:kt,traceEntries:ot,traceNote:G,traceDone:tt,traceKind:xt,setTraceKind:Se,traceMsg:L,followups:y,approvals:ut,approvalMsg:Ct,peerMessages:Tt,peerMsg:mt,threadText:Ga,threadGateNote:Xe,threadMsg:Qt,threadList:Jl,chatMsg:da,chatHistory:zl,showDetail:be,refreshDetailLists:Va,doAction:ha,taskCost:su,forkTask:ru,postReview:Wl,submitFindings:Me,decideApproval:fl,postPeer:Oe,threadAction:ou,sendChatMessage:fu,downloadTrace:du,refreshReviews:()=>void qe(),refreshApprovals:()=>void _l()}}function cg(i){const[r,h]=d.useState([]),[f,p]=d.useState(""),[N,C]=d.useState(null),[j,z]=d.useState(""),R=d.useCallback(async X=>{const J=X!==void 0?X:i();if(!J){h([]);return}try{const V=await at(W.projectAutomations(J));h(V.automations||[])}catch(V){p("自动化加载失败:"+V.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:go(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:go(i)}}function jg(){const i=Kt(),r=i.currentTask,h=d.useMemo(()=>{if(!r)return[];let z;if(i.chatHistory){z=i.chatHistory.messages.map(X=>({id:X.id,role:X.role,text:X.text,label:X.label,kind:X.kind}));const U=new Set(z.map(X=>X.id)),F=i.traceEntries.filter(X=>X.id&&!U.has(X.id)&&!String(X.id).startsWith("fu-")).map((X,J)=>Zh(X,J)); z=[...z,...F]}else{const U=r.prompt?[{id:"task-prompt",role:"user",text:r.prompt}]:[],F=i.traceEntries.filter(J=>!String(J.id||"").startsWith("fu-")).map((J,V)=>Zh(J,V)),X=i.followups.map((J,V)=>({id:"followup-"+V,role:"user",text:String(J.body||""),label:"后续消息"}));z=[...U,...F,...X]}const R=i.traceKind,q=R?z.filter(U=>U.role==="user"||!U.kind||U.kind===R):z,g=i.traceDone?[{id:"trace-done",role:"status",text:"链路已结束("+i.traceDone+") "}]:[];return[...q,...g]},[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),p=["queued","running"].includes(r.status),N=f||p,C=f?"终态任务:发送走继续接口(同一会话再跑一轮)":p?"运行中/排队中:发送走后续消息直接发送(跑完当前轮后优先执行)":"merged/merge-failed 任务不可继续,也不可发后续消息",j=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:z=>i.setTraceKind(z.target.value),children:[c.jsx("option",{value:"",children:"链路类型:全部"}),["exec","file","call","tool","message","reasoning","plan","agent-start","agent-done"].map(z=>c.jsx("option",{value:z,children:z==="exec"?"命令":z==="file"?"文件":z==="call"?"调用":z==="tool"?"工具":z==="message"?"消息":z==="reasoning"?"思考":z==="plan"?"计划":"子代理"},z))]}),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,j!==null& & j>0?c.jsxs("div",{className:"muted",children:["此前有 ",j," 条继续消息发生在持久化之前,未入库,上面历史不完整;部署后新发的继续消息会正常显示。"]}):null,i.chatHistory& & i.chatHistory.trace_note?c.jsx("div",{className:"muted",children:i.chatHistory.trace_note}):null,c.jsx(xg,{messages:h,empty:"(暂无会话消息)"}),c.jsx(bg,{disabled:!N,placeholder:"消息",onSend:z=>void i.sendChatMessage(z)}),c.jsxs("div",{className:"muted",children:[C,"。",i.chatMsg]}),c.jsx("div",{className:"muted",children:"对话时间线:首条是本任务 prompt(用户);助手回复、命令/文件/工具/调用、计划/思考/子代理开始结束都在同一列里,不再另起一份链路名单。流式进行中时新条目实时追加;你在底部时自动跟随,往上翻时暂停跟随,点“回到最新”恢复。"})]})}function Tg(){return Kt().currentTask?c.jsx("div",{className:"conversation",children:c.jsx(jg,{})}):c.jsx("div",{className:"conversation",children:c.jsx("div",{className:"muted",children:"在任务列表里点一条任务,对话和详情就切到该任务;也可以在上面派发一个新任务。"})})}function _g(){const i=Kt(),r=i.currentTask,[h,f]=d.useState("");if(!r)return null;const p=uu.includes(r.status),N=["failed","interrupted","merge-failed"].includes(r.status);return c.jsxs(c.Fragment,{children:[c.jsxs(Ht,{children:[c.jsx("button",{disabled:!N,title:N?"":"仅 failed/interrupted/merge-failed 可重试",onClick:()=>i.doAction("retry"),children:"重试"}),c.jsx("button",{className:"danger",disabled:p,title:p?"终态任务不可取消":"",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 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 C =JSON.parse(G.slice(6));C .waiting?S(C .task_status==="interrupted"?"任务已中断,等待续跑…":C .task_status==="paused"?"任务已暂停…":"等待会话…"):C .image&&(f("data:image/jpeg; base64,"+C .image),S ("直播中"));const u t={};C .holder& & (u t.holder=C .holder),C .url& & (u t.url=C .url),C .title!==void 0& & (u t.title=C .title),Object.keys(u t).length>0& & N(S t=>({...S t||{},...u t}))}catch{}ot=v t.indexOf(`
`);for(;ot>=0;){const y t=d t.slice(0,ot);d t=d t.slice(ot+2);for(const G of y t.split(`
`))if(G.startsWith("data: "))try{const Y =JSON.parse(G.slice(6));Y .waiting?j(Y .task_status==="interrupted"?"任务已中断,等待续跑…":Y .task_status==="paused"?"任务已暂停…":"等待会话…"):Y .image&&(f("data:image/jpeg; base64,"+Y .image),j ("直播中"));const t t={};Y .holder& & (t t.holder=Y .holder),Y .url& & (t t.url=Y .url),Y .title!==void 0& & (t t.title=Y .title),Object.keys(t t).length>0& & N(g t=>({...g t||{},...t t}))}catch{}ot=d t.indexOf(`
`)}}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});N(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(""),[N,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:N,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:N.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
`)}}j("流已断开")}catch(nt){if(nt.name==="AbortError")return;R(nt instanceof Error?nt.message:String(nt)),j("未开始")}finally{g(!1)}},[r]),V=d.useCallback(()=>{var w;(w=U.current)==null||w.abort(),g(!1),j("已停止")},[]),vt=d.useCallback(async w=>{if(r)try{const Q=await at(W.taskBrowserControl(r.id),"POST",{holder:w});N(Q),R("")}catch(Q){R(Q instanceof Error?Q.message:String(Q))}},[r]),St=d.useCallback(async w=>{if(!r||(p==null?void 0:p.holder)!=="user"||!F.current)return;const Q=F.current.getBoundingClientRect(),nt=Math.round((w.clientX-Q.left)/Q.width*1280),Dt=Math.round((w.clientY-Q.top)/Q.height*800);try{await at(W.taskBrowserInput(r.id),"POST",{type:"mouse_click",x:nt,y:Dt})}catch(qt){R(qt instanceof Error?qt.message:String(qt))}},[r,p]),jt=d.useCallback(async w=>{if(!(!r||(p==null?void 0:p.holder)!=="user")){w.preventDefault();try{w.key.length===1?await at(W.taskBrowserInput(r.id),"POST",{type:"type",text:w.key}):await at(W.taskBrowserInput(r.id),"POST",{type:"key",key:w.key})}catch(Q){R(Q instanceof Error?Q.message:String(Q))}}},[r,p]);if(!r)return c.jsx("div",{className:"muted",children:"点任务行查看详情"});const K=(p==null?void 0:p.holder)||"—",Nt=p!==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:C})]}),c.jsxs("span",{className:"muted",children:["会话 ",Nt?"活跃":"未激活(轮次结束即消失)"]}),c.jsxs("span",{className:"muted",children:["控制权 ",K]}),p!=null& & p.url?c.jsx("span",{className:"muted",title:p.url,children:p.url.slice(0,80)}):null]}),c.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",marginTop:8},children:[q?c.jsx("button",{type:"button",onClick:V,children:"停止观看"}):c.jsx("button",{type:"button",onClick:()=>void J(),children:"开始观看"}),c.jsx("button",{type:"button",onClick:()=>void X(),children:"刷新状态"}),K!=="user"?c.jsx("button",{type:"button",onClick:()=>void vt("user"),disabled:!Nt,children:"接管"}):c.jsx("button",{type:"button",onClick:()=>void vt("agent"),children:"交还给 Agent"})]}),z?c.jsx("div",{className:"muted",style:{marginTop:8},children:z}):null,K==="user"?c.jsx("div",{className:"muted",style:{marginTop:8},children:"你已接管:点画面即点击,键盘输入直达页面。交还后 Agent 续跑前会先快照确认你的改动。"}):null,c.jsx("div",{style:{marginTop:8},children:h?c.jsx("img",{ref:F,src:h,alt:"浏览器实时画面",tabIndex:0,onClick:w=>void St(w),onKeyDown:w=>void jt(w),style:{width:"100%",maxWidth:1280,cursor:K==="user"?"crosshair":"default",border:"1px solid var(--border, #ccc)"}}):c.jsx("div",{className:"muted",children:Nt?"点“开始观看”接入画面流(接管后点画面即点击)":"浏览器会话未激活:任务本轮未开浏览器,或轮次已结束。"})})]})}function Ng(){const i=Kt(),[r,h]=d.useState("uncommittedChanges"),[f,p]=d.useState(""),[N,C]=d.useState(""),[j,z]=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=>p(R.target.value)}),c.jsx("input",{className:"stacked",placeholder:"指定提交用:提交 sha",style:{width:"100%"},value:N,onChange:R=>C(R.target.value)}),c.jsx("textarea",{placeholder:"自定义评审指令用:评审指令正文",value:j,onChange:R=>z(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:N.trim()||void 0,instructions:j.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 q=R.target_type||"";return R.branch& & (q+=": "+R.branch),R.sha& & (q+=": "+String(R.sha).slice(0,12)),R.instructions& & (q+=": "+String(R.instructions).slice(0,80)),c.jsxs("li",{children:[c.jsxs("span",{className:"row-main",children:[c.jsx("b",{children:"评审"})," ",Ae(R.id)," | ",q," | ",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 >