@kilocode/cli-darwin-arm64 7.7.6 → 7.7.7

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.
Files changed (36) hide show
  1. package/bin/console/assets/{AgentsRoute-DiyQVU7b.js → AgentsRoute-C7BPJrSR.js} +1 -1
  2. package/bin/console/assets/{CliNotificationsRoute-CPgbdaoK.js → CliNotificationsRoute-CYZpiPRl.js} +1 -1
  3. package/bin/console/assets/{CliUiRoute-DHrO2LIB.js → CliUiRoute-CxxmM2Sh.js} +1 -1
  4. package/bin/console/assets/{ConfigLayout-OMB5ZnC4.js → ConfigLayout-CWLxpvlT.js} +1 -1
  5. package/bin/console/assets/{ConfigPage-fC1SUHN9.js → ConfigPage-CzNj6faN.js} +1 -1
  6. package/bin/console/assets/{ConfirmDialog-Dw1TQzR8.js → ConfirmDialog-9Nc-WaFJ.js} +1 -1
  7. package/bin/console/assets/{ConsoleUiRoute-DkVHnr4H.js → ConsoleUiRoute-CiIHfc5T.js} +1 -1
  8. package/bin/console/assets/{CustomSelect-CmMA48JB.js → CustomSelect-DIn2zNSH.js} +1 -1
  9. package/bin/console/assets/{FormattersRoute-DCNVjvRI.js → FormattersRoute-r38ivgH3.js} +1 -1
  10. package/bin/console/assets/{GhosttyTerminal-CTbd0S4x.js → GhosttyTerminal-CIT_84Rl.js} +1 -1
  11. package/bin/console/assets/{IndexingRoute-BN8nXyIX.js → IndexingRoute-Du8lpwql.js} +1 -1
  12. package/bin/console/assets/{KeybindsRoute-DScOQWag.js → KeybindsRoute-DjbKn-oq.js} +1 -1
  13. package/bin/console/assets/{LoginRoute-1iBkjgbb.js → LoginRoute-BttFRahe.js} +1 -1
  14. package/bin/console/assets/{McpRoute-CV79QLXw.js → McpRoute-8sBRzM8j.js} +1 -1
  15. package/bin/console/assets/{ModelsRoute-DUiNxWcp.js → ModelsRoute-Dft7BtXi.js} +1 -1
  16. package/bin/console/assets/{OverviewRoute-CIlEEPvW.js → OverviewRoute-9SmULgaB.js} +1 -1
  17. package/bin/console/assets/{PermissionsRoute-BCxGpg_1.js → PermissionsRoute-CjA4tdwU.js} +1 -1
  18. package/bin/console/assets/{ProfileRoute-Dw29CvtG.js → ProfileRoute-DMO8jfPR.js} +1 -1
  19. package/bin/console/assets/{ProjectConsoleRoute-CLlQ-PGV.js → ProjectConsoleRoute-B3vedHDe.js} +2 -2
  20. package/bin/console/assets/{ProvidersRoute-BW-V-jN3.js → ProvidersRoute-CHrag3Ik.js} +1 -1
  21. package/bin/console/assets/{ServersRoute-eQ7HE-su.js → ServersRoute-DNoVLvuf.js} +1 -1
  22. package/bin/console/assets/{SourcesRoute-CM6oiRe5.js → SourcesRoute-D-4pF8_4.js} +1 -1
  23. package/bin/console/assets/{ToolsRoute-4Zggew2v.js → ToolsRoute-BZM1MGkj.js} +1 -1
  24. package/bin/console/assets/{button-ZvkAWXQM.js → button-I9KdwuSh.js} +1 -1
  25. package/bin/console/assets/{config-BVVcC0Y1.js → config-D9zZTeTJ.js} +1 -1
  26. package/bin/console/assets/{console-JCVpLOdJ.js → console-83Dklbg5.js} +1 -1
  27. package/bin/console/assets/{file-y5xMoiQQ.js → file-DWKjJBds.js} +1 -1
  28. package/bin/console/assets/{index-x2HgICqP.js → index-BbHSWqmT.js} +3 -3
  29. package/bin/console/assets/{models-Rv8gyojT.js → models-n8VDua-b.js} +1 -1
  30. package/bin/console/assets/{profile-CjZNBlVZ.js → profile-tz4fEEHV.js} +1 -1
  31. package/bin/console/assets/{session-review-BSr1Uyjk.js → session-review-D-_CJp1Y.js} +1 -1
  32. package/bin/console/assets/{tag-DRpP2l65.js → tag-C1eBcqO2.js} +1 -1
  33. package/bin/console/assets/{ui-DYkEFqlY.js → ui-BKeZVZiW.js} +1 -1
  34. package/bin/console/index.html +1 -1
  35. package/bin/kilo +2 -2
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentsRoute-DiyQVU7b.js","assets/button-ZvkAWXQM.js","assets/ConfigPage-fC1SUHN9.js","assets/tag-DRpP2l65.js","assets/CustomSelect-CmMA48JB.js","assets/config-BVVcC0Y1.js","assets/PermissionsRoute-BCxGpg_1.js","assets/PermissionsRoute-BIjHuwFU.css","assets/models-Rv8gyojT.js","assets/agents-tools-DXx49OgX.css","assets/CliNotificationsRoute-CPgbdaoK.js","assets/ui-DYkEFqlY.js","assets/cli-ui-DymkjzY0.css","assets/CliUiRoute-DHrO2LIB.js","assets/ConsoleUiRoute-DkVHnr4H.js","assets/console-JCVpLOdJ.js","assets/FormattersRoute-DCNVjvRI.js","assets/FormattersRoute-5K8HEXB2.css","assets/IndexingRoute-BN8nXyIX.js","assets/IndexingRoute-D0nIx9Pv.css","assets/KeybindsRoute-DScOQWag.js","assets/KeybindsRoute-DPP8xngh.css","assets/McpRoute-CV79QLXw.js","assets/ConfirmDialog-Dw1TQzR8.js","assets/McpRoute-D22Npdv0.css","assets/ModelsRoute-DUiNxWcp.js","assets/ModelsRoute-Dk1uAzWQ.css","assets/models-CkIsKFzm.css","assets/OverviewRoute-CIlEEPvW.js","assets/OverviewRoute-neFLWBjP.css","assets/ProvidersRoute-BW-V-jN3.js","assets/ServersRoute-eQ7HE-su.js","assets/ServersRoute-BBRszzTY.css","assets/SourcesRoute-CM6oiRe5.js","assets/SourcesRoute-DMunRt3T.css","assets/ToolsRoute-4Zggew2v.js","assets/ProjectConsoleRoute-CLlQ-PGV.js","assets/ProjectConsoleRoute-Df0w2iOW.css","assets/dialogs-BCnEWnpn.css","assets/ConfigLayout-OMB5ZnC4.js","assets/ConfigLayout-DjHPFaCq.css","assets/ProfileRoute-Dw29CvtG.js","assets/profile-CjZNBlVZ.js","assets/profile-Do_gK9qi.css","assets/LoginRoute-1iBkjgbb.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentsRoute-C7BPJrSR.js","assets/button-I9KdwuSh.js","assets/ConfigPage-CzNj6faN.js","assets/tag-C1eBcqO2.js","assets/CustomSelect-DIn2zNSH.js","assets/config-D9zZTeTJ.js","assets/PermissionsRoute-CjA4tdwU.js","assets/PermissionsRoute-BIjHuwFU.css","assets/models-n8VDua-b.js","assets/agents-tools-DXx49OgX.css","assets/CliNotificationsRoute-CYZpiPRl.js","assets/ui-BKeZVZiW.js","assets/cli-ui-DymkjzY0.css","assets/CliUiRoute-CxxmM2Sh.js","assets/ConsoleUiRoute-CiIHfc5T.js","assets/console-83Dklbg5.js","assets/FormattersRoute-r38ivgH3.js","assets/FormattersRoute-5K8HEXB2.css","assets/IndexingRoute-Du8lpwql.js","assets/IndexingRoute-D0nIx9Pv.css","assets/KeybindsRoute-DjbKn-oq.js","assets/KeybindsRoute-DPP8xngh.css","assets/McpRoute-8sBRzM8j.js","assets/ConfirmDialog-9Nc-WaFJ.js","assets/McpRoute-D22Npdv0.css","assets/ModelsRoute-Dft7BtXi.js","assets/ModelsRoute-Dk1uAzWQ.css","assets/models-CkIsKFzm.css","assets/OverviewRoute-9SmULgaB.js","assets/OverviewRoute-neFLWBjP.css","assets/ProvidersRoute-CHrag3Ik.js","assets/ServersRoute-DNoVLvuf.js","assets/ServersRoute-BBRszzTY.css","assets/SourcesRoute-D-4pF8_4.js","assets/SourcesRoute-DMunRt3T.css","assets/ToolsRoute-BZM1MGkj.js","assets/ProjectConsoleRoute-B3vedHDe.js","assets/ProjectConsoleRoute-Df0w2iOW.css","assets/dialogs-BCnEWnpn.css","assets/ConfigLayout-CWLxpvlT.js","assets/ConfigLayout-DjHPFaCq.css","assets/ProfileRoute-DMO8jfPR.js","assets/profile-tz4fEEHV.js","assets/profile-Do_gK9qi.css","assets/LoginRoute-BttFRahe.js"])))=>i.map(i=>d[i]);
2
2
  (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=t(a);fetch(a.href,s)}})();const va="modulepreload",xa=function(r){return"/console/"+r},Tr={},X=function(e,t,n){let a=Promise.resolve();if(t&&t.length>0){let c=function(f){return Promise.all(f.map(y=>Promise.resolve(y).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");a=c(t.map(f=>{if(f=xa(f),f in Tr)return;Tr[f]=!0;const y=f.endsWith(".css"),u=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${u}`))return;const p=document.createElement("link");if(p.rel=y?"stylesheet":va,y||(p.as="script"),p.crossOrigin="",p.href=f,i&&p.setAttribute("nonce",i),document.head.appendChild(p),y)return new Promise((g,m)=>{p.addEventListener("load",g),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return a.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return e().catch(s)})},I={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Sr(this.context.count)},getNextContextId(){return Sr(this.context.count++)}};function Sr(r){const e=String(r),t=e.length-1;return I.context.id+(t?String.fromCharCode(96+t):"")+e}function Ce(r){I.context=r}const kn=!1,Ca=(r,e)=>r===e,ge=Symbol("solid-proxy"),gn=typeof Proxy=="function",rr=Symbol("solid-track"),kt={equals:Ca};let bn=Ln;const be=1,Qe=2,wn={owned:null,cleanups:null,context:null,owner:null},Bt={};var B=null;let L=null,La=null,z=null,oe=null,se=null,qt=0;function Ae(r,e){const t=z,n=B,a=r.length===0,s=e===void 0?n:e,o=a?wn:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=a?r:()=>r(()=>te(()=>_e(o)));B=o,z=null;try{return ue(i,!0)}finally{z=t,B=n}}function U(r,e){e=e?Object.assign({},kt,e):kt;const t={value:r,observers:null,observerSlots:null,comparator:e.equals||void 0},n=a=>(typeof a=="function"&&(L&&L.running&&L.sources.has(t)?a=a(t.tValue):a=a(t.value)),Cn(t,a));return[xn.bind(t),n]}function Pr(r,e,t){const n=_t(r,e,!0,be);ze(n)}function ne(r,e,t){const n=_t(r,e,!1,be);ze(n)}function ee(r,e,t){bn=_a;const n=_t(r,e,!1,be),a=Te&&Se(Te);a&&(n.suspense=a),(!t||!t.render)&&(n.user=!0),se?se.push(n):ze(n)}function D(r,e,t){t=t?Object.assign({},kt,t):kt;const n=_t(r,e,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,ze(n),xn.bind(n)}function qa(r){return r&&typeof r=="object"&&"then"in r}function Mt(r,e,t){let n,a,s;typeof e=="function"?(n=r,a=e,s={}):(n=!0,a=r,s=e||{});let o=null,i=Bt,c=null,f=!1,y=!1,u="initialValue"in s,p=typeof n=="function"&&D(n);const g=new Set,[m,h]=(s.storage||U)(s.initialValue),[w,H]=U(void 0),[_,A]=U(void 0,{equals:!1}),[T,q]=U(u?"ready":"unresolved");I.context&&(c=I.getNextContextId(),s.ssrLoadFrom==="initial"?i=s.initialValue:I.load&&I.has(c)&&(i=I.load(c)));function x(v,M,V,C){return o===v&&(o=null,C!==void 0&&(u=!0),(v===i||M===i)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(C,{value:M})),i=Bt,L&&v&&f?(L.promises.delete(v),f=!1,ue(()=>{L.running=!0,F(M,V)},!1)):F(M,V)),M}function F(v,M){ue(()=>{M===void 0&&h(()=>v),q(M!==void 0?"errored":u?"ready":"unresolved"),H(M);for(const V of g.keys())V.decrement();g.clear()},!1)}function j(){const v=Te&&Se(Te),M=m(),V=w();if(V!==void 0&&!o)throw V;return z&&!z.user&&v&&Pr(()=>{_(),o&&(v.resolved&&L&&f?L.promises.add(o):g.has(v)||(v.increment(),g.add(v)))}),M}function b(v=!0){if(v!==!1&&y)return;y=!1;const M=p?p():n;if(f=L&&L.running,M==null||M===!1){x(o,te(m));return}L&&o&&L.promises.delete(o);let V;const C=i!==Bt?i:te(()=>{try{return a(M,{value:m(),refetching:v})}catch(E){V=E}});if(V!==void 0){x(o,void 0,ht(V),M);return}else if(!qa(C))return x(o,C,void 0,M),C;return o=C,"v"in C?(C.s===1?x(o,C.v,void 0,M):x(o,void 0,ht(C.v),M),C):(y=!0,queueMicrotask(()=>y=!1),ue(()=>{q(u?"refreshing":"pending"),A()},!1),C.then(E=>x(C,E,void 0,M),E=>x(C,void 0,ht(E),M)))}Object.defineProperties(j,{state:{get:()=>T()},error:{get:()=>w()},loading:{get(){const v=T();return v==="pending"||v==="refreshing"}},latest:{get(){if(!u)return j();const v=w();if(v&&!o)throw v;return m()}}});let S=B;return p?Pr(()=>(S=B,b(!1))):b(!1),[j,{refetch:v=>Ht(S,()=>b(v)),mutate:h}]}function vn(r){return ue(r,!1)}function te(r){if(z===null)return r();const e=z;z=null;try{return r()}finally{z=e}}function kr(r,e,t){const n=Array.isArray(r);let a,s=t&&t.defer;return o=>{let i;if(n){i=Array(r.length);for(let f=0;f<r.length;f++)i[f]=r[f]()}else i=r();if(s)return s=!1,o;const c=te(()=>e(i,a,o));return a=i,c}}function $t(r){ee(()=>te(r))}function fe(r){return B===null||(B.cleanups===null?B.cleanups=[r]:B.cleanups.push(r)),r}function nr(){return z}function et(){return B}function Ht(r,e){const t=B,n=z;B=r,z=null;try{return ue(e,!0)}catch(a){gr(a)}finally{B=t,z=n}}function Ma(r){if(L&&L.running)return r(),L.done;const e=z,t=B;return Promise.resolve().then(()=>{z=e,B=t;let n;return Te&&(n=L||(L={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),n.done||(n.done=new Promise(a=>n.resolve=a)),n.running=!0),ue(r,!1),z=B=null,n?n.done:void 0})}const[My,Fr]=U(!1);function $a(r){se.push.apply(se,r),r.length=0}function st(r,e){const t=Symbol("context");return{id:t,Provider:Ia(t),defaultValue:r}}function Se(r){let e;return B&&B.context&&(e=B.context[r.id])!==void 0?e:r.defaultValue}function Vt(r){const e=D(r),t=D(()=>ar(e()));return t.toArray=()=>{const n=t();return Array.isArray(n)?n:n!=null?[n]:[]},t}let Te;function Ha(){return Te||(Te=st())}function xn(){const r=L&&L.running;if(this.sources&&(r?this.tState:this.state))if((r?this.tState:this.state)===be)ze(this);else{const e=oe;oe=null,ue(()=>bt(this),!1),oe=e}if(z){const e=this.observers?this.observers.length:0;z.sources?(z.sources.push(this),z.sourceSlots.push(e)):(z.sources=[this],z.sourceSlots=[e]),this.observers?(this.observers.push(z),this.observerSlots.push(z.sources.length-1)):(this.observers=[z],this.observerSlots=[z.sources.length-1])}return r&&L.sources.has(this)?this.tValue:this.value}function Cn(r,e,t){let n=L&&L.running&&L.sources.has(r)?r.tValue:r.value;if(!r.comparator||!r.comparator(n,e)){if(L){const a=L.running;(a||!t&&L.sources.has(r))&&(L.sources.add(r),r.tValue=e),a||(r.value=e)}else r.value=e;r.observers&&r.observers.length&&ue(()=>{for(let a=0;a<r.observers.length;a+=1){const s=r.observers[a],o=L&&L.running;o&&L.disposed.has(s)||((o?!s.tState:!s.state)&&(s.pure?oe.push(s):se.push(s),s.observers&&qn(s)),o?s.tState=be:s.state=be)}if(oe.length>1e6)throw oe=[],new Error},!1)}return e}function ze(r){if(!r.fn)return;_e(r);const e=qt;Zr(r,L&&L.running&&L.sources.has(r)?r.tValue:r.value,e),L&&!L.running&&L.sources.has(r)&&queueMicrotask(()=>{ue(()=>{L&&(L.running=!0),z=B=r,Zr(r,r.tValue,e),z=B=null},!1)})}function Zr(r,e,t){let n;const a=B,s=z;z=B=r;try{n=r.fn(e)}catch(o){return r.pure&&(L&&L.running?(r.tState=be,r.tOwned&&r.tOwned.forEach(_e),r.tOwned=void 0):(r.state=be,r.owned&&r.owned.forEach(_e),r.owned=null)),r.updatedAt=t+1,gr(o)}finally{z=s,B=a}(!r.updatedAt||r.updatedAt<=t)&&(r.updatedAt!=null&&"observers"in r?Cn(r,n,!0):L&&L.running&&r.pure?(L.sources.has(r)||(r.value=n),L.sources.add(r),r.tValue=n):r.value=n,r.updatedAt=t)}function _t(r,e,t,n=be,a){const s={fn:r,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:B,context:B?B.context:null,pure:t};return L&&L.running&&(s.state=0,s.tState=n),B===null||B!==wn&&(L&&L.running&&B.pure?B.tOwned?B.tOwned.push(s):B.tOwned=[s]:B.owned?B.owned.push(s):B.owned=[s]),s}function gt(r){const e=L&&L.running;if((e?r.tState:r.state)===0)return;if((e?r.tState:r.state)===Qe)return bt(r);if(r.suspense&&te(r.suspense.inFallback))return r.suspense.effects.push(r);const t=[r];for(;(r=r.owner)&&(!r.updatedAt||r.updatedAt<qt);){if(e&&L.disposed.has(r))return;(e?r.tState:r.state)&&t.push(r)}for(let n=t.length-1;n>=0;n--){if(r=t[n],e){let a=r,s=t[n+1];for(;(a=a.owner)&&a!==s;)if(L.disposed.has(a))return}if((e?r.tState:r.state)===be)ze(r);else if((e?r.tState:r.state)===Qe){const a=oe;oe=null,ue(()=>bt(r,t[0]),!1),oe=a}}}function ue(r,e){if(oe)return r();let t=!1;e||(oe=[]),se?t=!0:se=[],qt++;try{const n=r();return Va(t),n}catch(n){t||(se=null),oe=null,gr(n)}}function Va(r){if(oe&&(Ln(oe),oe=null),r)return;let e;if(L){if(!L.promises.size&&!L.queue.size){const n=L.sources,a=L.disposed;se.push.apply(se,L.effects),e=L.resolve;for(const s of se)"tState"in s&&(s.state=s.tState),delete s.tState;L=null,ue(()=>{for(const s of a)_e(s);for(const s of n){if(s.value=s.tValue,s.owned)for(let o=0,i=s.owned.length;o<i;o++)_e(s.owned[o]);s.tOwned&&(s.owned=s.tOwned),delete s.tValue,delete s.tOwned,s.tState=0}Fr(!1)},!1)}else if(L.running){L.running=!1,L.effects.push.apply(L.effects,se),se=null,Fr(!0);return}}const t=se;se=null,t.length&&ue(()=>bn(t),!1),e&&e()}function Ln(r){for(let e=0;e<r.length;e++)gt(r[e])}function _a(r){let e,t=0;for(e=0;e<r.length;e++){const n=r[e];n.user?r[t++]=n:gt(n)}if(I.context){if(I.count){I.effects||(I.effects=[]),I.effects.push(...r.slice(0,t));return}Ce()}for(I.effects&&(I.done||!I.count)&&(r=[...I.effects,...r],t+=I.effects.length,delete I.effects),e=0;e<t;e++)gt(r[e])}function bt(r,e){const t=L&&L.running;t?r.tState=0:r.state=0;for(let n=0;n<r.sources.length;n+=1){const a=r.sources[n];if(a.sources){const s=t?a.tState:a.state;s===be?a!==e&&(!a.updatedAt||a.updatedAt<qt)&&gt(a):s===Qe&&bt(a,e)}}}function qn(r){const e=L&&L.running;for(let t=0;t<r.observers.length;t+=1){const n=r.observers[t];(e?!n.tState:!n.state)&&(e?n.tState=Qe:n.state=Qe,n.pure?oe.push(n):se.push(n),n.observers&&qn(n))}}function _e(r){let e;if(r.sources)for(;r.sources.length;){const t=r.sources.pop(),n=r.sourceSlots.pop(),a=t.observers;if(a&&a.length){const s=a.pop(),o=t.observerSlots.pop();n<a.length&&(s.sourceSlots[o]=n,a[n]=s,t.observerSlots[n]=o)}}if(r.tOwned){const t=r.tOwned;for(delete r.tOwned,e=t.length-1;e>=0;e--)_e(t[e])}if(L&&L.running&&r.pure)Mn(r,!0);else if(r.owned){const t=r.owned;for(r.owned=null,e=t.length-1;e>=0;e--)_e(t[e])}if(r.cleanups){const t=r.cleanups;for(r.cleanups=null,e=t.length-1;e>=0;e--)t[e]()}L&&L.running?r.tState=0:r.state=0}function Mn(r,e){if(e||(r.tState=0,L.disposed.add(r)),r.owned)for(let t=0;t<r.owned.length;t++)Mn(r.owned[t])}function ht(r){return r instanceof Error?r:new Error(typeof r=="string"?r:"Unknown error",{cause:r})}function gr(r,e=B){throw ht(r)}function ar(r){if(typeof r=="function"&&!r.length)return ar(r());if(Array.isArray(r)){const e=[];for(let t=0;t<r.length;t++){const n=ar(r[t]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return e}return r}function Ia(r,e){return function(n){let a;return ne(()=>a=te(()=>(B.context={...B.context,[r]:n.value},Vt(()=>n.children))),void 0),a}}const ja=Symbol("fallback");function Br(r){for(let e=0;e<r.length;e++)r[e]()}function Ea(r,e,t={}){let n=[],a=[],s=[],o=0,i=e.length>1?[]:null;return fe(()=>Br(s)),()=>{let c=r()||[],f=c.length,y,u;return c[rr],te(()=>{let g,m,h,w,H,_,A,T,q;if(f===0)o!==0&&(Br(s),s=[],n=[],a=[],o=0,i&&(i=[])),t.fallback&&(n=[ja],a[0]=Ae(x=>(s[0]=x,t.fallback())),o=1);else if(o===0){for(a=new Array(f),u=0;u<f;u++)n[u]=c[u],a[u]=Ae(p);o=f}else{for(h=new Array(f),w=new Array(f),i&&(H=new Array(f)),_=0,A=Math.min(o,f);_<A&&n[_]===c[_];_++);for(A=o-1,T=f-1;A>=_&&T>=_&&n[A]===c[T];A--,T--)h[T]=a[A],w[T]=s[A],i&&(H[T]=i[A]);for(g=new Map,m=new Array(T+1),u=T;u>=_;u--)q=c[u],y=g.get(q),m[u]=y===void 0?-1:y,g.set(q,u);for(y=_;y<=A;y++)q=n[y],u=g.get(q),u!==void 0&&u!==-1?(h[u]=a[y],w[u]=s[y],i&&(H[u]=i[y]),u=m[u],g.set(q,u)):s[y]();for(u=_;u<f;u++)u in h?(a[u]=h[u],s[u]=w[u],i&&(i[u]=H[u],i[u](u))):a[u]=Ae(p);a=a.slice(0,o=f),n=c.slice(0)}return a});function p(g){if(s[u]=g,i){const[m,h]=U(u);return i[u]=h,e(c[u],m)}return e(c[u])}}}function $(r,e){return te(()=>r(e||{}))}function ut(){return!0}const sr={get(r,e,t){return e===ge?t:r.get(e)},has(r,e){return e===ge?!0:r.has(e)},set:ut,deleteProperty:ut,getOwnPropertyDescriptor(r,e){return{configurable:!0,enumerable:!0,get(){return r.get(e)},set:ut,deleteProperty:ut}},ownKeys(r){return r.keys()}};function Ot(r){return(r=typeof r=="function"?r():r)?r:{}}function Aa(){for(let r=0,e=this.length;r<e;++r){const t=this[r]();if(t!==void 0)return t}}function pe(...r){let e=!1;for(let o=0;o<r.length;o++){const i=r[o];e=e||!!i&&ge in i,r[o]=typeof i=="function"?(e=!0,D(i)):i}if(gn&&e)return new Proxy({get(o){for(let i=r.length-1;i>=0;i--){const c=Ot(r[i])[o];if(c!==void 0)return c}},has(o){for(let i=r.length-1;i>=0;i--)if(o in Ot(r[i]))return!0;return!1},keys(){const o=[];for(let i=0;i<r.length;i++)o.push(...Object.keys(Ot(r[i])));return[...new Set(o)]}},sr);const t={},n=Object.create(null);for(let o=r.length-1;o>=0;o--){const i=r[o];if(!i)continue;const c=Object.getOwnPropertyNames(i);for(let f=c.length-1;f>=0;f--){const y=c[f];if(y==="__proto__"||y==="constructor")continue;const u=Object.getOwnPropertyDescriptor(i,y);if(!n[y])n[y]=u.get?{enumerable:!0,configurable:!0,get:Aa.bind(t[y]=[u.get.bind(i)])}:u.value!==void 0?u:void 0;else{const p=t[y];p&&(u.get?p.push(u.get.bind(i)):u.value!==void 0&&p.push(()=>u.value))}}}const a={},s=Object.keys(n);for(let o=s.length-1;o>=0;o--){const i=s[o],c=n[i];c&&c.get?Object.defineProperty(a,i,c):a[i]=c?c.value:void 0}return a}function Me(r,...e){const t=e.length;if(gn&&ge in r){const a=t>1?e.flat():e[0],s=e.map(o=>new Proxy({get(i){return o.includes(i)?r[i]:void 0},has(i){return o.includes(i)&&i in r},keys(){return o.filter(i=>i in r)}},sr));return s.push(new Proxy({get(o){return a.includes(o)?void 0:r[o]},has(o){return a.includes(o)?!1:o in r},keys(){return Object.keys(r).filter(o=>!a.includes(o))}},sr)),s}const n=[];for(let a=0;a<=t;a++)n[a]={};for(const a of Object.getOwnPropertyNames(r)){let s=t;for(let c=0;c<e.length;c++)if(e[c].includes(a)){s=c;break}const o=Object.getOwnPropertyDescriptor(r,a);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?n[s][a]=o.value:Object.defineProperty(n[s],a,o)}return n}function Q(r){let e,t;const n=a=>{const s=I.context;if(s){const[i,c]=U();I.count||(I.count=0),I.count++,(t||(t=r())).then(f=>{!I.done&&Ce(s),I.count--,c(()=>f.default),Ce()}),e=i}else if(!e){const[i]=Mt(()=>(t||(t=r())).then(c=>c.default));e=i}let o;return D(()=>(o=e())?te(()=>{if(!s||I.done)return o(a);const i=I.context;Ce(s);const c=o(a);return Ce(i),c}):"")};return n.preload=()=>t||((t=r()).then(a=>e=()=>a.default),t),n}let Da=0;function $y(){return I.context?I.getNextContextId():`cl-${Da++}`}const $n=r=>`Stale read from <${r}>.`;function Ye(r){const e="fallback"in r&&{fallback:()=>r.fallback};return D(Ea(()=>r.each,r.children,e||void 0))}function ie(r){const e=r.keyed,t=D(()=>r.when,void 0,void 0),n=e?t:D(t,void 0,{equals:(a,s)=>!a==!s});return D(()=>{const a=n();if(a){const s=r.children;return typeof s=="function"&&s.length>0?te(()=>s(e?a:()=>{if(!te(n))throw $n("Show");return t()})):s}return r.fallback},void 0,void 0)}function Hy(r){const e=Vt(()=>r.children),t=D(()=>{const n=e(),a=Array.isArray(n)?n:[n];let s=()=>{};for(let o=0;o<a.length;o++){const i=o,c=a[o],f=s,y=D(()=>f()?void 0:c.when,void 0,void 0),u=c.keyed?y:D(y,void 0,{equals:(p,g)=>!p==!g});s=()=>f()||(u()?[i,y,c]:void 0)}return s});return D(()=>{const n=t()();if(!n)return r.fallback;const[a,s,o]=n,i=o.children;return typeof i=="function"&&i.length>0?te(()=>i(o.keyed?s():()=>{if(te(t)()?.[0]!==a)throw $n("Match");return s()})):i},void 0,void 0)}function Vy(r){return r}const Ta=st();function Sa(r){let e=0,t,n,a,s,o;const[i,c]=U(!1),f=Ha(),y={increment:()=>{++e===1&&c(!0)},decrement:()=>{--e===0&&c(!1)},inFallback:i,effects:[],resolved:!1},u=et();if(I.context&&I.load){const m=I.getContextId();let h=I.load(m);if(h&&(typeof h!="object"||h.s!==1?a=h:I.gather(m)),a&&a!=="$$f"){const[w,H]=U(void 0,{equals:!1});s=w,a.then(()=>{if(I.done)return H();I.gather(m),Ce(n),H(),Ce()},_=>{o=_,H()})}}const p=Se(Ta);p&&(t=p.register(y.inFallback));let g;return fe(()=>g&&g()),$(f.Provider,{value:y,get children(){return D(()=>{if(o)throw o;if(n=I.context,s)return s(),s=void 0;n&&a==="$$f"&&Ce();const m=D(()=>r.children);return D(h=>{const w=y.inFallback(),{showContent:H=!0,showFallback:_=!0}=t?t():{};if((!w||a&&a!=="$$f")&&H)return y.resolved=!0,g&&g(),g=n=a=void 0,$a(y.effects),m();if(_)return g?h:Ae(A=>(g=A,n&&(Ce({id:n.id+"F",count:0}),n=void 0),r.fallback),u)})})}})}const Pa=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Fa=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Pa]),Za=new Set(["innerHTML","textContent","innerText","children"]),Ba=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Oa=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Ra(r,e){const t=Oa[r];return typeof t=="object"?t[e]?t.$:void 0:t}const za=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Na=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Ua={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Le=r=>D(()=>r());function Wa(r,e,t){let n=t.length,a=e.length,s=n,o=0,i=0,c=e[a-1].nextSibling,f=null;for(;o<a||i<s;){if(e[o]===t[i]){o++,i++;continue}for(;e[a-1]===t[s-1];)a--,s--;if(a===o){const y=s<n?i?t[i-1].nextSibling:t[s-i]:c;for(;i<s;)r.insertBefore(t[i++],y)}else if(s===i)for(;o<a;)(!f||!f.has(e[o]))&&e[o].remove(),o++;else if(e[o]===t[s-1]&&t[i]===e[a-1]){const y=e[--a].nextSibling;r.insertBefore(t[i++],e[o++].nextSibling),r.insertBefore(t[--s],y),e[a]=t[s]}else{if(!f){f=new Map;let u=i;for(;u<s;)f.set(t[u],u++)}const y=f.get(e[o]);if(y!=null)if(i<y&&y<s){let u=o,p=1,g;for(;++u<a&&u<s&&!((g=f.get(e[u]))==null||g!==y+p);)p++;if(p>y-i){const m=e[o];for(;i<y;)r.insertBefore(t[i++],m)}else r.replaceChild(t[i++],e[o++])}else o++;else e[o++].remove()}}}const Or="_$DX_DELEGATE";function Ja(r,e,t,n={}){let a;return Ae(s=>{a=s,e===document?r():Z(e,r(),e.firstChild?null:void 0,t)},n.owner),()=>{a(),e.textContent=""}}function W(r,e,t,n){let a;const s=()=>{const i=n?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return i.innerHTML=r,t?i.content.firstChild.firstChild:n?i.firstChild:i.content.firstChild},o=e?()=>te(()=>document.importNode(a||(a=s()),!0)):()=>(a||(a=s())).cloneNode(!0);return o.cloneNode=o,o}function br(r,e=window.document){const t=e[Or]||(e[Or]=new Set);for(let n=0,a=r.length;n<a;n++){const s=r[n];t.has(s)||(t.add(s),e.addEventListener(s,rs))}}function ce(r,e,t){Pe(r)||(t==null?r.removeAttribute(e):r.setAttribute(e,t))}function Ka(r,e,t,n){Pe(r)||(n==null?r.removeAttributeNS(e,t):r.setAttributeNS(e,t,n))}function Ga(r,e,t){Pe(r)||(t?r.setAttribute(e,""):r.removeAttribute(e))}function Hn(r,e){Pe(r)||(e==null?r.removeAttribute("class"):r.className=e)}function Ya(r,e,t,n){if(n)Array.isArray(t)?(r[`$$${e}`]=t[0],r[`$$${e}Data`]=t[1]):r[`$$${e}`]=t;else if(Array.isArray(t)){const a=t[0];r.addEventListener(e,t[0]=s=>a.call(r,t[1],s))}else r.addEventListener(e,t,typeof t!="function"&&t)}function Vn(r,e,t={}){const n=Object.keys(e||{}),a=Object.keys(t);let s,o;for(s=0,o=a.length;s<o;s++){const i=a[s];!i||i==="undefined"||e[i]||(Rr(r,i,!1),delete t[i])}for(s=0,o=n.length;s<o;s++){const i=n[s],c=!!e[i];!i||i==="undefined"||t[i]===c||!c||(Rr(r,i,!0),t[i]=c)}return t}function Xa(r,e,t){if(!e)return t?ce(r,"style"):e;const n=r.style;if(typeof e=="string")return n.cssText=e;typeof t=="string"&&(n.cssText=t=void 0),t||(t={}),e||(e={});let a,s;for(s in t)e[s]==null&&n.removeProperty(s),delete t[s];for(s in e)a=e[s],a!==t[s]&&(n.setProperty(s,a),t[s]=a);return t}function _y(r,e,t){t!=null?r.style.setProperty(e,t):r.style.removeProperty(e)}function Ne(r,e={},t,n){const a={};return n||ne(()=>a.children=tt(r,e.children,a.children)),ne(()=>typeof e.ref=="function"&&or(e.ref,r)),ne(()=>Qa(r,e,t,!0,a,!0)),a}function or(r,e,t){return te(()=>r(e,t))}function Z(r,e,t,n){if(t!==void 0&&!n&&(n=[]),typeof e!="function")return tt(r,e,n,t);ne(a=>tt(r,e(),a,t),n)}function Qa(r,e,t,n,a={},s=!1){e||(e={});for(const o in a)if(!(o in e)){if(o==="children")continue;a[o]=zr(r,o,null,a[o],t,s,e)}for(const o in e){if(o==="children")continue;const i=e[o];a[o]=zr(r,o,i,a[o],t,s,e)}}function es(r){let e,t;return!Pe()||!(e=I.registry.get(t=ns()))?r():(I.completed&&I.completed.add(e),I.registry.delete(t),e)}function Pe(r){return!!I.context&&!I.done&&(!r||r.isConnected)}function ts(r){return r.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Rr(r,e,t){const n=e.trim().split(/\s+/);for(let a=0,s=n.length;a<s;a++)r.classList.toggle(n[a],t)}function zr(r,e,t,n,a,s,o){let i,c,f,y,u;if(e==="style")return Xa(r,t,n);if(e==="classList")return Vn(r,t,n);if(t===n)return n;if(e==="ref")s||t(r);else if(e.slice(0,3)==="on:"){const p=e.slice(3);n&&r.removeEventListener(p,n,typeof n!="function"&&n),t&&r.addEventListener(p,t,typeof t!="function"&&t)}else if(e.slice(0,10)==="oncapture:"){const p=e.slice(10);n&&r.removeEventListener(p,n,!0),t&&r.addEventListener(p,t,!0)}else if(e.slice(0,2)==="on"){const p=e.slice(2).toLowerCase(),g=za.has(p);if(!g&&n){const m=Array.isArray(n)?n[0]:n;r.removeEventListener(p,m)}(g||t)&&(Ya(r,p,t,g),g&&br([p]))}else if(e.slice(0,5)==="attr:")ce(r,e.slice(5),t);else if(e.slice(0,5)==="bool:")Ga(r,e.slice(5),t);else if((u=e.slice(0,5)==="prop:")||(f=Za.has(e))||!a&&((y=Ra(e,r.tagName))||(c=Fa.has(e)))||(i=r.nodeName.includes("-")||"is"in o)){if(u)e=e.slice(5),c=!0;else if(Pe(r))return t;e==="class"||e==="className"?Hn(r,t):i&&!c&&!f?r[ts(e)]=t:r[y||e]=t}else{const p=a&&e.indexOf(":")>-1&&Ua[e.split(":")[0]];p?Ka(r,p,e,t):ce(r,Ba[e]||e,t)}return t}function rs(r){if(I.registry&&I.events&&I.events.find(([c,f])=>f===r))return;let e=r.target;const t=`$$${r.type}`,n=r.target,a=r.currentTarget,s=c=>Object.defineProperty(r,"target",{configurable:!0,value:c}),o=()=>{const c=e[t];if(c&&!e.disabled){const f=e[`${t}Data`];if(f!==void 0?c.call(e,f,r):c.call(e,r),r.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(r.target)&&s(e.host),!0},i=()=>{for(;o()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(r,"currentTarget",{configurable:!0,get(){return e||document}}),I.registry&&!I.done&&(I.done=_$HY.done=!0),r.composedPath){const c=r.composedPath();s(c[0]);for(let f=0;f<c.length-2&&(e=c[f],!!o());f++){if(e._$host){e=e._$host,i();break}if(e.parentNode===a)break}}else i();s(n)}function tt(r,e,t,n,a){const s=Pe(r);if(s){!t&&(t=[...r.childNodes]);let c=[];for(let f=0;f<t.length;f++){const y=t[f];y.nodeType===8&&y.data.slice(0,2)==="!$"?y.remove():c.push(y)}t=c}for(;typeof t=="function";)t=t();if(e===t)return t;const o=typeof e,i=n!==void 0;if(r=i&&t[0]&&t[0].parentNode||r,o==="string"||o==="number"){if(s||o==="number"&&(e=e.toString(),e===t))return t;if(i){let c=t[0];c&&c.nodeType===3?c.data!==e&&(c.data=e):c=document.createTextNode(e),t=Ze(r,t,n,c)}else t!==""&&typeof t=="string"?t=r.firstChild.data=e:t=r.textContent=e}else if(e==null||o==="boolean"){if(s)return t;t=Ze(r,t,n)}else{if(o==="function")return ne(()=>{let c=e();for(;typeof c=="function";)c=c();t=tt(r,c,t,n)}),()=>t;if(Array.isArray(e)){const c=[],f=t&&Array.isArray(t);if(ir(c,e,t,a))return ne(()=>t=tt(r,c,t,n,!0)),()=>t;if(s){if(!c.length)return t;if(n===void 0)return t=[...r.childNodes];let y=c[0];if(y.parentNode!==r)return t;const u=[y];for(;(y=y.nextSibling)!==n;)u.push(y);return t=u}if(c.length===0){if(t=Ze(r,t,n),i)return t}else f?t.length===0?Nr(r,c,n):Wa(r,t,c):(t&&Ze(r),Nr(r,c));t=c}else if(e.nodeType){if(s&&e.parentNode)return t=i?[e]:e;if(Array.isArray(t)){if(i)return t=Ze(r,t,n,e);Ze(r,t,null,e)}else t==null||t===""||!r.firstChild?r.appendChild(e):r.replaceChild(e,r.firstChild);t=e}}return t}function ir(r,e,t,n){let a=!1;for(let s=0,o=e.length;s<o;s++){let i=e[s],c=t&&t[r.length],f;if(!(i==null||i===!0||i===!1))if((f=typeof i)=="object"&&i.nodeType)r.push(i);else if(Array.isArray(i))a=ir(r,i,c)||a;else if(f==="function")if(n){for(;typeof i=="function";)i=i();a=ir(r,Array.isArray(i)?i:[i],Array.isArray(c)?c:[c])||a}else r.push(i),a=!0;else{const y=String(i);c&&c.nodeType===3&&c.data===y?r.push(c):r.push(document.createTextNode(y))}}return a}function Nr(r,e,t=null){for(let n=0,a=e.length;n<a;n++)r.insertBefore(e[n],t)}function Ze(r,e,t,n){if(t===void 0)return r.textContent="";const a=n||document.createTextNode("");if(e.length){let s=!1;for(let o=e.length-1;o>=0;o--){const i=e[o];if(a!==i){const c=i.parentNode===r;!s&&!o?c?r.replaceChild(a,i):r.insertBefore(a,t):c&&i.remove()}else s=!0}}else r.insertBefore(a,t);return[a]}function ns(){return I.getNextContextId()}const as=!1,ss="http://www.w3.org/2000/svg";function _n(r,e=!1,t=void 0){return e?document.createElementNS(ss,r):document.createElement(r,{is:t})}function Iy(r){const{useShadow:e}=r,t=document.createTextNode(""),n=()=>r.mount||document.body,a=et();let s,o=!!I.context;return ee(()=>{o&&(et().user=o=!1),s||(s=Ht(a,()=>D(()=>r.children)));const i=n();if(i instanceof HTMLHeadElement){const[c,f]=U(!1),y=()=>f(!0);Ae(u=>Z(i,()=>c()?u():s(),null)),fe(y)}else{const c=_n(r.isSVG?"g":"div",r.isSVG),f=e&&c.attachShadow?c.attachShadow({mode:"open"}):c;Object.defineProperty(c,"_$host",{get(){return t.parentNode},configurable:!0}),Z(f,s),i.appendChild(c),r.ref&&r.ref(c),fe(()=>i.removeChild(c))}},void 0,{render:!o}),t}function os(r,e){const t=D(r);return D(()=>{const n=t();switch(typeof n){case"function":return te(()=>n(e));case"string":const a=Na.has(n),s=I.context?es():_n(n,a,te(()=>e.is));return Ne(s,e,a),s}})}function is(r){const[,e]=Me(r,["component"]);return os(()=>r.component,e)}function In(){let r=new Set;function e(a){return r.add(a),()=>r.delete(a)}let t=!1;function n(a,s){if(t)return!(t=!1);const o={to:a,options:s,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const i of r)i.listener({...o,from:i.location,retry:c=>{c&&(t=!0),i.navigate(a,{...s,resolve:!1})}});return!o.defaultPrevented}return{subscribe:e,confirm:n}}let cr;function wr(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),cr=window.history.state._depth}wr();function cs(r){return{...r,_depth:window.history.state&&window.history.state._depth}}function ls(r,e){let t=!1;return()=>{const n=cr;wr();const a=n==null?null:cr-n;if(t){t=!1;return}a&&e(a)?(t=!0,window.history.go(-a)):r()}}const ds=/^(?:[a-z0-9]+:)?\/\//i,fs=/^\/+|(\/)\/+$/g,jn="http://sr";function De(r,e=!1){const t=r.replace(fs,"$1");return t?e||/^[?#]/.test(t)?t:"/"+t:""}function mt(r,e,t){if(ds.test(e))return;const n=De(r),a=t&&De(t);let s="";return!a||e.startsWith("/")?s=n:a.toLowerCase().indexOf(n.toLowerCase())!==0?s=n+a:s=a,(s||"/")+De(e,!s)}function us(r,e){if(r==null)throw new Error(e);return r}function ys(r,e){return De(r).replace(/\/*(\*.*)?$/g,"")+De(e)}function En(r){const e={};return r.searchParams.forEach((t,n)=>{n in e?Array.isArray(e[n])?e[n].push(t):e[n]=[e[n],t]:e[n]=t}),e}function ps(r,e,t){const[n,a]=r.split("/*",2),s=n.split("/").filter(Boolean),o=s.length;return i=>{const c=i.split("/").filter(Boolean),f=c.length-o;if(f<0||f>0&&a===void 0&&!e)return null;const y={path:o?"":"/",params:{}},u=p=>t===void 0?void 0:t[p];for(let p=0;p<o;p++){const g=s[p],m=g[0]===":",h=m?c[p]:c[p].toLowerCase(),w=m?g.slice(1):g.toLowerCase();if(m&&Rt(h,u(w)))y.params[w]=h;else if(m||!Rt(h,w))return null;y.path+=`/${h}`}if(a){const p=f?c.slice(-f).join("/"):"";if(Rt(p,u(a)))y.params[a]=p;else return null}return y}}function Rt(r,e){const t=n=>n===r;return e===void 0?!0:typeof e=="string"?t(e):typeof e=="function"?e(r):Array.isArray(e)?e.some(t):e instanceof RegExp?e.test(r):!1}function hs(r){const[e,t]=r.pattern.split("/*",2),n=e.split("/").filter(Boolean);return n.reduce((a,s)=>a+(s.startsWith(":")?2:3),n.length-(t===void 0?0:1))}function An(r){const e=new Map,t=et();return new Proxy({},{get(n,a){return e.has(a)||Ht(t,()=>e.set(a,D(()=>r()[a]))),e.get(a)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(r())},has(n,a){return a in r()}})}function Dn(r){let e=/(\/?\:[^\/]+)\?/.exec(r);if(!e)return[r];let t=r.slice(0,e.index),n=r.slice(e.index+e[0].length);const a=[t,t+=e[1]];for(;e=/^(\/\:[^\/]+)\?/.exec(n);)a.push(t+=e[1]),n=n.slice(e[0].length);return Dn(n).reduce((s,o)=>[...s,...a.map(i=>i+o)],[])}const ms=100,Tn=st(),vr=st(),ot=()=>us(Se(Tn),"<A> and 'use' router primitives can be only used inside a Route."),ks=()=>Se(vr)||ot().base,gs=r=>{const e=ks();return D(()=>e.resolvePath(r()))},bs=r=>{const e=ot();return D(()=>{const t=r();return t!==void 0?e.renderPath(t):t})},ws=()=>ot().navigatorFactory(),It=()=>ot().location,jy=()=>ot().params;function vs(r,e=""){const{component:t,preload:n,load:a,children:s,info:o}=r,i=!s||Array.isArray(s)&&!s.length,c={key:r,component:t,preload:n||a,info:o};return Sn(r.path).reduce((f,y)=>{for(const u of Dn(y)){const p=ys(e,u);let g=i?p:p.split("/*",1)[0];g=g.split("/").map(m=>m.startsWith(":")||m.startsWith("*")?m:encodeURIComponent(m)).join("/"),f.push({...c,originalPath:y,pattern:g,matcher:ps(g,!i,r.matchFilters)})}return f},[])}function xs(r,e=0){return{routes:r,score:hs(r[r.length-1])*1e4-e,matcher(t){const n=[];for(let a=r.length-1;a>=0;a--){const s=r[a],o=s.matcher(t);if(!o)return null;n.unshift({...o,route:s})}return n}}}function Sn(r){return Array.isArray(r)?r:[r]}function Pn(r,e="",t=[],n=[]){const a=Sn(r);for(let s=0,o=a.length;s<o;s++){const i=a[s];if(i&&typeof i=="object"){i.hasOwnProperty("path")||(i.path="");const c=vs(i,e);for(const f of c){t.push(f);const y=Array.isArray(i.children)&&i.children.length===0;if(i.children&&!y)Pn(i.children,f.pattern,t,n);else{const u=xs([...t],n.length);n.push(u)}t.pop()}}}return t.length?n:n.sort((s,o)=>o.score-s.score)}function zt(r,e){for(let t=0,n=r.length;t<n;t++){const a=r[t].matcher(e);if(a)return a}return[]}function Cs(r,e,t){const n=new URL(jn),a=D(y=>{const u=r();try{return new URL(u,n)}catch{return console.error(`Invalid path ${u}`),y}},n,{equals:(y,u)=>y.href===u.href}),s=D(()=>a().pathname),o=D(()=>a().search,!0),i=D(()=>a().hash),c=()=>"",f=kr(o,()=>En(a()));return{get pathname(){return s()},get search(){return o()},get hash(){return i()},get state(){return e()},get key(){return c()},query:t?t(f):An(f)}}let Ee;function Ls(){return Ee}function qs(r,e,t,n={}){const{signal:[a,s],utils:o={}}=r,i=o.parsePath||(C=>C),c=o.renderPath||(C=>C),f=o.beforeLeave||In(),y=mt("",n.base||"");if(y===void 0)throw new Error(`${y} is not a valid base path`);y&&!a().value&&s({value:y,replace:!0,scroll:!1});const[u,p]=U(!1);let g;const m=(C,E)=>{E.value===h()&&E.state===H()||(g===void 0&&p(!0),Ee=C,g=E,Ma(()=>{g===E&&(w(g.value),_(g.state),q[1](N=>N.filter(J=>J.pending)))}).finally(()=>{g===E&&vn(()=>{Ee=void 0,C==="navigate"&&M(g),p(!1),g=void 0})}))},[h,w]=U(a().value),[H,_]=U(a().state),A=Cs(h,H,o.queryWrapper),T=[],q=U([]),x=D(()=>typeof n.transformUrl=="function"?zt(e(),n.transformUrl(A.pathname)):zt(e(),A.pathname)),F=()=>{const C=x(),E={};for(let N=0;N<C.length;N++)Object.assign(E,C[N].params);return E},j=o.paramsWrapper?o.paramsWrapper(F,e):An(F),b={pattern:y,path:()=>y,outlet:()=>null,resolvePath(C){return mt(y,C)}};return ne(kr(a,C=>m("native",C),{defer:!0})),{base:b,location:A,params:j,isRouting:u,renderPath:c,parsePath:i,navigatorFactory:v,matches:x,beforeLeave:f,preloadRoute:V,singleFlight:n.singleFlight===void 0?!0:n.singleFlight,submissions:q};function S(C,E,N){te(()=>{if(typeof E=="number"){E&&(o.go?o.go(E):console.warn("Router integration does not support relative routing"));return}const J=!E||E[0]==="?",{replace:he,resolve:G,scroll:re,state:ae}={replace:!1,resolve:!J,scroll:!0,...N},ye=G?C.resolvePath(E):mt(J&&A.pathname||"",E);if(ye===void 0)throw new Error(`Path '${E}' is not a routable path`);if(T.length>=ms)throw new Error("Too many redirects");const Ie=h();(ye!==Ie||ae!==H())&&(as||f.confirm(ye,N)&&(T.push({value:Ie,replace:he,scroll:re,state:H()}),m("navigate",{value:ye,state:ae})))})}function v(C){return C=C||Se(vr)||b,(E,N)=>S(C,E,N)}function M(C){const E=T[0];E&&(s({...C,replace:E.replace,scroll:E.scroll}),T.length=0)}function V(C,E){const N=zt(e(),C.pathname),J=Ee;Ee="preload";for(let he in N){const{route:G,params:re}=N[he];G.component&&G.component.preload&&G.component.preload();const{preload:ae}=G;E&&ae&&Ht(t(),()=>ae({params:re,location:{pathname:C.pathname,search:C.search,hash:C.hash,query:En(C),state:null,key:""},intent:"preload"}))}Ee=J}}function Ms(r,e,t,n){const{base:a,location:s,params:o}=r,{pattern:i,component:c,preload:f}=n().route,y=D(()=>n().path);c&&c.preload&&c.preload();const u=f?f({params:o,location:s,intent:Ee||"initial"}):void 0;return{parent:e,pattern:i,path:y,outlet:()=>c?$(c,{params:o,location:s,data:u,get children(){return t()}}):t(),resolvePath(g){return mt(a.path(),g,y())}}}const $s=r=>e=>{const{base:t}=e,n=Vt(()=>e.children),a=D(()=>Pn(n(),e.base||""));let s;const o=qs(r,a,()=>s,{base:t,singleFlight:e.singleFlight,transformUrl:e.transformUrl});return r.create&&r.create(o),$(Tn.Provider,{value:o,get children(){return $(Hs,{routerState:o,get root(){return e.root},get preload(){return e.rootPreload||e.rootLoad},get children(){return[Le(()=>(s=et())&&null),$(Vs,{routerState:o,get branches(){return a()}})]}})}})};function Hs(r){const e=r.routerState.location,t=r.routerState.params,n=D(()=>r.preload&&te(()=>{r.preload({params:t,location:e,intent:Ls()||"initial"})}));return $(ie,{get when(){return r.root},keyed:!0,get fallback(){return r.children},children:a=>$(a,{params:t,location:e,get data(){return n()},get children(){return r.children}})})}function Vs(r){const e=[];let t;const n=D(kr(r.routerState.matches,(a,s,o)=>{let i=s&&a.length===s.length;const c=[];for(let f=0,y=a.length;f<y;f++){const u=s&&s[f],p=a[f];o&&u&&p.route.key===u.route.key?c[f]=o[f]:(i=!1,e[f]&&e[f](),Ae(g=>{e[f]=g,c[f]=Ms(r.routerState,c[f-1]||r.routerState.base,Ur(()=>n()[f+1]),()=>{const m=r.routerState.matches();return m[f]??m[0]})}))}return e.splice(a.length).forEach(f=>f()),o&&i?o:(t=c[0],c)}));return Ur(()=>n()&&t)()}const Ur=r=>()=>$(ie,{get when(){return r()},keyed:!0,children:e=>$(vr.Provider,{value:e,get children(){return e.outlet()}})}),ve=r=>{const e=Vt(()=>r.children);return pe(r,{get children(){return e()}})};function _s([r,e],t,n){return[r,n?a=>e(n(a)):e]}function Is(r){let e=!1;const t=a=>typeof a=="string"?{value:a}:a,n=_s(U(t(r.get()),{equals:(a,s)=>a.value===s.value&&a.state===s.state}),void 0,a=>(!e&&r.set(a),I.registry&&!I.done&&(I.done=!0),a));return r.init&&fe(r.init((a=r.get())=>{e=!0,n[1](t(a)),e=!1})),$s({signal:n,create:r.create,utils:r.utils})}function js(r,e,t){return r.addEventListener(e,t),()=>r.removeEventListener(e,t)}function Es(r,e){const t=r&&document.getElementById(r);t?t.scrollIntoView():e&&window.scrollTo(0,0)}const As=new Map;function Ds(r=!0,e=!1,t="/_server",n){return a=>{const s=a.base.path(),o=a.navigatorFactory(a.base);let i,c;function f(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function y(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const w=h.composedPath().find(x=>x instanceof Node&&x.nodeName.toUpperCase()==="A");if(!w||e&&!w.hasAttribute("link"))return;const H=f(w),_=H?w.href.baseVal:w.href;if((H?w.target.baseVal:w.target)||!_&&!w.hasAttribute("state"))return;const T=(w.getAttribute("rel")||"").split(/\s+/);if(w.hasAttribute("download")||T&&T.includes("external"))return;const q=H?new URL(_,document.baseURI):new URL(_);if(!(q.origin!==window.location.origin||s&&q.pathname&&!q.pathname.toLowerCase().startsWith(s.toLowerCase())))return[w,q]}function u(h){const w=y(h);if(!w)return;const[H,_]=w,A=a.parsePath(_.pathname+_.search+_.hash),T=H.getAttribute("state");h.preventDefault(),o(A,{resolve:!1,replace:H.hasAttribute("replace"),scroll:!H.hasAttribute("noscroll"),state:T?JSON.parse(T):void 0})}function p(h){const w=y(h);if(!w)return;const[H,_]=w;n&&(_.pathname=n(_.pathname)),a.preloadRoute(_,H.getAttribute("preload")!=="false")}function g(h){clearTimeout(i);const w=y(h);if(!w)return c=null;const[H,_]=w;c!==H&&(n&&(_.pathname=n(_.pathname)),i=setTimeout(()=>{a.preloadRoute(_,H.getAttribute("preload")!=="false"),c=H},20))}function m(h){if(h.defaultPrevented)return;let w=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!w)return;if(!w.startsWith("https://action/")){const _=new URL(w,jn);if(w=a.parsePath(_.pathname+_.search),!w.startsWith(t))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const H=As.get(w);if(H){h.preventDefault();const _=new FormData(h.target,h.submitter);H.call({r:a,f:h.target},h.target.enctype==="multipart/form-data"?_:new URLSearchParams(_))}}br(["click","submit"]),document.addEventListener("click",u),r&&(document.addEventListener("mousemove",g,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",m),fe(()=>{document.removeEventListener("click",u),r&&(document.removeEventListener("mousemove",g),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",m)})}}function Ts(r){const e=()=>{const n=window.location.pathname.replace(/^\/+/,"/")+window.location.search,a=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:n+window.location.hash,state:a}},t=In();return Is({get:e,set({value:n,replace:a,scroll:s,state:o}){a?window.history.replaceState(cs(o),"",n):window.history.pushState(o,"",n),Es(decodeURIComponent(window.location.hash.slice(1)),s),wr()},init:n=>js(window,"popstate",ls(n,a=>{if(a)return!t.confirm(a);{const s=e();return!t.confirm(s.value,{state:s.state})}})),create:Ds(r.preload,r.explicitLinks,r.actionBase,r.transformUrl),utils:{go:n=>window.history.go(n),beforeLeave:t}})(r)}var Ss=W("<a>");function Xe(r){r=pe({inactiveClass:"inactive",activeClass:"active"},r);const[,e]=Me(r,["href","state","class","activeClass","inactiveClass","end"]),t=gs(()=>r.href),n=bs(t),a=It(),s=D(()=>{const o=t();if(o===void 0)return[!1,!1];const i=De(o.split(/[?#]/,1)[0]).toLowerCase(),c=decodeURI(De(a.pathname).toLowerCase());return[r.end?i===c:c.startsWith(i+"/")||c===i,i===c]});return(()=>{var o=Ss();return Ne(o,pe(e,{get href(){return n()||r.href},get state(){return JSON.stringify(r.state)},get classList(){return{...r.class&&{[r.class]:!0},[r.inactiveClass]:!s()[0],[r.activeClass]:s()[0],...e.classList}},link:"",get"aria-current"(){return s()[1]?"page":void 0}}),!1,!1),o})()}const lr=Symbol("store-raw"),Oe=Symbol("store-node"),xe=Symbol("store-has"),Fn=Symbol("store-self");function Zn(r){let e=r[ge];if(!e&&(Object.defineProperty(r,ge,{value:e=new Proxy(r,Zs)}),!Array.isArray(r))){const t=Object.keys(r),n=Object.getOwnPropertyDescriptors(r);for(let a=0,s=t.length;a<s;a++){const o=t[a];n[o].get&&Object.defineProperty(r,o,{enumerable:n[o].enumerable,get:n[o].get.bind(e)})}}return e}function wt(r){let e;return r!=null&&typeof r=="object"&&(r[ge]||!(e=Object.getPrototypeOf(r))||e===Object.prototype||Array.isArray(r))}function rt(r,e=new Set){let t,n,a,s;if(t=r!=null&&r[lr])return t;if(!wt(r)||e.has(r))return r;if(Array.isArray(r)){Object.isFrozen(r)?r=r.slice(0):e.add(r);for(let o=0,i=r.length;o<i;o++)a=r[o],(n=rt(a,e))!==a&&(r[o]=n)}else{Object.isFrozen(r)?r=Object.assign({},r):e.add(r);const o=Object.keys(r),i=Object.getOwnPropertyDescriptors(r);for(let c=0,f=o.length;c<f;c++)s=o[c],!i[s].get&&(a=r[s],(n=rt(a,e))!==a&&(r[s]=n))}return r}function vt(r,e){let t=r[e];return t||Object.defineProperty(r,e,{value:t=Object.create(null)}),t}function nt(r,e,t){if(r[e])return r[e];const[n,a]=U(t,{equals:!1,internal:!0});return n.$=a,r[e]=n}function Ps(r,e){const t=Reflect.getOwnPropertyDescriptor(r,e);return!t||t.get||!t.configurable||e===ge||e===Oe||(delete t.value,delete t.writable,t.get=()=>r[ge][e]),t}function Bn(r){nr()&&nt(vt(r,Oe),Fn)()}function Fs(r){return Bn(r),Reflect.ownKeys(r)}const Zs={get(r,e,t){if(e===lr)return r;if(e===ge)return t;if(e===rr)return Bn(r),t;const n=vt(r,Oe),a=n[e];let s=a?a():r[e];if(e===Oe||e===xe||e==="__proto__")return s;if(!a){const o=Object.getOwnPropertyDescriptor(r,e);nr()&&(typeof s!="function"||r.hasOwnProperty(e))&&!(o&&o.get)&&(s=nt(n,e,s)())}return wt(s)?Zn(s):s},has(r,e){return e===lr||e===ge||e===rr||e===Oe||e===xe||e==="__proto__"?!0:(nr()&&nt(vt(r,xe),e)(),e in r)},set(){return!0},deleteProperty(){return!0},ownKeys:Fs,getOwnPropertyDescriptor:Ps};function xt(r,e,t,n=!1){if(!n&&r[e]===t)return;const a=r[e],s=r.length;t===void 0?(delete r[e],r[xe]&&r[xe][e]&&a!==void 0&&r[xe][e].$()):(r[e]=t,r[xe]&&r[xe][e]&&a===void 0&&r[xe][e].$());let o=vt(r,Oe),i;if((i=nt(o,e,a))&&i.$(()=>t),Array.isArray(r)&&r.length!==s){for(let c=r.length;c<s;c++)(i=o[c])&&i.$();(i=nt(o,"length",s))&&i.$(r.length)}(i=o[Fn])&&i.$()}function On(r,e){const t=Object.keys(e);for(let n=0;n<t.length;n+=1){const a=t[n];xt(r,a,e[a])}}function Bs(r,e){if(typeof e=="function"&&(e=e(r)),e=rt(e),Array.isArray(e)){if(r===e)return;let t=0,n=e.length;for(;t<n;t++){const a=e[t];r[t]!==a&&xt(r,t,a)}xt(r,"length",n)}else On(r,e)}function Ke(r,e,t=[]){let n,a=r;if(e.length>1){n=e.shift();const o=typeof n,i=Array.isArray(r);if(Array.isArray(n)){for(let c=0;c<n.length;c++)Ke(r,[n[c]].concat(e),t);return}else if(i&&o==="function"){for(let c=0;c<r.length;c++)n(r[c],c)&&Ke(r,[c].concat(e),t);return}else if(i&&o==="object"){const{from:c=0,to:f=r.length-1,by:y=1}=n;for(let u=c;u<=f;u+=y)Ke(r,[u].concat(e),t);return}else if(e.length>1){Ke(r[n],e,[n].concat(t));return}a=r[n],t=[n].concat(t)}let s=e[0];typeof s=="function"&&(s=s(a,t),s===a)||n===void 0&&s==null||(s=rt(s),n===void 0||wt(a)&&wt(s)&&!Array.isArray(s)?On(a,s):xt(r,n,s))}function Os(...[r,e]){const t=rt(r||{}),n=Array.isArray(t),a=Zn(t);function s(...o){vn(()=>{n&&o.length===1?Bs(t,o[0]):Ke(t,o)})}return[a,s]}function Ve(r,e,t){return Math.max(e,Math.min(t,r))}function Rs(r){return(r%360+360)%360}function at(r){const e=r.replace("#",""),t=e.length===3||e.length===4?e.split("").map(s=>s+s).join(""):e,n=t.length===8?t.slice(0,6):t,a=parseInt(n,16);return{r:(a>>16&255)/255,g:(a>>8&255)/255,b:(a&255)/255}}function Rn(r,e,t){const n=a=>{const s=Ve(a,0,1);return Math.round(s*255).toString(16).padStart(2,"0")};return`#${n(r)}${n(e)}${n(t)}`}function Nt(r){return r<=.0031308?r*12.92:1.055*Math.pow(r,1/2.4)-.055}function Ut(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function zs(r,e,t){const n=Ut(r),a=Ut(e),s=Ut(t),o=.4122214708*n+.5363325363*a+.0514459929*s,i=.2119034982*n+.6806995451*a+.1073969566*s,c=.0883024619*n+.2817188376*a+.6299787005*s,f=Math.cbrt(o),y=Math.cbrt(i),u=Math.cbrt(c),p=.2104542553*f+.793617785*y-.0040720468*u,g=1.9779984951*f-2.428592205*y+.4505937099*u,m=.0259040371*f+.7827717662*y-.808675766*u,h=Math.sqrt(g*g+m*m);let w=Math.atan2(m,g)*(180/Math.PI);return w<0&&(w+=360),{l:p,c:h,h:w}}function dr(r){const{l:e,c:t,h:n}=r,a=t*Math.cos(n*Math.PI/180),s=t*Math.sin(n*Math.PI/180),o=e+.3963377774*a+.2158037573*s,i=e-.1055613458*a-.0638541728*s,c=e-.0894841775*a-1.291485548*s,f=o*o*o,y=i*i*i,u=c*c*c,p=4.0767416621*f-3.3077115913*y+.2309699292*u,g=-1.2684380046*f+2.6097574011*y-.3413193965*u,m=-.0041960863*f-.7034186147*y+1.707614701*u;return{r:Nt(p),g:Nt(g),b:Nt(m)}}function we(r){const{r:e,g:t,b:n}=at(r);return zs(e,t,n)}function Ns(r){const e={l:Ve(r.l,0,1),c:Math.max(0,r.c),h:Rs(r.h)},t=dr(e);if(t.r>=0&&t.r<=1&&t.g>=0&&t.g<=1&&t.b>=0&&t.b<=1)return e;let n=e.c;for(let a=0;a<24;a++){n*=.9;const s={...e,c:n},o=dr(s);if(o.r>=0&&o.r<=1&&o.g>=0&&o.g<=1&&o.b>=0&&o.b<=1)return s}return{...e,c:0}}function Re(r){const{r:e,g:t,b:n}=dr(Ns(r));return Rn(e,t,n)}function me(r,e){const t=we(r),n=[],a=e?[.118,.138,.167,.202,.246,.304,.378,.468,Ve(t.l*.825,.53,.705),Ve(t.l*.89,.61,.79),Ve(t.l+.033,.868,.943),.984]:[.993,.983,.962,.936,.906,.866,.811,.74,t.l,Math.max(0,t.l-.036),.49,.27],s=e?[.52,.68,.86,1.02,1.14,1.24,1.36,1.48,1.56,1.64,1.62,1.15]:[.12,.24,.46,.68,.84,.98,1.08,1.16,1.22,1.26,1.18,.98];for(let o=0;o<12;o++)n.push(Re({l:a[o],c:t.c*s[o],h:t.h}));return n}function Us(r,e,t){if(t){const i=we(r),c=p=>Re({l:i.l+(1-i.l)*p,c:i.c*Math.max(0,1-p),h:i.h}),y=e?(p=>Re({l:i.l*(1-p),c:i.c*Math.max(0,1-p*(e?.12:.3)),h:i.h}))(Ve(.19+Math.max(0,i.l-.12)*.33+i.c*1.95,.17,.27)):i.l<.82?c(.86):c(Ve(.1+i.c*3.2+Math.max(0,.95-i.l)*.35,.1,.28));return(e?[0,.018,.039,.064,.097,.143,.212,.31,.46,.649,.845,.984]:[0,.022,.042,.068,.102,.146,.208,.296,.432,.61,.81,.965]).map(p=>Ws(y,t,p))}const n=we(r),a=[],s=Math.min(n.c,e?.068:.04),o=e?[.138,.156,.178,.202,.232,.272,.326,.404,Ve(n.l*.83,.43,.55),.596,.719,.956]:[.991,.979,.964,.946,.931,.913,.891,.83,n.l,.617,.542,.205];for(let i=0;i<12;i++)a.push(Re({l:o[i],c:s,h:n.h}));return a}function Ws(r,e,t){const n=we(r),a=we(e),s=((a.h-n.h)%360+540)%360-180;return Re({l:n.l+(a.l-n.l)*t,c:n.c+(a.c-n.c)*t,h:n.h+s*t})}function de(r,e){const t=we(r);return Re({l:t.l+(e.l??0),c:t.c*(e.c??1),h:t.h+(e.h??0)})}function fr(r,e,t){const n=at(r),a=at(e);return Rn(n.r*t+a.r*(1-t),n.g*t+a.g*(1-t),n.b*t+a.b*(1-t))}function je(r,e){const{r:t,g:n,b:a}=at(r);return`rgba(${Math.round(t*255)}, ${Math.round(n*255)}, ${Math.round(a*255)}, ${e})`}function zn(r,e){const t=Js(r),{overrides:n={}}=r,a=Us(t.neutral,e,t.ink),s=me(t.primary,e),o=me(t.accent,e),i=me(t.success,e),c=me(t.warning,e),f=me(t.error,e),y=me(t.info,e),u=me(t.interactive,e),p=me(de(t.warning,e?{h:-16,l:-.058,c:1.14}:{h:-22,l:-.082,c:.94}),e),g=me(de(t.interactive,{h:-12,l:.128,c:1.12}),e),m=me(t.diffAdd??de(t.success,{c:e?.7:.55,l:e?-.18:.14}),e),h=me(t.diffDelete??de(t.error,{c:e?.82:.7,l:e?-.08:.08}),e),w=t.ink??t.neutral,H=t.compact?we(w):void 0,_=H?de(w,{l:e?Math.max(0,.88-H.l)*.4:-Math.max(0,H.l-.18)*.24,c:e?1.04:1.02}):void 0,A=n["background-base"],T=Gs(A),q=!!A&&!T,x=(K,Y)=>{const le=we(K),$e=e&&le.l>.84?de(K,{c:1.18}):Y[10];return de($e,{l:e?.034:-.024,c:e?1.3:1.18})},F=()=>{if(!t.compact)return e?"#ffba92":"#FF8C00";const K=we(t.warning).h,Y=we(t.diffDelete??t.error).h;return Math.abs(((Y-K)%360+540)%360-180)<48?e?"#ffba92":"#FF8C00":x(t.warning,c)},j=(K,Y)=>({base:S(K,Y.base),weak:S(K,Y.weak),weaker:S(K,Y.weaker),strong:S(K,Y.strong),stronger:S(K,Y.stronger)}),b=T??a[0],S=(K,Y)=>q?je(K,Y):fr(K,b,Y),v=(K,Y)=>S(w,e?Math.min(1,Y+.024+(t.compact?.08:0)):Math.min(1,K+.024)),M=j(e?de(t.interactive,{c:.55,l:0}):de(t.interactive,{c:.45,l:.08}),e?{base:.14,weak:.08,weaker:.18,strong:.26,stronger:.42}:{base:.12,weak:.08,weaker:.16,strong:.24,stronger:.36}),V=Ks(a,e),C=s[8],E=s[9],N=u[e?6:4],J=u[e?7:5],he=u[e?5:3],G=i[e?6:4],re=i[e?5:3],ae=i[10],ye=c[e?6:4],Ie=c[e?5:3],it=c[10],ct=f[e?6:4],ka=f[e?5:3],lt=f[10],dt=y[e?6:4],ga=y[e?5:3],ft=y[10],Ar=K=>{const Y=at(K),le=$e=>$e<=.04045?$e/12.92:Math.pow(($e+.055)/1.055,2.4);return .2126*le(Y.r)+.7152*le(Y.g)+.0722*le(Y.b)},Dr=(K,Y)=>{const le=Ar(K),$e=Ar(Y),ba=Math.max(le,$e),wa=Math.min(le,$e);return(ba+.05)/(wa+.05)},O=K=>{const Y="#ffffff",le="#000000";return Dr(Y,K)>Dr(le,K)?Y:le},l={};l["background-base"]=a[0],l["background-weak"]=a[2],l["background-strong"]=a[0],l["background-stronger"]=e?a[1]:"#fcfcfc",l["surface-base"]=V[1],l.base=V[1],l["surface-base-hover"]=V[2],l["surface-base-active"]=V[2],l["surface-base-interactive-active"]=je(u[2],.3),l.base2=V[1],l.base3=V[1],l["surface-inset-base"]=V[1],l["surface-inset-base-hover"]=V[2],l["surface-inset-strong"]=e?je(a[0],.5):je(a[3],.09),l["surface-inset-strong-hover"]=l["surface-inset-strong"],l["surface-raised-base"]=V[0],l["surface-float-base"]=e?a[1]:a[11],l["surface-float-base-hover"]=e?a[2]:a[10],l["surface-raised-base-hover"]=V[1],l["surface-raised-base-active"]=V[2],l["surface-raised-strong"]=e?V[3]:a[0],l["surface-raised-strong-hover"]=e?V[5]:"#ffffff",l["surface-raised-stronger"]=e?V[5]:"#ffffff",l["surface-raised-stronger-hover"]=e?V[6]:"#ffffff",l["surface-weak"]=V[2],l["surface-weaker"]=V[3],l["surface-strong"]=e?V[6]:"#ffffff",l["surface-raised-stronger-non-alpha"]=e?a[2]:"#ffffff",l["surface-brand-base"]=C,l["surface-brand-hover"]=E,l["surface-interactive-base"]=N,l["surface-interactive-hover"]=J,l["surface-interactive-weak"]=he,l["surface-interactive-weak-hover"]=N,l["surface-success-base"]=G,l["surface-success-weak"]=re,l["surface-success-strong"]=ae,l["surface-warning-base"]=ye,l["surface-warning-weak"]=Ie,l["surface-warning-strong"]=it,l["surface-critical-base"]=ct,l["surface-critical-weak"]=ka,l["surface-critical-strong"]=lt,l["surface-info-base"]=dt,l["surface-info-weak"]=ga,l["surface-info-strong"]=ft,l["surface-diff-unchanged-base"]=e?a[0]:"#ffffff00",l["surface-diff-skip-base"]=e?V[0]:a[1],l["surface-diff-hidden-base"]=M.base,l["surface-diff-hidden-weak"]=M.weak,l["surface-diff-hidden-weaker"]=M.weaker,l["surface-diff-hidden-strong"]=M.strong,l["surface-diff-hidden-stronger"]=M.stronger,l["surface-diff-add-base"]=m[2],l["surface-diff-add-weak"]=m[e?3:1],l["surface-diff-add-weaker"]=m[e?2:0],l["surface-diff-add-strong"]=m[4],l["surface-diff-add-stronger"]=m[e?10:8],l["surface-diff-delete-base"]=h[2],l["surface-diff-delete-weak"]=h[e?3:1],l["surface-diff-delete-weaker"]=h[e?2:0],l["surface-diff-delete-strong"]=h[e?4:5],l["surface-diff-delete-stronger"]=h[e?10:8],l["input-base"]=e?a[1]:a[0],l["input-hover"]=e?a[2]:a[1],l["input-active"]=e?u[6]:u[0],l["input-selected"]=e?u[7]:u[3],l["input-focus"]=e?u[6]:u[0],l["input-disabled"]=a[3],l["text-base"]=t.compact?_:a[10],l["text-weak"]=t.compact?de(_,{l:e?-.11:.11,c:.9}):a[8],l["text-weaker"]=t.compact?de(_,{l:e?-.2:.21,c:e?.78:.72}):a[7],l["text-strong"]=t.compact?e?fr("#ffffff",_,.9):de(_,{l:-.07,c:1.04}):a[11],l["text-invert-base"]=e?a[10]:a[1],l["text-invert-weak"]=e?a[8]:a[2],l["text-invert-weaker"]=e?a[7]:a[3],l["text-invert-strong"]=e?a[11]:a[0],l["text-interactive-base"]=u[e?10:9],l["text-on-brand-base"]=O(C),l["text-on-interactive-base"]=O(N),l["text-on-interactive-weak"]=O(N),l["text-on-success-base"]=O(G),l["text-on-critical-base"]=O(ct),l["text-on-critical-weak"]=O(ct),l["text-on-critical-strong"]=O(lt),l["text-on-warning-base"]=O(ye),l["text-on-info-base"]=O(dt),l["text-diff-add-base"]=m[10],l["text-diff-delete-base"]=h[9],l["text-diff-delete-strong"]=h[11],l["text-diff-add-strong"]=m[e?7:11],l["text-on-info-weak"]=O(dt),l["text-on-info-strong"]=O(ft),l["text-on-warning-weak"]=O(ye),l["text-on-warning-strong"]=O(it),l["text-on-success-weak"]=O(G),l["text-on-success-strong"]=O(ae),l["text-on-brand-weak"]=O(C),l["text-on-brand-weaker"]=O(C),l["text-on-brand-strong"]=O(E),l["button-primary-base"]=a[11],l["button-secondary-base"]=e?a[2]:a[0],l["button-secondary-hover"]=e?a[3]:a[1],l["button-ghost-hover"]=V[1],l["button-ghost-hover2"]=V[2],l["border-base"]=t.compact?v(.22,.16):V[6],l["border-hover"]=t.compact?v(.28,.2):V[7],l["border-active"]=t.compact?v(.34,.24):V[8],l["border-selected"]=je(u[8],e?.9:.99),l["border-disabled"]=t.compact?v(.18,.12):V[7],l["border-focus"]=t.compact?v(.34,.24):V[8],l["border-weak-base"]=t.compact?v(.1,.08):V[e?5:4],l["border-strong-base"]=t.compact?v(.34,.24):V[e?7:6],l["border-strong-hover"]=t.compact?v(.4,.28):V[7],l["border-strong-active"]=t.compact?v(.46,.32):V[e?7:6],l["border-strong-selected"]=je(u[5],.6),l["border-strong-disabled"]=t.compact?v(.14,.1):V[5],l["border-strong-focus"]=t.compact?v(.46,.32):V[e?7:6],l["border-weak-hover"]=t.compact?v(.16,.12):V[e?6:5],l["border-weak-active"]=t.compact?v(.22,.16):V[e?7:6],l["border-weak-selected"]=je(u[4],e?.6:.5),l["border-weak-disabled"]=t.compact?v(.08,.06):V[5],l["border-weak-focus"]=t.compact?v(.22,.16):V[e?7:6],l["border-weaker-base"]=t.compact?v(.06,.04):V[2],l["border-interactive-base"]=u[6],l["border-interactive-hover"]=u[7],l["border-interactive-active"]=u[8],l["border-interactive-selected"]=u[8],l["border-interactive-disabled"]=a[7],l["border-interactive-focus"]=u[8],l["border-success-base"]=i[6],l["border-success-hover"]=i[7],l["border-success-selected"]=i[8],l["border-warning-base"]=c[6],l["border-warning-hover"]=c[7],l["border-warning-selected"]=c[8],l["border-critical-base"]=f[6],l["border-critical-hover"]=f[7],l["border-critical-selected"]=f[8],l["border-info-base"]=y[6],l["border-info-hover"]=y[7],l["border-info-selected"]=y[8],l["border-color"]="#ffffff",l["icon-base"]=t.compact&&!e?l["text-weak"]:a[e?9:8],l["icon-hover"]=t.compact&&!e?l["text-base"]:a[10],l["icon-active"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-selected"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-disabled"]=a[e?6:7],l["icon-focus"]=t.compact&&!e?l["text-strong"]:a[11],l["icon-invert-base"]=e?a[0]:"#ffffff",l["icon-weak-base"]=a[e?5:6],l["icon-weak-hover"]=a[e?11:7],l["icon-weak-active"]=a[8],l["icon-weak-selected"]=a[e?8:9],l["icon-weak-disabled"]=a[e?3:5],l["icon-weak-focus"]=a[8],l["icon-strong-base"]=a[11],l["icon-strong-hover"]=e?"#f6f3f3":"#151313",l["icon-strong-active"]=e?"#fcfcfc":"#020202",l["icon-strong-selected"]=e?"#fdfcfc":"#020202",l["icon-strong-disabled"]=a[7],l["icon-strong-focus"]=e?"#fdfcfc":"#020202",l["icon-brand-base"]=e?"#ffffff":a[11],l["icon-interactive-base"]=u[8],l["icon-success-base"]=i[e?8:6],l["icon-success-hover"]=i[9],l["icon-success-active"]=i[10],l["icon-warning-base"]=p[e?8:6],l["icon-warning-hover"]=p[9],l["icon-warning-active"]=p[10],l["icon-critical-base"]=f[e?8:9],l["icon-critical-hover"]=f[9],l["icon-critical-active"]=f[10],l["icon-info-base"]=y[e?8:6],l["icon-info-hover"]=y[e?9:7],l["icon-info-active"]=y[10],l["icon-on-brand-base"]=O(C),l["icon-on-brand-hover"]=O(E),l["icon-on-brand-selected"]=O(E),l["icon-on-interactive-base"]=O(N),l["icon-agent-plan-base"]=y[8],l["icon-agent-docs-base"]=p[8],l["icon-agent-ask-base"]=g[8],l["icon-agent-build-base"]=u[e?10:8],l["icon-on-success-base"]=O(G),l["icon-on-success-hover"]=O(ae),l["icon-on-success-selected"]=O(ae),l["icon-on-warning-base"]=O(ye),l["icon-on-warning-hover"]=O(it),l["icon-on-warning-selected"]=O(it),l["icon-on-critical-base"]=O(ct),l["icon-on-critical-hover"]=O(lt),l["icon-on-critical-selected"]=O(lt),l["icon-on-info-base"]=O(dt),l["icon-on-info-hover"]=O(ft),l["icon-on-info-selected"]=O(ft),l["icon-diff-add-base"]=m[10],l["icon-diff-add-hover"]=m[e?9:11],l["icon-diff-add-active"]=m[e?10:11],l["icon-diff-delete-base"]=h[9],l["icon-diff-delete-hover"]=h[10],l["icon-diff-modified-base"]=F(),t.compact&&(l["syntax-comment"]="var(--text-weak)",l["syntax-regexp"]="var(--text-base)",l["syntax-string"]=x(t.success,i),l["syntax-keyword"]=x(t.accent,o),l["syntax-primitive"]=x(t.primary,s),l["syntax-operator"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-variable"]="var(--text-strong)",l["syntax-property"]=x(t.info,y),l["syntax-type"]=x(t.warning,c),l["syntax-constant"]=x(t.accent,o),l["syntax-punctuation"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-object"]="var(--text-strong)",l["syntax-success"]=i[10],l["syntax-warning"]=p[10],l["syntax-critical"]=f[10],l["syntax-info"]=x(t.info,y),l["syntax-diff-add"]=m[10],l["syntax-diff-delete"]=h[10],l["syntax-diff-unknown"]="#ff0000",l["markdown-heading"]=x(t.primary,s),l["markdown-text"]=l["text-base"],l["markdown-link"]=x(t.interactive,u),l["markdown-link-text"]=x(t.info,y),l["markdown-code"]=x(t.success,i),l["markdown-block-quote"]=x(t.warning,c),l["markdown-emph"]=x(t.warning,c),l["markdown-strong"]=x(t.accent,o),l["markdown-horizontal-rule"]=l["border-base"],l["markdown-list-item"]=x(t.interactive,u),l["markdown-list-enumeration"]=x(t.info,y),l["markdown-image"]=x(t.interactive,u),l["markdown-image-text"]=x(t.info,y),l["markdown-code-block"]=l["text-base"]),t.compact||(l["syntax-comment"]="var(--text-weak)",l["syntax-regexp"]="var(--text-base)",l["syntax-string"]=e?"#00ceb9":"#006656",l["syntax-keyword"]="var(--text-weak)",l["syntax-primitive"]=e?"#ffba92":"#fb4804",l["syntax-operator"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-variable"]="var(--text-strong)",l["syntax-property"]=e?"#ff9ae2":"#ed6dc8",l["syntax-type"]=e?"#ecf58c":"#596600",l["syntax-constant"]=e?"#93e9f6":"#007b80",l["syntax-punctuation"]=e?"var(--text-weak)":"var(--text-base)",l["syntax-object"]="var(--text-strong)",l["syntax-success"]=i[10],l["syntax-warning"]=p[10],l["syntax-critical"]=f[10],l["syntax-info"]=e?"#93e9f6":"#0092a8",l["syntax-diff-add"]=m[10],l["syntax-diff-delete"]=h[10],l["syntax-diff-unknown"]="#ff0000",l["markdown-heading"]=e?"#9d7cd8":"#d68c27",l["markdown-text"]=e?"#eeeeee":"#1a1a1a",l["markdown-link"]=e?"#fab283":"#3b7dd8",l["markdown-link-text"]=e?"#56b6c2":"#318795",l["markdown-code"]=e?"#7fd88f":"#3d9a57",l["markdown-block-quote"]=e?"#e5c07b":"#b0851f",l["markdown-emph"]=e?"#e5c07b":"#b0851f",l["markdown-strong"]=e?"#f5a742":"#d68c27",l["markdown-horizontal-rule"]=e?"#808080":"#8a8a8a",l["markdown-list-item"]=e?"#fab283":"#3b7dd8",l["markdown-list-enumeration"]=e?"#56b6c2":"#318795",l["markdown-image"]=e?"#fab283":"#3b7dd8",l["markdown-image-text"]=e?"#56b6c2":"#318795",l["markdown-code-block"]=e?"#eeeeee":"#1a1a1a"),l["avatar-background-pink"]=e?"#501b3f":"#feeef8",l["avatar-background-mint"]=e?"#033a34":"#e1fbf4",l["avatar-background-orange"]=e?"#5f2a06":"#fff1e7",l["avatar-background-purple"]=e?"#432155":"#f9f1fe",l["avatar-background-cyan"]=e?"#0f3058":"#e7f9fb",l["avatar-background-lime"]=e?"#2b3711":"#eefadc",l["avatar-text-pink"]=e?"#e34ba9":"#cd1d8d",l["avatar-text-mint"]=e?"#95f3d9":"#147d6f",l["avatar-text-orange"]=e?"#ff802b":"#ed5f00",l["avatar-text-purple"]=e?"#9d5bd2":"#8445bc",l["avatar-text-cyan"]=e?"#369eff":"#0894b3",l["avatar-text-lime"]=e?"#c4f042":"#5d770d";for(const[K,Y]of Object.entries(n))l[K]=Y;if(t.compact&&"text-weak"in n&&!("text-weaker"in n)){const K=l["text-weak"];K.startsWith("#")?l["text-weaker"]=de(K,{l:e?-.12:.12,c:.75}):l["text-weaker"]=K}return t.compact&&("markdown-text"in n||(l["markdown-text"]=l["text-base"]),"markdown-code-block"in n||(l["markdown-code-block"]=l["text-base"])),"text-stronger"in n||(l["text-stronger"]=l["text-strong"]),l}function Js(r){const e=r;if(e.palette&&e.seeds)throw new Error("Theme variant cannot define both `palette` and `seeds`");if(r.palette)return{compact:!0,neutral:r.palette.neutral,ink:r.palette.ink,primary:r.palette.primary,accent:r.palette.accent??r.palette.info,success:r.palette.success,warning:r.palette.warning,error:r.palette.error,info:r.palette.info,interactive:r.palette.interactive??r.palette.primary,diffAdd:r.palette.diffAdd,diffDelete:r.palette.diffDelete};if(r.seeds)return{compact:!1,neutral:r.seeds.neutral,ink:void 0,primary:r.seeds.primary,accent:r.seeds.info,success:r.seeds.success,warning:r.seeds.warning,error:r.seeds.error,info:r.seeds.info,interactive:r.seeds.interactive,diffAdd:r.seeds.diffAdd,diffDelete:r.seeds.diffDelete};throw new Error("Theme variant requires `palette` or `seeds`")}function Ks(r,e){return(e?[.038,.066,.1,.142,.19,.252,.334,.446,.58,.718,.854,.985]:[.03,.06,.1,.145,.2,.265,.35,.47,.61,.74,.86,.97]).map(n=>fr(r[11],r[0],n))}function Gs(r){if(r?.startsWith("#"))return r}function Nn(r){return Object.entries(r).map(([e,t])=>`--${e}: ${t};`).join(`
3
- `)}const Ys="https://opencode.ai/desktop-theme.json",Xs="OC-2",Qs="oc-2",eo={palette:{neutral:"#f7f7f7",ink:"#171311",primary:"#dcde8d",success:"#12c905",warning:"#ffdc17",error:"#fc533a",info:"#a753ae",interactive:"#034cff",diffAdd:"#9ff29a",diffDelete:"#fc533a"},overrides:{"text-strong":"#171717","text-base":"#6F6F6F","text-weak":"#8F8F8F","text-weaker":"#C7C7C7","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#DBDBDB","border-weaker-base":"#E8E8E8","icon-base":"#8F8F8F","icon-weak-base":"C7C7C7","surface-raised-base":"#F3F3F3","surface-raised-base-hover":"#EDEDED","surface-base":"#F8F8F8","surface-base-hover":"#0000000A","surface-interactive-weak":"#F5FAFF","icon-success-base":"#0ABE00","surface-success-base":"#E6FFE5","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-800)","syntax-string":"var(--v2-green-800)","syntax-primitive":"var(--v2-pink-800)","syntax-property":"var(--v2-orange-800)","syntax-type":"var(--v2-purple-800)","syntax-constant":"#007b80","syntax-critical":"var(--v2-red-800)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#a753ae","surface-critical-base":"#FFF2F0"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-50)","v2-background-bg-deep":"var(--v2-grey-100)","v2-background-bg-layer-01":"var(--v2-grey-100)","v2-background-bg-layer-02":"var(--v2-grey-200)","v2-background-bg-layer-03":"var(--v2-grey-300)","v2-background-bg-layer-04":"var(--v2-grey-400)","v2-background-bg-inverse":"var(--v2-grey-1100)","v2-background-bg-contrast":"var(--v2-grey-1000)","v2-background-bg-button-neutral":"var(--v2-grey-50)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-1100)","v2-text-text-muted":"var(--v2-grey-700)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-50)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-600)","v2-text-text-accent-hover":"var(--v2-blue-700)","v2-text-text-code-accent":"var(--v2-blue-900)","v2-icon-icon-base":"var(--v2-grey-800)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-50)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-600)","v2-icon-icon-accent-hover":"var(--v2-blue-700)","v2-border-border-muted":"var(--v2-alpha-dark-8)","v2-border-border-base":"var(--v2-alpha-dark-10)","v2-border-border-strong":"var(--v2-alpha-dark-20)","v2-border-border-inverse":"var(--v2-grey-1000)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-dark-4)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-dark-8)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-light-12)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-light-24)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-40)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#fafafa00","v2-overlay-simple-tab-hover-scrim":"#eeeeee00","v2-overlay-simple-tab-scrim":"#fafafa00","v2-state-bg-success":"var(--v2-green-100)","v2-state-fg-success":"var(--v2-green-800)","v2-state-border-success":"var(--v2-green-300)","v2-state-bg-warning":"var(--v2-yellow-100)","v2-state-fg-warning":"var(--v2-yellow-800)","v2-state-border-warning":"var(--v2-yellow-300)","v2-state-bg-danger":"var(--v2-red-100)","v2-state-fg-danger":"var(--v2-red-800)","v2-state-border-danger":"var(--v2-red-300)","v2-state-bg-info":"var(--v2-blue-100)","v2-state-fg-info":"var(--v2-blue-800)","v2-state-border-info":"var(--v2-blue-300)","v2-avatar-bg-orange":"#ee7330ff","v2-avatar-border-orange":"#d16427ff","v2-avatar-bg-yellow":"#e7af36ff","v2-avatar-border-yellow":"#cb9f34ff","v2-avatar-bg-cyan":"#0096b8ff","v2-avatar-border-cyan":"#007d9bff","v2-avatar-bg-green":"#2eaf5aff","v2-avatar-border-green":"#198b43ff","v2-avatar-bg-red":"#d92e3cff","v2-avatar-border-red":"#b82d35ff","v2-avatar-bg-pink":"#e4429eff","v2-avatar-border-pink":"#c83d8bff","v2-avatar-bg-blue":"#3250dfff","v2-avatar-border-blue":"#2c47c8ff","v2-avatar-bg-purple":"#623be2ff","v2-avatar-border-purple":"#5230c2ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#3a3a3aff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-neutral":"0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-contrast":"0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)","v2-elevation-switch-on":"inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)","v2-illustration-illustration-layer-01":"var(--v2-grey-300)","v2-illustration-illustration-layer-02":"var(--v2-grey-400)","v2-illustration-illustration-layer-03":"var(--v2-grey-500)"}},to={palette:{neutral:"#1f1f1f",ink:"#f1ece8",primary:"#fab283",success:"#12c905",warning:"#fcd53a",error:"#fc533a",info:"#edb2f1",interactive:"#034cff",diffAdd:"#c8ffc4",diffDelete:"#fc533a"},overrides:{"text-strong":"#EDEDED","text-base":"#A0A0A0","text-weak":"#707070","text-weaker":"#505050","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#282828","border-weaker-base":"#232323","icon-base":"#7E7E7E","icon-weak-base":"#343434","surface-raised-base":"#232323","surface-raised-base-hover":"#282828","surface-base":"#1C1C1C","surface-base-hover":"#FFFFFF0D","surface-interactive-weak":"#0D172B","surface-success-base":"#022B00","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-400)","syntax-string":"var(--v2-green-400)","syntax-primitive":"var(--v2-pink-400)","syntax-property":"var(--v2-orange-400)","syntax-type":"var(--v2-purple-400)","syntax-constant":"#93e9f6","syntax-critical":"var(--v2-red-400)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#edb2f1","surface-critical-base":"#1F0603"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-1100)","v2-background-bg-deep":"var(--v2-grey-1200)","v2-background-bg-layer-01":"var(--v2-grey-1000)","v2-background-bg-layer-02":"var(--v2-grey-900)","v2-background-bg-layer-03":"var(--v2-grey-800)","v2-background-bg-layer-04":"var(--v2-grey-700)","v2-background-bg-inverse":"var(--v2-grey-50)","v2-background-bg-contrast":"var(--v2-grey-700)","v2-background-bg-button-neutral":"var(--v2-alpha-light-6)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-100)","v2-text-text-muted":"var(--v2-grey-500)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-1100)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-400)","v2-text-text-accent-hover":"var(--v2-blue-300)","v2-text-text-code-accent":"var(--v2-blue-400)","v2-icon-icon-base":"var(--v2-grey-400)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-1100)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-400)","v2-icon-icon-accent-hover":"var(--v2-blue-300)","v2-border-border-muted":"var(--v2-alpha-light-8)","v2-border-border-base":"var(--v2-alpha-light-10)","v2-border-border-strong":"var(--v2-alpha-light-20)","v2-border-border-inverse":"var(--v2-grey-100)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-light-6)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-light-10)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-dark-24)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-dark-40)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-60)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#24242400","v2-overlay-simple-tab-hover-scrim":"#3a3a3a00","v2-overlay-simple-tab-scrim":"#08080800","v2-state-bg-success":"var(--v2-green-1200)","v2-state-fg-success":"var(--v2-green-500)","v2-state-border-success":"var(--v2-green-900)","v2-state-bg-warning":"var(--v2-yellow-1200)","v2-state-fg-warning":"var(--v2-yellow-500)","v2-state-border-warning":"var(--v2-yellow-900)","v2-state-bg-danger":"var(--v2-red-1200)","v2-state-fg-danger":"var(--v2-red-500)","v2-state-border-danger":"var(--v2-red-900)","v2-state-bg-info":"var(--v2-blue-1200)","v2-state-fg-info":"var(--v2-blue-500)","v2-state-border-info":"var(--v2-blue-900)","v2-avatar-bg-orange":"#723d22ff","v2-avatar-border-orange":"#ff8648ff","v2-avatar-bg-yellow":"#68552bff","v2-avatar-border-yellow":"#e7af36ff","v2-avatar-bg-cyan":"#005a6eff","v2-avatar-border-cyan":"#0096b8ff","v2-avatar-bg-green":"#196130ff","v2-avatar-border-green":"#49c970ff","v2-avatar-bg-red":"#7a1f23ff","v2-avatar-border-red":"#d92e3cff","v2-avatar-bg-pink":"#8c2d61ff","v2-avatar-border-pink":"#e4429eff","v2-avatar-bg-blue":"#263fa9ff","v2-avatar-border-blue":"#7698fdff","v2-avatar-bg-purple":"#361f83ff","v2-avatar-border-purple":"#7152f4ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#aeaeaeff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-button-neutral":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)","v2-elevation-button-contrast":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-elevation-switch-on":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-illustration-illustration-layer-01":"var(--v2-grey-900)","v2-illustration-illustration-layer-02":"var(--v2-grey-800)","v2-illustration-illustration-layer-03":"var(--v2-grey-700)"}},ro={$schema:Ys,name:Xs,id:Qs,light:eo,dark:to},no="https://opencode.ai/desktop-theme.json",ao="AMOLED",so="amoled",oo={palette:{neutral:"#f0f0f0",ink:"#0a0a0a",primary:"#6200ff",accent:"#ff0080",success:"#00e676",warning:"#ffab00",error:"#ff1744",info:"#00b0ff",diffAdd:"#00e676",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#757575","syntax-keyword":"#d500f9","syntax-string":"#00e676","syntax-primitive":"#00b0ff","syntax-property":"#ff9100","syntax-constant":"#6200ff"}},io={palette:{neutral:"#000000",ink:"#ffffff",primary:"#b388ff",accent:"#ff4081",success:"#00ff88",warning:"#ffea00",error:"#ff1744",info:"#18ffff",diffAdd:"#00ff88",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#555555","syntax-keyword":"#ff00ff","syntax-string":"#00ff88","syntax-primitive":"#18ffff","syntax-property":"#ffea00","syntax-constant":"#b388ff"}},co={$schema:no,name:ao,id:so,light:oo,dark:io},lo="https://opencode.ai/desktop-theme.json",fo="Aura",uo="aura",yo={palette:{neutral:"#f5f0ff",ink:"#2d2640",primary:"#a277ff",accent:"#d94f4f",success:"#40bf7a",warning:"#d9a24a",error:"#d94f4f",info:"#5bb8d9",diffAdd:"#b3e6cc",diffDelete:"#f5b3b3"},overrides:{"syntax-comment":"#8d88a3","syntax-keyword":"#7b5ae0","syntax-string":"#2b8a57","syntax-primitive":"#2f78b8","syntax-property":"#a96a22","syntax-type":"#2b8a57","syntax-constant":"#d94f4f"}},po={palette:{neutral:"#15141b",ink:"#edecee",primary:"#a277ff",accent:"#ff6767",success:"#61ffca",warning:"#ffca85",error:"#ff6767",info:"#82e2ff",diffAdd:"#61ffca",diffDelete:"#ff6767"},overrides:{"syntax-comment":"#6d6a7e","syntax-keyword":"#a277ff","syntax-string":"#61ffca","syntax-primitive":"#82e2ff","syntax-property":"#ffca85","syntax-type":"#61ffca","syntax-constant":"#ff6767"}},ho={$schema:lo,name:fo,id:uo,light:yo,dark:po},mo="https://opencode.ai/desktop-theme.json",ko="Ayu",go="ayu",bo={palette:{neutral:"#fdfaf4",ink:"#4f5964",primary:"#4aa8c8",accent:"#ef7d71",success:"#5fb978",warning:"#ea9f41",error:"#e6656a",info:"#2f9bce",diffAdd:"#b1d780",diffDelete:"#e6656a"},overrides:{"syntax-comment":"#6e7681","syntax-keyword":"#c76a1a","syntax-string":"#6f8f00","syntax-primitive":"#b87500","syntax-property":"#2f86b7","syntax-type":"#227fc0","syntax-constant":"#a37acc"}},wo={palette:{neutral:"#0f1419",ink:"#d6dae0",primary:"#3fb7e3",accent:"#f2856f",success:"#78d05c",warning:"#e4a75c",error:"#f58572",info:"#66c6f1",diffAdd:"#59c57c",diffDelete:"#f58572"},overrides:{"syntax-comment":"#5a6673","syntax-keyword":"#ff8f40","syntax-string":"#aad94c","syntax-primitive":"#ffb454","syntax-property":"#39bae6","syntax-type":"#59c2ff","syntax-constant":"#d2a6ff"}},vo={$schema:mo,name:ko,id:go,light:bo,dark:wo},xo="https://opencode.ai/desktop-theme.json",Co="Carbonfox",Lo="carbonfox",qo={palette:{neutral:"#8e8e8e",ink:"#161616",primary:"#0072c3",accent:"#da1e28",success:"#198038",warning:"#f1c21b",error:"#da1e28",info:"#0043ce",interactive:"#0f62fe",diffAdd:"#198038",diffDelete:"#da1e28"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#8a3ffc","syntax-string":"#198038","syntax-primitive":"#0f62fe","syntax-property":"#0043ce","syntax-type":"#8a5f00","syntax-constant":"#da1e28"}},Mo={palette:{neutral:"#393939",ink:"#f2f4f8",primary:"#33b1ff",accent:"#ff8389",success:"#42be65",warning:"#f1c21b",error:"#ff8389",info:"#78a9ff",interactive:"#4589ff",diffAdd:"#42be65",diffDelete:"#ff8389"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#be95ff","syntax-string":"#42be65","syntax-primitive":"#33b1ff","syntax-property":"#78a9ff","syntax-type":"#f1c21b","syntax-constant":"#ff8389"}},$o={$schema:xo,name:Co,id:Lo,light:qo,dark:Mo},Ho="https://opencode.ai/desktop-theme.json",Vo="Catppuccin",_o="catppuccin",Io={palette:{neutral:"#f5e0dc",ink:"#4c4f69",primary:"#7287fd",accent:"#d20f39",success:"#40a02b",warning:"#df8e1d",error:"#d20f39",info:"#04a5e5",diffAdd:"#a6d189",diffDelete:"#e78284"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#8839ef","syntax-primitive":"#1e66f5","syntax-constant":"#ca6702"}},jo={palette:{neutral:"#1e1e2e",ink:"#cdd6f4",primary:"#b4befe",accent:"#f38ba8",success:"#a6d189",warning:"#f4b8e4",error:"#f38ba8",info:"#89dceb",diffAdd:"#94e2d5",diffDelete:"#f38ba8"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#cba6f7","syntax-primitive":"#89b4fa","syntax-constant":"#fab387"}},Eo={$schema:Ho,name:Vo,id:_o,light:Io,dark:jo},Ao="https://opencode.ai/desktop-theme.json",Do="Catppuccin Frappe",To="catppuccin-frappe",So={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Po={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Fo={$schema:Ao,name:Do,id:To,light:So,dark:Po},Zo="https://opencode.ai/desktop-theme.json",Bo="Catppuccin Macchiato",Oo="catppuccin-macchiato",Ro={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},zo={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},No={$schema:Zo,name:Bo,id:Oo,light:Ro,dark:zo},Uo="https://opencode.ai/desktop-theme.json",Wo="Cobalt2",Jo="cobalt2",Ko={palette:{neutral:"#ffffff",ink:"#193549",primary:"#0066cc",accent:"#00acc1",success:"#4caf50",warning:"#ff9800",error:"#e91e63",info:"#ff5722"},overrides:{"text-weak":"#5c6b7d","syntax-comment":"#5c6b7d","syntax-keyword":"#ff5722","syntax-string":"#4caf50","syntax-primitive":"#ff9800","syntax-variable":"#193549","syntax-property":"#00acc1","syntax-type":"#00acc1","syntax-constant":"#e91e63","syntax-operator":"#ff5722","syntax-punctuation":"#193549","syntax-object":"#193549","markdown-heading":"#ff9800","markdown-text":"#193549","markdown-link":"#0066cc","markdown-link-text":"#00acc1","markdown-code":"#4caf50","markdown-block-quote":"#5c6b7d","markdown-emph":"#ff5722","markdown-strong":"#e91e63","markdown-horizontal-rule":"#d3dae3","markdown-list-item":"#0066cc","markdown-list-enumeration":"#00acc1","markdown-image":"#0066cc","markdown-image-text":"#00acc1","markdown-code-block":"#193549"}},Go={palette:{neutral:"#193549",ink:"#ffffff",primary:"#0088ff",accent:"#2affdf",success:"#9eff80",warning:"#ffc600",error:"#ff0088",info:"#ff9d00",diffAdd:"#b9ff9f",diffDelete:"#ff5fb3"},overrides:{"text-weak":"#adb7c9","syntax-comment":"#0088ff","syntax-keyword":"#ff9d00","syntax-string":"#9eff80","syntax-primitive":"#ffc600","syntax-variable":"#ffffff","syntax-property":"#2affdf","syntax-type":"#2affdf","syntax-constant":"#ff628c","syntax-operator":"#ff9d00","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ffc600","markdown-text":"#ffffff","markdown-link":"#0088ff","markdown-link-text":"#2affdf","markdown-code":"#9eff80","markdown-block-quote":"#adb7c9","markdown-emph":"#ff9d00","markdown-strong":"#ff628c","markdown-horizontal-rule":"#2d5a7b","markdown-list-item":"#0088ff","markdown-list-enumeration":"#2affdf","markdown-image":"#0088ff","markdown-image-text":"#2affdf","markdown-code-block":"#ffffff"}},Yo={$schema:Uo,name:Wo,id:Jo,light:Ko,dark:Go},Xo="https://opencode.ai/desktop-theme.json",Qo="Cursor",ei="cursor",ti={palette:{neutral:"#fcfcfc",ink:"#141414",primary:"#6f9ba6",accent:"#6f9ba6",success:"#1f8a65",warning:"#db704b",error:"#cf2d56",info:"#3c7cab",interactive:"#206595",diffAdd:"#55a583",diffDelete:"#e75e78"},overrides:{"text-weak":"#141414ad","syntax-comment":"#141414ad","syntax-keyword":"#b3003f","syntax-string":"#9e94d5","syntax-primitive":"#db704b","syntax-variable":"#141414","syntax-property":"#141414ad","syntax-type":"#206595","syntax-constant":"#b8448b","syntax-operator":"#141414","syntax-punctuation":"#141414","syntax-object":"#141414","markdown-heading":"#206595","markdown-text":"#141414","markdown-link":"#206595","markdown-link-text":"#141414ad","markdown-code":"#1f8a65","markdown-block-quote":"#141414ad","markdown-emph":"#141414","markdown-strong":"#141414","markdown-horizontal-rule":"#141414ad","markdown-list-item":"#141414","markdown-list-enumeration":"#141414ad","markdown-image":"#206595","markdown-image-text":"#141414ad","markdown-code-block":"#141414"}},ri={palette:{neutral:"#181818",ink:"#e4e4e4",primary:"#88c0d0",accent:"#88c0d0",success:"#3fa266",warning:"#f1b467",error:"#e34671",info:"#81a1c1",interactive:"#82D2CE",diffAdd:"#70b489",diffDelete:"#fc6b83"},overrides:{"text-weak":"#e4e4e45e","syntax-comment":"#e4e4e45e","syntax-keyword":"#82D2CE","syntax-string":"#E394DC","syntax-primitive":"#EFB080","syntax-variable":"#e4e4e4","syntax-property":"#81a1c1","syntax-type":"#EFB080","syntax-constant":"#F8C762","syntax-operator":"#e4e4e4","syntax-punctuation":"#e4e4e4","syntax-object":"#e4e4e4","markdown-heading":"#AAA0FA","markdown-text":"#e4e4e4","markdown-link":"#82D2CE","markdown-link-text":"#81a1c1","markdown-code":"#E394DC","markdown-block-quote":"#e4e4e45e","markdown-emph":"#82D2CE","markdown-strong":"#F8C762","markdown-horizontal-rule":"#e4e4e45e","markdown-list-item":"#e4e4e4","markdown-list-enumeration":"#88c0d0","markdown-image":"#88c0d0","markdown-image-text":"#81a1c1","markdown-code-block":"#e4e4e4"}},ni={$schema:Xo,name:Qo,id:ei,light:ti,dark:ri},ai="https://opencode.ai/desktop-theme.json",si="Dracula",oi="dracula",ii={palette:{neutral:"#f8f8f2",ink:"#1f1f2f",primary:"#7c6bf5",accent:"#d16090",success:"#2fbf71",warning:"#f7a14d",error:"#d9536f",info:"#1d7fc5",diffAdd:"#9fe3b3",diffDelete:"#f8a1b8"},overrides:{"syntax-comment":"#7d7f97","syntax-keyword":"#d16090","syntax-string":"#596600","syntax-primitive":"#2f8f57","syntax-property":"#1d7fc5","syntax-constant":"#7c6bf5"}},ci={palette:{neutral:"#1d1e28",ink:"#f8f8f2",primary:"#bd93f9",accent:"#ff79c6",success:"#50fa7b",warning:"#ffb86c",error:"#ff5555",info:"#8be9fd",diffAdd:"#2fb27d",diffDelete:"#ff6b81"},overrides:{"syntax-comment":"#6272a4","syntax-keyword":"#ff79c6","syntax-string":"#f1fa8c","syntax-primitive":"#50fa7b","syntax-property":"#8be9fd","syntax-constant":"#bd93f9"}},li={$schema:ai,name:si,id:oi,light:ii,dark:ci},di="https://opencode.ai/desktop-theme.json",fi="Everforest",ui="everforest",yi={palette:{neutral:"#fdf6e3",ink:"#5c6a72",primary:"#8da101",accent:"#df69ba",success:"#8da101",warning:"#f57d26",error:"#f85552",info:"#35a77c",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#a6b0a0","syntax-comment":"#a6b0a0","syntax-keyword":"#df69ba","syntax-string":"#8da101","syntax-primitive":"#8da101","syntax-variable":"#f85552","syntax-property":"#35a77c","syntax-type":"#dfa000","syntax-constant":"#f57d26","syntax-operator":"#35a77c","syntax-punctuation":"#5c6a72","syntax-object":"#f85552","markdown-heading":"#df69ba","markdown-text":"#5c6a72","markdown-link":"#8da101","markdown-link-text":"#35a77c","markdown-code":"#8da101","markdown-block-quote":"#dfa000","markdown-emph":"#dfa000","markdown-strong":"#f57d26","markdown-horizontal-rule":"#a6b0a0","markdown-list-item":"#8da101","markdown-list-enumeration":"#35a77c","markdown-image":"#8da101","markdown-image-text":"#35a77c","markdown-code-block":"#5c6a72"}},pi={palette:{neutral:"#2d353b",ink:"#d3c6aa",primary:"#a7c080",accent:"#d699b6",success:"#a7c080",warning:"#e69875",error:"#e67e80",info:"#83c092",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#7a8478","syntax-comment":"#7a8478","syntax-keyword":"#d699b6","syntax-string":"#a7c080","syntax-primitive":"#a7c080","syntax-variable":"#e67e80","syntax-property":"#83c092","syntax-type":"#dbbc7f","syntax-constant":"#e69875","syntax-operator":"#83c092","syntax-punctuation":"#d3c6aa","syntax-object":"#e67e80","markdown-heading":"#d699b6","markdown-text":"#d3c6aa","markdown-link":"#a7c080","markdown-link-text":"#83c092","markdown-code":"#a7c080","markdown-block-quote":"#dbbc7f","markdown-emph":"#dbbc7f","markdown-strong":"#e69875","markdown-horizontal-rule":"#7a8478","markdown-list-item":"#a7c080","markdown-list-enumeration":"#83c092","markdown-image":"#a7c080","markdown-image-text":"#83c092","markdown-code-block":"#d3c6aa"}},hi={$schema:di,name:fi,id:ui,light:yi,dark:pi},mi="https://opencode.ai/desktop-theme.json",ki="Flexoki",gi="flexoki",bi={palette:{neutral:"#FFFCF0",ink:"#100F0F",primary:"#205EA6",accent:"#BC5215",success:"#66800B",warning:"#BC5215",error:"#AF3029",info:"#24837B"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#66800B","syntax-string":"#24837B","syntax-primitive":"#BC5215","syntax-variable":"#205EA6","syntax-property":"#24837B","syntax-type":"#AD8301","syntax-constant":"#5E409D","syntax-operator":"#6F6E69","syntax-punctuation":"#6F6E69","syntax-object":"#205EA6","markdown-heading":"#5E409D","markdown-text":"#100F0F","markdown-link":"#205EA6","markdown-link-text":"#24837B","markdown-code":"#24837B","markdown-block-quote":"#AD8301","markdown-emph":"#AD8301","markdown-strong":"#BC5215","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#BC5215","markdown-list-enumeration":"#24837B","markdown-image":"#A02F6F","markdown-image-text":"#24837B","markdown-code-block":"#100F0F"}},wi={palette:{neutral:"#100F0F",ink:"#CECDC3",primary:"#DA702C",accent:"#8B7EC8",success:"#879A39",warning:"#DA702C",error:"#D14D41",info:"#3AA99F",interactive:"#4385BE"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#879A39","syntax-string":"#3AA99F","syntax-primitive":"#DA702C","syntax-variable":"#4385BE","syntax-property":"#3AA99F","syntax-type":"#D0A215","syntax-constant":"#8B7EC8","syntax-operator":"#B7B5AC","syntax-punctuation":"#B7B5AC","syntax-object":"#4385BE","markdown-heading":"#8B7EC8","markdown-text":"#CECDC3","markdown-link":"#4385BE","markdown-link-text":"#3AA99F","markdown-code":"#3AA99F","markdown-block-quote":"#D0A215","markdown-emph":"#D0A215","markdown-strong":"#DA702C","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#DA702C","markdown-list-enumeration":"#3AA99F","markdown-image":"#CE5D97","markdown-image-text":"#3AA99F","markdown-code-block":"#CECDC3"}},vi={$schema:mi,name:ki,id:gi,light:bi,dark:wi},xi="https://opencode.ai/desktop-theme.json",Ci="GitHub",Li="github",qi={palette:{neutral:"#ffffff",ink:"#24292f",primary:"#0969da",accent:"#1b7c83",success:"#1a7f37",warning:"#9a6700",error:"#cf222e",info:"#bc4c00"},overrides:{"text-weak":"#57606a","syntax-comment":"#57606a","syntax-keyword":"#cf222e","syntax-string":"#0969da","syntax-primitive":"#8250df","syntax-variable":"#bc4c00","syntax-property":"#1b7c83","syntax-type":"#bc4c00","syntax-constant":"#1b7c83","syntax-operator":"#cf222e","syntax-punctuation":"#24292f","syntax-object":"#bc4c00","markdown-heading":"#0969da","markdown-text":"#24292f","markdown-link":"#0969da","markdown-link-text":"#1b7c83","markdown-code":"#bf3989","markdown-block-quote":"#57606a","markdown-emph":"#9a6700","markdown-strong":"#bc4c00","markdown-horizontal-rule":"#d0d7de","markdown-list-item":"#0969da","markdown-list-enumeration":"#1b7c83","markdown-image":"#0969da","markdown-image-text":"#1b7c83","markdown-code-block":"#24292f"}},Mi={palette:{neutral:"#0d1117",ink:"#c9d1d9",primary:"#58a6ff",accent:"#39c5cf",success:"#3fb950",warning:"#e3b341",error:"#f85149",info:"#d29922"},overrides:{"text-weak":"#8b949e","syntax-comment":"#8b949e","syntax-keyword":"#ff7b72","syntax-string":"#39c5cf","syntax-primitive":"#bc8cff","syntax-variable":"#d29922","syntax-property":"#39c5cf","syntax-type":"#d29922","syntax-constant":"#58a6ff","syntax-operator":"#ff7b72","syntax-punctuation":"#c9d1d9","syntax-object":"#d29922","markdown-heading":"#58a6ff","markdown-text":"#c9d1d9","markdown-link":"#58a6ff","markdown-link-text":"#39c5cf","markdown-code":"#ff7b72","markdown-block-quote":"#8b949e","markdown-emph":"#e3b341","markdown-strong":"#d29922","markdown-horizontal-rule":"#30363d","markdown-list-item":"#58a6ff","markdown-list-enumeration":"#39c5cf","markdown-image":"#58a6ff","markdown-image-text":"#39c5cf","markdown-code-block":"#c9d1d9"}},$i={$schema:xi,name:Ci,id:Li,light:qi,dark:Mi},Hi="https://opencode.ai/desktop-theme.json",Vi="Gruvbox",_i="gruvbox",Ii={palette:{neutral:"#fbf1c7",ink:"#3c3836",primary:"#076678",accent:"#9d0006",success:"#79740e",warning:"#b57614",error:"#9d0006",info:"#8f3f71",diffAdd:"#79740e",diffDelete:"#9d0006"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#9d0006","syntax-primitive":"#076678","syntax-constant":"#8f3f71"}},ji={palette:{neutral:"#282828",ink:"#ebdbb2",primary:"#83a598",accent:"#fb4934",success:"#b8bb26",warning:"#fabd2f",error:"#fb4934",info:"#d3869b",diffAdd:"#b8bb26",diffDelete:"#fb4934"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#fb4934","syntax-primitive":"#83a598","syntax-constant":"#d3869b"}},Ei={$schema:Hi,name:Vi,id:_i,light:Ii,dark:ji},Ai="https://opencode.ai/desktop-theme.json",Di="Kanagawa",Ti="kanagawa",Si={palette:{neutral:"#F2E9DE",ink:"#54433A",primary:"#2D4F67",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#89AF5B",diffDelete:"#D61F1F"},overrides:{"text-weak":"#9E9389","syntax-comment":"#9E9389","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#2D4F67","syntax-variable":"#54433A","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#54433A","syntax-object":"#54433A","markdown-heading":"#957FB8","markdown-text":"#54433A","markdown-link":"#2D4F67","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#9E9389","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#9E9389","markdown-list-item":"#2D4F67","markdown-list-enumeration":"#76946A","markdown-image":"#2D4F67","markdown-image-text":"#76946A","markdown-code-block":"#54433A"}},Pi={palette:{neutral:"#1F1F28",ink:"#DCD7BA",primary:"#7E9CD8",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#A9D977",diffDelete:"#F24A4A"},overrides:{"text-weak":"#727169","syntax-comment":"#727169","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#7E9CD8","syntax-variable":"#DCD7BA","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#DCD7BA","syntax-object":"#DCD7BA","markdown-heading":"#957FB8","markdown-text":"#DCD7BA","markdown-link":"#7E9CD8","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#727169","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#727169","markdown-list-item":"#7E9CD8","markdown-list-enumeration":"#76946A","markdown-image":"#7E9CD8","markdown-image-text":"#76946A","markdown-code-block":"#DCD7BA"}},Fi={$schema:Ai,name:Di,id:Ti,light:Si,dark:Pi},Zi="https://opencode.ai/desktop-theme.json",Bi="Lucent Orng",Oi="lucent-orng",Ri={palette:{neutral:"#fff5f0",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zi={palette:{neutral:"#2a1a15",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Ni={$schema:Zi,name:Bi,id:Oi,light:Ri,dark:zi},Ui="https://opencode.ai/desktop-theme.json",Wi="Material",Ji="material",Ki={palette:{neutral:"#fafafa",ink:"#263238",primary:"#6182b8",accent:"#39adb5",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e",interactive:"#39adb5"},overrides:{"text-weak":"#90a4ae","syntax-comment":"#90a4ae","syntax-keyword":"#7c4dff","syntax-string":"#91b859","syntax-primitive":"#6182b8","syntax-variable":"#263238","syntax-property":"#7c4dff","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#39adb5","syntax-punctuation":"#263238","syntax-object":"#263238","markdown-heading":"#6182b8","markdown-text":"#263238","markdown-link":"#39adb5","markdown-link-text":"#7c4dff","markdown-code":"#91b859","markdown-block-quote":"#90a4ae","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#6182b8","markdown-list-enumeration":"#39adb5","markdown-image":"#39adb5","markdown-image-text":"#7c4dff","markdown-code-block":"#263238"}},Gi={palette:{neutral:"#263238",ink:"#eeffff",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#ffcb6b",interactive:"#89ddff"},overrides:{"text-weak":"#546e7a","syntax-comment":"#546e7a","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#eeffff","syntax-property":"#c792ea","syntax-type":"#ffcb6b","syntax-constant":"#ffcb6b","syntax-operator":"#89ddff","syntax-punctuation":"#eeffff","syntax-object":"#eeffff","markdown-heading":"#82aaff","markdown-text":"#eeffff","markdown-link":"#89ddff","markdown-link-text":"#c792ea","markdown-code":"#c3e88d","markdown-block-quote":"#546e7a","markdown-emph":"#ffcb6b","markdown-strong":"#ffcb6b","markdown-horizontal-rule":"#37474f","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#89ddff","markdown-image-text":"#c792ea","markdown-code-block":"#eeffff"}},Yi={$schema:Ui,name:Wi,id:Ji,light:Ki,dark:Gi},Xi="https://opencode.ai/desktop-theme.json",Qi="Matrix",ec="matrix",tc={palette:{neutral:"#eef3ea",ink:"#203022",primary:"#1cc24b",accent:"#c770ff",success:"#1cc24b",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#5dac7e",diffDelete:"#d53a3a"},overrides:{"text-weak":"#748476","syntax-comment":"#748476","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#203022","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#203022","syntax-object":"#203022","markdown-heading":"#24f6d9","markdown-text":"#203022","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#748476","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#748476","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#203022"},v2Overrides:{"v2-text-text-base":"#353535","v2-text-text-muted":"#748476","v2-text-text-faint":"#748476","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-600)","v2-text-text-accent-hover":"var(--v2-green-700)","v2-icon-icon-accent":"var(--v2-green-600)","v2-icon-icon-accent-hover":"var(--v2-green-700)","v2-border-border-focus":"var(--v2-green-500)"}},rc={palette:{neutral:"#0a0e0a",ink:"#62ff94",primary:"#2eff6a",accent:"#c770ff",success:"#62ff94",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#77ffaf",diffDelete:"#ff7171"},overrides:{"text-weak":"#8ca391","syntax-comment":"#8ca391","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#62ff94","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#62ff94","syntax-object":"#62ff94","markdown-heading":"#00efff","markdown-text":"#62ff94","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#8ca391","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#8ca391","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#62ff94"},v2Overrides:{"v2-text-text-base":"#ececec","v2-text-text-muted":"#8ca391","v2-text-text-faint":"#8ca391","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-400)","v2-text-text-accent-hover":"var(--v2-green-300)","v2-icon-icon-accent":"var(--v2-green-400)","v2-icon-icon-accent-hover":"var(--v2-green-300)","v2-border-border-focus":"var(--v2-green-500)"}},nc={$schema:Xi,name:Qi,id:ec,light:tc,dark:rc},ac="https://opencode.ai/desktop-theme.json",sc="Mercury",oc="mercury",ic={palette:{neutral:"#ffffff",ink:"#363644",primary:"#5266eb",accent:"#8da4f5",success:"#036e43",warning:"#a44200",error:"#b0175f",info:"#007f95",interactive:"#465bd1"},overrides:{"text-weak":"#70707d","syntax-comment":"#70707d","syntax-keyword":"#465bd1","syntax-string":"#036e43","syntax-primitive":"#5266eb","syntax-variable":"#007f95","syntax-property":"#5266eb","syntax-type":"#007f95","syntax-constant":"#a44200","syntax-operator":"#465bd1","syntax-punctuation":"#363644","syntax-object":"#007f95","markdown-heading":"#1e1e2a","markdown-text":"#363644","markdown-link":"#465bd1","markdown-link-text":"#5266eb","markdown-code":"#036e43","markdown-block-quote":"#70707d","markdown-emph":"#a44200","markdown-strong":"#1e1e2a","markdown-horizontal-rule":"#7073931a","markdown-list-item":"#1e1e2a","markdown-list-enumeration":"#5266eb","markdown-image":"#465bd1","markdown-image-text":"#5266eb","markdown-code-block":"#363644"}},cc={palette:{neutral:"#171721",ink:"#dddde5",primary:"#8da4f5",accent:"#8da4f5",success:"#77c599",warning:"#fc9b6f",error:"#fc92b4",info:"#77becf"},overrides:{"text-weak":"#9d9da8","syntax-comment":"#9d9da8","syntax-keyword":"#8da4f5","syntax-string":"#77c599","syntax-primitive":"#8da4f5","syntax-variable":"#77becf","syntax-property":"#a7b6f8","syntax-type":"#77becf","syntax-constant":"#fc9b6f","syntax-operator":"#8da4f5","syntax-punctuation":"#dddde5","syntax-object":"#77becf","markdown-heading":"#ffffff","markdown-text":"#dddde5","markdown-link":"#8da4f5","markdown-link-text":"#a7b6f8","markdown-code":"#77c599","markdown-block-quote":"#9d9da8","markdown-emph":"#fc9b6f","markdown-strong":"#f4f5f9","markdown-horizontal-rule":"#b4b7c81f","markdown-list-item":"#ffffff","markdown-list-enumeration":"#8da4f5","markdown-image":"#8da4f5","markdown-image-text":"#a7b6f8","markdown-code-block":"#dddde5"}},lc={$schema:ac,name:sc,id:oc,light:ic,dark:cc},dc="https://opencode.ai/desktop-theme.json",fc="Monokai",uc="monokai",yc={palette:{neutral:"#fdf8ec",ink:"#292318",primary:"#bf7bff",accent:"#d9487c",success:"#4fb54b",warning:"#f1a948",error:"#e54b4b",info:"#2d9ad7",diffAdd:"#bfe7a3",diffDelete:"#f6a3ae"},overrides:{"syntax-comment":"#8a816f","syntax-keyword":"#d9487c","syntax-string":"#8a6500","syntax-primitive":"#3c8d2f","syntax-property":"#1f88c8","syntax-constant":"#9b5fe0"}},pc={palette:{neutral:"#272822",ink:"#f8f8f2",primary:"#ae81ff",accent:"#f92672",success:"#a6e22e",warning:"#fd971f",error:"#f92672",info:"#66d9ef",diffAdd:"#4d7f2a",diffDelete:"#f4477c"},overrides:{"syntax-comment":"#75715e","syntax-keyword":"#f92672","syntax-string":"#e6db74","syntax-primitive":"#a6e22e","syntax-property":"#66d9ef","syntax-constant":"#ae81ff"}},hc={$schema:dc,name:fc,id:uc,light:yc,dark:pc},mc="https://opencode.ai/desktop-theme.json",kc="Night Owl",gc="nightowl",bc={palette:{neutral:"#f0f0f0",ink:"#403f53",primary:"#4876d6",accent:"#aa0982",success:"#2aa298",warning:"#c96765",error:"#de3d3b",info:"#4876d6",diffAdd:"#2aa298",diffDelete:"#de3d3b"},overrides:{"syntax-comment":"#7a8181","syntax-keyword":"#994cc3","syntax-primitive":"#4876d6","syntax-constant":"#c96765"}},wc={palette:{neutral:"#011627",ink:"#d6deeb",primary:"#82aaff",accent:"#f78c6c",success:"#c5e478",warning:"#ecc48d",error:"#ef5350",info:"#82aaff",diffAdd:"#c5e478",diffDelete:"#ef5350"},overrides:{"syntax-comment":"#637777","syntax-keyword":"#c792ea","syntax-string":"#ecc48d","syntax-primitive":"#82aaff","syntax-constant":"#f78c6c"}},vc={$schema:mc,name:kc,id:gc,light:bc,dark:wc},xc="https://opencode.ai/desktop-theme.json",Cc="Nord",Lc="nord",qc={palette:{neutral:"#eceff4",ink:"#2e3440",primary:"#5e81ac",accent:"#bf616a",success:"#8fbcbb",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#a3be8c",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#6b7282","syntax-keyword":"#5e81ac","syntax-string":"#6f8758","syntax-primitive":"#5e81ac","syntax-constant":"#8d6886"}},Mc={palette:{neutral:"#2e3440",ink:"#e5e9f0",primary:"#88c0d0",accent:"#d57780",success:"#a3be8c",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#81a1c1",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#616e88","syntax-keyword":"#81a1c1","syntax-primitive":"#88c0d0","syntax-constant":"#b48ead"}},$c={$schema:xc,name:Cc,id:Lc,light:qc,dark:Mc},Hc="https://opencode.ai/desktop-theme.json",Vc="One Dark",_c="one-dark",Ic={palette:{neutral:"#fafafa",ink:"#383a42",primary:"#4078f2",accent:"#0184bc",success:"#50a14f",warning:"#c18401",error:"#e45649",info:"#986801",diffAdd:"#489447",diffDelete:"#d65145"},overrides:{"text-weak":"#a0a1a7","syntax-comment":"#a0a1a7","syntax-keyword":"#a626a4","syntax-string":"#50a14f","syntax-primitive":"#4078f2","syntax-variable":"#e45649","syntax-property":"#0184bc","syntax-type":"#c18401","syntax-constant":"#986801","syntax-operator":"#0184bc","syntax-punctuation":"#383a42","syntax-object":"#e45649","markdown-heading":"#a626a4","markdown-text":"#383a42","markdown-link":"#4078f2","markdown-link-text":"#0184bc","markdown-code":"#50a14f","markdown-block-quote":"#a0a1a7","markdown-emph":"#c18401","markdown-strong":"#986801","markdown-horizontal-rule":"#a0a1a7","markdown-list-item":"#4078f2","markdown-list-enumeration":"#0184bc","markdown-image":"#4078f2","markdown-image-text":"#0184bc","markdown-code-block":"#383a42"}},jc={palette:{neutral:"#282c34",ink:"#abb2bf",primary:"#61afef",accent:"#56b6c2",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#d19a66",diffAdd:"#aad482",diffDelete:"#e8828b"},overrides:{"text-weak":"#5c6370","syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-string":"#98c379","syntax-primitive":"#61afef","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#d19a66","syntax-operator":"#56b6c2","syntax-punctuation":"#abb2bf","syntax-object":"#e06c75","markdown-heading":"#c678dd","markdown-text":"#abb2bf","markdown-link":"#61afef","markdown-link-text":"#56b6c2","markdown-code":"#98c379","markdown-block-quote":"#5c6370","markdown-emph":"#e5c07b","markdown-strong":"#d19a66","markdown-horizontal-rule":"#5c6370","markdown-list-item":"#61afef","markdown-list-enumeration":"#56b6c2","markdown-image":"#61afef","markdown-image-text":"#56b6c2","markdown-code-block":"#abb2bf"}},Ec={$schema:Hc,name:Vc,id:_c,light:Ic,dark:jc},Ac="https://opencode.ai/desktop-theme.json",Dc="One Dark Pro",Tc="onedarkpro",Sc={palette:{neutral:"#f5f6f8",ink:"#2b303b",primary:"#528bff",accent:"#d85462",success:"#4fa66d",warning:"#d19a66",error:"#e06c75",info:"#61afef",diffAdd:"#c2ebcf",diffDelete:"#f7c1c5"},overrides:{"syntax-comment":"#6a717d","syntax-keyword":"#a626a4","syntax-primitive":"#4078f2","syntax-constant":"#986801"}},Pc={palette:{neutral:"#1e222a",ink:"#abb2bf",primary:"#61afef",accent:"#e06c75",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#56b6c2",diffAdd:"#4b815a",diffDelete:"#b2555f"},overrides:{"syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-primitive":"#61afef","syntax-constant":"#d19a66"}},Fc={$schema:Ac,name:Dc,id:Tc,light:Sc,dark:Pc},Zc="https://opencode.ai/desktop-theme.json",Bc="OpenCode",Oc="opencode",Rc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#3b7dd8",accent:"#d68c27",success:"#3d9a57",warning:"#d68c27",error:"#d1383d",info:"#318795",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#d68c27","syntax-string":"#3d9a57","syntax-primitive":"#3b7dd8","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#d68c27","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#d68c27","markdown-text":"#1a1a1a","markdown-link":"#3b7dd8","markdown-link-text":"#318795","markdown-code":"#3d9a57","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#d68c27","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#3b7dd8","markdown-list-enumeration":"#318795","markdown-image":"#3b7dd8","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#fab283",accent:"#9d7cd8",success:"#7fd88f",warning:"#f5a742",error:"#e06c75",info:"#56b6c2",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#9d7cd8","syntax-string":"#7fd88f","syntax-primitive":"#fab283","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#f5a742","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#9d7cd8","markdown-text":"#eeeeee","markdown-link":"#fab283","markdown-link-text":"#56b6c2","markdown-code":"#7fd88f","markdown-block-quote":"#e5c07b","markdown-emph":"#e5c07b","markdown-strong":"#f5a742","markdown-horizontal-rule":"#808080","markdown-list-item":"#fab283","markdown-list-enumeration":"#56b6c2","markdown-image":"#fab283","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Nc={$schema:Zc,name:Bc,id:Oc,light:Rc,dark:zc},Uc="https://opencode.ai/desktop-theme.json",Wc="Orng",Jc="orng",Kc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},Gc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Yc={$schema:Uc,name:Wc,id:Jc,light:Kc,dark:Gc},Xc="https://opencode.ai/desktop-theme.json",Qc="Osaka Jade",el="osaka-jade",tl={palette:{neutral:"#F6F5DD",ink:"#111c18",primary:"#1faa90",accent:"#3d7a52",success:"#3d7a52",warning:"#b5a020",error:"#c7392d",info:"#1faa90"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#1faa90","syntax-string":"#3d7a52","syntax-primitive":"#3d7560","syntax-variable":"#111c18","syntax-property":"#3d7a52","syntax-type":"#3d7a52","syntax-constant":"#a8527a","syntax-operator":"#b5a020","syntax-punctuation":"#111c18","syntax-object":"#111c18","markdown-heading":"#1faa90","markdown-text":"#111c18","markdown-link":"#1faa90","markdown-link-text":"#3d7a52","markdown-code":"#3d7a52","markdown-block-quote":"#53685B","markdown-emph":"#a8527a","markdown-strong":"#111c18","markdown-horizontal-rule":"#53685B","markdown-list-item":"#1faa90","markdown-list-enumeration":"#1faa90","markdown-image":"#1faa90","markdown-image-text":"#3d7a52","markdown-code-block":"#111c18"}},rl={palette:{neutral:"#111c18",ink:"#C1C497",primary:"#2DD5B7",accent:"#549e6a",success:"#549e6a",warning:"#E5C736",error:"#FF5345",info:"#2DD5B7",interactive:"#8CD3CB",diffAdd:"#63b07a",diffDelete:"#db9f9c"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#2DD5B7","syntax-string":"#63b07a","syntax-primitive":"#509475","syntax-variable":"#C1C497","syntax-property":"#549e6a","syntax-type":"#549e6a","syntax-constant":"#D2689C","syntax-operator":"#459451","syntax-punctuation":"#C1C497","syntax-object":"#C1C497","markdown-heading":"#2DD5B7","markdown-text":"#C1C497","markdown-link":"#8CD3CB","markdown-link-text":"#549e6a","markdown-code":"#63b07a","markdown-block-quote":"#53685B","markdown-emph":"#D2689C","markdown-strong":"#C1C497","markdown-horizontal-rule":"#53685B","markdown-list-item":"#2DD5B7","markdown-list-enumeration":"#8CD3CB","markdown-image":"#8CD3CB","markdown-image-text":"#549e6a","markdown-code-block":"#C1C497"}},nl={$schema:Xc,name:Qc,id:el,light:tl,dark:rl},al="https://opencode.ai/desktop-theme.json",sl="Palenight",ol="palenight",il={palette:{neutral:"#fafafa",ink:"#292d3e",primary:"#4976eb",accent:"#00acc1",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e"},overrides:{"text-weak":"#8796b0","syntax-comment":"#8796b0","syntax-keyword":"#a854f2","syntax-string":"#91b859","syntax-primitive":"#4976eb","syntax-variable":"#292d3e","syntax-property":"#00acc1","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#00acc1","syntax-punctuation":"#292d3e","syntax-object":"#292d3e","markdown-heading":"#a854f2","markdown-text":"#292d3e","markdown-link":"#4976eb","markdown-link-text":"#00acc1","markdown-code":"#91b859","markdown-block-quote":"#8796b0","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#8796b0","markdown-list-item":"#4976eb","markdown-list-enumeration":"#00acc1","markdown-image":"#4976eb","markdown-image-text":"#00acc1","markdown-code-block":"#292d3e"}},cl={palette:{neutral:"#292d3e",ink:"#a6accd",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#f78c6c"},overrides:{"text-weak":"#676e95","syntax-comment":"#676e95","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#a6accd","syntax-property":"#89ddff","syntax-type":"#ffcb6b","syntax-constant":"#f78c6c","syntax-operator":"#89ddff","syntax-punctuation":"#a6accd","syntax-object":"#a6accd","markdown-heading":"#c792ea","markdown-text":"#a6accd","markdown-link":"#82aaff","markdown-link-text":"#89ddff","markdown-code":"#c3e88d","markdown-block-quote":"#676e95","markdown-emph":"#ffcb6b","markdown-strong":"#f78c6c","markdown-horizontal-rule":"#676e95","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#82aaff","markdown-image-text":"#89ddff","markdown-code-block":"#a6accd"}},ll={$schema:al,name:sl,id:ol,light:il,dark:cl},dl="https://opencode.ai/desktop-theme.json",fl="Rose Pine",ul="rosepine",yl={palette:{neutral:"#faf4ed",ink:"#575279",primary:"#31748f",accent:"#d7827e",success:"#286983",warning:"#ea9d34",error:"#b4637a",info:"#56949f"},overrides:{"text-weak":"#9893a5","syntax-comment":"#9893a5","syntax-keyword":"#286983","syntax-string":"#ea9d34","syntax-primitive":"#d7827e","syntax-variable":"#575279","syntax-property":"#d7827e","syntax-type":"#56949f","syntax-constant":"#907aa9","syntax-operator":"#797593","syntax-punctuation":"#797593","syntax-object":"#575279","markdown-heading":"#907aa9","markdown-text":"#575279","markdown-link":"#31748f","markdown-link-text":"#d7827e","markdown-code":"#286983","markdown-block-quote":"#9893a5","markdown-emph":"#ea9d34","markdown-strong":"#b4637a","markdown-horizontal-rule":"#dfdad9","markdown-list-item":"#31748f","markdown-list-enumeration":"#d7827e","markdown-image":"#31748f","markdown-image-text":"#d7827e","markdown-code-block":"#575279"}},pl={palette:{neutral:"#191724",ink:"#e0def4",primary:"#9ccfd8",accent:"#ebbcba",success:"#31748f",warning:"#f6c177",error:"#eb6f92",info:"#9ccfd8"},overrides:{"text-weak":"#6e6a86","syntax-comment":"#6e6a86","syntax-keyword":"#31748f","syntax-string":"#f6c177","syntax-primitive":"#ebbcba","syntax-variable":"#e0def4","syntax-property":"#ebbcba","syntax-type":"#9ccfd8","syntax-constant":"#c4a7e7","syntax-operator":"#908caa","syntax-punctuation":"#908caa","syntax-object":"#e0def4","markdown-heading":"#c4a7e7","markdown-text":"#e0def4","markdown-link":"#9ccfd8","markdown-link-text":"#ebbcba","markdown-code":"#31748f","markdown-block-quote":"#6e6a86","markdown-emph":"#f6c177","markdown-strong":"#eb6f92","markdown-horizontal-rule":"#403d52","markdown-list-item":"#9ccfd8","markdown-list-enumeration":"#ebbcba","markdown-image":"#9ccfd8","markdown-image-text":"#ebbcba","markdown-code-block":"#e0def4"}},hl={$schema:dl,name:fl,id:ul,light:yl,dark:pl},ml="https://opencode.ai/desktop-theme.json",kl="Shades of Purple",gl="shadesofpurple",bl={palette:{neutral:"#f7ebff",ink:"#3b2c59",primary:"#7a5af8",accent:"#ff6bd5",success:"#3dd598",warning:"#f7c948",error:"#ff6bd5",info:"#62d4ff",diffAdd:"#c8f8da",diffDelete:"#ffc3ef"},overrides:{"syntax-comment":"#8e4be3","syntax-keyword":"#c45f00","syntax-string":"#2f8b32","syntax-primitive":"#a13bd6","syntax-property":"#008fb8","syntax-type":"#9d7a00","syntax-constant":"#e04d7a"}},wl={palette:{neutral:"#1a102b",ink:"#f5f0ff",primary:"#c792ff",accent:"#ff7ac6",success:"#7be0b0",warning:"#ffd580",error:"#ff7ac6",info:"#7dd4ff",diffAdd:"#53c39f",diffDelete:"#d85aa0"},overrides:{"syntax-comment":"#b362ff","syntax-keyword":"#ff9d00","syntax-string":"#a5ff90","syntax-primitive":"#fb94ff","syntax-property":"#9effff","syntax-type":"#fad000","syntax-constant":"#ff628c"}},vl={$schema:ml,name:kl,id:gl,light:bl,dark:wl},xl="https://opencode.ai/desktop-theme.json",Cl="Solarized",Ll="solarized",ql={palette:{neutral:"#fdf6e3",ink:"#586e75",primary:"#268bd2",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#c6dc7a",diffDelete:"#f2a1a1"},overrides:{"syntax-comment":"#657b83","syntax-keyword":"#728600","syntax-string":"#1f8f88","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},Ml={palette:{neutral:"#002b36",ink:"#93a1a1",primary:"#6c71c4",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#4c7654",diffDelete:"#c34b4b"},overrides:{"syntax-comment":"#586e75","syntax-keyword":"#859900","syntax-string":"#2aa198","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},$l={$schema:xl,name:Cl,id:Ll,light:ql,dark:Ml},Hl="https://opencode.ai/desktop-theme.json",Vl="Synthwave '84",_l="synthwave84",Il={palette:{neutral:"#fafafa",ink:"#262335",primary:"#00bcd4",accent:"#9c27b0",success:"#4caf50",warning:"#ff9800",error:"#f44336",info:"#ff5722"},overrides:{"text-weak":"#5c5c8a","syntax-comment":"#5c5c8a","syntax-keyword":"#e91e63","syntax-string":"#ff9800","syntax-primitive":"#ff5722","syntax-variable":"#262335","syntax-property":"#9c27b0","syntax-type":"#00bcd4","syntax-constant":"#9c27b0","syntax-operator":"#e91e63","syntax-punctuation":"#262335","syntax-object":"#262335","markdown-heading":"#e91e63","markdown-text":"#262335","markdown-link":"#00bcd4","markdown-link-text":"#9c27b0","markdown-code":"#4caf50","markdown-block-quote":"#5c5c8a","markdown-emph":"#ff9800","markdown-strong":"#ff5722","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#00bcd4","markdown-list-enumeration":"#9c27b0","markdown-image":"#00bcd4","markdown-image-text":"#9c27b0","markdown-code-block":"#262335"}},jl={palette:{neutral:"#262335",ink:"#ffffff",primary:"#36f9f6",accent:"#b084eb",success:"#72f1b8",warning:"#fede5d",error:"#fe4450",info:"#ff8b39",diffAdd:"#97f1d8",diffDelete:"#ff5e5b"},overrides:{"text-weak":"#848bbd","syntax-comment":"#848bbd","syntax-keyword":"#ff7edb","syntax-string":"#fede5d","syntax-primitive":"#ff8b39","syntax-variable":"#ffffff","syntax-property":"#b084eb","syntax-type":"#36f9f6","syntax-constant":"#b084eb","syntax-operator":"#ff7edb","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ff7edb","markdown-text":"#ffffff","markdown-link":"#36f9f6","markdown-link-text":"#b084eb","markdown-code":"#72f1b8","markdown-block-quote":"#848bbd","markdown-emph":"#fede5d","markdown-strong":"#ff8b39","markdown-horizontal-rule":"#495495","markdown-list-item":"#36f9f6","markdown-list-enumeration":"#b084eb","markdown-image":"#36f9f6","markdown-image-text":"#b084eb","markdown-code-block":"#ffffff"}},El={$schema:Hl,name:Vl,id:_l,light:Il,dark:jl},Al="https://opencode.ai/desktop-theme.json",Dl="Tokyonight",Tl="tokyonight",Sl={palette:{neutral:"#e1e2e7",ink:"#273153",primary:"#2e7de9",accent:"#b15c00",success:"#587539",warning:"#8c6c3e",error:"#c94060",info:"#007197",diffAdd:"#4f8f7b",diffDelete:"#d05f7c"},overrides:{"syntax-comment":"#6b6f7a","syntax-keyword":"#9854f1","syntax-primitive":"#1f6fd4","syntax-property":"#007197","syntax-constant":"#b15c00"}},Pl={palette:{neutral:"#1a1b26",ink:"#c0caf5",primary:"#7aa2f7",accent:"#ff9e64",success:"#9ece6a",warning:"#e0af68",error:"#f7768e",info:"#7dcfff",diffAdd:"#41a6b5",diffDelete:"#c34043"},overrides:{"syntax-comment":"#565f89","syntax-keyword":"#bb9af7","syntax-primitive":"#7aa2f7","syntax-property":"#7dcfff","syntax-constant":"#ff9e64"}},Fl={$schema:Al,name:Dl,id:Tl,light:Sl,dark:Pl},Zl="https://opencode.ai/desktop-theme.json",Bl="Vercel",Ol="vercel",Rl={palette:{neutral:"#FFFFFF",ink:"#171717",primary:"#0070F3",accent:"#8E4EC6",success:"#388E3C",warning:"#FF9500",error:"#DC3545",info:"#0070F3",diffAdd:"#46A758",diffDelete:"#E5484D"},overrides:{"text-weak":"#666666","syntax-comment":"#888888","syntax-keyword":"#E93D82","syntax-string":"#46A758","syntax-primitive":"#8E4EC6","syntax-variable":"#0070F3","syntax-property":"#12A594","syntax-type":"#12A594","syntax-constant":"#FFB224","syntax-operator":"#E93D82","syntax-punctuation":"#171717","syntax-object":"#0070F3","markdown-heading":"#8E4EC6","markdown-text":"#171717","markdown-link":"#0070F3","markdown-link-text":"#12A594","markdown-code":"#46A758","markdown-block-quote":"#666666","markdown-emph":"#FFB224","markdown-strong":"#E93D82","markdown-horizontal-rule":"#999999","markdown-list-item":"#171717","markdown-list-enumeration":"#0070F3","markdown-image":"#12A594","markdown-image-text":"#12A594","markdown-code-block":"#171717"}},zl={palette:{neutral:"#000000",ink:"#EDEDED",primary:"#0070F3",accent:"#8E4EC6",success:"#46A758",warning:"#FFB224",error:"#E5484D",info:"#52A8FF",interactive:"#52A8FF",diffAdd:"#63C46D",diffDelete:"#FF6166"},overrides:{"text-weak":"#878787","syntax-comment":"#878787","syntax-keyword":"#F75590","syntax-string":"#63C46D","syntax-primitive":"#BF7AF0","syntax-variable":"#52A8FF","syntax-property":"#0AC7AC","syntax-type":"#0AC7AC","syntax-constant":"#F2A700","syntax-operator":"#F75590","syntax-punctuation":"#EDEDED","syntax-object":"#52A8FF","markdown-heading":"#BF7AF0","markdown-text":"#EDEDED","markdown-link":"#52A8FF","markdown-link-text":"#0AC7AC","markdown-code":"#63C46D","markdown-block-quote":"#878787","markdown-emph":"#F2A700","markdown-strong":"#F75590","markdown-horizontal-rule":"#454545","markdown-list-item":"#EDEDED","markdown-list-enumeration":"#52A8FF","markdown-image":"#0AC7AC","markdown-image-text":"#50E3C2","markdown-code-block":"#EDEDED"}},Nl={$schema:Zl,name:Bl,id:Ol,light:Rl,dark:zl},Ul="https://opencode.ai/desktop-theme.json",Wl="Vesper",Jl="vesper",Kl={palette:{neutral:"#F0F0F0",ink:"#101010",primary:"#FFC799",accent:"#B30000",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#7a7a7a","syntax-keyword":"#6e6e6e","syntax-string":"#117e69","syntax-primitive":"#8d541c","syntax-property":"#101010","syntax-type":"#8d541c","syntax-constant":"#8d541c"}},Gl={palette:{neutral:"#101010",ink:"#FFF",primary:"#FFC799",accent:"#FF8080",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#8b8b8b","syntax-keyword":"#a0a0a0","syntax-string":"#99ffe4","syntax-primitive":"#ffc799","syntax-property":"#ffffff","syntax-type":"#ffc799","syntax-constant":"#ffc799"}},Yl={$schema:Ul,name:Wl,id:Jl,light:Kl,dark:Gl},Xl="https://opencode.ai/desktop-theme.json",Ql="Zenburn",ed="zenburn",td={palette:{neutral:"#ffffef",ink:"#3f3f3f",primary:"#5f7f8f",accent:"#5f8f8f",success:"#5f8f5f",warning:"#8f8f5f",error:"#8f5f5f",info:"#8f7f5f"},overrides:{"text-weak":"#6f6f6f","syntax-comment":"#5f7f5f","syntax-keyword":"#8f8f5f","syntax-string":"#8f5f5f","syntax-primitive":"#5f7f8f","syntax-variable":"#3f3f3f","syntax-property":"#5f8f8f","syntax-type":"#5f8f8f","syntax-constant":"#5f8f5f","syntax-operator":"#8f8f5f","syntax-punctuation":"#3f3f3f","syntax-object":"#3f3f3f","markdown-heading":"#8f8f5f","markdown-text":"#3f3f3f","markdown-link":"#5f7f8f","markdown-link-text":"#5f8f8f","markdown-code":"#5f8f5f","markdown-block-quote":"#6f6f6f","markdown-emph":"#8f8f5f","markdown-strong":"#8f7f5f","markdown-horizontal-rule":"#6f6f6f","markdown-list-item":"#5f7f8f","markdown-list-enumeration":"#5f8f8f","markdown-image":"#5f7f8f","markdown-image-text":"#5f8f8f","markdown-code-block":"#3f3f3f"}},rd={palette:{neutral:"#3f3f3f",ink:"#dcdccc",primary:"#8cd0d3",accent:"#93e0e3",success:"#7f9f7f",warning:"#f0dfaf",error:"#cc9393",info:"#dfaf8f",diffAdd:"#8fb28f",diffDelete:"#dca3a3"},overrides:{"text-weak":"#9f9f9f","syntax-comment":"#7f9f7f","syntax-keyword":"#f0dfaf","syntax-string":"#cc9393","syntax-primitive":"#8cd0d3","syntax-variable":"#dcdccc","syntax-property":"#93e0e3","syntax-type":"#93e0e3","syntax-constant":"#8fb28f","syntax-operator":"#f0dfaf","syntax-punctuation":"#dcdccc","syntax-object":"#dcdccc","markdown-heading":"#f0dfaf","markdown-text":"#dcdccc","markdown-link":"#8cd0d3","markdown-link-text":"#93e0e3","markdown-code":"#7f9f7f","markdown-block-quote":"#9f9f9f","markdown-emph":"#e0cf9f","markdown-strong":"#dfaf8f","markdown-horizontal-rule":"#9f9f9f","markdown-list-item":"#8cd0d3","markdown-list-enumeration":"#93e0e3","markdown-image":"#8cd0d3","markdown-image-text":"#93e0e3","markdown-code-block":"#dcdccc"}},nd={$schema:Xl,name:Ql,id:ed,light:td,dark:rd},ad=ro,sd=co,od=ho,id=vo,cd=$o,ld=Eo,dd=Fo,fd=No,ud=Yo,yd=ni,pd=li,hd=hi,md=vi,kd=$i,gd=Ei,bd=Fi,wd=Ni,vd=Yi,xd=nc,Cd=lc,Ld=hc,qd=vc,Md=$c,$d=Ec,Hd=Fc,Vd=Nc,_d=Yc,Id=nl,jd=ll,Ed=hl,Ad=vl,Dd=$l,Td=El,Sd=Fl,Pd=Nl,Fd=Yl,Zd=nd,Bd={"oc-2":ad,amoled:sd,aura:od,ayu:id,carbonfox:cd,catppuccin:ld,"catppuccin-frappe":dd,"catppuccin-macchiato":fd,cobalt2:ud,cursor:yd,dracula:pd,everforest:hd,flexoki:md,github:kd,gruvbox:gd,kanagawa:bd,"lucent-orng":wd,material:vd,matrix:xd,mercury:Cd,monokai:Ld,nightowl:qd,nord:Md,"one-dark":$d,onedarkpro:Hd,opencode:Vd,orng:_d,"osaka-jade":Id,palenight:jd,rosepine:Ed,shadesofpurple:Ad,solarized:Dd,synthwave84:Td,tokyonight:Sd,vercel:Pd,vesper:Fd,zenburn:Zd},Od="https://opencode.ai/desktop-theme.json",Rd="Kilo",zd="kilo",Nd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-interactive-weak":"#f0f0f0","surface-success-base":"#dff6dd","surface-success-weak":"#edfaec","surface-success-strong":"#388a34","surface-warning-base":"#fff4ce","surface-warning-weak":"#fffae5","surface-warning-strong":"#bf8803","surface-critical-base":"#fde7e9","surface-critical-weak":"#fef1f2","surface-critical-strong":"#e51400","surface-info-base":"#e7f3ff","surface-info-weak":"#f0f8ff","surface-info-strong":"#1a85ff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-raised-stronger":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","input-active":"#f0f8ff","border-base":"#cecece","border-hover":"#c8c8c8","border-active":"#b0b0b0","border-weak-base":"#e7e7e7","border-weak-hover":"#dddddd","border-strong-base":"#c8c8c8","border-strong-hover":"#b0b0b0","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","border-interactive-hover":"#006ab1","border-success-base":"#388a34","border-warning-base":"#bf8803","border-critical-base":"#e51400","border-info-base":"#1a85ff","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-hover":"#333333","icon-active":"#1e1e1e","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-invert-base":"#ffffff","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","surface-diff-add-base":"#dff6dd","surface-diff-add-weak":"#edfaec","surface-diff-delete-base":"#fde7e9","surface-diff-delete-weak":"#fef1f2","syntax-string":"#a31515","syntax-keyword":"#0000ff","syntax-primitive":"#098658","syntax-property":"#001080","syntax-type":"#267f99","syntax-constant":"#0070c1","syntax-comment":"#008000","syntax-variable":"#001080","syntax-operator":"#000000","syntax-punctuation":"#000000","syntax-object":"#001080","syntax-info":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000","avatar-background-pink":"#feeef8","avatar-background-mint":"#e1fbf4","avatar-background-orange":"#fff1e7","avatar-background-purple":"#f9f1fe","avatar-background-cyan":"#e7f9fb","avatar-background-lime":"#eefadc","avatar-text-pink":"#b51e78","avatar-text-mint":"#107c10","avatar-text-orange":"#df6100","avatar-text-purple":"#652d90","avatar-text-cyan":"#0598bc","avatar-text-lime":"#587c0c"}},Ud={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","text-on-critical-base":"#f14c4c","text-on-critical-weak":"#c53e3e","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-success-base":"#1b3a1b","surface-warning-base":"#3a3000","surface-critical-base":"#3a1515","surface-critical-weak":"#210908","surface-critical-strong":"#f14c4c","surface-base":"#080808","surface-info-base":"#0a2a4a","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","input-active":"#1e1e1e","border-base":"#454545","border-hover":"#505050","border-active":"#606060","border-weak-base":"#303031","border-weak-hover":"#3c3c3c","border-strong-base":"#505050","border-strong-hover":"#606060","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","border-interactive-hover":"#3794ff","border-success-base":"#487e02","border-warning-base":"#cca700","border-critical-base":"#f14c4c","border-info-base":"#3794ff","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-hover":"#d4d4d4","icon-active":"#e7e7e7","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-invert-base":"#1e1e1e","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-critical-hover":"#ff7872","icon-critical-active":"#ffc8bf","icon-info-base":"#3794ff","surface-diff-add-base":"#2a3a2a","surface-diff-add-weak":"#1e2e1e","surface-diff-delete-base":"#3a2020","surface-diff-delete-weak":"#2e1818","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Wd={$schema:Od,name:Rd,id:zd,light:Nd,dark:Ud},Jd="https://opencode.ai/desktop-theme.json",Kd="Kilo VS Code",Gd="kilo-vscode",Yd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","border-base":"#cecece","border-hover":"#c8c8c8","border-weak-base":"#e7e7e7","border-strong-base":"#c8c8c8","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000"}},Xd={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","border-base":"#454545","border-hover":"#505050","border-weak-base":"#303031","border-strong-base":"#505050","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-info-base":"#3794ff","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Qd={$schema:Jd,name:Kd,id:Gd,light:Yd,dark:Xd},e1=Wd,t1=Qd,r1={kilo:e1,"kilo-vscode":t1},n1={...r1,...Bd};function a1(r){const e=st();return{provider:t=>{const n=r.init(t);if(!(r.gate??!0))return $(e.Provider,{value:n,get children(){return t.children}});const s=D(()=>{const o=n.ready;return o===void 0||(typeof o=="function"?o():o)});return $(ie,{get when(){return s()},get children(){return $(e.Provider,{value:n,get children(){return t.children}})}})},use(){const t=Se(e);if(!t)throw new Error(`${r.name} context must be used within a context provider`);return t}}}const xr="kilo",He={THEME_ID:"opencode-theme-id",COLOR_SCHEME:"opencode-color-scheme",THEME_CSS_LIGHT:"opencode-theme-css-light",THEME_CSS_DARK:"opencode-theme-css-dark"},Wr="oc-theme";function s1(){const r=document.getElementById(Wr);if(r)return r;const e=document.createElement("style");return e.id=Wr,document.head.appendChild(e),e}function Ue(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function yt(r,e,t){const n=t==="dark",a=n?r.dark:r.light,s=zn(a,n),o=Nn(s);if(e!==xr)try{localStorage.setItem(n?He.THEME_CSS_DARK:He.THEME_CSS_LIGHT,o)}catch{}const i=`:root {
3
+ `)}const Ys="https://opencode.ai/desktop-theme.json",Xs="OC-2",Qs="oc-2",eo={palette:{neutral:"#f7f7f7",ink:"#171311",primary:"#dcde8d",success:"#12c905",warning:"#ffdc17",error:"#fc533a",info:"#a753ae",interactive:"#034cff",diffAdd:"#9ff29a",diffDelete:"#fc533a"},overrides:{"text-strong":"#171717","text-base":"#6F6F6F","text-weak":"#8F8F8F","text-weaker":"#C7C7C7","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#DBDBDB","border-weaker-base":"#E8E8E8","icon-base":"#8F8F8F","icon-weak-base":"#C7C7C7","surface-raised-base":"#F3F3F3","surface-raised-base-hover":"#EDEDED","surface-base":"#F8F8F8","surface-base-hover":"#0000000A","surface-interactive-weak":"#F5FAFF","icon-success-base":"#0ABE00","surface-success-base":"#E6FFE5","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-800)","syntax-string":"var(--v2-green-800)","syntax-primitive":"var(--v2-pink-800)","syntax-property":"var(--v2-orange-800)","syntax-type":"var(--v2-purple-800)","syntax-constant":"#007b80","syntax-critical":"var(--v2-red-800)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#a753ae","surface-critical-base":"#FFF2F0"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-50)","v2-background-bg-deep":"var(--v2-grey-100)","v2-background-bg-layer-01":"var(--v2-grey-100)","v2-background-bg-layer-02":"var(--v2-grey-200)","v2-background-bg-layer-03":"var(--v2-grey-300)","v2-background-bg-layer-04":"var(--v2-grey-400)","v2-background-bg-inverse":"var(--v2-grey-1100)","v2-background-bg-contrast":"var(--v2-grey-1000)","v2-background-bg-button-neutral":"var(--v2-grey-50)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-1100)","v2-text-text-muted":"var(--v2-grey-700)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-50)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-600)","v2-text-text-accent-hover":"var(--v2-blue-700)","v2-text-text-code-accent":"var(--v2-blue-900)","v2-icon-icon-base":"var(--v2-grey-800)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-50)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-600)","v2-icon-icon-accent-hover":"var(--v2-blue-700)","v2-border-border-muted":"var(--v2-alpha-dark-8)","v2-border-border-base":"var(--v2-alpha-dark-10)","v2-border-border-strong":"var(--v2-alpha-dark-20)","v2-border-border-inverse":"var(--v2-grey-1000)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-dark-4)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-dark-8)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-light-12)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-light-24)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-40)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#fafafa00","v2-overlay-simple-tab-hover-scrim":"#eeeeee00","v2-overlay-simple-tab-scrim":"#fafafa00","v2-state-bg-success":"var(--v2-green-100)","v2-state-fg-success":"var(--v2-green-800)","v2-state-border-success":"var(--v2-green-300)","v2-state-bg-warning":"var(--v2-yellow-100)","v2-state-fg-warning":"var(--v2-yellow-800)","v2-state-border-warning":"var(--v2-yellow-300)","v2-state-bg-danger":"var(--v2-red-100)","v2-state-fg-danger":"var(--v2-red-800)","v2-state-border-danger":"var(--v2-red-300)","v2-state-bg-info":"var(--v2-blue-100)","v2-state-fg-info":"var(--v2-blue-800)","v2-state-border-info":"var(--v2-blue-300)","v2-avatar-bg-orange":"#ee7330ff","v2-avatar-border-orange":"#d16427ff","v2-avatar-bg-yellow":"#e7af36ff","v2-avatar-border-yellow":"#cb9f34ff","v2-avatar-bg-cyan":"#0096b8ff","v2-avatar-border-cyan":"#007d9bff","v2-avatar-bg-green":"#2eaf5aff","v2-avatar-border-green":"#198b43ff","v2-avatar-bg-red":"#d92e3cff","v2-avatar-border-red":"#b82d35ff","v2-avatar-bg-pink":"#e4429eff","v2-avatar-border-pink":"#c83d8bff","v2-avatar-bg-blue":"#3250dfff","v2-avatar-border-blue":"#2c47c8ff","v2-avatar-bg-purple":"#623be2ff","v2-avatar-border-purple":"#5230c2ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#3a3a3aff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-4), 0px 1px 2px -1px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-4), 0px 4px 8px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-4), 0px 8px 16px 0px var(--v2-alpha-dark-8), 0px 0px 0px 0.5px var(--v2-alpha-dark-12), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-neutral":"0px 1px 1.5px 0px var(--v2-alpha-dark-10), 0px 0px 0px 0.5px var(--v2-alpha-dark-14), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-button-contrast":"0px 1px 1.5px 0px var(--v2-alpha-dark-20), 0px 0px 0px 0.5px var(--v2-grey-800), inset 0px 1px 2px 0px var(--v2-alpha-light-14), inset 0px -1px 2px 0px var(--v2-alpha-dark-6), 0px 0px 0px 0px var(--v2-alpha-dark-0)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px 1px 1px 0px var(--v2-alpha-dark-8), inset 0px 0.5px 0.5px 0px var(--v2-alpha-dark-8), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-10)","v2-elevation-switch-on":"inset 0px 2px 2px 0px var(--v2-alpha-dark-10), inset 0px 1px 1px 0px var(--v2-alpha-dark-10), inset 0px 0px 0px 0.5px var(--v2-alpha-dark-20)","v2-illustration-illustration-layer-01":"var(--v2-grey-300)","v2-illustration-illustration-layer-02":"var(--v2-grey-400)","v2-illustration-illustration-layer-03":"var(--v2-grey-500)"}},to={palette:{neutral:"#1f1f1f",ink:"#f1ece8",primary:"#fab283",success:"#12c905",warning:"#fcd53a",error:"#fc533a",info:"#edb2f1",interactive:"#034cff",diffAdd:"#c8ffc4",diffDelete:"#fc533a"},overrides:{"text-strong":"#EDEDED","text-base":"#A0A0A0","text-weak":"#707070","text-weaker":"#505050","text-diff-add-base":"var(--v2-state-fg-success)","text-diff-delete-base":"var(--v2-state-fg-danger)","border-weak-base":"#282828","border-weaker-base":"#232323","icon-base":"#7E7E7E","icon-weak-base":"#343434","surface-raised-base":"#232323","surface-raised-base-hover":"#282828","surface-base":"#1C1C1C","surface-base-hover":"#FFFFFF0D","surface-interactive-weak":"#0D172B","surface-success-base":"#022B00","syntax-comment":"var(--v2-text-text-muted)","syntax-keyword":"var(--v2-pink-400)","syntax-string":"var(--v2-green-400)","syntax-primitive":"var(--v2-pink-400)","syntax-property":"var(--v2-orange-400)","syntax-type":"var(--v2-purple-400)","syntax-constant":"#93e9f6","syntax-critical":"var(--v2-red-400)","syntax-diff-add":"var(--v2-state-fg-success)","syntax-diff-delete":"var(--v2-state-fg-danger)","syntax-diff-unknown":"#edb2f1","surface-critical-base":"#1F0603"},v2Overrides:{"v2-grey-50":"#ffffffff","v2-grey-100":"#fafafaff","v2-grey-200":"#f2f2f2ff","v2-grey-300":"#eeeeeeff","v2-grey-400":"#dbdbdbff","v2-grey-500":"#aeaeaeff","v2-grey-600":"#808080ff","v2-grey-700":"#5c5c5cff","v2-grey-800":"#3a3a3aff","v2-grey-900":"#2e2e2eff","v2-grey-1000":"#242424ff","v2-grey-1100":"#161616ff","v2-grey-1200":"#080808ff","v2-red-100":"#fcecebff","v2-red-200":"#f6d5d3ff","v2-red-300":"#f2bbb7ff","v2-red-400":"#f29b96ff","v2-red-500":"#f17471ff","v2-red-600":"#f1484fff","v2-red-700":"#d92e3cff","v2-red-800":"#b82d35ff","v2-red-900":"#97252bff","v2-red-1000":"#7a1f23ff","v2-red-1100":"#5f1a1cff","v2-red-1200":"#461516ff","v2-orange-100":"#fdf2edff","v2-orange-200":"#ffe7dcff","v2-orange-300":"#ffd8c6ff","v2-orange-400":"#ffc1a4ff","v2-orange-500":"#ffa478ff","v2-orange-600":"#ff8648ff","v2-orange-700":"#ee7330ff","v2-orange-800":"#d16427ff","v2-orange-900":"#b35624ff","v2-orange-1000":"#954c27ff","v2-orange-1100":"#723d22ff","v2-orange-1200":"#5a2c14ff","v2-yellow-100":"#fefaecff","v2-yellow-200":"#fcefd0ff","v2-yellow-300":"#f7e5b5ff","v2-yellow-400":"#f3da9bff","v2-yellow-500":"#f2cf76ff","v2-yellow-600":"#f6c251ff","v2-yellow-700":"#e7af36ff","v2-yellow-800":"#cb9f34ff","v2-yellow-900":"#ac8833ff","v2-yellow-1000":"#8e7231ff","v2-yellow-1100":"#68552bff","v2-yellow-1200":"#4b4025ff","v2-green-100":"#e7f9eaff","v2-green-200":"#d0f0d5ff","v2-green-300":"#b8e9c1ff","v2-green-400":"#96e3a6ff","v2-green-500":"#6bd586ff","v2-green-600":"#49c970ff","v2-green-700":"#2eaf5aff","v2-green-800":"#198b43ff","v2-green-900":"#1d783cff","v2-green-1000":"#196130ff","v2-green-1100":"#164c26ff","v2-green-1200":"#14361dff","v2-cyan-100":"#e2f7fbff","v2-cyan-200":"#c4edf4ff","v2-cyan-300":"#a3e4efff","v2-cyan-400":"#65d9ebff","v2-cyan-500":"#00c5dfff","v2-cyan-600":"#00abcfff","v2-cyan-700":"#0096b8ff","v2-cyan-800":"#007d9bff","v2-cyan-900":"#006c85ff","v2-cyan-1000":"#005a6eff","v2-cyan-1100":"#004756ff","v2-cyan-1200":"#00353fff","v2-blue-100":"#ecf1feff","v2-blue-200":"#d7e2fcff","v2-blue-300":"#c3d4fdff","v2-blue-400":"#a2bcffff","v2-blue-500":"#7698fdff","v2-blue-600":"#3b5cf6ff","v2-blue-700":"#3250dfff","v2-blue-800":"#2c47c8ff","v2-blue-900":"#263fa9ff","v2-blue-1000":"#22388fff","v2-blue-1100":"#1c2e70ff","v2-blue-1200":"#1b2852ff","v2-purple-100":"#ebecfeff","v2-purple-200":"#d5d5fcff","v2-purple-300":"#b9b8f5ff","v2-purple-400":"#9e99f7ff","v2-purple-500":"#8271f8ff","v2-purple-600":"#7152f4ff","v2-purple-700":"#623be2ff","v2-purple-800":"#5230c2ff","v2-purple-900":"#442aa1ff","v2-purple-1000":"#361f83ff","v2-purple-1100":"#2b1b6aff","v2-purple-1200":"#221358ff","v2-pink-100":"#fdecf3ff","v2-pink-200":"#f7d5e4ff","v2-pink-300":"#fabcd8ff","v2-pink-400":"#f799c6ff","v2-pink-500":"#f26cb2ff","v2-pink-600":"#f64aabff","v2-pink-700":"#e4429eff","v2-pink-800":"#c83d8bff","v2-pink-900":"#aa3576ff","v2-pink-1000":"#8c2d61ff","v2-pink-1100":"#6f284fff","v2-pink-1200":"#5c1d3fff","v2-background-bg-base":"var(--v2-grey-1100)","v2-background-bg-deep":"var(--v2-grey-1200)","v2-background-bg-layer-01":"var(--v2-grey-1000)","v2-background-bg-layer-02":"var(--v2-grey-900)","v2-background-bg-layer-03":"var(--v2-grey-800)","v2-background-bg-layer-04":"var(--v2-grey-700)","v2-background-bg-inverse":"var(--v2-grey-50)","v2-background-bg-contrast":"var(--v2-grey-700)","v2-background-bg-button-neutral":"var(--v2-alpha-light-6)","v2-background-bg-accent":"var(--v2-blue-600)","v2-text-text-base":"var(--v2-grey-100)","v2-text-text-muted":"var(--v2-grey-500)","v2-text-text-faint":"var(--v2-grey-600)","v2-text-text-inverse":"var(--v2-grey-1100)","v2-text-text-contrast":"var(--v2-grey-50)","v2-text-text-accent":"var(--v2-blue-400)","v2-text-text-accent-hover":"var(--v2-blue-300)","v2-text-text-code-accent":"var(--v2-blue-400)","v2-icon-icon-base":"var(--v2-grey-400)","v2-icon-icon-muted":"var(--v2-grey-600)","v2-icon-icon-inverse":"var(--v2-grey-1100)","v2-icon-icon-contrast":"var(--v2-grey-100)","v2-icon-icon-accent":"var(--v2-blue-400)","v2-icon-icon-accent-hover":"var(--v2-blue-300)","v2-border-border-muted":"var(--v2-alpha-light-8)","v2-border-border-base":"var(--v2-alpha-light-10)","v2-border-border-strong":"var(--v2-alpha-light-20)","v2-border-border-inverse":"var(--v2-grey-100)","v2-border-border-focus":"var(--v2-blue-500)","v2-overlay-simple-overlay-hover":"var(--v2-alpha-light-6)","v2-overlay-simple-overlay-pressed":"var(--v2-alpha-light-10)","v2-overlay-simple-overlay-contrast-hover":"var(--v2-alpha-dark-24)","v2-overlay-simple-overlay-contrast-pressed":"var(--v2-alpha-dark-40)","v2-overlay-simple-overlay-scrim":"var(--v2-alpha-dark-60)","v2-overlay-gradient-depth-overlay-depth-top":"var(--v2-alpha-light-100)","v2-overlay-gradient-depth-overlay-depth-bot":"var(--v2-alpha-light-0)","v2-overlay-simple-tab-active-scrim":"#24242400","v2-overlay-simple-tab-hover-scrim":"#3a3a3a00","v2-overlay-simple-tab-scrim":"#08080800","v2-state-bg-success":"var(--v2-green-1200)","v2-state-fg-success":"var(--v2-green-500)","v2-state-border-success":"var(--v2-green-900)","v2-state-bg-warning":"var(--v2-yellow-1200)","v2-state-fg-warning":"var(--v2-yellow-500)","v2-state-border-warning":"var(--v2-yellow-900)","v2-state-bg-danger":"var(--v2-red-1200)","v2-state-fg-danger":"var(--v2-red-500)","v2-state-border-danger":"var(--v2-red-900)","v2-state-bg-info":"var(--v2-blue-1200)","v2-state-fg-info":"var(--v2-blue-500)","v2-state-border-info":"var(--v2-blue-900)","v2-avatar-bg-orange":"#723d22ff","v2-avatar-border-orange":"#ff8648ff","v2-avatar-bg-yellow":"#68552bff","v2-avatar-border-yellow":"#e7af36ff","v2-avatar-bg-cyan":"#005a6eff","v2-avatar-border-cyan":"#0096b8ff","v2-avatar-bg-green":"#196130ff","v2-avatar-border-green":"#49c970ff","v2-avatar-bg-red":"#7a1f23ff","v2-avatar-border-red":"#d92e3cff","v2-avatar-bg-pink":"#8c2d61ff","v2-avatar-border-pink":"#e4429eff","v2-avatar-bg-blue":"#263fa9ff","v2-avatar-border-blue":"#7698fdff","v2-avatar-bg-purple":"#361f83ff","v2-avatar-border-purple":"#7152f4ff","v2-avatar-bg-gray":"#5c5c5cff","v2-avatar-border-gray":"#aeaeaeff","v2-elevation-raised":"0px 2px 4px 0px var(--v2-alpha-dark-30), 0px 1px 2px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-floating":"0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 4px 8px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-overlay":"0px 16px 32px 0px var(--v2-alpha-dark-30), 0px 8px 16px 0px var(--v2-alpha-dark-30), 0px 0px 0px 0.5px var(--v2-alpha-light-16), 0px -0.5px 0px 0px var(--v2-alpha-light-6)","v2-elevation-button-neutral":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-20), 0px -0.5px 0px 0px var(--v2-alpha-light-10)","v2-elevation-button-contrast":"0px 1px 2px 0px var(--v2-alpha-dark-40), 0px 0px 0px 0.5px var(--v2-alpha-light-40), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0px var(--v2-alpha-light-0), 0px -0.5px 0px 0px var(--v2-alpha-light-30)","v2-elevation-elements":"0px 0.5px 0.5px 0px var(--v2-alpha-dark-40)","v2-elevation-switch-off":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-elevation-switch-on":"inset 0px -0.5px 0px 0px var(--v2-alpha-light-10), inset 0px 0px 0px 0px var(--v2-alpha-light-0), inset 0px 0px 0px 0.5px var(--v2-alpha-light-16)","v2-illustration-illustration-layer-01":"var(--v2-grey-900)","v2-illustration-illustration-layer-02":"var(--v2-grey-800)","v2-illustration-illustration-layer-03":"var(--v2-grey-700)"}},ro={$schema:Ys,name:Xs,id:Qs,light:eo,dark:to},no="https://opencode.ai/desktop-theme.json",ao="AMOLED",so="amoled",oo={palette:{neutral:"#f0f0f0",ink:"#0a0a0a",primary:"#6200ff",accent:"#ff0080",success:"#00e676",warning:"#ffab00",error:"#ff1744",info:"#00b0ff",diffAdd:"#00e676",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#757575","syntax-keyword":"#d500f9","syntax-string":"#00e676","syntax-primitive":"#00b0ff","syntax-property":"#ff9100","syntax-constant":"#6200ff"}},io={palette:{neutral:"#000000",ink:"#ffffff",primary:"#b388ff",accent:"#ff4081",success:"#00ff88",warning:"#ffea00",error:"#ff1744",info:"#18ffff",diffAdd:"#00ff88",diffDelete:"#ff1744"},overrides:{"syntax-comment":"#555555","syntax-keyword":"#ff00ff","syntax-string":"#00ff88","syntax-primitive":"#18ffff","syntax-property":"#ffea00","syntax-constant":"#b388ff"}},co={$schema:no,name:ao,id:so,light:oo,dark:io},lo="https://opencode.ai/desktop-theme.json",fo="Aura",uo="aura",yo={palette:{neutral:"#f5f0ff",ink:"#2d2640",primary:"#a277ff",accent:"#d94f4f",success:"#40bf7a",warning:"#d9a24a",error:"#d94f4f",info:"#5bb8d9",diffAdd:"#b3e6cc",diffDelete:"#f5b3b3"},overrides:{"syntax-comment":"#8d88a3","syntax-keyword":"#7b5ae0","syntax-string":"#2b8a57","syntax-primitive":"#2f78b8","syntax-property":"#a96a22","syntax-type":"#2b8a57","syntax-constant":"#d94f4f"}},po={palette:{neutral:"#15141b",ink:"#edecee",primary:"#a277ff",accent:"#ff6767",success:"#61ffca",warning:"#ffca85",error:"#ff6767",info:"#82e2ff",diffAdd:"#61ffca",diffDelete:"#ff6767"},overrides:{"syntax-comment":"#6d6a7e","syntax-keyword":"#a277ff","syntax-string":"#61ffca","syntax-primitive":"#82e2ff","syntax-property":"#ffca85","syntax-type":"#61ffca","syntax-constant":"#ff6767"}},ho={$schema:lo,name:fo,id:uo,light:yo,dark:po},mo="https://opencode.ai/desktop-theme.json",ko="Ayu",go="ayu",bo={palette:{neutral:"#fdfaf4",ink:"#4f5964",primary:"#4aa8c8",accent:"#ef7d71",success:"#5fb978",warning:"#ea9f41",error:"#e6656a",info:"#2f9bce",diffAdd:"#b1d780",diffDelete:"#e6656a"},overrides:{"syntax-comment":"#6e7681","syntax-keyword":"#c76a1a","syntax-string":"#6f8f00","syntax-primitive":"#b87500","syntax-property":"#2f86b7","syntax-type":"#227fc0","syntax-constant":"#a37acc"}},wo={palette:{neutral:"#0f1419",ink:"#d6dae0",primary:"#3fb7e3",accent:"#f2856f",success:"#78d05c",warning:"#e4a75c",error:"#f58572",info:"#66c6f1",diffAdd:"#59c57c",diffDelete:"#f58572"},overrides:{"syntax-comment":"#5a6673","syntax-keyword":"#ff8f40","syntax-string":"#aad94c","syntax-primitive":"#ffb454","syntax-property":"#39bae6","syntax-type":"#59c2ff","syntax-constant":"#d2a6ff"}},vo={$schema:mo,name:ko,id:go,light:bo,dark:wo},xo="https://opencode.ai/desktop-theme.json",Co="Carbonfox",Lo="carbonfox",qo={palette:{neutral:"#8e8e8e",ink:"#161616",primary:"#0072c3",accent:"#da1e28",success:"#198038",warning:"#f1c21b",error:"#da1e28",info:"#0043ce",interactive:"#0f62fe",diffAdd:"#198038",diffDelete:"#da1e28"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#8a3ffc","syntax-string":"#198038","syntax-primitive":"#0f62fe","syntax-property":"#0043ce","syntax-type":"#8a5f00","syntax-constant":"#da1e28"}},Mo={palette:{neutral:"#393939",ink:"#f2f4f8",primary:"#33b1ff",accent:"#ff8389",success:"#42be65",warning:"#f1c21b",error:"#ff8389",info:"#78a9ff",interactive:"#4589ff",diffAdd:"#42be65",diffDelete:"#ff8389"},overrides:{"syntax-comment":"#6f6f6f","syntax-keyword":"#be95ff","syntax-string":"#42be65","syntax-primitive":"#33b1ff","syntax-property":"#78a9ff","syntax-type":"#f1c21b","syntax-constant":"#ff8389"}},$o={$schema:xo,name:Co,id:Lo,light:qo,dark:Mo},Ho="https://opencode.ai/desktop-theme.json",Vo="Catppuccin",_o="catppuccin",Io={palette:{neutral:"#f5e0dc",ink:"#4c4f69",primary:"#7287fd",accent:"#d20f39",success:"#40a02b",warning:"#df8e1d",error:"#d20f39",info:"#04a5e5",diffAdd:"#a6d189",diffDelete:"#e78284"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#8839ef","syntax-primitive":"#1e66f5","syntax-constant":"#ca6702"}},jo={palette:{neutral:"#1e1e2e",ink:"#cdd6f4",primary:"#b4befe",accent:"#f38ba8",success:"#a6d189",warning:"#f4b8e4",error:"#f38ba8",info:"#89dceb",diffAdd:"#94e2d5",diffDelete:"#f38ba8"},overrides:{"syntax-comment":"#6c7086","syntax-keyword":"#cba6f7","syntax-primitive":"#89b4fa","syntax-constant":"#fab387"}},Eo={$schema:Ho,name:Vo,id:_o,light:Io,dark:jo},Ao="https://opencode.ai/desktop-theme.json",Do="Catppuccin Frappe",To="catppuccin-frappe",So={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Po={palette:{neutral:"#303446",ink:"#c6d0f5",primary:"#8da4e2",accent:"#f4b8e4",success:"#a6d189",warning:"#e5c890",error:"#e78284",info:"#81c8be"},overrides:{"text-weak":"#b5bfe2","syntax-comment":"#949cb8","syntax-keyword":"#ca9ee6","syntax-string":"#a6d189","syntax-primitive":"#8da4e2","syntax-variable":"#e78284","syntax-property":"#99d1db","syntax-type":"#e5c890","syntax-constant":"#ef9f76","syntax-operator":"#99d1db","syntax-punctuation":"#c6d0f5","syntax-object":"#e78284","markdown-heading":"#ca9ee6","markdown-text":"#c6d0f5","markdown-link":"#8da4e2","markdown-link-text":"#99d1db","markdown-code":"#a6d189","markdown-block-quote":"#e5c890","markdown-emph":"#e5c890","markdown-strong":"#ef9f76","markdown-horizontal-rule":"#a5adce","markdown-list-item":"#8da4e2","markdown-list-enumeration":"#99d1db","markdown-image":"#8da4e2","markdown-image-text":"#99d1db","markdown-code-block":"#c6d0f5"}},Fo={$schema:Ao,name:Do,id:To,light:So,dark:Po},Zo="https://opencode.ai/desktop-theme.json",Bo="Catppuccin Macchiato",Oo="catppuccin-macchiato",Ro={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},zo={palette:{neutral:"#24273a",ink:"#cad3f5",primary:"#8aadf4",accent:"#f5bde6",success:"#a6da95",warning:"#eed49f",error:"#ed8796",info:"#8bd5ca"},overrides:{"text-weak":"#b8c0e0","syntax-comment":"#939ab7","syntax-keyword":"#c6a0f6","syntax-string":"#a6da95","syntax-primitive":"#8aadf4","syntax-variable":"#ed8796","syntax-property":"#91d7e3","syntax-type":"#eed49f","syntax-constant":"#f5a97f","syntax-operator":"#91d7e3","syntax-punctuation":"#cad3f5","syntax-object":"#ed8796","markdown-heading":"#c6a0f6","markdown-text":"#cad3f5","markdown-link":"#8aadf4","markdown-link-text":"#91d7e3","markdown-code":"#a6da95","markdown-block-quote":"#eed49f","markdown-emph":"#eed49f","markdown-strong":"#f5a97f","markdown-horizontal-rule":"#a5adcb","markdown-list-item":"#8aadf4","markdown-list-enumeration":"#91d7e3","markdown-image":"#8aadf4","markdown-image-text":"#91d7e3","markdown-code-block":"#cad3f5"}},No={$schema:Zo,name:Bo,id:Oo,light:Ro,dark:zo},Uo="https://opencode.ai/desktop-theme.json",Wo="Cobalt2",Jo="cobalt2",Ko={palette:{neutral:"#ffffff",ink:"#193549",primary:"#0066cc",accent:"#00acc1",success:"#4caf50",warning:"#ff9800",error:"#e91e63",info:"#ff5722"},overrides:{"text-weak":"#5c6b7d","syntax-comment":"#5c6b7d","syntax-keyword":"#ff5722","syntax-string":"#4caf50","syntax-primitive":"#ff9800","syntax-variable":"#193549","syntax-property":"#00acc1","syntax-type":"#00acc1","syntax-constant":"#e91e63","syntax-operator":"#ff5722","syntax-punctuation":"#193549","syntax-object":"#193549","markdown-heading":"#ff9800","markdown-text":"#193549","markdown-link":"#0066cc","markdown-link-text":"#00acc1","markdown-code":"#4caf50","markdown-block-quote":"#5c6b7d","markdown-emph":"#ff5722","markdown-strong":"#e91e63","markdown-horizontal-rule":"#d3dae3","markdown-list-item":"#0066cc","markdown-list-enumeration":"#00acc1","markdown-image":"#0066cc","markdown-image-text":"#00acc1","markdown-code-block":"#193549"}},Go={palette:{neutral:"#193549",ink:"#ffffff",primary:"#0088ff",accent:"#2affdf",success:"#9eff80",warning:"#ffc600",error:"#ff0088",info:"#ff9d00",diffAdd:"#b9ff9f",diffDelete:"#ff5fb3"},overrides:{"text-weak":"#adb7c9","syntax-comment":"#0088ff","syntax-keyword":"#ff9d00","syntax-string":"#9eff80","syntax-primitive":"#ffc600","syntax-variable":"#ffffff","syntax-property":"#2affdf","syntax-type":"#2affdf","syntax-constant":"#ff628c","syntax-operator":"#ff9d00","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ffc600","markdown-text":"#ffffff","markdown-link":"#0088ff","markdown-link-text":"#2affdf","markdown-code":"#9eff80","markdown-block-quote":"#adb7c9","markdown-emph":"#ff9d00","markdown-strong":"#ff628c","markdown-horizontal-rule":"#2d5a7b","markdown-list-item":"#0088ff","markdown-list-enumeration":"#2affdf","markdown-image":"#0088ff","markdown-image-text":"#2affdf","markdown-code-block":"#ffffff"}},Yo={$schema:Uo,name:Wo,id:Jo,light:Ko,dark:Go},Xo="https://opencode.ai/desktop-theme.json",Qo="Cursor",ei="cursor",ti={palette:{neutral:"#fcfcfc",ink:"#141414",primary:"#6f9ba6",accent:"#6f9ba6",success:"#1f8a65",warning:"#db704b",error:"#cf2d56",info:"#3c7cab",interactive:"#206595",diffAdd:"#55a583",diffDelete:"#e75e78"},overrides:{"text-weak":"#141414ad","syntax-comment":"#141414ad","syntax-keyword":"#b3003f","syntax-string":"#9e94d5","syntax-primitive":"#db704b","syntax-variable":"#141414","syntax-property":"#141414ad","syntax-type":"#206595","syntax-constant":"#b8448b","syntax-operator":"#141414","syntax-punctuation":"#141414","syntax-object":"#141414","markdown-heading":"#206595","markdown-text":"#141414","markdown-link":"#206595","markdown-link-text":"#141414ad","markdown-code":"#1f8a65","markdown-block-quote":"#141414ad","markdown-emph":"#141414","markdown-strong":"#141414","markdown-horizontal-rule":"#141414ad","markdown-list-item":"#141414","markdown-list-enumeration":"#141414ad","markdown-image":"#206595","markdown-image-text":"#141414ad","markdown-code-block":"#141414"}},ri={palette:{neutral:"#181818",ink:"#e4e4e4",primary:"#88c0d0",accent:"#88c0d0",success:"#3fa266",warning:"#f1b467",error:"#e34671",info:"#81a1c1",interactive:"#82D2CE",diffAdd:"#70b489",diffDelete:"#fc6b83"},overrides:{"text-weak":"#e4e4e45e","syntax-comment":"#e4e4e45e","syntax-keyword":"#82D2CE","syntax-string":"#E394DC","syntax-primitive":"#EFB080","syntax-variable":"#e4e4e4","syntax-property":"#81a1c1","syntax-type":"#EFB080","syntax-constant":"#F8C762","syntax-operator":"#e4e4e4","syntax-punctuation":"#e4e4e4","syntax-object":"#e4e4e4","markdown-heading":"#AAA0FA","markdown-text":"#e4e4e4","markdown-link":"#82D2CE","markdown-link-text":"#81a1c1","markdown-code":"#E394DC","markdown-block-quote":"#e4e4e45e","markdown-emph":"#82D2CE","markdown-strong":"#F8C762","markdown-horizontal-rule":"#e4e4e45e","markdown-list-item":"#e4e4e4","markdown-list-enumeration":"#88c0d0","markdown-image":"#88c0d0","markdown-image-text":"#81a1c1","markdown-code-block":"#e4e4e4"}},ni={$schema:Xo,name:Qo,id:ei,light:ti,dark:ri},ai="https://opencode.ai/desktop-theme.json",si="Dracula",oi="dracula",ii={palette:{neutral:"#f8f8f2",ink:"#1f1f2f",primary:"#7c6bf5",accent:"#d16090",success:"#2fbf71",warning:"#f7a14d",error:"#d9536f",info:"#1d7fc5",diffAdd:"#9fe3b3",diffDelete:"#f8a1b8"},overrides:{"syntax-comment":"#7d7f97","syntax-keyword":"#d16090","syntax-string":"#596600","syntax-primitive":"#2f8f57","syntax-property":"#1d7fc5","syntax-constant":"#7c6bf5"}},ci={palette:{neutral:"#1d1e28",ink:"#f8f8f2",primary:"#bd93f9",accent:"#ff79c6",success:"#50fa7b",warning:"#ffb86c",error:"#ff5555",info:"#8be9fd",diffAdd:"#2fb27d",diffDelete:"#ff6b81"},overrides:{"syntax-comment":"#6272a4","syntax-keyword":"#ff79c6","syntax-string":"#f1fa8c","syntax-primitive":"#50fa7b","syntax-property":"#8be9fd","syntax-constant":"#bd93f9"}},li={$schema:ai,name:si,id:oi,light:ii,dark:ci},di="https://opencode.ai/desktop-theme.json",fi="Everforest",ui="everforest",yi={palette:{neutral:"#fdf6e3",ink:"#5c6a72",primary:"#8da101",accent:"#df69ba",success:"#8da101",warning:"#f57d26",error:"#f85552",info:"#35a77c",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#a6b0a0","syntax-comment":"#a6b0a0","syntax-keyword":"#df69ba","syntax-string":"#8da101","syntax-primitive":"#8da101","syntax-variable":"#f85552","syntax-property":"#35a77c","syntax-type":"#dfa000","syntax-constant":"#f57d26","syntax-operator":"#35a77c","syntax-punctuation":"#5c6a72","syntax-object":"#f85552","markdown-heading":"#df69ba","markdown-text":"#5c6a72","markdown-link":"#8da101","markdown-link-text":"#35a77c","markdown-code":"#8da101","markdown-block-quote":"#dfa000","markdown-emph":"#dfa000","markdown-strong":"#f57d26","markdown-horizontal-rule":"#a6b0a0","markdown-list-item":"#8da101","markdown-list-enumeration":"#35a77c","markdown-image":"#8da101","markdown-image-text":"#35a77c","markdown-code-block":"#5c6a72"}},pi={palette:{neutral:"#2d353b",ink:"#d3c6aa",primary:"#a7c080",accent:"#d699b6",success:"#a7c080",warning:"#e69875",error:"#e67e80",info:"#83c092",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#7a8478","syntax-comment":"#7a8478","syntax-keyword":"#d699b6","syntax-string":"#a7c080","syntax-primitive":"#a7c080","syntax-variable":"#e67e80","syntax-property":"#83c092","syntax-type":"#dbbc7f","syntax-constant":"#e69875","syntax-operator":"#83c092","syntax-punctuation":"#d3c6aa","syntax-object":"#e67e80","markdown-heading":"#d699b6","markdown-text":"#d3c6aa","markdown-link":"#a7c080","markdown-link-text":"#83c092","markdown-code":"#a7c080","markdown-block-quote":"#dbbc7f","markdown-emph":"#dbbc7f","markdown-strong":"#e69875","markdown-horizontal-rule":"#7a8478","markdown-list-item":"#a7c080","markdown-list-enumeration":"#83c092","markdown-image":"#a7c080","markdown-image-text":"#83c092","markdown-code-block":"#d3c6aa"}},hi={$schema:di,name:fi,id:ui,light:yi,dark:pi},mi="https://opencode.ai/desktop-theme.json",ki="Flexoki",gi="flexoki",bi={palette:{neutral:"#FFFCF0",ink:"#100F0F",primary:"#205EA6",accent:"#BC5215",success:"#66800B",warning:"#BC5215",error:"#AF3029",info:"#24837B"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#66800B","syntax-string":"#24837B","syntax-primitive":"#BC5215","syntax-variable":"#205EA6","syntax-property":"#24837B","syntax-type":"#AD8301","syntax-constant":"#5E409D","syntax-operator":"#6F6E69","syntax-punctuation":"#6F6E69","syntax-object":"#205EA6","markdown-heading":"#5E409D","markdown-text":"#100F0F","markdown-link":"#205EA6","markdown-link-text":"#24837B","markdown-code":"#24837B","markdown-block-quote":"#AD8301","markdown-emph":"#AD8301","markdown-strong":"#BC5215","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#BC5215","markdown-list-enumeration":"#24837B","markdown-image":"#A02F6F","markdown-image-text":"#24837B","markdown-code-block":"#100F0F"}},wi={palette:{neutral:"#100F0F",ink:"#CECDC3",primary:"#DA702C",accent:"#8B7EC8",success:"#879A39",warning:"#DA702C",error:"#D14D41",info:"#3AA99F",interactive:"#4385BE"},overrides:{"text-weak":"#6F6E69","syntax-comment":"#6F6E69","syntax-keyword":"#879A39","syntax-string":"#3AA99F","syntax-primitive":"#DA702C","syntax-variable":"#4385BE","syntax-property":"#3AA99F","syntax-type":"#D0A215","syntax-constant":"#8B7EC8","syntax-operator":"#B7B5AC","syntax-punctuation":"#B7B5AC","syntax-object":"#4385BE","markdown-heading":"#8B7EC8","markdown-text":"#CECDC3","markdown-link":"#4385BE","markdown-link-text":"#3AA99F","markdown-code":"#3AA99F","markdown-block-quote":"#D0A215","markdown-emph":"#D0A215","markdown-strong":"#DA702C","markdown-horizontal-rule":"#6F6E69","markdown-list-item":"#DA702C","markdown-list-enumeration":"#3AA99F","markdown-image":"#CE5D97","markdown-image-text":"#3AA99F","markdown-code-block":"#CECDC3"}},vi={$schema:mi,name:ki,id:gi,light:bi,dark:wi},xi="https://opencode.ai/desktop-theme.json",Ci="GitHub",Li="github",qi={palette:{neutral:"#ffffff",ink:"#24292f",primary:"#0969da",accent:"#1b7c83",success:"#1a7f37",warning:"#9a6700",error:"#cf222e",info:"#bc4c00"},overrides:{"text-weak":"#57606a","syntax-comment":"#57606a","syntax-keyword":"#cf222e","syntax-string":"#0969da","syntax-primitive":"#8250df","syntax-variable":"#bc4c00","syntax-property":"#1b7c83","syntax-type":"#bc4c00","syntax-constant":"#1b7c83","syntax-operator":"#cf222e","syntax-punctuation":"#24292f","syntax-object":"#bc4c00","markdown-heading":"#0969da","markdown-text":"#24292f","markdown-link":"#0969da","markdown-link-text":"#1b7c83","markdown-code":"#bf3989","markdown-block-quote":"#57606a","markdown-emph":"#9a6700","markdown-strong":"#bc4c00","markdown-horizontal-rule":"#d0d7de","markdown-list-item":"#0969da","markdown-list-enumeration":"#1b7c83","markdown-image":"#0969da","markdown-image-text":"#1b7c83","markdown-code-block":"#24292f"}},Mi={palette:{neutral:"#0d1117",ink:"#c9d1d9",primary:"#58a6ff",accent:"#39c5cf",success:"#3fb950",warning:"#e3b341",error:"#f85149",info:"#d29922"},overrides:{"text-weak":"#8b949e","syntax-comment":"#8b949e","syntax-keyword":"#ff7b72","syntax-string":"#39c5cf","syntax-primitive":"#bc8cff","syntax-variable":"#d29922","syntax-property":"#39c5cf","syntax-type":"#d29922","syntax-constant":"#58a6ff","syntax-operator":"#ff7b72","syntax-punctuation":"#c9d1d9","syntax-object":"#d29922","markdown-heading":"#58a6ff","markdown-text":"#c9d1d9","markdown-link":"#58a6ff","markdown-link-text":"#39c5cf","markdown-code":"#ff7b72","markdown-block-quote":"#8b949e","markdown-emph":"#e3b341","markdown-strong":"#d29922","markdown-horizontal-rule":"#30363d","markdown-list-item":"#58a6ff","markdown-list-enumeration":"#39c5cf","markdown-image":"#58a6ff","markdown-image-text":"#39c5cf","markdown-code-block":"#c9d1d9"}},$i={$schema:xi,name:Ci,id:Li,light:qi,dark:Mi},Hi="https://opencode.ai/desktop-theme.json",Vi="Gruvbox",_i="gruvbox",Ii={palette:{neutral:"#fbf1c7",ink:"#3c3836",primary:"#076678",accent:"#9d0006",success:"#79740e",warning:"#b57614",error:"#9d0006",info:"#8f3f71",diffAdd:"#79740e",diffDelete:"#9d0006"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#9d0006","syntax-primitive":"#076678","syntax-constant":"#8f3f71"}},ji={palette:{neutral:"#282828",ink:"#ebdbb2",primary:"#83a598",accent:"#fb4934",success:"#b8bb26",warning:"#fabd2f",error:"#fb4934",info:"#d3869b",diffAdd:"#b8bb26",diffDelete:"#fb4934"},overrides:{"syntax-comment":"#928374","syntax-keyword":"#fb4934","syntax-primitive":"#83a598","syntax-constant":"#d3869b"}},Ei={$schema:Hi,name:Vi,id:_i,light:Ii,dark:ji},Ai="https://opencode.ai/desktop-theme.json",Di="Kanagawa",Ti="kanagawa",Si={palette:{neutral:"#F2E9DE",ink:"#54433A",primary:"#2D4F67",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#89AF5B",diffDelete:"#D61F1F"},overrides:{"text-weak":"#9E9389","syntax-comment":"#9E9389","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#2D4F67","syntax-variable":"#54433A","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#54433A","syntax-object":"#54433A","markdown-heading":"#957FB8","markdown-text":"#54433A","markdown-link":"#2D4F67","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#9E9389","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#9E9389","markdown-list-item":"#2D4F67","markdown-list-enumeration":"#76946A","markdown-image":"#2D4F67","markdown-image-text":"#76946A","markdown-code-block":"#54433A"}},Pi={palette:{neutral:"#1F1F28",ink:"#DCD7BA",primary:"#7E9CD8",accent:"#D27E99",success:"#98BB6C",warning:"#D7A657",error:"#E82424",info:"#76946A",diffAdd:"#A9D977",diffDelete:"#F24A4A"},overrides:{"text-weak":"#727169","syntax-comment":"#727169","syntax-keyword":"#957FB8","syntax-string":"#98BB6C","syntax-primitive":"#7E9CD8","syntax-variable":"#DCD7BA","syntax-property":"#76946A","syntax-type":"#C38D9D","syntax-constant":"#D7A657","syntax-operator":"#D27E99","syntax-punctuation":"#DCD7BA","syntax-object":"#DCD7BA","markdown-heading":"#957FB8","markdown-text":"#DCD7BA","markdown-link":"#7E9CD8","markdown-link-text":"#76946A","markdown-code":"#98BB6C","markdown-block-quote":"#727169","markdown-emph":"#C38D9D","markdown-strong":"#D7A657","markdown-horizontal-rule":"#727169","markdown-list-item":"#7E9CD8","markdown-list-enumeration":"#76946A","markdown-image":"#7E9CD8","markdown-image-text":"#76946A","markdown-code-block":"#DCD7BA"}},Fi={$schema:Ai,name:Di,id:Ti,light:Si,dark:Pi},Zi="https://opencode.ai/desktop-theme.json",Bi="Lucent Orng",Oi="lucent-orng",Ri={palette:{neutral:"#fff5f0",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zi={palette:{neutral:"#2a1a15",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Ni={$schema:Zi,name:Bi,id:Oi,light:Ri,dark:zi},Ui="https://opencode.ai/desktop-theme.json",Wi="Material",Ji="material",Ki={palette:{neutral:"#fafafa",ink:"#263238",primary:"#6182b8",accent:"#39adb5",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e",interactive:"#39adb5"},overrides:{"text-weak":"#90a4ae","syntax-comment":"#90a4ae","syntax-keyword":"#7c4dff","syntax-string":"#91b859","syntax-primitive":"#6182b8","syntax-variable":"#263238","syntax-property":"#7c4dff","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#39adb5","syntax-punctuation":"#263238","syntax-object":"#263238","markdown-heading":"#6182b8","markdown-text":"#263238","markdown-link":"#39adb5","markdown-link-text":"#7c4dff","markdown-code":"#91b859","markdown-block-quote":"#90a4ae","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#6182b8","markdown-list-enumeration":"#39adb5","markdown-image":"#39adb5","markdown-image-text":"#7c4dff","markdown-code-block":"#263238"}},Gi={palette:{neutral:"#263238",ink:"#eeffff",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#ffcb6b",interactive:"#89ddff"},overrides:{"text-weak":"#546e7a","syntax-comment":"#546e7a","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#eeffff","syntax-property":"#c792ea","syntax-type":"#ffcb6b","syntax-constant":"#ffcb6b","syntax-operator":"#89ddff","syntax-punctuation":"#eeffff","syntax-object":"#eeffff","markdown-heading":"#82aaff","markdown-text":"#eeffff","markdown-link":"#89ddff","markdown-link-text":"#c792ea","markdown-code":"#c3e88d","markdown-block-quote":"#546e7a","markdown-emph":"#ffcb6b","markdown-strong":"#ffcb6b","markdown-horizontal-rule":"#37474f","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#89ddff","markdown-image-text":"#c792ea","markdown-code-block":"#eeffff"}},Yi={$schema:Ui,name:Wi,id:Ji,light:Ki,dark:Gi},Xi="https://opencode.ai/desktop-theme.json",Qi="Matrix",ec="matrix",tc={palette:{neutral:"#eef3ea",ink:"#203022",primary:"#1cc24b",accent:"#c770ff",success:"#1cc24b",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#5dac7e",diffDelete:"#d53a3a"},overrides:{"text-weak":"#748476","syntax-comment":"#748476","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#203022","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#203022","syntax-object":"#203022","markdown-heading":"#24f6d9","markdown-text":"#203022","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#748476","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#748476","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#203022"},v2Overrides:{"v2-text-text-base":"#353535","v2-text-text-muted":"#748476","v2-text-text-faint":"#748476","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-600)","v2-text-text-accent-hover":"var(--v2-green-700)","v2-icon-icon-accent":"var(--v2-green-600)","v2-icon-icon-accent-hover":"var(--v2-green-700)","v2-border-border-focus":"var(--v2-green-500)"}},rc={palette:{neutral:"#0a0e0a",ink:"#62ff94",primary:"#2eff6a",accent:"#c770ff",success:"#62ff94",warning:"#e6ff57",error:"#ff4b4b",info:"#30b3ff",interactive:"#30b3ff",diffAdd:"#77ffaf",diffDelete:"#ff7171"},overrides:{"text-weak":"#8ca391","syntax-comment":"#8ca391","syntax-keyword":"#c770ff","syntax-string":"#1cc24b","syntax-primitive":"#30b3ff","syntax-variable":"#62ff94","syntax-property":"#24f6d9","syntax-type":"#e6ff57","syntax-constant":"#ffa83d","syntax-operator":"#24f6d9","syntax-punctuation":"#62ff94","syntax-object":"#62ff94","markdown-heading":"#00efff","markdown-text":"#62ff94","markdown-link":"#30b3ff","markdown-link-text":"#24f6d9","markdown-code":"#1cc24b","markdown-block-quote":"#8ca391","markdown-emph":"#ffa83d","markdown-strong":"#e6ff57","markdown-horizontal-rule":"#8ca391","markdown-list-item":"#30b3ff","markdown-list-enumeration":"#24f6d9","markdown-image":"#30b3ff","markdown-image-text":"#24f6d9","markdown-code-block":"#62ff94"},v2Overrides:{"v2-text-text-base":"#ececec","v2-text-text-muted":"#8ca391","v2-text-text-faint":"#8ca391","v2-background-bg-accent":"var(--v2-green-600)","v2-text-text-accent":"var(--v2-green-400)","v2-text-text-accent-hover":"var(--v2-green-300)","v2-icon-icon-accent":"var(--v2-green-400)","v2-icon-icon-accent-hover":"var(--v2-green-300)","v2-border-border-focus":"var(--v2-green-500)"}},nc={$schema:Xi,name:Qi,id:ec,light:tc,dark:rc},ac="https://opencode.ai/desktop-theme.json",sc="Mercury",oc="mercury",ic={palette:{neutral:"#ffffff",ink:"#363644",primary:"#5266eb",accent:"#8da4f5",success:"#036e43",warning:"#a44200",error:"#b0175f",info:"#007f95",interactive:"#465bd1"},overrides:{"text-weak":"#70707d","syntax-comment":"#70707d","syntax-keyword":"#465bd1","syntax-string":"#036e43","syntax-primitive":"#5266eb","syntax-variable":"#007f95","syntax-property":"#5266eb","syntax-type":"#007f95","syntax-constant":"#a44200","syntax-operator":"#465bd1","syntax-punctuation":"#363644","syntax-object":"#007f95","markdown-heading":"#1e1e2a","markdown-text":"#363644","markdown-link":"#465bd1","markdown-link-text":"#5266eb","markdown-code":"#036e43","markdown-block-quote":"#70707d","markdown-emph":"#a44200","markdown-strong":"#1e1e2a","markdown-horizontal-rule":"#7073931a","markdown-list-item":"#1e1e2a","markdown-list-enumeration":"#5266eb","markdown-image":"#465bd1","markdown-image-text":"#5266eb","markdown-code-block":"#363644"}},cc={palette:{neutral:"#171721",ink:"#dddde5",primary:"#8da4f5",accent:"#8da4f5",success:"#77c599",warning:"#fc9b6f",error:"#fc92b4",info:"#77becf"},overrides:{"text-weak":"#9d9da8","syntax-comment":"#9d9da8","syntax-keyword":"#8da4f5","syntax-string":"#77c599","syntax-primitive":"#8da4f5","syntax-variable":"#77becf","syntax-property":"#a7b6f8","syntax-type":"#77becf","syntax-constant":"#fc9b6f","syntax-operator":"#8da4f5","syntax-punctuation":"#dddde5","syntax-object":"#77becf","markdown-heading":"#ffffff","markdown-text":"#dddde5","markdown-link":"#8da4f5","markdown-link-text":"#a7b6f8","markdown-code":"#77c599","markdown-block-quote":"#9d9da8","markdown-emph":"#fc9b6f","markdown-strong":"#f4f5f9","markdown-horizontal-rule":"#b4b7c81f","markdown-list-item":"#ffffff","markdown-list-enumeration":"#8da4f5","markdown-image":"#8da4f5","markdown-image-text":"#a7b6f8","markdown-code-block":"#dddde5"}},lc={$schema:ac,name:sc,id:oc,light:ic,dark:cc},dc="https://opencode.ai/desktop-theme.json",fc="Monokai",uc="monokai",yc={palette:{neutral:"#fdf8ec",ink:"#292318",primary:"#bf7bff",accent:"#d9487c",success:"#4fb54b",warning:"#f1a948",error:"#e54b4b",info:"#2d9ad7",diffAdd:"#bfe7a3",diffDelete:"#f6a3ae"},overrides:{"syntax-comment":"#8a816f","syntax-keyword":"#d9487c","syntax-string":"#8a6500","syntax-primitive":"#3c8d2f","syntax-property":"#1f88c8","syntax-constant":"#9b5fe0"}},pc={palette:{neutral:"#272822",ink:"#f8f8f2",primary:"#ae81ff",accent:"#f92672",success:"#a6e22e",warning:"#fd971f",error:"#f92672",info:"#66d9ef",diffAdd:"#4d7f2a",diffDelete:"#f4477c"},overrides:{"syntax-comment":"#75715e","syntax-keyword":"#f92672","syntax-string":"#e6db74","syntax-primitive":"#a6e22e","syntax-property":"#66d9ef","syntax-constant":"#ae81ff"}},hc={$schema:dc,name:fc,id:uc,light:yc,dark:pc},mc="https://opencode.ai/desktop-theme.json",kc="Night Owl",gc="nightowl",bc={palette:{neutral:"#f0f0f0",ink:"#403f53",primary:"#4876d6",accent:"#aa0982",success:"#2aa298",warning:"#c96765",error:"#de3d3b",info:"#4876d6",diffAdd:"#2aa298",diffDelete:"#de3d3b"},overrides:{"syntax-comment":"#7a8181","syntax-keyword":"#994cc3","syntax-primitive":"#4876d6","syntax-constant":"#c96765"}},wc={palette:{neutral:"#011627",ink:"#d6deeb",primary:"#82aaff",accent:"#f78c6c",success:"#c5e478",warning:"#ecc48d",error:"#ef5350",info:"#82aaff",diffAdd:"#c5e478",diffDelete:"#ef5350"},overrides:{"syntax-comment":"#637777","syntax-keyword":"#c792ea","syntax-string":"#ecc48d","syntax-primitive":"#82aaff","syntax-constant":"#f78c6c"}},vc={$schema:mc,name:kc,id:gc,light:bc,dark:wc},xc="https://opencode.ai/desktop-theme.json",Cc="Nord",Lc="nord",qc={palette:{neutral:"#eceff4",ink:"#2e3440",primary:"#5e81ac",accent:"#bf616a",success:"#8fbcbb",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#a3be8c",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#6b7282","syntax-keyword":"#5e81ac","syntax-string":"#6f8758","syntax-primitive":"#5e81ac","syntax-constant":"#8d6886"}},Mc={palette:{neutral:"#2e3440",ink:"#e5e9f0",primary:"#88c0d0",accent:"#d57780",success:"#a3be8c",warning:"#d08770",error:"#bf616a",info:"#81a1c1",diffAdd:"#81a1c1",diffDelete:"#bf616a"},overrides:{"syntax-comment":"#616e88","syntax-keyword":"#81a1c1","syntax-primitive":"#88c0d0","syntax-constant":"#b48ead"}},$c={$schema:xc,name:Cc,id:Lc,light:qc,dark:Mc},Hc="https://opencode.ai/desktop-theme.json",Vc="One Dark",_c="one-dark",Ic={palette:{neutral:"#fafafa",ink:"#383a42",primary:"#4078f2",accent:"#0184bc",success:"#50a14f",warning:"#c18401",error:"#e45649",info:"#986801",diffAdd:"#489447",diffDelete:"#d65145"},overrides:{"text-weak":"#a0a1a7","syntax-comment":"#a0a1a7","syntax-keyword":"#a626a4","syntax-string":"#50a14f","syntax-primitive":"#4078f2","syntax-variable":"#e45649","syntax-property":"#0184bc","syntax-type":"#c18401","syntax-constant":"#986801","syntax-operator":"#0184bc","syntax-punctuation":"#383a42","syntax-object":"#e45649","markdown-heading":"#a626a4","markdown-text":"#383a42","markdown-link":"#4078f2","markdown-link-text":"#0184bc","markdown-code":"#50a14f","markdown-block-quote":"#a0a1a7","markdown-emph":"#c18401","markdown-strong":"#986801","markdown-horizontal-rule":"#a0a1a7","markdown-list-item":"#4078f2","markdown-list-enumeration":"#0184bc","markdown-image":"#4078f2","markdown-image-text":"#0184bc","markdown-code-block":"#383a42"}},jc={palette:{neutral:"#282c34",ink:"#abb2bf",primary:"#61afef",accent:"#56b6c2",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#d19a66",diffAdd:"#aad482",diffDelete:"#e8828b"},overrides:{"text-weak":"#5c6370","syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-string":"#98c379","syntax-primitive":"#61afef","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#d19a66","syntax-operator":"#56b6c2","syntax-punctuation":"#abb2bf","syntax-object":"#e06c75","markdown-heading":"#c678dd","markdown-text":"#abb2bf","markdown-link":"#61afef","markdown-link-text":"#56b6c2","markdown-code":"#98c379","markdown-block-quote":"#5c6370","markdown-emph":"#e5c07b","markdown-strong":"#d19a66","markdown-horizontal-rule":"#5c6370","markdown-list-item":"#61afef","markdown-list-enumeration":"#56b6c2","markdown-image":"#61afef","markdown-image-text":"#56b6c2","markdown-code-block":"#abb2bf"}},Ec={$schema:Hc,name:Vc,id:_c,light:Ic,dark:jc},Ac="https://opencode.ai/desktop-theme.json",Dc="One Dark Pro",Tc="onedarkpro",Sc={palette:{neutral:"#f5f6f8",ink:"#2b303b",primary:"#528bff",accent:"#d85462",success:"#4fa66d",warning:"#d19a66",error:"#e06c75",info:"#61afef",diffAdd:"#c2ebcf",diffDelete:"#f7c1c5"},overrides:{"syntax-comment":"#6a717d","syntax-keyword":"#a626a4","syntax-primitive":"#4078f2","syntax-constant":"#986801"}},Pc={palette:{neutral:"#1e222a",ink:"#abb2bf",primary:"#61afef",accent:"#e06c75",success:"#98c379",warning:"#e5c07b",error:"#e06c75",info:"#56b6c2",diffAdd:"#4b815a",diffDelete:"#b2555f"},overrides:{"syntax-comment":"#5c6370","syntax-keyword":"#c678dd","syntax-primitive":"#61afef","syntax-constant":"#d19a66"}},Fc={$schema:Ac,name:Dc,id:Tc,light:Sc,dark:Pc},Zc="https://opencode.ai/desktop-theme.json",Bc="OpenCode",Oc="opencode",Rc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#3b7dd8",accent:"#d68c27",success:"#3d9a57",warning:"#d68c27",error:"#d1383d",info:"#318795",diffAdd:"#4db380",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#d68c27","syntax-string":"#3d9a57","syntax-primitive":"#3b7dd8","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#d68c27","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#d68c27","markdown-text":"#1a1a1a","markdown-link":"#3b7dd8","markdown-link-text":"#318795","markdown-code":"#3d9a57","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#d68c27","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#3b7dd8","markdown-list-enumeration":"#318795","markdown-image":"#3b7dd8","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},zc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#fab283",accent:"#9d7cd8",success:"#7fd88f",warning:"#f5a742",error:"#e06c75",info:"#56b6c2",diffAdd:"#b8db87",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#9d7cd8","syntax-string":"#7fd88f","syntax-primitive":"#fab283","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#f5a742","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#9d7cd8","markdown-text":"#eeeeee","markdown-link":"#fab283","markdown-link-text":"#56b6c2","markdown-code":"#7fd88f","markdown-block-quote":"#e5c07b","markdown-emph":"#e5c07b","markdown-strong":"#f5a742","markdown-horizontal-rule":"#808080","markdown-list-item":"#fab283","markdown-list-enumeration":"#56b6c2","markdown-image":"#fab283","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Nc={$schema:Zc,name:Bc,id:Oc,light:Rc,dark:zc},Uc="https://opencode.ai/desktop-theme.json",Wc="Orng",Jc="orng",Kc={palette:{neutral:"#ffffff",ink:"#1a1a1a",primary:"#EC5B2B",accent:"#c94d24",success:"#0062d1",warning:"#EC5B2B",error:"#d1383d",info:"#318795",diffDelete:"#f52a65"},overrides:{"text-weak":"#8a8a8a","syntax-comment":"#8a8a8a","syntax-keyword":"#EC5B2B","syntax-string":"#0062d1","syntax-primitive":"#c94d24","syntax-variable":"#d1383d","syntax-property":"#318795","syntax-type":"#b0851f","syntax-constant":"#EC5B2B","syntax-operator":"#318795","syntax-punctuation":"#1a1a1a","syntax-object":"#d1383d","markdown-heading":"#EC5B2B","markdown-text":"#1a1a1a","markdown-link":"#EC5B2B","markdown-link-text":"#318795","markdown-code":"#0062d1","markdown-block-quote":"#b0851f","markdown-emph":"#b0851f","markdown-strong":"#EC5B2B","markdown-horizontal-rule":"#8a8a8a","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#318795","markdown-image":"#EC5B2B","markdown-image-text":"#318795","markdown-code-block":"#1a1a1a"}},Gc={palette:{neutral:"#0a0a0a",ink:"#eeeeee",primary:"#EC5B2B",accent:"#FFF7F1",success:"#6ba1e6",warning:"#EC5B2B",error:"#e06c75",info:"#56b6c2",diffDelete:"#e26a75"},overrides:{"text-weak":"#808080","syntax-comment":"#808080","syntax-keyword":"#EC5B2B","syntax-string":"#6ba1e6","syntax-primitive":"#EE7948","syntax-variable":"#e06c75","syntax-property":"#56b6c2","syntax-type":"#e5c07b","syntax-constant":"#FFF7F1","syntax-operator":"#56b6c2","syntax-punctuation":"#eeeeee","syntax-object":"#e06c75","markdown-heading":"#EC5B2B","markdown-text":"#eeeeee","markdown-link":"#EC5B2B","markdown-link-text":"#56b6c2","markdown-code":"#6ba1e6","markdown-block-quote":"#FFF7F1","markdown-emph":"#e5c07b","markdown-strong":"#EE7948","markdown-horizontal-rule":"#808080","markdown-list-item":"#EC5B2B","markdown-list-enumeration":"#56b6c2","markdown-image":"#EC5B2B","markdown-image-text":"#56b6c2","markdown-code-block":"#eeeeee"}},Yc={$schema:Uc,name:Wc,id:Jc,light:Kc,dark:Gc},Xc="https://opencode.ai/desktop-theme.json",Qc="Osaka Jade",el="osaka-jade",tl={palette:{neutral:"#F6F5DD",ink:"#111c18",primary:"#1faa90",accent:"#3d7a52",success:"#3d7a52",warning:"#b5a020",error:"#c7392d",info:"#1faa90"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#1faa90","syntax-string":"#3d7a52","syntax-primitive":"#3d7560","syntax-variable":"#111c18","syntax-property":"#3d7a52","syntax-type":"#3d7a52","syntax-constant":"#a8527a","syntax-operator":"#b5a020","syntax-punctuation":"#111c18","syntax-object":"#111c18","markdown-heading":"#1faa90","markdown-text":"#111c18","markdown-link":"#1faa90","markdown-link-text":"#3d7a52","markdown-code":"#3d7a52","markdown-block-quote":"#53685B","markdown-emph":"#a8527a","markdown-strong":"#111c18","markdown-horizontal-rule":"#53685B","markdown-list-item":"#1faa90","markdown-list-enumeration":"#1faa90","markdown-image":"#1faa90","markdown-image-text":"#3d7a52","markdown-code-block":"#111c18"}},rl={palette:{neutral:"#111c18",ink:"#C1C497",primary:"#2DD5B7",accent:"#549e6a",success:"#549e6a",warning:"#E5C736",error:"#FF5345",info:"#2DD5B7",interactive:"#8CD3CB",diffAdd:"#63b07a",diffDelete:"#db9f9c"},overrides:{"text-weak":"#53685B","syntax-comment":"#53685B","syntax-keyword":"#2DD5B7","syntax-string":"#63b07a","syntax-primitive":"#509475","syntax-variable":"#C1C497","syntax-property":"#549e6a","syntax-type":"#549e6a","syntax-constant":"#D2689C","syntax-operator":"#459451","syntax-punctuation":"#C1C497","syntax-object":"#C1C497","markdown-heading":"#2DD5B7","markdown-text":"#C1C497","markdown-link":"#8CD3CB","markdown-link-text":"#549e6a","markdown-code":"#63b07a","markdown-block-quote":"#53685B","markdown-emph":"#D2689C","markdown-strong":"#C1C497","markdown-horizontal-rule":"#53685B","markdown-list-item":"#2DD5B7","markdown-list-enumeration":"#8CD3CB","markdown-image":"#8CD3CB","markdown-image-text":"#549e6a","markdown-code-block":"#C1C497"}},nl={$schema:Xc,name:Qc,id:el,light:tl,dark:rl},al="https://opencode.ai/desktop-theme.json",sl="Palenight",ol="palenight",il={palette:{neutral:"#fafafa",ink:"#292d3e",primary:"#4976eb",accent:"#00acc1",success:"#91b859",warning:"#ffb300",error:"#e53935",info:"#f4511e"},overrides:{"text-weak":"#8796b0","syntax-comment":"#8796b0","syntax-keyword":"#a854f2","syntax-string":"#91b859","syntax-primitive":"#4976eb","syntax-variable":"#292d3e","syntax-property":"#00acc1","syntax-type":"#ffb300","syntax-constant":"#f4511e","syntax-operator":"#00acc1","syntax-punctuation":"#292d3e","syntax-object":"#292d3e","markdown-heading":"#a854f2","markdown-text":"#292d3e","markdown-link":"#4976eb","markdown-link-text":"#00acc1","markdown-code":"#91b859","markdown-block-quote":"#8796b0","markdown-emph":"#ffb300","markdown-strong":"#f4511e","markdown-horizontal-rule":"#8796b0","markdown-list-item":"#4976eb","markdown-list-enumeration":"#00acc1","markdown-image":"#4976eb","markdown-image-text":"#00acc1","markdown-code-block":"#292d3e"}},cl={palette:{neutral:"#292d3e",ink:"#a6accd",primary:"#82aaff",accent:"#89ddff",success:"#c3e88d",warning:"#ffcb6b",error:"#f07178",info:"#f78c6c"},overrides:{"text-weak":"#676e95","syntax-comment":"#676e95","syntax-keyword":"#c792ea","syntax-string":"#c3e88d","syntax-primitive":"#82aaff","syntax-variable":"#a6accd","syntax-property":"#89ddff","syntax-type":"#ffcb6b","syntax-constant":"#f78c6c","syntax-operator":"#89ddff","syntax-punctuation":"#a6accd","syntax-object":"#a6accd","markdown-heading":"#c792ea","markdown-text":"#a6accd","markdown-link":"#82aaff","markdown-link-text":"#89ddff","markdown-code":"#c3e88d","markdown-block-quote":"#676e95","markdown-emph":"#ffcb6b","markdown-strong":"#f78c6c","markdown-horizontal-rule":"#676e95","markdown-list-item":"#82aaff","markdown-list-enumeration":"#89ddff","markdown-image":"#82aaff","markdown-image-text":"#89ddff","markdown-code-block":"#a6accd"}},ll={$schema:al,name:sl,id:ol,light:il,dark:cl},dl="https://opencode.ai/desktop-theme.json",fl="Rose Pine",ul="rosepine",yl={palette:{neutral:"#faf4ed",ink:"#575279",primary:"#31748f",accent:"#d7827e",success:"#286983",warning:"#ea9d34",error:"#b4637a",info:"#56949f"},overrides:{"text-weak":"#9893a5","syntax-comment":"#9893a5","syntax-keyword":"#286983","syntax-string":"#ea9d34","syntax-primitive":"#d7827e","syntax-variable":"#575279","syntax-property":"#d7827e","syntax-type":"#56949f","syntax-constant":"#907aa9","syntax-operator":"#797593","syntax-punctuation":"#797593","syntax-object":"#575279","markdown-heading":"#907aa9","markdown-text":"#575279","markdown-link":"#31748f","markdown-link-text":"#d7827e","markdown-code":"#286983","markdown-block-quote":"#9893a5","markdown-emph":"#ea9d34","markdown-strong":"#b4637a","markdown-horizontal-rule":"#dfdad9","markdown-list-item":"#31748f","markdown-list-enumeration":"#d7827e","markdown-image":"#31748f","markdown-image-text":"#d7827e","markdown-code-block":"#575279"}},pl={palette:{neutral:"#191724",ink:"#e0def4",primary:"#9ccfd8",accent:"#ebbcba",success:"#31748f",warning:"#f6c177",error:"#eb6f92",info:"#9ccfd8"},overrides:{"text-weak":"#6e6a86","syntax-comment":"#6e6a86","syntax-keyword":"#31748f","syntax-string":"#f6c177","syntax-primitive":"#ebbcba","syntax-variable":"#e0def4","syntax-property":"#ebbcba","syntax-type":"#9ccfd8","syntax-constant":"#c4a7e7","syntax-operator":"#908caa","syntax-punctuation":"#908caa","syntax-object":"#e0def4","markdown-heading":"#c4a7e7","markdown-text":"#e0def4","markdown-link":"#9ccfd8","markdown-link-text":"#ebbcba","markdown-code":"#31748f","markdown-block-quote":"#6e6a86","markdown-emph":"#f6c177","markdown-strong":"#eb6f92","markdown-horizontal-rule":"#403d52","markdown-list-item":"#9ccfd8","markdown-list-enumeration":"#ebbcba","markdown-image":"#9ccfd8","markdown-image-text":"#ebbcba","markdown-code-block":"#e0def4"}},hl={$schema:dl,name:fl,id:ul,light:yl,dark:pl},ml="https://opencode.ai/desktop-theme.json",kl="Shades of Purple",gl="shadesofpurple",bl={palette:{neutral:"#f7ebff",ink:"#3b2c59",primary:"#7a5af8",accent:"#ff6bd5",success:"#3dd598",warning:"#f7c948",error:"#ff6bd5",info:"#62d4ff",diffAdd:"#c8f8da",diffDelete:"#ffc3ef"},overrides:{"syntax-comment":"#8e4be3","syntax-keyword":"#c45f00","syntax-string":"#2f8b32","syntax-primitive":"#a13bd6","syntax-property":"#008fb8","syntax-type":"#9d7a00","syntax-constant":"#e04d7a"}},wl={palette:{neutral:"#1a102b",ink:"#f5f0ff",primary:"#c792ff",accent:"#ff7ac6",success:"#7be0b0",warning:"#ffd580",error:"#ff7ac6",info:"#7dd4ff",diffAdd:"#53c39f",diffDelete:"#d85aa0"},overrides:{"syntax-comment":"#b362ff","syntax-keyword":"#ff9d00","syntax-string":"#a5ff90","syntax-primitive":"#fb94ff","syntax-property":"#9effff","syntax-type":"#fad000","syntax-constant":"#ff628c"}},vl={$schema:ml,name:kl,id:gl,light:bl,dark:wl},xl="https://opencode.ai/desktop-theme.json",Cl="Solarized",Ll="solarized",ql={palette:{neutral:"#fdf6e3",ink:"#586e75",primary:"#268bd2",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#c6dc7a",diffDelete:"#f2a1a1"},overrides:{"syntax-comment":"#657b83","syntax-keyword":"#728600","syntax-string":"#1f8f88","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},Ml={palette:{neutral:"#002b36",ink:"#93a1a1",primary:"#6c71c4",accent:"#d33682",success:"#859900",warning:"#b58900",error:"#dc322f",info:"#2aa198",diffAdd:"#4c7654",diffDelete:"#c34b4b"},overrides:{"syntax-comment":"#586e75","syntax-keyword":"#859900","syntax-string":"#2aa198","syntax-primitive":"#268bd2","syntax-property":"#268bd2","syntax-constant":"#d33682"}},$l={$schema:xl,name:Cl,id:Ll,light:ql,dark:Ml},Hl="https://opencode.ai/desktop-theme.json",Vl="Synthwave '84",_l="synthwave84",Il={palette:{neutral:"#fafafa",ink:"#262335",primary:"#00bcd4",accent:"#9c27b0",success:"#4caf50",warning:"#ff9800",error:"#f44336",info:"#ff5722"},overrides:{"text-weak":"#5c5c8a","syntax-comment":"#5c5c8a","syntax-keyword":"#e91e63","syntax-string":"#ff9800","syntax-primitive":"#ff5722","syntax-variable":"#262335","syntax-property":"#9c27b0","syntax-type":"#00bcd4","syntax-constant":"#9c27b0","syntax-operator":"#e91e63","syntax-punctuation":"#262335","syntax-object":"#262335","markdown-heading":"#e91e63","markdown-text":"#262335","markdown-link":"#00bcd4","markdown-link-text":"#9c27b0","markdown-code":"#4caf50","markdown-block-quote":"#5c5c8a","markdown-emph":"#ff9800","markdown-strong":"#ff5722","markdown-horizontal-rule":"#e0e0e0","markdown-list-item":"#00bcd4","markdown-list-enumeration":"#9c27b0","markdown-image":"#00bcd4","markdown-image-text":"#9c27b0","markdown-code-block":"#262335"}},jl={palette:{neutral:"#262335",ink:"#ffffff",primary:"#36f9f6",accent:"#b084eb",success:"#72f1b8",warning:"#fede5d",error:"#fe4450",info:"#ff8b39",diffAdd:"#97f1d8",diffDelete:"#ff5e5b"},overrides:{"text-weak":"#848bbd","syntax-comment":"#848bbd","syntax-keyword":"#ff7edb","syntax-string":"#fede5d","syntax-primitive":"#ff8b39","syntax-variable":"#ffffff","syntax-property":"#b084eb","syntax-type":"#36f9f6","syntax-constant":"#b084eb","syntax-operator":"#ff7edb","syntax-punctuation":"#ffffff","syntax-object":"#ffffff","markdown-heading":"#ff7edb","markdown-text":"#ffffff","markdown-link":"#36f9f6","markdown-link-text":"#b084eb","markdown-code":"#72f1b8","markdown-block-quote":"#848bbd","markdown-emph":"#fede5d","markdown-strong":"#ff8b39","markdown-horizontal-rule":"#495495","markdown-list-item":"#36f9f6","markdown-list-enumeration":"#b084eb","markdown-image":"#36f9f6","markdown-image-text":"#b084eb","markdown-code-block":"#ffffff"}},El={$schema:Hl,name:Vl,id:_l,light:Il,dark:jl},Al="https://opencode.ai/desktop-theme.json",Dl="Tokyonight",Tl="tokyonight",Sl={palette:{neutral:"#e1e2e7",ink:"#273153",primary:"#2e7de9",accent:"#b15c00",success:"#587539",warning:"#8c6c3e",error:"#c94060",info:"#007197",diffAdd:"#4f8f7b",diffDelete:"#d05f7c"},overrides:{"syntax-comment":"#6b6f7a","syntax-keyword":"#9854f1","syntax-primitive":"#1f6fd4","syntax-property":"#007197","syntax-constant":"#b15c00"}},Pl={palette:{neutral:"#1a1b26",ink:"#c0caf5",primary:"#7aa2f7",accent:"#ff9e64",success:"#9ece6a",warning:"#e0af68",error:"#f7768e",info:"#7dcfff",diffAdd:"#41a6b5",diffDelete:"#c34043"},overrides:{"syntax-comment":"#565f89","syntax-keyword":"#bb9af7","syntax-primitive":"#7aa2f7","syntax-property":"#7dcfff","syntax-constant":"#ff9e64"}},Fl={$schema:Al,name:Dl,id:Tl,light:Sl,dark:Pl},Zl="https://opencode.ai/desktop-theme.json",Bl="Vercel",Ol="vercel",Rl={palette:{neutral:"#FFFFFF",ink:"#171717",primary:"#0070F3",accent:"#8E4EC6",success:"#388E3C",warning:"#FF9500",error:"#DC3545",info:"#0070F3",diffAdd:"#46A758",diffDelete:"#E5484D"},overrides:{"text-weak":"#666666","syntax-comment":"#888888","syntax-keyword":"#E93D82","syntax-string":"#46A758","syntax-primitive":"#8E4EC6","syntax-variable":"#0070F3","syntax-property":"#12A594","syntax-type":"#12A594","syntax-constant":"#FFB224","syntax-operator":"#E93D82","syntax-punctuation":"#171717","syntax-object":"#0070F3","markdown-heading":"#8E4EC6","markdown-text":"#171717","markdown-link":"#0070F3","markdown-link-text":"#12A594","markdown-code":"#46A758","markdown-block-quote":"#666666","markdown-emph":"#FFB224","markdown-strong":"#E93D82","markdown-horizontal-rule":"#999999","markdown-list-item":"#171717","markdown-list-enumeration":"#0070F3","markdown-image":"#12A594","markdown-image-text":"#12A594","markdown-code-block":"#171717"}},zl={palette:{neutral:"#000000",ink:"#EDEDED",primary:"#0070F3",accent:"#8E4EC6",success:"#46A758",warning:"#FFB224",error:"#E5484D",info:"#52A8FF",interactive:"#52A8FF",diffAdd:"#63C46D",diffDelete:"#FF6166"},overrides:{"text-weak":"#878787","syntax-comment":"#878787","syntax-keyword":"#F75590","syntax-string":"#63C46D","syntax-primitive":"#BF7AF0","syntax-variable":"#52A8FF","syntax-property":"#0AC7AC","syntax-type":"#0AC7AC","syntax-constant":"#F2A700","syntax-operator":"#F75590","syntax-punctuation":"#EDEDED","syntax-object":"#52A8FF","markdown-heading":"#BF7AF0","markdown-text":"#EDEDED","markdown-link":"#52A8FF","markdown-link-text":"#0AC7AC","markdown-code":"#63C46D","markdown-block-quote":"#878787","markdown-emph":"#F2A700","markdown-strong":"#F75590","markdown-horizontal-rule":"#454545","markdown-list-item":"#EDEDED","markdown-list-enumeration":"#52A8FF","markdown-image":"#0AC7AC","markdown-image-text":"#50E3C2","markdown-code-block":"#EDEDED"}},Nl={$schema:Zl,name:Bl,id:Ol,light:Rl,dark:zl},Ul="https://opencode.ai/desktop-theme.json",Wl="Vesper",Jl="vesper",Kl={palette:{neutral:"#F0F0F0",ink:"#101010",primary:"#FFC799",accent:"#B30000",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#7a7a7a","syntax-keyword":"#6e6e6e","syntax-string":"#117e69","syntax-primitive":"#8d541c","syntax-property":"#101010","syntax-type":"#8d541c","syntax-constant":"#8d541c"}},Gl={palette:{neutral:"#101010",ink:"#FFF",primary:"#FFC799",accent:"#FF8080",success:"#99FFE4",warning:"#FFC799",error:"#FF8080",info:"#FFC799",diffAdd:"#99FFE4",diffDelete:"#FF8080"},overrides:{"syntax-comment":"#8b8b8b","syntax-keyword":"#a0a0a0","syntax-string":"#99ffe4","syntax-primitive":"#ffc799","syntax-property":"#ffffff","syntax-type":"#ffc799","syntax-constant":"#ffc799"}},Yl={$schema:Ul,name:Wl,id:Jl,light:Kl,dark:Gl},Xl="https://opencode.ai/desktop-theme.json",Ql="Zenburn",ed="zenburn",td={palette:{neutral:"#ffffef",ink:"#3f3f3f",primary:"#5f7f8f",accent:"#5f8f8f",success:"#5f8f5f",warning:"#8f8f5f",error:"#8f5f5f",info:"#8f7f5f"},overrides:{"text-weak":"#6f6f6f","syntax-comment":"#5f7f5f","syntax-keyword":"#8f8f5f","syntax-string":"#8f5f5f","syntax-primitive":"#5f7f8f","syntax-variable":"#3f3f3f","syntax-property":"#5f8f8f","syntax-type":"#5f8f8f","syntax-constant":"#5f8f5f","syntax-operator":"#8f8f5f","syntax-punctuation":"#3f3f3f","syntax-object":"#3f3f3f","markdown-heading":"#8f8f5f","markdown-text":"#3f3f3f","markdown-link":"#5f7f8f","markdown-link-text":"#5f8f8f","markdown-code":"#5f8f5f","markdown-block-quote":"#6f6f6f","markdown-emph":"#8f8f5f","markdown-strong":"#8f7f5f","markdown-horizontal-rule":"#6f6f6f","markdown-list-item":"#5f7f8f","markdown-list-enumeration":"#5f8f8f","markdown-image":"#5f7f8f","markdown-image-text":"#5f8f8f","markdown-code-block":"#3f3f3f"}},rd={palette:{neutral:"#3f3f3f",ink:"#dcdccc",primary:"#8cd0d3",accent:"#93e0e3",success:"#7f9f7f",warning:"#f0dfaf",error:"#cc9393",info:"#dfaf8f",diffAdd:"#8fb28f",diffDelete:"#dca3a3"},overrides:{"text-weak":"#9f9f9f","syntax-comment":"#7f9f7f","syntax-keyword":"#f0dfaf","syntax-string":"#cc9393","syntax-primitive":"#8cd0d3","syntax-variable":"#dcdccc","syntax-property":"#93e0e3","syntax-type":"#93e0e3","syntax-constant":"#8fb28f","syntax-operator":"#f0dfaf","syntax-punctuation":"#dcdccc","syntax-object":"#dcdccc","markdown-heading":"#f0dfaf","markdown-text":"#dcdccc","markdown-link":"#8cd0d3","markdown-link-text":"#93e0e3","markdown-code":"#7f9f7f","markdown-block-quote":"#9f9f9f","markdown-emph":"#e0cf9f","markdown-strong":"#dfaf8f","markdown-horizontal-rule":"#9f9f9f","markdown-list-item":"#8cd0d3","markdown-list-enumeration":"#93e0e3","markdown-image":"#8cd0d3","markdown-image-text":"#93e0e3","markdown-code-block":"#dcdccc"}},nd={$schema:Xl,name:Ql,id:ed,light:td,dark:rd},ad=ro,sd=co,od=ho,id=vo,cd=$o,ld=Eo,dd=Fo,fd=No,ud=Yo,yd=ni,pd=li,hd=hi,md=vi,kd=$i,gd=Ei,bd=Fi,wd=Ni,vd=Yi,xd=nc,Cd=lc,Ld=hc,qd=vc,Md=$c,$d=Ec,Hd=Fc,Vd=Nc,_d=Yc,Id=nl,jd=ll,Ed=hl,Ad=vl,Dd=$l,Td=El,Sd=Fl,Pd=Nl,Fd=Yl,Zd=nd,Bd={"oc-2":ad,amoled:sd,aura:od,ayu:id,carbonfox:cd,catppuccin:ld,"catppuccin-frappe":dd,"catppuccin-macchiato":fd,cobalt2:ud,cursor:yd,dracula:pd,everforest:hd,flexoki:md,github:kd,gruvbox:gd,kanagawa:bd,"lucent-orng":wd,material:vd,matrix:xd,mercury:Cd,monokai:Ld,nightowl:qd,nord:Md,"one-dark":$d,onedarkpro:Hd,opencode:Vd,orng:_d,"osaka-jade":Id,palenight:jd,rosepine:Ed,shadesofpurple:Ad,solarized:Dd,synthwave84:Td,tokyonight:Sd,vercel:Pd,vesper:Fd,zenburn:Zd},Od="https://opencode.ai/desktop-theme.json",Rd="Kilo",zd="kilo",Nd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-interactive-weak":"#f0f0f0","surface-success-base":"#dff6dd","surface-success-weak":"#edfaec","surface-success-strong":"#388a34","surface-warning-base":"#fff4ce","surface-warning-weak":"#fffae5","surface-warning-strong":"#bf8803","surface-critical-base":"#fde7e9","surface-critical-weak":"#fef1f2","surface-critical-strong":"#e51400","surface-info-base":"#e7f3ff","surface-info-weak":"#f0f8ff","surface-info-strong":"#1a85ff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-raised-stronger":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","input-active":"#f0f8ff","border-base":"#cecece","border-hover":"#c8c8c8","border-active":"#b0b0b0","border-weak-base":"#e7e7e7","border-weak-hover":"#dddddd","border-strong-base":"#c8c8c8","border-strong-hover":"#b0b0b0","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","border-interactive-hover":"#006ab1","border-success-base":"#388a34","border-warning-base":"#bf8803","border-critical-base":"#e51400","border-info-base":"#1a85ff","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-hover":"#333333","icon-active":"#1e1e1e","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-invert-base":"#ffffff","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","surface-diff-add-base":"#dff6dd","surface-diff-add-weak":"#edfaec","surface-diff-delete-base":"#fde7e9","surface-diff-delete-weak":"#fef1f2","syntax-string":"#a31515","syntax-keyword":"#0000ff","syntax-primitive":"#098658","syntax-property":"#001080","syntax-type":"#267f99","syntax-constant":"#0070c1","syntax-comment":"#008000","syntax-variable":"#001080","syntax-operator":"#000000","syntax-punctuation":"#000000","syntax-object":"#001080","syntax-info":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000","avatar-background-pink":"#feeef8","avatar-background-mint":"#e1fbf4","avatar-background-orange":"#fff1e7","avatar-background-purple":"#f9f1fe","avatar-background-cyan":"#e7f9fb","avatar-background-lime":"#eefadc","avatar-text-pink":"#b51e78","avatar-text-mint":"#107c10","avatar-text-orange":"#df6100","avatar-text-purple":"#652d90","avatar-text-cyan":"#0598bc","avatar-text-lime":"#587c0c"}},Ud={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","text-on-critical-base":"#f14c4c","text-on-critical-weak":"#c53e3e","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-success-base":"#1b3a1b","surface-warning-base":"#3a3000","surface-critical-base":"#3a1515","surface-critical-weak":"#210908","surface-critical-strong":"#f14c4c","surface-base":"#080808","surface-info-base":"#0a2a4a","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","input-active":"#1e1e1e","border-base":"#454545","border-hover":"#505050","border-active":"#606060","border-weak-base":"#303031","border-weak-hover":"#3c3c3c","border-strong-base":"#505050","border-strong-hover":"#606060","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","border-interactive-hover":"#3794ff","border-success-base":"#487e02","border-warning-base":"#cca700","border-critical-base":"#f14c4c","border-info-base":"#3794ff","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-hover":"#d4d4d4","icon-active":"#e7e7e7","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-invert-base":"#1e1e1e","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-critical-hover":"#ff7872","icon-critical-active":"#ffc8bf","icon-info-base":"#3794ff","surface-diff-add-base":"#2a3a2a","surface-diff-add-weak":"#1e2e1e","surface-diff-delete-base":"#3a2020","surface-diff-delete-weak":"#2e1818","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Wd={$schema:Od,name:Rd,id:zd,light:Nd,dark:Ud},Jd="https://opencode.ai/desktop-theme.json",Kd="Kilo VS Code",Gd="kilo-vscode",Yd={seeds:{neutral:"#ffffff",primary:"#007acc",success:"#388a34",warning:"#bf8803",error:"#e51400",info:"#1a85ff",interactive:"#0090f1",diffAdd:"#9bb955",diffDelete:"#e51400"},overrides:{"background-base":"#ffffff","background-weak":"#f3f3f3","background-strong":"#ffffff","background-stronger":"#f8f8f8","text-base":"#616161","text-weak":"#767676","text-weaker":"#8e8e90","text-strong":"#333333","text-interactive-base":"#006ab1","surface-brand-base":"#007acc","surface-brand-hover":"#0062a3","surface-interactive-base":"#e8e8e8","surface-interactive-hover":"#d6ebff","surface-raised-base":"#f3f3f3","surface-raised-strong":"#ffffff","surface-float-base":"#ffffff","surface-float-base-hover":"#f3f3f3","surface-inset-base":"#f3f3f3","surface-inset-strong":"#e8e8e8","input-base":"#ffffff","input-hover":"#f3f3f3","border-base":"#cecece","border-hover":"#c8c8c8","border-weak-base":"#e7e7e7","border-strong-base":"#c8c8c8","border-selected":"#0090f1","border-focus":"#0090f1","border-interactive-base":"#0090f1","button-secondary-base":"#f3f3f3","button-secondary-hover":"#e8e8e8","icon-base":"#424242","icon-weak-base":"#616161","icon-strong-base":"#333333","icon-brand-base":"#333333","icon-interactive-base":"#006ab1","icon-success-base":"#388a34","icon-warning-base":"#bf8803","icon-critical-base":"#e51400","icon-info-base":"#1a85ff","markdown-heading":"#0066bf","markdown-text":"#000000","markdown-link":"#006ab1","markdown-link-text":"#006ab1","markdown-code":"#388a34","markdown-block-quote":"#767676","markdown-emph":"#767676","markdown-strong":"#333333","markdown-horizontal-rule":"#d4d4d4","markdown-list-item":"#006ab1","markdown-list-enumeration":"#006ab1","markdown-image":"#006ab1","markdown-image-text":"#006ab1","markdown-code-block":"#000000"}},Xd={seeds:{neutral:"#1e1e1e",primary:"#0e639c",success:"#89d185",warning:"#cca700",error:"#f14c4c",info:"#3794ff",interactive:"#007fd4",diffAdd:"#9bb955",diffDelete:"#f14c4c"},overrides:{"background-base":"#1e1e1e","background-weak":"#252526","background-strong":"#1e1e1e","background-stronger":"#252526","text-base":"#cccccc","text-weak":"#a0a0a0","text-weaker":"#858585","text-strong":"#d4d4d4","text-interactive-base":"#3794ff","surface-brand-base":"#0e639c","surface-brand-hover":"#1177bb","surface-interactive-base":"#04395e","surface-interactive-hover":"#0a4d78","surface-raised-base":"#252526","surface-raised-strong":"#2d2d2d","surface-raised-stronger":"#333333","surface-float-base":"#252526","surface-float-base-hover":"#2c2c2d","surface-inset-base":"#1e1e1e","surface-inset-strong":"#181818","input-base":"#3c3c3c","input-hover":"#3c3c3c","border-base":"#454545","border-hover":"#505050","border-weak-base":"#303031","border-strong-base":"#505050","border-selected":"#007fd4","border-focus":"#007fd4","border-interactive-base":"#007fd4","button-secondary-base":"#3a3d41","button-secondary-hover":"#45494e","icon-base":"#c5c5c5","icon-weak-base":"#858585","icon-strong-base":"#d4d4d4","icon-brand-base":"#ffffff","icon-interactive-base":"#3794ff","icon-success-base":"#89d185","icon-warning-base":"#cca700","icon-critical-base":"#f14c4c","icon-info-base":"#3794ff","syntax-string":"#ce9178","syntax-keyword":"#569cd6","syntax-primitive":"#b5cea8","syntax-property":"#9cdcfe","syntax-type":"#4ec9b0","syntax-constant":"#4fc1ff","syntax-comment":"#6a9955","syntax-variable":"#d4d4d4","syntax-operator":"#d4d4d4","syntax-punctuation":"#d4d4d4","syntax-object":"#d4d4d4","syntax-info":"#3794ff","markdown-heading":"#569cd6","markdown-text":"#d4d4d4","markdown-link":"#3794ff","markdown-link-text":"#3794ff","markdown-code":"#89d185","markdown-block-quote":"#858585","markdown-emph":"#858585","markdown-strong":"#d4d4d4","markdown-horizontal-rule":"#454545","markdown-list-item":"#3794ff","markdown-list-enumeration":"#3794ff","markdown-image":"#3794ff","markdown-image-text":"#3794ff","markdown-code-block":"#d4d4d4","avatar-background-pink":"#3a1530","avatar-background-mint":"#0a2a20","avatar-background-orange":"#3a2005","avatar-background-purple":"#2a1540","avatar-background-cyan":"#0a2040","avatar-background-lime":"#1a2a0a","avatar-text-pink":"#d670d6","avatar-text-mint":"#89d185","avatar-text-orange":"#d18616","avatar-text-purple":"#b180d7","avatar-text-cyan":"#3794ff","avatar-text-lime":"#89d185"}},Qd={$schema:Jd,name:Kd,id:Gd,light:Yd,dark:Xd},e1=Wd,t1=Qd,r1={kilo:e1,"kilo-vscode":t1},n1={...r1,...Bd};function a1(r){const e=st();return{provider:t=>{const n=r.init(t);if(!(r.gate??!0))return $(e.Provider,{value:n,get children(){return t.children}});const s=D(()=>{const o=n.ready;return o===void 0||(typeof o=="function"?o():o)});return $(ie,{get when(){return s()},get children(){return $(e.Provider,{value:n,get children(){return t.children}})}})},use(){const t=Se(e);if(!t)throw new Error(`${r.name} context must be used within a context provider`);return t}}}const xr="kilo",He={THEME_ID:"opencode-theme-id",COLOR_SCHEME:"opencode-color-scheme",THEME_CSS_LIGHT:"opencode-theme-css-light",THEME_CSS_DARK:"opencode-theme-css-dark"},Wr="oc-theme";function s1(){const r=document.getElementById(Wr);if(r)return r;const e=document.createElement("style");return e.id=Wr,document.head.appendChild(e),e}function Ue(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function yt(r,e,t){const n=t==="dark",a=n?r.dark:r.light,s=zn(a,n),o=Nn(s);if(e!==xr)try{localStorage.setItem(n?He.THEME_CSS_DARK:He.THEME_CSS_LIGHT,o)}catch{}const i=`:root {
4
4
  color-scheme: ${t};
5
5
  --text-mix-blend-mode: ${n?"plus-lighter":"multiply"};
6
6
  ${o}
@@ -16,4 +16,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AgentsRoute-Diy
16
16
 
17
17
  `);j=M.pop()??"";for(const V of M){const C=V.split(`
18
18
  `),E=[];let N;for(const G of C)if(G.startsWith("data:"))E.push(G.replace(/^data:\s*/,""));else if(G.startsWith("event:"))N=G.replace(/^event:\s*/,"");else if(G.startsWith("id:"))u=G.replace(/^id:\s*/,"");else if(G.startsWith("retry:")){const re=Number.parseInt(G.replace(/^retry:\s*/,""),10);Number.isNaN(re)||(h=re)}let J,he=!1;if(E.length){const G=E.join(`
19
- `);try{J=JSON.parse(G),he=!0}catch{J=G}}he&&(a&&await a(J),n&&(J=await n(J))),t?.({data:J,event:N,id:u,retry:h}),E.length&&(yield J)}}}finally{H.removeEventListener("abort",b),F.releaseLock()}break}catch(A){if(e?.(A),o!==void 0&&w>=o)break;const T=Math.min(h*2**(w-1),i??3e4);await p(T)}}}()}}const W1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},J1=r=>{switch(r){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},K1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qn=({allowReserved:r,explode:e,name:t,style:n,value:a})=>{if(!e){const i=(r?a:a.map(c=>encodeURIComponent(c))).join(J1(n));switch(n){case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;case"simple":return i;default:return`${t}=${i}`}}const s=W1(n),o=a.map(i=>n==="label"||n==="simple"?r?i:encodeURIComponent(i):jt({allowReserved:r,name:t,value:i})).join(s);return n==="label"||n==="matrix"?s+o:o},jt=({allowReserved:r,name:e,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?t:encodeURIComponent(t)}`},ea=({allowReserved:r,explode:e,name:t,style:n,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${t}=${a.toISOString()}`;if(n!=="deepObject"&&!e){let c=[];Object.entries(a).forEach(([y,u])=>{c=[...c,y,r?u:encodeURIComponent(u)]});const f=c.join(",");switch(n){case"form":return`${t}=${f}`;case"label":return`.${f}`;case"matrix":return`;${t}=${f}`;default:return f}}const o=K1(n),i=Object.entries(a).map(([c,f])=>jt({allowReserved:r,name:n==="deepObject"?`${t}[${c}]`:c,value:f})).join(o);return n==="label"||n==="matrix"?o+i:i},G1=/\{[^{}]+\}/g,Y1=({path:r,url:e})=>{let t=e;const n=e.match(G1);if(n)for(const a of n){let s=!1,o=a.substring(1,a.length-1),i="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),i="label"):o.startsWith(";")&&(o=o.substring(1),i="matrix");const c=r[o];if(c==null)continue;if(Array.isArray(c)){t=t.replace(a,Qn({explode:s,name:o,style:i,value:c}));continue}if(typeof c=="object"){t=t.replace(a,ea({explode:s,name:o,style:i,value:c,valueOnly:!0}));continue}if(i==="matrix"){t=t.replace(a,`;${jt({name:o,value:c})}`);continue}const f=encodeURIComponent(i==="label"?`.${c}`:c);t=t.replace(a,f)}return t},X1=({baseUrl:r,path:e,query:t,querySerializer:n,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let o=(r??"")+s;e&&(o=Y1({path:e,url:o}));let i=t?n(t):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(o+=`?${i}`),o};function en(r){const e=r.body!==void 0;if(e&&r.bodySerializer)return"serializedBody"in r?r.serializedBody!==void 0&&r.serializedBody!==""?r.serializedBody:null:r.body!==""?r.body:null;if(e)return r.body}const Q1=async(r,e)=>{const t=typeof e=="function"?await e(r):e;if(t)return r.scheme==="bearer"?`Bearer ${t}`:r.scheme==="basic"?`Basic ${btoa(t)}`:t},ef={bodySerializer:r=>JSON.stringify(r,(e,t)=>typeof t=="bigint"?t.toString():t)},ta=({parameters:r={},...e}={})=>n=>{const a=[];if(n&&typeof n=="object")for(const s in n){const o=n[s];if(o==null)continue;const i=r[s]||e;if(Array.isArray(o)){const c=Qn({allowReserved:i.allowReserved,explode:!0,name:s,style:"form",value:o,...i.array});c&&a.push(c)}else if(typeof o=="object"){const c=ea({allowReserved:i.allowReserved,explode:!0,name:s,style:"deepObject",value:o,...i.object});c&&a.push(c)}else{const c=jt({allowReserved:i.allowReserved,name:s,value:o});c&&a.push(c)}}return a.join("&")},tf=r=>{if(!r)return"stream";const e=r.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>e.startsWith(t)))return"blob";if(e.startsWith("text/"))return"text"}},rf=(r,e)=>e?!!(r.headers.has(e)||r.query?.[e]||r.headers.get("Cookie")?.includes(`${e}=`)):!1;async function nf(r){for(const e of r.security??[]){if(rf(r,e.name))continue;const t=await Q1(e,r.auth);if(!t)continue;const n=e.name??"Authorization";switch(e.in){case"query":r.query||(r.query={}),r.query[n]=t;break;case"cookie":r.headers.append("Cookie",`${n}=${t}`);break;default:r.headers.set(n,t);break}}}const tn=r=>X1({baseUrl:r.baseUrl,path:r.path,query:r.query,querySerializer:typeof r.querySerializer=="function"?r.querySerializer:ta(r.querySerializer),url:r.url}),rn=(r,e)=>{const t={...r,...e};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=ra(r.headers,e.headers),t},af=r=>{const e=[];return r.forEach((t,n)=>{e.push([n,t])}),e},ra=(...r)=>{const e=new Headers;for(const t of r){if(!t)continue;const n=t instanceof Headers?af(t):Object.entries(t);for(const[a,s]of n)if(s===null)e.delete(a);else if(Array.isArray(s))for(const o of s)e.append(a,o);else s!==void 0&&e.set(a,typeof s=="object"?JSON.stringify(s):s)}return e};class Kt{fns=[];clear(){this.fns=[]}eject(e){const t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){const t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){const n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}}const sf=()=>({error:new Kt,request:new Kt,response:new Kt}),of=ta({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),cf={"Content-Type":"application/json"},na=(r={})=>({...ef,headers:cf,parseAs:"auto",querySerializer:of,...r}),aa=(r={})=>{let e=rn(na(),r);const t=()=>({...e}),n=y=>(e=rn(e,y),t()),a=sf(),s=async y=>{const u={...e,...y,fetch:y.fetch??e.fetch??globalThis.fetch,headers:ra(e.headers,y.headers),serializedBody:void 0};u.security&&await nf(u),u.requestValidator&&await u.requestValidator(u),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");const p=u,g=tn(p);return{opts:p,url:g}},o=async y=>{const u=y.throwOnError??e.throwOnError,p=y.responseStyle??e.responseStyle;let g,m;try{const{opts:h,url:w}=await s(y),H={redirect:"follow",...h,body:en(h)};g=new Request(w,H);for(const x of a.request.fns)x&&(g=await x(g,h));const _=h.fetch;m=await _(g);for(const x of a.response.fns)x&&(m=await x(m,g,h));const A={request:g,response:m};if(m.ok){const x=(h.parseAs==="auto"?tf(m.headers.get("Content-Type")):h.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let j;switch(x){case"arrayBuffer":case"blob":case"text":j=await m[x]();break;case"formData":j=new FormData;break;case"stream":j=m.body;break;default:j={};break}return h.responseStyle==="data"?j:{data:j,...A}}let F;switch(x){case"arrayBuffer":case"blob":case"formData":case"text":F=await m[x]();break;case"json":{const j=await m.text();F=j?JSON.parse(j):{};break}case"stream":return h.responseStyle==="data"?m.body:{data:m.body,...A}}return x==="json"&&(h.responseValidator&&await h.responseValidator(F),h.responseTransformer&&(F=await h.responseTransformer(F))),h.responseStyle==="data"?F:{data:F,...A}}const T=await m.text();let q;try{q=JSON.parse(T)}catch{}throw q??T}catch(h){let w=h;for(const H of a.error.fns)H&&(w=await H(w,m,g,y));if(w=w||{},u)throw w;return p==="data"?void 0:{error:w,request:g,response:m}}},i=y=>u=>o({...u,method:y}),c=y=>async u=>{const{opts:p,url:g}=await s(u);return U1({...p,body:p.body,method:y,onRequest:async(m,h)=>{let w=new Request(m,h);for(const H of a.request.fns)H&&(w=await H(w,p));return w},serializedBody:en(p),url:g})};return{buildUrl:y=>tn({...e,...y}),connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:t,head:i("HEAD"),interceptors:a,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:o,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:i("TRACE")}},lf={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},df=Object.entries(lf),sa=(r,e)=>{e||(e=new Map);for(const t of r)"in"in t?t.key&&e.set(t.key,{in:t.in,map:t.map}):"key"in t?e.set(t.key,{map:t.map}):t.args&&sa(t.args,e);return e},ff=r=>{for(const[e,t]of Object.entries(r))t&&typeof t=="object"&&!Array.isArray(t)&&!Object.keys(t).length&&delete r[e]},d=(r,e)=>{const t={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},n=sa(e);let a;for(const[s,o]of r.entries())if(e[s]&&(a=e[s]),!!a)if("in"in a)if(a.key){const i=n.get(a.key),c=i.map||a.key;i.in&&(t[i.in][c]=o)}else t.body=o;else for(const[i,c]of Object.entries(o??{})){const f=n.get(i);if(f)if(f.in){const y=f.map||i;t[f.in][y]=c}else t[f.map]=c;else{const y=df.find(([u])=>i.startsWith(u));if(y){const[u,p]=y;t[p][i.slice(u.length)]=c}else if("allowExtra"in a&&a.allowExtra){for(const[u,p]of Object.entries(a.allowExtra))if(p){t[u][i]=c;break}}}}return ff(t),t},uf=aa(na({baseUrl:"http://localhost:4096"}));class k{client;constructor(e){this.client=e?.client??uf}}class yf{defaultKey="default";instances=new Map;get(e){const t=this.instances.get(e??this.defaultKey);if(!t)throw new Error('No SDK client found. Create one with "new KiloClient()" to fix this error.');return t}set(e,t){this.instances.set(t??this.defaultKey,e)}}class pf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"}]}]);return(t?.client??this.client).delete({url:"/auth/{providerID}",...t,...n})}set(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return(t?.client??this.client).put({url:"/auth/{providerID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}let hf=class extends k{log(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/log",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}agents(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/agent",...t,...n})}skills(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/skill",...t,...n})}};class mf extends k{moveSession(e,t){const n=d([e],[{args:[{in:"body",key:"sessionID"},{in:"body",key:"destination"},{in:"body",key:"moveChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/control-plane/move-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class kf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/capabilities",...t,...n})}}class gf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console",...t,...n})}listOrgs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console/orgs",...t,...n})}switchOrg(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return(t?.client??this.client).post({url:"/experimental/console/switch",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"projectID"},{in:"query",key:"worktrees"},{in:"query",key:"current"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return(t?.client??this.client).get({url:"/experimental/session",...t,...n})}background(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/session/{sessionID}/background",...t,...n})}}class wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/resource",...t,...n})}}class vf extends k{generateName(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"context"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/generate-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/adapter",...t,...n})}}class Cf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}syncList(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/sync-list",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/status",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/experimental/workspace/{id}",...t,...n})}warp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"copyChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/warp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_adapter;get adapter(){return this._adapter??=new xf({client:this.client})}}class Lf extends k{_controlPlane;get controlPlane(){return this._controlPlane??=new mf({client:this.client})}_capabilities;get capabilities(){return this._capabilities??=new kf({client:this.client})}_console;get console(){return this._console??=new gf({client:this.client})}_session;get session(){return this._session??=new bf({client:this.client})}_resource;get resource(){return this._resource??=new wf({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new vf({client:this.client})}_workspace;get workspace(){return this._workspace??=new Cf({client:this.client})}}class qf extends k{get(e){return(e?.client??this.client).get({url:"/global/config",...e})}update(e,t){const n=d([e],[{args:[{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/global/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Mf extends k{health(e){return(e?.client??this.client).get({url:"/global/health",...e})}event(e){return(e?.client??this.client).sse.get({url:"/global/event",...e})}dispose(e){return(e?.client??this.client).post({url:"/global/dispose",...e})}upgrade(e,t){const n=d([e],[{args:[{in:"body",key:"target"}]}]);return(t?.client??this.client).post({url:"/global/upgrade",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_config;get config(){return this._config??=new qf({client:this.client})}}class $f extends k{subscribe(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).sse.get({url:"/event",...t,...n})}}class Hf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/warnings",...t,...n})}providers(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/providers",...t,...n})}overlay(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/overlay",...t,...n})}overlayUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"set"},{in:"body",key:"unset"},{in:"body",key:"expected"}]}]);return(t?.client??this.client).patch({url:"/config/overlay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sources(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/sources",...t,...n})}effective(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/effective",...t,...n})}rules(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/rules",...t,...n})}rulesUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"content"}]}]);return(t?.client??this.client).put({url:"/config/rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}modelState(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/model-state",...t,...n})}modelStateUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"favorite"}]}]);return(t?.client??this.client).patch({url:"/config/model-state",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Vf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return(t?.client??this.client).get({url:"/experimental/tool",...t,...n})}ids(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/tool/ids",...t,...n})}}class _f extends k{remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return(t?.client??this.client).delete({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reset(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff",...t,...n})}diffSummary(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/summary",...t,...n})}diffFile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"},{in:"query",key:"file"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/file",...t,...n})}}class If extends k{text(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return(t?.client??this.client).get({url:"/find",...t,...n})}files(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/find/file",...t,...n})}symbols(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return(t?.client??this.client).get({url:"/find/symbol",...t,...n})}}class jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file",...t,...n})}read(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file/content",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/file/status",...t,...n})}}class Ef extends k{dispose(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/dispose",...t,...n})}reload(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/reload",...t,...n})}}class Af extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/path",...t,...n})}}class Df extends k{raw(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/diff/raw",...t,...n})}}class Tf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/status",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"},{in:"query",key:"context"}]}]);return(t?.client??this.client).get({url:"/vcs/diff",...t,...n})}apply(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"patch"}]}]);return(t?.client??this.client).post({url:"/vcs/apply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_diff;get diff2(){return this._diff??=new Df({client:this.client})}}class Sf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/command",...t,...n})}}class Pf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/lsp",...t,...n})}}class Ff extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/formatter",...t,...n})}}class Zf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/mcp/{name}/auth",...t,...n})}start(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth",...t,...n})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}authenticate(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...t,...n})}}class Bf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/mcp",...t,...n})}add(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return(t?.client??this.client).post({url:"/mcp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/connect",...t,...n})}disconnect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/disconnect",...t,...n})}readResource(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"uri"},{in:"body",key:"server"}]}]);return(t?.client??this.client).post({url:"/experimental/resource/read",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callTool(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"server"},{in:"body",key:"name"},{in:"body",key:"arguments"}]}]);return(t?.client??this.client).post({url:"/experimental/mcp/call-tool",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_auth;get auth(){return this._auth??=new Zf({client:this.client})}}class Of extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project",...t,...n})}current(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/current",...t,...n})}initGit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/project/git/init",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).patch({url:"/project/{projectID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}directories(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/{projectID}/directories",...t,...n})}}class Rf extends k{shells(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/shells",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).put({url:"/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"ticket"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}/connect",...t,...n})}}class zf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reject",...t,...n})}}class Nf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/permission",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"},{in:"body",key:"interactive"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}saveAlwaysRules(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"approvedAlways"},{in:"body",key:"deniedAlways"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/always-rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}allowEverything(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enable"},{in:"body",key:"requestID"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/permission/allow-everything",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}respond(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Uf extends k{authorize(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider",...t,...n})}auth(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider/auth",...t,...n})}_oauth;get oauth(){return this._oauth??=new Uf({client:this.client})}}class Jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"query",key:"path"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"title"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"platform"},{in:"body",key:"workspaceID"},{in:"body",key:"sandboxInheritanceToken"}]}]);return(t?.client??this.client).post({url:"/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/status",...t,...n})}delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}children(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/children",...t,...n})}todo(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/todo",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"},{in:"query",key:"file"},{in:"query",key:"full"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/diff",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message",...t,...n})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}deleteMessage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"queued"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...t,...n})}fork(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/fork",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}abort(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/abort",...t,...n})}init(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/init",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unshare(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/share",...t,...n})}share(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/share",...t,...n})}summarize(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/summarize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}promptAsync(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}command(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}shell(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/shell",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}revert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/revert",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unrevert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/unrevert",...t,...n})}viewed(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"viewer"},{in:"body",key:"attached"},{in:"body",key:"visible"}]}]);return(t?.client??this.client).post({url:"/session/viewed",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Kf extends k{delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Gf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/sync/history",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Yf extends k{start(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/sync/start",...t,...n})}replay(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return(t?.client??this.client).post({url:"/sync/replay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}steal(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/sync/steal",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_history;get history(){return this._history??=new Gf({client:this.client})}}class Xf extends k{next(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/control/next",...t,...n})}response(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/control/response",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Qf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"body",key:"$schema"},{in:"body",key:"theme"},{in:"body",key:"keybinds"},{in:"body",key:"plugin"},{in:"body",key:"plugin_enabled"},{in:"body",key:"title_icon"},{in:"body",key:"scroll_speed"},{in:"body",key:"scroll_acceleration"},{in:"body",key:"diff_style"},{in:"body",key:"mouse"},{in:"body",key:"attention"}]}]);return(t?.client??this.client).patch({url:"/tui/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class eu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/keybinds",...t,...n})}}class tu extends k{appendPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/tui/append-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}openHelp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-help",...t,...n})}openSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-sessions",...t,...n})}openThemes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-themes",...t,...n})}openModels(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-models",...t,...n})}submitPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/submit-prompt",...t,...n})}clearPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/clear-prompt",...t,...n})}executeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/tui/execute-command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}showToast(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return(t?.client??this.client).post({url:"/tui/show-toast",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}publish(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/publish",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}selectSession(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/tui/select-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_control;get control(){return this._control??=new Xf({client:this.client})}_config;get config(){return this._config??=new Qf({client:this.client})}_keybind;get keybind(){return this._keybind??=new eu({client:this.client})}}class ru extends k{preview(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).post({url:"/agent-builder/preview",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}save(e,t){const n=d([e],[{args:[{in:"path",key:"path_id",map:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_id",map:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).put({url:"/agent-builder/{id}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}",...t,...n})}logs(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}/logs",...t,...n})}stop(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/stop",...t,...n})}restart(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/restart",...t,...n})}stopSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/session/{sessionID}/stop",...t,...n})}}class au extends k{generate(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prompt"},{in:"body",key:"providerID"},{in:"body",key:"modelID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/branch-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class su extends k{generate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"path"},{in:"body",key:"selectedFiles"},{in:"body",key:"previousMessage"},{in:"body",key:"language"}]}]);return(t?.client??this.client).post({url:"/commit-message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class ou extends k{enhance(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/enhance-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class iu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/status",...t,...n})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/warnings",...t,...n})}models(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/models",...t,...n})}consent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).put({url:"/indexing/consent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class cu extends k{transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"model"},{in:"body",key:"input_audio"},{in:"body",key:"language"},{in:"body",key:"prompt"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).post({url:"/kilo/audio/transcriptions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class lu extends k{images(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/images",...t,...n})}transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/transcriptions",...t,...n})}}class du extends k{set(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"organizationId"}]}]);return(t?.client??this.client).post({url:"/kilo/organization",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class fu extends k{get(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud/session/{id}",...t,...n})}import(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionId"}]}]);return(t?.client??this.client).post({url:"/kilo/cloud/session/import",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class uu extends k{_session;get session(){return this._session??=new fu({client:this.client})}}class yu extends k{profile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/profile",...t,...n})}authStatus(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/auth-status",...t,...n})}modes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/modes",...t,...n})}fim(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prefix"},{in:"body",key:"suffix"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).sse.post({url:"/kilo/fim",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}edit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"currentFilePath"},{in:"body",key:"currentFileContent"},{in:"body",key:"cursorLine"},{in:"body",key:"cursorCharacter"},{in:"body",key:"editableRegionStartLine"},{in:"body",key:"editableRegionEndLine"},{in:"body",key:"recentlyViewedSnippets"},{in:"body",key:"editDiffHistory"}]}]);return(t?.client??this.client).post({url:"/kilo/edit",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}notifications(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/notifications",...t,...n})}cloudSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"limit"},{in:"query",key:"gitUrl"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud-sessions",...t,...n})}_audio;get audio(){return this._audio??=new cu({client:this.client})}_models;get models(){return this._models??=new lu({client:this.client})}_organization;get organization(){return this._organization??=new du({client:this.client})}_cloud;get cloud(){return this._cloud??=new uu({client:this.client})}}class pu extends k{snapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/heap/snapshot",...t,...n})}}class hu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/marketplace",...t,...n})}install(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"item"},{in:"body",key:"target"},{in:"body",key:"parameters"}]}]);return(t?.client??this.client).post({url:"/kilocode/marketplace/install",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"item"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/marketplace/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class mu extends k{prepare(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/prepare",...t,...n})}}class ku extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/provider-usage",...t,...n})}refresh(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/provider-usage/refresh",...t,...n})}}class gu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/notebook",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/agent-manager",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class wu extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/cancel",...t,...n})}promote(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/promote",...t,...n})}}class vu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/retention",...t,...n})}run(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"force"}]}]);return(t?.client??this.client).post({url:"/kilocode/retention/run",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xu extends k{sessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"},{in:"body",key:"ids"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"force"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}discover(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions/discover",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Cu extends k{project(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"worktree"},{in:"body",key:"vcs"},{in:"body",key:"name"},{in:"body",key:"iconUrl"},{in:"body",key:"iconColor"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeInitialized"},{in:"body",key:"sandboxes"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/project",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}session(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"projectID"},{in:"body",key:"force"},{in:"body",key:"workspaceID"},{in:"body",key:"parentID"},{in:"body",key:"slug"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"title"},{in:"body",key:"version"},{in:"body",key:"shareURL"},{in:"body",key:"summary"},{in:"body",key:"revert"},{in:"body",key:"permission"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeCompacting"},{in:"body",key:"timeArchived"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}message(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}part(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"messageID"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/part",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Lu extends k{resumeSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"snapshotInitialization"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/resume",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}drainSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"token"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/drain",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"before"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/kilocode/session/{sessionID}/board",...t,...n})}resetSessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"revision"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/board/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}commandFiles(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/command/files",...t,...n})}removeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/command/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSkill(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/skill/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeAgent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSnapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}teardownWorktree(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/worktree/teardown",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionModelUsage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/model-usage",...t,...n})}backgroundJobs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/kilocode/background-jobs",...t,...n})}wakeups(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/wakeups",...t,...n})}_heap;get heap(){return this._heap??=new pu({client:this.client})}_marketplace;get marketplace(){return this._marketplace??=new hu({client:this.client})}_snapshot;get snapshot(){return this._snapshot??=new mu({client:this.client})}_providerUsage;get providerUsage(){return this._providerUsage??=new ku({client:this.client})}_notebook;get notebook(){return this._notebook??=new gu({client:this.client})}_agentManager;get agentManager(){return this._agentManager??=new bu({client:this.client})}_backgroundJob;get backgroundJob(){return this._backgroundJob??=new wu({client:this.client})}_retention;get retention(){return this._retention??=new vu({client:this.client})}_migrate;get migrate(){return this._migrate??=new xu({client:this.client})}_sessionImport;get sessionImport(){return this._sessionImport??=new Cu({client:this.client})}}class qu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/anaconda-desktop/status",...t,...n})}open(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/open",...t,...n})}sync(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"acknowledgeToolLimitations"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/sync",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Mu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/network",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reply",...t,...n})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reject",...t,...n})}}class $u extends k{enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/disable",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/remote/status",...t,...n})}}class Hu extends k{support(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/sandbox/support",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/sandbox",...t,...n})}toggle(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/sandbox/toggle",...t,...n})}}class Vu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/suggestion",...t,...n})}accept(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"index"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/accept",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}dismiss(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/dismiss",...t,...n})}}class _u extends k{capture(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"event"},{in:"body",key:"properties"}]}]);return(t?.client??this.client).post({url:"/telemetry/capture",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}setEnabled(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).post({url:"/telemetry/setEnabled",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Iu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/status",...t,...n})}show(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/show",...t,...n})}enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/disable",...t,...n})}configure(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"autoConsolidate"},{in:"body",key:"verbose"}]}]);return(t?.client??this.client).post({url:"/memory/configure",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}rebuild(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/rebuild",...t,...n})}remember(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"file"},{in:"body",key:"section"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/remember",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}correct(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/correct",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}forget(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"query"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/forget",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}purge(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"confirm"}]}]);return(t?.client??this.client).post({url:"/memory/purge",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class ju extends k{get(e){return(e?.client??this.client).get({url:"/api/health",...e})}}class Eu extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/location",...t,...n})}}class Au extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/agent",...t,...n})}}class Du extends k{stage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"messageID"},{in:"body",key:"files"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/stage",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}clear(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/clear",...t,...n})}commit(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/commit",...t,...n})}}class Tu extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"action"},{in:"body",key:"resources"},{in:"body",key:"save"},{in:"body",key:"metadata"},{in:"body",key:"source"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission/{requestID}",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Su extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{key:"questionV2Reply",map:"body"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reject",...t,...n})}}class Pu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"search"},{in:"query",key:"directory"},{in:"query",key:"project"},{in:"query",key:"subpath"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"body",key:"id"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}active(e){return(e?.client??this.client).get({url:"/api/session/active",...e})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}",...t,...n})}switchAgent(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/agent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}switchModel(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"model"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/model",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"prompt"},{in:"body",key:"delivery"},{in:"body",key:"resume"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}compact(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/compact",...t,...n})}wait(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/wait",...t,...n})}context(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/context",...t,...n})}history(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"after"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/history",...t,...n})}events(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"after"}]}]);return(t?.client??this.client).sse.get({url:"/api/session/{sessionID}/event",...t,...n})}interrupt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/interrupt",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message/{messageID}",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message",...t,...n})}_revert;get revert(){return this._revert??=new Du({client:this.client})}_permission;get permission(){return this._permission??=new Tu({client:this.client})}_question;get question(){return this._question??=new Su({client:this.client})}}class Fu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/model",...t,...n})}}class Zu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider/{providerID}",...t,...n})}}class Bu extends k{key(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"key"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/key",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}oauth(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"methodID"},{in:"body",key:"inputs"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/oauth",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Ou extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/integration/attempt/{attemptID}",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/attempt/{attemptID}",...t,...n})}complete(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/api/integration/attempt/{attemptID}/complete",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Ru extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/{integrationID}",...t,...n})}_connect;get connect(){return this._connect??=new Bu({client:this.client})}_attempt;get attempt(){return this._attempt??=new Ou({client:this.client})}}class zu extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/credential/{credentialID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"},{in:"body",key:"label"}]}]);return(t?.client??this.client).patch({url:"/api/credential/{credentialID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/permission/request",...t,...n})}}class Uu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"projectID"}]}]);return(t?.client??this.client).get({url:"/api/permission/saved",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"}]}]);return(t?.client??this.client).delete({url:"/api/permission/saved/{id}",...t,...n})}}class Wu extends k{_request;get request(){return this._request??=new Nu({client:this.client})}_saved;get saved(){return this._saved??=new Uu({client:this.client})}}class Ju extends k{read(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/read/*",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/list",...t,...n})}find(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"query"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/api/fs/find",...t,...n})}}class Ku extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/command",...t,...n})}}class Gu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/skill",...t,...n})}}class Yu extends k{subscribe(e){return(e?.client??this.client).sse.get({url:"/api/event",...e})}}class Xu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/api/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return(t?.client??this.client).put({url:"/api/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location[directory]"},{in:"query",key:"location[workspace]"},{in:"query",key:"cursor"},{in:"query",key:"ticket"},{in:"query",key:"replayExited"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}/connect",...t,...n})}}class Qu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/question/request",...t,...n})}}class e0 extends k{_request;get request(){return this._request??=new Qu({client:this.client})}}class t0 extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/reference",...t,...n})}}class r0 extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"directory"},{in:"body",key:"force"}]}]);return(t?.client??this.client).delete({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}create(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"strategy"},{in:"body",key:"directory"},{in:"body",key:"name"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}refresh(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/refresh",...t,...n})}}class n0 extends k{_health;get health(){return this._health??=new ju({client:this.client})}_location;get location(){return this._location??=new Eu({client:this.client})}_agent;get agent(){return this._agent??=new Au({client:this.client})}_session;get session(){return this._session??=new Pu({client:this.client})}_model;get model(){return this._model??=new Fu({client:this.client})}_provider;get provider(){return this._provider??=new Zu({client:this.client})}_integration;get integration(){return this._integration??=new Ru({client:this.client})}_credential;get credential(){return this._credential??=new zu({client:this.client})}_permission;get permission(){return this._permission??=new Wu({client:this.client})}_fs;get fs(){return this._fs??=new Ju({client:this.client})}_command;get command(){return this._command??=new Ku({client:this.client})}_skill;get skill(){return this._skill??=new Gu({client:this.client})}_event;get event(){return this._event??=new Yu({client:this.client})}_pty;get pty(){return this._pty??=new Xu({client:this.client})}_question;get question(){return this._question??=new e0({client:this.client})}_reference;get reference(){return this._reference??=new t0({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new r0({client:this.client})}}class Lr extends k{static __registry=new yf;constructor(e){super(e),Lr.__registry.set(this,e?.key)}_auth;get auth(){return this._auth??=new pf({client:this.client})}_app;get app(){return this._app??=new hf({client:this.client})}_experimental;get experimental(){return this._experimental??=new Lf({client:this.client})}_global;get global(){return this._global??=new Mf({client:this.client})}_event;get event(){return this._event??=new $f({client:this.client})}_config;get config(){return this._config??=new Hf({client:this.client})}_tool;get tool(){return this._tool??=new Vf({client:this.client})}_worktree;get worktree(){return this._worktree??=new _f({client:this.client})}_find;get find(){return this._find??=new If({client:this.client})}_file;get file(){return this._file??=new jf({client:this.client})}_instance;get instance(){return this._instance??=new Ef({client:this.client})}_path;get path(){return this._path??=new Af({client:this.client})}_vcs;get vcs(){return this._vcs??=new Tf({client:this.client})}_command;get command(){return this._command??=new Sf({client:this.client})}_lsp;get lsp(){return this._lsp??=new Pf({client:this.client})}_formatter;get formatter(){return this._formatter??=new Ff({client:this.client})}_mcp;get mcp(){return this._mcp??=new Bf({client:this.client})}_project;get project(){return this._project??=new Of({client:this.client})}_pty;get pty(){return this._pty??=new Rf({client:this.client})}_question;get question(){return this._question??=new zf({client:this.client})}_permission;get permission(){return this._permission??=new Nf({client:this.client})}_provider;get provider(){return this._provider??=new Wf({client:this.client})}_session;get session(){return this._session??=new Jf({client:this.client})}_part;get part(){return this._part??=new Kf({client:this.client})}_sync;get sync(){return this._sync??=new Yf({client:this.client})}_tui;get tui(){return this._tui??=new tu({client:this.client})}_agentBuilder;get agentBuilder(){return this._agentBuilder??=new ru({client:this.client})}_backgroundProcess;get backgroundProcess(){return this._backgroundProcess??=new nu({client:this.client})}_branchName;get branchName(){return this._branchName??=new au({client:this.client})}_commitMessage;get commitMessage(){return this._commitMessage??=new su({client:this.client})}_enhancePrompt;get enhancePrompt(){return this._enhancePrompt??=new ou({client:this.client})}_indexing;get indexing(){return this._indexing??=new iu({client:this.client})}_kilo;get kilo(){return this._kilo??=new yu({client:this.client})}_kilocode;get kilocode(){return this._kilocode??=new Lu({client:this.client})}_anacondaDesktop;get anacondaDesktop(){return this._anacondaDesktop??=new qu({client:this.client})}_network;get network(){return this._network??=new Mu({client:this.client})}_remote;get remote(){return this._remote??=new $u({client:this.client})}_sandbox;get sandbox(){return this._sandbox??=new Hu({client:this.client})}_suggestion;get suggestion(){return this._suggestion??=new Vu({client:this.client})}_telemetry;get telemetry(){return this._telemetry??=new _u({client:this.client})}_memory;get memory(){return this._memory??=new Iu({client:this.client})}_v2;get v2(){return this._v2??=new n0({client:this.client})}}function a0(r,e,t,n){if(!n?.throwOnError||r instanceof Error)return r;if(typeof r=="object"&&r!==null&&Object.keys(r).length>0){const s=r,o=typeof s.data?.message=="string"&&s.data.message||typeof s.message=="string"&&s.message||typeof s.name=="string"&&s.name||nn(t,e);return new Error(o,{cause:{body:r,status:e?.status}})}if(typeof r=="string"&&r.length>0)return new Error(r,{cause:{body:r,status:e?.status}});const a=e?"(empty response body)":"network error (no response)";return new Error(`kilo server ${nn(t,e)}: ${a}`,{cause:{body:r,status:e?.status}})}function nn(r,e){const t=r?.method??"?",n=r?.url??"?",a=e?.status,s=e?.statusText;return`${t} ${n}${a?" → "+a:""}${s?" "+s:""}`}function s0(r,e,t){if(r)return e&&(r===e||t&&r===t(e))?e:r}function o0(r,e){if(r.method!=="GET"&&r.method!=="HEAD")return r;const t=new URL(r.url);let n=!1;for(const[s,o]of[["x-kilo-directory","directory"],["x-kilo-workspace","workspace"]]){const i=s0(r.headers.get(s),o==="directory"?e.directory:e.workspace,o==="directory"?encodeURIComponent:void 0);if(i){for(const c of t.pathname.startsWith("/api/")?[o,`location[${o}]`]:[o])t.searchParams.has(c)||t.searchParams.set(c,i);n=!0}}if(!n)return r;const a=new Request(t,r);return a.headers.delete("x-kilo-directory"),a.headers.delete("x-kilo-workspace"),a}function i0(r){r?.fetch||(r={...r,fetch:n=>fetch(n,{duplex:"half",timeout:!1})}),r?.directory&&(r.headers={...r.headers,"x-kilo-directory":encodeURIComponent(r.directory)}),r?.experimental_workspaceID&&(r.headers={...r.headers,"x-kilo-workspace":r.experimental_workspaceID}),r.duplex="half";const e=aa(r);return e.interceptors.request.use(t=>o0(t,{directory:r?.directory,workspace:r?.experimental_workspaceID})),e.interceptors.response.use(t=>{if(t.headers.get("content-type")==="text/html")throw new Error("Request is not supported by this version of OpenCode Server (Server responded with text/html)");return t}),e.interceptors.error.use(a0),new Lr({client:e})}const c0=Array.from({length:20},(r,e)=>4097+e),l0=1440*60*1e3,qr="kilo.config.server",Je={},Mr=window.fetch.bind(window);function d0(r){const e=new TextEncoder().encode(r);return btoa(String.fromCharCode(...e))}function an(r){return r?decodeURIComponent(r):""}function Et(r){const e=new URL(r),t=an(e.username)||"kilo",n=an(e.password)||"kilo";return e.username="",e.password="",e.search="",e.hash="",{url:e.toString().replace(/\/$/,""),token:d0(`${t}:${n}`)}}function R(r){const e=Et(r.url);return i0({baseUrl:e.url,directory:At(r.dir),headers:{Authorization:`Basic ${e.token}`},fetch:Mr})}function At(r){const e=r.trim();if(e)return e}function Ct(r){return r instanceof Error?r.message:typeof r=="string"?r:r==null?"Unknown error":JSON.stringify(r)}function P(r,e){if(e.error)throw new Error(`${r}: ${Ct(e.error)}`);if(e.data===void 0)throw new Error(`${r}: empty response`);return e.data}async function f0(r){const t=(await Pt(r)).find(n=>n.id===r.project);if(!t)throw new Error(`Project not found: ${r.project}`);return t}async function ke(r,e){return await e.then(t=>{if(t.error){console.warn(`${r}: ${Ct(t.error)}`);return}return t.data}).catch(t=>{console.warn(`${r}: ${Ct(t)}`)})}function u0(r){if(typeof r!="string")return;const e=r.indexOf("/");if(!(e<=0||e>=r.length-1))return{provider:r.slice(0,e),model:r.slice(e+1)}}function Dt(r){const e=At(r.dir);return e?{directory:e}:void 0}function y0(r){return r.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function p0(r){return{keybinds:Object.entries(r.keybinds??{}).map(([e,t])=>({id:e,label:y0(e),group:"Configured",default:t??"none",description:"Configured TUI keybind"}))}}function Lt(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function h0(r,e){const t=Lt(r),n=Lt(e);return n===t?!0:n.startsWith(`${t}/`)}function oa(r){return r.id!=="global"?!0:Lt(r.worktree)!=="/"}function m0(r,e){return[r.worktree,...r.sandboxes].reduce((t,n)=>h0(n,e)?Math.max(t,Lt(n).length):t,-1)}function k0(r,e){const t=r.find(n=>n.id===e.projectID);return t||r.reduce((n,a)=>{const s=m0(a,e.directory);return s<=n.score?n:{item:a,score:s}},{score:-1}).item}async function ia(r){const e=new AbortController,t=window.setTimeout(()=>e.abort(),400),n=Et(r);return await Mr(`${n.url}/global/health`,{headers:{Authorization:`Basic ${n.token}`},signal:e.signal}).then(a=>a.ok?r:void 0).catch(()=>{}).finally(()=>window.clearTimeout(t))}function g0(r){return Array.isArray(r)?r.filter(e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.id=="string"&&typeof t.worktree=="string"&&typeof t.time?.updated=="number"}):[]}function b0(r){return r.reduce((e,t)=>Math.max(e,t.time.updated),0)}async function w0(r){if(!await ia(r))return;const t=new AbortController,n=window.setTimeout(()=>t.abort(),400),a=Et(r);return await Mr(`${a.url}/project`,{headers:{Authorization:`Basic ${a.token}`},signal:t.signal}).then(async s=>{if(!s.ok)return{url:r,count:0,time:0};const o=g0(await s.json()).filter(oa);return{url:r,count:o.length,time:b0(o)}}).catch(()=>({url:r,count:0,time:0})).finally(()=>window.clearTimeout(n))}function sn(r){return Number(new URL(r).port)||0}function on(r){return new URL(r).hostname==="127.0.0.1"?1:0}function Fe(){return window.localStorage.getItem(qr)??""}function qe(r){window.localStorage.setItem(qr,r)}function Tt(){window.localStorage.removeItem(qr)}async function v0(r){return await ia(r)!==void 0}async function x0(){const r=c0.flatMap(t=>[`http://127.0.0.1:${t}`,`http://localhost:${t}`]);return(await Promise.all(r.map(w0))).filter(t=>t!==void 0).toSorted((t,n)=>n.count-t.count||n.time-t.time||sn(n.url)-sn(t.url)||on(n.url)-on(t.url))[0]?.url}async function St(){if(Je.run)return await Je.run;const r=x0().finally(()=>{Je.run===r&&(Je.run=void 0)});return Je.run=r,await r}async function $r(){const r=await St();if(r)return r;const e=Fe();if(e){if(await v0(e))return e;Tt()}}async function Yy(r){const e=R(r),[t,n,a,s,o,i,c,f,y,u,p,g]=await Promise.all([e.global.health(),e.config.overlay({scope:r.scope}),e.config.modelState(),e.provider.list(),e.provider.auth(),e.tui.config.get(),ke("TUI keybinds",e.tui.keybind.list()),e.tool.ids(),e.mcp.status(),e.lsp.status(),e.formatter.status(),e.app.agents()]),m=P("Config overlay",n),h=u0(m.effective.model),w=h?await ke("Tool metadata",e.tool.list(h)):void 0,H=P("TUI config",i);return{health:P("Health",t),effective:m.effective,overlay:m,sources:{sources:m.sources},modelState:P("Model state",a),providers:P("Providers",s),authMethods:P("Provider auth methods",o),tui:H,keybinds:c??p0(H),tools:P("Tools",f),toolDetails:w??[],mcp:P("MCP status",y),lsp:P("LSP status",u),formatter:P("Formatter status",p),agents:P("Agents",g)}}async function Xy(r){return P("Kilo embedding models",await R(r).indexing.models())}async function Qy(r){const t=await R(r).kilo.profile(Dt(r));return P("Kilo profile",t)}async function e7(r,e){const t=R(r),n=await t.kilo.organization.set({...Dt(r),organizationId:e});P("Switch Kilo account",n),await t.global.dispose()}async function t7(r){const e=R(r),t=await e.auth.remove({providerID:"kilo"});P("Log out of Kilo",t),await e.global.dispose()}async function r7(r){const t=await R(r).provider.oauth.authorize({...Dt(r),providerID:"kilo",method:0});return P("Start Kilo login",t)}async function n7(r,e){const t=R(r),n=await t.provider.oauth.callback({...Dt(r),providerID:"kilo",method:0},e?{signal:e}:void 0);P("Complete Kilo login",n),await t.global.dispose()}async function C0(r){const e=R(r),t=At(r.dir),n=await e.project.list(t?{directory:t}:void 0);return P("Projects",n)}async function Pt(r){return(await C0(r)).filter(oa)}async function L0(r){const e=R(r),[t,n]=await Promise.all([Pt(r),e.experimental.session.list({archived:!1,start:Date.now()-l0,limit:500})]),a=P("Recent sessions",n),s=new Map;for(const o of a){const i=k0(t,o);i&&s.set(i.id,(s.get(i.id)??0)+1)}return t.map(o=>({...o,sessions:s.get(o.id)??0})).filter(o=>o.sessions>0)}async function a7(r){const e=await f0(r),t={url:r.url,dir:e.worktree},n=R(t),[a,s,o]=await Promise.all([n.config.overlay({scope:"global"}),n.vcs.get({directory:t.dir}),n.worktree.list({directory:t.dir})]),i=P("Config",a),c=P("Worktrees",o),f=await Promise.all([t.dir,...c.map(y=>y.directory)].map(y=>q0({url:r.url},y)));return{project:e,config:i.global,vcs:P("VCS",s),worktrees:c,terminals:f.flat()}}async function s7(r,e){const t=R(r),n=e?.trim(),a=await t.worktree.create({directory:r.dir,...n?{worktreeCreateInput:{name:n}}:{}});return P("Create worktree",a)}async function o7(r,e){const n=await R(r).worktree.remove({directory:r.dir,worktreeRemoveInput:{directory:e}});return P("Remove worktree",n)}async function i7(r,e){const n=await R(r).worktree.reset({directory:r.dir,worktreeResetInput:{directory:e}});return P("Reset worktree",n)}async function q0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([t.pty.list({directory:e}),ke("Session status",t.session.status({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=P("Terminals",n),c=a??{},f=cn(s??[]),y=cn(o??[]),u=new Map;return await Promise.all(i.map(async p=>{if(!p.sessionID||u.has(p.sessionID))return;const g=await ke("Session",t.session.get({directory:e,sessionID:p.sessionID}));g&&u.set(p.sessionID,g)})),i.map(p=>{const g=p.sessionID?u.get(p.sessionID):void 0;return{...p,directory:e,session:g,sessionStatus:p.sessionID?c[p.sessionID]:void 0,attention:p.sessionID?H0(p.sessionID,f,y):void 0}})}function ca(r){return new Set(r.flatMap(e=>e.sessionID?[e.sessionID]:[]))}function cn(r){return new Set(r.map(e=>e.sessionID))}function ln(r,e){return r.some(t=>e.has(t.sessionID))}async function M0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([ke("Session status",t.session.status({directory:e})),ke("Terminals",t.pty.list({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=ca(a??[]),c=Object.entries(n??{}).some(([y,u])=>i.has(y)&&u.type!=="idle"),f=ln(s??[],i)||ln(o??[],i);return{busy:c,attention:f}}async function $0(r,e){const t=R({url:r.url,dir:e}),n=await ke("Terminals",t.pty.list({directory:e}));return ca(n??[])}function H0(r,e,t){if(e.has(r))return"permission";if(t.has(r))return"question"}async function c7(r,e){const n=await R({url:r.url,dir:e}).worktree.diffSummary({directory:e});return P("Worktree diff",n)}async function l7(r,e,t){const a=await R({url:r.url,dir:e}).worktree.diffFile({directory:e,file:t});return P("Worktree diff file",a)}async function d7(r,e,t="Kilo session"){const a=await R({url:r.url,dir:e}).pty.create({directory:e,command:"kilo",cwd:e,title:t});return P("Create terminal",a)}async function f7(r,e){const n=await R({url:r.url,dir:r.dir}).pty.remove({directory:r.dir,ptyID:e});return P("Remove terminal",n)}async function u7(r,e,t,n){const s=await R(r).session.viewed({directory:r.dir,viewer:e,attached:t,visible:n});return P("Viewed sessions",s)}function V0(r,e){const t=R(r),n=new AbortController;return(async()=>{const a=await t.global.event({signal:n.signal,sseMaxRetryAttempts:0});for await(const s of a.stream){if(n.signal.aborted)return;e(s)}})().catch(a=>{n.signal.aborted||console.warn(`Project events: ${Ct(a)}`)}),()=>n.abort()}async function y7(r,e,t,n){const s=await R({url:r.url,dir:r.dir}).pty.update({directory:r.dir,ptyID:e,size:{cols:t,rows:n}});return P("Resize terminal",s)}function p7(r,e,t=0){const n=Et(r.url),a=new URL(`/pty/${encodeURIComponent(e)}/connect`,n.url);return a.protocol=a.protocol==="https:"?"wss:":"ws:",a.searchParams.set("directory",r.dir),a.searchParams.set("cursor",String(t)),a.searchParams.set("auth_token",n.token),a.toString()}async function la(r,e,t){const n=R(r),a=Object.keys(e).length?e:void 0,s=await n.config.overlayUpdate({directory:At(r.dir),scope:r.scope,set:a,unset:t});return P("Update config",s)}async function h7(r,e){return la(r,e)}async function m7(r,e){return la(r,{},e)}async function k7(r,e){const n=await R(r).config.modelStateUpdate({favorite:e});return P("Update model state",n)}async function g7(r,e,t,n){const a=R(r),s=n?{type:"api",key:t,metadata:n}:{type:"api",key:t},o=await a.auth.set({providerID:e,auth:s});P("Connect provider",o),await a.global.dispose()}async function b7(r,e,t,n){const s=await R(r).provider.oauth.authorize({providerID:e,method:t,inputs:n});return P("Authorize provider",s)}async function w7(r,e,t,n){const a=R(r),s=await a.provider.oauth.callback({providerID:e,method:t,code:n});P("Complete provider authorization",s),await a.global.dispose()}async function v7(r,e){const n=await R(r).mcp.connect({name:e});return P("Connect MCP server",n)}async function x7(r,e){const n=await R(r).mcp.disconnect({name:e});return P("Disconnect MCP server",n)}async function C7(r,e){const n=await R(r).mcp.auth.authenticate({name:e});return P("Authenticate MCP server",n)}async function L7(r,e){const n=await R(r).tui.config.update({scope:r.scope,...e});return P("Update TUI config",n)}async function q7(r,e){const n=await R(r).agentBuilder.preview(e);return P("Preview agent",n)}async function M7(r,e){const n=await R(r).agentBuilder.save({path_id:e.id,scope:e.scope,description:e.description,mode:e.mode,model:e.model,color:e.color,steps:e.steps,tools:e.tools,permission:e.permission,prompt:e.prompt});return P("Save agent",n)}const dn=Q(()=>X(()=>import("./AgentsRoute-DiyQVU7b.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentBuilderRoute}))),_0=Q(()=>X(()=>import("./AgentsRoute-DiyQVU7b.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentsRoute}))),I0=Q(()=>X(()=>import("./CliNotificationsRoute-CPgbdaoK.js"),__vite__mapDeps([10,1,4,2,3,11,5,12])).then(r=>({default:r.CliNotificationsRoute}))),j0=Q(()=>X(()=>import("./CliUiRoute-DHrO2LIB.js"),__vite__mapDeps([13,1,4,2,3,11,5,12])).then(r=>({default:r.CliUiRoute}))),E0=Q(()=>X(()=>import("./ConsoleUiRoute-DkVHnr4H.js"),__vite__mapDeps([14,1,15,5,4,2,3,12])).then(r=>({default:r.ConsoleUiRoute}))),A0=Q(()=>X(()=>import("./FormattersRoute-DCNVjvRI.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.FormattersRoute}))),D0=Q(()=>X(()=>import("./FormattersRoute-DCNVjvRI.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.LspRoute}))),T0=Q(()=>X(()=>import("./IndexingRoute-BN8nXyIX.js"),__vite__mapDeps([18,1,4,5,2,3,19,9])).then(r=>({default:r.IndexingRoute}))),S0=Q(()=>X(()=>import("./KeybindsRoute-DScOQWag.js"),__vite__mapDeps([20,1,2,3,5,21])).then(r=>({default:r.KeybindsRoute}))),P0=Q(()=>X(()=>import("./McpRoute-CV79QLXw.js"),__vite__mapDeps([22,1,2,3,23,4,5,24])).then(r=>({default:r.McpRoute}))),F0=Q(()=>X(()=>import("./ModelsRoute-DUiNxWcp.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsAvailableRoute}))),Z0=Q(()=>X(()=>import("./ModelsRoute-DUiNxWcp.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsDefaultRoute}))),B0=Q(()=>X(()=>import("./ModelsRoute-DUiNxWcp.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsRoute}))),O0=Q(()=>X(()=>import("./OverviewRoute-CIlEEPvW.js"),__vite__mapDeps([28,2,3,5,29])).then(r=>({default:r.OverviewRoute}))),R0=Q(()=>X(()=>import("./PermissionsRoute-BCxGpg_1.js").then(r=>r.P),__vite__mapDeps([6,1,2,3,5,7])).then(r=>({default:r.PermissionsRoute}))),z0=Q(()=>X(()=>import("./ProvidersRoute-BW-V-jN3.js"),__vite__mapDeps([30,1,2,3,23,4,5])).then(r=>({default:r.ProvidersRoute}))),N0=Q(()=>X(()=>import("./ServersRoute-eQ7HE-su.js"),__vite__mapDeps([31,1,5,2,3,32])).then(r=>({default:r.ServersRoute}))),U0=Q(()=>X(()=>import("./SourcesRoute-CM6oiRe5.js"),__vite__mapDeps([33,5,2,3,34])).then(r=>({default:r.SourcesRoute}))),W0=Q(()=>X(()=>import("./ToolsRoute-4Zggew2v.js"),__vite__mapDeps([35,2,3,1,5,9])).then(r=>({default:r.ToolsRoute}))),J0={path:"/providers",href:"/settings/providers",icon:"providers",label:"Providers",component:z0},K0={path:"/agents",href:"/settings/agents",icon:"task",label:"Agents",component:_0},G0={path:"/tools",href:"/settings/tools",icon:"code",label:"Tools",component:W0},Y0={path:"/mcp",href:"/settings/mcp",icon:"mcp",label:"MCP",component:P0},X0={path:"/permissions",href:"/settings/permissions",icon:"key",label:"Permissions",component:R0},Q0={path:"/formatters",href:"/settings/formatters",icon:"sliders",label:"Formatters",component:A0},e2={path:"/lsp",href:"/settings/lsp",icon:"server",label:"LSP Servers",component:D0},da=[{id:"general",label:"General",items:[{path:"/",href:"/settings",icon:"home",label:"Overview",component:O0}]},J0,{id:"models",label:"Models",items:[{path:"/models/default",href:"/settings/models/default",icon:"models",label:"Defaults",component:Z0},{path:"/models/explore",href:"/settings/models/explore",icon:"models",label:"Explore",component:F0}]},{id:"behaviour",label:"Behaviour",items:[K0,G0,X0,Y0,Q0,e2,{path:"/indexing",href:"/settings/indexing",icon:"circuit-board",label:"Code Indexing",component:T0}]},{id:"cli",label:"CLI",items:[{path:"/cli/ui",href:"/settings/cli/ui",icon:"sliders",label:"UI",component:j0},{path:"/cli/notifications",href:"/settings/cli/notifications",icon:"bubble-5",label:"Notifications",component:I0},{path:"/cli/keybinds",href:"/settings/cli/keybinds",icon:"keyboard",label:"Keybinds",component:S0}]},{id:"console",label:"Console",globalOnly:!0,items:[{path:"/console/ui",href:"/settings/console/ui",icon:"sliders",label:"UI",component:E0}]},{id:"advanced",label:"Advanced",items:[{path:"/servers",href:"/settings/servers",icon:"server",label:"Servers",component:N0},{path:"/sources",href:"/settings/sources",icon:"archive",label:"Sources",component:U0}]}];function t2(r){return"items"in r?r.items:[r]}const r2=[...da.flatMap(t2),{path:"/agents/new",href:"/settings/agents/new",icon:"task",label:"New Agent",component:dn},{path:"/agents/:agentID",href:"/settings/agents",icon:"task",label:"Edit Agent",component:dn},{path:"/models",href:"/settings/models/default",icon:"models",label:"Models",component:B0}],n2={apply_patch:"Apply Patch",bash:"Bash",edit:"Edit File",glob:"Find Files",grep:"Search Content",lsp:"Language Server",question:"Ask User",read:"Read File",recall:"Local Recall",skill:"Load Skill",task:"Subagent Task",todowrite:"Todo List",webfetch:"Fetch URL",websearch:"Web Search",write:"Write File"},a2={apply_patch:["Apply structured patches to add, update, move, or delete files.","Keeps edits explicit and easy to review."],bash:["Run shell commands in the current workspace.","Supports timeouts, working directories, and command descriptions."],edit:["Replace exact text inside an existing file.","Can update one match or all matches when needed."],glob:["Find files by path patterns.","Useful for locating files before reading or editing them."],grep:["Search file contents with regular expressions.","Can limit results to a file pattern such as TypeScript or CSS files."],lsp:["Use language-server features for code navigation.","Supports operations such as definitions, references, and diagnostics."],question:["Ask the user for a decision during execution.","Supports single-choice and multi-choice prompts."],read:["Read files, directories, images, and PDFs from the workspace.","Supports line offsets and limits for large files."],recall:["Search and read previous project conversations.","Useful for recovering prior decisions or implementation context."],skill:["Load task-specific instructions and workflows.","Applies specialized repo guidance when a matching skill exists."],task:["Delegate focused exploration or implementation work to a subagent.","Useful for parallel codebase research and complex subtasks."],todowrite:["Track multi-step implementation work.","Shows progress with pending, in-progress, and completed states."],webfetch:["Fetch and convert web pages for analysis.","Supports markdown, text, and HTML output formats."],websearch:["Search the web for external information.","Supports fast, automatic, and deep search modes."],write:["Create or overwrite files with complete contents.","Best for new files or full-file replacements."]},s2=new Set(["api","html","id","json","lsp","mcp","pdf","url"]);function Hr(r){return r.trim()}function o2(r){return r==null||r===""?"Not set":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r)??"Unserializable value"}function $7(r){return[...r].sort((e,t)=>e.localeCompare(t))}function H7(r){return r.split(/\s+/).map(e=>e.trim()).filter(Boolean)}function Vr(r){return r.trim().split(/[\s._/-]+/).filter(Boolean).map(e=>/^[A-Z0-9]+$/.test(e)&&e.length<=4?e:`${e[0]?.toUpperCase()??""}${e.slice(1).toLowerCase()}`).join(" ")}function i2(r){const e=r.toLowerCase();return s2.has(e)?e.toUpperCase():r.charAt(0).toUpperCase()+r.slice(1)}function fn(r){return r.length<=180?r:`${r.slice(0,177)}...`}function c2(r){const e=r.replace(/```[\s\S]*?```/g," ").replace(/[*`#>_-]+/g," ").replace(/\s+/g," ").trim(),t=e.split(/(?:\.|\?|!)\s+/).map(n=>n.trim()).filter(Boolean).slice(0,2);return t.length?t.map(fn):e?[fn(e)]:[]}function V7(r){const e=n2[r];if(e)return e;const t=r.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[._:/-]+/g," ").replace(/\s+/g," ").trim();return t?t.split(" ").map(i2).join(" "):r}function _7(r){const e=a2[r.id];if(e)return e;const t=r.detail?.description.trim();return t?c2(t):["No capability description is available for this tool."]}function I7(r){return r.split(",").map(e=>e.trim()).filter(Boolean)}function j7(r){return!r||typeof r!="object"||Array.isArray(r)?0:Object.keys(r).length}function l2(r){return r instanceof Error?r.message:typeof r=="string"?r:o2(r)}function E7(r){return r==="subagent"?"subagent":r==="all"?"all":"primary"}var d2=W('<div class=omni-results id=omni-search-results role=listbox aria-label="Search results">'),f2=W("<footer class=omni-footer><span class=omni-help><span class=omni-kbd>↑</span><span class=omni-kbd>↓</span>Navigate</span><span class=omni-help><span class=omni-kbd>↵</span>Open"),u2=W('<form class=omni-search role=search><div class=omni-search-head><span class=omni-command aria-hidden=true><svg class=omni-command-icon viewBox="0 0 24 24"fill=none><path d="M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10"></path></svg></span><input type=search aria-label="Omni search"aria-controls=omni-search-results><button class=omni-escape type=button aria-label="Close search">esc'),y2=W("<div class=omni-empty>No matches."),p2=W("<span class=omni-enter aria-hidden=true>↵"),h2=W("<button type=button class=omni-entry role=option><span class=omni-kind></span><span class=omni-label>"),m2=W("<span class=omni-sub>");const k2=new Set(["3017","3018"]);function yr(r){return r.get("server")?!1:k2.has(window.location.port)}function g2(r){const e=r.get("server");if(e)return e;const t=yr(r)?Fe():"";return t||(yr(r)?"":window.location.origin)}function b2(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function Ge(r,e){return`${r}${b2(e)}`}function w2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function v2(r){return Vr(r.name?.trim()||w2(r.worktree)||r.id.slice(0,8))}function x2(r){return r.length<=8?r:r.slice(0,8)}function C2(r){const e=[{kind:"NAV",label:"Projects",href:Ge("/projects",r)}];for(const t of da){if("items"in t){for(const n of t.items){const a=t.id==="general"?"Global Settings":`Global Settings · ${t.label}`;e.push({kind:"NAV",label:`${a} · ${n.label}`,href:Ge(n.href,r)})}continue}e.push({kind:"NAV",label:`Global Settings · ${t.label}`,href:Ge(t.href,r)})}return e.push({kind:"NAV",label:"Profile",href:Ge("/profile",r)}),e}function L2(r,e){return{kind:"PROJECT",label:v2(r),href:Ge(`/projects/${encodeURIComponent(r.id)}`,e),sub:x2(r.id),mono:!0}}function q2(r,e){return[...e].reduce((t,n)=>{if(t<0)return-1;const a=r.indexOf(n,t);return a<0?-1:a+1},0)>=0}function M2(r,e){const t=e.trim().toLowerCase();if(!t)return!0;const n=`${r.kind} ${r.label} ${r.sub??""}`.toLowerCase();return n.includes(t)?!0:q2(n,t)}function $2(){const r=It(),e=ws(),t=D(()=>new URLSearchParams(r.search)),n=()=>yr(t()),a=()=>g2(t()),[s,o]=U(a()),[i,c]=U(!1),[f,y]=U(""),[u,p]=U(0);let g,m;const h=D(()=>{const b=Hr(s())||a();if(b)return{url:b,dir:""}}),[w]=Mt(h,Pt),H=D(()=>[...C2(t()),...[...w()??[]].map(b=>L2(b,t()))]),_=D(()=>H().filter(b=>M2(b,f())));ee(()=>{document.body.classList.toggle("omni-search-open",i())}),fe(()=>document.body.classList.remove("omni-search-open"));function A(){c(!1),y(""),m?.blur()}function T(){c(!0),queueMicrotask(()=>m?.focus())}function q(b){b&&(e(b.href),A())}function x(b){const S=Math.max(_().length-1,0);p(v=>Math.min(Math.max(v+b,0),S))}function F(b){if(b.key==="Escape"&&i()){b.preventDefault(),A();return}if(i()){if(b.key==="ArrowDown"){b.preventDefault(),x(1);return}if(b.key==="ArrowUp"){b.preventDefault(),x(-1);return}b.key==="Enter"&&(b.preventDefault(),q(_()[u()]))}}function j(b){b.preventDefault(),i()&&q(_()[u()])}return ee(()=>{f(),p(0)}),ee(()=>{const b=t().get("server");b&&b!==s()&&o(b)}),ee(()=>{n()&&$r().then(b=>{b&&(qe(b),o(b))})}),ee(()=>{const b=h();!w()||!b||!n()||qe(b.url)}),ee(()=>{if(!w.error||!n())return;const b=Fe();!b||b!==s()||(Tt(),o(""),St().then(S=>{S&&(qe(S),o(S))}))}),$t(()=>{const b=v=>{if(!(!(v.metaKey||v.ctrlKey)||v.key.toLowerCase()!=="k")){if(v.preventDefault(),i()){A();return}T()}},S=v=>{if(!i())return;const M=v.target;M instanceof Node&&g?.contains(M)||A()};window.addEventListener("keydown",b),window.addEventListener("pointerdown",S),fe(()=>{window.removeEventListener("keydown",b),window.removeEventListener("pointerdown",S)})}),(()=>{var b=u2(),S=b.firstChild,v=S.firstChild,M=v.nextSibling,V=M.nextSibling;return b.addEventListener("submit",j),b.$$keydown=F,or(C=>g=C,b),S.$$pointerdown=C=>{C.target instanceof HTMLButtonElement||T()},M.$$input=C=>{y(C.currentTarget.value),c(!0)},M.addEventListener("focus",()=>c(!0)),or(C=>m=C,M),V.$$click=A,Z(b,$(ie,{get when(){return i()},get children(){return[(()=>{var C=d2();return Z(C,$(ie,{get when(){return _().length>0},get fallback(){return y2()},get children(){return $(Ye,{get each(){return _()},children:(E,N)=>(()=>{var J=h2(),he=J.firstChild,G=he.nextSibling;return J.$$mousemove=()=>p(N()),J.$$click=()=>q(E),Z(he,()=>E.kind),Z(G,()=>E.label),Z(J,$(ie,{get when(){return E.sub},children:re=>(()=>{var ae=m2();return Z(ae,re),ae})()}),null),Z(J,$(ie,{get when(){return N()===u()},get children(){return p2()}}),null),ne(re=>{var ae=N()===u(),ye=N()===u(),Ie=!!E.mono;return ae!==re.e&&J.classList.toggle("active",re.e=ae),ye!==re.t&&ce(J,"aria-selected",re.t=ye),Ie!==re.a&&G.classList.toggle("mono",re.a=Ie),re},{e:void 0,t:void 0,a:void 0}),J})()})}})),C})(),f2()]}}),null),ne(C=>{var E=!!i(),N=i()?"":"Search settings, projects, models...",J=i();return E!==C.e&&b.classList.toggle("expanded",C.e=E),N!==C.t&&ce(M,"placeholder",C.t=N),J!==C.a&&ce(M,"aria-expanded",C.a=J),C},{e:void 0,t:void 0,a:void 0}),ne(()=>M.value=f()),b})()}br(["keydown","pointerdown","input","click","mousemove"]);var H2=W('<img class="header-mark header-mark-logo"alt width=28 height=28>'),V2=W("<span class=header-title><span>Console"),_2=W('<header class=app-header><nav class=notification-zone aria-label="Notifications and status">');function I2(){return(()=>{var r=_2(),e=r.firstChild;return Z(r,$(Xe,{class:"header-brand",href:"/projects","aria-label":"Kilo Console home",get children(){return[(()=>{var t=H2();return ne(()=>ce(t,"src","/console/kilo-logo.svg")),t})(),V2()]}}),e),Z(r,$($2,{}),e),Z(e,$(Jt,{icon:"bubble-5",variant:"ghost","aria-label":"Notifications"}),null),Z(e,$(Jt,{icon:"help",variant:"ghost","aria-label":"Help"}),null),Z(e,$(Jt,{icon:"circle-check",variant:"ghost","aria-label":"System status"}),null),r})()}function _r(){return"/console/".replace(/\/$/,"")}function Ir(r,e=_r()){return!e||e==="/"?r:r===e?"/":r.startsWith(`${e}/`)?r.slice(e.length):r}function A7(r,e=_r()){const t=Ir(r,e),n=t.indexOf("/settings");return n>0?`${t.slice(0,n)}/settings`:t.startsWith("/config")?"/config":"/settings"}function j2(r,e=_r()){const t=Ir(r,e);return t==="/profile"||t.startsWith("/kilo/login")?"/profile":t.startsWith("/settings")||t.startsWith("/config")?"/settings":t.startsWith("/projects/")?"/project":"/projects"}const[E2,fa]=U(new Map),[A2,ua]=U(new Map),[D2,ya]=U(new Map),[T2,pa]=U(new Map);function Ft(r,e,t){r(n=>{if(n.get(e)?.has(t))return n;const a=new Map(n);return a.set(e,new Set([...n.get(e)??[],t])),a})}function Zt(r,e,t){r(n=>{const a=n.get(e);if(!a?.has(t))return n;const s=new Map(n),o=new Set(a);return o.delete(t),o.size===0?s.delete(e):s.set(e,o),s})}const S2=(r,e)=>Ft(fa,r,e),Gt=(r,e)=>Zt(fa,r,e),un=(r,e)=>Ft(ua,r,e),Yt=(r,e)=>Zt(ua,r,e),P2=(r,e)=>Ft(ya,r,e),F2=(r,e)=>Zt(ya,r,e),yn=(r,e)=>Ft(pa,r,e),Xt=(r,e)=>Zt(pa,r,e);function Z2(r){return(E2().get(r)?.size??0)>0?"error":(A2().get(r)?.size??0)>0?"attention":(D2().get(r)?.size??0)>0?"unread":(T2().get(r)?.size??0)>0?"busy":"idle"}function pr(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function B2(r,e){const t=pr(r),n=pr(e);return n===t||n.startsWith(`${t}/`)}function O2(r,e){let t,n=-1;for(const a of r)for(const s of[a.worktree,...a.sandboxes])if(B2(s,e)){const o=pr(s).length;o>n&&(n=o,t=a)}return t}function R2(r){const e=r.payload;return e.type?e.type!=="sync"?e.type:typeof e.name=="string"?e.name:typeof e.syncEvent?.type=="string"?e.syncEvent.type:"":""}function z2(r){const e=r.payload,n=(e.properties??e.data)?.sessionID;return typeof n=="string"?n:void 0}var N2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2">'),U2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37.996 .608 2.296 .07 2.572 -1.065z"></path><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0">'),W2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path><path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2">'),J2=W('<aside class=rail aria-label="Primary navigation"><nav class=rail-nav aria-label=Primary></nav><div class=rail-favorites aria-label="Projects with recent sessions"></div><nav class=rail-bottom aria-label="Account and settings">');const K2=new Set(["3017","3018"]);function hr(r){return r.get("server")?!1:K2.has(window.location.port)}function G2(r){const e=r.get("server");if(e)return e;const t=hr(r)?Fe():"";return t||(hr(r)?"":window.location.origin)}function Y2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function mr(r){return Vr(r.name?.trim()||Y2(r.worktree)||r.id.slice(0,8))}function X2(r){const e=mr(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function ha(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function Q2(r,e){return`/projects/${encodeURIComponent(r.id)}${ha(e)}`}function pn(r){return r.name==="projects"?N2():r.name==="settings"?U2():W2()}function ey(r){const e=It(),t=D(()=>new URLSearchParams(e.search)),n=D(()=>Ir(e.pathname)),a=()=>hr(t()),s=()=>G2(t()),[o,i]=U(s()),c={refetch:void 0},f=D(()=>{const q=Hr(o())||s();if(q)return{url:q,dir:""}}),[y,{refetch:u}]=Mt(f,L0),p=new Map,g=D(()=>{const q=n().match(/^\/projects\/([^/]+)/);return q?decodeURIComponent(q[1]):void 0}),m=()=>`/settings${ha(t())}`,h=q=>n().startsWith(`/projects/${encodeURIComponent(q.id)}/`)||n()===`/projects/${encodeURIComponent(q.id)}`,w=()=>[{href:"/projects",label:"Projects",name:"projects",path:"/projects"}],H=()=>[{href:"/profile",label:"Profile",name:"profile",path:"/profile"},{href:m(),label:"Settings",name:"settings",path:"/settings"}];function _(){c.refetch||(c.refetch=window.setTimeout(()=>{c.refetch=void 0,u()},150))}function A(q,x,F){const j=`${q}\0${x}\0${F}`,b=(p.get(j)??0)+1;return p.set(j,b),{key:j,rev:b}}function T(q,x,F,j,b,S,v){const M=A(q,F,b);$0(x,j).then(V=>{p.get(M.key)===M.rev&&(V.has(b)?S():v())}).catch(V=>console.warn("Project open sessions:",V))}return ee(()=>{const q=t().get("server");q&&q!==o()&&i(q)}),ee(()=>{a()&&$r().then(q=>{q&&(qe(q),i(q))})}),ee(()=>{const q=f();!y()||!q||!a()||qe(q.url)}),ee(()=>{if(!y.error||!a())return;const q=Fe();!q||q!==o()||(Tt(),i(""),St().then(x=>{x&&(qe(x),i(x))}))}),ee(()=>{if(!f())return;const q=window.setInterval(()=>{u()},5e3);fe(()=>window.clearInterval(q))}),ee(()=>{const q=y(),x=f();if(!(!q||!x))for(const F of q)M0(x,F.worktree).then(j=>{j.busy?yn(F.id,"__hydrated__"):Xt(F.id,"__hydrated__"),j.attention?un(F.id,"__hydrated__"):Yt(F.id,"__hydrated__")}).catch(j=>console.warn("Project live status:",j))}),ee(()=>{const q=f();if(!q)return;const x=V0(q,F=>{const j=F,b=y()??[],S=R2(j);if((S.startsWith("session.created")||S.startsWith("session.updated")||S.startsWith("session.deleted"))&&_(),!b.length||!j.directory)return;const v=O2(b,j.directory);if(!v)return;const M=z2(j);if(S==="session.turn.close"){const V=j.payload.properties;if(!M)return;if(V?.reason==="error"){T("error",q,v.id,j.directory,M,()=>S2(v.id,M),()=>Gt(v.id,M));return}A("error",v.id,M),Gt(v.id,M),V?.reason==="completed"&&v.id!==g()&&T("unread",q,v.id,j.directory,M,()=>P2(v.id,M),()=>F2(v.id,M));return}if(S==="permission.asked"||S==="question.asked"){if(!M)return;T("attention",q,v.id,j.directory,M,()=>un(v.id,M),()=>Yt(v.id,M));return}if(S==="permission.replied"||S==="permission.rejected"||S==="question.replied"||S==="question.rejected"){if(!M)return;A("attention",v.id,M),Yt(v.id,M);return}if(S==="session.status"){const C=j.payload.properties?.status?.type;if(!M)return;C==="busy"||C==="retry"?T("busy",q,v.id,j.directory,M,()=>yn(v.id,M),()=>Xt(v.id,M)):C==="idle"&&(A("busy",v.id,M),A("error",v.id,M),Xt(v.id,M),Gt(v.id,M));return}});fe(x)}),fe(()=>{c.refetch&&window.clearTimeout(c.refetch),p.clear()}),(()=>{var q=J2(),x=q.firstChild,F=x.nextSibling,j=F.nextSibling;return Z(x,$(Ye,{get each(){return w()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),Z(F,$(Ye,{get each(){return y()??[]},children:b=>{const S=()=>Z2(b.id);return $(Xe,{class:"favorite-project",get classList(){return{active:h(b),"status-error":S()==="error","status-attention":S()==="attention","status-unread":S()==="unread","status-busy":S()==="busy"}},get href(){return Q2(b,t())},get"aria-label"(){return mr(b)},get"aria-current"(){return h(b)?"page":void 0},get title(){return mr(b)},get children(){return X2(b)}})}})),Z(j,$(Ye,{get each(){return H()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),q})()}var ty=W('<div class="console-shell kilo-console dark"><div class=console-body><main class=console-main>');function ry(r){return(()=>{var e=ty(),t=e.firstChild,n=t.firstChild;return Z(e,$(I2,{}),t),Z(t,$(ey,{get path(){return r.path}}),n),Z(n,()=>r.children),e})()}function ny(r){const e=It(),t=D(()=>j2(e.pathname));return $(o1,{defaultTheme:"kilo",get children(){return $(ry,{get path(){return t()},get children(){return $(Sa,{get fallback(){return $(ur,{variant:"fullscreen"})},get children(){return r.children}})}})}})}function ay(r,e){const t=Object.fromEntries(Object.entries(e).filter(n=>n[1]!==void 0));if(typeof r=="string"){const n=Object.entries(t).map(a=>`${a[0]}:${a[1]}`).join(";");return n?`${r};${n}`:r}return{...r??{},...t}}var sy=W("<div>");function Qt(r){const[e,t]=Me(r,["variant","size","padding","style","class","classList","children"]),n=()=>typeof e.padding=="number"?`${e.padding}px`:e.padding;return(()=>{var a=sy();return Ne(a,pe(t,{"data-component":"card",get"data-variant"(){return e.variant??"normal"},get"data-size"(){return e.size??"default"},get style(){return ay(e.style,{"--kw-card-padding":n()})},get classList(){return{...e.classList,[e.class??""]:!!e.class}}}),!1,!0),Z(a,()=>e.children),a})()}var oy=W("<label data-component=search-field><span data-slot=search-label></span><input>");function iy(r){const[e,t]=Me(r,["label","value","variant","hideLabel","inputClass","class","classList","onValue"]);return(()=>{var n=oy(),a=n.firstChild,s=a.nextSibling;return Z(a,()=>e.label),Ne(s,pe(t,{get class(){return e.inputClass},type:"search",get value(){return e.value},get"aria-label"(){return Le(()=>e.hideLabel===!1)()?void 0:e.label},onInput:o=>e.onValue(o.currentTarget.value)}),!1,!1),ne(o=>{var i=e.variant??"list",c=e.hideLabel===!1?"visible":"hidden",f={...e.classList,[e.class??""]:!!e.class};return i!==o.e&&ce(n,"data-variant",o.e=i),c!==o.t&&ce(n,"data-label",o.t=c),o.a=Vn(n,f,o.a),o},{e:void 0,t:void 0,a:void 0}),n})()}var cy=W("<strong>Project request failed"),ly=W("<span>"),dy=W('<section class=route-empty><div class=projects-page><header class=projects-header><h1>Projects <span class=count-tag></span></h1><p>Projects opened with this Kilo server. Selecting a project opens its console.</p></header><ul class=project-list aria-label="Kilo projects">'),fy=W("<span class=project-icon aria-hidden=true>"),uy=W('<span class=project-body><span class=project-title><strong></strong><span></span></span><span class=project-meta><span class=project-git aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M6 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6 8v4a3 3 0 0 0 3 3h6"></path><path d="M14 12l3 3l-3 3"></path></svg></span><span class=project-folder></span><span aria-hidden=true>·</span><span>'),yy=W('<span class=project-arrow aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M9 6l6 6l-6 6">'),py=W("<li>");const jr=new URLSearchParams(window.location.search),hy=new Set(["3017","3018"]);function Be(){return jr.get("server")?!1:hy.has(window.location.port)}function hn(){const r=jr.get("server");if(r)return r;const e=Be()?Fe():"";return e||(Be()?"":window.location.origin)}function my(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function Er(r){return Vr(r.name?.trim()||my(r.worktree)||r.id.slice(0,8))}function ky(r){const e=Er(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function gy(r){const e=new URLSearchParams,t=jr.get("server");t&&e.set("server",t);const n=e.toString();return`/projects/${encodeURIComponent(r.id)}${n?`?${n}`:""}`}function by(r){return r.length<=8?r:r.slice(0,8)}function wy(r){const e=Math.max(0,Date.now()-r),t=60*1e3,n=60*t,a=24*n;if(e<t)return"just now";if(e<n)return`${Math.floor(e/t)} minutes ago`;if(e<a)return`${Math.floor(e/n)} hours ago`;const s=Math.floor(e/a);return s===1?"yesterday":`${s} days ago`}function vy(r,e){const t=e.trim().toLowerCase();return t?`${Er(r)} ${r.id} ${r.worktree}`.toLowerCase().includes(t):!0}function mn(){const[r,e]=U(hn()),[t,n]=U(""),a=D(()=>{const c=Hr(r())||hn();if(c)return{url:c,dir:""}}),[s]=Mt(a,Pt),o=D(()=>[...s()??[]].sort((c,f)=>f.time.updated-c.time.updated)),i=D(()=>o().filter(c=>vy(c,t())));return ee(()=>{Be()&&$r().then(c=>{c&&(qe(c),e(c))})}),ee(()=>{const c=a();!s()||!c||!Be()||qe(c.url)}),ee(()=>{if(!s.error||!Be())return;const c=Fe();!c||c!==r()||(Tt(),e(""),St().then(f=>{f&&(qe(f),e(f))}))}),(()=>{var c=dy(),f=c.firstChild,y=f.firstChild,u=y.firstChild,p=u.firstChild,g=p.nextSibling,m=y.nextSibling;return Z(g,()=>o().length),Z(f,$(ie,{get when(){return Le(()=>!a())()&&Be()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return Le(()=>!!s.loading)()&&!s()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return s.error},get children(){return $(Qt,{class:"banner",variant:"error",get children(){return[cy(),(()=>{var h=ly();return Z(h,()=>l2(s.error)),h})()]}})}}),m),Z(f,$(iy,{label:"Filter projects",get value(){return t()},placeholder:"Filter projects...",onValue:n}),m),Z(f,$(ie,{get when(){return Le(()=>!!(a()&&!s.loading&&o().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No projects have been opened with this Kilo server yet."})}}),m),Z(f,$(ie,{get when(){return Le(()=>!!(a()&&!s.loading&&o().length>0&&i().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No matches. Clear the filter or open a project from the CLI."})}}),m),Z(m,$(Ye,{get each(){return i()},children:h=>(()=>{var w=py();return Z(w,$(Xe,{class:"project-row",get href(){return gy(h)},get children(){return[(()=>{var H=fy();return Z(H,()=>ky(h)),H})(),(()=>{var H=uy(),_=H.firstChild,A=_.firstChild,T=A.nextSibling,q=_.nextSibling,x=q.firstChild,F=x.nextSibling,j=F.nextSibling,b=j.nextSibling;return Z(A,()=>Er(h)),Z(T,()=>by(h.id)),Z(F,()=>h.worktree),Z(b,()=>wy(h.time.updated)),H})(),yy()]}})),w})()})),c})()}const xy=Q(()=>X(()=>import("./ProjectConsoleRoute-CLlQ-PGV.js"),__vite__mapDeps([36,3,1,15,5,23,37,38])).then(r=>({default:r.ProjectConsoleRoute}))),er=Q(()=>X(()=>import("./ConfigLayout-OMB5ZnC4.js"),__vite__mapDeps([39,5,40,38,27])).then(r=>({default:r.ConfigLayout}))),Cy=Q(()=>X(()=>import("./ProfileRoute-Dw29CvtG.js"),__vite__mapDeps([41,1,42,43])).then(r=>({default:r.ProfileRoute}))),Ly=Q(()=>X(()=>import("./LoginRoute-1iBkjgbb.js"),__vite__mapDeps([44,1,42,43])).then(r=>({default:r.LoginRoute}))),ma=document.getElementById("root");if(!ma)throw new Error("Missing root element");const qy="/console/".replace(/\/$/,"");function tr(){return r2.map(r=>$(ve,{get path(){return r.path},get component(){return r.component}}))}Ja(()=>$(Ts,{root:ny,base:qy||void 0,get children(){return[$(ve,{path:"/projects",component:mn}),$(ve,{path:"/projects/:project",component:xy}),$(ve,{path:"/projects/:project/settings",component:er,get children(){return tr()}}),$(ve,{path:"/profile",component:Cy}),$(ve,{path:"/kilo/login",component:Ly}),$(ve,{path:"/settings",component:er,get children(){return tr()}}),$(ve,{path:"/config",component:er,get children(){return tr()}}),$(ve,{path:"*",component:mn})]}}),ma);export{j7 as $,Xe as A,Hn as B,Qt as C,_7 as D,V7 as E,Ye as F,Me as G,pe as H,R1 as I,Gn as J,Ne as K,ur as L,Vy as M,Se as N,st as O,M7 as P,$7 as Q,q7 as R,ie as S,E7 as T,Vr as U,jy as V,A7 as W,Jt as X,o2 as Y,Xa as Z,k7 as _,ws as a,_1 as a$,X as a0,$t as a1,or as a2,y7 as a3,p7 as a4,Fe as a5,Tt as a6,St as a7,qe as a8,$r as a9,l7 as aA,s7 as aB,i7 as aC,o7 as aD,Ay as aE,p1 as aF,By as aG,te as aH,Ty as aI,Pr as aJ,Uy as aK,V1 as aL,Jy as aM,w1 as aN,Wy as aO,zy as aP,Un as aQ,Kn as aR,I1 as aS,y1 as aT,Oy as aU,E1 as aV,Ry as aW,Zy as aX,Ny as aY,Z1 as aZ,Vn as a_,H7 as aa,I7 as ab,Xy as ac,Ir as ad,C0 as ae,Yy as af,h7 as ag,la as ah,m7 as ai,L7 as aj,da as ak,w7 as al,g7 as am,b7 as an,a1 as ao,u7 as ap,Q as aq,a7 as ar,c7 as as,kr as at,V0 as au,Sa as av,F2 as aw,P2 as ax,d7 as ay,f7 as az,Mt as b,m1 as b0,Ky as b1,Ey as b2,Dy as b3,Fy as b4,vn as b5,Os as b6,Iy as b7,C7 as b8,x7 as b9,v7 as ba,Sy as bb,I as bc,Ae as bd,et as be,Py as bf,D as c,U as d,ee as e,$ as f,ne as g,br as h,Z as i,l2 as j,t7 as k,Qy as l,Le as m,e7 as n,fe as o,Hy as p,r7 as q,n7 as r,ce as s,W as t,It as u,Ya as v,iy as w,_y as x,Hr as y,$y as z};
19
+ `);try{J=JSON.parse(G),he=!0}catch{J=G}}he&&(a&&await a(J),n&&(J=await n(J))),t?.({data:J,event:N,id:u,retry:h}),E.length&&(yield J)}}}finally{H.removeEventListener("abort",b),F.releaseLock()}break}catch(A){if(e?.(A),o!==void 0&&w>=o)break;const T=Math.min(h*2**(w-1),i??3e4);await p(T)}}}()}}const W1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},J1=r=>{switch(r){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},K1=r=>{switch(r){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Qn=({allowReserved:r,explode:e,name:t,style:n,value:a})=>{if(!e){const i=(r?a:a.map(c=>encodeURIComponent(c))).join(J1(n));switch(n){case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;case"simple":return i;default:return`${t}=${i}`}}const s=W1(n),o=a.map(i=>n==="label"||n==="simple"?r?i:encodeURIComponent(i):jt({allowReserved:r,name:t,value:i})).join(s);return n==="label"||n==="matrix"?s+o:o},jt=({allowReserved:r,name:e,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${r?t:encodeURIComponent(t)}`},ea=({allowReserved:r,explode:e,name:t,style:n,value:a,valueOnly:s})=>{if(a instanceof Date)return s?a.toISOString():`${t}=${a.toISOString()}`;if(n!=="deepObject"&&!e){let c=[];Object.entries(a).forEach(([y,u])=>{c=[...c,y,r?u:encodeURIComponent(u)]});const f=c.join(",");switch(n){case"form":return`${t}=${f}`;case"label":return`.${f}`;case"matrix":return`;${t}=${f}`;default:return f}}const o=K1(n),i=Object.entries(a).map(([c,f])=>jt({allowReserved:r,name:n==="deepObject"?`${t}[${c}]`:c,value:f})).join(o);return n==="label"||n==="matrix"?o+i:i},G1=/\{[^{}]+\}/g,Y1=({path:r,url:e})=>{let t=e;const n=e.match(G1);if(n)for(const a of n){let s=!1,o=a.substring(1,a.length-1),i="simple";o.endsWith("*")&&(s=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),i="label"):o.startsWith(";")&&(o=o.substring(1),i="matrix");const c=r[o];if(c==null)continue;if(Array.isArray(c)){t=t.replace(a,Qn({explode:s,name:o,style:i,value:c}));continue}if(typeof c=="object"){t=t.replace(a,ea({explode:s,name:o,style:i,value:c,valueOnly:!0}));continue}if(i==="matrix"){t=t.replace(a,`;${jt({name:o,value:c})}`);continue}const f=encodeURIComponent(i==="label"?`.${c}`:c);t=t.replace(a,f)}return t},X1=({baseUrl:r,path:e,query:t,querySerializer:n,url:a})=>{const s=a.startsWith("/")?a:`/${a}`;let o=(r??"")+s;e&&(o=Y1({path:e,url:o}));let i=t?n(t):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(o+=`?${i}`),o};function en(r){const e=r.body!==void 0;if(e&&r.bodySerializer)return"serializedBody"in r?r.serializedBody!==void 0&&r.serializedBody!==""?r.serializedBody:null:r.body!==""?r.body:null;if(e)return r.body}const Q1=async(r,e)=>{const t=typeof e=="function"?await e(r):e;if(t)return r.scheme==="bearer"?`Bearer ${t}`:r.scheme==="basic"?`Basic ${btoa(t)}`:t},ef={bodySerializer:r=>JSON.stringify(r,(e,t)=>typeof t=="bigint"?t.toString():t)},ta=({parameters:r={},...e}={})=>n=>{const a=[];if(n&&typeof n=="object")for(const s in n){const o=n[s];if(o==null)continue;const i=r[s]||e;if(Array.isArray(o)){const c=Qn({allowReserved:i.allowReserved,explode:!0,name:s,style:"form",value:o,...i.array});c&&a.push(c)}else if(typeof o=="object"){const c=ea({allowReserved:i.allowReserved,explode:!0,name:s,style:"deepObject",value:o,...i.object});c&&a.push(c)}else{const c=jt({allowReserved:i.allowReserved,name:s,value:o});c&&a.push(c)}}return a.join("&")},tf=r=>{if(!r)return"stream";const e=r.split(";")[0]?.trim();if(e){if(e.startsWith("application/json")||e.endsWith("+json"))return"json";if(e==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>e.startsWith(t)))return"blob";if(e.startsWith("text/"))return"text"}},rf=(r,e)=>e?!!(r.headers.has(e)||r.query?.[e]||r.headers.get("Cookie")?.includes(`${e}=`)):!1;async function nf(r){for(const e of r.security??[]){if(rf(r,e.name))continue;const t=await Q1(e,r.auth);if(!t)continue;const n=e.name??"Authorization";switch(e.in){case"query":r.query||(r.query={}),r.query[n]=t;break;case"cookie":r.headers.append("Cookie",`${n}=${t}`);break;default:r.headers.set(n,t);break}}}const tn=r=>X1({baseUrl:r.baseUrl,path:r.path,query:r.query,querySerializer:typeof r.querySerializer=="function"?r.querySerializer:ta(r.querySerializer),url:r.url}),rn=(r,e)=>{const t={...r,...e};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=ra(r.headers,e.headers),t},af=r=>{const e=[];return r.forEach((t,n)=>{e.push([n,t])}),e},ra=(...r)=>{const e=new Headers;for(const t of r){if(!t)continue;const n=t instanceof Headers?af(t):Object.entries(t);for(const[a,s]of n)if(s===null)e.delete(a);else if(Array.isArray(s))for(const o of s)e.append(a,o);else s!==void 0&&e.set(a,typeof s=="object"?JSON.stringify(s):s)}return e};class Kt{fns=[];clear(){this.fns=[]}eject(e){const t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){const t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return typeof e=="number"?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){const n=this.getInterceptorIndex(e);return this.fns[n]?(this.fns[n]=t,e):!1}use(e){return this.fns.push(e),this.fns.length-1}}const sf=()=>({error:new Kt,request:new Kt,response:new Kt}),of=ta({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),cf={"Content-Type":"application/json"},na=(r={})=>({...ef,headers:cf,parseAs:"auto",querySerializer:of,...r}),aa=(r={})=>{let e=rn(na(),r);const t=()=>({...e}),n=y=>(e=rn(e,y),t()),a=sf(),s=async y=>{const u={...e,...y,fetch:y.fetch??e.fetch??globalThis.fetch,headers:ra(e.headers,y.headers),serializedBody:void 0};u.security&&await nf(u),u.requestValidator&&await u.requestValidator(u),u.body!==void 0&&u.bodySerializer&&(u.serializedBody=u.bodySerializer(u.body)),(u.body===void 0||u.serializedBody==="")&&u.headers.delete("Content-Type");const p=u,g=tn(p);return{opts:p,url:g}},o=async y=>{const u=y.throwOnError??e.throwOnError,p=y.responseStyle??e.responseStyle;let g,m;try{const{opts:h,url:w}=await s(y),H={redirect:"follow",...h,body:en(h)};g=new Request(w,H);for(const x of a.request.fns)x&&(g=await x(g,h));const _=h.fetch;m=await _(g);for(const x of a.response.fns)x&&(m=await x(m,g,h));const A={request:g,response:m};if(m.ok){const x=(h.parseAs==="auto"?tf(m.headers.get("Content-Type")):h.parseAs)??"json";if(m.status===204||m.headers.get("Content-Length")==="0"){let j;switch(x){case"arrayBuffer":case"blob":case"text":j=await m[x]();break;case"formData":j=new FormData;break;case"stream":j=m.body;break;default:j={};break}return h.responseStyle==="data"?j:{data:j,...A}}let F;switch(x){case"arrayBuffer":case"blob":case"formData":case"text":F=await m[x]();break;case"json":{const j=await m.text();F=j?JSON.parse(j):{};break}case"stream":return h.responseStyle==="data"?m.body:{data:m.body,...A}}return x==="json"&&(h.responseValidator&&await h.responseValidator(F),h.responseTransformer&&(F=await h.responseTransformer(F))),h.responseStyle==="data"?F:{data:F,...A}}const T=await m.text();let q;try{q=JSON.parse(T)}catch{}throw q??T}catch(h){let w=h;for(const H of a.error.fns)H&&(w=await H(w,m,g,y));if(w=w||{},u)throw w;return p==="data"?void 0:{error:w,request:g,response:m}}},i=y=>u=>o({...u,method:y}),c=y=>async u=>{const{opts:p,url:g}=await s(u);return U1({...p,body:p.body,method:y,onRequest:async(m,h)=>{let w=new Request(m,h);for(const H of a.request.fns)H&&(w=await H(w,p));return w},serializedBody:en(p),url:g})};return{buildUrl:y=>tn({...e,...y}),connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:t,head:i("HEAD"),interceptors:a,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:o,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:i("TRACE")}},lf={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},df=Object.entries(lf),sa=(r,e)=>{e||(e=new Map);for(const t of r)"in"in t?t.key&&e.set(t.key,{in:t.in,map:t.map}):"key"in t?e.set(t.key,{map:t.map}):t.args&&sa(t.args,e);return e},ff=r=>{for(const[e,t]of Object.entries(r))t&&typeof t=="object"&&!Array.isArray(t)&&!Object.keys(t).length&&delete r[e]},d=(r,e)=>{const t={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},n=sa(e);let a;for(const[s,o]of r.entries())if(e[s]&&(a=e[s]),!!a)if("in"in a)if(a.key){const i=n.get(a.key),c=i.map||a.key;i.in&&(t[i.in][c]=o)}else t.body=o;else for(const[i,c]of Object.entries(o??{})){const f=n.get(i);if(f)if(f.in){const y=f.map||i;t[f.in][y]=c}else t[f.map]=c;else{const y=df.find(([u])=>i.startsWith(u));if(y){const[u,p]=y;t[p][i.slice(u.length)]=c}else if("allowExtra"in a&&a.allowExtra){for(const[u,p]of Object.entries(a.allowExtra))if(p){t[u][i]=c;break}}}}return ff(t),t},uf=aa(na({baseUrl:"http://localhost:4096"}));class k{client;constructor(e){this.client=e?.client??uf}}class yf{defaultKey="default";instances=new Map;get(e){const t=this.instances.get(e??this.defaultKey);if(!t)throw new Error('No SDK client found. Create one with "new KiloClient()" to fix this error.');return t}set(e,t){this.instances.set(t??this.defaultKey,e)}}class pf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"}]}]);return(t?.client??this.client).delete({url:"/auth/{providerID}",...t,...n})}set(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return(t?.client??this.client).put({url:"/auth/{providerID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}let hf=class extends k{log(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/log",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}agents(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/agent",...t,...n})}skills(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/skill",...t,...n})}};class mf extends k{moveSession(e,t){const n=d([e],[{args:[{in:"body",key:"sessionID"},{in:"body",key:"destination"},{in:"body",key:"moveChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/control-plane/move-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class kf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/capabilities",...t,...n})}}class gf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console",...t,...n})}listOrgs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/console/orgs",...t,...n})}switchOrg(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return(t?.client??this.client).post({url:"/experimental/console/switch",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"projectID"},{in:"query",key:"worktrees"},{in:"query",key:"current"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return(t?.client??this.client).get({url:"/experimental/session",...t,...n})}background(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/session/{sessionID}/background",...t,...n})}}class wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/resource",...t,...n})}}class vf extends k{generateName(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"context"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/generate-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/adapter",...t,...n})}}class Cf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}syncList(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/sync-list",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/workspace/status",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/experimental/workspace/{id}",...t,...n})}warp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"copyChanges"}]}]);return(t?.client??this.client).post({url:"/experimental/workspace/warp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_adapter;get adapter(){return this._adapter??=new xf({client:this.client})}}class Lf extends k{_controlPlane;get controlPlane(){return this._controlPlane??=new mf({client:this.client})}_capabilities;get capabilities(){return this._capabilities??=new kf({client:this.client})}_console;get console(){return this._console??=new gf({client:this.client})}_session;get session(){return this._session??=new bf({client:this.client})}_resource;get resource(){return this._resource??=new wf({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new vf({client:this.client})}_workspace;get workspace(){return this._workspace??=new Cf({client:this.client})}}class qf extends k{get(e){return(e?.client??this.client).get({url:"/global/config",...e})}update(e,t){const n=d([e],[{args:[{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/global/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Mf extends k{health(e){return(e?.client??this.client).get({url:"/global/health",...e})}event(e){return(e?.client??this.client).sse.get({url:"/global/event",...e})}dispose(e){return(e?.client??this.client).post({url:"/global/dispose",...e})}upgrade(e,t){const n=d([e],[{args:[{in:"body",key:"target"}]}]);return(t?.client??this.client).post({url:"/global/upgrade",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_config;get config(){return this._config??=new qf({client:this.client})}}class $f extends k{subscribe(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).sse.get({url:"/event",...t,...n})}}class Hf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return(t?.client??this.client).patch({url:"/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/warnings",...t,...n})}providers(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/providers",...t,...n})}overlay(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/overlay",...t,...n})}overlayUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"set"},{in:"body",key:"unset"},{in:"body",key:"expected"}]}]);return(t?.client??this.client).patch({url:"/config/overlay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sources(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/sources",...t,...n})}effective(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/effective",...t,...n})}rules(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).get({url:"/config/rules",...t,...n})}rulesUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"scope"},{in:"body",key:"content"}]}]);return(t?.client??this.client).put({url:"/config/rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}modelState(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/config/model-state",...t,...n})}modelStateUpdate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"favorite"}]}]);return(t?.client??this.client).patch({url:"/config/model-state",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Vf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return(t?.client??this.client).get({url:"/experimental/tool",...t,...n})}ids(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/tool/ids",...t,...n})}}class _f extends k{remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return(t?.client??this.client).delete({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reset(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return(t?.client??this.client).post({url:"/experimental/worktree/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff",...t,...n})}diffSummary(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/summary",...t,...n})}diffFile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"base"},{in:"query",key:"file"}]}]);return(t?.client??this.client).get({url:"/experimental/worktree/diff/file",...t,...n})}}class If extends k{text(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return(t?.client??this.client).get({url:"/find",...t,...n})}files(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/find/file",...t,...n})}symbols(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return(t?.client??this.client).get({url:"/find/symbol",...t,...n})}}class jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file",...t,...n})}read(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/file/content",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/file/status",...t,...n})}}class Ef extends k{dispose(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/dispose",...t,...n})}reload(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/instance/reload",...t,...n})}}class Af extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/path",...t,...n})}}class Df extends k{raw(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/diff/raw",...t,...n})}}class Tf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/vcs/status",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"},{in:"query",key:"context"}]}]);return(t?.client??this.client).get({url:"/vcs/diff",...t,...n})}apply(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"patch"}]}]);return(t?.client??this.client).post({url:"/vcs/apply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_diff;get diff2(){return this._diff??=new Df({client:this.client})}}class Sf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/command",...t,...n})}}class Pf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/lsp",...t,...n})}}class Ff extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/formatter",...t,...n})}}class Zf extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/mcp/{name}/auth",...t,...n})}start(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth",...t,...n})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}authenticate(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...t,...n})}}class Bf extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/mcp",...t,...n})}add(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return(t?.client??this.client).post({url:"/mcp",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/connect",...t,...n})}disconnect(e,t){const n=d([e],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/mcp/{name}/disconnect",...t,...n})}readResource(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"uri"},{in:"body",key:"server"}]}]);return(t?.client??this.client).post({url:"/experimental/resource/read",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callTool(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"server"},{in:"body",key:"name"},{in:"body",key:"arguments"}]}]);return(t?.client??this.client).post({url:"/experimental/mcp/call-tool",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_auth;get auth(){return this._auth??=new Zf({client:this.client})}}class Of extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project",...t,...n})}current(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/current",...t,...n})}initGit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/project/git/init",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).patch({url:"/project/{projectID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}directories(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/project/{projectID}/directories",...t,...n})}}class Rf extends k{shells(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/shells",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).put({url:"/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"ticket"}]}]);return(t?.client??this.client).get({url:"/pty/{ptyID}/connect",...t,...n})}}class zf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/question/{requestID}/reject",...t,...n})}}class Nf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/permission",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"},{in:"body",key:"interactive"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}saveAlwaysRules(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"approvedAlways"},{in:"body",key:"deniedAlways"}]}]);return(t?.client??this.client).post({url:"/permission/{requestID}/always-rules",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}allowEverything(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enable"},{in:"body",key:"requestID"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/permission/allow-everything",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}respond(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Uf extends k{authorize(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}callback(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Wf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider",...t,...n})}auth(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/provider/auth",...t,...n})}_oauth;get oauth(){return this._oauth??=new Uf({client:this.client})}}class Jf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"query",key:"path"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"title"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"platform"},{in:"body",key:"workspaceID"},{in:"body",key:"sandboxInheritanceToken"}]}]);return(t?.client??this.client).post({url:"/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/status",...t,...n})}delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"metadata"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}children(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/children",...t,...n})}todo(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/todo",...t,...n})}diff(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"},{in:"query",key:"file"},{in:"query",key:"full"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/diff",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message",...t,...n})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}deleteMessage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"queued"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...t,...n})}fork(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/fork",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}abort(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/abort",...t,...n})}init(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/init",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unshare(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/share",...t,...n})}share(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/share",...t,...n})}summarize(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/summarize",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}promptAsync(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"agent"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"editorContext"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}command(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"snapshotInitialization"},{in:"body",key:"parts"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}shell(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/shell",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}revert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/revert",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}unrevert(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/unrevert",...t,...n})}viewed(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"viewer"},{in:"body",key:"attached"},{in:"body",key:"visible"}]}]);return(t?.client??this.client).post({url:"/session/viewed",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Kf extends k{delete(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return(t?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Gf extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/sync/history",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Yf extends k{start(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/sync/start",...t,...n})}replay(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return(t?.client??this.client).post({url:"/sync/replay",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}steal(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/sync/steal",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_history;get history(){return this._history??=new Gf({client:this.client})}}class Xf extends k{next(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/control/next",...t,...n})}response(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/control/response",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Qf extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/config",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"scope"},{in:"body",key:"$schema"},{in:"body",key:"theme"},{in:"body",key:"keybinds"},{in:"body",key:"plugin"},{in:"body",key:"plugin_enabled"},{in:"body",key:"title_icon"},{in:"body",key:"scroll_speed"},{in:"body",key:"scroll_acceleration"},{in:"body",key:"diff_style"},{in:"body",key:"mouse"},{in:"body",key:"attention"}]}]);return(t?.client??this.client).patch({url:"/tui/config",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class eu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/tui/keybinds",...t,...n})}}class tu extends k{appendPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/tui/append-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}openHelp(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-help",...t,...n})}openSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-sessions",...t,...n})}openThemes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-themes",...t,...n})}openModels(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/open-models",...t,...n})}submitPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/submit-prompt",...t,...n})}clearPrompt(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/tui/clear-prompt",...t,...n})}executeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return(t?.client??this.client).post({url:"/tui/execute-command",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}showToast(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return(t?.client??this.client).post({url:"/tui/show-toast",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}publish(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return(t?.client??this.client).post({url:"/tui/publish",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}selectSession(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/tui/select-session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}_control;get control(){return this._control??=new Xf({client:this.client})}_config;get config(){return this._config??=new Qf({client:this.client})}_keybind;get keybind(){return this._keybind??=new eu({client:this.client})}}class ru extends k{preview(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).post({url:"/agent-builder/preview",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}save(e,t){const n=d([e],[{args:[{in:"path",key:"path_id",map:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_id",map:"id"},{in:"body",key:"scope"},{in:"body",key:"description"},{in:"body",key:"mode"},{in:"body",key:"model"},{in:"body",key:"color"},{in:"body",key:"steps"},{in:"body",key:"tools"},{in:"body",key:"permission"},{in:"body",key:"prompt"}]}]);return(t?.client??this.client).put({url:"/agent-builder/{id}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}",...t,...n})}logs(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/background-process/{processID}/logs",...t,...n})}stop(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/stop",...t,...n})}restart(e,t){const n=d([e],[{args:[{in:"path",key:"processID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/{processID}/restart",...t,...n})}stopSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/background-process/session/{sessionID}/stop",...t,...n})}}class au extends k{generate(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prompt"},{in:"body",key:"providerID"},{in:"body",key:"modelID"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/branch-name",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class su extends k{generate(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"path"},{in:"body",key:"selectedFiles"},{in:"body",key:"previousMessage"},{in:"body",key:"language"}]}]);return(t?.client??this.client).post({url:"/commit-message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class ou extends k{enhance(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return(t?.client??this.client).post({url:"/enhance-prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class iu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/status",...t,...n})}warnings(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/warnings",...t,...n})}models(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/indexing/models",...t,...n})}consent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).put({url:"/indexing/consent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class cu extends k{transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"model"},{in:"body",key:"input_audio"},{in:"body",key:"language"},{in:"body",key:"prompt"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).post({url:"/kilo/audio/transcriptions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class lu extends k{images(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/images",...t,...n})}transcriptions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/models/transcriptions",...t,...n})}}class du extends k{set(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"organizationId"}]}]);return(t?.client??this.client).post({url:"/kilo/organization",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class fu extends k{get(e,t){const n=d([e],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud/session/{id}",...t,...n})}import(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionId"}]}]);return(t?.client??this.client).post({url:"/kilo/cloud/session/import",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class uu extends k{_session;get session(){return this._session??=new fu({client:this.client})}}class yu extends k{profile(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/profile",...t,...n})}authStatus(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/auth-status",...t,...n})}modes(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/modes",...t,...n})}fim(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"prefix"},{in:"body",key:"suffix"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"temperature"}]}]);return(t?.client??this.client).sse.post({url:"/kilo/fim",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}edit(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"provider"},{in:"body",key:"model"},{in:"body",key:"maxTokens"},{in:"body",key:"currentFilePath"},{in:"body",key:"currentFileContent"},{in:"body",key:"cursorLine"},{in:"body",key:"cursorCharacter"},{in:"body",key:"editableRegionStartLine"},{in:"body",key:"editableRegionEndLine"},{in:"body",key:"recentlyViewedSnippets"},{in:"body",key:"editDiffHistory"}]}]);return(t?.client??this.client).post({url:"/kilo/edit",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}notifications(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilo/notifications",...t,...n})}cloudSessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"cursor"},{in:"query",key:"limit"},{in:"query",key:"gitUrl"}]}]);return(t?.client??this.client).get({url:"/kilo/cloud-sessions",...t,...n})}_audio;get audio(){return this._audio??=new cu({client:this.client})}_models;get models(){return this._models??=new lu({client:this.client})}_organization;get organization(){return this._organization??=new du({client:this.client})}_cloud;get cloud(){return this._cloud??=new uu({client:this.client})}}class pu extends k{snapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/heap/snapshot",...t,...n})}}class hu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/marketplace",...t,...n})}install(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"item"},{in:"body",key:"target"},{in:"body",key:"parameters"}]}]);return(t?.client??this.client).post({url:"/kilocode/marketplace/install",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"item"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/marketplace/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class mu extends k{prepare(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/prepare",...t,...n})}}class ku extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/provider-usage",...t,...n})}refresh(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/provider-usage/refresh",...t,...n})}}class gu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/notebook",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/notebook/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class bu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/agent-manager",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"result"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"error"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent-manager/{requestID}/reject",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class wu extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/cancel",...t,...n})}promote(e,t){const n=d([e],[{args:[{in:"path",key:"jobID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/background-jobs/{jobID}/promote",...t,...n})}}class vu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/retention",...t,...n})}run(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"force"}]}]);return(t?.client??this.client).post({url:"/kilocode/retention/run",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class xu extends k{sessions(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"},{in:"body",key:"ids"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"force"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}discover(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"cwd"},{in:"body",key:"formats"}]}]);return(t?.client??this.client).post({url:"/kilocode/migrate/sessions/discover",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Cu extends k{project(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"worktree"},{in:"body",key:"vcs"},{in:"body",key:"name"},{in:"body",key:"iconUrl"},{in:"body",key:"iconColor"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeInitialized"},{in:"body",key:"sandboxes"},{in:"body",key:"commands"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/project",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}session(e,t){const n=d([e],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"projectID"},{in:"body",key:"force"},{in:"body",key:"workspaceID"},{in:"body",key:"parentID"},{in:"body",key:"slug"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"title"},{in:"body",key:"version"},{in:"body",key:"shareURL"},{in:"body",key:"summary"},{in:"body",key:"revert"},{in:"body",key:"permission"},{in:"body",key:"timeCreated"},{in:"body",key:"timeUpdated"},{in:"body",key:"timeCompacting"},{in:"body",key:"timeArchived"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}message(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/message",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}part(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"messageID"},{in:"body",key:"sessionID"},{in:"body",key:"timeCreated"},{in:"body",key:"data"}]}]);return(t?.client??this.client).post({url:"/kilocode/session-import/part",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Lu extends k{resumeSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"snapshotInitialization"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/resume",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}drainSession(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"token"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/drain",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"before"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/kilocode/session/{sessionID}/board",...t,...n})}resetSessionBoard(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"revision"}]}]);return(t?.client??this.client).post({url:"/kilocode/session/{sessionID}/board/reset",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}commandFiles(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/command/files",...t,...n})}removeCommand(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/command/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSkill(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/kilocode/skill/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeAgent(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"scope"}]}]);return(t?.client??this.client).post({url:"/kilocode/agent/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}removeSnapshot(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/snapshot/remove",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}teardownWorktree(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"worktree"}]}]);return(t?.client??this.client).post({url:"/kilocode/worktree/teardown",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}sessionModelUsage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/model-usage",...t,...n})}backgroundJobs(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/kilocode/background-jobs",...t,...n})}wakeups(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/wakeups",...t,...n})}_heap;get heap(){return this._heap??=new pu({client:this.client})}_marketplace;get marketplace(){return this._marketplace??=new hu({client:this.client})}_snapshot;get snapshot(){return this._snapshot??=new mu({client:this.client})}_providerUsage;get providerUsage(){return this._providerUsage??=new ku({client:this.client})}_notebook;get notebook(){return this._notebook??=new gu({client:this.client})}_agentManager;get agentManager(){return this._agentManager??=new bu({client:this.client})}_backgroundJob;get backgroundJob(){return this._backgroundJob??=new wu({client:this.client})}_retention;get retention(){return this._retention??=new vu({client:this.client})}_migrate;get migrate(){return this._migrate??=new xu({client:this.client})}_sessionImport;get sessionImport(){return this._sessionImport??=new Cu({client:this.client})}}class qu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/kilocode/anaconda-desktop/status",...t,...n})}open(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/open",...t,...n})}sync(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"acknowledgeToolLimitations"}]}]);return(t?.client??this.client).post({url:"/kilocode/anaconda-desktop/sync",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Mu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/network",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reply",...t,...n})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/network/{requestID}/reject",...t,...n})}}class $u extends k{enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/remote/disable",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/remote/status",...t,...n})}}class Hu extends k{support(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/sandbox/support",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/session/{sessionID}/sandbox",...t,...n})}toggle(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/session/{sessionID}/sandbox/toggle",...t,...n})}}class Vu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/suggestion",...t,...n})}accept(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"index"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/accept",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}dismiss(e,t){const n=d([e],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/suggestion/{requestID}/dismiss",...t,...n})}}class _u extends k{capture(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"event"},{in:"body",key:"properties"}]}]);return(t?.client??this.client).post({url:"/telemetry/capture",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}setEnabled(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return(t?.client??this.client).post({url:"/telemetry/setEnabled",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Iu extends k{status(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/status",...t,...n})}show(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).get({url:"/memory/show",...t,...n})}enable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/enable",...t,...n})}disable(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/disable",...t,...n})}configure(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"autoConsolidate"},{in:"body",key:"verbose"}]}]);return(t?.client??this.client).post({url:"/memory/configure",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}rebuild(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return(t?.client??this.client).post({url:"/memory/rebuild",...t,...n})}remember(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"file"},{in:"body",key:"section"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/remember",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}correct(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"},{in:"body",key:"key"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/correct",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}forget(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"query"},{in:"body",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/memory/forget",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}purge(e,t){const n=d([e],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"confirm"}]}]);return(t?.client??this.client).post({url:"/memory/purge",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class ju extends k{get(e){return(e?.client??this.client).get({url:"/api/health",...e})}}class Eu extends k{get(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/location",...t,...n})}}class Au extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/agent",...t,...n})}}class Du extends k{stage(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"messageID"},{in:"body",key:"files"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/stage",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}clear(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/clear",...t,...n})}commit(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/revert/commit",...t,...n})}}class Tu extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"action"},{in:"body",key:"resources"},{in:"body",key:"save"},{in:"body",key:"metadata"},{in:"body",key:"source"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/permission/{requestID}",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/permission/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Su extends k{list(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/question",...t,...n})}reply(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"},{key:"questionV2Reply",map:"body"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reply",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}reject(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"requestID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/question/{requestID}/reject",...t,...n})}}class Pu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"search"},{in:"query",key:"directory"},{in:"query",key:"project"},{in:"query",key:"subpath"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"body",key:"id"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/session",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}active(e){return(e?.client??this.client).get({url:"/api/session/active",...e})}get(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}",...t,...n})}switchAgent(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"agent"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/agent",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}switchModel(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"model"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/model",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}prompt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"body",key:"id"},{in:"body",key:"prompt"},{in:"body",key:"delivery"},{in:"body",key:"resume"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/prompt",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}compact(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/compact",...t,...n})}wait(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/wait",...t,...n})}context(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/context",...t,...n})}history(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"after"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/history",...t,...n})}events(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"after"}]}]);return(t?.client??this.client).sse.get({url:"/api/session/{sessionID}/event",...t,...n})}interrupt(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"}]}]);return(t?.client??this.client).post({url:"/api/session/{sessionID}/interrupt",...t,...n})}message(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message/{messageID}",...t,...n})}messages(e,t){const n=d([e],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"limit"},{in:"query",key:"order"},{in:"query",key:"cursor"}]}]);return(t?.client??this.client).get({url:"/api/session/{sessionID}/message",...t,...n})}_revert;get revert(){return this._revert??=new Du({client:this.client})}_permission;get permission(){return this._permission??=new Tu({client:this.client})}_question;get question(){return this._question??=new Su({client:this.client})}}class Fu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/model",...t,...n})}}class Zu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"providerID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/provider/{providerID}",...t,...n})}}class Bu extends k{key(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"key"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/key",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}oauth(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"},{in:"body",key:"methodID"},{in:"body",key:"inputs"},{in:"body",key:"label"}]}]);return(t?.client??this.client).post({url:"/api/integration/{integrationID}/connect/oauth",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Ou extends k{cancel(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/integration/attempt/{attemptID}",...t,...n})}status(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/attempt/{attemptID}",...t,...n})}complete(e,t){const n=d([e],[{args:[{in:"path",key:"attemptID"},{in:"query",key:"location"},{in:"body",key:"code"}]}]);return(t?.client??this.client).post({url:"/api/integration/attempt/{attemptID}/complete",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Ru extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"integrationID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/integration/{integrationID}",...t,...n})}_connect;get connect(){return this._connect??=new Bu({client:this.client})}_attempt;get attempt(){return this._attempt??=new Ou({client:this.client})}}class zu extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/credential/{credentialID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"credentialID"},{in:"query",key:"location"},{in:"body",key:"label"}]}]);return(t?.client??this.client).patch({url:"/api/credential/{credentialID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}}class Nu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/permission/request",...t,...n})}}class Uu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"projectID"}]}]);return(t?.client??this.client).get({url:"/api/permission/saved",...t,...n})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"id"}]}]);return(t?.client??this.client).delete({url:"/api/permission/saved/{id}",...t,...n})}}class Wu extends k{_request;get request(){return this._request??=new Nu({client:this.client})}_saved;get saved(){return this._saved??=new Uu({client:this.client})}}class Ju extends k{read(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/read/*",...t,...n})}list(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"path"}]}]);return(t?.client??this.client).get({url:"/api/fs/list",...t,...n})}find(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"query",key:"query"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return(t?.client??this.client).get({url:"/api/fs/find",...t,...n})}}class Ku extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/command",...t,...n})}}class Gu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/skill",...t,...n})}}class Yu extends k{subscribe(e){return(e?.client??this.client).sse.get({url:"/api/event",...e})}}class Xu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty",...t,...n})}create(e,t){const n=d([e],[{args:[{in:"query",key:"location"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"},{in:"body",key:"size"}]}]);return(t?.client??this.client).post({url:"/api/pty",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}remove(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).delete({url:"/api/pty/{ptyID}",...t,...n})}get(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}",...t,...n})}update(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return(t?.client??this.client).put({url:"/api/pty/{ptyID}",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}connectToken(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/api/pty/{ptyID}/connect-token",...t,...n})}connect(e,t){const n=d([e],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"location[directory]"},{in:"query",key:"location[workspace]"},{in:"query",key:"cursor"},{in:"query",key:"ticket"},{in:"query",key:"replayExited"}]}]);return(t?.client??this.client).get({url:"/api/pty/{ptyID}/connect",...t,...n})}}class Qu extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/question/request",...t,...n})}}class e0 extends k{_request;get request(){return this._request??=new Qu({client:this.client})}}class t0 extends k{list(e,t){const n=d([e],[{args:[{in:"query",key:"location"}]}]);return(t?.client??this.client).get({url:"/api/reference",...t,...n})}}class r0 extends k{remove(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"directory"},{in:"body",key:"force"}]}]);return(t?.client??this.client).delete({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}create(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"},{in:"body",key:"strategy"},{in:"body",key:"directory"},{in:"body",key:"name"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy",...t,...n,headers:{"Content-Type":"application/json",...t?.headers,...n.headers}})}refresh(e,t){const n=d([e],[{args:[{in:"path",key:"projectID"},{in:"query",key:"location"}]}]);return(t?.client??this.client).post({url:"/experimental/project/{projectID}/copy/refresh",...t,...n})}}class n0 extends k{_health;get health(){return this._health??=new ju({client:this.client})}_location;get location(){return this._location??=new Eu({client:this.client})}_agent;get agent(){return this._agent??=new Au({client:this.client})}_session;get session(){return this._session??=new Pu({client:this.client})}_model;get model(){return this._model??=new Fu({client:this.client})}_provider;get provider(){return this._provider??=new Zu({client:this.client})}_integration;get integration(){return this._integration??=new Ru({client:this.client})}_credential;get credential(){return this._credential??=new zu({client:this.client})}_permission;get permission(){return this._permission??=new Wu({client:this.client})}_fs;get fs(){return this._fs??=new Ju({client:this.client})}_command;get command(){return this._command??=new Ku({client:this.client})}_skill;get skill(){return this._skill??=new Gu({client:this.client})}_event;get event(){return this._event??=new Yu({client:this.client})}_pty;get pty(){return this._pty??=new Xu({client:this.client})}_question;get question(){return this._question??=new e0({client:this.client})}_reference;get reference(){return this._reference??=new t0({client:this.client})}_projectCopy;get projectCopy(){return this._projectCopy??=new r0({client:this.client})}}class Lr extends k{static __registry=new yf;constructor(e){super(e),Lr.__registry.set(this,e?.key)}_auth;get auth(){return this._auth??=new pf({client:this.client})}_app;get app(){return this._app??=new hf({client:this.client})}_experimental;get experimental(){return this._experimental??=new Lf({client:this.client})}_global;get global(){return this._global??=new Mf({client:this.client})}_event;get event(){return this._event??=new $f({client:this.client})}_config;get config(){return this._config??=new Hf({client:this.client})}_tool;get tool(){return this._tool??=new Vf({client:this.client})}_worktree;get worktree(){return this._worktree??=new _f({client:this.client})}_find;get find(){return this._find??=new If({client:this.client})}_file;get file(){return this._file??=new jf({client:this.client})}_instance;get instance(){return this._instance??=new Ef({client:this.client})}_path;get path(){return this._path??=new Af({client:this.client})}_vcs;get vcs(){return this._vcs??=new Tf({client:this.client})}_command;get command(){return this._command??=new Sf({client:this.client})}_lsp;get lsp(){return this._lsp??=new Pf({client:this.client})}_formatter;get formatter(){return this._formatter??=new Ff({client:this.client})}_mcp;get mcp(){return this._mcp??=new Bf({client:this.client})}_project;get project(){return this._project??=new Of({client:this.client})}_pty;get pty(){return this._pty??=new Rf({client:this.client})}_question;get question(){return this._question??=new zf({client:this.client})}_permission;get permission(){return this._permission??=new Nf({client:this.client})}_provider;get provider(){return this._provider??=new Wf({client:this.client})}_session;get session(){return this._session??=new Jf({client:this.client})}_part;get part(){return this._part??=new Kf({client:this.client})}_sync;get sync(){return this._sync??=new Yf({client:this.client})}_tui;get tui(){return this._tui??=new tu({client:this.client})}_agentBuilder;get agentBuilder(){return this._agentBuilder??=new ru({client:this.client})}_backgroundProcess;get backgroundProcess(){return this._backgroundProcess??=new nu({client:this.client})}_branchName;get branchName(){return this._branchName??=new au({client:this.client})}_commitMessage;get commitMessage(){return this._commitMessage??=new su({client:this.client})}_enhancePrompt;get enhancePrompt(){return this._enhancePrompt??=new ou({client:this.client})}_indexing;get indexing(){return this._indexing??=new iu({client:this.client})}_kilo;get kilo(){return this._kilo??=new yu({client:this.client})}_kilocode;get kilocode(){return this._kilocode??=new Lu({client:this.client})}_anacondaDesktop;get anacondaDesktop(){return this._anacondaDesktop??=new qu({client:this.client})}_network;get network(){return this._network??=new Mu({client:this.client})}_remote;get remote(){return this._remote??=new $u({client:this.client})}_sandbox;get sandbox(){return this._sandbox??=new Hu({client:this.client})}_suggestion;get suggestion(){return this._suggestion??=new Vu({client:this.client})}_telemetry;get telemetry(){return this._telemetry??=new _u({client:this.client})}_memory;get memory(){return this._memory??=new Iu({client:this.client})}_v2;get v2(){return this._v2??=new n0({client:this.client})}}function a0(r,e,t,n){if(!n?.throwOnError||r instanceof Error)return r;if(typeof r=="object"&&r!==null&&Object.keys(r).length>0){const s=r,o=typeof s.data?.message=="string"&&s.data.message||typeof s.message=="string"&&s.message||typeof s.name=="string"&&s.name||nn(t,e);return new Error(o,{cause:{body:r,status:e?.status}})}if(typeof r=="string"&&r.length>0)return new Error(r,{cause:{body:r,status:e?.status}});const a=e?"(empty response body)":"network error (no response)";return new Error(`kilo server ${nn(t,e)}: ${a}`,{cause:{body:r,status:e?.status}})}function nn(r,e){const t=r?.method??"?",n=r?.url??"?",a=e?.status,s=e?.statusText;return`${t} ${n}${a?" → "+a:""}${s?" "+s:""}`}function s0(r,e,t){if(r)return e&&(r===e||t&&r===t(e))?e:r}function o0(r,e){if(r.method!=="GET"&&r.method!=="HEAD")return r;const t=new URL(r.url);let n=!1;for(const[s,o]of[["x-kilo-directory","directory"],["x-kilo-workspace","workspace"]]){const i=s0(r.headers.get(s),o==="directory"?e.directory:e.workspace,o==="directory"?encodeURIComponent:void 0);if(i){for(const c of t.pathname.startsWith("/api/")?[o,`location[${o}]`]:[o])t.searchParams.has(c)||t.searchParams.set(c,i);n=!0}}if(!n)return r;const a=new Request(t,r);return a.headers.delete("x-kilo-directory"),a.headers.delete("x-kilo-workspace"),a}function i0(r){r?.fetch||(r={...r,fetch:n=>fetch(n,{duplex:"half",timeout:!1})}),r?.directory&&(r.headers={...r.headers,"x-kilo-directory":encodeURIComponent(r.directory)}),r?.experimental_workspaceID&&(r.headers={...r.headers,"x-kilo-workspace":r.experimental_workspaceID}),r.duplex="half";const e=aa(r);return e.interceptors.request.use(t=>o0(t,{directory:r?.directory,workspace:r?.experimental_workspaceID})),e.interceptors.response.use(t=>{if(t.headers.get("content-type")==="text/html")throw new Error("Request is not supported by this version of OpenCode Server (Server responded with text/html)");return t}),e.interceptors.error.use(a0),new Lr({client:e})}const c0=Array.from({length:20},(r,e)=>4097+e),l0=1440*60*1e3,qr="kilo.config.server",Je={},Mr=window.fetch.bind(window);function d0(r){const e=new TextEncoder().encode(r);return btoa(String.fromCharCode(...e))}function an(r){return r?decodeURIComponent(r):""}function Et(r){const e=new URL(r),t=an(e.username)||"kilo",n=an(e.password)||"kilo";return e.username="",e.password="",e.search="",e.hash="",{url:e.toString().replace(/\/$/,""),token:d0(`${t}:${n}`)}}function R(r){const e=Et(r.url);return i0({baseUrl:e.url,directory:At(r.dir),headers:{Authorization:`Basic ${e.token}`},fetch:Mr})}function At(r){const e=r.trim();if(e)return e}function Ct(r){return r instanceof Error?r.message:typeof r=="string"?r:r==null?"Unknown error":JSON.stringify(r)}function P(r,e){if(e.error)throw new Error(`${r}: ${Ct(e.error)}`);if(e.data===void 0)throw new Error(`${r}: empty response`);return e.data}async function f0(r){const t=(await Pt(r)).find(n=>n.id===r.project);if(!t)throw new Error(`Project not found: ${r.project}`);return t}async function ke(r,e){return await e.then(t=>{if(t.error){console.warn(`${r}: ${Ct(t.error)}`);return}return t.data}).catch(t=>{console.warn(`${r}: ${Ct(t)}`)})}function u0(r){if(typeof r!="string")return;const e=r.indexOf("/");if(!(e<=0||e>=r.length-1))return{provider:r.slice(0,e),model:r.slice(e+1)}}function Dt(r){const e=At(r.dir);return e?{directory:e}:void 0}function y0(r){return r.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function p0(r){return{keybinds:Object.entries(r.keybinds??{}).map(([e,t])=>({id:e,label:y0(e),group:"Configured",default:t??"none",description:"Configured TUI keybind"}))}}function Lt(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function h0(r,e){const t=Lt(r),n=Lt(e);return n===t?!0:n.startsWith(`${t}/`)}function oa(r){return r.id!=="global"?!0:Lt(r.worktree)!=="/"}function m0(r,e){return[r.worktree,...r.sandboxes].reduce((t,n)=>h0(n,e)?Math.max(t,Lt(n).length):t,-1)}function k0(r,e){const t=r.find(n=>n.id===e.projectID);return t||r.reduce((n,a)=>{const s=m0(a,e.directory);return s<=n.score?n:{item:a,score:s}},{score:-1}).item}async function ia(r){const e=new AbortController,t=window.setTimeout(()=>e.abort(),400),n=Et(r);return await Mr(`${n.url}/global/health`,{headers:{Authorization:`Basic ${n.token}`},signal:e.signal}).then(a=>a.ok?r:void 0).catch(()=>{}).finally(()=>window.clearTimeout(t))}function g0(r){return Array.isArray(r)?r.filter(e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.id=="string"&&typeof t.worktree=="string"&&typeof t.time?.updated=="number"}):[]}function b0(r){return r.reduce((e,t)=>Math.max(e,t.time.updated),0)}async function w0(r){if(!await ia(r))return;const t=new AbortController,n=window.setTimeout(()=>t.abort(),400),a=Et(r);return await Mr(`${a.url}/project`,{headers:{Authorization:`Basic ${a.token}`},signal:t.signal}).then(async s=>{if(!s.ok)return{url:r,count:0,time:0};const o=g0(await s.json()).filter(oa);return{url:r,count:o.length,time:b0(o)}}).catch(()=>({url:r,count:0,time:0})).finally(()=>window.clearTimeout(n))}function sn(r){return Number(new URL(r).port)||0}function on(r){return new URL(r).hostname==="127.0.0.1"?1:0}function Fe(){return window.localStorage.getItem(qr)??""}function qe(r){window.localStorage.setItem(qr,r)}function Tt(){window.localStorage.removeItem(qr)}async function v0(r){return await ia(r)!==void 0}async function x0(){const r=c0.flatMap(t=>[`http://127.0.0.1:${t}`,`http://localhost:${t}`]);return(await Promise.all(r.map(w0))).filter(t=>t!==void 0).toSorted((t,n)=>n.count-t.count||n.time-t.time||sn(n.url)-sn(t.url)||on(n.url)-on(t.url))[0]?.url}async function St(){if(Je.run)return await Je.run;const r=x0().finally(()=>{Je.run===r&&(Je.run=void 0)});return Je.run=r,await r}async function $r(){const r=await St();if(r)return r;const e=Fe();if(e){if(await v0(e))return e;Tt()}}async function Yy(r){const e=R(r),[t,n,a,s,o,i,c,f,y,u,p,g]=await Promise.all([e.global.health(),e.config.overlay({scope:r.scope}),e.config.modelState(),e.provider.list(),e.provider.auth(),e.tui.config.get(),ke("TUI keybinds",e.tui.keybind.list()),e.tool.ids(),e.mcp.status(),e.lsp.status(),e.formatter.status(),e.app.agents()]),m=P("Config overlay",n),h=u0(m.effective.model),w=h?await ke("Tool metadata",e.tool.list(h)):void 0,H=P("TUI config",i);return{health:P("Health",t),effective:m.effective,overlay:m,sources:{sources:m.sources},modelState:P("Model state",a),providers:P("Providers",s),authMethods:P("Provider auth methods",o),tui:H,keybinds:c??p0(H),tools:P("Tools",f),toolDetails:w??[],mcp:P("MCP status",y),lsp:P("LSP status",u),formatter:P("Formatter status",p),agents:P("Agents",g)}}async function Xy(r){return P("Kilo embedding models",await R(r).indexing.models())}async function Qy(r){const t=await R(r).kilo.profile(Dt(r));return P("Kilo profile",t)}async function e7(r,e){const t=R(r),n=await t.kilo.organization.set({...Dt(r),organizationId:e});P("Switch Kilo account",n),await t.global.dispose()}async function t7(r){const e=R(r),t=await e.auth.remove({providerID:"kilo"});P("Log out of Kilo",t),await e.global.dispose()}async function r7(r){const t=await R(r).provider.oauth.authorize({...Dt(r),providerID:"kilo",method:0});return P("Start Kilo login",t)}async function n7(r,e){const t=R(r),n=await t.provider.oauth.callback({...Dt(r),providerID:"kilo",method:0},e?{signal:e}:void 0);P("Complete Kilo login",n),await t.global.dispose()}async function C0(r){const e=R(r),t=At(r.dir),n=await e.project.list(t?{directory:t}:void 0);return P("Projects",n)}async function Pt(r){return(await C0(r)).filter(oa)}async function L0(r){const e=R(r),[t,n]=await Promise.all([Pt(r),e.experimental.session.list({archived:!1,start:Date.now()-l0,limit:500})]),a=P("Recent sessions",n),s=new Map;for(const o of a){const i=k0(t,o);i&&s.set(i.id,(s.get(i.id)??0)+1)}return t.map(o=>({...o,sessions:s.get(o.id)??0})).filter(o=>o.sessions>0)}async function a7(r){const e=await f0(r),t={url:r.url,dir:e.worktree},n=R(t),[a,s,o]=await Promise.all([n.config.overlay({scope:"global"}),n.vcs.get({directory:t.dir}),n.worktree.list({directory:t.dir})]),i=P("Config",a),c=P("Worktrees",o),f=await Promise.all([t.dir,...c.map(y=>y.directory)].map(y=>q0({url:r.url},y)));return{project:e,config:i.global,vcs:P("VCS",s),worktrees:c,terminals:f.flat()}}async function s7(r,e){const t=R(r),n=e?.trim(),a=await t.worktree.create({directory:r.dir,...n?{worktreeCreateInput:{name:n}}:{}});return P("Create worktree",a)}async function o7(r,e){const n=await R(r).worktree.remove({directory:r.dir,worktreeRemoveInput:{directory:e}});return P("Remove worktree",n)}async function i7(r,e){const n=await R(r).worktree.reset({directory:r.dir,worktreeResetInput:{directory:e}});return P("Reset worktree",n)}async function q0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([t.pty.list({directory:e}),ke("Session status",t.session.status({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=P("Terminals",n),c=a??{},f=cn(s??[]),y=cn(o??[]),u=new Map;return await Promise.all(i.map(async p=>{if(!p.sessionID||u.has(p.sessionID))return;const g=await ke("Session",t.session.get({directory:e,sessionID:p.sessionID}));g&&u.set(p.sessionID,g)})),i.map(p=>{const g=p.sessionID?u.get(p.sessionID):void 0;return{...p,directory:e,session:g,sessionStatus:p.sessionID?c[p.sessionID]:void 0,attention:p.sessionID?H0(p.sessionID,f,y):void 0}})}function ca(r){return new Set(r.flatMap(e=>e.sessionID?[e.sessionID]:[]))}function cn(r){return new Set(r.map(e=>e.sessionID))}function ln(r,e){return r.some(t=>e.has(t.sessionID))}async function M0(r,e){const t=R({url:r.url,dir:e}),[n,a,s,o]=await Promise.all([ke("Session status",t.session.status({directory:e})),ke("Terminals",t.pty.list({directory:e})),ke("Pending permissions",t.permission.list({directory:e})),ke("Pending questions",t.question.list({directory:e}))]),i=ca(a??[]),c=Object.entries(n??{}).some(([y,u])=>i.has(y)&&u.type!=="idle"),f=ln(s??[],i)||ln(o??[],i);return{busy:c,attention:f}}async function $0(r,e){const t=R({url:r.url,dir:e}),n=await ke("Terminals",t.pty.list({directory:e}));return ca(n??[])}function H0(r,e,t){if(e.has(r))return"permission";if(t.has(r))return"question"}async function c7(r,e){const n=await R({url:r.url,dir:e}).worktree.diffSummary({directory:e});return P("Worktree diff",n)}async function l7(r,e,t){const a=await R({url:r.url,dir:e}).worktree.diffFile({directory:e,file:t});return P("Worktree diff file",a)}async function d7(r,e,t="Kilo session"){const a=await R({url:r.url,dir:e}).pty.create({directory:e,command:"kilo",cwd:e,title:t});return P("Create terminal",a)}async function f7(r,e){const n=await R({url:r.url,dir:r.dir}).pty.remove({directory:r.dir,ptyID:e});return P("Remove terminal",n)}async function u7(r,e,t,n){const s=await R(r).session.viewed({directory:r.dir,viewer:e,attached:t,visible:n});return P("Viewed sessions",s)}function V0(r,e){const t=R(r),n=new AbortController;return(async()=>{const a=await t.global.event({signal:n.signal,sseMaxRetryAttempts:0});for await(const s of a.stream){if(n.signal.aborted)return;e(s)}})().catch(a=>{n.signal.aborted||console.warn(`Project events: ${Ct(a)}`)}),()=>n.abort()}async function y7(r,e,t,n){const s=await R({url:r.url,dir:r.dir}).pty.update({directory:r.dir,ptyID:e,size:{cols:t,rows:n}});return P("Resize terminal",s)}function p7(r,e,t=0){const n=Et(r.url),a=new URL(`/pty/${encodeURIComponent(e)}/connect`,n.url);return a.protocol=a.protocol==="https:"?"wss:":"ws:",a.searchParams.set("directory",r.dir),a.searchParams.set("cursor",String(t)),a.searchParams.set("auth_token",n.token),a.toString()}async function la(r,e,t){const n=R(r),a=Object.keys(e).length?e:void 0,s=await n.config.overlayUpdate({directory:At(r.dir),scope:r.scope,set:a,unset:t});return P("Update config",s)}async function h7(r,e){return la(r,e)}async function m7(r,e){return la(r,{},e)}async function k7(r,e){const n=await R(r).config.modelStateUpdate({favorite:e});return P("Update model state",n)}async function g7(r,e,t,n){const a=R(r),s=n?{type:"api",key:t,metadata:n}:{type:"api",key:t},o=await a.auth.set({providerID:e,auth:s});P("Connect provider",o),await a.global.dispose()}async function b7(r,e,t,n){const s=await R(r).provider.oauth.authorize({providerID:e,method:t,inputs:n});return P("Authorize provider",s)}async function w7(r,e,t,n){const a=R(r),s=await a.provider.oauth.callback({providerID:e,method:t,code:n});P("Complete provider authorization",s),await a.global.dispose()}async function v7(r,e){const n=await R(r).mcp.connect({name:e});return P("Connect MCP server",n)}async function x7(r,e){const n=await R(r).mcp.disconnect({name:e});return P("Disconnect MCP server",n)}async function C7(r,e){const n=await R(r).mcp.auth.authenticate({name:e});return P("Authenticate MCP server",n)}async function L7(r,e){const n=await R(r).tui.config.update({scope:r.scope,...e});return P("Update TUI config",n)}async function q7(r,e){const n=await R(r).agentBuilder.preview(e);return P("Preview agent",n)}async function M7(r,e){const n=await R(r).agentBuilder.save({path_id:e.id,scope:e.scope,description:e.description,mode:e.mode,model:e.model,color:e.color,steps:e.steps,tools:e.tools,permission:e.permission,prompt:e.prompt});return P("Save agent",n)}const dn=Q(()=>X(()=>import("./AgentsRoute-C7BPJrSR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentBuilderRoute}))),_0=Q(()=>X(()=>import("./AgentsRoute-C7BPJrSR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(r=>({default:r.AgentsRoute}))),I0=Q(()=>X(()=>import("./CliNotificationsRoute-CYZpiPRl.js"),__vite__mapDeps([10,1,4,2,3,11,5,12])).then(r=>({default:r.CliNotificationsRoute}))),j0=Q(()=>X(()=>import("./CliUiRoute-CxxmM2Sh.js"),__vite__mapDeps([13,1,4,2,3,11,5,12])).then(r=>({default:r.CliUiRoute}))),E0=Q(()=>X(()=>import("./ConsoleUiRoute-CiIHfc5T.js"),__vite__mapDeps([14,1,15,5,4,2,3,12])).then(r=>({default:r.ConsoleUiRoute}))),A0=Q(()=>X(()=>import("./FormattersRoute-r38ivgH3.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.FormattersRoute}))),D0=Q(()=>X(()=>import("./FormattersRoute-r38ivgH3.js"),__vite__mapDeps([16,1,2,3,5,17])).then(r=>({default:r.LspRoute}))),T0=Q(()=>X(()=>import("./IndexingRoute-Du8lpwql.js"),__vite__mapDeps([18,1,4,5,2,3,19,9])).then(r=>({default:r.IndexingRoute}))),S0=Q(()=>X(()=>import("./KeybindsRoute-DjbKn-oq.js"),__vite__mapDeps([20,1,2,3,5,21])).then(r=>({default:r.KeybindsRoute}))),P0=Q(()=>X(()=>import("./McpRoute-8sBRzM8j.js"),__vite__mapDeps([22,1,2,3,23,4,5,24])).then(r=>({default:r.McpRoute}))),F0=Q(()=>X(()=>import("./ModelsRoute-Dft7BtXi.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsAvailableRoute}))),Z0=Q(()=>X(()=>import("./ModelsRoute-Dft7BtXi.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsDefaultRoute}))),B0=Q(()=>X(()=>import("./ModelsRoute-Dft7BtXi.js"),__vite__mapDeps([25,1,2,3,8,5,26,27])).then(r=>({default:r.ModelsRoute}))),O0=Q(()=>X(()=>import("./OverviewRoute-9SmULgaB.js"),__vite__mapDeps([28,2,3,5,29])).then(r=>({default:r.OverviewRoute}))),R0=Q(()=>X(()=>import("./PermissionsRoute-CjA4tdwU.js").then(r=>r.P),__vite__mapDeps([6,1,2,3,5,7])).then(r=>({default:r.PermissionsRoute}))),z0=Q(()=>X(()=>import("./ProvidersRoute-CHrag3Ik.js"),__vite__mapDeps([30,1,2,3,23,4,5])).then(r=>({default:r.ProvidersRoute}))),N0=Q(()=>X(()=>import("./ServersRoute-DNoVLvuf.js"),__vite__mapDeps([31,1,5,2,3,32])).then(r=>({default:r.ServersRoute}))),U0=Q(()=>X(()=>import("./SourcesRoute-D-4pF8_4.js"),__vite__mapDeps([33,5,2,3,34])).then(r=>({default:r.SourcesRoute}))),W0=Q(()=>X(()=>import("./ToolsRoute-BZM1MGkj.js"),__vite__mapDeps([35,2,3,1,5,9])).then(r=>({default:r.ToolsRoute}))),J0={path:"/providers",href:"/settings/providers",icon:"providers",label:"Providers",component:z0},K0={path:"/agents",href:"/settings/agents",icon:"task",label:"Agents",component:_0},G0={path:"/tools",href:"/settings/tools",icon:"code",label:"Tools",component:W0},Y0={path:"/mcp",href:"/settings/mcp",icon:"mcp",label:"MCP",component:P0},X0={path:"/permissions",href:"/settings/permissions",icon:"key",label:"Permissions",component:R0},Q0={path:"/formatters",href:"/settings/formatters",icon:"sliders",label:"Formatters",component:A0},e2={path:"/lsp",href:"/settings/lsp",icon:"server",label:"LSP Servers",component:D0},da=[{id:"general",label:"General",items:[{path:"/",href:"/settings",icon:"home",label:"Overview",component:O0}]},J0,{id:"models",label:"Models",items:[{path:"/models/default",href:"/settings/models/default",icon:"models",label:"Defaults",component:Z0},{path:"/models/explore",href:"/settings/models/explore",icon:"models",label:"Explore",component:F0}]},{id:"behaviour",label:"Behaviour",items:[K0,G0,X0,Y0,Q0,e2,{path:"/indexing",href:"/settings/indexing",icon:"circuit-board",label:"Code Indexing",component:T0}]},{id:"cli",label:"CLI",items:[{path:"/cli/ui",href:"/settings/cli/ui",icon:"sliders",label:"UI",component:j0},{path:"/cli/notifications",href:"/settings/cli/notifications",icon:"bubble-5",label:"Notifications",component:I0},{path:"/cli/keybinds",href:"/settings/cli/keybinds",icon:"keyboard",label:"Keybinds",component:S0}]},{id:"console",label:"Console",globalOnly:!0,items:[{path:"/console/ui",href:"/settings/console/ui",icon:"sliders",label:"UI",component:E0}]},{id:"advanced",label:"Advanced",items:[{path:"/servers",href:"/settings/servers",icon:"server",label:"Servers",component:N0},{path:"/sources",href:"/settings/sources",icon:"archive",label:"Sources",component:U0}]}];function t2(r){return"items"in r?r.items:[r]}const r2=[...da.flatMap(t2),{path:"/agents/new",href:"/settings/agents/new",icon:"task",label:"New Agent",component:dn},{path:"/agents/:agentID",href:"/settings/agents",icon:"task",label:"Edit Agent",component:dn},{path:"/models",href:"/settings/models/default",icon:"models",label:"Models",component:B0}],n2={apply_patch:"Apply Patch",bash:"Bash",edit:"Edit File",glob:"Find Files",grep:"Search Content",lsp:"Language Server",question:"Ask User",read:"Read File",recall:"Local Recall",skill:"Load Skill",task:"Subagent Task",todowrite:"Todo List",webfetch:"Fetch URL",websearch:"Web Search",write:"Write File"},a2={apply_patch:["Apply structured patches to add, update, move, or delete files.","Keeps edits explicit and easy to review."],bash:["Run shell commands in the current workspace.","Supports timeouts, working directories, and command descriptions."],edit:["Replace exact text inside an existing file.","Can update one match or all matches when needed."],glob:["Find files by path patterns.","Useful for locating files before reading or editing them."],grep:["Search file contents with regular expressions.","Can limit results to a file pattern such as TypeScript or CSS files."],lsp:["Use language-server features for code navigation.","Supports operations such as definitions, references, and diagnostics."],question:["Ask the user for a decision during execution.","Supports single-choice and multi-choice prompts."],read:["Read files, directories, images, and PDFs from the workspace.","Supports line offsets and limits for large files."],recall:["Search and read previous project conversations.","Useful for recovering prior decisions or implementation context."],skill:["Load task-specific instructions and workflows.","Applies specialized repo guidance when a matching skill exists."],task:["Delegate focused exploration or implementation work to a subagent.","Useful for parallel codebase research and complex subtasks."],todowrite:["Track multi-step implementation work.","Shows progress with pending, in-progress, and completed states."],webfetch:["Fetch and convert web pages for analysis.","Supports markdown, text, and HTML output formats."],websearch:["Search the web for external information.","Supports fast, automatic, and deep search modes."],write:["Create or overwrite files with complete contents.","Best for new files or full-file replacements."]},s2=new Set(["api","html","id","json","lsp","mcp","pdf","url"]);function Hr(r){return r.trim()}function o2(r){return r==null||r===""?"Not set":typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r)??"Unserializable value"}function $7(r){return[...r].sort((e,t)=>e.localeCompare(t))}function H7(r){return r.split(/\s+/).map(e=>e.trim()).filter(Boolean)}function Vr(r){return r.trim().split(/[\s._/-]+/).filter(Boolean).map(e=>/^[A-Z0-9]+$/.test(e)&&e.length<=4?e:`${e[0]?.toUpperCase()??""}${e.slice(1).toLowerCase()}`).join(" ")}function i2(r){const e=r.toLowerCase();return s2.has(e)?e.toUpperCase():r.charAt(0).toUpperCase()+r.slice(1)}function fn(r){return r.length<=180?r:`${r.slice(0,177)}...`}function c2(r){const e=r.replace(/```[\s\S]*?```/g," ").replace(/[*`#>_-]+/g," ").replace(/\s+/g," ").trim(),t=e.split(/(?:\.|\?|!)\s+/).map(n=>n.trim()).filter(Boolean).slice(0,2);return t.length?t.map(fn):e?[fn(e)]:[]}function V7(r){const e=n2[r];if(e)return e;const t=r.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[._:/-]+/g," ").replace(/\s+/g," ").trim();return t?t.split(" ").map(i2).join(" "):r}function _7(r){const e=a2[r.id];if(e)return e;const t=r.detail?.description.trim();return t?c2(t):["No capability description is available for this tool."]}function I7(r){return r.split(",").map(e=>e.trim()).filter(Boolean)}function j7(r){return!r||typeof r!="object"||Array.isArray(r)?0:Object.keys(r).length}function l2(r){return r instanceof Error?r.message:typeof r=="string"?r:o2(r)}function E7(r){return r==="subagent"?"subagent":r==="all"?"all":"primary"}var d2=W('<div class=omni-results id=omni-search-results role=listbox aria-label="Search results">'),f2=W("<footer class=omni-footer><span class=omni-help><span class=omni-kbd>↑</span><span class=omni-kbd>↓</span>Navigate</span><span class=omni-help><span class=omni-kbd>↵</span>Open"),u2=W('<form class=omni-search role=search><div class=omni-search-head><span class=omni-command aria-hidden=true><svg class=omni-command-icon viewBox="0 0 24 24"fill=none><path d="M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10"></path></svg></span><input type=search aria-label="Omni search"aria-controls=omni-search-results><button class=omni-escape type=button aria-label="Close search">esc'),y2=W("<div class=omni-empty>No matches."),p2=W("<span class=omni-enter aria-hidden=true>↵"),h2=W("<button type=button class=omni-entry role=option><span class=omni-kind></span><span class=omni-label>"),m2=W("<span class=omni-sub>");const k2=new Set(["3017","3018"]);function yr(r){return r.get("server")?!1:k2.has(window.location.port)}function g2(r){const e=r.get("server");if(e)return e;const t=yr(r)?Fe():"";return t||(yr(r)?"":window.location.origin)}function b2(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function Ge(r,e){return`${r}${b2(e)}`}function w2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function v2(r){return Vr(r.name?.trim()||w2(r.worktree)||r.id.slice(0,8))}function x2(r){return r.length<=8?r:r.slice(0,8)}function C2(r){const e=[{kind:"NAV",label:"Projects",href:Ge("/projects",r)}];for(const t of da){if("items"in t){for(const n of t.items){const a=t.id==="general"?"Global Settings":`Global Settings · ${t.label}`;e.push({kind:"NAV",label:`${a} · ${n.label}`,href:Ge(n.href,r)})}continue}e.push({kind:"NAV",label:`Global Settings · ${t.label}`,href:Ge(t.href,r)})}return e.push({kind:"NAV",label:"Profile",href:Ge("/profile",r)}),e}function L2(r,e){return{kind:"PROJECT",label:v2(r),href:Ge(`/projects/${encodeURIComponent(r.id)}`,e),sub:x2(r.id),mono:!0}}function q2(r,e){return[...e].reduce((t,n)=>{if(t<0)return-1;const a=r.indexOf(n,t);return a<0?-1:a+1},0)>=0}function M2(r,e){const t=e.trim().toLowerCase();if(!t)return!0;const n=`${r.kind} ${r.label} ${r.sub??""}`.toLowerCase();return n.includes(t)?!0:q2(n,t)}function $2(){const r=It(),e=ws(),t=D(()=>new URLSearchParams(r.search)),n=()=>yr(t()),a=()=>g2(t()),[s,o]=U(a()),[i,c]=U(!1),[f,y]=U(""),[u,p]=U(0);let g,m;const h=D(()=>{const b=Hr(s())||a();if(b)return{url:b,dir:""}}),[w]=Mt(h,Pt),H=D(()=>[...C2(t()),...[...w()??[]].map(b=>L2(b,t()))]),_=D(()=>H().filter(b=>M2(b,f())));ee(()=>{document.body.classList.toggle("omni-search-open",i())}),fe(()=>document.body.classList.remove("omni-search-open"));function A(){c(!1),y(""),m?.blur()}function T(){c(!0),queueMicrotask(()=>m?.focus())}function q(b){b&&(e(b.href),A())}function x(b){const S=Math.max(_().length-1,0);p(v=>Math.min(Math.max(v+b,0),S))}function F(b){if(b.key==="Escape"&&i()){b.preventDefault(),A();return}if(i()){if(b.key==="ArrowDown"){b.preventDefault(),x(1);return}if(b.key==="ArrowUp"){b.preventDefault(),x(-1);return}b.key==="Enter"&&(b.preventDefault(),q(_()[u()]))}}function j(b){b.preventDefault(),i()&&q(_()[u()])}return ee(()=>{f(),p(0)}),ee(()=>{const b=t().get("server");b&&b!==s()&&o(b)}),ee(()=>{n()&&$r().then(b=>{b&&(qe(b),o(b))})}),ee(()=>{const b=h();!w()||!b||!n()||qe(b.url)}),ee(()=>{if(!w.error||!n())return;const b=Fe();!b||b!==s()||(Tt(),o(""),St().then(S=>{S&&(qe(S),o(S))}))}),$t(()=>{const b=v=>{if(!(!(v.metaKey||v.ctrlKey)||v.key.toLowerCase()!=="k")){if(v.preventDefault(),i()){A();return}T()}},S=v=>{if(!i())return;const M=v.target;M instanceof Node&&g?.contains(M)||A()};window.addEventListener("keydown",b),window.addEventListener("pointerdown",S),fe(()=>{window.removeEventListener("keydown",b),window.removeEventListener("pointerdown",S)})}),(()=>{var b=u2(),S=b.firstChild,v=S.firstChild,M=v.nextSibling,V=M.nextSibling;return b.addEventListener("submit",j),b.$$keydown=F,or(C=>g=C,b),S.$$pointerdown=C=>{C.target instanceof HTMLButtonElement||T()},M.$$input=C=>{y(C.currentTarget.value),c(!0)},M.addEventListener("focus",()=>c(!0)),or(C=>m=C,M),V.$$click=A,Z(b,$(ie,{get when(){return i()},get children(){return[(()=>{var C=d2();return Z(C,$(ie,{get when(){return _().length>0},get fallback(){return y2()},get children(){return $(Ye,{get each(){return _()},children:(E,N)=>(()=>{var J=h2(),he=J.firstChild,G=he.nextSibling;return J.$$mousemove=()=>p(N()),J.$$click=()=>q(E),Z(he,()=>E.kind),Z(G,()=>E.label),Z(J,$(ie,{get when(){return E.sub},children:re=>(()=>{var ae=m2();return Z(ae,re),ae})()}),null),Z(J,$(ie,{get when(){return N()===u()},get children(){return p2()}}),null),ne(re=>{var ae=N()===u(),ye=N()===u(),Ie=!!E.mono;return ae!==re.e&&J.classList.toggle("active",re.e=ae),ye!==re.t&&ce(J,"aria-selected",re.t=ye),Ie!==re.a&&G.classList.toggle("mono",re.a=Ie),re},{e:void 0,t:void 0,a:void 0}),J})()})}})),C})(),f2()]}}),null),ne(C=>{var E=!!i(),N=i()?"":"Search settings, projects, models...",J=i();return E!==C.e&&b.classList.toggle("expanded",C.e=E),N!==C.t&&ce(M,"placeholder",C.t=N),J!==C.a&&ce(M,"aria-expanded",C.a=J),C},{e:void 0,t:void 0,a:void 0}),ne(()=>M.value=f()),b})()}br(["keydown","pointerdown","input","click","mousemove"]);var H2=W('<img class="header-mark header-mark-logo"alt width=28 height=28>'),V2=W("<span class=header-title><span>Console"),_2=W('<header class=app-header><nav class=notification-zone aria-label="Notifications and status">');function I2(){return(()=>{var r=_2(),e=r.firstChild;return Z(r,$(Xe,{class:"header-brand",href:"/projects","aria-label":"Kilo Console home",get children(){return[(()=>{var t=H2();return ne(()=>ce(t,"src","/console/kilo-logo.svg")),t})(),V2()]}}),e),Z(r,$($2,{}),e),Z(e,$(Jt,{icon:"bubble-5",variant:"ghost","aria-label":"Notifications"}),null),Z(e,$(Jt,{icon:"help",variant:"ghost","aria-label":"Help"}),null),Z(e,$(Jt,{icon:"circle-check",variant:"ghost","aria-label":"System status"}),null),r})()}function _r(){return"/console/".replace(/\/$/,"")}function Ir(r,e=_r()){return!e||e==="/"?r:r===e?"/":r.startsWith(`${e}/`)?r.slice(e.length):r}function A7(r,e=_r()){const t=Ir(r,e),n=t.indexOf("/settings");return n>0?`${t.slice(0,n)}/settings`:t.startsWith("/config")?"/config":"/settings"}function j2(r,e=_r()){const t=Ir(r,e);return t==="/profile"||t.startsWith("/kilo/login")?"/profile":t.startsWith("/settings")||t.startsWith("/config")?"/settings":t.startsWith("/projects/")?"/project":"/projects"}const[E2,fa]=U(new Map),[A2,ua]=U(new Map),[D2,ya]=U(new Map),[T2,pa]=U(new Map);function Ft(r,e,t){r(n=>{if(n.get(e)?.has(t))return n;const a=new Map(n);return a.set(e,new Set([...n.get(e)??[],t])),a})}function Zt(r,e,t){r(n=>{const a=n.get(e);if(!a?.has(t))return n;const s=new Map(n),o=new Set(a);return o.delete(t),o.size===0?s.delete(e):s.set(e,o),s})}const S2=(r,e)=>Ft(fa,r,e),Gt=(r,e)=>Zt(fa,r,e),un=(r,e)=>Ft(ua,r,e),Yt=(r,e)=>Zt(ua,r,e),P2=(r,e)=>Ft(ya,r,e),F2=(r,e)=>Zt(ya,r,e),yn=(r,e)=>Ft(pa,r,e),Xt=(r,e)=>Zt(pa,r,e);function Z2(r){return(E2().get(r)?.size??0)>0?"error":(A2().get(r)?.size??0)>0?"attention":(D2().get(r)?.size??0)>0?"unread":(T2().get(r)?.size??0)>0?"busy":"idle"}function pr(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function B2(r,e){const t=pr(r),n=pr(e);return n===t||n.startsWith(`${t}/`)}function O2(r,e){let t,n=-1;for(const a of r)for(const s of[a.worktree,...a.sandboxes])if(B2(s,e)){const o=pr(s).length;o>n&&(n=o,t=a)}return t}function R2(r){const e=r.payload;return e.type?e.type!=="sync"?e.type:typeof e.name=="string"?e.name:typeof e.syncEvent?.type=="string"?e.syncEvent.type:"":""}function z2(r){const e=r.payload,n=(e.properties??e.data)?.sessionID;return typeof n=="string"?n:void 0}var N2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2">'),U2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37.996 .608 2.296 .07 2.572 -1.065z"></path><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0">'),W2=W('<svg class=rail-glyph viewBox="0 0 24 24"aria-hidden=true fill=none><path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0"></path><path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2">'),J2=W('<aside class=rail aria-label="Primary navigation"><nav class=rail-nav aria-label=Primary></nav><div class=rail-favorites aria-label="Projects with recent sessions"></div><nav class=rail-bottom aria-label="Account and settings">');const K2=new Set(["3017","3018"]);function hr(r){return r.get("server")?!1:K2.has(window.location.port)}function G2(r){const e=r.get("server");if(e)return e;const t=hr(r)?Fe():"";return t||(hr(r)?"":window.location.origin)}function Y2(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function mr(r){return Vr(r.name?.trim()||Y2(r.worktree)||r.id.slice(0,8))}function X2(r){const e=mr(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function ha(r){const e=new URLSearchParams(r);e.delete("directory");const t=e.toString();return t?`?${t}`:""}function Q2(r,e){return`/projects/${encodeURIComponent(r.id)}${ha(e)}`}function pn(r){return r.name==="projects"?N2():r.name==="settings"?U2():W2()}function ey(r){const e=It(),t=D(()=>new URLSearchParams(e.search)),n=D(()=>Ir(e.pathname)),a=()=>hr(t()),s=()=>G2(t()),[o,i]=U(s()),c={refetch:void 0},f=D(()=>{const q=Hr(o())||s();if(q)return{url:q,dir:""}}),[y,{refetch:u}]=Mt(f,L0),p=new Map,g=D(()=>{const q=n().match(/^\/projects\/([^/]+)/);return q?decodeURIComponent(q[1]):void 0}),m=()=>`/settings${ha(t())}`,h=q=>n().startsWith(`/projects/${encodeURIComponent(q.id)}/`)||n()===`/projects/${encodeURIComponent(q.id)}`,w=()=>[{href:"/projects",label:"Projects",name:"projects",path:"/projects"}],H=()=>[{href:"/profile",label:"Profile",name:"profile",path:"/profile"},{href:m(),label:"Settings",name:"settings",path:"/settings"}];function _(){c.refetch||(c.refetch=window.setTimeout(()=>{c.refetch=void 0,u()},150))}function A(q,x,F){const j=`${q}\0${x}\0${F}`,b=(p.get(j)??0)+1;return p.set(j,b),{key:j,rev:b}}function T(q,x,F,j,b,S,v){const M=A(q,F,b);$0(x,j).then(V=>{p.get(M.key)===M.rev&&(V.has(b)?S():v())}).catch(V=>console.warn("Project open sessions:",V))}return ee(()=>{const q=t().get("server");q&&q!==o()&&i(q)}),ee(()=>{a()&&$r().then(q=>{q&&(qe(q),i(q))})}),ee(()=>{const q=f();!y()||!q||!a()||qe(q.url)}),ee(()=>{if(!y.error||!a())return;const q=Fe();!q||q!==o()||(Tt(),i(""),St().then(x=>{x&&(qe(x),i(x))}))}),ee(()=>{if(!f())return;const q=window.setInterval(()=>{u()},5e3);fe(()=>window.clearInterval(q))}),ee(()=>{const q=y(),x=f();if(!(!q||!x))for(const F of q)M0(x,F.worktree).then(j=>{j.busy?yn(F.id,"__hydrated__"):Xt(F.id,"__hydrated__"),j.attention?un(F.id,"__hydrated__"):Yt(F.id,"__hydrated__")}).catch(j=>console.warn("Project live status:",j))}),ee(()=>{const q=f();if(!q)return;const x=V0(q,F=>{const j=F,b=y()??[],S=R2(j);if((S.startsWith("session.created")||S.startsWith("session.updated")||S.startsWith("session.deleted"))&&_(),!b.length||!j.directory)return;const v=O2(b,j.directory);if(!v)return;const M=z2(j);if(S==="session.turn.close"){const V=j.payload.properties;if(!M)return;if(V?.reason==="error"){T("error",q,v.id,j.directory,M,()=>S2(v.id,M),()=>Gt(v.id,M));return}A("error",v.id,M),Gt(v.id,M),V?.reason==="completed"&&v.id!==g()&&T("unread",q,v.id,j.directory,M,()=>P2(v.id,M),()=>F2(v.id,M));return}if(S==="permission.asked"||S==="question.asked"){if(!M)return;T("attention",q,v.id,j.directory,M,()=>un(v.id,M),()=>Yt(v.id,M));return}if(S==="permission.replied"||S==="permission.rejected"||S==="question.replied"||S==="question.rejected"){if(!M)return;A("attention",v.id,M),Yt(v.id,M);return}if(S==="session.status"){const C=j.payload.properties?.status?.type;if(!M)return;C==="busy"||C==="retry"?T("busy",q,v.id,j.directory,M,()=>yn(v.id,M),()=>Xt(v.id,M)):C==="idle"&&(A("busy",v.id,M),A("error",v.id,M),Xt(v.id,M),Gt(v.id,M));return}});fe(x)}),fe(()=>{c.refetch&&window.clearTimeout(c.refetch),p.clear()}),(()=>{var q=J2(),x=q.firstChild,F=x.nextSibling,j=F.nextSibling;return Z(x,$(Ye,{get each(){return w()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),Z(F,$(Ye,{get each(){return y()??[]},children:b=>{const S=()=>Z2(b.id);return $(Xe,{class:"favorite-project",get classList(){return{active:h(b),"status-error":S()==="error","status-attention":S()==="attention","status-unread":S()==="unread","status-busy":S()==="busy"}},get href(){return Q2(b,t())},get"aria-label"(){return mr(b)},get"aria-current"(){return h(b)?"page":void 0},get title(){return mr(b)},get children(){return X2(b)}})}})),Z(j,$(Ye,{get each(){return H()},children:b=>$(Xe,{class:"rail-action",get classList(){return{active:r.path===b.path}},get href(){return b.href},get"aria-label"(){return b.label},get"aria-current"(){return r.path===b.path?"page":void 0},get title(){return b.label},get children(){return $(pn,{get name(){return b.name}})}})})),q})()}var ty=W('<div class="console-shell kilo-console dark"><div class=console-body><main class=console-main>');function ry(r){return(()=>{var e=ty(),t=e.firstChild,n=t.firstChild;return Z(e,$(I2,{}),t),Z(t,$(ey,{get path(){return r.path}}),n),Z(n,()=>r.children),e})()}function ny(r){const e=It(),t=D(()=>j2(e.pathname));return $(o1,{defaultTheme:"kilo",get children(){return $(ry,{get path(){return t()},get children(){return $(Sa,{get fallback(){return $(ur,{variant:"fullscreen"})},get children(){return r.children}})}})}})}function ay(r,e){const t=Object.fromEntries(Object.entries(e).filter(n=>n[1]!==void 0));if(typeof r=="string"){const n=Object.entries(t).map(a=>`${a[0]}:${a[1]}`).join(";");return n?`${r};${n}`:r}return{...r??{},...t}}var sy=W("<div>");function Qt(r){const[e,t]=Me(r,["variant","size","padding","style","class","classList","children"]),n=()=>typeof e.padding=="number"?`${e.padding}px`:e.padding;return(()=>{var a=sy();return Ne(a,pe(t,{"data-component":"card",get"data-variant"(){return e.variant??"normal"},get"data-size"(){return e.size??"default"},get style(){return ay(e.style,{"--kw-card-padding":n()})},get classList(){return{...e.classList,[e.class??""]:!!e.class}}}),!1,!0),Z(a,()=>e.children),a})()}var oy=W("<label data-component=search-field><span data-slot=search-label></span><input>");function iy(r){const[e,t]=Me(r,["label","value","variant","hideLabel","inputClass","class","classList","onValue"]);return(()=>{var n=oy(),a=n.firstChild,s=a.nextSibling;return Z(a,()=>e.label),Ne(s,pe(t,{get class(){return e.inputClass},type:"search",get value(){return e.value},get"aria-label"(){return Le(()=>e.hideLabel===!1)()?void 0:e.label},onInput:o=>e.onValue(o.currentTarget.value)}),!1,!1),ne(o=>{var i=e.variant??"list",c=e.hideLabel===!1?"visible":"hidden",f={...e.classList,[e.class??""]:!!e.class};return i!==o.e&&ce(n,"data-variant",o.e=i),c!==o.t&&ce(n,"data-label",o.t=c),o.a=Vn(n,f,o.a),o},{e:void 0,t:void 0,a:void 0}),n})()}var cy=W("<strong>Project request failed"),ly=W("<span>"),dy=W('<section class=route-empty><div class=projects-page><header class=projects-header><h1>Projects <span class=count-tag></span></h1><p>Projects opened with this Kilo server. Selecting a project opens its console.</p></header><ul class=project-list aria-label="Kilo projects">'),fy=W("<span class=project-icon aria-hidden=true>"),uy=W('<span class=project-body><span class=project-title><strong></strong><span></span></span><span class=project-meta><span class=project-git aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M6 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M18 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6 8v4a3 3 0 0 0 3 3h6"></path><path d="M14 12l3 3l-3 3"></path></svg></span><span class=project-folder></span><span aria-hidden=true>·</span><span>'),yy=W('<span class=project-arrow aria-hidden=true><svg viewBox="0 0 24 24"fill=none><path d="M9 6l6 6l-6 6">'),py=W("<li>");const jr=new URLSearchParams(window.location.search),hy=new Set(["3017","3018"]);function Be(){return jr.get("server")?!1:hy.has(window.location.port)}function hn(){const r=jr.get("server");if(r)return r;const e=Be()?Fe():"";return e||(Be()?"":window.location.origin)}function my(r){return r.split(/[\\/]/).filter(Boolean).at(-1)??"Global"}function Er(r){return Vr(r.name?.trim()||my(r.worktree)||r.id.slice(0,8))}function ky(r){const e=Er(r).split(/[\s._/-]+/).filter(Boolean);return`${e[0]?.[0]??""}${e[1]?.[0]??e[0]?.[1]??""}`.toUpperCase()||"KG"}function gy(r){const e=new URLSearchParams,t=jr.get("server");t&&e.set("server",t);const n=e.toString();return`/projects/${encodeURIComponent(r.id)}${n?`?${n}`:""}`}function by(r){return r.length<=8?r:r.slice(0,8)}function wy(r){const e=Math.max(0,Date.now()-r),t=60*1e3,n=60*t,a=24*n;if(e<t)return"just now";if(e<n)return`${Math.floor(e/t)} minutes ago`;if(e<a)return`${Math.floor(e/n)} hours ago`;const s=Math.floor(e/a);return s===1?"yesterday":`${s} days ago`}function vy(r,e){const t=e.trim().toLowerCase();return t?`${Er(r)} ${r.id} ${r.worktree}`.toLowerCase().includes(t):!0}function mn(){const[r,e]=U(hn()),[t,n]=U(""),a=D(()=>{const c=Hr(r())||hn();if(c)return{url:c,dir:""}}),[s]=Mt(a,Pt),o=D(()=>[...s()??[]].sort((c,f)=>f.time.updated-c.time.updated)),i=D(()=>o().filter(c=>vy(c,t())));return ee(()=>{Be()&&$r().then(c=>{c&&(qe(c),e(c))})}),ee(()=>{const c=a();!s()||!c||!Be()||qe(c.url)}),ee(()=>{if(!s.error||!Be())return;const c=Fe();!c||c!==r()||(Tt(),e(""),St().then(f=>{f&&(qe(f),e(f))}))}),(()=>{var c=dy(),f=c.firstChild,y=f.firstChild,u=y.firstChild,p=u.firstChild,g=p.nextSibling,m=y.nextSibling;return Z(g,()=>o().length),Z(f,$(ie,{get when(){return Le(()=>!a())()&&Be()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return Le(()=>!!s.loading)()&&!s()},get children(){return $(ur,{variant:"fullscreen"})}}),m),Z(f,$(ie,{get when(){return s.error},get children(){return $(Qt,{class:"banner",variant:"error",get children(){return[cy(),(()=>{var h=ly();return Z(h,()=>l2(s.error)),h})()]}})}}),m),Z(f,$(iy,{label:"Filter projects",get value(){return t()},placeholder:"Filter projects...",onValue:n}),m),Z(f,$(ie,{get when(){return Le(()=>!!(a()&&!s.loading&&o().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No projects have been opened with this Kilo server yet."})}}),m),Z(f,$(ie,{get when(){return Le(()=>!!(a()&&!s.loading&&o().length>0&&i().length===0))()&&!s.error},get children(){return $(Qt,{class:"empty",children:"No matches. Clear the filter or open a project from the CLI."})}}),m),Z(m,$(Ye,{get each(){return i()},children:h=>(()=>{var w=py();return Z(w,$(Xe,{class:"project-row",get href(){return gy(h)},get children(){return[(()=>{var H=fy();return Z(H,()=>ky(h)),H})(),(()=>{var H=uy(),_=H.firstChild,A=_.firstChild,T=A.nextSibling,q=_.nextSibling,x=q.firstChild,F=x.nextSibling,j=F.nextSibling,b=j.nextSibling;return Z(A,()=>Er(h)),Z(T,()=>by(h.id)),Z(F,()=>h.worktree),Z(b,()=>wy(h.time.updated)),H})(),yy()]}})),w})()})),c})()}const xy=Q(()=>X(()=>import("./ProjectConsoleRoute-B3vedHDe.js"),__vite__mapDeps([36,3,1,15,5,23,37,38])).then(r=>({default:r.ProjectConsoleRoute}))),er=Q(()=>X(()=>import("./ConfigLayout-CWLxpvlT.js"),__vite__mapDeps([39,5,40,38,27])).then(r=>({default:r.ConfigLayout}))),Cy=Q(()=>X(()=>import("./ProfileRoute-DMO8jfPR.js"),__vite__mapDeps([41,1,42,43])).then(r=>({default:r.ProfileRoute}))),Ly=Q(()=>X(()=>import("./LoginRoute-BttFRahe.js"),__vite__mapDeps([44,1,42,43])).then(r=>({default:r.LoginRoute}))),ma=document.getElementById("root");if(!ma)throw new Error("Missing root element");const qy="/console/".replace(/\/$/,"");function tr(){return r2.map(r=>$(ve,{get path(){return r.path},get component(){return r.component}}))}Ja(()=>$(Ts,{root:ny,base:qy||void 0,get children(){return[$(ve,{path:"/projects",component:mn}),$(ve,{path:"/projects/:project",component:xy}),$(ve,{path:"/projects/:project/settings",component:er,get children(){return tr()}}),$(ve,{path:"/profile",component:Cy}),$(ve,{path:"/kilo/login",component:Ly}),$(ve,{path:"/settings",component:er,get children(){return tr()}}),$(ve,{path:"/config",component:er,get children(){return tr()}}),$(ve,{path:"*",component:mn})]}}),ma);export{j7 as $,Xe as A,Hn as B,Qt as C,_7 as D,V7 as E,Ye as F,Me as G,pe as H,R1 as I,Gn as J,Ne as K,ur as L,Vy as M,Se as N,st as O,M7 as P,$7 as Q,q7 as R,ie as S,E7 as T,Vr as U,jy as V,A7 as W,Jt as X,o2 as Y,Xa as Z,k7 as _,ws as a,_1 as a$,X as a0,$t as a1,or as a2,y7 as a3,p7 as a4,Fe as a5,Tt as a6,St as a7,qe as a8,$r as a9,l7 as aA,s7 as aB,i7 as aC,o7 as aD,Ay as aE,p1 as aF,By as aG,te as aH,Ty as aI,Pr as aJ,Uy as aK,V1 as aL,Jy as aM,w1 as aN,Wy as aO,zy as aP,Un as aQ,Kn as aR,I1 as aS,y1 as aT,Oy as aU,E1 as aV,Ry as aW,Zy as aX,Ny as aY,Z1 as aZ,Vn as a_,H7 as aa,I7 as ab,Xy as ac,Ir as ad,C0 as ae,Yy as af,h7 as ag,la as ah,m7 as ai,L7 as aj,da as ak,w7 as al,g7 as am,b7 as an,a1 as ao,u7 as ap,Q as aq,a7 as ar,c7 as as,kr as at,V0 as au,Sa as av,F2 as aw,P2 as ax,d7 as ay,f7 as az,Mt as b,m1 as b0,Ky as b1,Ey as b2,Dy as b3,Fy as b4,vn as b5,Os as b6,Iy as b7,C7 as b8,x7 as b9,v7 as ba,Sy as bb,I as bc,Ae as bd,et as be,Py as bf,D as c,U as d,ee as e,$ as f,ne as g,br as h,Z as i,l2 as j,t7 as k,Qy as l,Le as m,e7 as n,fe as o,Hy as p,r7 as q,n7 as r,ce as s,W as t,It as u,Ya as v,iy as w,_y as x,Hr as y,$y as z};