makecoder 2.0.71 → 2.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import{$d as WU,$f as Ure,$g as sv,$l as i3,Ae as tH,Af as IR,B as zD,Bb as RU,Cl as KH,Db as WD,Eb as JD,El as BR,Fi as NH,Fk as PA,Gk as HH,Gl as VH,H as vU,Hb as pR,Ig as hd,Im as h3,J as xU,Jb as QU,Jh as QH,Kb as gR,Ki as MH,Lb as _U,Lc as PU,Mb as FU,Me as nH,Nb as NU,Ne as rH,Ol as WH,P as Xo,Pd as qU,Pl as JH,Qc as CR,Qj as GA,Ql as av,Rc as Lg,Rh as _H,Rl as XH,Sc as jU,Se as iH,Sg as gH,Tc as zU,Td as ZD,Tl as $H,Ui as kH,Ul as ZH,Vh as FH,Vi as OH,Vj as UH,Wb as XD,Wg as yH,X as Ore,Xd as YU,Xf as dH,Xl as e3,Y as BU,Yf as fH,Yg as Ji,Yi as DR,Yl as t3,Z as Og,Zd as KU,Ze as oH,Zf as nv,Zg as ov,Zl as n3,_ as YD,_d as VU,_f as hH,_g as EH,_j as vR,_l as r3,a as Mre,aa as si,ag as ca,ah as CH,al as GH,am as o3,bc as yR,bg as rv,bh as SH,cc as MU,cf as Ug,cg as Hre,ch as bH,cn as A3,dc as kU,dg as Gre,dh as IH,dl as PH,dm as Pg,ec as OU,eh as B0,fc as LU,fd as v0,fh as w0,fm as s3,gc as UU,gh as DH,hc as HU,hh as vH,hi as ua,hl as jH,hm as wR,id as $D,ie as JU,ig as AH,ih as xH,il as zH,im as a3,je as ev,jh as BH,jm as l3,kh as Hg,ki as Hf,kl as xR,lg as iv,lh as wH,li as Gg,mb as KD,mh as TH,nb as mR,nc as ER,ne as XU,nf as Lre,ob as VD,oe as SR,of as sH,ol as qH,om as c3,pb as TU,pe as $U,pf as aH,pm as lv,q as SU,qe as bR,qf as $c,ql as YH,qm as u3,re as ZU,rf as ll,rg as mH,rj as HA,s as bU,se as eH,sf as lH,sg as pH,t as jD,tc as GU,tf as cH,uh as RH,um as d3,vh as oc,vm as f3,x as IU,xe as x0,y as DU,yf as uH,z as AR,ze as tv}from"./chunk-APAUY2EN.js";import{$ as Fi,C as dR,E as fd,Fd as D0,Na as EU,Qc as CU,Qd as wU,Sd as ic,Ud as gt,Z as Uf,a as vt,b as Ee,ba as fR,ca as mU,ea as hR,fa as UD,ia as pU,ja as HD,je as LH,la as kre,lc as GD,mc as PD,na as fr,pa as gU,qa as yU,xd as qD,zd as _t}from"./chunk-SX66NO2U.js";import{a as $n,c as Ae,d as Nre,e as Ce}from"./chunk-YUXORC52.js";var v3=Ae(Vt=>{"use strict";var QR=Symbol.for("react.transitional.element"),Pre=Symbol.for("react.portal"),jre=Symbol.for("react.fragment"),zre=Symbol.for("react.strict_mode"),qre=Symbol.for("react.profiler"),Yre=Symbol.for("react.consumer"),Kre=Symbol.for("react.context"),Vre=Symbol.for("react.forward_ref"),Wre=Symbol.for("react.suspense"),Jre=Symbol.for("react.memo"),E3=Symbol.for("react.lazy"),Xre=Symbol.for("react.activity"),m3=Symbol.iterator;function $re(e){return e===null||typeof e!="object"?null:(e=m3&&e[m3]||e["@@iterator"],typeof e=="function"?e:null)}var C3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S3=Object.assign,b3={};function zg(e,t,n){this.props=e,this.context=t,this.refs=b3,this.updater=n||C3}zg.prototype.isReactComponent={};zg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};zg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I3(){}I3.prototype=zg.prototype;function _R(e,t,n){this.props=e,this.context=t,this.refs=b3,this.updater=n||C3}var FR=_R.prototype=new I3;FR.constructor=_R;S3(FR,zg.prototype);FR.isPureReactComponent=!0;var p3=Array.isArray;function RR(){}var wr={H:null,A:null,T:null,S:null},D3=Object.prototype.hasOwnProperty;function NR(e,t,n){var r=n.ref;return{$$typeof:QR,type:e,key:t,ref:r!==void 0?r:null,props:n}}function Zre(e,t){return NR(e.type,t,e.props)}function MR(e){return typeof e=="object"&&e!==null&&e.$$typeof===QR}function eie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var g3=/\/+/g;function TR(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eie(""+e.key):t.toString(36)}function tie(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(RR,RR):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function jg(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case QR:case Pre:a=!0;break;case E3:return a=e._init,jg(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+TR(e,0):r,p3(i)?(n="",a!=null&&(n=a.replace(g3,"$&/")+"/"),jg(i,t,n,"",function(A){return A})):i!=null&&(MR(i)&&(i=Zre(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(g3,"$&/")+"/")+a)),t.push(i)),1;a=0;var c=r===""?".":r+":";if(p3(e))for(var f=0;f<e.length;f++)r=e[f],s=c+TR(r,f),a+=jg(r,t,n,s,i);else if(f=$re(e),typeof f=="function")for(e=f.call(e),f=0;!(r=e.next()).done;)r=r.value,s=c+TR(r,f++),a+=jg(r,t,n,s,i);else if(s==="object"){if(typeof e.then=="function")return jg(tie(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function cv(e,t,n){if(e==null)return e;var r=[],i=0;return jg(e,r,"","",function(s){return t.call(n,s,i++)}),r}function nie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var y3=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rie={map:cv,forEach:function(e,t,n){cv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cv(e,function(){t++}),t},toArray:function(e){return cv(e,function(t){return t})||[]},only:function(e){if(!MR(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vt.Activity=Xre;Vt.Children=rie;Vt.Component=zg;Vt.Fragment=jre;Vt.Profiler=qre;Vt.PureComponent=_R;Vt.StrictMode=zre;Vt.Suspense=Wre;Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wr;Vt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return wr.H.useMemoCache(e)}};Vt.cache=function(e){return function(){return e.apply(null,arguments)}};Vt.cacheSignal=function(){return null};Vt.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=S3({},e.props),i=e.key;if(t!=null)for(s in t.key!==void 0&&(i=""+t.key),t)!D3.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];r.children=a}return NR(e.type,i,r)};Vt.createContext=function(e){return e={$$typeof:Kre,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Yre,_context:e},e};Vt.createElement=function(e,t,n){var r,i={},s=null;if(t!=null)for(r in t.key!==void 0&&(s=""+t.key),t)D3.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return NR(e,s,i)};Vt.createRef=function(){return{current:null}};Vt.forwardRef=function(e){return{$$typeof:Vre,render:e}};Vt.isValidElement=MR;Vt.lazy=function(e){return{$$typeof:E3,_payload:{_status:-1,_result:e},_init:nie}};Vt.memo=function(e,t){return{$$typeof:Jre,type:e,compare:t===void 0?null:t}};Vt.startTransition=function(e){var t=wr.T,n={};wr.T=n;try{var r=e(),i=wr.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(RR,y3)}catch(s){y3(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),wr.T=t}};Vt.unstable_useCacheRefresh=function(){return wr.H.useCacheRefresh()};Vt.use=function(e){return wr.H.use(e)};Vt.useActionState=function(e,t,n){return wr.H.useActionState(e,t,n)};Vt.useCallback=function(e,t){return wr.H.useCallback(e,t)};Vt.useContext=function(e){return wr.H.useContext(e)};Vt.useDebugValue=function(){};Vt.useDeferredValue=function(e,t){return wr.H.useDeferredValue(e,t)};Vt.useEffect=function(e,t){return wr.H.useEffect(e,t)};Vt.useEffectEvent=function(e){return wr.H.useEffectEvent(e)};Vt.useId=function(){return wr.H.useId()};Vt.useImperativeHandle=function(e,t,n){return wr.H.useImperativeHandle(e,t,n)};Vt.useInsertionEffect=function(e,t){return wr.H.useInsertionEffect(e,t)};Vt.useLayoutEffect=function(e,t){return wr.H.useLayoutEffect(e,t)};Vt.useMemo=function(e,t){return wr.H.useMemo(e,t)};Vt.useOptimistic=function(e,t){return wr.H.useOptimistic(e,t)};Vt.useReducer=function(e,t,n){return wr.H.useReducer(e,t,n)};Vt.useRef=function(e){return wr.H.useRef(e)};Vt.useState=function(e){return wr.H.useState(e)};Vt.useSyncExternalStore=function(e,t,n){return wr.H.useSyncExternalStore(e,t,n)};Vt.useTransition=function(){return wr.H.useTransition()};Vt.version="19.2.4"});var x3=Ae((Pt,uv)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(M,ae){Object.defineProperty(r.prototype,M,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ae[0],ae[1])}})}function t(M){return M===null||typeof M!="object"?null:(M=Ve&&M[Ve]||M["@@iterator"],typeof M=="function"?M:null)}function n(M,ae){M=(M=M.constructor)&&(M.displayName||M.name)||"ReactClass";var Le=M+"."+ae;Re[Le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ae,M),Re[Le]=!0)}function r(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function i(){}function s(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function a(){}function c(M){return""+M}function f(M){try{c(M);var ae=!1}catch{ae=!0}if(ae){ae=console;var Le=ae.error,Je=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Le.call(ae,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Je),c(M)}}function A(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===Gn?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case ft:return"Fragment";case te:return"Profiler";case Ne:return"StrictMode";case St:return"Suspense";case j:return"SuspenseList";case me:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case Me:return"Portal";case Oe:return M.displayName||"Context";case _e:return(M._context.displayName||"Context")+".Consumer";case nt:var ae=M.render;return M=M.displayName,M||(M=ae.displayName||ae.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case q:return ae=M.displayName||null,ae!==null?ae:A(M.type)||"Memo";case Y:ae=M._payload,M=M._init;try{return A(M(ae))}catch{}}return null}function m(M){if(M===ft)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===Y)return"<...>";try{var ae=A(M);return ae?"<"+ae+">":"<...>"}catch{return"<...>"}}function y(){var M=pt.A;return M===null?null:M.getOwner()}function C(){return Error("react-stack-top-frame")}function p(M){if(Si.call(M,"key")){var ae=Object.getOwnPropertyDescriptor(M,"key").get;if(ae&&ae.isReactWarning)return!1}return M.key!==void 0}function g(M,ae){function Le(){Jn||(Jn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ae))}Le.isReactWarning=!0,Object.defineProperty(M,"key",{get:Le,configurable:!0})}function b(){var M=A(this.type);return to[M]||(to[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function v(M,ae,Le,Je,Z,se){var Se=Le.ref;return M={$$typeof:De,type:M,key:ae,props:Le,_owner:Je},(Se!==void 0?Se:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:b}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function w(M,ae){return ae=v(M.type,ae,M.props,M._owner,M._debugStack,M._debugTask),M._store&&(ae._store.validated=M._store.validated),ae}function T(M){_(M)?M._store&&(M._store.validated=1):typeof M=="object"&&M!==null&&M.$$typeof===Y&&(M._payload.status==="fulfilled"?_(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function _(M){return typeof M=="object"&&M!==null&&M.$$typeof===De}function k(M){var ae={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Le){return ae[Le]})}function O(M,ae){return typeof M=="object"&&M!==null&&M.key!=null?(f(M.key),k(""+M.key)):ae.toString(36)}function G(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(a,a):(M.status="pending",M.then(function(ae){M.status==="pending"&&(M.status="fulfilled",M.value=ae)},function(ae){M.status==="pending"&&(M.status="rejected",M.reason=ae)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function W(M,ae,Le,Je,Z){var se=typeof M;(se==="undefined"||se==="boolean")&&(M=null);var Se=!1;if(M===null)Se=!0;else switch(se){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(M.$$typeof){case De:case Me:Se=!0;break;case Y:return Se=M._init,W(Se(M._payload),ae,Le,Je,Z)}}if(Se){Se=M,Z=Z(Se);var Ze=Je===""?"."+O(Se,0):Je;return Fr(Z)?(Le="",Ze!=null&&(Le=Ze.replace(Oi,"$&/")+"/"),W(Z,ae,Le,"",function(mr){return mr})):Z!=null&&(_(Z)&&(Z.key!=null&&(Se&&Se.key===Z.key||f(Z.key)),Le=w(Z,Le+(Z.key==null||Se&&Se.key===Z.key?"":(""+Z.key).replace(Oi,"$&/")+"/")+Ze),Je!==""&&Se!=null&&_(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Le._store.validated=2),Z=Le),ae.push(Z)),1}if(Se=0,Ze=Je===""?".":Je+":",Fr(M))for(var Et=0;Et<M.length;Et++)Je=M[Et],se=Ze+O(Je,Et),Se+=W(Je,ae,Le,se,Z);else if(Et=t(M),typeof Et=="function")for(Et===M.entries&&(Nr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nr=!0),M=Et.call(M),Et=0;!(Je=M.next()).done;)Je=Je.value,se=Ze+O(Je,Et++),Se+=W(Je,ae,Le,se,Z);else if(se==="object"){if(typeof M.then=="function")return W(G(M),ae,Le,Je,Z);throw ae=String(M),Error("Objects are not valid as a React child (found: "+(ae==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":ae)+"). If you meant to render a collection of children, use an array instead.")}return Se}function z(M,ae,Le){if(M==null)return M;var Je=[],Z=0;return W(M,Je,"","",function(se){return ae.call(Le,se,Z++)}),Je}function P(M){if(M._status===-1){var ae=M._ioInfo;ae!=null&&(ae.start=ae.end=performance.now()),ae=M._result;var Le=ae();if(Le.then(function(Z){if(M._status===0||M._status===-1){M._status=1,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="fulfilled",Le.value=Z)}},function(Z){if(M._status===0||M._status===-1){M._status=2,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="rejected",Le.reason=Z)}}),ae=M._ioInfo,ae!=null){ae.value=Le;var Je=Le.displayName;typeof Je=="string"&&(ae.name=Je)}M._status===-1&&(M._status=0,M._result=Le)}if(M._status===1)return ae=M._result,ae===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+ import{$d as WU,$f as Ure,$g as sv,$l as i3,Ae as tH,Af as IR,B as zD,Bb as RU,Cl as KH,Db as WD,Eb as JD,El as BR,Fi as NH,Fk as PA,Gk as HH,Gl as VH,H as vU,Hb as pR,Ig as hd,Im as h3,J as xU,Jb as QU,Jh as QH,Kb as gR,Ki as MH,Lb as _U,Lc as PU,Mb as FU,Me as nH,Nb as NU,Ne as rH,Ol as WH,P as Xo,Pd as qU,Pl as JH,Qc as CR,Qj as GA,Ql as av,Rc as Lg,Rh as _H,Rl as XH,Sc as jU,Se as iH,Sg as gH,Tc as zU,Td as ZD,Tl as $H,Ui as kH,Ul as ZH,Vh as FH,Vi as OH,Vj as UH,Wb as XD,Wg as yH,X as Ore,Xd as YU,Xf as dH,Xl as e3,Y as BU,Yf as fH,Yg as Ji,Yi as DR,Yl as t3,Z as Og,Zd as KU,Ze as oH,Zf as nv,Zg as ov,Zl as n3,_ as YD,_d as VU,_f as hH,_g as EH,_j as vR,_l as r3,a as Mre,aa as si,ag as ca,ah as CH,al as GH,am as o3,bc as yR,bg as rv,bh as SH,cc as MU,cf as Ug,cg as Hre,ch as bH,cn as A3,dc as kU,dg as Gre,dh as IH,dl as PH,dm as Pg,ec as OU,eh as B0,fc as LU,fd as v0,fh as w0,fm as s3,gc as UU,gh as DH,hc as HU,hh as vH,hi as ua,hl as jH,hm as wR,id as $D,ie as JU,ig as AH,ih as xH,il as zH,im as a3,je as ev,jh as BH,jm as l3,kh as Hg,ki as Hf,kl as xR,lg as iv,lh as wH,li as Gg,mb as KD,mh as TH,nb as mR,nc as ER,ne as XU,nf as Lre,ob as VD,oe as SR,of as sH,ol as qH,om as c3,pb as TU,pe as $U,pf as aH,pm as lv,q as SU,qe as bR,qf as $c,ql as YH,qm as u3,re as ZU,rf as ll,rg as mH,rj as HA,s as bU,se as eH,sf as lH,sg as pH,t as jD,tc as GU,tf as cH,uh as RH,um as d3,vh as oc,vm as f3,x as IU,xe as x0,y as DU,yf as uH,z as AR,ze as tv}from"./chunk-742OPB22.js";import{$ as Fi,C as dR,E as fd,Fd as D0,Na as EU,Qc as CU,Qd as wU,Sd as ic,Ud as gt,Z as Uf,a as vt,b as Ee,ba as fR,ca as mU,ea as hR,fa as UD,ia as pU,ja as HD,je as LH,la as kre,lc as GD,mc as PD,na as fr,pa as gU,qa as yU,xd as qD,zd as _t}from"./chunk-SX66NO2U.js";import{a as $n,c as Ae,d as Nre,e as Ce}from"./chunk-YUXORC52.js";var v3=Ae(Vt=>{"use strict";var QR=Symbol.for("react.transitional.element"),Pre=Symbol.for("react.portal"),jre=Symbol.for("react.fragment"),zre=Symbol.for("react.strict_mode"),qre=Symbol.for("react.profiler"),Yre=Symbol.for("react.consumer"),Kre=Symbol.for("react.context"),Vre=Symbol.for("react.forward_ref"),Wre=Symbol.for("react.suspense"),Jre=Symbol.for("react.memo"),E3=Symbol.for("react.lazy"),Xre=Symbol.for("react.activity"),m3=Symbol.iterator;function $re(e){return e===null||typeof e!="object"?null:(e=m3&&e[m3]||e["@@iterator"],typeof e=="function"?e:null)}var C3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S3=Object.assign,b3={};function zg(e,t,n){this.props=e,this.context=t,this.refs=b3,this.updater=n||C3}zg.prototype.isReactComponent={};zg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};zg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I3(){}I3.prototype=zg.prototype;function _R(e,t,n){this.props=e,this.context=t,this.refs=b3,this.updater=n||C3}var FR=_R.prototype=new I3;FR.constructor=_R;S3(FR,zg.prototype);FR.isPureReactComponent=!0;var p3=Array.isArray;function RR(){}var wr={H:null,A:null,T:null,S:null},D3=Object.prototype.hasOwnProperty;function NR(e,t,n){var r=n.ref;return{$$typeof:QR,type:e,key:t,ref:r!==void 0?r:null,props:n}}function Zre(e,t){return NR(e.type,t,e.props)}function MR(e){return typeof e=="object"&&e!==null&&e.$$typeof===QR}function eie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var g3=/\/+/g;function TR(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eie(""+e.key):t.toString(36)}function tie(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(RR,RR):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function jg(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case QR:case Pre:a=!0;break;case E3:return a=e._init,jg(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+TR(e,0):r,p3(i)?(n="",a!=null&&(n=a.replace(g3,"$&/")+"/"),jg(i,t,n,"",function(A){return A})):i!=null&&(MR(i)&&(i=Zre(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(g3,"$&/")+"/")+a)),t.push(i)),1;a=0;var c=r===""?".":r+":";if(p3(e))for(var f=0;f<e.length;f++)r=e[f],s=c+TR(r,f),a+=jg(r,t,n,s,i);else if(f=$re(e),typeof f=="function")for(e=f.call(e),f=0;!(r=e.next()).done;)r=r.value,s=c+TR(r,f++),a+=jg(r,t,n,s,i);else if(s==="object"){if(typeof e.then=="function")return jg(tie(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function cv(e,t,n){if(e==null)return e;var r=[],i=0;return jg(e,r,"","",function(s){return t.call(n,s,i++)}),r}function nie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var y3=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rie={map:cv,forEach:function(e,t,n){cv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cv(e,function(){t++}),t},toArray:function(e){return cv(e,function(t){return t})||[]},only:function(e){if(!MR(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vt.Activity=Xre;Vt.Children=rie;Vt.Component=zg;Vt.Fragment=jre;Vt.Profiler=qre;Vt.PureComponent=_R;Vt.StrictMode=zre;Vt.Suspense=Wre;Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wr;Vt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return wr.H.useMemoCache(e)}};Vt.cache=function(e){return function(){return e.apply(null,arguments)}};Vt.cacheSignal=function(){return null};Vt.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=S3({},e.props),i=e.key;if(t!=null)for(s in t.key!==void 0&&(i=""+t.key),t)!D3.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];r.children=a}return NR(e.type,i,r)};Vt.createContext=function(e){return e={$$typeof:Kre,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Yre,_context:e},e};Vt.createElement=function(e,t,n){var r,i={},s=null;if(t!=null)for(r in t.key!==void 0&&(s=""+t.key),t)D3.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return NR(e,s,i)};Vt.createRef=function(){return{current:null}};Vt.forwardRef=function(e){return{$$typeof:Vre,render:e}};Vt.isValidElement=MR;Vt.lazy=function(e){return{$$typeof:E3,_payload:{_status:-1,_result:e},_init:nie}};Vt.memo=function(e,t){return{$$typeof:Jre,type:e,compare:t===void 0?null:t}};Vt.startTransition=function(e){var t=wr.T,n={};wr.T=n;try{var r=e(),i=wr.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(RR,y3)}catch(s){y3(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),wr.T=t}};Vt.unstable_useCacheRefresh=function(){return wr.H.useCacheRefresh()};Vt.use=function(e){return wr.H.use(e)};Vt.useActionState=function(e,t,n){return wr.H.useActionState(e,t,n)};Vt.useCallback=function(e,t){return wr.H.useCallback(e,t)};Vt.useContext=function(e){return wr.H.useContext(e)};Vt.useDebugValue=function(){};Vt.useDeferredValue=function(e,t){return wr.H.useDeferredValue(e,t)};Vt.useEffect=function(e,t){return wr.H.useEffect(e,t)};Vt.useEffectEvent=function(e){return wr.H.useEffectEvent(e)};Vt.useId=function(){return wr.H.useId()};Vt.useImperativeHandle=function(e,t,n){return wr.H.useImperativeHandle(e,t,n)};Vt.useInsertionEffect=function(e,t){return wr.H.useInsertionEffect(e,t)};Vt.useLayoutEffect=function(e,t){return wr.H.useLayoutEffect(e,t)};Vt.useMemo=function(e,t){return wr.H.useMemo(e,t)};Vt.useOptimistic=function(e,t){return wr.H.useOptimistic(e,t)};Vt.useReducer=function(e,t,n){return wr.H.useReducer(e,t,n)};Vt.useRef=function(e){return wr.H.useRef(e)};Vt.useState=function(e){return wr.H.useState(e)};Vt.useSyncExternalStore=function(e,t,n){return wr.H.useSyncExternalStore(e,t,n)};Vt.useTransition=function(){return wr.H.useTransition()};Vt.version="19.2.4"});var x3=Ae((Pt,uv)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(M,ae){Object.defineProperty(r.prototype,M,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ae[0],ae[1])}})}function t(M){return M===null||typeof M!="object"?null:(M=Ve&&M[Ve]||M["@@iterator"],typeof M=="function"?M:null)}function n(M,ae){M=(M=M.constructor)&&(M.displayName||M.name)||"ReactClass";var Le=M+"."+ae;Re[Le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ae,M),Re[Le]=!0)}function r(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function i(){}function s(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function a(){}function c(M){return""+M}function f(M){try{c(M);var ae=!1}catch{ae=!0}if(ae){ae=console;var Le=ae.error,Je=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Le.call(ae,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Je),c(M)}}function A(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===Gn?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case ft:return"Fragment";case te:return"Profiler";case Ne:return"StrictMode";case St:return"Suspense";case j:return"SuspenseList";case me:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case Me:return"Portal";case Oe:return M.displayName||"Context";case _e:return(M._context.displayName||"Context")+".Consumer";case nt:var ae=M.render;return M=M.displayName,M||(M=ae.displayName||ae.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case q:return ae=M.displayName||null,ae!==null?ae:A(M.type)||"Memo";case Y:ae=M._payload,M=M._init;try{return A(M(ae))}catch{}}return null}function m(M){if(M===ft)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===Y)return"<...>";try{var ae=A(M);return ae?"<"+ae+">":"<...>"}catch{return"<...>"}}function y(){var M=pt.A;return M===null?null:M.getOwner()}function C(){return Error("react-stack-top-frame")}function p(M){if(Si.call(M,"key")){var ae=Object.getOwnPropertyDescriptor(M,"key").get;if(ae&&ae.isReactWarning)return!1}return M.key!==void 0}function g(M,ae){function Le(){Jn||(Jn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ae))}Le.isReactWarning=!0,Object.defineProperty(M,"key",{get:Le,configurable:!0})}function b(){var M=A(this.type);return to[M]||(to[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function v(M,ae,Le,Je,Z,se){var Se=Le.ref;return M={$$typeof:De,type:M,key:ae,props:Le,_owner:Je},(Se!==void 0?Se:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:b}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function w(M,ae){return ae=v(M.type,ae,M.props,M._owner,M._debugStack,M._debugTask),M._store&&(ae._store.validated=M._store.validated),ae}function T(M){_(M)?M._store&&(M._store.validated=1):typeof M=="object"&&M!==null&&M.$$typeof===Y&&(M._payload.status==="fulfilled"?_(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function _(M){return typeof M=="object"&&M!==null&&M.$$typeof===De}function k(M){var ae={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Le){return ae[Le]})}function O(M,ae){return typeof M=="object"&&M!==null&&M.key!=null?(f(M.key),k(""+M.key)):ae.toString(36)}function G(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(a,a):(M.status="pending",M.then(function(ae){M.status==="pending"&&(M.status="fulfilled",M.value=ae)},function(ae){M.status==="pending"&&(M.status="rejected",M.reason=ae)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function W(M,ae,Le,Je,Z){var se=typeof M;(se==="undefined"||se==="boolean")&&(M=null);var Se=!1;if(M===null)Se=!0;else switch(se){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(M.$$typeof){case De:case Me:Se=!0;break;case Y:return Se=M._init,W(Se(M._payload),ae,Le,Je,Z)}}if(Se){Se=M,Z=Z(Se);var Ze=Je===""?"."+O(Se,0):Je;return Fr(Z)?(Le="",Ze!=null&&(Le=Ze.replace(Oi,"$&/")+"/"),W(Z,ae,Le,"",function(mr){return mr})):Z!=null&&(_(Z)&&(Z.key!=null&&(Se&&Se.key===Z.key||f(Z.key)),Le=w(Z,Le+(Z.key==null||Se&&Se.key===Z.key?"":(""+Z.key).replace(Oi,"$&/")+"/")+Ze),Je!==""&&Se!=null&&_(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Le._store.validated=2),Z=Le),ae.push(Z)),1}if(Se=0,Ze=Je===""?".":Je+":",Fr(M))for(var Et=0;Et<M.length;Et++)Je=M[Et],se=Ze+O(Je,Et),Se+=W(Je,ae,Le,se,Z);else if(Et=t(M),typeof Et=="function")for(Et===M.entries&&(Nr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nr=!0),M=Et.call(M),Et=0;!(Je=M.next()).done;)Je=Je.value,se=Ze+O(Je,Et++),Se+=W(Je,ae,Le,se,Z);else if(se==="object"){if(typeof M.then=="function")return W(G(M),ae,Le,Je,Z);throw ae=String(M),Error("Objects are not valid as a React child (found: "+(ae==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":ae)+"). If you meant to render a collection of children, use an array instead.")}return Se}function z(M,ae,Le){if(M==null)return M;var Je=[],Z=0;return W(M,Je,"","",function(se){return ae.call(Le,se,Z++)}),Je}function P(M){if(M._status===-1){var ae=M._ioInfo;ae!=null&&(ae.start=ae.end=performance.now()),ae=M._result;var Le=ae();if(Le.then(function(Z){if(M._status===0||M._status===-1){M._status=1,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="fulfilled",Le.value=Z)}},function(Z){if(M._status===0||M._status===-1){M._status=2,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="rejected",Le.reason=Z)}}),ae=M._ioInfo,ae!=null){ae.value=Le;var Je=Le.displayName;typeof Je=="string"&&(ae.name=Je)}M._status===-1&&(M._status=0,M._result=Le)}if(M._status===1)return ae=M._result,ae===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
3
 
4
4
  Your code should look like:
5
5
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -729,7 +729,7 @@ ${e.map(i=>{let s=$T.basename(i.path),a=(t.get(s)||0)>1,c=$T.basename($T.dirname
729
729
  ${m.map(y=>` - ${y}`).join(`
730
730
  `)}
731
731
 
732
- Use /mcp auth <server-name> to authenticate.`}}let a=s[n];if(!a)return{type:"message",messageType:"error",content:`MCP server '${n}' not found.`};let c=f=>{e.ui.addItem({type:"info",text:f})};gt.on(ic.OauthDisplayMessage,c);try{e.ui.addItem({type:"info",text:`Starting OAuth authentication for MCP server '${n}'...`});let{MCPOAuthProvider:f}=await import("./dist-S65OG37M.js"),A=a.oauth;A||(A={enabled:!1});let m=a.httpUrl||a.url;await new f(new vR).authenticate(n,A,m),e.ui.addItem({type:"info",text:`\u2705 Successfully authenticated with MCP server '${n}'!`});let C=i.getMcpClientManager();C&&(e.ui.addItem({type:"info",text:`Restarting MCP server '${n}'...`}),await C.restartServer(n));let p=e.services.agentContext?.geminiClient;return p?.isInitialized()&&await p.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:`Successfully authenticated and reloaded tools for '${n}'`}}catch(f){return{type:"message",messageType:"error",content:`Failed to authenticate with MCP server '${n}': ${_t(f)}`}}finally{gt.removeListener(ic.OauthDisplayMessage,c)}},completion:async(e,t)=>{let r=e.services.agentContext?.config;if(!r)return[];let i=r.getMcpClientManager()?.getMcpServers()||{};return Object.keys(i).filter(s=>s.startsWith(t))}},e1=async(e,t=!1,n=!1)=>{let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=r.toolRegistry;if(!s)return{type:"message",messageType:"error",content:"Could not retrieve tool registry."};let a=i.getMcpClientManager()?.getMcpServers()||{},c=Object.keys(a),f=i.getMcpClientManager()?.getBlockedMcpServers()||[],A=c.filter(z=>qH(z)===jH.CONNECTING),y=YH()===zH.IN_PROGRESS||A.length>0,p=s.getAllTools().filter(z=>z instanceof CU),b=i.getPromptRegistry().getAllPrompts().filter(z=>"serverName"in z&&c.includes(z.serverName)),w=i.getResourceRegistry().getAllResources().filter(z=>c.includes(z.serverName)),T={},_=new vR;for(let z of c)if(a[z].oauth?.enabled||xR.has(z)){let V=await _.getCredentials(z);V?V.token.expiresAt&&V.token.expiresAt<Date.now()?T[z]="expired":T[z]="authenticated":T[z]="unauthenticated"}else T[z]="not-configured";let k=wh.getInstance(),O={};for(let z of c)O[z]=await k.getDisplayState(z);let G={};for(let z of c){let P=i.getMcpClientManager()?.getLastError(z);P&&(G[z]=P)}let W={type:"mcp_status",servers:a,tools:p.map(z=>({serverName:z.serverName,name:z.name,description:z.description,schema:z.schema})),prompts:b.map(z=>({serverName:z.serverName,name:z.name,description:z.description})),resources:w.map(z=>({serverName:z.serverName,name:z.name,uri:z.uri,mimeType:z.mimeType,description:z.description})),authStatus:T,enablementState:O,errors:G,blockedServers:f.map(z=>({name:z.name,extensionName:z.extensionName})),discoveryInProgress:y,connectingServers:A,showDescriptions:!!t,showSchema:!!n};e.ui.addItem(W)},hne={name:"list",altNames:["ls","nodesc","nodescription"],description:"List configured MCP servers and tools",kind:"built-in",autoExecute:!0,action:e=>e1(e)},pTe={name:"desc",altNames:["description"],description:"List configured MCP servers and tools with descriptions",kind:"built-in",autoExecute:!0,action:e=>e1(e,!0)},gTe={name:"schema",description:"List configured MCP servers and tools with descriptions and schemas",kind:"built-in",autoExecute:!0,action:e=>e1(e,!0,!0)},yTe={name:"reload",altNames:["refresh"],description:"Reloads MCP servers",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext,n=t?.config;if(!n)return{type:"message",messageType:"error",content:"Config not loaded."};let r=n.getMcpClientManager();if(!r)return{type:"message",messageType:"error",content:"Could not retrieve mcp client manager."};e.ui.addItem({type:"info",text:"Reloading MCP servers..."}),await r.restart();let i=t.geminiClient;return i?.isInitialized()&&await i.setTools(),e.ui.reloadCommands(),hne.action(e,"")}};async function Ane(e,t,n){let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=t.trim().split(/\s+/),a=s.includes("--session"),c=s.filter(b=>b!=="--session")[0],f=n?"enable":"disable";if(!c)return{type:"message",messageType:"error",content:`Server name required. Usage: /mcp ${f} <server-name> [--session]`};let A=Ea(c),m=i.getMcpClientManager()?.getMcpServers()||{};if(!Object.keys(m).map(Ea).includes(A))return{type:"message",messageType:"error",content:`Server '${c}' not found. Use /mcp list to see available servers.`};let C=wh.getInstance();if(n){let b=Dy(),v=await wee(A,{adminMcpEnabled:b.merged.admin?.mcp?.enabled??!0,allowedList:b.merged.mcp?.allowed,excludedList:b.merged.mcp?.excluded});if(!v.allowed&&(v.blockType==="allowlist"||v.blockType==="excludelist"))return{type:"message",messageType:"error",content:v.reason??"Blocked by settings."};a?C.clearSessionDisable(A):await C.enable(A),v.blockType==="admin"&&e.ui.addItem({type:"warning",text:"MCP disabled by admin. Will load when enabled."},Date.now())}else a?C.disableForSession(A):await C.disable(A);let p=`MCP server '${A}' ${n?"enabled":"disabled"}${a?" for this session":""}.`,g=i.getMcpClientManager();return g&&(e.ui.addItem({type:"info",text:"Reloading MCP servers..."},Date.now()),await g.restart()),r.geminiClient?.isInitialized()&&await r.geminiClient.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:p}}async function mne(e,t,n){let i=e.services.agentContext?.config;if(!i)return[];let s=Object.keys(i.getMcpClientManager()?.getMcpServers()||{}),a=wh.getInstance(),c=[];for(let f of s)(await a.getDisplayState(f)).enabled===n&&f.startsWith(t)&&c.push(f);return c}var ETe={name:"enable",description:"Enable a disabled MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>Ane(e,t,!0),completion:(e,t)=>mne(e,t,!1)},CTe={name:"disable",description:"Disable an MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>Ane(e,t,!1),completion:(e,t)=>mne(e,t,!0)},pne={name:"mcp",description:"Manage configured Model Context Protocol (MCP) servers",kind:"built-in",autoExecute:!1,subCommands:[hne,pTe,gTe,mTe,yTe,ETe,CTe],action:async e=>e1(e)};var gne={name:"memory",description:"Commands for interacting with memory",kind:"built-in",autoExecute:!1,subCommands:[{name:"show",description:"Show the current memory contents",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=n3(t);e.ui.addItem({type:"info",text:n.content},Date.now())}},{name:"add",description:"Add content to the memory",kind:"built-in",autoExecute:!1,action:(e,t)=>{let n=r3(t);return n.type==="message"||e.ui.addItem({type:"info",text:`Attempting to save to memory: "${t.trim()}"`},Date.now()),n}},{name:"reload",altNames:["refresh"],description:"Reload the memory from the source",kind:"built-in",autoExecute:!0,action:async e=>{e.ui.addItem({type:"info",text:"Reloading memory from source files..."},Date.now());try{let t=e.services.agentContext?.config;if(t){let n=await i3(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}catch(t){e.ui.addItem({type:"error",text:`Error reloading memory: ${t.message}`},Date.now())}}},{name:"list",description:"Lists the paths of the GEMINI.md files in use",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=o3(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}]};var STe={name:"set",description:"Set the model to use. Usage: /model set <model-name> [--persist]",kind:"built-in",autoExecute:!1,action:async(e,t)=>{let n=t.trim().split(/\s+/).filter(Boolean);if(n.length===0){e.ui.addItem({type:"error",text:"Usage: /model set <model-name> [--persist]"});return}let r=n[0],i=n.includes("--persist");if(e.services.agentContext?.config){e.services.agentContext.config.setModel(r,!i);let s=new FU(r);XU(e.services.agentContext.config,s),e.ui.addItem({type:"info",text:`Model set to ${r}${i?" (persisted)":""}`})}}},yne={name:"manage",description:"Opens a dialog to configure the model",kind:"built-in",autoExecute:!0,action:async e=>(e.services.agentContext?.config&&await e.services.agentContext.config.refreshUserQuota(),{type:"dialog",dialog:"model"})},Ene={name:"model",description:"Manage model configuration",kind:"built-in",autoExecute:!1,subCommands:[yne,STe],action:async(e,t)=>yne.action(e,t)};var eo=Ce(ut(),1);var it=Ce(It(),1);var LO=6,UO=20,t1=25,Jm=5,Cne=10,uI=e=>!e||!e.reactionGroups?0:e.reactionGroups.reduce((t,n)=>t+n.users.totalCount,0),bTe=(e,t)=>t?.toLowerCase()==="duplicate"?"magenta":e==="OPEN"?"green":"red",Sne=({config:e,onExit:t,initialLimit:n=50})=>{let r=Ei(),[i,s]=(0,eo.useState)({status:"loading",issues:[],currentIndex:0,analysisCache:new Map,analyzingIds:new Set,message:"Fetching issues..."}),[a,c]=(0,eo.useState)("target"),[f,A]=(0,eo.useState)(0),[m,y]=(0,eo.useState)(!1),[C,p]=(0,eo.useState)(0),[g,b]=(0,eo.useState)(0),[v,w]=(0,eo.useState)(""),[T,_]=(0,eo.useState)([]),[k,O]=(0,eo.useState)(!1),[G,W]=(0,eo.useState)(0);(0,eo.useEffect)(()=>{f<G?W(f):f>=G+Jm&&W(f-Jm+1)},[f,G]);let z=async Ne=>{try{let{stdout:te}=await Xo("gh",["issue","view",String(Ne),"--json","number,title,body,state,stateReason,labels,url,comments,author,reactionGroups"]);return JSON.parse(te)}catch(te){return Ee.error(`Failed to fetch details for candidate #${Ne}`,te),null}},P=(0,eo.useCallback)(async Ne=>{let te=Ne.comments.find(Re=>Re.body.includes("Found possible duplicate issues:"));if(!te)return null;let _e=te.body.split(`
732
+ Use /mcp auth <server-name> to authenticate.`}}let a=s[n];if(!a)return{type:"message",messageType:"error",content:`MCP server '${n}' not found.`};let c=f=>{e.ui.addItem({type:"info",text:f})};gt.on(ic.OauthDisplayMessage,c);try{e.ui.addItem({type:"info",text:`Starting OAuth authentication for MCP server '${n}'...`});let{MCPOAuthProvider:f}=await import("./dist-MMPCC5OA.js"),A=a.oauth;A||(A={enabled:!1});let m=a.httpUrl||a.url;await new f(new vR).authenticate(n,A,m),e.ui.addItem({type:"info",text:`\u2705 Successfully authenticated with MCP server '${n}'!`});let C=i.getMcpClientManager();C&&(e.ui.addItem({type:"info",text:`Restarting MCP server '${n}'...`}),await C.restartServer(n));let p=e.services.agentContext?.geminiClient;return p?.isInitialized()&&await p.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:`Successfully authenticated and reloaded tools for '${n}'`}}catch(f){return{type:"message",messageType:"error",content:`Failed to authenticate with MCP server '${n}': ${_t(f)}`}}finally{gt.removeListener(ic.OauthDisplayMessage,c)}},completion:async(e,t)=>{let r=e.services.agentContext?.config;if(!r)return[];let i=r.getMcpClientManager()?.getMcpServers()||{};return Object.keys(i).filter(s=>s.startsWith(t))}},e1=async(e,t=!1,n=!1)=>{let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=r.toolRegistry;if(!s)return{type:"message",messageType:"error",content:"Could not retrieve tool registry."};let a=i.getMcpClientManager()?.getMcpServers()||{},c=Object.keys(a),f=i.getMcpClientManager()?.getBlockedMcpServers()||[],A=c.filter(z=>qH(z)===jH.CONNECTING),y=YH()===zH.IN_PROGRESS||A.length>0,p=s.getAllTools().filter(z=>z instanceof CU),b=i.getPromptRegistry().getAllPrompts().filter(z=>"serverName"in z&&c.includes(z.serverName)),w=i.getResourceRegistry().getAllResources().filter(z=>c.includes(z.serverName)),T={},_=new vR;for(let z of c)if(a[z].oauth?.enabled||xR.has(z)){let V=await _.getCredentials(z);V?V.token.expiresAt&&V.token.expiresAt<Date.now()?T[z]="expired":T[z]="authenticated":T[z]="unauthenticated"}else T[z]="not-configured";let k=wh.getInstance(),O={};for(let z of c)O[z]=await k.getDisplayState(z);let G={};for(let z of c){let P=i.getMcpClientManager()?.getLastError(z);P&&(G[z]=P)}let W={type:"mcp_status",servers:a,tools:p.map(z=>({serverName:z.serverName,name:z.name,description:z.description,schema:z.schema})),prompts:b.map(z=>({serverName:z.serverName,name:z.name,description:z.description})),resources:w.map(z=>({serverName:z.serverName,name:z.name,uri:z.uri,mimeType:z.mimeType,description:z.description})),authStatus:T,enablementState:O,errors:G,blockedServers:f.map(z=>({name:z.name,extensionName:z.extensionName})),discoveryInProgress:y,connectingServers:A,showDescriptions:!!t,showSchema:!!n};e.ui.addItem(W)},hne={name:"list",altNames:["ls","nodesc","nodescription"],description:"List configured MCP servers and tools",kind:"built-in",autoExecute:!0,action:e=>e1(e)},pTe={name:"desc",altNames:["description"],description:"List configured MCP servers and tools with descriptions",kind:"built-in",autoExecute:!0,action:e=>e1(e,!0)},gTe={name:"schema",description:"List configured MCP servers and tools with descriptions and schemas",kind:"built-in",autoExecute:!0,action:e=>e1(e,!0,!0)},yTe={name:"reload",altNames:["refresh"],description:"Reloads MCP servers",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext,n=t?.config;if(!n)return{type:"message",messageType:"error",content:"Config not loaded."};let r=n.getMcpClientManager();if(!r)return{type:"message",messageType:"error",content:"Could not retrieve mcp client manager."};e.ui.addItem({type:"info",text:"Reloading MCP servers..."}),await r.restart();let i=t.geminiClient;return i?.isInitialized()&&await i.setTools(),e.ui.reloadCommands(),hne.action(e,"")}};async function Ane(e,t,n){let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=t.trim().split(/\s+/),a=s.includes("--session"),c=s.filter(b=>b!=="--session")[0],f=n?"enable":"disable";if(!c)return{type:"message",messageType:"error",content:`Server name required. Usage: /mcp ${f} <server-name> [--session]`};let A=Ea(c),m=i.getMcpClientManager()?.getMcpServers()||{};if(!Object.keys(m).map(Ea).includes(A))return{type:"message",messageType:"error",content:`Server '${c}' not found. Use /mcp list to see available servers.`};let C=wh.getInstance();if(n){let b=Dy(),v=await wee(A,{adminMcpEnabled:b.merged.admin?.mcp?.enabled??!0,allowedList:b.merged.mcp?.allowed,excludedList:b.merged.mcp?.excluded});if(!v.allowed&&(v.blockType==="allowlist"||v.blockType==="excludelist"))return{type:"message",messageType:"error",content:v.reason??"Blocked by settings."};a?C.clearSessionDisable(A):await C.enable(A),v.blockType==="admin"&&e.ui.addItem({type:"warning",text:"MCP disabled by admin. Will load when enabled."},Date.now())}else a?C.disableForSession(A):await C.disable(A);let p=`MCP server '${A}' ${n?"enabled":"disabled"}${a?" for this session":""}.`,g=i.getMcpClientManager();return g&&(e.ui.addItem({type:"info",text:"Reloading MCP servers..."},Date.now()),await g.restart()),r.geminiClient?.isInitialized()&&await r.geminiClient.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:p}}async function mne(e,t,n){let i=e.services.agentContext?.config;if(!i)return[];let s=Object.keys(i.getMcpClientManager()?.getMcpServers()||{}),a=wh.getInstance(),c=[];for(let f of s)(await a.getDisplayState(f)).enabled===n&&f.startsWith(t)&&c.push(f);return c}var ETe={name:"enable",description:"Enable a disabled MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>Ane(e,t,!0),completion:(e,t)=>mne(e,t,!1)},CTe={name:"disable",description:"Disable an MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>Ane(e,t,!1),completion:(e,t)=>mne(e,t,!0)},pne={name:"mcp",description:"Manage configured Model Context Protocol (MCP) servers",kind:"built-in",autoExecute:!1,subCommands:[hne,pTe,gTe,mTe,yTe,ETe,CTe],action:async e=>e1(e)};var gne={name:"memory",description:"Commands for interacting with memory",kind:"built-in",autoExecute:!1,subCommands:[{name:"show",description:"Show the current memory contents",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=n3(t);e.ui.addItem({type:"info",text:n.content},Date.now())}},{name:"add",description:"Add content to the memory",kind:"built-in",autoExecute:!1,action:(e,t)=>{let n=r3(t);return n.type==="message"||e.ui.addItem({type:"info",text:`Attempting to save to memory: "${t.trim()}"`},Date.now()),n}},{name:"reload",altNames:["refresh"],description:"Reload the memory from the source",kind:"built-in",autoExecute:!0,action:async e=>{e.ui.addItem({type:"info",text:"Reloading memory from source files..."},Date.now());try{let t=e.services.agentContext?.config;if(t){let n=await i3(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}catch(t){e.ui.addItem({type:"error",text:`Error reloading memory: ${t.message}`},Date.now())}}},{name:"list",description:"Lists the paths of the GEMINI.md files in use",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=o3(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}]};var STe={name:"set",description:"Set the model to use. Usage: /model set <model-name> [--persist]",kind:"built-in",autoExecute:!1,action:async(e,t)=>{let n=t.trim().split(/\s+/).filter(Boolean);if(n.length===0){e.ui.addItem({type:"error",text:"Usage: /model set <model-name> [--persist]"});return}let r=n[0],i=n.includes("--persist");if(e.services.agentContext?.config){e.services.agentContext.config.setModel(r,!i);let s=new FU(r);XU(e.services.agentContext.config,s),e.ui.addItem({type:"info",text:`Model set to ${r}${i?" (persisted)":""}`})}}},yne={name:"manage",description:"Opens a dialog to configure the model",kind:"built-in",autoExecute:!0,action:async e=>(e.services.agentContext?.config&&await e.services.agentContext.config.refreshUserQuota(),{type:"dialog",dialog:"model"})},Ene={name:"model",description:"Manage model configuration",kind:"built-in",autoExecute:!1,subCommands:[yne,STe],action:async(e,t)=>yne.action(e,t)};var eo=Ce(ut(),1);var it=Ce(It(),1);var LO=6,UO=20,t1=25,Jm=5,Cne=10,uI=e=>!e||!e.reactionGroups?0:e.reactionGroups.reduce((t,n)=>t+n.users.totalCount,0),bTe=(e,t)=>t?.toLowerCase()==="duplicate"?"magenta":e==="OPEN"?"green":"red",Sne=({config:e,onExit:t,initialLimit:n=50})=>{let r=Ei(),[i,s]=(0,eo.useState)({status:"loading",issues:[],currentIndex:0,analysisCache:new Map,analyzingIds:new Set,message:"Fetching issues..."}),[a,c]=(0,eo.useState)("target"),[f,A]=(0,eo.useState)(0),[m,y]=(0,eo.useState)(!1),[C,p]=(0,eo.useState)(0),[g,b]=(0,eo.useState)(0),[v,w]=(0,eo.useState)(""),[T,_]=(0,eo.useState)([]),[k,O]=(0,eo.useState)(!1),[G,W]=(0,eo.useState)(0);(0,eo.useEffect)(()=>{f<G?W(f):f>=G+Jm&&W(f-Jm+1)},[f,G]);let z=async Ne=>{try{let{stdout:te}=await Xo("gh",["issue","view",String(Ne),"--json","number,title,body,state,stateReason,labels,url,comments,author,reactionGroups"]);return JSON.parse(te)}catch(te){return Ee.error(`Failed to fetch details for candidate #${Ne}`,te),null}},P=(0,eo.useCallback)(async Ne=>{let te=Ne.comments.find(Re=>Re.body.includes("Found possible duplicate issues:"));if(!te)return null;let _e=te.body.split(`
733
733
  `),Oe=[];for(let Re of _e){let bt=Re.match(/#(\d+)/);if(bt){let kt=parseInt(bt[1],10);kt!==Ne.number&&Oe.push(kt)}}if(Oe.length===0)return null;let nt=[];for(let Re of Oe){let bt=await z(Re);bt&&nt.push(bt)}let St=e.getBaseLlmClient(),j=`
734
734
  I am triaging a GitHub issue labeled as 'possible-duplicate'. I need to decide if it should be marked as a duplicate of another issue, or if one of the other issues should be marked as a duplicate of this one.
735
735
 
@@ -1,5 +1,5 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import{$d as zU,$f as Tre,$g as ev,$l as KH,Ae as JU,Af as gR,B as HD,Bb as vU,Cl as OH,Eb as zD,El as SR,Fi as TH,Fk as OA,Gk as _H,Gl as LH,H as CU,Hb as uR,Im as n3,J as SU,Jb as xU,Jh as xH,Kb as dR,Lb as BU,Lc as OU,Mb as wU,Me as XU,Nb as TU,Ne as $U,P as Jo,Pd as HU,Pl as UH,Qc as AR,Qj as kA,Ql as tv,Rc as Ng,Rh as BH,Rl as HH,Sc as LU,Se as ZU,Sg as fH,Tc as UU,Td as KD,Tl as GH,Ul as PH,Vh as wH,Vj as QH,Wb as qD,Wg as hH,X as Bre,Xd as GU,Xf as sH,Xl as jH,Y as bU,Yf as aH,Yg as Wi,Yi as yR,Yl as zH,Z as _g,Zd as PU,Ze as eH,Zf as JD,Zg as ZD,Zl as qH,_ as PD,_d as jU,_f as lH,_g as AH,_j as ER,_l as YH,a as vre,ag as la,ah as mH,al as FH,am as VH,bc as fR,bg as XD,bh as pH,cc as RU,cf as Mg,cg as Rre,ch as gH,cn as r3,dc as QU,dg as Qre,dh as yH,dl as NH,dm as Lg,ec as _U,eh as I0,fc as FU,fd as S0,fh as D0,fm as WH,gc as NU,gh as EH,hc as MU,hh as CH,hi as ca,hm as bR,id as YD,ie as qU,ig as cH,ih as SH,im as JH,je as VD,jh as bH,jm as XH,kh as kg,ki as Mf,kl as CR,lg as $D,lh as IH,li as Og,mb as jD,mh as DH,nb as cR,nc as hR,ne as YU,nf as wre,oe as mR,of as tH,ol as MH,om as $H,pb as DU,pe as KU,pf as nH,pm as nv,q as pU,qe as pR,ql as kH,qm as ZH,re as VU,rf as al,rg as uH,rj as MA,s as gU,se as WU,sf as rH,sg as dH,t as UD,tc as kU,tf as iH,uh as vH,um as e3,vh as rc,vm as t3,x as yU,xe as b0,y as EU,yf as oH,z as lR,ze as WD}from"./chunk-LDCK4LC4.js";import{$ as _i,E as oR,Fd as C0,Na as AU,Qc as mU,Qd as IU,Sd as Fg,Ud as gt,Z as Nf,a as vt,b as Ee,ba as sR,ca as uU,ea as aR,fa as MD,ia as dU,ja as kD,je as RH,la as xre,lc as OD,mc as LD,na as fr,pa as fU,qa as hU,xd as GD,zd as _t}from"./chunk-ALYGAQ7G.js";import{a as $n,c as Ae,d as Dre,e as Ce}from"./chunk-YUXORC52.js";var A3=Ae(Vt=>{"use strict";var vR=Symbol.for("react.transitional.element"),_re=Symbol.for("react.portal"),Fre=Symbol.for("react.fragment"),Nre=Symbol.for("react.strict_mode"),Mre=Symbol.for("react.profiler"),kre=Symbol.for("react.consumer"),Ore=Symbol.for("react.context"),Lre=Symbol.for("react.forward_ref"),Ure=Symbol.for("react.suspense"),Hre=Symbol.for("react.memo"),l3=Symbol.for("react.lazy"),Gre=Symbol.for("react.activity"),i3=Symbol.iterator;function Pre(e){return e===null||typeof e!="object"?null:(e=i3&&e[i3]||e["@@iterator"],typeof e=="function"?e:null)}var c3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u3=Object.assign,d3={};function Hg(e,t,n){this.props=e,this.context=t,this.refs=d3,this.updater=n||c3}Hg.prototype.isReactComponent={};Hg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Hg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f3(){}f3.prototype=Hg.prototype;function xR(e,t,n){this.props=e,this.context=t,this.refs=d3,this.updater=n||c3}var BR=xR.prototype=new f3;BR.constructor=xR;u3(BR,Hg.prototype);BR.isPureReactComponent=!0;var o3=Array.isArray;function DR(){}var wr={H:null,A:null,T:null,S:null},h3=Object.prototype.hasOwnProperty;function wR(e,t,n){var r=n.ref;return{$$typeof:vR,type:e,key:t,ref:r!==void 0?r:null,props:n}}function jre(e,t){return wR(e.type,t,e.props)}function TR(e){return typeof e=="object"&&e!==null&&e.$$typeof===vR}function zre(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var s3=/\/+/g;function IR(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zre(""+e.key):t.toString(36)}function qre(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(DR,DR):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ug(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vR:case _re:a=!0;break;case l3:return a=e._init,Ug(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+IR(e,0):r,o3(i)?(n="",a!=null&&(n=a.replace(s3,"$&/")+"/"),Ug(i,t,n,"",function(A){return A})):i!=null&&(TR(i)&&(i=jre(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(s3,"$&/")+"/")+a)),t.push(i)),1;a=0;var c=r===""?".":r+":";if(o3(e))for(var f=0;f<e.length;f++)r=e[f],s=c+IR(r,f),a+=Ug(r,t,n,s,i);else if(f=Pre(e),typeof f=="function")for(e=f.call(e),f=0;!(r=e.next()).done;)r=r.value,s=c+IR(r,f++),a+=Ug(r,t,n,s,i);else if(s==="object"){if(typeof e.then=="function")return Ug(qre(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function rv(e,t,n){if(e==null)return e;var r=[],i=0;return Ug(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Yre(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var a3=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kre={map:rv,forEach:function(e,t,n){rv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rv(e,function(){t++}),t},toArray:function(e){return rv(e,function(t){return t})||[]},only:function(e){if(!TR(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vt.Activity=Gre;Vt.Children=Kre;Vt.Component=Hg;Vt.Fragment=Fre;Vt.Profiler=Mre;Vt.PureComponent=xR;Vt.StrictMode=Nre;Vt.Suspense=Ure;Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wr;Vt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return wr.H.useMemoCache(e)}};Vt.cache=function(e){return function(){return e.apply(null,arguments)}};Vt.cacheSignal=function(){return null};Vt.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=u3({},e.props),i=e.key;if(t!=null)for(s in t.key!==void 0&&(i=""+t.key),t)!h3.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];r.children=a}return wR(e.type,i,r)};Vt.createContext=function(e){return e={$$typeof:Ore,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:kre,_context:e},e};Vt.createElement=function(e,t,n){var r,i={},s=null;if(t!=null)for(r in t.key!==void 0&&(s=""+t.key),t)h3.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return wR(e,s,i)};Vt.createRef=function(){return{current:null}};Vt.forwardRef=function(e){return{$$typeof:Lre,render:e}};Vt.isValidElement=TR;Vt.lazy=function(e){return{$$typeof:l3,_payload:{_status:-1,_result:e},_init:Yre}};Vt.memo=function(e,t){return{$$typeof:Hre,type:e,compare:t===void 0?null:t}};Vt.startTransition=function(e){var t=wr.T,n={};wr.T=n;try{var r=e(),i=wr.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(DR,a3)}catch(s){a3(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),wr.T=t}};Vt.unstable_useCacheRefresh=function(){return wr.H.useCacheRefresh()};Vt.use=function(e){return wr.H.use(e)};Vt.useActionState=function(e,t,n){return wr.H.useActionState(e,t,n)};Vt.useCallback=function(e,t){return wr.H.useCallback(e,t)};Vt.useContext=function(e){return wr.H.useContext(e)};Vt.useDebugValue=function(){};Vt.useDeferredValue=function(e,t){return wr.H.useDeferredValue(e,t)};Vt.useEffect=function(e,t){return wr.H.useEffect(e,t)};Vt.useEffectEvent=function(e){return wr.H.useEffectEvent(e)};Vt.useId=function(){return wr.H.useId()};Vt.useImperativeHandle=function(e,t,n){return wr.H.useImperativeHandle(e,t,n)};Vt.useInsertionEffect=function(e,t){return wr.H.useInsertionEffect(e,t)};Vt.useLayoutEffect=function(e,t){return wr.H.useLayoutEffect(e,t)};Vt.useMemo=function(e,t){return wr.H.useMemo(e,t)};Vt.useOptimistic=function(e,t){return wr.H.useOptimistic(e,t)};Vt.useReducer=function(e,t,n){return wr.H.useReducer(e,t,n)};Vt.useRef=function(e){return wr.H.useRef(e)};Vt.useState=function(e){return wr.H.useState(e)};Vt.useSyncExternalStore=function(e,t,n){return wr.H.useSyncExternalStore(e,t,n)};Vt.useTransition=function(){return wr.H.useTransition()};Vt.version="19.2.4"});var m3=Ae((Pt,iv)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(M,ae){Object.defineProperty(r.prototype,M,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ae[0],ae[1])}})}function t(M){return M===null||typeof M!="object"?null:(M=Ve&&M[Ve]||M["@@iterator"],typeof M=="function"?M:null)}function n(M,ae){M=(M=M.constructor)&&(M.displayName||M.name)||"ReactClass";var Le=M+"."+ae;Re[Le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ae,M),Re[Le]=!0)}function r(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function i(){}function s(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function a(){}function c(M){return""+M}function f(M){try{c(M);var ae=!1}catch{ae=!0}if(ae){ae=console;var Le=ae.error,Je=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Le.call(ae,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Je),c(M)}}function A(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===Gn?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case ft:return"Fragment";case te:return"Profiler";case Ne:return"StrictMode";case St:return"Suspense";case j:return"SuspenseList";case me:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case Me:return"Portal";case Oe:return M.displayName||"Context";case _e:return(M._context.displayName||"Context")+".Consumer";case nt:var ae=M.render;return M=M.displayName,M||(M=ae.displayName||ae.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case q:return ae=M.displayName||null,ae!==null?ae:A(M.type)||"Memo";case Y:ae=M._payload,M=M._init;try{return A(M(ae))}catch{}}return null}function m(M){if(M===ft)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===Y)return"<...>";try{var ae=A(M);return ae?"<"+ae+">":"<...>"}catch{return"<...>"}}function y(){var M=pt.A;return M===null?null:M.getOwner()}function C(){return Error("react-stack-top-frame")}function p(M){if(Ci.call(M,"key")){var ae=Object.getOwnPropertyDescriptor(M,"key").get;if(ae&&ae.isReactWarning)return!1}return M.key!==void 0}function g(M,ae){function Le(){Jn||(Jn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ae))}Le.isReactWarning=!0,Object.defineProperty(M,"key",{get:Le,configurable:!0})}function b(){var M=A(this.type);return eo[M]||(eo[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function v(M,ae,Le,Je,Z,se){var Se=Le.ref;return M={$$typeof:De,type:M,key:ae,props:Le,_owner:Je},(Se!==void 0?Se:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:b}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function w(M,ae){return ae=v(M.type,ae,M.props,M._owner,M._debugStack,M._debugTask),M._store&&(ae._store.validated=M._store.validated),ae}function T(M){_(M)?M._store&&(M._store.validated=1):typeof M=="object"&&M!==null&&M.$$typeof===Y&&(M._payload.status==="fulfilled"?_(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function _(M){return typeof M=="object"&&M!==null&&M.$$typeof===De}function k(M){var ae={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Le){return ae[Le]})}function O(M,ae){return typeof M=="object"&&M!==null&&M.key!=null?(f(M.key),k(""+M.key)):ae.toString(36)}function G(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(a,a):(M.status="pending",M.then(function(ae){M.status==="pending"&&(M.status="fulfilled",M.value=ae)},function(ae){M.status==="pending"&&(M.status="rejected",M.reason=ae)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function W(M,ae,Le,Je,Z){var se=typeof M;(se==="undefined"||se==="boolean")&&(M=null);var Se=!1;if(M===null)Se=!0;else switch(se){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(M.$$typeof){case De:case Me:Se=!0;break;case Y:return Se=M._init,W(Se(M._payload),ae,Le,Je,Z)}}if(Se){Se=M,Z=Z(Se);var Ze=Je===""?"."+O(Se,0):Je;return Fr(Z)?(Le="",Ze!=null&&(Le=Ze.replace(ki,"$&/")+"/"),W(Z,ae,Le,"",function(mr){return mr})):Z!=null&&(_(Z)&&(Z.key!=null&&(Se&&Se.key===Z.key||f(Z.key)),Le=w(Z,Le+(Z.key==null||Se&&Se.key===Z.key?"":(""+Z.key).replace(ki,"$&/")+"/")+Ze),Je!==""&&Se!=null&&_(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Le._store.validated=2),Z=Le),ae.push(Z)),1}if(Se=0,Ze=Je===""?".":Je+":",Fr(M))for(var Et=0;Et<M.length;Et++)Je=M[Et],se=Ze+O(Je,Et),Se+=W(Je,ae,Le,se,Z);else if(Et=t(M),typeof Et=="function")for(Et===M.entries&&(Nr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nr=!0),M=Et.call(M),Et=0;!(Je=M.next()).done;)Je=Je.value,se=Ze+O(Je,Et++),Se+=W(Je,ae,Le,se,Z);else if(se==="object"){if(typeof M.then=="function")return W(G(M),ae,Le,Je,Z);throw ae=String(M),Error("Objects are not valid as a React child (found: "+(ae==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":ae)+"). If you meant to render a collection of children, use an array instead.")}return Se}function z(M,ae,Le){if(M==null)return M;var Je=[],Z=0;return W(M,Je,"","",function(se){return ae.call(Le,se,Z++)}),Je}function P(M){if(M._status===-1){var ae=M._ioInfo;ae!=null&&(ae.start=ae.end=performance.now()),ae=M._result;var Le=ae();if(Le.then(function(Z){if(M._status===0||M._status===-1){M._status=1,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="fulfilled",Le.value=Z)}},function(Z){if(M._status===0||M._status===-1){M._status=2,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="rejected",Le.reason=Z)}}),ae=M._ioInfo,ae!=null){ae.value=Le;var Je=Le.displayName;typeof Je=="string"&&(ae.name=Je)}M._status===-1&&(M._status=0,M._result=Le)}if(M._status===1)return ae=M._result,ae===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+ import{$d as zU,$f as Tre,$g as ev,$l as KH,Ae as JU,Af as gR,B as HD,Bb as vU,Cl as OH,Eb as zD,El as SR,Fi as TH,Fk as OA,Gk as _H,Gl as LH,H as CU,Hb as uR,Im as n3,J as SU,Jb as xU,Jh as xH,Kb as dR,Lb as BU,Lc as OU,Mb as wU,Me as XU,Nb as TU,Ne as $U,P as Jo,Pd as HU,Pl as UH,Qc as AR,Qj as kA,Ql as tv,Rc as Ng,Rh as BH,Rl as HH,Sc as LU,Se as ZU,Sg as fH,Tc as UU,Td as KD,Tl as GH,Ul as PH,Vh as wH,Vj as QH,Wb as qD,Wg as hH,X as Bre,Xd as GU,Xf as sH,Xl as jH,Y as bU,Yf as aH,Yg as Wi,Yi as yR,Yl as zH,Z as _g,Zd as PU,Ze as eH,Zf as JD,Zg as ZD,Zl as qH,_ as PD,_d as jU,_f as lH,_g as AH,_j as ER,_l as YH,a as vre,ag as la,ah as mH,al as FH,am as VH,bc as fR,bg as XD,bh as pH,cc as RU,cf as Mg,cg as Rre,ch as gH,cn as r3,dc as QU,dg as Qre,dh as yH,dl as NH,dm as Lg,ec as _U,eh as I0,fc as FU,fd as S0,fh as D0,fm as WH,gc as NU,gh as EH,hc as MU,hh as CH,hi as ca,hm as bR,id as YD,ie as qU,ig as cH,ih as SH,im as JH,je as VD,jh as bH,jm as XH,kh as kg,ki as Mf,kl as CR,lg as $D,lh as IH,li as Og,mb as jD,mh as DH,nb as cR,nc as hR,ne as YU,nf as wre,oe as mR,of as tH,ol as MH,om as $H,pb as DU,pe as KU,pf as nH,pm as nv,q as pU,qe as pR,ql as kH,qm as ZH,re as VU,rf as al,rg as uH,rj as MA,s as gU,se as WU,sf as rH,sg as dH,t as UD,tc as kU,tf as iH,uh as vH,um as e3,vh as rc,vm as t3,x as yU,xe as b0,y as EU,yf as oH,z as lR,ze as WD}from"./chunk-CN5ZY54S.js";import{$ as _i,E as oR,Fd as C0,Na as AU,Qc as mU,Qd as IU,Sd as Fg,Ud as gt,Z as Nf,a as vt,b as Ee,ba as sR,ca as uU,ea as aR,fa as MD,ia as dU,ja as kD,je as RH,la as xre,lc as OD,mc as LD,na as fr,pa as fU,qa as hU,xd as GD,zd as _t}from"./chunk-ALYGAQ7G.js";import{a as $n,c as Ae,d as Dre,e as Ce}from"./chunk-YUXORC52.js";var A3=Ae(Vt=>{"use strict";var vR=Symbol.for("react.transitional.element"),_re=Symbol.for("react.portal"),Fre=Symbol.for("react.fragment"),Nre=Symbol.for("react.strict_mode"),Mre=Symbol.for("react.profiler"),kre=Symbol.for("react.consumer"),Ore=Symbol.for("react.context"),Lre=Symbol.for("react.forward_ref"),Ure=Symbol.for("react.suspense"),Hre=Symbol.for("react.memo"),l3=Symbol.for("react.lazy"),Gre=Symbol.for("react.activity"),i3=Symbol.iterator;function Pre(e){return e===null||typeof e!="object"?null:(e=i3&&e[i3]||e["@@iterator"],typeof e=="function"?e:null)}var c3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u3=Object.assign,d3={};function Hg(e,t,n){this.props=e,this.context=t,this.refs=d3,this.updater=n||c3}Hg.prototype.isReactComponent={};Hg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Hg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f3(){}f3.prototype=Hg.prototype;function xR(e,t,n){this.props=e,this.context=t,this.refs=d3,this.updater=n||c3}var BR=xR.prototype=new f3;BR.constructor=xR;u3(BR,Hg.prototype);BR.isPureReactComponent=!0;var o3=Array.isArray;function DR(){}var wr={H:null,A:null,T:null,S:null},h3=Object.prototype.hasOwnProperty;function wR(e,t,n){var r=n.ref;return{$$typeof:vR,type:e,key:t,ref:r!==void 0?r:null,props:n}}function jre(e,t){return wR(e.type,t,e.props)}function TR(e){return typeof e=="object"&&e!==null&&e.$$typeof===vR}function zre(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var s3=/\/+/g;function IR(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zre(""+e.key):t.toString(36)}function qre(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(DR,DR):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ug(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vR:case _re:a=!0;break;case l3:return a=e._init,Ug(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+IR(e,0):r,o3(i)?(n="",a!=null&&(n=a.replace(s3,"$&/")+"/"),Ug(i,t,n,"",function(A){return A})):i!=null&&(TR(i)&&(i=jre(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(s3,"$&/")+"/")+a)),t.push(i)),1;a=0;var c=r===""?".":r+":";if(o3(e))for(var f=0;f<e.length;f++)r=e[f],s=c+IR(r,f),a+=Ug(r,t,n,s,i);else if(f=Pre(e),typeof f=="function")for(e=f.call(e),f=0;!(r=e.next()).done;)r=r.value,s=c+IR(r,f++),a+=Ug(r,t,n,s,i);else if(s==="object"){if(typeof e.then=="function")return Ug(qre(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function rv(e,t,n){if(e==null)return e;var r=[],i=0;return Ug(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Yre(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var a3=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kre={map:rv,forEach:function(e,t,n){rv(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return rv(e,function(){t++}),t},toArray:function(e){return rv(e,function(t){return t})||[]},only:function(e){if(!TR(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vt.Activity=Gre;Vt.Children=Kre;Vt.Component=Hg;Vt.Fragment=Fre;Vt.Profiler=Mre;Vt.PureComponent=xR;Vt.StrictMode=Nre;Vt.Suspense=Ure;Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=wr;Vt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return wr.H.useMemoCache(e)}};Vt.cache=function(e){return function(){return e.apply(null,arguments)}};Vt.cacheSignal=function(){return null};Vt.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=u3({},e.props),i=e.key;if(t!=null)for(s in t.key!==void 0&&(i=""+t.key),t)!h3.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];r.children=a}return wR(e.type,i,r)};Vt.createContext=function(e){return e={$$typeof:Ore,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:kre,_context:e},e};Vt.createElement=function(e,t,n){var r,i={},s=null;if(t!=null)for(r in t.key!==void 0&&(s=""+t.key),t)h3.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var c=Array(a),f=0;f<a;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return wR(e,s,i)};Vt.createRef=function(){return{current:null}};Vt.forwardRef=function(e){return{$$typeof:Lre,render:e}};Vt.isValidElement=TR;Vt.lazy=function(e){return{$$typeof:l3,_payload:{_status:-1,_result:e},_init:Yre}};Vt.memo=function(e,t){return{$$typeof:Hre,type:e,compare:t===void 0?null:t}};Vt.startTransition=function(e){var t=wr.T,n={};wr.T=n;try{var r=e(),i=wr.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(DR,a3)}catch(s){a3(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),wr.T=t}};Vt.unstable_useCacheRefresh=function(){return wr.H.useCacheRefresh()};Vt.use=function(e){return wr.H.use(e)};Vt.useActionState=function(e,t,n){return wr.H.useActionState(e,t,n)};Vt.useCallback=function(e,t){return wr.H.useCallback(e,t)};Vt.useContext=function(e){return wr.H.useContext(e)};Vt.useDebugValue=function(){};Vt.useDeferredValue=function(e,t){return wr.H.useDeferredValue(e,t)};Vt.useEffect=function(e,t){return wr.H.useEffect(e,t)};Vt.useEffectEvent=function(e){return wr.H.useEffectEvent(e)};Vt.useId=function(){return wr.H.useId()};Vt.useImperativeHandle=function(e,t,n){return wr.H.useImperativeHandle(e,t,n)};Vt.useInsertionEffect=function(e,t){return wr.H.useInsertionEffect(e,t)};Vt.useLayoutEffect=function(e,t){return wr.H.useLayoutEffect(e,t)};Vt.useMemo=function(e,t){return wr.H.useMemo(e,t)};Vt.useOptimistic=function(e,t){return wr.H.useOptimistic(e,t)};Vt.useReducer=function(e,t,n){return wr.H.useReducer(e,t,n)};Vt.useRef=function(e){return wr.H.useRef(e)};Vt.useState=function(e){return wr.H.useState(e)};Vt.useSyncExternalStore=function(e,t,n){return wr.H.useSyncExternalStore(e,t,n)};Vt.useTransition=function(){return wr.H.useTransition()};Vt.version="19.2.4"});var m3=Ae((Pt,iv)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(M,ae){Object.defineProperty(r.prototype,M,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ae[0],ae[1])}})}function t(M){return M===null||typeof M!="object"?null:(M=Ve&&M[Ve]||M["@@iterator"],typeof M=="function"?M:null)}function n(M,ae){M=(M=M.constructor)&&(M.displayName||M.name)||"ReactClass";var Le=M+"."+ae;Re[Le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ae,M),Re[Le]=!0)}function r(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function i(){}function s(M,ae,Le){this.props=M,this.context=ae,this.refs=yt,this.updater=Le||bt}function a(){}function c(M){return""+M}function f(M){try{c(M);var ae=!1}catch{ae=!0}if(ae){ae=console;var Le=ae.error,Je=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return Le.call(ae,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Je),c(M)}}function A(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===Gn?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case ft:return"Fragment";case te:return"Profiler";case Ne:return"StrictMode";case St:return"Suspense";case j:return"SuspenseList";case me:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case Me:return"Portal";case Oe:return M.displayName||"Context";case _e:return(M._context.displayName||"Context")+".Consumer";case nt:var ae=M.render;return M=M.displayName,M||(M=ae.displayName||ae.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case q:return ae=M.displayName||null,ae!==null?ae:A(M.type)||"Memo";case Y:ae=M._payload,M=M._init;try{return A(M(ae))}catch{}}return null}function m(M){if(M===ft)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===Y)return"<...>";try{var ae=A(M);return ae?"<"+ae+">":"<...>"}catch{return"<...>"}}function y(){var M=pt.A;return M===null?null:M.getOwner()}function C(){return Error("react-stack-top-frame")}function p(M){if(Ci.call(M,"key")){var ae=Object.getOwnPropertyDescriptor(M,"key").get;if(ae&&ae.isReactWarning)return!1}return M.key!==void 0}function g(M,ae){function Le(){Jn||(Jn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ae))}Le.isReactWarning=!0,Object.defineProperty(M,"key",{get:Le,configurable:!0})}function b(){var M=A(this.type);return eo[M]||(eo[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function v(M,ae,Le,Je,Z,se){var Se=Le.ref;return M={$$typeof:De,type:M,key:ae,props:Le,_owner:Je},(Se!==void 0?Se:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:b}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function w(M,ae){return ae=v(M.type,ae,M.props,M._owner,M._debugStack,M._debugTask),M._store&&(ae._store.validated=M._store.validated),ae}function T(M){_(M)?M._store&&(M._store.validated=1):typeof M=="object"&&M!==null&&M.$$typeof===Y&&(M._payload.status==="fulfilled"?_(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function _(M){return typeof M=="object"&&M!==null&&M.$$typeof===De}function k(M){var ae={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Le){return ae[Le]})}function O(M,ae){return typeof M=="object"&&M!==null&&M.key!=null?(f(M.key),k(""+M.key)):ae.toString(36)}function G(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(a,a):(M.status="pending",M.then(function(ae){M.status==="pending"&&(M.status="fulfilled",M.value=ae)},function(ae){M.status==="pending"&&(M.status="rejected",M.reason=ae)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function W(M,ae,Le,Je,Z){var se=typeof M;(se==="undefined"||se==="boolean")&&(M=null);var Se=!1;if(M===null)Se=!0;else switch(se){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(M.$$typeof){case De:case Me:Se=!0;break;case Y:return Se=M._init,W(Se(M._payload),ae,Le,Je,Z)}}if(Se){Se=M,Z=Z(Se);var Ze=Je===""?"."+O(Se,0):Je;return Fr(Z)?(Le="",Ze!=null&&(Le=Ze.replace(ki,"$&/")+"/"),W(Z,ae,Le,"",function(mr){return mr})):Z!=null&&(_(Z)&&(Z.key!=null&&(Se&&Se.key===Z.key||f(Z.key)),Le=w(Z,Le+(Z.key==null||Se&&Se.key===Z.key?"":(""+Z.key).replace(ki,"$&/")+"/")+Ze),Je!==""&&Se!=null&&_(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Le._store.validated=2),Z=Le),ae.push(Z)),1}if(Se=0,Ze=Je===""?".":Je+":",Fr(M))for(var Et=0;Et<M.length;Et++)Je=M[Et],se=Ze+O(Je,Et),Se+=W(Je,ae,Le,se,Z);else if(Et=t(M),typeof Et=="function")for(Et===M.entries&&(Nr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nr=!0),M=Et.call(M),Et=0;!(Je=M.next()).done;)Je=Je.value,se=Ze+O(Je,Et++),Se+=W(Je,ae,Le,se,Z);else if(se==="object"){if(typeof M.then=="function")return W(G(M),ae,Le,Je,Z);throw ae=String(M),Error("Objects are not valid as a React child (found: "+(ae==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":ae)+"). If you meant to render a collection of children, use an array instead.")}return Se}function z(M,ae,Le){if(M==null)return M;var Je=[],Z=0;return W(M,Je,"","",function(se){return ae.call(Le,se,Z++)}),Je}function P(M){if(M._status===-1){var ae=M._ioInfo;ae!=null&&(ae.start=ae.end=performance.now()),ae=M._result;var Le=ae();if(Le.then(function(Z){if(M._status===0||M._status===-1){M._status=1,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="fulfilled",Le.value=Z)}},function(Z){if(M._status===0||M._status===-1){M._status=2,M._result=Z;var se=M._ioInfo;se!=null&&(se.end=performance.now()),Le.status===void 0&&(Le.status="rejected",Le.reason=Z)}}),ae=M._ioInfo,ae!=null){ae.value=Le;var Je=Le.displayName;typeof Je=="string"&&(ae.name=Je)}M._status===-1&&(M._status=0,M._result=Le)}if(M._status===1)return ae=M._result,ae===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
3
 
4
4
  Your code should look like:
5
5
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -729,7 +729,7 @@ ${e.map(i=>{let s=YT.basename(i.path),a=(t.get(s)||0)>1,c=YT.basename(YT.dirname
729
729
  ${m.map(y=>` - ${y}`).join(`
730
730
  `)}
731
731
 
732
- Use /mcp auth <server-name> to authenticate.`}}let a=s[n];if(!a)return{type:"message",messageType:"error",content:`MCP server '${n}' not found.`};let c=f=>{e.ui.addItem({type:"info",text:f})};gt.on("oauth-display-message",c);try{e.ui.addItem({type:"info",text:`Starting OAuth authentication for MCP server '${n}'...`});let{MCPOAuthProvider:f}=await import("./core-WBV2NJVB.js"),A=a.oauth;A||(A={enabled:!1});let m=a.httpUrl||a.url;await new f(new ER).authenticate(n,A,m),e.ui.addItem({type:"info",text:`\u2705 Successfully authenticated with MCP server '${n}'!`});let C=i.getMcpClientManager();C&&(e.ui.addItem({type:"info",text:`Restarting MCP server '${n}'...`}),await C.restartServer(n));let p=e.services.agentContext?.geminiClient;return p?.isInitialized()&&await p.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:`Successfully authenticated and reloaded tools for '${n}'`}}catch(f){return{type:"message",messageType:"error",content:`Failed to authenticate with MCP server '${n}': ${_t(f)}`}}finally{gt.removeListener("oauth-display-message",c)}},completion:async(e,t)=>{let r=e.services.agentContext?.config;if(!r)return[];let i=r.getMcpClientManager()?.getMcpServers()||{};return Object.keys(i).filter(s=>s.startsWith(t))}},VT=async(e,t=!1,n=!1)=>{let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=r.toolRegistry;if(!s)return{type:"message",messageType:"error",content:"Could not retrieve tool registry."};let a=i.getMcpClientManager()?.getMcpServers()||{},c=Object.keys(a),f=i.getMcpClientManager()?.getBlockedMcpServers()||[],A=c.filter(z=>MH(z)==="connecting"),y=kH()==="in_progress"||A.length>0,p=s.getAllTools().filter(z=>z instanceof mU),b=i.getPromptRegistry().getAllPrompts().filter(z=>"serverName"in z&&c.includes(z.serverName)),w=i.getResourceRegistry().getAllResources().filter(z=>c.includes(z.serverName)),T={},_=new ER;for(let z of c)if(a[z].oauth?.enabled||CR.has(z)){let V=await _.getCredentials(z);V?V.token.expiresAt&&V.token.expiresAt<Date.now()?T[z]="expired":T[z]="authenticated":T[z]="unauthenticated"}else T[z]="not-configured";let k=Ih.getInstance(),O={};for(let z of c)O[z]=await k.getDisplayState(z);let G={};for(let z of c){let P=i.getMcpClientManager()?.getLastError(z);P&&(G[z]=P)}let W={type:"mcp_status",servers:a,tools:p.map(z=>({serverName:z.serverName,name:z.name,description:z.description,schema:z.schema})),prompts:b.map(z=>({serverName:z.serverName,name:z.name,description:z.description})),resources:w.map(z=>({serverName:z.serverName,name:z.name,uri:z.uri,mimeType:z.mimeType,description:z.description})),authStatus:T,enablementState:O,errors:G,blockedServers:f.map(z=>({name:z.name,extensionName:z.extensionName})),discoveryInProgress:y,connectingServers:A,showDescriptions:!!t,showSchema:!!n};e.ui.addItem(W)},rne={name:"list",altNames:["ls","nodesc","nodescription"],description:"List configured MCP servers and tools",kind:"built-in",autoExecute:!0,action:e=>VT(e)},lTe={name:"desc",altNames:["description"],description:"List configured MCP servers and tools with descriptions",kind:"built-in",autoExecute:!0,action:e=>VT(e,!0)},cTe={name:"schema",description:"List configured MCP servers and tools with descriptions and schemas",kind:"built-in",autoExecute:!0,action:e=>VT(e,!0,!0)},uTe={name:"reload",altNames:["refresh"],description:"Reloads MCP servers",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext,n=t?.config;if(!n)return{type:"message",messageType:"error",content:"Config not loaded."};let r=n.getMcpClientManager();if(!r)return{type:"message",messageType:"error",content:"Could not retrieve mcp client manager."};e.ui.addItem({type:"info",text:"Reloading MCP servers..."}),await r.restart();let i=t.geminiClient;return i?.isInitialized()&&await i.setTools(),e.ui.reloadCommands(),rne.action(e,"")}};async function ine(e,t,n){let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=t.trim().split(/\s+/),a=s.includes("--session"),c=s.filter(b=>b!=="--session")[0],f=n?"enable":"disable";if(!c)return{type:"message",messageType:"error",content:`Server name required. Usage: /mcp ${f} <server-name> [--session]`};let A=ya(c),m=i.getMcpClientManager()?.getMcpServers()||{};if(!Object.keys(m).map(ya).includes(A))return{type:"message",messageType:"error",content:`Server '${c}' not found. Use /mcp list to see available servers.`};let C=Ih.getInstance();if(n){let b=Cy(),v=await yee(A,{adminMcpEnabled:b.merged.admin?.mcp?.enabled??!0,allowedList:b.merged.mcp?.allowed,excludedList:b.merged.mcp?.excluded});if(!v.allowed&&(v.blockType==="allowlist"||v.blockType==="excludelist"))return{type:"message",messageType:"error",content:v.reason??"Blocked by settings."};a?C.clearSessionDisable(A):await C.enable(A),v.blockType==="admin"&&e.ui.addItem({type:"warning",text:"MCP disabled by admin. Will load when enabled."},Date.now())}else a?C.disableForSession(A):await C.disable(A);let p=`MCP server '${A}' ${n?"enabled":"disabled"}${a?" for this session":""}.`,g=i.getMcpClientManager();return g&&(e.ui.addItem({type:"info",text:"Reloading MCP servers..."},Date.now()),await g.restart()),r.geminiClient?.isInitialized()&&await r.geminiClient.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:p}}async function one(e,t,n){let i=e.services.agentContext?.config;if(!i)return[];let s=Object.keys(i.getMcpClientManager()?.getMcpServers()||{}),a=Ih.getInstance(),c=[];for(let f of s)(await a.getDisplayState(f)).enabled===n&&f.startsWith(t)&&c.push(f);return c}var dTe={name:"enable",description:"Enable a disabled MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>ine(e,t,!0),completion:(e,t)=>one(e,t,!1)},fTe={name:"disable",description:"Disable an MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>ine(e,t,!1),completion:(e,t)=>one(e,t,!0)},sne={name:"mcp",description:"Manage configured Model Context Protocol (MCP) servers",kind:"built-in",autoExecute:!1,subCommands:[rne,lTe,cTe,aTe,uTe,dTe,fTe],action:async e=>VT(e)};var ane={name:"memory",description:"Commands for interacting with memory",kind:"built-in",autoExecute:!1,subCommands:[{name:"show",description:"Show the current memory contents",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=qH(t);e.ui.addItem({type:"info",text:n.content},Date.now())}},{name:"add",description:"Add content to the memory",kind:"built-in",autoExecute:!1,action:(e,t)=>{let n=YH(t);return n.type==="message"||e.ui.addItem({type:"info",text:`Attempting to save to memory: "${t.trim()}"`},Date.now()),n}},{name:"reload",altNames:["refresh"],description:"Reload the memory from the source",kind:"built-in",autoExecute:!0,action:async e=>{e.ui.addItem({type:"info",text:"Reloading memory from source files..."},Date.now());try{let t=e.services.agentContext?.config;if(t){let n=await KH(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}catch(t){e.ui.addItem({type:"error",text:`Error reloading memory: ${t.message}`},Date.now())}}},{name:"list",description:"Lists the paths of the GEMINI.md files in use",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=VH(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}]};var hTe={name:"set",description:"Set the model to use. Usage: /model set <model-name> [--persist]",kind:"built-in",autoExecute:!1,action:async(e,t)=>{let n=t.trim().split(/\s+/).filter(Boolean);if(n.length===0){e.ui.addItem({type:"error",text:"Usage: /model set <model-name> [--persist]"});return}let r=n[0],i=n.includes("--persist");if(e.services.agentContext?.config){e.services.agentContext.config.setModel(r,!i);let s=new wU(r);YU(e.services.agentContext.config,s),e.ui.addItem({type:"info",text:`Model set to ${r}${i?" (persisted)":""}`})}}},lne={name:"manage",description:"Opens a dialog to configure the model",kind:"built-in",autoExecute:!0,action:async e=>(e.services.agentContext?.config&&await e.services.agentContext.config.refreshUserQuota(),{type:"dialog",dialog:"model"})},cne={name:"model",description:"Manage model configuration",kind:"built-in",autoExecute:!1,subCommands:[lne,hTe],action:async(e,t)=>lne.action(e,t)};var Zi=Ce(ut(),1);var it=Ce(It(),1);var FO=6,NO=20,WT=25,qm=5,une=10,sI=e=>!e||!e.reactionGroups?0:e.reactionGroups.reduce((t,n)=>t+n.users.totalCount,0),mTe=(e,t)=>t?.toLowerCase()==="duplicate"?"magenta":e==="OPEN"?"green":"red",dne=({config:e,onExit:t,initialLimit:n=50})=>{let r=yi(),[i,s]=(0,Zi.useState)({status:"loading",issues:[],currentIndex:0,analysisCache:new Map,analyzingIds:new Set,message:"Fetching issues..."}),[a,c]=(0,Zi.useState)("target"),[f,A]=(0,Zi.useState)(0),[m,y]=(0,Zi.useState)(!1),[C,p]=(0,Zi.useState)(0),[g,b]=(0,Zi.useState)(0),[v,w]=(0,Zi.useState)(""),[T,_]=(0,Zi.useState)([]),[k,O]=(0,Zi.useState)(!1),[G,W]=(0,Zi.useState)(0);(0,Zi.useEffect)(()=>{f<G?W(f):f>=G+qm&&W(f-qm+1)},[f,G]);let z=async Ne=>{try{let{stdout:te}=await Jo("gh",["issue","view",String(Ne),"--json","number,title,body,state,stateReason,labels,url,comments,author,reactionGroups"]);return JSON.parse(te)}catch(te){return Ee.error(`Failed to fetch details for candidate #${Ne}`,te),null}},P=(0,Zi.useCallback)(async Ne=>{let te=Ne.comments.find(Re=>Re.body.includes("Found possible duplicate issues:"));if(!te)return null;let _e=te.body.split(`
732
+ Use /mcp auth <server-name> to authenticate.`}}let a=s[n];if(!a)return{type:"message",messageType:"error",content:`MCP server '${n}' not found.`};let c=f=>{e.ui.addItem({type:"info",text:f})};gt.on("oauth-display-message",c);try{e.ui.addItem({type:"info",text:`Starting OAuth authentication for MCP server '${n}'...`});let{MCPOAuthProvider:f}=await import("./core-CQOMB6GX.js"),A=a.oauth;A||(A={enabled:!1});let m=a.httpUrl||a.url;await new f(new ER).authenticate(n,A,m),e.ui.addItem({type:"info",text:`\u2705 Successfully authenticated with MCP server '${n}'!`});let C=i.getMcpClientManager();C&&(e.ui.addItem({type:"info",text:`Restarting MCP server '${n}'...`}),await C.restartServer(n));let p=e.services.agentContext?.geminiClient;return p?.isInitialized()&&await p.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:`Successfully authenticated and reloaded tools for '${n}'`}}catch(f){return{type:"message",messageType:"error",content:`Failed to authenticate with MCP server '${n}': ${_t(f)}`}}finally{gt.removeListener("oauth-display-message",c)}},completion:async(e,t)=>{let r=e.services.agentContext?.config;if(!r)return[];let i=r.getMcpClientManager()?.getMcpServers()||{};return Object.keys(i).filter(s=>s.startsWith(t))}},VT=async(e,t=!1,n=!1)=>{let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=r.toolRegistry;if(!s)return{type:"message",messageType:"error",content:"Could not retrieve tool registry."};let a=i.getMcpClientManager()?.getMcpServers()||{},c=Object.keys(a),f=i.getMcpClientManager()?.getBlockedMcpServers()||[],A=c.filter(z=>MH(z)==="connecting"),y=kH()==="in_progress"||A.length>0,p=s.getAllTools().filter(z=>z instanceof mU),b=i.getPromptRegistry().getAllPrompts().filter(z=>"serverName"in z&&c.includes(z.serverName)),w=i.getResourceRegistry().getAllResources().filter(z=>c.includes(z.serverName)),T={},_=new ER;for(let z of c)if(a[z].oauth?.enabled||CR.has(z)){let V=await _.getCredentials(z);V?V.token.expiresAt&&V.token.expiresAt<Date.now()?T[z]="expired":T[z]="authenticated":T[z]="unauthenticated"}else T[z]="not-configured";let k=Ih.getInstance(),O={};for(let z of c)O[z]=await k.getDisplayState(z);let G={};for(let z of c){let P=i.getMcpClientManager()?.getLastError(z);P&&(G[z]=P)}let W={type:"mcp_status",servers:a,tools:p.map(z=>({serverName:z.serverName,name:z.name,description:z.description,schema:z.schema})),prompts:b.map(z=>({serverName:z.serverName,name:z.name,description:z.description})),resources:w.map(z=>({serverName:z.serverName,name:z.name,uri:z.uri,mimeType:z.mimeType,description:z.description})),authStatus:T,enablementState:O,errors:G,blockedServers:f.map(z=>({name:z.name,extensionName:z.extensionName})),discoveryInProgress:y,connectingServers:A,showDescriptions:!!t,showSchema:!!n};e.ui.addItem(W)},rne={name:"list",altNames:["ls","nodesc","nodescription"],description:"List configured MCP servers and tools",kind:"built-in",autoExecute:!0,action:e=>VT(e)},lTe={name:"desc",altNames:["description"],description:"List configured MCP servers and tools with descriptions",kind:"built-in",autoExecute:!0,action:e=>VT(e,!0)},cTe={name:"schema",description:"List configured MCP servers and tools with descriptions and schemas",kind:"built-in",autoExecute:!0,action:e=>VT(e,!0,!0)},uTe={name:"reload",altNames:["refresh"],description:"Reloads MCP servers",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext,n=t?.config;if(!n)return{type:"message",messageType:"error",content:"Config not loaded."};let r=n.getMcpClientManager();if(!r)return{type:"message",messageType:"error",content:"Could not retrieve mcp client manager."};e.ui.addItem({type:"info",text:"Reloading MCP servers..."}),await r.restart();let i=t.geminiClient;return i?.isInitialized()&&await i.setTools(),e.ui.reloadCommands(),rne.action(e,"")}};async function ine(e,t,n){let r=e.services.agentContext,i=r?.config;if(!i)return{type:"message",messageType:"error",content:"Config not loaded."};i.setUserInteractedWithMcp();let s=t.trim().split(/\s+/),a=s.includes("--session"),c=s.filter(b=>b!=="--session")[0],f=n?"enable":"disable";if(!c)return{type:"message",messageType:"error",content:`Server name required. Usage: /mcp ${f} <server-name> [--session]`};let A=ya(c),m=i.getMcpClientManager()?.getMcpServers()||{};if(!Object.keys(m).map(ya).includes(A))return{type:"message",messageType:"error",content:`Server '${c}' not found. Use /mcp list to see available servers.`};let C=Ih.getInstance();if(n){let b=Cy(),v=await yee(A,{adminMcpEnabled:b.merged.admin?.mcp?.enabled??!0,allowedList:b.merged.mcp?.allowed,excludedList:b.merged.mcp?.excluded});if(!v.allowed&&(v.blockType==="allowlist"||v.blockType==="excludelist"))return{type:"message",messageType:"error",content:v.reason??"Blocked by settings."};a?C.clearSessionDisable(A):await C.enable(A),v.blockType==="admin"&&e.ui.addItem({type:"warning",text:"MCP disabled by admin. Will load when enabled."},Date.now())}else a?C.disableForSession(A):await C.disable(A);let p=`MCP server '${A}' ${n?"enabled":"disabled"}${a?" for this session":""}.`,g=i.getMcpClientManager();return g&&(e.ui.addItem({type:"info",text:"Reloading MCP servers..."},Date.now()),await g.restart()),r.geminiClient?.isInitialized()&&await r.geminiClient.setTools(),e.ui.reloadCommands(),{type:"message",messageType:"info",content:p}}async function one(e,t,n){let i=e.services.agentContext?.config;if(!i)return[];let s=Object.keys(i.getMcpClientManager()?.getMcpServers()||{}),a=Ih.getInstance(),c=[];for(let f of s)(await a.getDisplayState(f)).enabled===n&&f.startsWith(t)&&c.push(f);return c}var dTe={name:"enable",description:"Enable a disabled MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>ine(e,t,!0),completion:(e,t)=>one(e,t,!1)},fTe={name:"disable",description:"Disable an MCP server",kind:"built-in",autoExecute:!0,action:(e,t)=>ine(e,t,!1),completion:(e,t)=>one(e,t,!0)},sne={name:"mcp",description:"Manage configured Model Context Protocol (MCP) servers",kind:"built-in",autoExecute:!1,subCommands:[rne,lTe,cTe,aTe,uTe,dTe,fTe],action:async e=>VT(e)};var ane={name:"memory",description:"Commands for interacting with memory",kind:"built-in",autoExecute:!1,subCommands:[{name:"show",description:"Show the current memory contents",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=qH(t);e.ui.addItem({type:"info",text:n.content},Date.now())}},{name:"add",description:"Add content to the memory",kind:"built-in",autoExecute:!1,action:(e,t)=>{let n=YH(t);return n.type==="message"||e.ui.addItem({type:"info",text:`Attempting to save to memory: "${t.trim()}"`},Date.now()),n}},{name:"reload",altNames:["refresh"],description:"Reload the memory from the source",kind:"built-in",autoExecute:!0,action:async e=>{e.ui.addItem({type:"info",text:"Reloading memory from source files..."},Date.now());try{let t=e.services.agentContext?.config;if(t){let n=await KH(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}catch(t){e.ui.addItem({type:"error",text:`Error reloading memory: ${t.message}`},Date.now())}}},{name:"list",description:"Lists the paths of the GEMINI.md files in use",kind:"built-in",autoExecute:!0,action:async e=>{let t=e.services.agentContext?.config;if(!t)return;let n=VH(t);e.ui.addItem({type:"info",text:n.content},Date.now())}}]};var hTe={name:"set",description:"Set the model to use. Usage: /model set <model-name> [--persist]",kind:"built-in",autoExecute:!1,action:async(e,t)=>{let n=t.trim().split(/\s+/).filter(Boolean);if(n.length===0){e.ui.addItem({type:"error",text:"Usage: /model set <model-name> [--persist]"});return}let r=n[0],i=n.includes("--persist");if(e.services.agentContext?.config){e.services.agentContext.config.setModel(r,!i);let s=new wU(r);YU(e.services.agentContext.config,s),e.ui.addItem({type:"info",text:`Model set to ${r}${i?" (persisted)":""}`})}}},lne={name:"manage",description:"Opens a dialog to configure the model",kind:"built-in",autoExecute:!0,action:async e=>(e.services.agentContext?.config&&await e.services.agentContext.config.refreshUserQuota(),{type:"dialog",dialog:"model"})},cne={name:"model",description:"Manage model configuration",kind:"built-in",autoExecute:!1,subCommands:[lne,hTe],action:async(e,t)=>lne.action(e,t)};var Zi=Ce(ut(),1);var it=Ce(It(),1);var FO=6,NO=20,WT=25,qm=5,une=10,sI=e=>!e||!e.reactionGroups?0:e.reactionGroups.reduce((t,n)=>t+n.users.totalCount,0),mTe=(e,t)=>t?.toLowerCase()==="duplicate"?"magenta":e==="OPEN"?"green":"red",dne=({config:e,onExit:t,initialLimit:n=50})=>{let r=yi(),[i,s]=(0,Zi.useState)({status:"loading",issues:[],currentIndex:0,analysisCache:new Map,analyzingIds:new Set,message:"Fetching issues..."}),[a,c]=(0,Zi.useState)("target"),[f,A]=(0,Zi.useState)(0),[m,y]=(0,Zi.useState)(!1),[C,p]=(0,Zi.useState)(0),[g,b]=(0,Zi.useState)(0),[v,w]=(0,Zi.useState)(""),[T,_]=(0,Zi.useState)([]),[k,O]=(0,Zi.useState)(!1),[G,W]=(0,Zi.useState)(0);(0,Zi.useEffect)(()=>{f<G?W(f):f>=G+qm&&W(f-qm+1)},[f,G]);let z=async Ne=>{try{let{stdout:te}=await Jo("gh",["issue","view",String(Ne),"--json","number,title,body,state,stateReason,labels,url,comments,author,reactionGroups"]);return JSON.parse(te)}catch(te){return Ee.error(`Failed to fetch details for candidate #${Ne}`,te),null}},P=(0,Zi.useCallback)(async Ne=>{let te=Ne.comments.find(Re=>Re.body.includes("Found possible duplicate issues:"));if(!te)return null;let _e=te.body.split(`
733
733
  `),Oe=[];for(let Re of _e){let bt=Re.match(/#(\d+)/);if(bt){let kt=parseInt(bt[1],10);kt!==Ne.number&&Oe.push(kt)}}if(Oe.length===0)return null;let nt=[];for(let Re of Oe){let bt=await z(Re);bt&&nt.push(bt)}let St=e.getBaseLlmClient(),j=`
734
734
  I am triaging a GitHub issue labeled as 'possible-duplicate'. I need to decide if it should be marked as a duplicate of another issue, or if one of the other issues should be marked as a duplicate of this one.
735
735
 
@@ -1,2 +1,2 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import{$ as Td,$a as Ve,$b as Wf,$c as Sg,$d as Sh,$e as Si,$h as rl,$i as qm,$k as uo,$l as up,$m as sq,A as Yc,Aa as ue,Ab as vf,Ac as vg,Ad as rh,Ae as ri,Af as mj,Ag as dk,Ah as Sk,Ai as Sl,Aj as $m,Ak as Un,Al as Vo,Am as Tp,B as Zc,Ba as ve,Bb as wf,Bc as wg,Bd as sh,Be as si,Bf as nj,Bg as ek,Bh as Tk,Bi as Tl,Bj as an,Bk as Vn,Bl as Wo,Bm as Up,C as _c,Ca as we,Cb as xf,Cc as xg,Cd as th,Ce as ti,Cf as oj,Cg as fk,Ch as Uk,Ci as Ul,Cj as bn,Ck as Wn,Cl as Xo,Cm as Vp,D as $c,Da as xe,Db as yf,Dc as yg,Dd as uh,De as ui,Df as pj,Dg as gk,Dh as Vk,Di as Vl,Dj as cn,Dk as Xn,Dl as Yo,Dm as Wp,E as ad,Ea as ye,Eb as zf,Ec as zg,Ed as vh,Ee as vi,Ef as qj,Eg as hk,Eh as Wk,Ei as Wl,Ej as dn,Ek as Yn,El as Zo,Em as Xp,F as bd,Fa as ze,Fb as Af,Fc as Ag,Fd as wh,Fe as wi,Ff as rj,Fg as ik,Fh as Xk,Fi as Xl,Fj as en,Fk as Zn,Fl as _o,Fm as Yp,G as cd,Ga as Ae,Gb as Bf,Gc as Bg,Gd as xh,Ge as xi,Gf as sj,Gg as jk,Gh as Yk,Gi as Yl,Gj as fn,Gk as _n,Gl as $o,Gm as Zp,H as dd,Ha as Be,Hb as Cf,Hc as Cg,Hd as yh,He as yi,Hf as tj,Hg as kk,Hh as Zk,Hi as Zl,Hj as gn,Hk as $n,Hl as ap,Hm as _p,I as ed,Ia as Ce,Ib as Df,Ic as Dg,Id as zh,Ie as zi,If as uj,Ig as lk,Ih as _k,Ii as _l,Ij as hn,Ik as ao,Il as bp,Im as $p,J as fd,Ja as De,Jb as Ef,Jc as Eg,Jd as Ah,Je as Ai,Jf as vj,Jg as mk,Jh as $k,Ji as $l,Jj as jn,Jk as bo,Jl as cp,Jm as aq,K as gd,Ka as Ee,Kb as Ff,Kc as Fg,Kd as Bh,Ke as Bi,Kf as wj,Kg as nk,Kh as al,Ki as am,Kj as kn,Kk as co,Kl as dp,Km as bq,L as hd,La as Fe,Lb as Gf,Lc as Gg,Ld as Ch,Le as Ci,Lf as xj,Lg as ok,Lh as bl,Li as bm,Lj as ln,Lk as eo,Ll as ep,Lm as cq,M as id,Ma as Ge,Mb as Hf,Mc as Hg,Md as Dh,Me as Di,Mf as yj,Mg as pk,Mh as cl,Mi as cm,Mj as mn,Mk as fo,Ml as fp,Mm as dq,N as jd,Na as He,Nb as If,Nc as Ig,Nd as Eh,Ne as Ei,Nf as zj,Ng as qk,Nh as dl,Ni as dm,Nj as nn,Nk as go,Nl as gp,Nm as eq,O as kd,Oa as Ie,Ob as Jf,Oc as Jg,Od as Fh,Oe as Fi,Of as Aj,Og as rk,Oh as el,Oi as em,Oj as on,Ok as ho,Ol as hp,Om as fq,P as ld,Pa as Je,Pb as Kf,Pc as Kg,Pd as Gh,Pe as Gi,Pf as Bj,Pg as sk,Ph as fl,Pi as fm,Pj as pn,Pk as io,Pl as ip,Pm as gq,Q as md,Qa as Ke,Qb as Lf,Qd as Hh,Qe as Hi,Qf as Cj,Qg as Ak,Qh as gl,Qi as gm,Qj as qn,Qk as jo,Ql as jp,Qm as hq,R as nd,Ra as Le,Rb as Mf,Rd as Ih,Re as Ii,Rf as Dj,Rg as Bk,Rh as hl,Ri as hm,Rj as rn,Rk as ko,Rl as kp,Rm as iq,S as od,Sa as Me,Sb as Nf,Sd as Jh,Se as Ji,Sf as Ej,Sg as Ck,Sh as il,Si as im,Sj as sn,Sk as lo,Sl as lp,Sm as jq,T as pd,Ta as Ne,Tb as Of,Td as Kh,Te as Ki,Tf as Fj,Tg as Dk,Th as jl,Ti as jm,Tj as tn,Tk as mo,Tl as mp,Tm as kq,U as qd,Ua as Oe,Ub as Pf,Uc as Lg,Ud as Lh,Ue as Li,Uf as Gj,Ug as Ek,Uh as kl,Ui as km,Uj as un,Uk as no,Ul as np,Um as lq,V as rd,Va as Pe,Vb as Qf,Vc as Mg,Vd as Mh,Ve as Mi,Vf as Hj,Vg as Fk,Vh as ll,Vi as lm,Vj as vn,Vk as oo,Vl as op,Vm as mq,W as sd,Wa as Qe,Wb as Rf,Wc as Ng,Wd as Nh,We as Ni,Wf as Ij,Wh as ml,Wi as mm,Wj as wn,Wk as po,Wl as pp,Wm as nq,Xa as Re,Xb as Sf,Xc as Og,Xd as Oh,Xe as Oi,Xg as Gk,Xh as nl,Xi as nm,Xk as qo,Xl as qp,Xm as oq,Ya as Se,Yb as Tf,Yc as Pg,Yd as Ph,Ye as Pi,Yh as ol,Yj as xn,Yk as ro,Yl as rp,Ym as pq,Za as Te,Zb as Uf,Zc as Qg,Zd as Qh,Ze as Qi,Zh as pl,Zi as om,Zk as so,Zl as sp,Zm as qq,_ as Pd,_a as Ue,_b as Vf,_c as Rg,_d as Rh,_e as Ri,_h as ql,_i as pm,_j as yn,_k as to,_l as tp,_m as rq,aa as Ud,ab as We,ac as Xf,ad as Tg,ae as Th,af as Ti,ai as sl,aj as rm,al as vo,am as vp,an as tq,ba as Vd,bb as Xe,bc as Yf,bd as Ug,be as Uh,bf as Ui,bi as tl,bj as sm,bl as wo,bm as wp,bn as uq,c as Ac,ca as Yd,cb as Ye,cc as Zf,cd as Vg,ce as Vh,cf as Vi,ci as ul,cj as tm,cl as xo,cm as xp,cn as vq,d as Bc,da as Zd,db as Ze,dc as _f,dd as Wg,de as Wh,df as Wi,di as vl,dj as um,dl as yo,dm as yp,e as Cc,ea as _d,eb as _e,ec as $f,ed as Xg,ee as Xh,ef as Xi,eg as Jj,ei as wl,ej as vm,el as zo,em as zp,f as Dc,fa as $d,fb as $e,fc as ag,fd as Yg,fe as Yh,ff as Yi,fg as Kj,fi as xl,fj as wm,fk as zn,fl as Ao,fm as Ap,g as Ec,ga as ae,gb as af,gc as bg,gd as Zg,ge as Zh,gf as Zi,gg as Lj,gi as yl,gj as xm,gk as An,gl as Bo,gm as Bp,h as Fc,ha as be,hb as bf,hc as cg,hd as _g,he as _h,hf as _i,hg as Mj,hi as zl,hj as ym,hk as Bn,hl as Co,hm as Cp,i as Gc,ia as ce,ib as cf,ic as dg,id as $g,ie as $h,if as $i,ig as Nj,ii as Al,ij as zm,ik as Cn,il as Do,im as Dp,j as Hc,ja as de,jb as df,jc as eg,jd as ah,je as ai,jf as aj,jg as Oj,ji as Bl,jj as Am,jk as Dn,jl as Eo,k as Ic,ka as ee,kb as ef,kc as fg,kd as bh,ke as bi,kf as bj,kg as Pj,ki as Cl,kj as Bm,kk as En,kl as Fo,km as Ep,l as Jc,la as fe,lb as ff,lc as gg,ld as ch,le as ci,lg as Qj,li as Dl,lj as Cm,lk as Fn,ll as Go,lm as Fp,m as Kc,ma as ge,mb as gf,mc as hg,md as dh,me as di,mg as Rj,mi as El,mj as Dm,mk as Gn,ml as Ho,mm as Gp,n as Lc,na as he,nb as hf,nc as ig,nd as eh,ne as ei,ng as Sj,nh as Hk,ni as Fl,nj as Em,nk as Hn,nl as Io,nm as Hp,o as Mc,oa as ie,ob as jf,oc as jg,od as fh,oe as fi,og as Tj,oh as Ik,oi as Gl,oj as Fm,ok as In,ol as Jo,om as Ip,p as Nc,pa as je,pb as kf,pc as kg,pd as gh,pe as gi,pg as Uj,ph as Jk,pi as Hl,pj as Gm,pk as Jn,pl as Ko,pm as Jp,q as Oc,qa as ke,qb as lf,qc as lg,qd as hh,qe as hi,qf as cj,qg as Vj,qh as Kk,qi as Il,qj as Hm,qk as Kn,ql as Lo,r as Pc,ra as le,rb as mf,rc as mg,rd as ih,re as ii,rf as dj,rg as Wj,rh as Lk,ri as Jl,rj as Im,rk as Ln,rl as Mo,rm as Kp,s as Qc,sa as me,sb as nf,sc as ng,sd as jh,se as ji,sf as ej,sg as Xj,sh as Mk,si as Kl,sj as Tm,sk as Mn,sl as No,sm as Lp,t as Rc,ta as ne,tb as of,tc as og,td as kh,te as ki,tf as fj,tg as Yj,th as Nk,ti as Ll,tj as Um,tk as Nn,tl as Oo,tm as Mp,u as Sc,ua as oe,ub as pf,uc as pg,ud as lh,ue as li,uf as gj,ug as Zj,ui as Ml,uj as Vm,uk as On,ul as Po,um as Np,v as Tc,va as pe,vb as qf,vc as qg,vd as mh,ve as mi,vf as hj,vg as _j,vi as Nl,vj as Wm,vk as Pn,vl as Qo,vm as Op,w as Uc,wa as qe,wb as rf,wc as rg,wd as nh,we as ni,wf as ij,wg as $j,wh as Ok,wi as Ol,wj as Xm,wk as Qn,wl as Ro,wm as Pp,x as Vc,xa as re,xb as sf,xc as sg,xd as oh,xe as oi,xf as jj,xg as ak,xh as Pk,xi as Pl,xj as Ym,xk as Rn,xl as So,xm as Qp,y as Wc,ya as se,yb as tf,yc as tg,yd as ph,ye as pi,yf as kj,yg as bk,yh as Qk,yi as Ql,yj as Zm,yk as Sn,yl as To,ym as Rp,z as Xc,za as te,zb as uf,zc as ug,zd as qh,ze as qi,zf as lj,zg as ck,zh as Rk,zi as Rl,zj as _m,zk as Tn,zl as Uo,zm as Sp}from"./chunk-LDCK4LC4.js";import{$ as I,$a as za,$b as zb,$c as ec,$d as yk,A as h,Aa as _,Ab as _a,Ad as xd,B as i,Ba as $,Bb as $a,Bd as yd,C as j,Ca as aa,Cb as ab,Cd as zd,D as k,Da as ba,Db as bb,Dd as Ad,E as l,Ea as ca,Eb as cb,Ed as Bd,F as m,Fa as da,Fb as db,Fd as Cd,G as n,Ga as ea,Gb as eb,Gd as Dd,H as o,Ha as fa,Hb as fb,Hd as Ed,I as p,Ia as ga,Ib as gb,Id as Fd,J as q,Ja as ha,Jb as hb,Jc as Ob,Jd as Gd,K as r,Ka as ia,Kb as ib,Kc as Pb,Kd as Hd,L as s,La as ja,Lb as jb,Lc as Qb,Ld as Id,M as t,Ma as ka,Mb as kb,Mc as Rb,Md as Jd,N as u,Na as la,Nb as lb,Nc as Sb,Nd as Kd,O as v,Oa as ma,Ob as mb,Oc as Tb,Od as Ld,P as w,Pa as na,Pb as nb,Pc as Ub,Pd as Md,Q as x,Qa as oa,Qb as ob,Qc as Vb,Qd as Nd,R as y,Ra as pa,Rb as pb,Rc as Wb,Rd as Od,S as z,Sa as qa,Sb as qb,Sc as Xb,Sd as Qd,T as A,Ta as ra,Tb as rb,Tc as Yb,Td as Rd,U as B,Ua as sa,Ub as sb,Uc as Zb,Ud as Sd,V as C,Va as ta,Vb as tb,Vc as _b,W as D,Wa as ua,Wb as ub,Wc as $b,Wd as tk,X as E,Xa as va,Xb as vb,Xc as ac,Xd as uk,Y as F,Ya as wa,Yb as wb,Yc as bc,Yd as vk,Z as G,Za as xa,Zb as xb,Zc as cc,Zd as wk,_ as H,_a as ya,_b as yb,_c as dc,_d as xk,aa as J,ab as Aa,ac as Ab,ad as fc,ae as zk,b as a,ba as K,bb as Ba,bc as Bb,bd as gc,be as Jm,c as b,ca as L,cb as Ca,cc as Cb,cd as hc,ce as Km,d as c,da as M,db as Da,dc as Db,dd as ic,de as Lm,ea as N,eb as Ea,ec as Eb,ed as jc,ee as Mm,fa as O,fb as Fa,fc as Fb,fd as kc,fe as Nm,ga as P,gb as Ga,gc as Gb,gd as lc,ge as Om,h as d,ha as Q,hb as Ha,hc as Hb,hd as mc,he as Pm,i as e,ia as R,ib as Ia,ic as Ib,id as nc,ie as Qm,j as f,ja as S,jb as Ja,jd as oc,je as Rm,k as g,kb as Ka,kd as pc,ke as Sm,lb as La,lc as Jb,ld as qc,mb as Ma,mc as Kb,md as rc,na as T,nb as Na,nc as Lb,nd as sc,ob as Oa,oc as Mb,pb as Pa,pc as Nb,pd as tc,qb as Qa,qd as uc,rb as Ra,rd as vc,sb as Sa,sd as wc,tb as Ta,td as xc,ua as U,ub as Ua,ud as yc,va as V,vb as Va,vd as zc,wa as W,wb as Wa,wd as td,xa as X,xb as Xa,xd as ud,ya as Y,yb as Ya,yd as vd,za as Z,zb as Za,zd as wd}from"./chunk-ALYGAQ7G.js";import"./chunk-TWIC4BKL.js";import"./chunk-JAFVB6DI.js";import{b as Wd,c as Xd}from"./chunk-A5A5SUZN.js";import"./chunk-YUXORC52.js";export{tb as ACTIVATE_SKILL_TOOL_NAME,ko as ADMIN_POLICY_TIER,po as ALLOWED_MCP_SERVER_PRIORITY,no as ALLOWED_TOOLS_FLAG_PRIORITY,qc as ALL_BUILTIN_TOOL_NAMES,qo as ALWAYS_ALLOW_PRIORITY,o as ALWAYS_ALLOW_PRIORITY_FRACTION,p as ALWAYS_ALLOW_PRIORITY_OFFSET,fc as ASK_USER_DISPLAY_NAME,Eb as ASK_USER_OPTION_PARAM_DESCRIPTION,Db as ASK_USER_OPTION_PARAM_LABEL,wb as ASK_USER_PARAM_QUESTIONS,yb as ASK_USER_QUESTION_PARAM_HEADER,Bb as ASK_USER_QUESTION_PARAM_MULTI_SELECT,Ab as ASK_USER_QUESTION_PARAM_OPTIONS,Cb as ASK_USER_QUESTION_PARAM_PLACEHOLDER,xb as ASK_USER_QUESTION_PARAM_QUESTION,zb as ASK_USER_QUESTION_PARAM_TYPE,vb as ASK_USER_TOOL_NAME,Ep as AbortError,Id as AccountSuspendedError,ug as ActionStatus,Nk as ActivateSkillTool,oh as ActivityDetector,Bh as ActivityMonitor,Ah as ActivityType,yg as AdminControlsSettingsSchema,im as AfterAgentHookOutput,hm as AfterModelHookOutput,Ml as AgentExecutionBlockedError,Ll as AgentExecutionStoppedError,sn as AgentLoadError,Pp as AgentSession,dn as AgentTerminateMode,pf as ApiErrorEvent,lh as ApiKeyUpdatedEvent,of as ApiRequestEvent,te as ApiRequestPhase,qf as ApiResponseEvent,l as ApprovalMode,tl as AskUserInvocation,sl as AskUserTool,Zo as AuthProviderType,lk as AuthType,Jc as BINARY_EXTENSIONS,Bc as BINARY_FILE_PATTERNS,Kd as BadRequestError,u as BaseDeclarativeTool,uj as BaseLlmClient,s as BaseToolInvocation,fm as BeforeModelHookOutput,em as BeforeToolHookOutput,gm as BeforeToolSelectionHookOutput,Tj as CODE_ASSIST_API_VERSION,Sj as CODE_ASSIST_ENDPOINT,Dc as COMMON_DIRECTORY_EXCLUDES,Ac as COMMON_IGNORE_PATTERNS,Vj as CacheService,Gd as CanceledError,Ld as ChangeAuthRequestedError,Zg as ChatRecordingService,Og as ClearcutLogger,bj as CloseDiffRequestSchema,Uj as CodeAssistServer,Uk as ColorMode,Rl as CompressionStatus,$o as Config,_o as ConfigSchema,Yl as ConfigSource,sf as ConsecaPolicyGenerationEvent,tf as ConsecaVerdictEvent,Tm as ContextManager,Af as ConversationFinishedEvent,tg as ConversationInteractionInteraction,Qd as CoreEvent,Rd as CoreEventEmitter,Ud as CoreToolCallStatus,hh as CreditPurchaseClickEvent,jh as CreditsUsedEvent,tc as DEFAULT_CONTEXT_FILENAME,eo as DEFAULT_CORE_POLICIES_DIR,Mc as DEFAULT_ENCODING,Gn as DEFAULT_FAST_ACK_MODEL_CONFIG_KEY,Gc as DEFAULT_FILE_EXCLUDES,uk as DEFAULT_FILE_FILTERING_OPTIONS,ha as DEFAULT_GEMINI_EMBEDDING_MODEL,$ as DEFAULT_GEMINI_FLASH_LITE_MODEL,_ as DEFAULT_GEMINI_FLASH_MODEL,Z as DEFAULT_GEMINI_MODEL,ca as DEFAULT_GEMINI_MODEL_AUTO,Ci as DEFAULT_GUI_EDITOR,oj as DEFAULT_MAX_ATTEMPTS,Hn as DEFAULT_MAX_INPUT_CHARS,Lb as DEFAULT_MAX_LINES_TEXT_FILE,In as DEFAULT_MAX_OUTPUT_CHARS,gn as DEFAULT_MAX_TIME_MINUTES,fn as DEFAULT_MAX_TURNS,tk as DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,Im as DEFAULT_MODEL_CONFIGS,Nh as DEFAULT_OTLP_ENDPOINT,go as DEFAULT_POLICY_TIER,en as DEFAULT_QUERY_STRING,Mh as DEFAULT_TELEMETRY_TARGET,ia as DEFAULT_THINKING_MODE,Wl as DEFAULT_TOKEN_LIMIT,Xo as DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,pc as DISCOVERED_TOOL_PREFIX,sb as DOCS_PARAM_PATH,t as DeclarativeTool,dm as DefaultHookOutput,Vb as DiscoveredMCPTool,Ub as DiscoveredMCPToolInvocation,rk as DiscoveredTool,Fi as EDITOR_DISPLAY_NAMES,ec as EDIT_DISPLAY_NAME,bb as EDIT_PARAM_ALLOW_MULTIPLE,_a as EDIT_PARAM_INSTRUCTION,ab as EDIT_PARAM_NEW_STRING,$a as EDIT_PARAM_OLD_STRING,Za as EDIT_TOOL_NAME,Xb as EDIT_TOOL_NAMES,Hb as ENTER_PLAN_MODE_TOOL_NAME,kh as EVENT_API_KEY_UPDATED,ih as EVENT_CREDITS_USED,gh as EVENT_CREDIT_PURCHASE_CLICK,eh as EVENT_EMPTY_WALLET_MENU_SHOWN,ah as EVENT_OVERAGE_MENU_SHOWN,ch as EVENT_OVERAGE_OPTION_SELECTED,mo as EXCLUDE_TOOLS_FLAG_PRIORITY,Fb as EXIT_PLAN_MODE_TOOL_NAME,Gb as EXIT_PLAN_PARAM_PLAN_FILENAME,ho as EXTENSION_POLICY_TIER,Bj as EditTool,fh as EmptyWalletMenuShownEvent,lf as EndSessionEvent,Xk as ExecutionLifecycleService,Dp as ExitCodes,Tn as ExperimentFlags,If as ExtensionDisableEvent,Gf as ExtensionEnableEvent,Cf as ExtensionInstallEvent,ep as ExtensionIntegrityDataSchema,ip as ExtensionIntegrityManager,fp as ExtensionIntegrityMapSchema,yo as ExtensionLoader,Ef as ExtensionUninstallEvent,Ff as ExtensionUpdateEvent,pj as FETCH_FAILED_MESSAGE,Pf as FORCE_FILE_STORAGE_ENV_VAR,pn as FRONTMATTER_REGEX,zd as FatalAuthenticationError,Fd as FatalCancellationError,Cd as FatalConfigError,yd as FatalError,Ad as FatalInputError,Bd as FatalSandboxError,Ed as FatalToolExecutionError,Dd as FatalTurnLimitedError,zg as FetchAdminControlsResponseSchema,dl as FetchError,Ek as FileDiscoveryService,Hc as FileExclusions,pe as FileOperation,Wi as FileSchema,Gp as FileSearchFactory,rf as FlashFallbackEvent,Kp as FolderTrustDiscoveryService,Hd as ForbiddenError,Ag as G1_CREDIT_TYPE,Eg as G1_UTM_CAMPAIGNS,Qi as GEMINI_CLI_COMPANION_EXTENSION_NAME,Yk as GEMINI_CLI_IDENTIFICATION_ENV_VAR,Zk as GEMINI_CLI_IDENTIFICATION_ENV_VAR_VALUE,G as GEMINI_DIR,vk as GEMINI_IGNORE_FILE_NAME,da as GEMINI_MODEL_ALIAS_AUTO,fa as GEMINI_MODEL_ALIAS_FLASH,ga as GEMINI_MODEL_ALIAS_FLASH_LITE,ea as GEMINI_MODEL_ALIAS_PRO,ae as GEN_AI_AGENT_DESCRIPTION,$d as GEN_AI_AGENT_NAME,ne as GEN_AI_CONVERSATION_ID,be as GEN_AI_INPUT_MESSAGES,_d as GEN_AI_OPERATION_NAME,ce as GEN_AI_OUTPUT_MESSAGES,fe as GEN_AI_PROMPT_NAME,de as GEN_AI_REQUEST_MODEL,ee as GEN_AI_RESPONSE_MODEL,le as GEN_AI_SYSTEM_INSTRUCTIONS,he as GEN_AI_TOOL_CALL_ID,me as GEN_AI_TOOL_DEFINITIONS,ie as GEN_AI_TOOL_DESCRIPTION,ge as GEN_AI_TOOL_NAME,je as GEN_AI_USAGE_INPUT_TOKENS,ke as GEN_AI_USAGE_OUTPUT_TOKENS,rb as GET_INTERNAL_DOCS_TOOL_NAME,hc as GLOB_DISPLAY_NAME,Da as GLOB_TOOL_NAME,H as GOOGLE_ACCOUNTS_FILENAME,pd as GOVERNANCE_FILES,jc as GREP_DISPLAY_NAME,Ma as GREP_PARAM_AFTER,Na as GREP_PARAM_BEFORE,La as GREP_PARAM_CONTEXT,Ga as GREP_PARAM_EXCLUDE_PATTERN,Ka as GREP_PARAM_FIXED_STRINGS,Fa as GREP_PARAM_INCLUDE_PATTERN,Ia as GREP_PARAM_MAX_MATCHES_PER_FILE,Ha as GREP_PARAM_NAMES_ONLY,Oa as GREP_PARAM_NO_IGNORE,Ja as GREP_PARAM_TOTAL_MAX_MATCHES,Ea as GREP_TOOL_NAME,Rg as GcpLogExporter,Qg as GcpMetricExporter,Pg as GcpTraceExporter,Nl as GeminiChat,oe as GeminiCliOperation,nm as GeminiClient,Ql as GeminiEventType,ue as GenAiOperationName,ve as GenAiProviderName,we as GenAiTokenType,Bk as GitIgnoreParser,om as GitService,Lk as GlobTool,Gk as GrepTool,$l as HOOKS_CONFIG_FIELDS,sh as HighWaterMarkTracker,_m as HookAggregator,an as HookEventHandler,_l as HookEventName,$m as HookPlanner,Ym as HookRegistry,Zm as HookRunner,bn as HookSystem,am as HookType,cj as IDEConnectionStatus,Lg as IDE_DEFINITIONS,Ri as IDE_MAX_OPEN_FILES,Si as IDE_MAX_SELECTED_TEXT_LENGTH,Ti as IDE_REQUEST_TIMEOUT_MS,qj as INCOMPLETE_JSON_MESSAGE,Dl as INITIAL_HISTORY_LENGTH,wk as INTEGRITY_FILENAME,xk as INTEGRITY_KEY_FILENAME,dj as IdeClient,zf as IdeConnectionEvent,yf as IdeConnectionType,Yi as IdeContextNotificationSchema,Xi as IdeContextSchema,Ui as IdeContextStore,Zi as IdeDiffAcceptedNotificationSchema,$i as IdeDiffClosedNotificationSchema,_i as IdeDiffRejectedNotificationSchema,m as InProcessCheckerType,Zj as IneligibleTierError,qg as IneligibleTierReasonCode,vg as InitiationMethod,$n as InjectionService,hp as IntegrityDataStatus,cp as IntegrityStatus,gp as IntegrityStoreSchema,Kl as InvalidStreamError,ap as JsonFormatter,Hm as JsonStreamEventType,yk as KEYCHAIN_SERVICE_NAME,Nf as KEYCHAIN_TEST_PREFIX,Mf as KeychainSchema,Qf as KeychainService,Rf as KeychainTokenStorage,D as Kind,Ak as LSTool,ic as LS_DISPLAY_NAME,Qa as LS_PARAM_IGNORE,Pa as LS_TOOL_NAME,_p as LegacyAgentSession,jf as LlmRole,Sn as LocalAgentExecutor,rd as LocalSandboxManager,zp as Logger,dk as LoggingContentGenerator,Nb as MAX_FILE_SIZE_MB,Mb as MAX_LINE_LENGTH_TEXT_FILE,Do as MCPDiscoveryState,Ao as MCPOAuthProvider,yn as MCPOAuthTokenStorage,Yo as MCPServerConfig,Co as MCPServerStatus,Bo as MCP_DEFAULT_TIMEOUT_MSEC,lo as MCP_EXCLUDED_PRIORITY,Ob as MCP_QUALIFIED_NAME_SEPARATOR,Pb as MCP_TOOL_PREFIX,Cc as MEDIA_FILE_PATTERNS,qb as MEMORY_PARAM_FACT,uc as MEMORY_SECTION_HEADER,pb as MEMORY_TOOL_NAME,Hg as MIN_CREDIT_BALANCE,E as MUTATOR_KINDS,Eo as McpClient,xg as McpConfigDefinitionSchema,re as MemoryMetricType,uh as MemoryMonitor,zc as MemoryTool,Wm as MessageBus,h as MessageBusType,wp as MessageSenderType,hj as ModelNotFoundError,Hf as ModelSlashCommandEvent,Bi as NO_EDITOR_AVAILABLE_ERROR,Bf as NetworkRetryAttemptEvent,qd as NoopSandboxManager,jm as NotificationType,xn as OAuthUtils,al as OUTPUT_UPDATE_INTERVAL_MS,Bg as OVERAGE_ELIGIBLE_MODELS,sg as OnboardUserStatusCode,Kf as OnboardingStartEvent,Lf as OnboardingSuccessEvent,aj as OpenDiffRequestSchema,Gm as OutputFormat,bh as OverageMenuShownEvent,dh as OverageOptionSelectedEvent,ya as PARAM_CASE_SENSITIVE,Ca as PARAM_DESCRIPTION,wa as PARAM_DIR_PATH,Ba as PARAM_FILE_FILTERING_OPTIONS,va as PARAM_FILE_PATH,xa as PARAM_PATTERN,Aa as PARAM_RESPECT_GEMINI_IGNORE,za as PARAM_RESPECT_GIT_IGNORE,Ib as PLAN_MODE_PARAM_REASON,rc as PLAN_MODE_TOOLS,W as PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL,Y as PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,V as PREVIEW_GEMINI_3_1_MODEL,X as PREVIEW_GEMINI_FLASH_MODEL,U as PREVIEW_GEMINI_MODEL,ba as PREVIEW_GEMINI_MODEL_AUTO,n as PRIORITY_SUBAGENT_TOOL,q as PRIORITY_YOLO_ALLOW_ALL,Ec as PYTHON_EXCLUDES,qe as PerformanceMetricType,vl as PlanErrorMessages,j as PolicyDecision,Xm as PolicyEngine,dp as PolicyIntegrityManager,mm as PreCompressTrigger,el as PrivateIpError,Xj as ProjectIdRequiredError,i as QuestionType,gc as READ_FILE_DISPLAY_NAME,Ta as READ_FILE_PARAM_END_LINE,Sa as READ_FILE_PARAM_START_LINE,Ra as READ_FILE_TOOL_NAME,mc as READ_MANY_FILES_DISPLAY_NAME,kb as READ_MANY_FILES_TOOL_NAME,mb as READ_MANY_PARAM_EXCLUDE,lb as READ_MANY_PARAM_INCLUDE,nb as READ_MANY_PARAM_RECURSIVE,ob as READ_MANY_PARAM_USE_DEFAULT_EXCLUDES,F as READ_ONLY_KINDS,Kb as REFERENCE_CONTENT_END,Jb as REFERENCE_CONTENT_START,Td as ROOT_SCHEDULER_ID,th as RateLimiter,Fk as ReadFileTool,$p as ReadManyFilesTool,kk as RecordingContentGenerator,Kj as ReleaseChannel,wg as RequiredMcpServerConfigSchema,qk as ResourceRegistry,jj as RetryableQuotaError,wf as RewindEvent,Jk as RipGrepTool,_k as SCROLLBACK_LIMIT,zk as SECRET_KEY_ACCOUNT,Of as SECRET_PREFIX,Zd as SERVICE_DESCRIPTION,Yd as SERVICE_NAME,Yg as SESSION_FILE_PREFIX,Va as SHELL_PARAM_COMMAND,Wa as SHELL_PARAM_IS_BACKGROUND,Ua as SHELL_TOOL_NAME,$c as SHELL_TOOL_NAMES,ub as SKILL_PARAM_NAME,kn as SUBAGENT_CANCELLED_ERROR_MESSAGE,jn as SUBAGENT_REJECTED_ERROR_PREFIX,Il as SYNTHETIC_THOUGHT_SIGNATURE,Fc as SYSTEM_FILE_EXCLUDES,qm as SandboxedFileSystemService,En as Scheduler,d as SchemaValidator,af as SemanticAttributes,lm as SessionEndReason,km as SessionStartSource,$k as ShellExecutionService,cl as ShellTool,bl as ShellToolInvocation,zo as SimpleExtensionLoader,Un as SkillManager,vf as SlashCommandStatus,Xd as SpanStatusCode,pm as StandardFileSystemService,kf as StartSessionEvent,Jh as StartupProfiler,T as Storage,Hl as StreamEventType,bp as StreamJsonFormatter,hn as SubagentActivityErrorType,vm as TASK_TYPE_LABELS,gb as TODOS_ITEM_PARAM_DESCRIPTION,hb as TODOS_ITEM_PARAM_STATUS,fb as TODOS_PARAM_TODOS,Yb as TOOLS_REQUIRING_NARROWING,nc as TOOL_LEGACY_ALIASES,Zc as TOOL_OUTPUTS_DIR,bc as TRACKER_ADD_DEPENDENCY_TOOL_NAME,Zb as TRACKER_CREATE_TASK_TOOL_NAME,$b as TRACKER_GET_TASK_TOOL_NAME,ac as TRACKER_LIST_TASKS_TOOL_NAME,_b as TRACKER_UPDATE_TASK_TOOL_NAME,cc as TRACKER_VISUALIZE_TOOL_NAME,oo as TRUSTED_MCP_SERVER_PRIORITY,wm as TaskStatus,xm as TaskStatusSchema,tm as TaskType,um as TaskTypeSchema,Lh as TelemetryTarget,ij as TerminalQuotaError,Vd as ToolCallDecision,nf as ToolCallEvent,C as ToolConfirmationOutcome,b as ToolErrorType,se as ToolExecutionPhase,Dn as ToolExecutor,Df as ToolOutputTruncatedEvent,sk as ToolRegistry,Em as TrackerAddDependencyTool,Am as TrackerCreateTaskTool,Cm as TrackerGetTaskTool,Dm as TrackerListTasksTool,Um as TrackerService,ym as TrackerTaskSchema,Bm as TrackerUpdateTaskTool,Fm as TrackerVisualizeTool,Sl as Turn,mj as UPGRADE_URL_PAGE,jo as USER_POLICY_TIER,Kn as USER_STEERING_INSTRUCTION,_g as UiTelemetryService,Jd as UnauthorizedError,Pd as UserAccountManager,mf as UserPromptEvent,rg as UserTierId,aa as VALID_GEMINI_MODELS,Yj as ValidationCancelledError,kj as ValidationRequiredError,Wd as ValueType,lc as WEB_FETCH_DISPLAY_NAME,jb as WEB_FETCH_PARAM_PROMPT,ib as WEB_FETCH_TOOL_NAME,kc as WEB_SEARCH_DISPLAY_NAME,db as WEB_SEARCH_PARAM_QUERY,cb as WEB_SEARCH_TOOL_NAME,io as WORKSPACE_POLICY_TIER,dc as WRITE_FILE_DISPLAY_NAME,Ya as WRITE_FILE_PARAM_CONTENT,Xa as WRITE_FILE_TOOL_NAME,eb as WRITE_TODOS_TOOL_NAME,jq as WarningPriority,Jf as WebFetchFallbackAttemptEvent,ql as WebFetchTool,rl as WebSearchTool,nd as WindowsSandboxManager,Vm as WorkspaceContext,lq as WorktreeService,Ej as WriteFileTool,sm as WriteTodosTool,Lj as _clearCache,Go as addMCPStatusChangeListener,tp as addMemory,Ki as allowEditorTypeInSandbox,ri as appendToLastTextPart,Ap as applyAdminAllowlist,xj as applyReplacement,Bp as applyRequiredServers,yl as assumeExhaustive,kg as authEvents,Fg as buildG1Url,zm as buildTodosReturnDisplay,Tp as buildToolResponseData,Ln as buildUserSteeringHintPrompt,mh as bytesToMB,yj as calculateReplacement,Hk as canUseRipgrep,Pm as categorizeAndConcatenate,zl as checkExhaustive,lj as classifyGoogleError,sq as cleanupWorktree,jk as clearApiKey,og as clearCachedCredentialFile,fo as clearEmittedPolicyWarnings,ng as clearOauthClientCache,hf as computeModelAddedAndRemovedLines,Lm as concatenateInstructions,Oo as connectAndDiscover,Uo as connectToMcpServer,Rp as contentPartsToGeminiParts,Wk as convertColorToHex,pl as convertGithubUrlToRaw,Jp as convertSessionToClientHistory,si as convertToFunctionResponse,Ip as convertToRestPayload,Sd as coreEvents,Wj as createCache,ek as createCodeAssistContentGenerator,ok as createContentGenerator,nk as createContentGeneratorConfig,Hj as createConversationOffered,cm as createHookOutput,wo as createPolicyEngineConfig,xo as createPolicyUpdater,kl as createSafeProxyAgent,od as createSandboxManager,Hh as createSessionId,Up as createTranslationState,Vo as createTransport,Rn as createUnauthorizedToolError,Vf as createWorkingStdio,pq as createWorktree,mq as createWorktreeService,a as debugLogger,yp as decodeTagName,Jm as deduplicatePathsByFileIdentity,Nc as detectBOM,Tk as detectEncodingFromBuffer,Uc as detectFileType,Ng as detectIdeFromEnv,df as detectLineEnding,cg as disableBracketedPasteMode,_f as disableKittyKeyboardProtocol,eg as disableLineWrapping,ag as disableModifyOtherKeys,Yf as disableMouseEvents,Wf as disableMouseTracking,Mo as discoverMcpTools,Qo as discoverPrompts,Ro as discoverResources,Po as discoverTools,Cn as doesToolInvocationMatch,bg as enableBracketedPasteMode,Zf as enableKittyKeyboardProtocol,dg as enableLineWrapping,$f as enableModifyOtherKeys,Xf as enableMouseEvents,xp as encodeTagName,Ik as ensureRgPath,fg as enterAlternateScreen,N as escapePath,fd as escapeShellArg,ck as estimateContextBreakdown,md as execStreaming,gg as exitAlternateScreen,Ic as extractExtensionsFromPatterns,Wn as fetchAdminControls,Xn as fetchAdminControlsOnce,ll as fetchWithTimeout,Wc as fileExists,Fp as filter,Dk as findGitRoot,qi as flatMapTextParts,wn as flattenMemory,Qh as flushTelemetry,Nn as formatBackgroundCompletionForModel,nh as formatBytes,mp as formatCheckpointDisplayList,tq as formatForSpeech,Sb as formatMcpToolName,uo as formatPolicyError,Ij as formatProtoJsonDuration,Yc as formatTruncatedToolOutput,Mn as formatUserHintsForModel,Qp as geminiPartsToContentParts,lp as generateCheckpointFileName,Qn as generateFastAckText,On as generateSteeringAckMessage,Mp as generateSummary,Wb as generateValidName,ph as getActivityDetector,Dh as getActivityMonitor,_n as getAdminBlockedMcpServersMessage,Zn as getAdminErrorMessage,nn as getAgentCardLoadOptions,xc as getAllGeminiMdFilenames,Ko as getAllMCPServerStatuses,ro as getAlwaysAllowPriorityFraction,Al as getApprovalModeDescription,mk as getAuthTypeFromEnv,mg as getAvailablePort,Qk as getCachedEncodingForBuffer,pp as getCheckpointInfoList,Ai as getCitations,fk as getCodeAssistServer,id as getCommandRoot,jd as getCommandRoots,kq as getCompatibilityWarnings,Vl as getCompressionPrompt,jg as getConsentForOauth,Me as getConventionAttributes,Ul as getCoreSystemPrompt,Dj as getCorrectedFileContent,wc as getCurrentGeminiMdFilename,Oi as getDiffCommand,El as getDirectoryContextString,la as getDisplayString,Ji as getEditorCommand,Gi as getEditorDisplayName,Fl as getEnvironmentContext,Om as getEnvironmentMemoryPaths,wd as getErrorMessage,zj as getErrorReplaceResult,gj as getErrorStatus,xd as getErrorType,cn as getExperiments,Nm as getExtensionMemoryPaths,gf as getFileDiffFromResultDisplay,Mk as getFolderStructure,Cp as getFsErrorMessage,ui as getFunctionCalls,wi as getFunctionCallsAsJson,vi as getFunctionCallsFromParts,xi as getFunctionCallsFromPartsAsJson,Gg as getG1CreditBalance,yc as getGlobalMemoryFilePath,Mm as getGlobalMemoryPaths,bm as getHookKey,k as getHookSource,Np as getIdeInstaller,Gl as getInitialChatHistory,Lo as getMCPDiscoveryState,Op as getMCPServerPrompts,Jo as getMCPServerStatus,wh as getMemoryMonitor,lg as getOauthClient,Jj as getPackageJson,Bl as getPlanModeExitMessage,so as getPolicyDirectories,to as getPolicyTier,Lp as getPreviousSession,P as getProjectHash,nq as getProjectRootForWorktree,wj as getPromptIdWithFallback,Ok as getPty,Rc as getRealPath,Mj as getReleaseChannel,on as getRemoteAgentTargetUrl,pi as getResponseText,ti as getResponseTextFromParts,rj as getRetryErrorType,dd as getShellConfiguration,Pc as getSpecificMimeType,yi as getStructuredResponse,zi as getStructuredResponseFromParts,Rk as getSystemEncoding,oc as getToolAliases,kp as getToolCallDataSchema,Bn as getToolSuggestion,np as getTruncatedCheckpointNames,Qj as getVersion,oq as getWorktreePath,nj as handleFallback,w as hasCycleInSchema,To as hasNetworkTransport,gd as hasRedirection,y as hasSummary,Hi as hasValidEditorCommand,Ii as hasValidEditorCommandAsync,rq as hasWorktreeChanges,I as homedir,Vi as ideContextStore,Ch as initializeActivityMonitor,vh as initializeMemoryMonitor,bd as initializeShellParsers,Ph as initializeTelemetry,So as invokeMcpPrompt,vd as isAbortError,Nd as isAccountSuspendedError,ua as isActiveModel,il as isAddressPrivate,ak as isApiError,gq as isAppleTerminal,Od as isAuthenticationError,sa as isAutoModel,r as isBackgroundExecutionData,cf as isBinary,Tc as isBinaryFile,Mg as isCloudShell,ul as isCompletedAskUserTool,qa as isCustomModel,fq as isDumbTerminal,Aj as isEditToolParams,Li as isEditorAvailable,Mi as isEditorAvailableAsync,Sc as isEmpty,Wo as isEnabled,c as isFatalToolError,B as isFileDiff,pa as isGemini2Model,oa as isGemini3Model,qq as isGeminiWorktree,Ck as isGitRepository,dq as isGnuScreen,z as isGrepResult,Di as isGuiEditor,ig as isHeadlessMode,Pl as isInvalidArgumentError,bq as isJetBrainsTerminal,A as isListResult,gl as isLoopbackHost,eq as isLowColorTmux,Tb as isMcpToolAnnotation,Qb as isMcpToolName,Nj as isNightly,ud as isNodeError,Cg as isOverageEligibleModel,Xe as isPerformanceMonitoringActive,Oj as isPreview,ma as isPreviewModel,hl as isPrivateIp,jl as isPrivateIpAsync,na as isProModel,g as isRecord,sj as isRetryableError,Ol as isSchemaDepthError,Pj as isStable,bk as isStructuredError,x as isStructuredToolResult,ln as isSubagentProgress,R as isSubpath,Oh as isTelemetrySdkInitialized,Ei as isTerminalEditor,cq as isTmux,v as isTool,mn as isToolActivityError,zn as isToolCallResponseInfo,rh as isUserActive,Zl as isUserVisibleHook,Jl as isValidNonThoughtTextPart,sc as isValidToolName,ed as isWindows,aq as isWindows10,Qc as isWithinRoot,Cj as isWriteFileToolParams,e as jsonToMarkdown,jp as listExtensions,vp as listMemoryFiles,vn as loadAgentsFromDirectory,hk as loadApiKey,vo as loadExtensionPolicies,Sm as loadJitSubdirectoryMemory,bo as loadPoliciesFromToml,Qm as loadServerHierarchicalMemory,rn as loadSkillFromFile,qn as loadSkillsFromDir,Lc as loadWasmBinary,Yh as logApiError,Wh as logApiRequest,Zh as logApiResponse,ni as logBillingEvent,ci as logChatCompression,Sh as logCliConfiguration,Vg as logConsecaPolicyGeneration,Wg as logConsecaVerdict,bi as logConversationFinishedEvent,ji as logExtensionDisable,ii as logExtensionEnable,fi as logExtensionInstallEvent,gi as logExtensionUninstall,hi as logExtensionUpdateEvent,Xh as logFlashFallback,ai as logIdeConnection,ei as logModelSlashCommand,di as logNetworkRetryAttempt,li as logOnboardingStart,mi as logOnboardingSuccess,$h as logRewind,_h as logSlashCommand,Uh as logToolCall,Vh as logToolOutputTruncated,Th as logUserPrompt,ki as logWebFetchFallbackAttempt,xf as makeChatCompressionEvent,uq as makeFakeConfig,M as makeRelative,uf as makeSlashCommandEvent,Yp as mapError,Wp as mapFinishReason,Xp as mapHttpToGrpcStatus,Zp as mapUsage,un as markdownToAgentDefinition,Fo as mcpServerRequiresOAuth,Q as normalizePath,Jn as normalizeSpace,nl as normalizeUrl,ej as openBrowserSecurely,Pi as openDiff,tn as parseAgentMarkdown,Hp as parseAndFormatApiError,Sg as parseBooleanEnvFlag,cd as parseCommandDetails,td as parseGoogleApiError,Rb as parseMcpToolName,ol as parsePrompt,Tg as parseTelemetryTargetValue,Xg as parseThought,Cl as partListUnionToString,oi as partToString,Uf as patchStdio,rp as performInit,qp as performRestore,No as populateMcpServerCommand,op as processRestorableToolCalls,Vc as processSingleFileContent,vj as promptIdContext,Oc as readFileWithEncoding,Km as readGeminiMdFiles,vq as readPathFromWorkspace,ao as readPolicyFiles,Kc as readWasmBinaryFromDisk,Ae as recordApiErrorMetrics,Te as recordApiRequestBreakdown,Ze as recordApiResponseMetrics,We as recordBaselineComparison,He as recordContentRetry,Ie as recordContentRetryFailure,Fj as recordConversationOffered,Pe as recordCpuUsage,$e as recordCreditPurchaseClick,xh as recordCurrentMemoryUsage,ze as recordCustomApiResponseMetrics,ye as recordCustomTokenUsageMetrics,De as recordExitFail,Be as recordFileOperationMetric,Ce as recordFlickerFrame,Le as recordGenAiClientOperationDuration,Ke as recordGenAiClientTokenUsage,Fe as recordInvalidChunk,Oe as recordMemoryUsage,Je as recordModelRoutingMetrics,_e as recordOverageOptionSelected,Ve as recordPerformanceRegression,Ue as recordPerformanceScore,Ge as recordRetryAttemptMetrics,Ee as recordSlowRender,Ne as recordStartupPerformance,Se as recordTokenEfficiency,Ye as recordTokenUsageMetrics,Gj as recordToolCallInteractions,xe as recordToolCallMetrics,Re as recordToolExecutionBreakdown,Qe as recordToolQueueDepth,qh as recordUserActivity,up as refreshMemory,Rm as refreshServerHierarchicalMemory,Ho as removeMCPStatusChangeListener,gk as resetApiKeyCacheForTesting,Pk as resetEncodingCache,pg as resetOauthClientForTesting,_j as resetUserDataCacheForTesting,Rj as resetVersionCache,ka as resolveClassifierModel,Ni as resolveEditorAsync,ad as resolveExecutable,ja as resolveModel,Tl as resolvePathFromEnv,Ug as resolveTelemetrySettings,S as resolveToRealPath,tj as retryWithBackoff,Ih as runInDevTraceSpan,f as safeJsonToMarkdown,bf as safeLiteralReplace,ff as safeTemplateReplace,Vn as sanitizeAdminSettings,Xc as sanitizeFilenamePart,fl as sanitizeHostname,sd as sanitizePaths,ik as saveApiKey,_c as saveTruncatedToolOutput,Fn as scheduleAgentTools,Vk as serializeTerminalToObject,Gh as sessionId,vc as setGeminiMdFilename,ml as setGlobalProxy,$j as setupUser,L as shortenPath,rm as shouldAttemptBrowserLaunch,Ig as shouldAutoUseCredits,hg as shouldEnterAlternateScreen,An as shouldHideToolCall,fj as shouldLaunchBrowser,Kg as shouldShowEmptyWalletMenu,Jg as shouldShowOverageMenu,sp as showMemory,Rh as shutdownTelemetry,Kk as sortFileEntries,ld as spawnAsync,hd as splitCommands,Eh as startGlobalActivityMonitoring,yh as startGlobalMemoryMonitoring,Kh as startupProfiler,Yn as stopAdminControlsPolling,Fh as stopGlobalActivityMonitoring,zh as stopGlobalMemoryMonitoring,kd as stripShellWrapper,hq as supports256Colors,ra as supportsModernFeatures,ta as supportsMultimodalFunctionResponse,iq as supportsTrueColor,K as tildeifyPath,J as tmpdir,Md as toFriendlyError,Xl as tokenLimit,Sp as toolResultDisplayToContentParts,Vp as translateEvent,Pn as truncateFastAckInput,ef as truncateString,$g as uiTelemetryService,O as unescapePath,Io as updateMCPServerStatus,pk as validateBaseUrl,co as validateMcpPolicyToolNames,xl as validatePlanContent,wl as validatePlanPath,Sk as windowsCodePageToEncoding,Dg as wrapInAccountChooser,Tf as writeToStderr,Sf as writeToStdout};
2
+ import{$ as Td,$a as Ve,$b as Wf,$c as Sg,$d as Sh,$e as Si,$h as rl,$i as qm,$k as uo,$l as up,$m as sq,A as Yc,Aa as ue,Ab as vf,Ac as vg,Ad as rh,Ae as ri,Af as mj,Ag as dk,Ah as Sk,Ai as Sl,Aj as $m,Ak as Un,Al as Vo,Am as Tp,B as Zc,Ba as ve,Bb as wf,Bc as wg,Bd as sh,Be as si,Bf as nj,Bg as ek,Bh as Tk,Bi as Tl,Bj as an,Bk as Vn,Bl as Wo,Bm as Up,C as _c,Ca as we,Cb as xf,Cc as xg,Cd as th,Ce as ti,Cf as oj,Cg as fk,Ch as Uk,Ci as Ul,Cj as bn,Ck as Wn,Cl as Xo,Cm as Vp,D as $c,Da as xe,Db as yf,Dc as yg,Dd as uh,De as ui,Df as pj,Dg as gk,Dh as Vk,Di as Vl,Dj as cn,Dk as Xn,Dl as Yo,Dm as Wp,E as ad,Ea as ye,Eb as zf,Ec as zg,Ed as vh,Ee as vi,Ef as qj,Eg as hk,Eh as Wk,Ei as Wl,Ej as dn,Ek as Yn,El as Zo,Em as Xp,F as bd,Fa as ze,Fb as Af,Fc as Ag,Fd as wh,Fe as wi,Ff as rj,Fg as ik,Fh as Xk,Fi as Xl,Fj as en,Fk as Zn,Fl as _o,Fm as Yp,G as cd,Ga as Ae,Gb as Bf,Gc as Bg,Gd as xh,Ge as xi,Gf as sj,Gg as jk,Gh as Yk,Gi as Yl,Gj as fn,Gk as _n,Gl as $o,Gm as Zp,H as dd,Ha as Be,Hb as Cf,Hc as Cg,Hd as yh,He as yi,Hf as tj,Hg as kk,Hh as Zk,Hi as Zl,Hj as gn,Hk as $n,Hl as ap,Hm as _p,I as ed,Ia as Ce,Ib as Df,Ic as Dg,Id as zh,Ie as zi,If as uj,Ig as lk,Ih as _k,Ii as _l,Ij as hn,Ik as ao,Il as bp,Im as $p,J as fd,Ja as De,Jb as Ef,Jc as Eg,Jd as Ah,Je as Ai,Jf as vj,Jg as mk,Jh as $k,Ji as $l,Jj as jn,Jk as bo,Jl as cp,Jm as aq,K as gd,Ka as Ee,Kb as Ff,Kc as Fg,Kd as Bh,Ke as Bi,Kf as wj,Kg as nk,Kh as al,Ki as am,Kj as kn,Kk as co,Kl as dp,Km as bq,L as hd,La as Fe,Lb as Gf,Lc as Gg,Ld as Ch,Le as Ci,Lf as xj,Lg as ok,Lh as bl,Li as bm,Lj as ln,Lk as eo,Ll as ep,Lm as cq,M as id,Ma as Ge,Mb as Hf,Mc as Hg,Md as Dh,Me as Di,Mf as yj,Mg as pk,Mh as cl,Mi as cm,Mj as mn,Mk as fo,Ml as fp,Mm as dq,N as jd,Na as He,Nb as If,Nc as Ig,Nd as Eh,Ne as Ei,Nf as zj,Ng as qk,Nh as dl,Ni as dm,Nj as nn,Nk as go,Nl as gp,Nm as eq,O as kd,Oa as Ie,Ob as Jf,Oc as Jg,Od as Fh,Oe as Fi,Of as Aj,Og as rk,Oh as el,Oi as em,Oj as on,Ok as ho,Ol as hp,Om as fq,P as ld,Pa as Je,Pb as Kf,Pc as Kg,Pd as Gh,Pe as Gi,Pf as Bj,Pg as sk,Ph as fl,Pi as fm,Pj as pn,Pk as io,Pl as ip,Pm as gq,Q as md,Qa as Ke,Qb as Lf,Qd as Hh,Qe as Hi,Qf as Cj,Qg as Ak,Qh as gl,Qi as gm,Qj as qn,Qk as jo,Ql as jp,Qm as hq,R as nd,Ra as Le,Rb as Mf,Rd as Ih,Re as Ii,Rf as Dj,Rg as Bk,Rh as hl,Ri as hm,Rj as rn,Rk as ko,Rl as kp,Rm as iq,S as od,Sa as Me,Sb as Nf,Sd as Jh,Se as Ji,Sf as Ej,Sg as Ck,Sh as il,Si as im,Sj as sn,Sk as lo,Sl as lp,Sm as jq,T as pd,Ta as Ne,Tb as Of,Td as Kh,Te as Ki,Tf as Fj,Tg as Dk,Th as jl,Ti as jm,Tj as tn,Tk as mo,Tl as mp,Tm as kq,U as qd,Ua as Oe,Ub as Pf,Uc as Lg,Ud as Lh,Ue as Li,Uf as Gj,Ug as Ek,Uh as kl,Ui as km,Uj as un,Uk as no,Ul as np,Um as lq,V as rd,Va as Pe,Vb as Qf,Vc as Mg,Vd as Mh,Ve as Mi,Vf as Hj,Vg as Fk,Vh as ll,Vi as lm,Vj as vn,Vk as oo,Vl as op,Vm as mq,W as sd,Wa as Qe,Wb as Rf,Wc as Ng,Wd as Nh,We as Ni,Wf as Ij,Wh as ml,Wi as mm,Wj as wn,Wk as po,Wl as pp,Wm as nq,Xa as Re,Xb as Sf,Xc as Og,Xd as Oh,Xe as Oi,Xg as Gk,Xh as nl,Xi as nm,Xk as qo,Xl as qp,Xm as oq,Ya as Se,Yb as Tf,Yc as Pg,Yd as Ph,Ye as Pi,Yh as ol,Yj as xn,Yk as ro,Yl as rp,Ym as pq,Za as Te,Zb as Uf,Zc as Qg,Zd as Qh,Ze as Qi,Zh as pl,Zi as om,Zk as so,Zl as sp,Zm as qq,_ as Pd,_a as Ue,_b as Vf,_c as Rg,_d as Rh,_e as Ri,_h as ql,_i as pm,_j as yn,_k as to,_l as tp,_m as rq,aa as Ud,ab as We,ac as Xf,ad as Tg,ae as Th,af as Ti,ai as sl,aj as rm,al as vo,am as vp,an as tq,ba as Vd,bb as Xe,bc as Yf,bd as Ug,be as Uh,bf as Ui,bi as tl,bj as sm,bl as wo,bm as wp,bn as uq,c as Ac,ca as Yd,cb as Ye,cc as Zf,cd as Vg,ce as Vh,cf as Vi,ci as ul,cj as tm,cl as xo,cm as xp,cn as vq,d as Bc,da as Zd,db as Ze,dc as _f,dd as Wg,de as Wh,df as Wi,di as vl,dj as um,dl as yo,dm as yp,e as Cc,ea as _d,eb as _e,ec as $f,ed as Xg,ee as Xh,ef as Xi,eg as Jj,ei as wl,ej as vm,el as zo,em as zp,f as Dc,fa as $d,fb as $e,fc as ag,fd as Yg,fe as Yh,ff as Yi,fg as Kj,fi as xl,fj as wm,fk as zn,fl as Ao,fm as Ap,g as Ec,ga as ae,gb as af,gc as bg,gd as Zg,ge as Zh,gf as Zi,gg as Lj,gi as yl,gj as xm,gk as An,gl as Bo,gm as Bp,h as Fc,ha as be,hb as bf,hc as cg,hd as _g,he as _h,hf as _i,hg as Mj,hi as zl,hj as ym,hk as Bn,hl as Co,hm as Cp,i as Gc,ia as ce,ib as cf,ic as dg,id as $g,ie as $h,if as $i,ig as Nj,ii as Al,ij as zm,ik as Cn,il as Do,im as Dp,j as Hc,ja as de,jb as df,jc as eg,jd as ah,je as ai,jf as aj,jg as Oj,ji as Bl,jj as Am,jk as Dn,jl as Eo,k as Ic,ka as ee,kb as ef,kc as fg,kd as bh,ke as bi,kf as bj,kg as Pj,ki as Cl,kj as Bm,kk as En,kl as Fo,km as Ep,l as Jc,la as fe,lb as ff,lc as gg,ld as ch,le as ci,lg as Qj,li as Dl,lj as Cm,lk as Fn,ll as Go,lm as Fp,m as Kc,ma as ge,mb as gf,mc as hg,md as dh,me as di,mg as Rj,mi as El,mj as Dm,mk as Gn,ml as Ho,mm as Gp,n as Lc,na as he,nb as hf,nc as ig,nd as eh,ne as ei,ng as Sj,nh as Hk,ni as Fl,nj as Em,nk as Hn,nl as Io,nm as Hp,o as Mc,oa as ie,ob as jf,oc as jg,od as fh,oe as fi,og as Tj,oh as Ik,oi as Gl,oj as Fm,ok as In,ol as Jo,om as Ip,p as Nc,pa as je,pb as kf,pc as kg,pd as gh,pe as gi,pg as Uj,ph as Jk,pi as Hl,pj as Gm,pk as Jn,pl as Ko,pm as Jp,q as Oc,qa as ke,qb as lf,qc as lg,qd as hh,qe as hi,qf as cj,qg as Vj,qh as Kk,qi as Il,qj as Hm,qk as Kn,ql as Lo,r as Pc,ra as le,rb as mf,rc as mg,rd as ih,re as ii,rf as dj,rg as Wj,rh as Lk,ri as Jl,rj as Im,rk as Ln,rl as Mo,rm as Kp,s as Qc,sa as me,sb as nf,sc as ng,sd as jh,se as ji,sf as ej,sg as Xj,sh as Mk,si as Kl,sj as Tm,sk as Mn,sl as No,sm as Lp,t as Rc,ta as ne,tb as of,tc as og,td as kh,te as ki,tf as fj,tg as Yj,th as Nk,ti as Ll,tj as Um,tk as Nn,tl as Oo,tm as Mp,u as Sc,ua as oe,ub as pf,uc as pg,ud as lh,ue as li,uf as gj,ug as Zj,ui as Ml,uj as Vm,uk as On,ul as Po,um as Np,v as Tc,va as pe,vb as qf,vc as qg,vd as mh,ve as mi,vf as hj,vg as _j,vi as Nl,vj as Wm,vk as Pn,vl as Qo,vm as Op,w as Uc,wa as qe,wb as rf,wc as rg,wd as nh,we as ni,wf as ij,wg as $j,wh as Ok,wi as Ol,wj as Xm,wk as Qn,wl as Ro,wm as Pp,x as Vc,xa as re,xb as sf,xc as sg,xd as oh,xe as oi,xf as jj,xg as ak,xh as Pk,xi as Pl,xj as Ym,xk as Rn,xl as So,xm as Qp,y as Wc,ya as se,yb as tf,yc as tg,yd as ph,ye as pi,yf as kj,yg as bk,yh as Qk,yi as Ql,yj as Zm,yk as Sn,yl as To,ym as Rp,z as Xc,za as te,zb as uf,zc as ug,zd as qh,ze as qi,zf as lj,zg as ck,zh as Rk,zi as Rl,zj as _m,zk as Tn,zl as Uo,zm as Sp}from"./chunk-CN5ZY54S.js";import{$ as I,$a as za,$b as zb,$c as ec,$d as yk,A as h,Aa as _,Ab as _a,Ad as xd,B as i,Ba as $,Bb as $a,Bd as yd,C as j,Ca as aa,Cb as ab,Cd as zd,D as k,Da as ba,Db as bb,Dd as Ad,E as l,Ea as ca,Eb as cb,Ed as Bd,F as m,Fa as da,Fb as db,Fd as Cd,G as n,Ga as ea,Gb as eb,Gd as Dd,H as o,Ha as fa,Hb as fb,Hd as Ed,I as p,Ia as ga,Ib as gb,Id as Fd,J as q,Ja as ha,Jb as hb,Jc as Ob,Jd as Gd,K as r,Ka as ia,Kb as ib,Kc as Pb,Kd as Hd,L as s,La as ja,Lb as jb,Lc as Qb,Ld as Id,M as t,Ma as ka,Mb as kb,Mc as Rb,Md as Jd,N as u,Na as la,Nb as lb,Nc as Sb,Nd as Kd,O as v,Oa as ma,Ob as mb,Oc as Tb,Od as Ld,P as w,Pa as na,Pb as nb,Pc as Ub,Pd as Md,Q as x,Qa as oa,Qb as ob,Qc as Vb,Qd as Nd,R as y,Ra as pa,Rb as pb,Rc as Wb,Rd as Od,S as z,Sa as qa,Sb as qb,Sc as Xb,Sd as Qd,T as A,Ta as ra,Tb as rb,Tc as Yb,Td as Rd,U as B,Ua as sa,Ub as sb,Uc as Zb,Ud as Sd,V as C,Va as ta,Vb as tb,Vc as _b,W as D,Wa as ua,Wb as ub,Wc as $b,Wd as tk,X as E,Xa as va,Xb as vb,Xc as ac,Xd as uk,Y as F,Ya as wa,Yb as wb,Yc as bc,Yd as vk,Z as G,Za as xa,Zb as xb,Zc as cc,Zd as wk,_ as H,_a as ya,_b as yb,_c as dc,_d as xk,aa as J,ab as Aa,ac as Ab,ad as fc,ae as zk,b as a,ba as K,bb as Ba,bc as Bb,bd as gc,be as Jm,c as b,ca as L,cb as Ca,cc as Cb,cd as hc,ce as Km,d as c,da as M,db as Da,dc as Db,dd as ic,de as Lm,ea as N,eb as Ea,ec as Eb,ed as jc,ee as Mm,fa as O,fb as Fa,fc as Fb,fd as kc,fe as Nm,ga as P,gb as Ga,gc as Gb,gd as lc,ge as Om,h as d,ha as Q,hb as Ha,hc as Hb,hd as mc,he as Pm,i as e,ia as R,ib as Ia,ic as Ib,id as nc,ie as Qm,j as f,ja as S,jb as Ja,jd as oc,je as Rm,k as g,kb as Ka,kd as pc,ke as Sm,lb as La,lc as Jb,ld as qc,mb as Ma,mc as Kb,md as rc,na as T,nb as Na,nc as Lb,nd as sc,ob as Oa,oc as Mb,pb as Pa,pc as Nb,pd as tc,qb as Qa,qd as uc,rb as Ra,rd as vc,sb as Sa,sd as wc,tb as Ta,td as xc,ua as U,ub as Ua,ud as yc,va as V,vb as Va,vd as zc,wa as W,wb as Wa,wd as td,xa as X,xb as Xa,xd as ud,ya as Y,yb as Ya,yd as vd,za as Z,zb as Za,zd as wd}from"./chunk-ALYGAQ7G.js";import"./chunk-TWIC4BKL.js";import"./chunk-JAFVB6DI.js";import{b as Wd,c as Xd}from"./chunk-A5A5SUZN.js";import"./chunk-YUXORC52.js";export{tb as ACTIVATE_SKILL_TOOL_NAME,ko as ADMIN_POLICY_TIER,po as ALLOWED_MCP_SERVER_PRIORITY,no as ALLOWED_TOOLS_FLAG_PRIORITY,qc as ALL_BUILTIN_TOOL_NAMES,qo as ALWAYS_ALLOW_PRIORITY,o as ALWAYS_ALLOW_PRIORITY_FRACTION,p as ALWAYS_ALLOW_PRIORITY_OFFSET,fc as ASK_USER_DISPLAY_NAME,Eb as ASK_USER_OPTION_PARAM_DESCRIPTION,Db as ASK_USER_OPTION_PARAM_LABEL,wb as ASK_USER_PARAM_QUESTIONS,yb as ASK_USER_QUESTION_PARAM_HEADER,Bb as ASK_USER_QUESTION_PARAM_MULTI_SELECT,Ab as ASK_USER_QUESTION_PARAM_OPTIONS,Cb as ASK_USER_QUESTION_PARAM_PLACEHOLDER,xb as ASK_USER_QUESTION_PARAM_QUESTION,zb as ASK_USER_QUESTION_PARAM_TYPE,vb as ASK_USER_TOOL_NAME,Ep as AbortError,Id as AccountSuspendedError,ug as ActionStatus,Nk as ActivateSkillTool,oh as ActivityDetector,Bh as ActivityMonitor,Ah as ActivityType,yg as AdminControlsSettingsSchema,im as AfterAgentHookOutput,hm as AfterModelHookOutput,Ml as AgentExecutionBlockedError,Ll as AgentExecutionStoppedError,sn as AgentLoadError,Pp as AgentSession,dn as AgentTerminateMode,pf as ApiErrorEvent,lh as ApiKeyUpdatedEvent,of as ApiRequestEvent,te as ApiRequestPhase,qf as ApiResponseEvent,l as ApprovalMode,tl as AskUserInvocation,sl as AskUserTool,Zo as AuthProviderType,lk as AuthType,Jc as BINARY_EXTENSIONS,Bc as BINARY_FILE_PATTERNS,Kd as BadRequestError,u as BaseDeclarativeTool,uj as BaseLlmClient,s as BaseToolInvocation,fm as BeforeModelHookOutput,em as BeforeToolHookOutput,gm as BeforeToolSelectionHookOutput,Tj as CODE_ASSIST_API_VERSION,Sj as CODE_ASSIST_ENDPOINT,Dc as COMMON_DIRECTORY_EXCLUDES,Ac as COMMON_IGNORE_PATTERNS,Vj as CacheService,Gd as CanceledError,Ld as ChangeAuthRequestedError,Zg as ChatRecordingService,Og as ClearcutLogger,bj as CloseDiffRequestSchema,Uj as CodeAssistServer,Uk as ColorMode,Rl as CompressionStatus,$o as Config,_o as ConfigSchema,Yl as ConfigSource,sf as ConsecaPolicyGenerationEvent,tf as ConsecaVerdictEvent,Tm as ContextManager,Af as ConversationFinishedEvent,tg as ConversationInteractionInteraction,Qd as CoreEvent,Rd as CoreEventEmitter,Ud as CoreToolCallStatus,hh as CreditPurchaseClickEvent,jh as CreditsUsedEvent,tc as DEFAULT_CONTEXT_FILENAME,eo as DEFAULT_CORE_POLICIES_DIR,Mc as DEFAULT_ENCODING,Gn as DEFAULT_FAST_ACK_MODEL_CONFIG_KEY,Gc as DEFAULT_FILE_EXCLUDES,uk as DEFAULT_FILE_FILTERING_OPTIONS,ha as DEFAULT_GEMINI_EMBEDDING_MODEL,$ as DEFAULT_GEMINI_FLASH_LITE_MODEL,_ as DEFAULT_GEMINI_FLASH_MODEL,Z as DEFAULT_GEMINI_MODEL,ca as DEFAULT_GEMINI_MODEL_AUTO,Ci as DEFAULT_GUI_EDITOR,oj as DEFAULT_MAX_ATTEMPTS,Hn as DEFAULT_MAX_INPUT_CHARS,Lb as DEFAULT_MAX_LINES_TEXT_FILE,In as DEFAULT_MAX_OUTPUT_CHARS,gn as DEFAULT_MAX_TIME_MINUTES,fn as DEFAULT_MAX_TURNS,tk as DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,Im as DEFAULT_MODEL_CONFIGS,Nh as DEFAULT_OTLP_ENDPOINT,go as DEFAULT_POLICY_TIER,en as DEFAULT_QUERY_STRING,Mh as DEFAULT_TELEMETRY_TARGET,ia as DEFAULT_THINKING_MODE,Wl as DEFAULT_TOKEN_LIMIT,Xo as DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,pc as DISCOVERED_TOOL_PREFIX,sb as DOCS_PARAM_PATH,t as DeclarativeTool,dm as DefaultHookOutput,Vb as DiscoveredMCPTool,Ub as DiscoveredMCPToolInvocation,rk as DiscoveredTool,Fi as EDITOR_DISPLAY_NAMES,ec as EDIT_DISPLAY_NAME,bb as EDIT_PARAM_ALLOW_MULTIPLE,_a as EDIT_PARAM_INSTRUCTION,ab as EDIT_PARAM_NEW_STRING,$a as EDIT_PARAM_OLD_STRING,Za as EDIT_TOOL_NAME,Xb as EDIT_TOOL_NAMES,Hb as ENTER_PLAN_MODE_TOOL_NAME,kh as EVENT_API_KEY_UPDATED,ih as EVENT_CREDITS_USED,gh as EVENT_CREDIT_PURCHASE_CLICK,eh as EVENT_EMPTY_WALLET_MENU_SHOWN,ah as EVENT_OVERAGE_MENU_SHOWN,ch as EVENT_OVERAGE_OPTION_SELECTED,mo as EXCLUDE_TOOLS_FLAG_PRIORITY,Fb as EXIT_PLAN_MODE_TOOL_NAME,Gb as EXIT_PLAN_PARAM_PLAN_FILENAME,ho as EXTENSION_POLICY_TIER,Bj as EditTool,fh as EmptyWalletMenuShownEvent,lf as EndSessionEvent,Xk as ExecutionLifecycleService,Dp as ExitCodes,Tn as ExperimentFlags,If as ExtensionDisableEvent,Gf as ExtensionEnableEvent,Cf as ExtensionInstallEvent,ep as ExtensionIntegrityDataSchema,ip as ExtensionIntegrityManager,fp as ExtensionIntegrityMapSchema,yo as ExtensionLoader,Ef as ExtensionUninstallEvent,Ff as ExtensionUpdateEvent,pj as FETCH_FAILED_MESSAGE,Pf as FORCE_FILE_STORAGE_ENV_VAR,pn as FRONTMATTER_REGEX,zd as FatalAuthenticationError,Fd as FatalCancellationError,Cd as FatalConfigError,yd as FatalError,Ad as FatalInputError,Bd as FatalSandboxError,Ed as FatalToolExecutionError,Dd as FatalTurnLimitedError,zg as FetchAdminControlsResponseSchema,dl as FetchError,Ek as FileDiscoveryService,Hc as FileExclusions,pe as FileOperation,Wi as FileSchema,Gp as FileSearchFactory,rf as FlashFallbackEvent,Kp as FolderTrustDiscoveryService,Hd as ForbiddenError,Ag as G1_CREDIT_TYPE,Eg as G1_UTM_CAMPAIGNS,Qi as GEMINI_CLI_COMPANION_EXTENSION_NAME,Yk as GEMINI_CLI_IDENTIFICATION_ENV_VAR,Zk as GEMINI_CLI_IDENTIFICATION_ENV_VAR_VALUE,G as GEMINI_DIR,vk as GEMINI_IGNORE_FILE_NAME,da as GEMINI_MODEL_ALIAS_AUTO,fa as GEMINI_MODEL_ALIAS_FLASH,ga as GEMINI_MODEL_ALIAS_FLASH_LITE,ea as GEMINI_MODEL_ALIAS_PRO,ae as GEN_AI_AGENT_DESCRIPTION,$d as GEN_AI_AGENT_NAME,ne as GEN_AI_CONVERSATION_ID,be as GEN_AI_INPUT_MESSAGES,_d as GEN_AI_OPERATION_NAME,ce as GEN_AI_OUTPUT_MESSAGES,fe as GEN_AI_PROMPT_NAME,de as GEN_AI_REQUEST_MODEL,ee as GEN_AI_RESPONSE_MODEL,le as GEN_AI_SYSTEM_INSTRUCTIONS,he as GEN_AI_TOOL_CALL_ID,me as GEN_AI_TOOL_DEFINITIONS,ie as GEN_AI_TOOL_DESCRIPTION,ge as GEN_AI_TOOL_NAME,je as GEN_AI_USAGE_INPUT_TOKENS,ke as GEN_AI_USAGE_OUTPUT_TOKENS,rb as GET_INTERNAL_DOCS_TOOL_NAME,hc as GLOB_DISPLAY_NAME,Da as GLOB_TOOL_NAME,H as GOOGLE_ACCOUNTS_FILENAME,pd as GOVERNANCE_FILES,jc as GREP_DISPLAY_NAME,Ma as GREP_PARAM_AFTER,Na as GREP_PARAM_BEFORE,La as GREP_PARAM_CONTEXT,Ga as GREP_PARAM_EXCLUDE_PATTERN,Ka as GREP_PARAM_FIXED_STRINGS,Fa as GREP_PARAM_INCLUDE_PATTERN,Ia as GREP_PARAM_MAX_MATCHES_PER_FILE,Ha as GREP_PARAM_NAMES_ONLY,Oa as GREP_PARAM_NO_IGNORE,Ja as GREP_PARAM_TOTAL_MAX_MATCHES,Ea as GREP_TOOL_NAME,Rg as GcpLogExporter,Qg as GcpMetricExporter,Pg as GcpTraceExporter,Nl as GeminiChat,oe as GeminiCliOperation,nm as GeminiClient,Ql as GeminiEventType,ue as GenAiOperationName,ve as GenAiProviderName,we as GenAiTokenType,Bk as GitIgnoreParser,om as GitService,Lk as GlobTool,Gk as GrepTool,$l as HOOKS_CONFIG_FIELDS,sh as HighWaterMarkTracker,_m as HookAggregator,an as HookEventHandler,_l as HookEventName,$m as HookPlanner,Ym as HookRegistry,Zm as HookRunner,bn as HookSystem,am as HookType,cj as IDEConnectionStatus,Lg as IDE_DEFINITIONS,Ri as IDE_MAX_OPEN_FILES,Si as IDE_MAX_SELECTED_TEXT_LENGTH,Ti as IDE_REQUEST_TIMEOUT_MS,qj as INCOMPLETE_JSON_MESSAGE,Dl as INITIAL_HISTORY_LENGTH,wk as INTEGRITY_FILENAME,xk as INTEGRITY_KEY_FILENAME,dj as IdeClient,zf as IdeConnectionEvent,yf as IdeConnectionType,Yi as IdeContextNotificationSchema,Xi as IdeContextSchema,Ui as IdeContextStore,Zi as IdeDiffAcceptedNotificationSchema,$i as IdeDiffClosedNotificationSchema,_i as IdeDiffRejectedNotificationSchema,m as InProcessCheckerType,Zj as IneligibleTierError,qg as IneligibleTierReasonCode,vg as InitiationMethod,$n as InjectionService,hp as IntegrityDataStatus,cp as IntegrityStatus,gp as IntegrityStoreSchema,Kl as InvalidStreamError,ap as JsonFormatter,Hm as JsonStreamEventType,yk as KEYCHAIN_SERVICE_NAME,Nf as KEYCHAIN_TEST_PREFIX,Mf as KeychainSchema,Qf as KeychainService,Rf as KeychainTokenStorage,D as Kind,Ak as LSTool,ic as LS_DISPLAY_NAME,Qa as LS_PARAM_IGNORE,Pa as LS_TOOL_NAME,_p as LegacyAgentSession,jf as LlmRole,Sn as LocalAgentExecutor,rd as LocalSandboxManager,zp as Logger,dk as LoggingContentGenerator,Nb as MAX_FILE_SIZE_MB,Mb as MAX_LINE_LENGTH_TEXT_FILE,Do as MCPDiscoveryState,Ao as MCPOAuthProvider,yn as MCPOAuthTokenStorage,Yo as MCPServerConfig,Co as MCPServerStatus,Bo as MCP_DEFAULT_TIMEOUT_MSEC,lo as MCP_EXCLUDED_PRIORITY,Ob as MCP_QUALIFIED_NAME_SEPARATOR,Pb as MCP_TOOL_PREFIX,Cc as MEDIA_FILE_PATTERNS,qb as MEMORY_PARAM_FACT,uc as MEMORY_SECTION_HEADER,pb as MEMORY_TOOL_NAME,Hg as MIN_CREDIT_BALANCE,E as MUTATOR_KINDS,Eo as McpClient,xg as McpConfigDefinitionSchema,re as MemoryMetricType,uh as MemoryMonitor,zc as MemoryTool,Wm as MessageBus,h as MessageBusType,wp as MessageSenderType,hj as ModelNotFoundError,Hf as ModelSlashCommandEvent,Bi as NO_EDITOR_AVAILABLE_ERROR,Bf as NetworkRetryAttemptEvent,qd as NoopSandboxManager,jm as NotificationType,xn as OAuthUtils,al as OUTPUT_UPDATE_INTERVAL_MS,Bg as OVERAGE_ELIGIBLE_MODELS,sg as OnboardUserStatusCode,Kf as OnboardingStartEvent,Lf as OnboardingSuccessEvent,aj as OpenDiffRequestSchema,Gm as OutputFormat,bh as OverageMenuShownEvent,dh as OverageOptionSelectedEvent,ya as PARAM_CASE_SENSITIVE,Ca as PARAM_DESCRIPTION,wa as PARAM_DIR_PATH,Ba as PARAM_FILE_FILTERING_OPTIONS,va as PARAM_FILE_PATH,xa as PARAM_PATTERN,Aa as PARAM_RESPECT_GEMINI_IGNORE,za as PARAM_RESPECT_GIT_IGNORE,Ib as PLAN_MODE_PARAM_REASON,rc as PLAN_MODE_TOOLS,W as PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL,Y as PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,V as PREVIEW_GEMINI_3_1_MODEL,X as PREVIEW_GEMINI_FLASH_MODEL,U as PREVIEW_GEMINI_MODEL,ba as PREVIEW_GEMINI_MODEL_AUTO,n as PRIORITY_SUBAGENT_TOOL,q as PRIORITY_YOLO_ALLOW_ALL,Ec as PYTHON_EXCLUDES,qe as PerformanceMetricType,vl as PlanErrorMessages,j as PolicyDecision,Xm as PolicyEngine,dp as PolicyIntegrityManager,mm as PreCompressTrigger,el as PrivateIpError,Xj as ProjectIdRequiredError,i as QuestionType,gc as READ_FILE_DISPLAY_NAME,Ta as READ_FILE_PARAM_END_LINE,Sa as READ_FILE_PARAM_START_LINE,Ra as READ_FILE_TOOL_NAME,mc as READ_MANY_FILES_DISPLAY_NAME,kb as READ_MANY_FILES_TOOL_NAME,mb as READ_MANY_PARAM_EXCLUDE,lb as READ_MANY_PARAM_INCLUDE,nb as READ_MANY_PARAM_RECURSIVE,ob as READ_MANY_PARAM_USE_DEFAULT_EXCLUDES,F as READ_ONLY_KINDS,Kb as REFERENCE_CONTENT_END,Jb as REFERENCE_CONTENT_START,Td as ROOT_SCHEDULER_ID,th as RateLimiter,Fk as ReadFileTool,$p as ReadManyFilesTool,kk as RecordingContentGenerator,Kj as ReleaseChannel,wg as RequiredMcpServerConfigSchema,qk as ResourceRegistry,jj as RetryableQuotaError,wf as RewindEvent,Jk as RipGrepTool,_k as SCROLLBACK_LIMIT,zk as SECRET_KEY_ACCOUNT,Of as SECRET_PREFIX,Zd as SERVICE_DESCRIPTION,Yd as SERVICE_NAME,Yg as SESSION_FILE_PREFIX,Va as SHELL_PARAM_COMMAND,Wa as SHELL_PARAM_IS_BACKGROUND,Ua as SHELL_TOOL_NAME,$c as SHELL_TOOL_NAMES,ub as SKILL_PARAM_NAME,kn as SUBAGENT_CANCELLED_ERROR_MESSAGE,jn as SUBAGENT_REJECTED_ERROR_PREFIX,Il as SYNTHETIC_THOUGHT_SIGNATURE,Fc as SYSTEM_FILE_EXCLUDES,qm as SandboxedFileSystemService,En as Scheduler,d as SchemaValidator,af as SemanticAttributes,lm as SessionEndReason,km as SessionStartSource,$k as ShellExecutionService,cl as ShellTool,bl as ShellToolInvocation,zo as SimpleExtensionLoader,Un as SkillManager,vf as SlashCommandStatus,Xd as SpanStatusCode,pm as StandardFileSystemService,kf as StartSessionEvent,Jh as StartupProfiler,T as Storage,Hl as StreamEventType,bp as StreamJsonFormatter,hn as SubagentActivityErrorType,vm as TASK_TYPE_LABELS,gb as TODOS_ITEM_PARAM_DESCRIPTION,hb as TODOS_ITEM_PARAM_STATUS,fb as TODOS_PARAM_TODOS,Yb as TOOLS_REQUIRING_NARROWING,nc as TOOL_LEGACY_ALIASES,Zc as TOOL_OUTPUTS_DIR,bc as TRACKER_ADD_DEPENDENCY_TOOL_NAME,Zb as TRACKER_CREATE_TASK_TOOL_NAME,$b as TRACKER_GET_TASK_TOOL_NAME,ac as TRACKER_LIST_TASKS_TOOL_NAME,_b as TRACKER_UPDATE_TASK_TOOL_NAME,cc as TRACKER_VISUALIZE_TOOL_NAME,oo as TRUSTED_MCP_SERVER_PRIORITY,wm as TaskStatus,xm as TaskStatusSchema,tm as TaskType,um as TaskTypeSchema,Lh as TelemetryTarget,ij as TerminalQuotaError,Vd as ToolCallDecision,nf as ToolCallEvent,C as ToolConfirmationOutcome,b as ToolErrorType,se as ToolExecutionPhase,Dn as ToolExecutor,Df as ToolOutputTruncatedEvent,sk as ToolRegistry,Em as TrackerAddDependencyTool,Am as TrackerCreateTaskTool,Cm as TrackerGetTaskTool,Dm as TrackerListTasksTool,Um as TrackerService,ym as TrackerTaskSchema,Bm as TrackerUpdateTaskTool,Fm as TrackerVisualizeTool,Sl as Turn,mj as UPGRADE_URL_PAGE,jo as USER_POLICY_TIER,Kn as USER_STEERING_INSTRUCTION,_g as UiTelemetryService,Jd as UnauthorizedError,Pd as UserAccountManager,mf as UserPromptEvent,rg as UserTierId,aa as VALID_GEMINI_MODELS,Yj as ValidationCancelledError,kj as ValidationRequiredError,Wd as ValueType,lc as WEB_FETCH_DISPLAY_NAME,jb as WEB_FETCH_PARAM_PROMPT,ib as WEB_FETCH_TOOL_NAME,kc as WEB_SEARCH_DISPLAY_NAME,db as WEB_SEARCH_PARAM_QUERY,cb as WEB_SEARCH_TOOL_NAME,io as WORKSPACE_POLICY_TIER,dc as WRITE_FILE_DISPLAY_NAME,Ya as WRITE_FILE_PARAM_CONTENT,Xa as WRITE_FILE_TOOL_NAME,eb as WRITE_TODOS_TOOL_NAME,jq as WarningPriority,Jf as WebFetchFallbackAttemptEvent,ql as WebFetchTool,rl as WebSearchTool,nd as WindowsSandboxManager,Vm as WorkspaceContext,lq as WorktreeService,Ej as WriteFileTool,sm as WriteTodosTool,Lj as _clearCache,Go as addMCPStatusChangeListener,tp as addMemory,Ki as allowEditorTypeInSandbox,ri as appendToLastTextPart,Ap as applyAdminAllowlist,xj as applyReplacement,Bp as applyRequiredServers,yl as assumeExhaustive,kg as authEvents,Fg as buildG1Url,zm as buildTodosReturnDisplay,Tp as buildToolResponseData,Ln as buildUserSteeringHintPrompt,mh as bytesToMB,yj as calculateReplacement,Hk as canUseRipgrep,Pm as categorizeAndConcatenate,zl as checkExhaustive,lj as classifyGoogleError,sq as cleanupWorktree,jk as clearApiKey,og as clearCachedCredentialFile,fo as clearEmittedPolicyWarnings,ng as clearOauthClientCache,hf as computeModelAddedAndRemovedLines,Lm as concatenateInstructions,Oo as connectAndDiscover,Uo as connectToMcpServer,Rp as contentPartsToGeminiParts,Wk as convertColorToHex,pl as convertGithubUrlToRaw,Jp as convertSessionToClientHistory,si as convertToFunctionResponse,Ip as convertToRestPayload,Sd as coreEvents,Wj as createCache,ek as createCodeAssistContentGenerator,ok as createContentGenerator,nk as createContentGeneratorConfig,Hj as createConversationOffered,cm as createHookOutput,wo as createPolicyEngineConfig,xo as createPolicyUpdater,kl as createSafeProxyAgent,od as createSandboxManager,Hh as createSessionId,Up as createTranslationState,Vo as createTransport,Rn as createUnauthorizedToolError,Vf as createWorkingStdio,pq as createWorktree,mq as createWorktreeService,a as debugLogger,yp as decodeTagName,Jm as deduplicatePathsByFileIdentity,Nc as detectBOM,Tk as detectEncodingFromBuffer,Uc as detectFileType,Ng as detectIdeFromEnv,df as detectLineEnding,cg as disableBracketedPasteMode,_f as disableKittyKeyboardProtocol,eg as disableLineWrapping,ag as disableModifyOtherKeys,Yf as disableMouseEvents,Wf as disableMouseTracking,Mo as discoverMcpTools,Qo as discoverPrompts,Ro as discoverResources,Po as discoverTools,Cn as doesToolInvocationMatch,bg as enableBracketedPasteMode,Zf as enableKittyKeyboardProtocol,dg as enableLineWrapping,$f as enableModifyOtherKeys,Xf as enableMouseEvents,xp as encodeTagName,Ik as ensureRgPath,fg as enterAlternateScreen,N as escapePath,fd as escapeShellArg,ck as estimateContextBreakdown,md as execStreaming,gg as exitAlternateScreen,Ic as extractExtensionsFromPatterns,Wn as fetchAdminControls,Xn as fetchAdminControlsOnce,ll as fetchWithTimeout,Wc as fileExists,Fp as filter,Dk as findGitRoot,qi as flatMapTextParts,wn as flattenMemory,Qh as flushTelemetry,Nn as formatBackgroundCompletionForModel,nh as formatBytes,mp as formatCheckpointDisplayList,tq as formatForSpeech,Sb as formatMcpToolName,uo as formatPolicyError,Ij as formatProtoJsonDuration,Yc as formatTruncatedToolOutput,Mn as formatUserHintsForModel,Qp as geminiPartsToContentParts,lp as generateCheckpointFileName,Qn as generateFastAckText,On as generateSteeringAckMessage,Mp as generateSummary,Wb as generateValidName,ph as getActivityDetector,Dh as getActivityMonitor,_n as getAdminBlockedMcpServersMessage,Zn as getAdminErrorMessage,nn as getAgentCardLoadOptions,xc as getAllGeminiMdFilenames,Ko as getAllMCPServerStatuses,ro as getAlwaysAllowPriorityFraction,Al as getApprovalModeDescription,mk as getAuthTypeFromEnv,mg as getAvailablePort,Qk as getCachedEncodingForBuffer,pp as getCheckpointInfoList,Ai as getCitations,fk as getCodeAssistServer,id as getCommandRoot,jd as getCommandRoots,kq as getCompatibilityWarnings,Vl as getCompressionPrompt,jg as getConsentForOauth,Me as getConventionAttributes,Ul as getCoreSystemPrompt,Dj as getCorrectedFileContent,wc as getCurrentGeminiMdFilename,Oi as getDiffCommand,El as getDirectoryContextString,la as getDisplayString,Ji as getEditorCommand,Gi as getEditorDisplayName,Fl as getEnvironmentContext,Om as getEnvironmentMemoryPaths,wd as getErrorMessage,zj as getErrorReplaceResult,gj as getErrorStatus,xd as getErrorType,cn as getExperiments,Nm as getExtensionMemoryPaths,gf as getFileDiffFromResultDisplay,Mk as getFolderStructure,Cp as getFsErrorMessage,ui as getFunctionCalls,wi as getFunctionCallsAsJson,vi as getFunctionCallsFromParts,xi as getFunctionCallsFromPartsAsJson,Gg as getG1CreditBalance,yc as getGlobalMemoryFilePath,Mm as getGlobalMemoryPaths,bm as getHookKey,k as getHookSource,Np as getIdeInstaller,Gl as getInitialChatHistory,Lo as getMCPDiscoveryState,Op as getMCPServerPrompts,Jo as getMCPServerStatus,wh as getMemoryMonitor,lg as getOauthClient,Jj as getPackageJson,Bl as getPlanModeExitMessage,so as getPolicyDirectories,to as getPolicyTier,Lp as getPreviousSession,P as getProjectHash,nq as getProjectRootForWorktree,wj as getPromptIdWithFallback,Ok as getPty,Rc as getRealPath,Mj as getReleaseChannel,on as getRemoteAgentTargetUrl,pi as getResponseText,ti as getResponseTextFromParts,rj as getRetryErrorType,dd as getShellConfiguration,Pc as getSpecificMimeType,yi as getStructuredResponse,zi as getStructuredResponseFromParts,Rk as getSystemEncoding,oc as getToolAliases,kp as getToolCallDataSchema,Bn as getToolSuggestion,np as getTruncatedCheckpointNames,Qj as getVersion,oq as getWorktreePath,nj as handleFallback,w as hasCycleInSchema,To as hasNetworkTransport,gd as hasRedirection,y as hasSummary,Hi as hasValidEditorCommand,Ii as hasValidEditorCommandAsync,rq as hasWorktreeChanges,I as homedir,Vi as ideContextStore,Ch as initializeActivityMonitor,vh as initializeMemoryMonitor,bd as initializeShellParsers,Ph as initializeTelemetry,So as invokeMcpPrompt,vd as isAbortError,Nd as isAccountSuspendedError,ua as isActiveModel,il as isAddressPrivate,ak as isApiError,gq as isAppleTerminal,Od as isAuthenticationError,sa as isAutoModel,r as isBackgroundExecutionData,cf as isBinary,Tc as isBinaryFile,Mg as isCloudShell,ul as isCompletedAskUserTool,qa as isCustomModel,fq as isDumbTerminal,Aj as isEditToolParams,Li as isEditorAvailable,Mi as isEditorAvailableAsync,Sc as isEmpty,Wo as isEnabled,c as isFatalToolError,B as isFileDiff,pa as isGemini2Model,oa as isGemini3Model,qq as isGeminiWorktree,Ck as isGitRepository,dq as isGnuScreen,z as isGrepResult,Di as isGuiEditor,ig as isHeadlessMode,Pl as isInvalidArgumentError,bq as isJetBrainsTerminal,A as isListResult,gl as isLoopbackHost,eq as isLowColorTmux,Tb as isMcpToolAnnotation,Qb as isMcpToolName,Nj as isNightly,ud as isNodeError,Cg as isOverageEligibleModel,Xe as isPerformanceMonitoringActive,Oj as isPreview,ma as isPreviewModel,hl as isPrivateIp,jl as isPrivateIpAsync,na as isProModel,g as isRecord,sj as isRetryableError,Ol as isSchemaDepthError,Pj as isStable,bk as isStructuredError,x as isStructuredToolResult,ln as isSubagentProgress,R as isSubpath,Oh as isTelemetrySdkInitialized,Ei as isTerminalEditor,cq as isTmux,v as isTool,mn as isToolActivityError,zn as isToolCallResponseInfo,rh as isUserActive,Zl as isUserVisibleHook,Jl as isValidNonThoughtTextPart,sc as isValidToolName,ed as isWindows,aq as isWindows10,Qc as isWithinRoot,Cj as isWriteFileToolParams,e as jsonToMarkdown,jp as listExtensions,vp as listMemoryFiles,vn as loadAgentsFromDirectory,hk as loadApiKey,vo as loadExtensionPolicies,Sm as loadJitSubdirectoryMemory,bo as loadPoliciesFromToml,Qm as loadServerHierarchicalMemory,rn as loadSkillFromFile,qn as loadSkillsFromDir,Lc as loadWasmBinary,Yh as logApiError,Wh as logApiRequest,Zh as logApiResponse,ni as logBillingEvent,ci as logChatCompression,Sh as logCliConfiguration,Vg as logConsecaPolicyGeneration,Wg as logConsecaVerdict,bi as logConversationFinishedEvent,ji as logExtensionDisable,ii as logExtensionEnable,fi as logExtensionInstallEvent,gi as logExtensionUninstall,hi as logExtensionUpdateEvent,Xh as logFlashFallback,ai as logIdeConnection,ei as logModelSlashCommand,di as logNetworkRetryAttempt,li as logOnboardingStart,mi as logOnboardingSuccess,$h as logRewind,_h as logSlashCommand,Uh as logToolCall,Vh as logToolOutputTruncated,Th as logUserPrompt,ki as logWebFetchFallbackAttempt,xf as makeChatCompressionEvent,uq as makeFakeConfig,M as makeRelative,uf as makeSlashCommandEvent,Yp as mapError,Wp as mapFinishReason,Xp as mapHttpToGrpcStatus,Zp as mapUsage,un as markdownToAgentDefinition,Fo as mcpServerRequiresOAuth,Q as normalizePath,Jn as normalizeSpace,nl as normalizeUrl,ej as openBrowserSecurely,Pi as openDiff,tn as parseAgentMarkdown,Hp as parseAndFormatApiError,Sg as parseBooleanEnvFlag,cd as parseCommandDetails,td as parseGoogleApiError,Rb as parseMcpToolName,ol as parsePrompt,Tg as parseTelemetryTargetValue,Xg as parseThought,Cl as partListUnionToString,oi as partToString,Uf as patchStdio,rp as performInit,qp as performRestore,No as populateMcpServerCommand,op as processRestorableToolCalls,Vc as processSingleFileContent,vj as promptIdContext,Oc as readFileWithEncoding,Km as readGeminiMdFiles,vq as readPathFromWorkspace,ao as readPolicyFiles,Kc as readWasmBinaryFromDisk,Ae as recordApiErrorMetrics,Te as recordApiRequestBreakdown,Ze as recordApiResponseMetrics,We as recordBaselineComparison,He as recordContentRetry,Ie as recordContentRetryFailure,Fj as recordConversationOffered,Pe as recordCpuUsage,$e as recordCreditPurchaseClick,xh as recordCurrentMemoryUsage,ze as recordCustomApiResponseMetrics,ye as recordCustomTokenUsageMetrics,De as recordExitFail,Be as recordFileOperationMetric,Ce as recordFlickerFrame,Le as recordGenAiClientOperationDuration,Ke as recordGenAiClientTokenUsage,Fe as recordInvalidChunk,Oe as recordMemoryUsage,Je as recordModelRoutingMetrics,_e as recordOverageOptionSelected,Ve as recordPerformanceRegression,Ue as recordPerformanceScore,Ge as recordRetryAttemptMetrics,Ee as recordSlowRender,Ne as recordStartupPerformance,Se as recordTokenEfficiency,Ye as recordTokenUsageMetrics,Gj as recordToolCallInteractions,xe as recordToolCallMetrics,Re as recordToolExecutionBreakdown,Qe as recordToolQueueDepth,qh as recordUserActivity,up as refreshMemory,Rm as refreshServerHierarchicalMemory,Ho as removeMCPStatusChangeListener,gk as resetApiKeyCacheForTesting,Pk as resetEncodingCache,pg as resetOauthClientForTesting,_j as resetUserDataCacheForTesting,Rj as resetVersionCache,ka as resolveClassifierModel,Ni as resolveEditorAsync,ad as resolveExecutable,ja as resolveModel,Tl as resolvePathFromEnv,Ug as resolveTelemetrySettings,S as resolveToRealPath,tj as retryWithBackoff,Ih as runInDevTraceSpan,f as safeJsonToMarkdown,bf as safeLiteralReplace,ff as safeTemplateReplace,Vn as sanitizeAdminSettings,Xc as sanitizeFilenamePart,fl as sanitizeHostname,sd as sanitizePaths,ik as saveApiKey,_c as saveTruncatedToolOutput,Fn as scheduleAgentTools,Vk as serializeTerminalToObject,Gh as sessionId,vc as setGeminiMdFilename,ml as setGlobalProxy,$j as setupUser,L as shortenPath,rm as shouldAttemptBrowserLaunch,Ig as shouldAutoUseCredits,hg as shouldEnterAlternateScreen,An as shouldHideToolCall,fj as shouldLaunchBrowser,Kg as shouldShowEmptyWalletMenu,Jg as shouldShowOverageMenu,sp as showMemory,Rh as shutdownTelemetry,Kk as sortFileEntries,ld as spawnAsync,hd as splitCommands,Eh as startGlobalActivityMonitoring,yh as startGlobalMemoryMonitoring,Kh as startupProfiler,Yn as stopAdminControlsPolling,Fh as stopGlobalActivityMonitoring,zh as stopGlobalMemoryMonitoring,kd as stripShellWrapper,hq as supports256Colors,ra as supportsModernFeatures,ta as supportsMultimodalFunctionResponse,iq as supportsTrueColor,K as tildeifyPath,J as tmpdir,Md as toFriendlyError,Xl as tokenLimit,Sp as toolResultDisplayToContentParts,Vp as translateEvent,Pn as truncateFastAckInput,ef as truncateString,$g as uiTelemetryService,O as unescapePath,Io as updateMCPServerStatus,pk as validateBaseUrl,co as validateMcpPolicyToolNames,xl as validatePlanContent,wl as validatePlanPath,Sk as windowsCodePageToEncoding,Dg as wrapInAccountChooser,Tf as writeToStderr,Sf as writeToStdout};
@@ -1,6 +1,6 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import"./chunk-APAUY2EN.js";import{Sd as _,Ud as z,b as d}from"./chunk-SX66NO2U.js";import{b as S}from"./chunk-TWIC4BKL.js";import"./chunk-JAFVB6DI.js";import"./chunk-A5A5SUZN.js";import"./chunk-YUXORC52.js";import G from"node:http";import J from"node:https";import V from"node:zlib";import M from"node:fs";import X from"node:path";import{EventEmitter as te}from"node:events";var O="x-activity-request-id",oe=100;function se(s){return!Array.isArray(s)}function P(s){return typeof s=="object"&&s!==null&&!(s instanceof URL)&&!Array.isArray(s)}function $(s){return typeof s=="function"}function x(s,e){if(e.length===0)return s({});if(e.length===1){let t=e[0];return typeof t=="string"||t instanceof URL||P(t)?s(t):s({})}if(e.length===2){let t=e[0],o=e[1];if((typeof t=="string"||t instanceof URL)&&($(o)||P(o))||P(t)&&$(o))return s(t,o)}if(e.length===3){let t=e[0],o=e[1],n=e[2];if((typeof t=="string"||t instanceof URL)&&P(o)&&$(n))return s(t,o,n)}return s({})}var N=class s extends te{static instance;isInterceptionEnabled=!1;requestStartTimes=new Map;networkLoggingEnabled=!1;networkBufferMap=new Map;networkBufferIds=[];consoleBuffer=[];bufferLimit=10;static getInstance(){return s.instance||(s.instance=new s),s.instance}enableNetworkLogging(){this.networkLoggingEnabled=!0,this.emit("network-logging-enabled")}disableNetworkLogging(){this.networkLoggingEnabled=!1}isNetworkLoggingEnabled(){return this.networkLoggingEnabled}drainBufferedLogs(){let e=[];for(let o of this.networkBufferIds){let n=this.networkBufferMap.get(o);n&&e.push(...n)}let t=[...this.consoleBuffer];return this.networkBufferMap.clear(),this.networkBufferIds=[],this.consoleBuffer=[],{network:e,console:t}}getBufferedLogs(){let e=[];for(let t of this.networkBufferIds){let o=this.networkBufferMap.get(t);o&&e.push(...o)}return{network:e,console:[...this.consoleBuffer]}}clearBufferedLogs(){this.networkBufferMap.clear(),this.networkBufferIds=[],this.consoleBuffer=[]}stringifyHeaders(e){let t={};if(!e)return t;if(e instanceof Headers)e.forEach((o,n)=>{t[n.toLowerCase()]=o});else if(typeof e=="object"&&e!==null)for(let[o,n]of Object.entries(e))t[o.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n);return t}sanitizeNetworkLog(e){if(!e||typeof e!="object")return e;let t={...e};if("headers"in t&&t.headers){let o={...t.headers};for(let n of Object.keys(o))["authorization","cookie","x-goog-api-key"].includes(n.toLowerCase())&&(o[n]="[REDACTED]");t.headers=o}if("response"in t&&t.response?.headers){let o={...t.response.headers};for(let n of Object.keys(o))["set-cookie"].includes(n.toLowerCase())&&(o[n]="[REDACTED]");t.response={...t.response,headers:o}}return t}emitNetworkEvent(e){this.safeEmitNetwork(e)}safeEmitNetwork(e){let t=this.sanitizeNetworkLog(e),o=t.id;if(!this.networkBufferMap.has(o)&&(this.networkBufferIds.push(o),this.networkBufferMap.set(o,[]),this.networkBufferIds.length>this.bufferLimit)){let n=this.networkBufferIds.shift();this.networkBufferMap.delete(n)}this.networkBufferMap.get(o).push(t),this.emit("network",t)}enable(){this.isInterceptionEnabled||(this.isInterceptionEnabled=!0,this.patchGlobalFetch(),this.patchNodeHttp())}patchGlobalFetch(){if(!global.fetch)return;let e=global.fetch;global.fetch=async(t,o)=>{let n=typeof t=="string"?t:t instanceof URL?t.toString():t.url;if(n.includes("127.0.0.1")||n.includes("localhost"))return e(t,o);let r=Math.random().toString(36).substring(7),i=(o?.method||"GET").toUpperCase(),l={...o},p=new Headers(o?.headers||{});p.set(O,r),l.headers=p;let a="";o?.body&&(typeof o.body=="string"?a=o.body:o.body instanceof URLSearchParams&&(a=o.body.toString())),this.requestStartTimes.set(r,Date.now()),this.safeEmitNetwork({id:r,timestamp:Date.now(),method:i,url:n,headers:this.stringifyHeaders(l.headers),body:a,pending:!0});try{let h=await e(t,l),k=h.clone();if(k.body){let b=k.body.getReader(),y=new TextDecoder,m=[],L=0;(async()=>{try{for(;;){let{done:c,value:f}=await b.read();if(c)break;let w=y.decode(f,{stream:!0});m.push(w),this.safeEmitNetwork({id:r,pending:!0,chunk:{index:L++,data:w,timestamp:Date.now()}})}let v=this.requestStartTimes.get(r),g=v?Date.now()-v:0;this.requestStartTimes.delete(r),this.safeEmitNetwork({id:r,pending:!1,response:{status:h.status,headers:this.stringifyHeaders(h.headers),body:m.join(""),durationMs:g}})}catch(v){let g=v instanceof Error?v.message:String(v);this.safeEmitNetwork({id:r,pending:!1,error:`Failed to read response body: ${g}`})}})()}else k.text().then(b=>{let y=this.requestStartTimes.get(r),m=y?Date.now()-y:0;this.requestStartTimes.delete(r),this.safeEmitNetwork({id:r,pending:!1,response:{status:h.status,headers:this.stringifyHeaders(h.headers),body:b,durationMs:m}})}).catch(b=>{let y=b instanceof Error?b.message:String(b);this.safeEmitNetwork({id:r,pending:!1,error:`Failed to read response body: ${y}`})});return h}catch(h){this.requestStartTimes.delete(r);let k=h instanceof Error?h.message:String(h);throw this.safeEmitNetwork({id:r,pending:!1,error:k}),h}}}patchNodeHttp(){let e=this,t=G.request,o=J.request,n=(r,i,l)=>{let p=i[0],a;typeof p=="string"||p instanceof URL?a=p:p&&typeof p=="object"?a=P(p)?p:{}:a={};let h="";if(typeof a=="string"?h=a:a instanceof URL?h=a.href:h=("href"in a&&typeof a.href=="string"?a.href:"")||`${l}//${a.hostname||a.host||"localhost"}${a.path||"/"}`,h.includes("127.0.0.1")||h.includes("localhost"))return x(r,i);let k=typeof a=="object"&&a!==null&&!(a instanceof URL)?a.headers:void 0,b={};if(k&&se(k)&&(b=k),b[O])return delete b[O],x(r,i);let y=Math.random().toString(36).substring(7);this.requestStartTimes.set(y,Date.now());let m=x(r,i),L=[],A=m.write,v=m.end;return m.write=function(g,...c){if(g){let f=c[0],w=typeof f=="string"&&Buffer.isEncoding(f)?f:void 0;L.push(Buffer.isBuffer(g)?g:typeof g=="string"?Buffer.from(g,w):Buffer.from(g instanceof Uint8Array?g:String(g)))}return A.apply(this,[g,...c])},m.end=function(g,...c){let f=typeof g=="function"?void 0:g;if(f){let u=c[0],I=typeof u=="string"&&Buffer.isEncoding(u)?u:void 0;L.push(Buffer.isBuffer(f)?f:typeof f=="string"?Buffer.from(f,I):Buffer.from(f instanceof Uint8Array?f:String(f)))}let w=Buffer.concat(L).toString("utf8");return e.safeEmitNetwork({id:y,timestamp:Date.now(),method:m.method||"GET",url:h,headers:e.stringifyHeaders(m.getHeaders()),body:w,pending:!0}),v.apply(this,[g,...c])},m.on("response",g=>{let c=[],f=0;g.on("data",w=>{let u=Buffer.from(w);c.push(u),e.safeEmitNetwork({id:y,pending:!0,chunk:{index:f++,data:u.toString("utf8"),timestamp:Date.now()}})}),g.on("end",()=>{let w=Buffer.concat(c),u=g.headers["content-encoding"],I=D=>{let q=D.toString("utf8"),W=e.requestStartTimes.get(y),ee=W?Date.now()-W:0;e.requestStartTimes.delete(y),e.safeEmitNetwork({id:y,pending:!1,response:{status:g.statusCode||0,headers:e.stringifyHeaders(g.headers),body:q,durationMs:ee}})};u==="gzip"?V.gunzip(w,(D,q)=>{I(D?w:q)}):u==="deflate"?V.inflate(w,(D,q)=>{I(D?w:q)}):I(w)})}),m.on("error",g=>{e.requestStartTimes.delete(y);let c=g.message;e.safeEmitNetwork({id:y,pending:!1,error:c})}),m};Object.defineProperty(G,"request",{value:(r,i,l)=>n(t,l!==void 0?[r,i,l]:i!==void 0?[r,i]:[r],"http:"),writable:!0,configurable:!0}),Object.defineProperty(J,"request",{value:(r,i,l)=>n(o,l!==void 0?[r,i,l]:i!==void 0?[r,i]:[r],"https:"),writable:!0,configurable:!0})}logConsole(e){let t={...e,timestamp:Date.now()};this.consoleBuffer.push(t),this.consoleBuffer.length>this.bufferLimit&&this.consoleBuffer.shift(),this.emit("console",t)}};function ne(s,e,t){let o=t||(e.storage?X.join(e.storage.getProjectTempLogsDir(),`session-${e.getSessionId()}.jsonl`):null);if(!o)return;let n=X.dirname(o);M.existsSync(n)||M.mkdirSync(n,{recursive:!0});let r=(i,l)=>{try{let p=JSON.stringify({type:i,payload:l,sessionId:e.getSessionId(),timestamp:Date.now()})+`
3
- `;M.promises.appendFile(o,p).catch(a=>{d.error("Failed to write to activity log:",a)})}catch(p){d.error("Failed to prepare activity log entry:",p)}};s.on("console",i=>r("console",i)),s.on("network",i=>r("network",i))}function Z(s,e,t,o,n){let r=[],i=null,l=null,p=null,a=null,h=0,k=2,b=()=>{try{i=new S(`ws://${e}:${t}/ws`),i.on("open",()=>{d.debug(`WebSocket connected to ${e}:${t}`),h=0,m({type:"register",sessionId:o.getSessionId(),timestamp:Date.now()})}),i.on("message",c=>{try{let f=JSON.parse(c.toString());typeof f=="object"&&f!==null&&"type"in f&&typeof f.type=="string"&&y({type:f.type,sessionId:"sessionId"in f&&typeof f.sessionId=="string"?f.sessionId:void 0})}catch(f){d.debug("Invalid WebSocket message:",f)}}),i.on("close",()=>{d.debug(`WebSocket disconnected from ${e}:${t}`),v(),g()}),i.on("error",c=>{d.debug("WebSocket error:",c)})}catch(c){d.debug("Failed to connect WebSocket:",c),g()}},y=c=>{switch(c.type){case"registered":p=c.sessionId||null,d.debug(`WebSocket session registered: ${p}`),a&&clearInterval(a),a=setInterval(()=>{m({type:"pong",timestamp:Date.now()})},15e3),A();break;case"ping":m({type:"pong",timestamp:Date.now()});break;default:break}},m=c=>{i&&i.readyState===S.OPEN&&i.send(JSON.stringify(c))},L=(c,f)=>{let w={type:c,payload:f,sessionId:p||o.getSessionId(),timestamp:Date.now()};if(!i||i.readyState!==S.OPEN||!s.isNetworkLoggingEnabled()){r.push(w),r.length>oe&&r.shift();return}m(w)},A=()=>{if(!i||i.readyState!==S.OPEN||!s.isNetworkLoggingEnabled())return;let{network:c,console:f}=s.drainBufferedLogs(),w=[...c.map(u=>({type:"network",payload:u,timestamp:"timestamp"in u&&u.timestamp?u.timestamp:Date.now()})),...f.map(u=>({type:"console",payload:u,timestamp:u.timestamp}))].sort((u,I)=>u.timestamp-I.timestamp);d.debug(`Flushing ${w.length} initial buffered logs and ${r.length} transport buffered logs...`);for(let u of w)m({type:u.type,payload:u.payload,sessionId:p||o.getSessionId(),timestamp:Date.now()});for(;r.length>0;){let u=r.shift();m(u)}},v=()=>{a&&(clearInterval(a),a=null),i=null},g=()=>{if(!l){if(h++,h>k&&n){d.debug(`WebSocket reconnect failed after ${k} attempts, promoting to server...`),n();return}l=setTimeout(()=>{l=null,d.debug("Reconnecting WebSocket..."),b()},1e3)}};b(),s.on("console",c=>L("console",c)),s.on("network",c=>L("network",c)),s.on("network-logging-enabled",()=>{d.debug("Network logging enabled, flushing buffer..."),A()}),process.on("exit",()=>{l&&clearTimeout(l),i&&i.close(),v()})}var Y=!1;function re(s){Y||(Y=!0,z.on(_.ConsoleLog,e=>{s.logConsole(e)}))}function H(s,e){let t=N.getInstance();t.enable(),e.mode==="network"?(Z(t,e.host,e.port,s,e.onReconnectFailed),t.enableNetworkLogging()):e.mode==="file"&&ne(t,s,e.filePath),re(t)}function C(s,e,t,o){let n=N.getInstance();Z(n,e,t,s,o)}var T=25417,E="127.0.0.1",K=3,U=0,R=null,B=null;function j(s,e){return new Promise(t=>{let o=new S(`ws://${s}:${e}/ws`),n=setTimeout(()=>{o.close(),t(!1)},500);o.on("open",()=>{clearTimeout(n),o.close(),t(!0)}),o.on("error",()=>{clearTimeout(n),o.close(),t(!1)})})}async function Q(s,e){let o=(await import("@google/gemini-cli-devtools")).DevTools.getInstance(),n=await o.start(),r=o.getPort();return r===e?(d.log(`DevTools available at: ${n}`),{host:s,port:r}):await j(s,e)?(await o.stop(),d.log(`DevTools (existing) at: http://${s}:${e}`),{host:s,port:e}):(d.log(`DevTools available at: ${n}`),{host:s,port:r})}async function F(s){if(U++,U>K){d.debug(`Giving up on DevTools promotion after ${K} attempts`);return}try{let e=await Q(E,T);C(s,e.host,e.port,()=>F(s))}catch(e){d.debug("Failed to promote to DevTools server:",e)}}async function ke(s){let e=process.env.GEMINI_CLI_ACTIVITY_LOG_TARGET;if(e){if(!s.storage)return;H(s,{mode:"file",filePath:e})}else{H(s,{mode:"buffer"});try{await j(E,T)&&(C(s,E,T,()=>F(s)),N.getInstance().enableNetworkLogging(),B=`http://localhost:${T}`,d.log(`DevTools (existing) at startup: ${B}`))}catch{}}}function ie(s){return B?Promise.resolve(B):R||(R=ae(s).catch(e=>{throw R=null,e}),R)}async function ae(s){let e=()=>F(s),t=await j(E,T),o=E,n=T;if(t)d.log(`DevTools (existing) at: http://${E}:${T}`);else try{let l=await Q(E,T);o=l.host,n=l.port}catch(l){throw d.debug("Failed to start DevTools:",l),l}C(s,o,n,e),N.getInstance().enableNetworkLogging();let i=`http://localhost:${n}`;return B=i,i}async function ve(s,e,t,o){if(e){t();return}try{let{openBrowserSecurely:n,shouldLaunchBrowser:r}=await import("./dist-S65OG37M.js"),i=await ie(s);if(r())try{await n(i);return}catch(l){d.warn("Failed to open browser securely:",l)}o()}catch(n){o(),d.error("Failed to start DevTools server:",n)}}function Le(){U=0,R=null,B=null}export{Le as resetForTesting,ke as setupInitialActivityLogger,ie as startDevToolsServer,ve as toggleDevToolsPanel};
2
+ import"./chunk-742OPB22.js";import{Sd as _,Ud as z,b as d}from"./chunk-SX66NO2U.js";import{b as S}from"./chunk-TWIC4BKL.js";import"./chunk-JAFVB6DI.js";import"./chunk-A5A5SUZN.js";import"./chunk-YUXORC52.js";import G from"node:http";import J from"node:https";import V from"node:zlib";import M from"node:fs";import X from"node:path";import{EventEmitter as te}from"node:events";var O="x-activity-request-id",oe=100;function se(s){return!Array.isArray(s)}function P(s){return typeof s=="object"&&s!==null&&!(s instanceof URL)&&!Array.isArray(s)}function $(s){return typeof s=="function"}function x(s,e){if(e.length===0)return s({});if(e.length===1){let t=e[0];return typeof t=="string"||t instanceof URL||P(t)?s(t):s({})}if(e.length===2){let t=e[0],o=e[1];if((typeof t=="string"||t instanceof URL)&&($(o)||P(o))||P(t)&&$(o))return s(t,o)}if(e.length===3){let t=e[0],o=e[1],n=e[2];if((typeof t=="string"||t instanceof URL)&&P(o)&&$(n))return s(t,o,n)}return s({})}var N=class s extends te{static instance;isInterceptionEnabled=!1;requestStartTimes=new Map;networkLoggingEnabled=!1;networkBufferMap=new Map;networkBufferIds=[];consoleBuffer=[];bufferLimit=10;static getInstance(){return s.instance||(s.instance=new s),s.instance}enableNetworkLogging(){this.networkLoggingEnabled=!0,this.emit("network-logging-enabled")}disableNetworkLogging(){this.networkLoggingEnabled=!1}isNetworkLoggingEnabled(){return this.networkLoggingEnabled}drainBufferedLogs(){let e=[];for(let o of this.networkBufferIds){let n=this.networkBufferMap.get(o);n&&e.push(...n)}let t=[...this.consoleBuffer];return this.networkBufferMap.clear(),this.networkBufferIds=[],this.consoleBuffer=[],{network:e,console:t}}getBufferedLogs(){let e=[];for(let t of this.networkBufferIds){let o=this.networkBufferMap.get(t);o&&e.push(...o)}return{network:e,console:[...this.consoleBuffer]}}clearBufferedLogs(){this.networkBufferMap.clear(),this.networkBufferIds=[],this.consoleBuffer=[]}stringifyHeaders(e){let t={};if(!e)return t;if(e instanceof Headers)e.forEach((o,n)=>{t[n.toLowerCase()]=o});else if(typeof e=="object"&&e!==null)for(let[o,n]of Object.entries(e))t[o.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n);return t}sanitizeNetworkLog(e){if(!e||typeof e!="object")return e;let t={...e};if("headers"in t&&t.headers){let o={...t.headers};for(let n of Object.keys(o))["authorization","cookie","x-goog-api-key"].includes(n.toLowerCase())&&(o[n]="[REDACTED]");t.headers=o}if("response"in t&&t.response?.headers){let o={...t.response.headers};for(let n of Object.keys(o))["set-cookie"].includes(n.toLowerCase())&&(o[n]="[REDACTED]");t.response={...t.response,headers:o}}return t}emitNetworkEvent(e){this.safeEmitNetwork(e)}safeEmitNetwork(e){let t=this.sanitizeNetworkLog(e),o=t.id;if(!this.networkBufferMap.has(o)&&(this.networkBufferIds.push(o),this.networkBufferMap.set(o,[]),this.networkBufferIds.length>this.bufferLimit)){let n=this.networkBufferIds.shift();this.networkBufferMap.delete(n)}this.networkBufferMap.get(o).push(t),this.emit("network",t)}enable(){this.isInterceptionEnabled||(this.isInterceptionEnabled=!0,this.patchGlobalFetch(),this.patchNodeHttp())}patchGlobalFetch(){if(!global.fetch)return;let e=global.fetch;global.fetch=async(t,o)=>{let n=typeof t=="string"?t:t instanceof URL?t.toString():t.url;if(n.includes("127.0.0.1")||n.includes("localhost"))return e(t,o);let r=Math.random().toString(36).substring(7),i=(o?.method||"GET").toUpperCase(),l={...o},p=new Headers(o?.headers||{});p.set(O,r),l.headers=p;let a="";o?.body&&(typeof o.body=="string"?a=o.body:o.body instanceof URLSearchParams&&(a=o.body.toString())),this.requestStartTimes.set(r,Date.now()),this.safeEmitNetwork({id:r,timestamp:Date.now(),method:i,url:n,headers:this.stringifyHeaders(l.headers),body:a,pending:!0});try{let h=await e(t,l),k=h.clone();if(k.body){let b=k.body.getReader(),y=new TextDecoder,m=[],L=0;(async()=>{try{for(;;){let{done:c,value:f}=await b.read();if(c)break;let w=y.decode(f,{stream:!0});m.push(w),this.safeEmitNetwork({id:r,pending:!0,chunk:{index:L++,data:w,timestamp:Date.now()}})}let v=this.requestStartTimes.get(r),g=v?Date.now()-v:0;this.requestStartTimes.delete(r),this.safeEmitNetwork({id:r,pending:!1,response:{status:h.status,headers:this.stringifyHeaders(h.headers),body:m.join(""),durationMs:g}})}catch(v){let g=v instanceof Error?v.message:String(v);this.safeEmitNetwork({id:r,pending:!1,error:`Failed to read response body: ${g}`})}})()}else k.text().then(b=>{let y=this.requestStartTimes.get(r),m=y?Date.now()-y:0;this.requestStartTimes.delete(r),this.safeEmitNetwork({id:r,pending:!1,response:{status:h.status,headers:this.stringifyHeaders(h.headers),body:b,durationMs:m}})}).catch(b=>{let y=b instanceof Error?b.message:String(b);this.safeEmitNetwork({id:r,pending:!1,error:`Failed to read response body: ${y}`})});return h}catch(h){this.requestStartTimes.delete(r);let k=h instanceof Error?h.message:String(h);throw this.safeEmitNetwork({id:r,pending:!1,error:k}),h}}}patchNodeHttp(){let e=this,t=G.request,o=J.request,n=(r,i,l)=>{let p=i[0],a;typeof p=="string"||p instanceof URL?a=p:p&&typeof p=="object"?a=P(p)?p:{}:a={};let h="";if(typeof a=="string"?h=a:a instanceof URL?h=a.href:h=("href"in a&&typeof a.href=="string"?a.href:"")||`${l}//${a.hostname||a.host||"localhost"}${a.path||"/"}`,h.includes("127.0.0.1")||h.includes("localhost"))return x(r,i);let k=typeof a=="object"&&a!==null&&!(a instanceof URL)?a.headers:void 0,b={};if(k&&se(k)&&(b=k),b[O])return delete b[O],x(r,i);let y=Math.random().toString(36).substring(7);this.requestStartTimes.set(y,Date.now());let m=x(r,i),L=[],A=m.write,v=m.end;return m.write=function(g,...c){if(g){let f=c[0],w=typeof f=="string"&&Buffer.isEncoding(f)?f:void 0;L.push(Buffer.isBuffer(g)?g:typeof g=="string"?Buffer.from(g,w):Buffer.from(g instanceof Uint8Array?g:String(g)))}return A.apply(this,[g,...c])},m.end=function(g,...c){let f=typeof g=="function"?void 0:g;if(f){let u=c[0],I=typeof u=="string"&&Buffer.isEncoding(u)?u:void 0;L.push(Buffer.isBuffer(f)?f:typeof f=="string"?Buffer.from(f,I):Buffer.from(f instanceof Uint8Array?f:String(f)))}let w=Buffer.concat(L).toString("utf8");return e.safeEmitNetwork({id:y,timestamp:Date.now(),method:m.method||"GET",url:h,headers:e.stringifyHeaders(m.getHeaders()),body:w,pending:!0}),v.apply(this,[g,...c])},m.on("response",g=>{let c=[],f=0;g.on("data",w=>{let u=Buffer.from(w);c.push(u),e.safeEmitNetwork({id:y,pending:!0,chunk:{index:f++,data:u.toString("utf8"),timestamp:Date.now()}})}),g.on("end",()=>{let w=Buffer.concat(c),u=g.headers["content-encoding"],I=D=>{let q=D.toString("utf8"),W=e.requestStartTimes.get(y),ee=W?Date.now()-W:0;e.requestStartTimes.delete(y),e.safeEmitNetwork({id:y,pending:!1,response:{status:g.statusCode||0,headers:e.stringifyHeaders(g.headers),body:q,durationMs:ee}})};u==="gzip"?V.gunzip(w,(D,q)=>{I(D?w:q)}):u==="deflate"?V.inflate(w,(D,q)=>{I(D?w:q)}):I(w)})}),m.on("error",g=>{e.requestStartTimes.delete(y);let c=g.message;e.safeEmitNetwork({id:y,pending:!1,error:c})}),m};Object.defineProperty(G,"request",{value:(r,i,l)=>n(t,l!==void 0?[r,i,l]:i!==void 0?[r,i]:[r],"http:"),writable:!0,configurable:!0}),Object.defineProperty(J,"request",{value:(r,i,l)=>n(o,l!==void 0?[r,i,l]:i!==void 0?[r,i]:[r],"https:"),writable:!0,configurable:!0})}logConsole(e){let t={...e,timestamp:Date.now()};this.consoleBuffer.push(t),this.consoleBuffer.length>this.bufferLimit&&this.consoleBuffer.shift(),this.emit("console",t)}};function ne(s,e,t){let o=t||(e.storage?X.join(e.storage.getProjectTempLogsDir(),`session-${e.getSessionId()}.jsonl`):null);if(!o)return;let n=X.dirname(o);M.existsSync(n)||M.mkdirSync(n,{recursive:!0});let r=(i,l)=>{try{let p=JSON.stringify({type:i,payload:l,sessionId:e.getSessionId(),timestamp:Date.now()})+`
3
+ `;M.promises.appendFile(o,p).catch(a=>{d.error("Failed to write to activity log:",a)})}catch(p){d.error("Failed to prepare activity log entry:",p)}};s.on("console",i=>r("console",i)),s.on("network",i=>r("network",i))}function Z(s,e,t,o,n){let r=[],i=null,l=null,p=null,a=null,h=0,k=2,b=()=>{try{i=new S(`ws://${e}:${t}/ws`),i.on("open",()=>{d.debug(`WebSocket connected to ${e}:${t}`),h=0,m({type:"register",sessionId:o.getSessionId(),timestamp:Date.now()})}),i.on("message",c=>{try{let f=JSON.parse(c.toString());typeof f=="object"&&f!==null&&"type"in f&&typeof f.type=="string"&&y({type:f.type,sessionId:"sessionId"in f&&typeof f.sessionId=="string"?f.sessionId:void 0})}catch(f){d.debug("Invalid WebSocket message:",f)}}),i.on("close",()=>{d.debug(`WebSocket disconnected from ${e}:${t}`),v(),g()}),i.on("error",c=>{d.debug("WebSocket error:",c)})}catch(c){d.debug("Failed to connect WebSocket:",c),g()}},y=c=>{switch(c.type){case"registered":p=c.sessionId||null,d.debug(`WebSocket session registered: ${p}`),a&&clearInterval(a),a=setInterval(()=>{m({type:"pong",timestamp:Date.now()})},15e3),A();break;case"ping":m({type:"pong",timestamp:Date.now()});break;default:break}},m=c=>{i&&i.readyState===S.OPEN&&i.send(JSON.stringify(c))},L=(c,f)=>{let w={type:c,payload:f,sessionId:p||o.getSessionId(),timestamp:Date.now()};if(!i||i.readyState!==S.OPEN||!s.isNetworkLoggingEnabled()){r.push(w),r.length>oe&&r.shift();return}m(w)},A=()=>{if(!i||i.readyState!==S.OPEN||!s.isNetworkLoggingEnabled())return;let{network:c,console:f}=s.drainBufferedLogs(),w=[...c.map(u=>({type:"network",payload:u,timestamp:"timestamp"in u&&u.timestamp?u.timestamp:Date.now()})),...f.map(u=>({type:"console",payload:u,timestamp:u.timestamp}))].sort((u,I)=>u.timestamp-I.timestamp);d.debug(`Flushing ${w.length} initial buffered logs and ${r.length} transport buffered logs...`);for(let u of w)m({type:u.type,payload:u.payload,sessionId:p||o.getSessionId(),timestamp:Date.now()});for(;r.length>0;){let u=r.shift();m(u)}},v=()=>{a&&(clearInterval(a),a=null),i=null},g=()=>{if(!l){if(h++,h>k&&n){d.debug(`WebSocket reconnect failed after ${k} attempts, promoting to server...`),n();return}l=setTimeout(()=>{l=null,d.debug("Reconnecting WebSocket..."),b()},1e3)}};b(),s.on("console",c=>L("console",c)),s.on("network",c=>L("network",c)),s.on("network-logging-enabled",()=>{d.debug("Network logging enabled, flushing buffer..."),A()}),process.on("exit",()=>{l&&clearTimeout(l),i&&i.close(),v()})}var Y=!1;function re(s){Y||(Y=!0,z.on(_.ConsoleLog,e=>{s.logConsole(e)}))}function H(s,e){let t=N.getInstance();t.enable(),e.mode==="network"?(Z(t,e.host,e.port,s,e.onReconnectFailed),t.enableNetworkLogging()):e.mode==="file"&&ne(t,s,e.filePath),re(t)}function C(s,e,t,o){let n=N.getInstance();Z(n,e,t,s,o)}var T=25417,E="127.0.0.1",K=3,U=0,R=null,B=null;function j(s,e){return new Promise(t=>{let o=new S(`ws://${s}:${e}/ws`),n=setTimeout(()=>{o.close(),t(!1)},500);o.on("open",()=>{clearTimeout(n),o.close(),t(!0)}),o.on("error",()=>{clearTimeout(n),o.close(),t(!1)})})}async function Q(s,e){let o=(await import("@google/gemini-cli-devtools")).DevTools.getInstance(),n=await o.start(),r=o.getPort();return r===e?(d.log(`DevTools available at: ${n}`),{host:s,port:r}):await j(s,e)?(await o.stop(),d.log(`DevTools (existing) at: http://${s}:${e}`),{host:s,port:e}):(d.log(`DevTools available at: ${n}`),{host:s,port:r})}async function F(s){if(U++,U>K){d.debug(`Giving up on DevTools promotion after ${K} attempts`);return}try{let e=await Q(E,T);C(s,e.host,e.port,()=>F(s))}catch(e){d.debug("Failed to promote to DevTools server:",e)}}async function ke(s){let e=process.env.GEMINI_CLI_ACTIVITY_LOG_TARGET;if(e){if(!s.storage)return;H(s,{mode:"file",filePath:e})}else{H(s,{mode:"buffer"});try{await j(E,T)&&(C(s,E,T,()=>F(s)),N.getInstance().enableNetworkLogging(),B=`http://localhost:${T}`,d.log(`DevTools (existing) at startup: ${B}`))}catch{}}}function ie(s){return B?Promise.resolve(B):R||(R=ae(s).catch(e=>{throw R=null,e}),R)}async function ae(s){let e=()=>F(s),t=await j(E,T),o=E,n=T;if(t)d.log(`DevTools (existing) at: http://${E}:${T}`);else try{let l=await Q(E,T);o=l.host,n=l.port}catch(l){throw d.debug("Failed to start DevTools:",l),l}C(s,o,n,e),N.getInstance().enableNetworkLogging();let i=`http://localhost:${n}`;return B=i,i}async function ve(s,e,t,o){if(e){t();return}try{let{openBrowserSecurely:n,shouldLaunchBrowser:r}=await import("./dist-MMPCC5OA.js"),i=await ie(s);if(r())try{await n(i);return}catch(l){d.warn("Failed to open browser securely:",l)}o()}catch(n){o(),d.error("Failed to start DevTools server:",n)}}function Le(){U=0,R=null,B=null}export{Le as resetForTesting,ke as setupInitialActivityLogger,ie as startDevToolsServer,ve as toggleDevToolsPanel};
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2025 Google LLC