ikanban-web 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-6NEUuZou.js","assets/html-DBrZJmtb.js","assets/javascript-XPxc2APE.js","assets/css-BSK200cd.js","assets/angular-ts-BfBSdvnY.js","assets/scss-Dk05w39G.js","assets/apl-C-KxP0FL.js","assets/xml-DtyAt_xK.js","assets/java-B2AjWfgk.js","assets/json-CjLXzM_z.js","assets/astro-OEl6i-aI.js","assets/typescript-DttGkNCf.js","assets/postcss-BSGhOJ4k.js","assets/tsx-Dio8iE-N.js","assets/blade-DrbQMUV-.js","assets/html-derivative-DgyNW28a.js","assets/sql-CKXjX23X.js","assets/bsl-C4qeDxuX.js","assets/sdbl-C5Q1usnU.js","assets/cairo-C_mOTUpN.js","assets/python-DgE28U1V.js","assets/cobol-nwyudZeR.js","assets/coffee-CSg58a7P.js","assets/cpp-C28rag7_.js","assets/regexp-BW_zLBm-.js","assets/glsl-Bk7TyU8J.js","assets/c-CyUOlKFr.js","assets/crystal-kLfOnxTY.js","assets/shellscript-CE-5zpiL.js","assets/edge-C9mkmEUa.js","assets/elixir-B1OcFvXE.js","assets/elm-BX_9EnK8.js","assets/erb-C0Gc-WV-.js","assets/ruby-DsIP2xqq.js","assets/haml-C-C08OMF.js","assets/graphql-By4-2MiP.js","assets/jsx-BGEKFWBk.js","assets/lua-JmSlR1pZ.js","assets/yaml-B92AUxDB.js","assets/erlang-Dh270pQQ.js","assets/markdown-CKXSK5AY.js","assets/fortran-fixed-form-B5hFr6Yn.js","assets/fortran-free-form-BuX3zftO.js","assets/fsharp-B6CigNpP.js","assets/gdresource-ChoLB09i.js","assets/gdshader-MbeiIFWW.js","assets/gdscript-BajwJ0jS.js","assets/git-commit-BicZTByO.js","assets/diff-BlzBhZx2.js","assets/git-rebase-Bzlpfr7M.js","assets/glimmer-js-cZi37nA1.js","assets/glimmer-ts-BY3QTAW9.js","assets/hack-Ce3HFLQu.js","assets/handlebars-BFxKmXBZ.js","assets/http-D0p2QOuJ.js","assets/hurl-CeF7EoTQ.js","assets/csv-AZNL9t8Q.js","assets/hxml-B_SuSTPP.js","assets/haxe-n0Q_eay_.js","assets/jinja-DlBE7Xgz.js","assets/jison-DRGa8fbr.js","assets/julia-BxjEHQ54.js","assets/r-BcofxrH1.js","assets/just-Abn-AdSa.js","assets/perl-Djxv1YJ9.js","assets/latex-C-qBiGC3.js","assets/tex-BLPnQt1V.js","assets/liquid-DdraCjph.js","assets/marko-CQjc_OQE.js","assets/less-C76OjOdF.js","assets/mdc-CqpcwBMx.js","assets/nextflow-DCuLxrAx.js","assets/nextflow-groovy-COOIDLZf.js","assets/nginx-bBKbG2uI.js","assets/nim-Cm6-Nayq.js","assets/php-DczsLzXi.js","assets/pug-ClQUpJlV.js","assets/qml-BEkX6VoX.js","assets/razor-DnCvuKPj.js","assets/csharp-DieIJxYJ.js","assets/rst-BQ8kJ8ZW.js","assets/cmake-Cv5ljclQ.js","assets/sas-BZeeyq_z.js","assets/shaderlab-DNkMdb2B.js","assets/hlsl-Pefxhtaj.js","assets/shellsession-BhddCRKA.js","assets/soy-C6ERzLIv.js","assets/sparql-CHK3vDkL.js","assets/turtle-whXsfw69.js","assets/stata-BJqnY-gO.js","assets/surrealql-CYeReaNr.js","assets/svelte-xWy8v8x_.js","assets/templ-Bod2PxCB.js","assets/go-Dn4lI1Tv.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-LEyH1z5E.js","assets/vue-DiyPqOwP.js","assets/vue-html-BM4TQ0nH.js","assets/vue-vine-CcuWFpUQ.js","assets/stylus-CHekGIgu.js","assets/xsl-Btrj9DhN.js","assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-CELfDnG_.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-eLBrqaVN.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const je={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return ow(this.context.count)},getNextContextId(){return ow(this.context.count++)}};function ow(e){const t=String(e),n=t.length-1;return je.context.id+(n?String.fromCharCode(96+n):"")+t}function Do(e){je.context=e}const v7=!1,HO=(e,t)=>e===t,Vi=Symbol("solid-proxy"),b7=typeof Proxy=="function",Uc=Symbol("solid-track"),$f={equals:HO};let $c=null,y7=S7;const pi=1,qc=2,w7={owned:null,cleanups:null,context:null,owner:null},up={};var rt=null;let Me=null,UO=null,Vt=null,mr=null,Yn=null,Kh=0;function Nn(e,t){const n=Vt,r=rt,i=e.length===0,o=t===void 0?r:t,a=i?w7:{owned:null,cleanups:null,context:o?o.context:null,owner:o},s=i?e:()=>e(()=>nt(()=>wa(a)));rt=a,Vt=null;try{return qr(s,!0)}finally{Vt=n,rt=r}}function me(e,t){t=t?Object.assign({},$f,t):$f;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(Me&&Me.running&&Me.sources.has(n)?i=i(n.tValue):i=i(n.value)),x7(n,i));return[k7.bind(n),r]}function Ng(e,t,n){const r=kd(e,t,!0,pi);Hl(r)}function Ne(e,t,n){const r=kd(e,t,!1,pi);Hl(r)}function se(e,t,n){y7=QO;const r=kd(e,t,!1,pi),i=ds&&yt(ds);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),Yn?Yn.push(r):Hl(r)}function j(e,t,n){n=n?Object.assign({},$f,n):$f;const r=kd(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Hl(r),k7.bind(r)}function qO(e){return e&&typeof e=="object"&&"then"in e}function Ss(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o=n||{}):(r=!0,i=e,o=t||{});let a=null,s=up,l=null,c=!1,d=!1,u="initialValue"in o,h=typeof r=="function"&&j(r);const m=new Set,[f,p]=(o.storage||me)(o.initialValue),[b,v]=me(void 0),[g,k]=me(void 0,{equals:!1}),[S,w]=me(u?"ready":"unresolved");je.context&&(l=je.getNextContextId(),o.ssrLoadFrom==="initial"?s=o.initialValue:je.load&&je.has(l)&&(s=je.load(l)));function x(F,N,D,T){return a===F&&(a=null,T!==void 0&&(u=!0),(F===s||N===s)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(T,{value:N})),s=up,Me&&F&&c?(Me.promises.delete(F),c=!1,qr(()=>{Me.running=!0,L(N,D)},!1)):L(N,D)),N}function L(F,N){qr(()=>{N===void 0&&p(()=>F),w(N!==void 0?"errored":u?"ready":"unresolved"),v(N);for(const D of m.keys())D.decrement();m.clear()},!1)}function C(){const F=ds&&yt(ds),N=f(),D=b();if(D!==void 0&&!a)throw D;return Vt&&!Vt.user&&F&&Ng(()=>{g(),a&&(F.resolved&&Me&&c?Me.promises.add(a):m.has(F)||(F.increment(),m.add(F)))}),N}function I(F=!0){if(F!==!1&&d)return;d=!1;const N=h?h():r;if(c=Me&&Me.running,N==null||N===!1){x(a,nt(f));return}Me&&a&&Me.promises.delete(a);let D;const T=s!==up?s:nt(()=>{try{return i(N,{value:f(),refetching:F})}catch(M){D=M}});if(D!==void 0){x(a,void 0,pf(D),N);return}else if(!qO(T))return x(a,T,void 0,N),T;return a=T,"v"in T?(T.s===1?x(a,T.v,void 0,N):x(a,void 0,pf(T.v),N),T):(d=!0,queueMicrotask(()=>d=!1),qr(()=>{w(u?"refreshing":"pending"),k()},!1),T.then(M=>x(T,M,void 0,N),M=>x(T,void 0,pf(M),N)))}Object.defineProperties(C,{state:{get:()=>S()},error:{get:()=>b()},loading:{get(){const F=S();return F==="pending"||F==="refreshing"}},latest:{get(){if(!u)return C();const F=b();if(F&&!a)throw F;return f()}}});let $=rt;return h?Ng(()=>($=rt,I(!1))):I(!1),[C,{refetch:F=>Mo($,()=>I(F)),mutate:p}]}function _t(e){return qr(e,!1)}function nt(e){if(Vt===null)return e();const t=Vt;Vt=null;try{return e()}finally{Vt=t}}function Ht(e,t,n){const r=Array.isArray(e);let i,o=n&&n.defer;return a=>{let s;if(r){s=Array(e.length);for(let c=0;c<e.length;c++)s[c]=e[c]()}else s=e();if(o)return o=!1,a;const l=nt(()=>t(s,i,a));return i=s,l}}function Wt(e){se(()=>nt(e))}function he(e){return rt===null||(rt.cleanups===null?rt.cleanups=[e]:rt.cleanups.push(e)),e}function ZO(e,t){$c||($c=Symbol("error")),rt=kd(void 0,void 0,!0),rt.context={...rt.context,[$c]:[t]},Me&&Me.running&&Me.sources.add(rt);try{return e()}catch(n){xd(n)}finally{rt=rt.owner}}function Fg(){return Vt}function fo(){return rt}function Mo(e,t){const n=rt,r=Vt;rt=e,Vt=null;try{return qr(t,!0)}catch(i){xd(i)}finally{rt=n,Vt=r}}function WO(e){if(Me&&Me.running)return e(),Me.done;const t=Vt,n=rt;return Promise.resolve().then(()=>{Vt=t,rt=n;let r;return ds&&(r=Me||(Me={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(i=>r.resolve=i)),r.running=!0),qr(e,!1),Vt=rt=null,r?r.done:void 0})}const[Pge,aw]=me(!1);function GO(e){Yn.push.apply(Yn,e),e.length=0}function Ct(e,t){const n=Symbol("context");return{id:n,Provider:XO(n),defaultValue:e}}function yt(e){let t;return rt&&rt.context&&(t=rt.context[e.id])!==void 0?t:e.defaultValue}function _s(e){const t=j(e),n=j(()=>Vg(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let ds;function KO(){return ds||(ds=Ct())}function k7(){const e=Me&&Me.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===pi)Hl(this);else{const t=mr;mr=null,qr(()=>zf(this),!1),mr=t}if(Vt){const t=this.observers?this.observers.length:0;Vt.sources?(Vt.sources.push(this),Vt.sourceSlots.push(t)):(Vt.sources=[this],Vt.sourceSlots=[t]),this.observers?(this.observers.push(Vt),this.observerSlots.push(Vt.sources.length-1)):(this.observers=[Vt],this.observerSlots=[Vt.sources.length-1])}return e&&Me.sources.has(this)?this.tValue:this.value}function x7(e,t,n){let r=Me&&Me.running&&Me.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(Me){const i=Me.running;(i||!n&&Me.sources.has(e))&&(Me.sources.add(e),e.tValue=t),i||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&qr(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],a=Me&&Me.running;a&&Me.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?mr.push(o):Yn.push(o),o.observers&&_7(o)),a?o.tState=pi:o.state=pi)}if(mr.length>1e6)throw mr=[],new Error},!1)}return t}function Hl(e){if(!e.fn)return;wa(e);const t=Kh;sw(e,Me&&Me.running&&Me.sources.has(e)?e.tValue:e.value,t),Me&&!Me.running&&Me.sources.has(e)&&queueMicrotask(()=>{qr(()=>{Me&&(Me.running=!0),Vt=rt=e,sw(e,e.tValue,t),Vt=rt=null},!1)})}function sw(e,t,n){let r;const i=rt,o=Vt;Vt=rt=e;try{r=e.fn(t)}catch(a){return e.pure&&(Me&&Me.running?(e.tState=pi,e.tOwned&&e.tOwned.forEach(wa),e.tOwned=void 0):(e.state=pi,e.owned&&e.owned.forEach(wa),e.owned=null)),e.updatedAt=n+1,xd(a)}finally{Vt=o,rt=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?x7(e,r,!0):Me&&Me.running&&e.pure?(Me.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function kd(e,t,n,r=pi,i){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:rt,context:rt?rt.context:null,pure:n};return Me&&Me.running&&(o.state=0,o.tState=r),rt===null||rt!==w7&&(Me&&Me.running&&rt.pure?rt.tOwned?rt.tOwned.push(o):rt.tOwned=[o]:rt.owned?rt.owned.push(o):rt.owned=[o]),o}function Rf(e){const t=Me&&Me.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===qc)return zf(e);if(e.suspense&&nt(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Kh);){if(t&&Me.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let i=e,o=n[r+1];for(;(i=i.owner)&&i!==o;)if(Me.disposed.has(i))return}if((t?e.tState:e.state)===pi)Hl(e);else if((t?e.tState:e.state)===qc){const i=mr;mr=null,qr(()=>zf(e,n[0]),!1),mr=i}}}function qr(e,t){if(mr)return e();let n=!1;t||(mr=[]),Yn?n=!0:Yn=[],Kh++;try{const r=e();return JO(n),r}catch(r){n||(Yn=null),mr=null,xd(r)}}function JO(e){if(mr&&(S7(mr),mr=null),e)return;let t;if(Me){if(!Me.promises.size&&!Me.queue.size){const r=Me.sources,i=Me.disposed;Yn.push.apply(Yn,Me.effects),t=Me.resolve;for(const o of Yn)"tState"in o&&(o.state=o.tState),delete o.tState;Me=null,qr(()=>{for(const o of i)wa(o);for(const o of r){if(o.value=o.tValue,o.owned)for(let a=0,s=o.owned.length;a<s;a++)wa(o.owned[a]);o.tOwned&&(o.owned=o.tOwned),delete o.tValue,delete o.tOwned,o.tState=0}aw(!1)},!1)}else if(Me.running){Me.running=!1,Me.effects.push.apply(Me.effects,Yn),Yn=null,aw(!0);return}}const n=Yn;Yn=null,n.length&&qr(()=>y7(n),!1),t&&t()}function S7(e){for(let t=0;t<e.length;t++)Rf(e[t])}function QO(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Rf(r)}if(je.context){if(je.count){je.effects||(je.effects=[]),je.effects.push(...e.slice(0,n));return}Do()}for(je.effects&&(je.done||!je.count)&&(e=[...je.effects,...e],n+=je.effects.length,delete je.effects),t=0;t<n;t++)Rf(e[t])}function zf(e,t){const n=Me&&Me.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){const i=e.sources[r];if(i.sources){const o=n?i.tState:i.state;o===pi?i!==t&&(!i.updatedAt||i.updatedAt<Kh)&&Rf(i):o===qc&&zf(i,t)}}}function _7(e){const t=Me&&Me.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=qc:r.state=qc,r.pure?mr.push(r):Yn.push(r),r.observers&&_7(r))}}function wa(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)wa(e.tOwned[t]);delete e.tOwned}if(Me&&Me.running&&e.pure)A7(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)wa(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}Me&&Me.running?e.tState=0:e.state=0}function A7(e,t){if(t||(e.tState=0,Me.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)A7(e.owned[n])}function pf(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function lw(e,t,n){try{for(const r of t)r(e)}catch(r){xd(r,n&&n.owner||null)}}function xd(e,t=rt){const n=$c&&t&&t.context&&t.context[$c],r=pf(e);if(!n)throw r;Yn?Yn.push({fn(){lw(r,n,t)},state:pi}):lw(r,n,t)}function Vg(e){if(typeof e=="function"&&!e.length)return Vg(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Vg(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function XO(e,t){return function(r){let i;return Ne(()=>i=nt(()=>(rt.context={...rt.context,[e]:r.value},_s(()=>r.children))),void 0),i}}const jg=Symbol("fallback");function Nf(e){for(let t=0;t<e.length;t++)e[t]()}function YO(e,t,n={}){let r=[],i=[],o=[],a=0,s=t.length>1?[]:null;return he(()=>Nf(o)),()=>{let l=e()||[],c=l.length,d,u;return l[Uc],nt(()=>{let m,f,p,b,v,g,k,S,w;if(c===0)a!==0&&(Nf(o),o=[],r=[],i=[],a=0,s&&(s=[])),n.fallback&&(r=[jg],i[0]=Nn(x=>(o[0]=x,n.fallback())),a=1);else if(a===0){for(i=new Array(c),u=0;u<c;u++)r[u]=l[u],i[u]=Nn(h);a=c}else{for(p=new Array(c),b=new Array(c),s&&(v=new Array(c)),g=0,k=Math.min(a,c);g<k&&r[g]===l[g];g++);for(k=a-1,S=c-1;k>=g&&S>=g&&r[k]===l[S];k--,S--)p[S]=i[k],b[S]=o[k],s&&(v[S]=s[k]);for(m=new Map,f=new Array(S+1),u=S;u>=g;u--)w=l[u],d=m.get(w),f[u]=d===void 0?-1:d,m.set(w,u);for(d=g;d<=k;d++)w=r[d],u=m.get(w),u!==void 0&&u!==-1?(p[u]=i[d],b[u]=o[d],s&&(v[u]=s[d]),u=f[u],m.set(w,u)):o[d]();for(u=g;u<c;u++)u in p?(i[u]=p[u],o[u]=b[u],s&&(s[u]=v[u],s[u](u))):i[u]=Nn(h);i=i.slice(0,a=c),r=l.slice(0)}return i});function h(m){if(o[u]=m,s){const[f,p]=me(u);return s[u]=p,t(l[u],f)}return t(l[u])}}}function e$(e,t,n={}){let r=[],i=[],o=[],a=[],s=0,l;return he(()=>Nf(o)),()=>{const c=e()||[],d=c.length;return c[Uc],nt(()=>{if(d===0)return s!==0&&(Nf(o),o=[],r=[],i=[],s=0,a=[]),n.fallback&&(r=[jg],i[0]=Nn(h=>(o[0]=h,n.fallback())),s=1),i;for(r[0]===jg&&(o[0](),o=[],r=[],i=[],s=0),l=0;l<d;l++)l<r.length&&r[l]!==c[l]?a[l](()=>c[l]):l>=r.length&&(i[l]=Nn(u));for(;l<r.length;l++)o[l]();return s=a.length=o.length=d,r=c.slice(0),i=i.slice(0,s)});function u(h){o[l]=h;const[m,f]=me(c[l]);return a[l]=f,t(m,l)}}}function y(e,t){return nt(()=>e(t||{}))}function xu(){return!0}const Bg={get(e,t,n){return t===Vi?n:e.get(t)},has(e,t){return t===Vi?!0:e.has(t)},set:xu,deleteProperty:xu,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:xu,deleteProperty:xu}},ownKeys(e){return e.keys()}};function fp(e){return(e=typeof e=="function"?e():e)?e:{}}function t$(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function ee(...e){let t=!1;for(let a=0;a<e.length;a++){const s=e[a];t=t||!!s&&Vi in s,e[a]=typeof s=="function"?(t=!0,j(s)):s}if(b7&&t)return new Proxy({get(a){for(let s=e.length-1;s>=0;s--){const l=fp(e[s])[a];if(l!==void 0)return l}},has(a){for(let s=e.length-1;s>=0;s--)if(a in fp(e[s]))return!0;return!1},keys(){const a=[];for(let s=0;s<e.length;s++)a.push(...Object.keys(fp(e[s])));return[...new Set(a)]}},Bg);const n={},r=Object.create(null);for(let a=e.length-1;a>=0;a--){const s=e[a];if(!s)continue;const l=Object.getOwnPropertyNames(s);for(let c=l.length-1;c>=0;c--){const d=l[c];if(d==="__proto__"||d==="constructor")continue;const u=Object.getOwnPropertyDescriptor(s,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:t$.bind(n[d]=[u.get.bind(s)])}:u.value!==void 0?u:void 0;else{const h=n[d];h&&(u.get?h.push(u.get.bind(s)):u.value!==void 0&&h.push(()=>u.value))}}}const i={},o=Object.keys(r);for(let a=o.length-1;a>=0;a--){const s=o[a],l=r[s];l&&l.get?Object.defineProperty(i,s,l):i[s]=l?l.value:void 0}return i}function ue(e,...t){const n=t.length;if(b7&&Vi in e){const i=n>1?t.flat():t[0],o=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},Bg));return o.push(new Proxy({get(a){return i.includes(a)?void 0:e[a]},has(a){return i.includes(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!i.includes(a))}},Bg)),o}const r=[];for(let i=0;i<=n;i++)r[i]={};for(const i of Object.getOwnPropertyNames(e)){let o=n;for(let l=0;l<t.length;l++)if(t[l].includes(i)){o=l;break}const a=Object.getOwnPropertyDescriptor(e,i);!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable?r[o][i]=a.value:Object.defineProperty(r[o],i,a)}return r}function C7(e){let t,n;const r=i=>{const o=je.context;if(o){const[s,l]=me();je.count||(je.count=0),je.count++,(n||(n=e())).then(c=>{!je.done&&Do(o),je.count--,l(()=>c.default),Do()}),t=s}else if(!t){const[s]=Ss(()=>(n||(n=e())).then(l=>l.default));t=s}let a;return j(()=>(a=t())?nt(()=>{if(!o||je.done)return a(i);const s=je.context;Do(o);const l=a(i);return Do(s),l}):"")};return r.preload=()=>n||((n=e()).then(i=>t=()=>i.default),n),r}let n$=0;function cn(){return je.context?je.getNextContextId():`cl-${n$++}`}const E7=e=>`Stale read from <${e}>.`;function on(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(YO(()=>e.each,e.children,t||void 0))}function Oge(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(e$(()=>e.each,e.children,t||void 0))}function de(e){const t=e.keyed,n=j(()=>e.when,void 0,void 0),r=t?n:j(n,void 0,{equals:(i,o)=>!i==!o});return j(()=>{const i=r();if(i){const o=e.children;return typeof o=="function"&&o.length>0?nt(()=>o(t?i:()=>{if(!nt(r))throw E7("Show");return n()})):o}return e.fallback},void 0,void 0)}function Ur(e){const t=_s(()=>e.children),n=j(()=>{const r=t(),i=Array.isArray(r)?r:[r];let o=()=>{};for(let a=0;a<i.length;a++){const s=a,l=i[a],c=o,d=j(()=>c()?void 0:l.when,void 0,void 0),u=l.keyed?d:j(d,void 0,{equals:(h,m)=>!h==!m});o=()=>c()||(u()?[s,d,l]:void 0)}return o});return j(()=>{const r=n()();if(!r)return e.fallback;const[i,o,a]=r,s=a.children;return typeof s=="function"&&s.length>0?nt(()=>s(a.keyed?o():()=>{if(nt(n)()?.[0]!==i)throw E7("Match");return o()})):s},void 0,void 0)}function Ot(e){return e}let ul;function r$(){ul&&[...ul].forEach(e=>e())}function i$(e){let t;je.context&&je.load&&(t=je.load(je.getContextId()));const[n,r]=me(t,void 0);return ul||(ul=new Set),ul.add(r),he(()=>ul.delete(r)),j(()=>{let i;if(i=n()){const o=e.fallback;return typeof o=="function"&&o.length?nt(()=>o(i,()=>r())):o}return ZO(()=>e.children,r)},void 0,void 0)}const o$=Ct();function I7(e){let t=0,n,r,i,o,a;const[s,l]=me(!1),c=KO(),d={increment:()=>{++t===1&&l(!0)},decrement:()=>{--t===0&&l(!1)},inFallback:s,effects:[],resolved:!1},u=fo();if(je.context&&je.load){const f=je.getContextId();let p=je.load(f);if(p&&(typeof p!="object"||p.s!==1?i=p:je.gather(f)),i&&i!=="$$f"){const[b,v]=me(void 0,{equals:!1});o=b,i.then(()=>{if(je.done)return v();je.gather(f),Do(r),v(),Do()},g=>{a=g,v()})}}const h=yt(o$);h&&(n=h.register(d.inFallback));let m;return he(()=>m&&m()),y(c.Provider,{value:d,get children(){return j(()=>{if(a)throw a;if(r=je.context,o)return o(),o=void 0;r&&i==="$$f"&&Do();const f=j(()=>e.children);return j(p=>{const b=d.inFallback(),{showContent:v=!0,showFallback:g=!0}=n?n():{};if((!b||i&&i!=="$$f")&&v)return d.resolved=!0,m&&m(),m=r=i=void 0,GO(d.effects),f();if(g)return m?p:Nn(k=>(m=k,r&&(Do({id:r.id+"F",count:0}),r=void 0),e.fallback),u)})})}})}const a$=["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"],s$=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...a$]),l$=new Set(["innerHTML","textContent","innerText","children"]),c$=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),d$=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 u$(e,t){const n=d$[e];return typeof n=="object"?n[t]?n.$:void 0:n}const f$=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),h$=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"]),m$={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Le=e=>j(()=>e());function p$(e,t,n){let r=n.length,i=t.length,o=r,a=0,s=0,l=t[i-1].nextSibling,c=null;for(;a<i||s<o;){if(t[a]===n[s]){a++,s++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){const d=o<r?s?n[s-1].nextSibling:n[o-s]:l;for(;s<o;)e.insertBefore(n[s++],d)}else if(o===s)for(;a<i;)(!c||!c.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[s]===t[i-1]){const d=t[--i].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--o],d),t[i]=n[o]}else{if(!c){c=new Map;let u=s;for(;u<o;)c.set(n[u],u++)}const d=c.get(t[a]);if(d!=null)if(s<d&&d<o){let u=a,h=1,m;for(;++u<i&&u<o&&!((m=c.get(t[u]))==null||m!==d+h);)h++;if(h>d-s){const f=t[a];for(;s<d;)e.insertBefore(n[s++],f)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}}const cw="_$DX_DELEGATE";function g$(e,t,n,r={}){let i;return Nn(o=>{i=o,t===document?e():P(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=""}}function Q(e,t,n,r){let i;const o=()=>{const s=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return s.innerHTML=e,n?s.content.firstChild.firstChild:r?s.firstChild:s.content.firstChild},a=t?()=>nt(()=>document.importNode(i||(i=o()),!0)):()=>(i||(i=o())).cloneNode(!0);return a.cloneNode=a,a}function rr(e,t=window.document){const n=t[cw]||(t[cw]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,x$))}}function et(e,t,n){As(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function v$(e,t,n,r){As(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function b$(e,t,n){As(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function zo(e,t){As(e)||(t==null?e.removeAttribute("class"):e.className=t)}function ga(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n,typeof n!="function"&&n)}function ln(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(dw(e,s,!1),delete n[s])}for(o=0,a=r.length;o<a;o++){const s=r[o],l=!!t[s];!s||s==="undefined"||n[s]===l||!l||(dw(e,s,!0),n[s]=l)}return n}function Jh(e,t,n){if(!t)return n?et(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function zi(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function nr(e,t={},n,r){const i={};return r||Ne(()=>i.children=Zc(e,t.children,i.children)),Ne(()=>typeof t.ref=="function"&&or(t.ref,e)),Ne(()=>y$(e,t,n,!0,i,!0)),i}function or(e,t,n){return nt(()=>e(t,n))}function P(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Zc(e,t,r,n);Ne(i=>Zc(e,t(),i,n),r)}function y$(e,t,n,r,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=uw(e,a,null,i[a],n,o,t)}for(const a in t){if(a==="children")continue;const s=t[a];i[a]=uw(e,a,s,i[a],n,o,t)}}function w$(e){let t,n;return!As()||!(t=je.registry.get(n=S$()))?e():(je.completed&&je.completed.add(t),je.registry.delete(n),t)}function As(e){return!!je.context&&!je.done&&(!e||e.isConnected)}function k$(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function dw(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function uw(e,t,n,r,i,o,a){let s,l,c,d,u;if(t==="style")return Jh(e,n,r);if(t==="classList")return ln(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);r&&e.removeEventListener(h,r,typeof r!="function"&&r),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);r&&e.removeEventListener(h,r,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),m=f$.has(h);if(!m&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(h,f)}(m||n)&&(ga(e,h,n,m),m&&rr([h]))}else if(t.slice(0,5)==="attr:")et(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")b$(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=l$.has(t))||!i&&((d=u$(t,e.tagName))||(l=s$.has(t)))||(s=e.nodeName.includes("-")||"is"in a)){if(u)t=t.slice(5),l=!0;else if(As(e))return n;t==="class"||t==="className"?zo(e,n):s&&!l&&!c?e[k$(t)]=n:e[d||t]=n}else{const h=i&&t.indexOf(":")>-1&&m$[t.split(":")[0]];h?v$(e,h,t,n):et(e,c$[t]||t,n)}return n}function x$(e){if(je.registry&&je.events&&je.events.find(([l,c])=>c===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),a=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},s=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),je.registry&&!je.done&&(je.done=_$HY.done=!0),e.composedPath){const l=e.composedPath();o(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!a());c++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();o(r)}function Zc(e,t,n,r,i){const o=As(e);if(o){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){const d=n[c];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;const a=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(o||a==="number"&&(t=t.toString(),t===n))return n;if(s){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=js(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||a==="boolean"){if(o)return n;n=js(e,n,r)}else{if(a==="function")return Ne(()=>{let l=t();for(;typeof l=="function";)l=l();n=Zc(e,l,n,r)}),()=>n;if(Array.isArray(t)){const l=[],c=n&&Array.isArray(n);if(Hg(l,t,n,i))return Ne(()=>n=Zc(e,l,n,r,!0)),()=>n;if(o){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return n;const u=[d];for(;(d=d.nextSibling)!==r;)u.push(d);return n=u}if(l.length===0){if(n=js(e,n,r),s)return n}else c?n.length===0?fw(e,l,r):p$(e,n,l):(n&&js(e),fw(e,l));n=l}else if(t.nodeType){if(o&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=js(e,n,r,t);js(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Hg(e,t,n,r){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],l=n&&n[e.length],c;if(!(s==null||s===!0||s===!1))if((c=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))i=Hg(e,s,l)||i;else if(c==="function")if(r){for(;typeof s=="function";)s=s();i=Hg(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||i}else e.push(s),i=!0;else{const d=String(s);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return i}function fw(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function js(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const l=s.parentNode===e;!o&&!a?l?e.replaceChild(i,s):e.insertBefore(i,n):l&&s.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}function S$(){return je.getNextContextId()}const _$=!1,A$="http://www.w3.org/2000/svg";function T7(e,t=!1,n=void 0){return t?document.createElementNS(A$,e):document.createElement(e,{is:n})}function Da(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,i=fo();let o,a=!!je.context;return se(()=>{a&&(fo().user=a=!1),o||(o=Mo(i,()=>j(()=>e.children)));const s=r();if(s instanceof HTMLHeadElement){const[l,c]=me(!1),d=()=>c(!0);Nn(u=>P(s,()=>l()?u():o(),null)),he(d)}else{const l=T7(e.isSVG?"g":"div",e.isSVG),c=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),P(c,o),s.appendChild(l),e.ref&&e.ref(l),he(()=>s.removeChild(l))}},void 0,{render:!a}),n}function C$(e,t){const n=j(e);return j(()=>{const r=n();switch(typeof r){case"function":return nt(()=>r(t));case"string":const i=h$.has(r),o=je.context?w$():T7(r,i,nt(()=>t.is));return nr(o,t,i),o}})}function E$(e){const[,t]=ue(e,["component"]);return C$(()=>e.component,t)}function I$(e){return e()}const T$="modulepreload",L$=function(e){return"/"+e},hw={},A=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");i=l(n.map(c=>{if(c=L$(c),c in hw)return;hw[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":T$,d||(h.as="script"),h.crossOrigin="",h.href=c,s&&h.setAttribute("nonce",s),document.head.appendChild(h),d)return new Promise((m,f)=>{h.addEventListener("load",m),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};function It(e){const t=new TextEncoder().encode(e),n=Array.from(t,r=>String.fromCharCode(r)).join("");return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function D$(e){const t=atob(e.replace(/-/g,"+").replace(/_/g,"/")),n=Uint8Array.from(t,r=>r.charCodeAt(0));return new TextDecoder().decode(n)}function Ff(e){if(!e)return;let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function mw(e,t=5e5){if(!e)return;if(e.length<=t)return Ff(e);const n=4096,i=[0,Math.floor(e.length*.25),Math.floor(e.length*.5),Math.floor(e.length*.75),e.length-n].map(o=>{const a=Math.max(0,Math.min(e.length-n,o-Math.floor(n/2)));return Ff(e.slice(a,a+n))??""}).join(":");return`${e.length}:${i}`}const Vf="diffs-container",M$=/(?=^diff --git)/gm,P$=/(?=^@@ )/gm,O$=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,gf=/(?<=\n)/,$$=/^(---|\+\+\+)\s+([^\t\r\n]+)/,R$=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,z$=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,N$=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,L1="header-prefix",D1="header-metadata",hr={dark:"pierre-dark",light:"pierre-light"},M1="data-unsafe-css",vl=1,P1={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},F$=Object.freeze({fromStart:0,fromEnd:0}),jf={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},L7={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function pw(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}function Bo(e){return{type:"text",value:e}}function wt({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function Bf({name:e,width:t=16,height:n=16,properties:r}){return wt({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...r},children:[wt({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function V$(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function fl(e){return wt({tagName:"div",properties:{"data-gutter":""},children:e})}function D7(e,t,n){return wt({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n},children:t!=null?[wt({tagName:"span",properties:{"data-line-number-content":""},children:[Bo(`${t}`)]})]:void 0})}function ai(e,t,n){return wt({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function j$(){return wt({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[Bf({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function B$(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side}const H$=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Sd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Sd.prototype.normal={};Sd.prototype.property={};Sd.prototype.space=void 0;function M7(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Sd(n,r,t)}function Ug(e){return e.toLowerCase()}let Mr=class{constructor(t,n){this.attribute=n,this.property=t}};Mr.prototype.attribute="";Mr.prototype.booleanish=!1;Mr.prototype.boolean=!1;Mr.prototype.commaOrSpaceSeparated=!1;Mr.prototype.commaSeparated=!1;Mr.prototype.defined=!1;Mr.prototype.mustUseProperty=!1;Mr.prototype.number=!1;Mr.prototype.overloadedBoolean=!1;Mr.prototype.property="";Mr.prototype.spaceSeparated=!1;Mr.prototype.space=void 0;let U$=0;const ht=Cs(),Mn=Cs(),qg=Cs(),Ee=Cs(),Yt=Cs(),bl=Cs(),Vr=Cs();function Cs(){return 2**++U$}const Zg=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:Mn,commaOrSpaceSeparated:Vr,commaSeparated:bl,number:Ee,overloadedBoolean:qg,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),hp=Object.keys(Zg);class O1 extends Mr{constructor(t,n,r,i){let o=-1;if(super(t,n),gw(this,"space",i),typeof r=="number")for(;++o<hp.length;){const a=hp[o];gw(this,hp[o],(r&Zg[a])===Zg[a])}}}O1.prototype.defined=!0;function gw(e,t,n){n&&(e[t]=n)}function Ul(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new O1(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ug(r)]=r,n[Ug(o.attribute)]=r}return new Sd(t,n,e.space)}const P7=Ul({properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:Yt,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:Ee,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:Yt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Mn,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function O7(e,t){return t in e?e[t]:t}function $7(e,t){return O7(e,t.toLowerCase())}const q$=Ul({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bl,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:Yt,autoFocus:ht,autoPlay:ht,blocking:Yt,capture:null,charSet:null,checked:ht,cite:null,className:Yt,cols:Ee,colSpan:null,content:null,contentEditable:Mn,controls:ht,controlsList:Yt,coords:Ee|bl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:qg,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:Yt,height:Ee,hidden:qg,high:Ee,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:ht,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ht,optimum:Ee,pattern:null,ping:Yt,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:Yt,required:ht,reversed:ht,rows:Ee,rowSpan:Ee,sandbox:Yt,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:Mn,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:$7}),Z$=Ul({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Vr,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bl,g2:bl,glyphName:bl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Vr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vr,rev:Vr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vr,requiredFeatures:Vr,requiredFonts:Vr,requiredFormats:Vr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Vr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vr,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O7}),R7=Ul({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),z7=Ul({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$7}),N7=Ul({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),W$=/[A-Z]/g,vw=/-[a-z]/g,G$=/^data[-\w.:]+$/i;function K$(e,t){const n=Ug(t);let r=t,i=Mr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&G$.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vw,Q$);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vw.test(o)){let a=o.replace(W$,J$);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=O1}return new i(r,t)}function J$(e){return"-"+e.toLowerCase()}function Q$(e){return e.charAt(1).toUpperCase()}const X$=M7([P7,q$,R7,z7,N7],"html"),F7=M7([P7,Z$,R7,z7,N7],"svg"),bw={}.hasOwnProperty;function Y$(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&bw.call(i,e)){const l=String(i[e]);a=bw.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const eR=/["&'<>`]/g,tR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nR=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rR=/[|\\{}()[\]^$+*?.]/g,yw=new WeakMap;function iR(e,t){if(e=e.replace(t.subset?oR(t.subset):eR,r),t.subset||t.escapeOnly)return e;return e.replace(tR,n).replace(nR,r);function n(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function r(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function oR(e){let t=yw.get(e);return t||(t=aR(e),yw.set(e,t)),t}function aR(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(rR,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const sR=/[\dA-Fa-f]/;function lR(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!sR.test(String.fromCharCode(t))?r:r+";"}const cR=/\d/;function dR(e,t,n){const r="&#"+String(e);return n&&t&&!cR.test(String.fromCharCode(t))?r:r+";"}const uR=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],mp={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},fR=["cent","copy","divide","gt","lt","not","para","times"],V7={}.hasOwnProperty,Wg={};let Su;for(Su in mp)V7.call(mp,Su)&&(Wg[mp[Su]]=Su);const hR=/[^\dA-Za-z]/;function mR(e,t,n,r){const i=String.fromCharCode(e);if(V7.call(Wg,i)){const o=Wg[i],a="&"+o;return n&&uR.includes(o)&&!fR.includes(o)&&(!r||t&&t!==61&&hR.test(String.fromCharCode(t)))?a:a+";"}return""}function pR(e,t,n){let r=lR(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=mR(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=dR(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function yl(e,t){return iR(e,Object.assign({format:pR},t))}const gR=/^>|^->|<!--|-->|--!>|<!-$/g,vR=[">"],bR=["<",">"];function yR(e,t,n,r){return r.settings.bogusComments?"<?"+yl(e.value,Object.assign({},r.settings.characterReferences,{subset:vR}))+">":"<!--"+e.value.replace(gR,i)+"-->";function i(o){return yl(o,Object.assign({},r.settings.characterReferences,{subset:bR}))}}function wR(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ww(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function kR(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function xR(e){return e.join(" ").trim()}const SR=/[ \t\n\f\r]/g;function $1(e){return typeof e=="object"?e.type==="text"?kw(e.value):!1:kw(e)}function kw(e){return e.replace(SR,"")===""}const Gn=B7(1),j7=B7(-1),_R=[];function B7(e){return t;function t(n,r,i){const o=n?n.children:_R;let a=(r||0)+e,s=o[a];if(!i)for(;s&&$1(s);)a+=e,s=o[a];return s}}const AR={}.hasOwnProperty;function H7(e){return t;function t(n,r,i){return AR.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const R1=H7({body:ER,caption:pp,colgroup:pp,dd:DR,dt:LR,head:pp,html:CR,li:TR,optgroup:MR,option:PR,p:IR,rp:xw,rt:xw,tbody:$R,td:Sw,tfoot:RR,th:Sw,thead:OR,tr:zR});function pp(e,t,n){const r=Gn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&$1(r.value.charAt(0)))}function CR(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function ER(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function IR(e,t,n){const r=Gn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function TR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function LR(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function DR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function xw(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function MR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function PR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function OR(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function $R(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function RR(e,t,n){return!Gn(n,t)}function zR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Sw(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const NR=H7({body:jR,colgroup:BR,head:VR,html:FR,tbody:HR});function FR(e){const t=Gn(e,-1);return!t||t.type!=="comment"}function VR(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function jR(e){const t=Gn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&$1(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function BR(e,t,n){const r=j7(n,t),i=Gn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&R1(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function HR(e,t,n){const r=j7(n,t),i=Gn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&R1(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const _u={name:[[`
2
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const je={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return ow(this.context.count)},getNextContextId(){return ow(this.context.count++)}};function ow(e){const t=String(e),n=t.length-1;return je.context.id+(n?String.fromCharCode(96+n):"")+t}function Do(e){je.context=e}const v7=!1,HO=(e,t)=>e===t,Vi=Symbol("solid-proxy"),b7=typeof Proxy=="function",Uc=Symbol("solid-track"),$f={equals:HO};let $c=null,y7=S7;const pi=1,qc=2,w7={owned:null,cleanups:null,context:null,owner:null},up={};var rt=null;let Me=null,UO=null,Vt=null,mr=null,Yn=null,Kh=0;function Nn(e,t){const n=Vt,r=rt,i=e.length===0,o=t===void 0?r:t,a=i?w7:{owned:null,cleanups:null,context:o?o.context:null,owner:o},s=i?e:()=>e(()=>nt(()=>wa(a)));rt=a,Vt=null;try{return qr(s,!0)}finally{Vt=n,rt=r}}function me(e,t){t=t?Object.assign({},$f,t):$f;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(Me&&Me.running&&Me.sources.has(n)?i=i(n.tValue):i=i(n.value)),x7(n,i));return[k7.bind(n),r]}function Ng(e,t,n){const r=kd(e,t,!0,pi);Hl(r)}function Ne(e,t,n){const r=kd(e,t,!1,pi);Hl(r)}function se(e,t,n){y7=QO;const r=kd(e,t,!1,pi),i=ds&&yt(ds);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),Yn?Yn.push(r):Hl(r)}function j(e,t,n){n=n?Object.assign({},$f,n):$f;const r=kd(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Hl(r),k7.bind(r)}function qO(e){return e&&typeof e=="object"&&"then"in e}function Ss(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o=n||{}):(r=!0,i=e,o=t||{});let a=null,s=up,l=null,c=!1,d=!1,u="initialValue"in o,h=typeof r=="function"&&j(r);const m=new Set,[f,p]=(o.storage||me)(o.initialValue),[b,v]=me(void 0),[g,k]=me(void 0,{equals:!1}),[S,w]=me(u?"ready":"unresolved");je.context&&(l=je.getNextContextId(),o.ssrLoadFrom==="initial"?s=o.initialValue:je.load&&je.has(l)&&(s=je.load(l)));function x(F,N,D,T){return a===F&&(a=null,T!==void 0&&(u=!0),(F===s||N===s)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(T,{value:N})),s=up,Me&&F&&c?(Me.promises.delete(F),c=!1,qr(()=>{Me.running=!0,L(N,D)},!1)):L(N,D)),N}function L(F,N){qr(()=>{N===void 0&&p(()=>F),w(N!==void 0?"errored":u?"ready":"unresolved"),v(N);for(const D of m.keys())D.decrement();m.clear()},!1)}function C(){const F=ds&&yt(ds),N=f(),D=b();if(D!==void 0&&!a)throw D;return Vt&&!Vt.user&&F&&Ng(()=>{g(),a&&(F.resolved&&Me&&c?Me.promises.add(a):m.has(F)||(F.increment(),m.add(F)))}),N}function I(F=!0){if(F!==!1&&d)return;d=!1;const N=h?h():r;if(c=Me&&Me.running,N==null||N===!1){x(a,nt(f));return}Me&&a&&Me.promises.delete(a);let D;const T=s!==up?s:nt(()=>{try{return i(N,{value:f(),refetching:F})}catch(M){D=M}});if(D!==void 0){x(a,void 0,pf(D),N);return}else if(!qO(T))return x(a,T,void 0,N),T;return a=T,"v"in T?(T.s===1?x(a,T.v,void 0,N):x(a,void 0,pf(T.v),N),T):(d=!0,queueMicrotask(()=>d=!1),qr(()=>{w(u?"refreshing":"pending"),k()},!1),T.then(M=>x(T,M,void 0,N),M=>x(T,void 0,pf(M),N)))}Object.defineProperties(C,{state:{get:()=>S()},error:{get:()=>b()},loading:{get(){const F=S();return F==="pending"||F==="refreshing"}},latest:{get(){if(!u)return C();const F=b();if(F&&!a)throw F;return f()}}});let $=rt;return h?Ng(()=>($=rt,I(!1))):I(!1),[C,{refetch:F=>Mo($,()=>I(F)),mutate:p}]}function _t(e){return qr(e,!1)}function nt(e){if(Vt===null)return e();const t=Vt;Vt=null;try{return e()}finally{Vt=t}}function Ht(e,t,n){const r=Array.isArray(e);let i,o=n&&n.defer;return a=>{let s;if(r){s=Array(e.length);for(let c=0;c<e.length;c++)s[c]=e[c]()}else s=e();if(o)return o=!1,a;const l=nt(()=>t(s,i,a));return i=s,l}}function Wt(e){se(()=>nt(e))}function he(e){return rt===null||(rt.cleanups===null?rt.cleanups=[e]:rt.cleanups.push(e)),e}function ZO(e,t){$c||($c=Symbol("error")),rt=kd(void 0,void 0,!0),rt.context={...rt.context,[$c]:[t]},Me&&Me.running&&Me.sources.add(rt);try{return e()}catch(n){xd(n)}finally{rt=rt.owner}}function Fg(){return Vt}function fo(){return rt}function Mo(e,t){const n=rt,r=Vt;rt=e,Vt=null;try{return qr(t,!0)}catch(i){xd(i)}finally{rt=n,Vt=r}}function WO(e){if(Me&&Me.running)return e(),Me.done;const t=Vt,n=rt;return Promise.resolve().then(()=>{Vt=t,rt=n;let r;return ds&&(r=Me||(Me={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(i=>r.resolve=i)),r.running=!0),qr(e,!1),Vt=rt=null,r?r.done:void 0})}const[Pge,aw]=me(!1);function GO(e){Yn.push.apply(Yn,e),e.length=0}function Ct(e,t){const n=Symbol("context");return{id:n,Provider:XO(n),defaultValue:e}}function yt(e){let t;return rt&&rt.context&&(t=rt.context[e.id])!==void 0?t:e.defaultValue}function _s(e){const t=j(e),n=j(()=>Vg(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let ds;function KO(){return ds||(ds=Ct())}function k7(){const e=Me&&Me.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===pi)Hl(this);else{const t=mr;mr=null,qr(()=>zf(this),!1),mr=t}if(Vt){const t=this.observers?this.observers.length:0;Vt.sources?(Vt.sources.push(this),Vt.sourceSlots.push(t)):(Vt.sources=[this],Vt.sourceSlots=[t]),this.observers?(this.observers.push(Vt),this.observerSlots.push(Vt.sources.length-1)):(this.observers=[Vt],this.observerSlots=[Vt.sources.length-1])}return e&&Me.sources.has(this)?this.tValue:this.value}function x7(e,t,n){let r=Me&&Me.running&&Me.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(Me){const i=Me.running;(i||!n&&Me.sources.has(e))&&(Me.sources.add(e),e.tValue=t),i||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&qr(()=>{for(let i=0;i<e.observers.length;i+=1){const o=e.observers[i],a=Me&&Me.running;a&&Me.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?mr.push(o):Yn.push(o),o.observers&&_7(o)),a?o.tState=pi:o.state=pi)}if(mr.length>1e6)throw mr=[],new Error},!1)}return t}function Hl(e){if(!e.fn)return;wa(e);const t=Kh;sw(e,Me&&Me.running&&Me.sources.has(e)?e.tValue:e.value,t),Me&&!Me.running&&Me.sources.has(e)&&queueMicrotask(()=>{qr(()=>{Me&&(Me.running=!0),Vt=rt=e,sw(e,e.tValue,t),Vt=rt=null},!1)})}function sw(e,t,n){let r;const i=rt,o=Vt;Vt=rt=e;try{r=e.fn(t)}catch(a){return e.pure&&(Me&&Me.running?(e.tState=pi,e.tOwned&&e.tOwned.forEach(wa),e.tOwned=void 0):(e.state=pi,e.owned&&e.owned.forEach(wa),e.owned=null)),e.updatedAt=n+1,xd(a)}finally{Vt=o,rt=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?x7(e,r,!0):Me&&Me.running&&e.pure?(Me.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function kd(e,t,n,r=pi,i){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:rt,context:rt?rt.context:null,pure:n};return Me&&Me.running&&(o.state=0,o.tState=r),rt===null||rt!==w7&&(Me&&Me.running&&rt.pure?rt.tOwned?rt.tOwned.push(o):rt.tOwned=[o]:rt.owned?rt.owned.push(o):rt.owned=[o]),o}function Rf(e){const t=Me&&Me.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===qc)return zf(e);if(e.suspense&&nt(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Kh);){if(t&&Me.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let i=e,o=n[r+1];for(;(i=i.owner)&&i!==o;)if(Me.disposed.has(i))return}if((t?e.tState:e.state)===pi)Hl(e);else if((t?e.tState:e.state)===qc){const i=mr;mr=null,qr(()=>zf(e,n[0]),!1),mr=i}}}function qr(e,t){if(mr)return e();let n=!1;t||(mr=[]),Yn?n=!0:Yn=[],Kh++;try{const r=e();return JO(n),r}catch(r){n||(Yn=null),mr=null,xd(r)}}function JO(e){if(mr&&(S7(mr),mr=null),e)return;let t;if(Me){if(!Me.promises.size&&!Me.queue.size){const r=Me.sources,i=Me.disposed;Yn.push.apply(Yn,Me.effects),t=Me.resolve;for(const o of Yn)"tState"in o&&(o.state=o.tState),delete o.tState;Me=null,qr(()=>{for(const o of i)wa(o);for(const o of r){if(o.value=o.tValue,o.owned)for(let a=0,s=o.owned.length;a<s;a++)wa(o.owned[a]);o.tOwned&&(o.owned=o.tOwned),delete o.tValue,delete o.tOwned,o.tState=0}aw(!1)},!1)}else if(Me.running){Me.running=!1,Me.effects.push.apply(Me.effects,Yn),Yn=null,aw(!0);return}}const n=Yn;Yn=null,n.length&&qr(()=>y7(n),!1),t&&t()}function S7(e){for(let t=0;t<e.length;t++)Rf(e[t])}function QO(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Rf(r)}if(je.context){if(je.count){je.effects||(je.effects=[]),je.effects.push(...e.slice(0,n));return}Do()}for(je.effects&&(je.done||!je.count)&&(e=[...je.effects,...e],n+=je.effects.length,delete je.effects),t=0;t<n;t++)Rf(e[t])}function zf(e,t){const n=Me&&Me.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){const i=e.sources[r];if(i.sources){const o=n?i.tState:i.state;o===pi?i!==t&&(!i.updatedAt||i.updatedAt<Kh)&&Rf(i):o===qc&&zf(i,t)}}}function _7(e){const t=Me&&Me.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=qc:r.state=qc,r.pure?mr.push(r):Yn.push(r),r.observers&&_7(r))}}function wa(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){const o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)wa(e.tOwned[t]);delete e.tOwned}if(Me&&Me.running&&e.pure)A7(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)wa(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}Me&&Me.running?e.tState=0:e.state=0}function A7(e,t){if(t||(e.tState=0,Me.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)A7(e.owned[n])}function pf(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function lw(e,t,n){try{for(const r of t)r(e)}catch(r){xd(r,n&&n.owner||null)}}function xd(e,t=rt){const n=$c&&t&&t.context&&t.context[$c],r=pf(e);if(!n)throw r;Yn?Yn.push({fn(){lw(r,n,t)},state:pi}):lw(r,n,t)}function Vg(e){if(typeof e=="function"&&!e.length)return Vg(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Vg(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function XO(e,t){return function(r){let i;return Ne(()=>i=nt(()=>(rt.context={...rt.context,[e]:r.value},_s(()=>r.children))),void 0),i}}const jg=Symbol("fallback");function Nf(e){for(let t=0;t<e.length;t++)e[t]()}function YO(e,t,n={}){let r=[],i=[],o=[],a=0,s=t.length>1?[]:null;return he(()=>Nf(o)),()=>{let l=e()||[],c=l.length,d,u;return l[Uc],nt(()=>{let m,f,p,b,v,g,k,S,w;if(c===0)a!==0&&(Nf(o),o=[],r=[],i=[],a=0,s&&(s=[])),n.fallback&&(r=[jg],i[0]=Nn(x=>(o[0]=x,n.fallback())),a=1);else if(a===0){for(i=new Array(c),u=0;u<c;u++)r[u]=l[u],i[u]=Nn(h);a=c}else{for(p=new Array(c),b=new Array(c),s&&(v=new Array(c)),g=0,k=Math.min(a,c);g<k&&r[g]===l[g];g++);for(k=a-1,S=c-1;k>=g&&S>=g&&r[k]===l[S];k--,S--)p[S]=i[k],b[S]=o[k],s&&(v[S]=s[k]);for(m=new Map,f=new Array(S+1),u=S;u>=g;u--)w=l[u],d=m.get(w),f[u]=d===void 0?-1:d,m.set(w,u);for(d=g;d<=k;d++)w=r[d],u=m.get(w),u!==void 0&&u!==-1?(p[u]=i[d],b[u]=o[d],s&&(v[u]=s[d]),u=f[u],m.set(w,u)):o[d]();for(u=g;u<c;u++)u in p?(i[u]=p[u],o[u]=b[u],s&&(s[u]=v[u],s[u](u))):i[u]=Nn(h);i=i.slice(0,a=c),r=l.slice(0)}return i});function h(m){if(o[u]=m,s){const[f,p]=me(u);return s[u]=p,t(l[u],f)}return t(l[u])}}}function e$(e,t,n={}){let r=[],i=[],o=[],a=[],s=0,l;return he(()=>Nf(o)),()=>{const c=e()||[],d=c.length;return c[Uc],nt(()=>{if(d===0)return s!==0&&(Nf(o),o=[],r=[],i=[],s=0,a=[]),n.fallback&&(r=[jg],i[0]=Nn(h=>(o[0]=h,n.fallback())),s=1),i;for(r[0]===jg&&(o[0](),o=[],r=[],i=[],s=0),l=0;l<d;l++)l<r.length&&r[l]!==c[l]?a[l](()=>c[l]):l>=r.length&&(i[l]=Nn(u));for(;l<r.length;l++)o[l]();return s=a.length=o.length=d,r=c.slice(0),i=i.slice(0,s)});function u(h){o[l]=h;const[m,f]=me(c[l]);return a[l]=f,t(m,l)}}}function y(e,t){return nt(()=>e(t||{}))}function xu(){return!0}const Bg={get(e,t,n){return t===Vi?n:e.get(t)},has(e,t){return t===Vi?!0:e.has(t)},set:xu,deleteProperty:xu,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:xu,deleteProperty:xu}},ownKeys(e){return e.keys()}};function fp(e){return(e=typeof e=="function"?e():e)?e:{}}function t$(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function ee(...e){let t=!1;for(let a=0;a<e.length;a++){const s=e[a];t=t||!!s&&Vi in s,e[a]=typeof s=="function"?(t=!0,j(s)):s}if(b7&&t)return new Proxy({get(a){for(let s=e.length-1;s>=0;s--){const l=fp(e[s])[a];if(l!==void 0)return l}},has(a){for(let s=e.length-1;s>=0;s--)if(a in fp(e[s]))return!0;return!1},keys(){const a=[];for(let s=0;s<e.length;s++)a.push(...Object.keys(fp(e[s])));return[...new Set(a)]}},Bg);const n={},r=Object.create(null);for(let a=e.length-1;a>=0;a--){const s=e[a];if(!s)continue;const l=Object.getOwnPropertyNames(s);for(let c=l.length-1;c>=0;c--){const d=l[c];if(d==="__proto__"||d==="constructor")continue;const u=Object.getOwnPropertyDescriptor(s,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:t$.bind(n[d]=[u.get.bind(s)])}:u.value!==void 0?u:void 0;else{const h=n[d];h&&(u.get?h.push(u.get.bind(s)):u.value!==void 0&&h.push(()=>u.value))}}}const i={},o=Object.keys(r);for(let a=o.length-1;a>=0;a--){const s=o[a],l=r[s];l&&l.get?Object.defineProperty(i,s,l):i[s]=l?l.value:void 0}return i}function ue(e,...t){const n=t.length;if(b7&&Vi in e){const i=n>1?t.flat():t[0],o=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},Bg));return o.push(new Proxy({get(a){return i.includes(a)?void 0:e[a]},has(a){return i.includes(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!i.includes(a))}},Bg)),o}const r=[];for(let i=0;i<=n;i++)r[i]={};for(const i of Object.getOwnPropertyNames(e)){let o=n;for(let l=0;l<t.length;l++)if(t[l].includes(i)){o=l;break}const a=Object.getOwnPropertyDescriptor(e,i);!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable?r[o][i]=a.value:Object.defineProperty(r[o],i,a)}return r}function C7(e){let t,n;const r=i=>{const o=je.context;if(o){const[s,l]=me();je.count||(je.count=0),je.count++,(n||(n=e())).then(c=>{!je.done&&Do(o),je.count--,l(()=>c.default),Do()}),t=s}else if(!t){const[s]=Ss(()=>(n||(n=e())).then(l=>l.default));t=s}let a;return j(()=>(a=t())?nt(()=>{if(!o||je.done)return a(i);const s=je.context;Do(o);const l=a(i);return Do(s),l}):"")};return r.preload=()=>n||((n=e()).then(i=>t=()=>i.default),n),r}let n$=0;function cn(){return je.context?je.getNextContextId():`cl-${n$++}`}const E7=e=>`Stale read from <${e}>.`;function on(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(YO(()=>e.each,e.children,t||void 0))}function Oge(e){const t="fallback"in e&&{fallback:()=>e.fallback};return j(e$(()=>e.each,e.children,t||void 0))}function de(e){const t=e.keyed,n=j(()=>e.when,void 0,void 0),r=t?n:j(n,void 0,{equals:(i,o)=>!i==!o});return j(()=>{const i=r();if(i){const o=e.children;return typeof o=="function"&&o.length>0?nt(()=>o(t?i:()=>{if(!nt(r))throw E7("Show");return n()})):o}return e.fallback},void 0,void 0)}function Ur(e){const t=_s(()=>e.children),n=j(()=>{const r=t(),i=Array.isArray(r)?r:[r];let o=()=>{};for(let a=0;a<i.length;a++){const s=a,l=i[a],c=o,d=j(()=>c()?void 0:l.when,void 0,void 0),u=l.keyed?d:j(d,void 0,{equals:(h,m)=>!h==!m});o=()=>c()||(u()?[s,d,l]:void 0)}return o});return j(()=>{const r=n()();if(!r)return e.fallback;const[i,o,a]=r,s=a.children;return typeof s=="function"&&s.length>0?nt(()=>s(a.keyed?o():()=>{if(nt(n)()?.[0]!==i)throw E7("Match");return o()})):s},void 0,void 0)}function Ot(e){return e}let ul;function r$(){ul&&[...ul].forEach(e=>e())}function i$(e){let t;je.context&&je.load&&(t=je.load(je.getContextId()));const[n,r]=me(t,void 0);return ul||(ul=new Set),ul.add(r),he(()=>ul.delete(r)),j(()=>{let i;if(i=n()){const o=e.fallback;return typeof o=="function"&&o.length?nt(()=>o(i,()=>r())):o}return ZO(()=>e.children,r)},void 0,void 0)}const o$=Ct();function I7(e){let t=0,n,r,i,o,a;const[s,l]=me(!1),c=KO(),d={increment:()=>{++t===1&&l(!0)},decrement:()=>{--t===0&&l(!1)},inFallback:s,effects:[],resolved:!1},u=fo();if(je.context&&je.load){const f=je.getContextId();let p=je.load(f);if(p&&(typeof p!="object"||p.s!==1?i=p:je.gather(f)),i&&i!=="$$f"){const[b,v]=me(void 0,{equals:!1});o=b,i.then(()=>{if(je.done)return v();je.gather(f),Do(r),v(),Do()},g=>{a=g,v()})}}const h=yt(o$);h&&(n=h.register(d.inFallback));let m;return he(()=>m&&m()),y(c.Provider,{value:d,get children(){return j(()=>{if(a)throw a;if(r=je.context,o)return o(),o=void 0;r&&i==="$$f"&&Do();const f=j(()=>e.children);return j(p=>{const b=d.inFallback(),{showContent:v=!0,showFallback:g=!0}=n?n():{};if((!b||i&&i!=="$$f")&&v)return d.resolved=!0,m&&m(),m=r=i=void 0,GO(d.effects),f();if(g)return m?p:Nn(k=>(m=k,r&&(Do({id:r.id+"F",count:0}),r=void 0),e.fallback),u)})})}})}const a$=["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"],s$=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...a$]),l$=new Set(["innerHTML","textContent","innerText","children"]),c$=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),d$=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 u$(e,t){const n=d$[e];return typeof n=="object"?n[t]?n.$:void 0:n}const f$=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),h$=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"]),m$={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Le=e=>j(()=>e());function p$(e,t,n){let r=n.length,i=t.length,o=r,a=0,s=0,l=t[i-1].nextSibling,c=null;for(;a<i||s<o;){if(t[a]===n[s]){a++,s++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){const d=o<r?s?n[s-1].nextSibling:n[o-s]:l;for(;s<o;)e.insertBefore(n[s++],d)}else if(o===s)for(;a<i;)(!c||!c.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[s]===t[i-1]){const d=t[--i].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--o],d),t[i]=n[o]}else{if(!c){c=new Map;let u=s;for(;u<o;)c.set(n[u],u++)}const d=c.get(t[a]);if(d!=null)if(s<d&&d<o){let u=a,h=1,m;for(;++u<i&&u<o&&!((m=c.get(t[u]))==null||m!==d+h);)h++;if(h>d-s){const f=t[a];for(;s<d;)e.insertBefore(n[s++],f)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}}const cw="_$DX_DELEGATE";function g$(e,t,n,r={}){let i;return Nn(o=>{i=o,t===document?e():P(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=""}}function Q(e,t,n,r){let i;const o=()=>{const s=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return s.innerHTML=e,n?s.content.firstChild.firstChild:r?s.firstChild:s.content.firstChild},a=t?()=>nt(()=>document.importNode(i||(i=o()),!0)):()=>(i||(i=o())).cloneNode(!0);return a.cloneNode=a,a}function rr(e,t=window.document){const n=t[cw]||(t[cw]=new Set);for(let r=0,i=e.length;r<i;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,x$))}}function et(e,t,n){As(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function v$(e,t,n,r){As(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function b$(e,t,n){As(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function zo(e,t){As(e)||(t==null?e.removeAttribute("class"):e.className=t)}function ga(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const i=n[0];e.addEventListener(t,n[0]=o=>i.call(e,n[1],o))}else e.addEventListener(t,n,typeof n!="function"&&n)}function ln(e,t,n={}){const r=Object.keys(t||{}),i=Object.keys(n);let o,a;for(o=0,a=i.length;o<a;o++){const s=i[o];!s||s==="undefined"||t[s]||(dw(e,s,!1),delete n[s])}for(o=0,a=r.length;o<a;o++){const s=r[o],l=!!t[s];!s||s==="undefined"||n[s]===l||!l||(dw(e,s,!0),n[s]=l)}return n}function Jh(e,t,n){if(!t)return n?et(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function zi(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function nr(e,t={},n,r){const i={};return r||Ne(()=>i.children=Zc(e,t.children,i.children)),Ne(()=>typeof t.ref=="function"&&or(t.ref,e)),Ne(()=>y$(e,t,n,!0,i,!0)),i}function or(e,t,n){return nt(()=>e(t,n))}function P(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Zc(e,t,r,n);Ne(i=>Zc(e,t(),i,n),r)}function y$(e,t,n,r,i={},o=!1){t||(t={});for(const a in i)if(!(a in t)){if(a==="children")continue;i[a]=uw(e,a,null,i[a],n,o,t)}for(const a in t){if(a==="children")continue;const s=t[a];i[a]=uw(e,a,s,i[a],n,o,t)}}function w$(e){let t,n;return!As()||!(t=je.registry.get(n=S$()))?e():(je.completed&&je.completed.add(t),je.registry.delete(n),t)}function As(e){return!!je.context&&!je.done&&(!e||e.isConnected)}function k$(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function dw(e,t,n){const r=t.trim().split(/\s+/);for(let i=0,o=r.length;i<o;i++)e.classList.toggle(r[i],n)}function uw(e,t,n,r,i,o,a){let s,l,c,d,u;if(t==="style")return Jh(e,n,r);if(t==="classList")return ln(e,n,r);if(n===r)return r;if(t==="ref")o||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);r&&e.removeEventListener(h,r,typeof r!="function"&&r),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);r&&e.removeEventListener(h,r,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),m=f$.has(h);if(!m&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(h,f)}(m||n)&&(ga(e,h,n,m),m&&rr([h]))}else if(t.slice(0,5)==="attr:")et(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")b$(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=l$.has(t))||!i&&((d=u$(t,e.tagName))||(l=s$.has(t)))||(s=e.nodeName.includes("-")||"is"in a)){if(u)t=t.slice(5),l=!0;else if(As(e))return n;t==="class"||t==="className"?zo(e,n):s&&!l&&!c?e[k$(t)]=n:e[d||t]=n}else{const h=i&&t.indexOf(":")>-1&&m$[t.split(":")[0]];h?v$(e,h,t,n):et(e,c$[t]||t,n)}return n}function x$(e){if(je.registry&&je.events&&je.events.find(([l,c])=>c===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),a=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},s=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),je.registry&&!je.done&&(je.done=_$HY.done=!0),e.composedPath){const l=e.composedPath();o(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!a());c++){if(t._$host){t=t._$host,s();break}if(t.parentNode===i)break}}else s();o(r)}function Zc(e,t,n,r,i){const o=As(e);if(o){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){const d=n[c];d.nodeType===8&&d.data.slice(0,2)==="!$"?d.remove():l.push(d)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;const a=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(o||a==="number"&&(t=t.toString(),t===n))return n;if(s){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=js(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||a==="boolean"){if(o)return n;n=js(e,n,r)}else{if(a==="function")return Ne(()=>{let l=t();for(;typeof l=="function";)l=l();n=Zc(e,l,n,r)}),()=>n;if(Array.isArray(t)){const l=[],c=n&&Array.isArray(n);if(Hg(l,t,n,i))return Ne(()=>n=Zc(e,l,n,r,!0)),()=>n;if(o){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let d=l[0];if(d.parentNode!==e)return n;const u=[d];for(;(d=d.nextSibling)!==r;)u.push(d);return n=u}if(l.length===0){if(n=js(e,n,r),s)return n}else c?n.length===0?fw(e,l,r):p$(e,n,l):(n&&js(e),fw(e,l));n=l}else if(t.nodeType){if(o&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=js(e,n,r,t);js(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Hg(e,t,n,r){let i=!1;for(let o=0,a=t.length;o<a;o++){let s=t[o],l=n&&n[e.length],c;if(!(s==null||s===!0||s===!1))if((c=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))i=Hg(e,s,l)||i;else if(c==="function")if(r){for(;typeof s=="function";)s=s();i=Hg(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||i}else e.push(s),i=!0;else{const d=String(s);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return i}function fw(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function js(e,t,n,r){if(n===void 0)return e.textContent="";const i=r||document.createTextNode("");if(t.length){let o=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(i!==s){const l=s.parentNode===e;!o&&!a?l?e.replaceChild(i,s):e.insertBefore(i,n):l&&s.remove()}else o=!0}}else e.insertBefore(i,n);return[i]}function S$(){return je.getNextContextId()}const _$=!1,A$="http://www.w3.org/2000/svg";function T7(e,t=!1,n=void 0){return t?document.createElementNS(A$,e):document.createElement(e,{is:n})}function Da(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,i=fo();let o,a=!!je.context;return se(()=>{a&&(fo().user=a=!1),o||(o=Mo(i,()=>j(()=>e.children)));const s=r();if(s instanceof HTMLHeadElement){const[l,c]=me(!1),d=()=>c(!0);Nn(u=>P(s,()=>l()?u():o(),null)),he(d)}else{const l=T7(e.isSVG?"g":"div",e.isSVG),c=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),P(c,o),s.appendChild(l),e.ref&&e.ref(l),he(()=>s.removeChild(l))}},void 0,{render:!a}),n}function C$(e,t){const n=j(e);return j(()=>{const r=n();switch(typeof r){case"function":return nt(()=>r(t));case"string":const i=h$.has(r),o=je.context?w$():T7(r,i,nt(()=>t.is));return nr(o,t,i),o}})}function E$(e){const[,t]=ue(e,["component"]);return C$(()=>e.component,t)}function I$(e){return e()}const T$="modulepreload",L$=function(e){return"/ikanban/"+e},hw={},A=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=a?.nonce||a?.getAttribute("nonce");i=l(n.map(c=>{if(c=L$(c),c in hw)return;hw[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":T$,d||(h.as="script"),h.crossOrigin="",h.href=c,s&&h.setAttribute("nonce",s),document.head.appendChild(h),d)return new Promise((m,f)=>{h.addEventListener("load",m),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};function It(e){const t=new TextEncoder().encode(e),n=Array.from(t,r=>String.fromCharCode(r)).join("");return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function D$(e){const t=atob(e.replace(/-/g,"+").replace(/_/g,"/")),n=Uint8Array.from(t,r=>r.charCodeAt(0));return new TextDecoder().decode(n)}function Ff(e){if(!e)return;let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function mw(e,t=5e5){if(!e)return;if(e.length<=t)return Ff(e);const n=4096,i=[0,Math.floor(e.length*.25),Math.floor(e.length*.5),Math.floor(e.length*.75),e.length-n].map(o=>{const a=Math.max(0,Math.min(e.length-n,o-Math.floor(n/2)));return Ff(e.slice(a,a+n))??""}).join(":");return`${e.length}:${i}`}const Vf="diffs-container",M$=/(?=^diff --git)/gm,P$=/(?=^@@ )/gm,O$=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,gf=/(?<=\n)/,$$=/^(---|\+\+\+)\s+([^\t\r\n]+)/,R$=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,z$=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,N$=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,L1="header-prefix",D1="header-metadata",hr={dark:"pierre-dark",light:"pierre-light"},M1="data-unsafe-css",vl=1,P1={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},F$=Object.freeze({fromStart:0,fromEnd:0}),jf={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},L7={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function pw(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}function Bo(e){return{type:"text",value:e}}function wt({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function Bf({name:e,width:t=16,height:n=16,properties:r}){return wt({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...r},children:[wt({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function V$(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function fl(e){return wt({tagName:"div",properties:{"data-gutter":""},children:e})}function D7(e,t,n){return wt({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n},children:t!=null?[wt({tagName:"span",properties:{"data-line-number-content":""},children:[Bo(`${t}`)]})]:void 0})}function ai(e,t,n){return wt({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function j$(){return wt({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[Bf({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function B$(e,t){return e.lineNumber===t.lineNumber&&e.side===t.side}const H$=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Sd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Sd.prototype.normal={};Sd.prototype.property={};Sd.prototype.space=void 0;function M7(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Sd(n,r,t)}function Ug(e){return e.toLowerCase()}let Mr=class{constructor(t,n){this.attribute=n,this.property=t}};Mr.prototype.attribute="";Mr.prototype.booleanish=!1;Mr.prototype.boolean=!1;Mr.prototype.commaOrSpaceSeparated=!1;Mr.prototype.commaSeparated=!1;Mr.prototype.defined=!1;Mr.prototype.mustUseProperty=!1;Mr.prototype.number=!1;Mr.prototype.overloadedBoolean=!1;Mr.prototype.property="";Mr.prototype.spaceSeparated=!1;Mr.prototype.space=void 0;let U$=0;const ht=Cs(),Mn=Cs(),qg=Cs(),Ee=Cs(),Yt=Cs(),bl=Cs(),Vr=Cs();function Cs(){return 2**++U$}const Zg=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:Mn,commaOrSpaceSeparated:Vr,commaSeparated:bl,number:Ee,overloadedBoolean:qg,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),hp=Object.keys(Zg);class O1 extends Mr{constructor(t,n,r,i){let o=-1;if(super(t,n),gw(this,"space",i),typeof r=="number")for(;++o<hp.length;){const a=hp[o];gw(this,hp[o],(r&Zg[a])===Zg[a])}}}O1.prototype.defined=!0;function gw(e,t,n){n&&(e[t]=n)}function Ul(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new O1(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ug(r)]=r,n[Ug(o.attribute)]=r}return new Sd(t,n,e.space)}const P7=Ul({properties:{ariaActiveDescendant:null,ariaAtomic:Mn,ariaAutoComplete:null,ariaBusy:Mn,ariaChecked:Mn,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:Mn,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:Mn,ariaFlowTo:Yt,ariaGrabbed:Mn,ariaHasPopup:null,ariaHidden:Mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:Ee,ariaLive:null,ariaModal:Mn,ariaMultiLine:Mn,ariaMultiSelectable:Mn,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Mn,ariaReadOnly:Mn,ariaRelevant:null,ariaRequired:Mn,ariaRoleDescription:Yt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Mn,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function O7(e,t){return t in e?e[t]:t}function $7(e,t){return O7(e,t.toLowerCase())}const q$=Ul({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bl,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:Yt,autoFocus:ht,autoPlay:ht,blocking:Yt,capture:null,charSet:null,checked:ht,cite:null,className:Yt,cols:Ee,colSpan:null,content:null,contentEditable:Mn,controls:ht,controlsList:Yt,coords:Ee|bl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:qg,draggable:Mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:Yt,height:Ee,hidden:qg,high:Ee,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:ht,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ht,optimum:Ee,pattern:null,ping:Yt,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:Yt,required:ht,reversed:ht,rows:Ee,rowSpan:Ee,sandbox:Yt,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:Mn,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Mn,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:$7}),Z$=Ul({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Vr,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bl,g2:bl,glyphName:bl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Vr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vr,rev:Vr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vr,requiredFeatures:Vr,requiredFonts:Vr,requiredFormats:Vr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Vr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vr,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O7}),R7=Ul({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),z7=Ul({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$7}),N7=Ul({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),W$=/[A-Z]/g,vw=/-[a-z]/g,G$=/^data[-\w.:]+$/i;function K$(e,t){const n=Ug(t);let r=t,i=Mr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&G$.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vw,Q$);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vw.test(o)){let a=o.replace(W$,J$);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=O1}return new i(r,t)}function J$(e){return"-"+e.toLowerCase()}function Q$(e){return e.charAt(1).toUpperCase()}const X$=M7([P7,q$,R7,z7,N7],"html"),F7=M7([P7,Z$,R7,z7,N7],"svg"),bw={}.hasOwnProperty;function Y$(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&bw.call(i,e)){const l=String(i[e]);a=bw.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const eR=/["&'<>`]/g,tR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nR=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rR=/[|\\{}()[\]^$+*?.]/g,yw=new WeakMap;function iR(e,t){if(e=e.replace(t.subset?oR(t.subset):eR,r),t.subset||t.escapeOnly)return e;return e.replace(tR,n).replace(nR,r);function n(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function r(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function oR(e){let t=yw.get(e);return t||(t=aR(e),yw.set(e,t)),t}function aR(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(rR,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const sR=/[\dA-Fa-f]/;function lR(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!sR.test(String.fromCharCode(t))?r:r+";"}const cR=/\d/;function dR(e,t,n){const r="&#"+String(e);return n&&t&&!cR.test(String.fromCharCode(t))?r:r+";"}const uR=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],mp={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},fR=["cent","copy","divide","gt","lt","not","para","times"],V7={}.hasOwnProperty,Wg={};let Su;for(Su in mp)V7.call(mp,Su)&&(Wg[mp[Su]]=Su);const hR=/[^\dA-Za-z]/;function mR(e,t,n,r){const i=String.fromCharCode(e);if(V7.call(Wg,i)){const o=Wg[i],a="&"+o;return n&&uR.includes(o)&&!fR.includes(o)&&(!r||t&&t!==61&&hR.test(String.fromCharCode(t)))?a:a+";"}return""}function pR(e,t,n){let r=lR(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=mR(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=dR(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function yl(e,t){return iR(e,Object.assign({format:pR},t))}const gR=/^>|^->|<!--|-->|--!>|<!-$/g,vR=[">"],bR=["<",">"];function yR(e,t,n,r){return r.settings.bogusComments?"<?"+yl(e.value,Object.assign({},r.settings.characterReferences,{subset:vR}))+">":"<!--"+e.value.replace(gR,i)+"-->";function i(o){return yl(o,Object.assign({},r.settings.characterReferences,{subset:bR}))}}function wR(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ww(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function kR(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function xR(e){return e.join(" ").trim()}const SR=/[ \t\n\f\r]/g;function $1(e){return typeof e=="object"?e.type==="text"?kw(e.value):!1:kw(e)}function kw(e){return e.replace(SR,"")===""}const Gn=B7(1),j7=B7(-1),_R=[];function B7(e){return t;function t(n,r,i){const o=n?n.children:_R;let a=(r||0)+e,s=o[a];if(!i)for(;s&&$1(s);)a+=e,s=o[a];return s}}const AR={}.hasOwnProperty;function H7(e){return t;function t(n,r,i){return AR.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const R1=H7({body:ER,caption:pp,colgroup:pp,dd:DR,dt:LR,head:pp,html:CR,li:TR,optgroup:MR,option:PR,p:IR,rp:xw,rt:xw,tbody:$R,td:Sw,tfoot:RR,th:Sw,thead:OR,tr:zR});function pp(e,t,n){const r=Gn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&$1(r.value.charAt(0)))}function CR(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function ER(e,t,n){const r=Gn(n,t);return!r||r.type!=="comment"}function IR(e,t,n){const r=Gn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function TR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function LR(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function DR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function xw(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function MR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function PR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function OR(e,t,n){const r=Gn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function $R(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function RR(e,t,n){return!Gn(n,t)}function zR(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Sw(e,t,n){const r=Gn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const NR=H7({body:jR,colgroup:BR,head:VR,html:FR,tbody:HR});function FR(e){const t=Gn(e,-1);return!t||t.type!=="comment"}function VR(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function jR(e){const t=Gn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&$1(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function BR(e,t,n){const r=j7(n,t),i=Gn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&R1(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function HR(e,t,n){const r=j7(n,t),i=Gn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&R1(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const _u={name:[[`
3
3
  \f\r &/=>`.split(""),`
4
4
  \f\r "&'/=>\``.split("")],[`\0
5
5
  \f\r "&'/<=>`.split(""),`\0
@@ -1941,7 +1941,7 @@ ${T8}
1941
1941
 
1942
1942
  `;function L8(e){return{theme:"OpenCode",themeType:"system",disableLineNumbers:!1,overflow:"wrap",diffStyle:e??"unified",diffIndicators:"bars",lineHoverHighlight:"both",disableBackground:!1,expansionLineCount:20,hunkSeparators:"line-info-basic",lineDiffType:e==="split"?"word-alt":"none",maxLineDiffLength:1e3,maxLineLengthForHighlighting:1e3,disableFileHeader:!0,unsafeCSS:nB}}const rB={"--diffs-font-family":"var(--font-family-mono)","--diffs-font-size":"var(--font-size-small)","--diffs-line-height":"24px","--diffs-tab-size":2,"--diffs-font-features":"var(--font-family-mono--font-feature-settings)","--diffs-header-font-family":"var(--font-family-sans)","--diffs-gap-block":0,"--diffs-min-number-column-width":"4ch"};function D8(e){const t=e.closest("[data-line], [data-alt-line]");if(t instanceof HTMLElement){const r=t.dataset.lineType;if(r==="change-deletion")return"deletions";if(r==="change-addition"||r==="change-additions")return"additions"}const n=e.closest("[data-code]");return n instanceof HTMLElement&&n.hasAttribute("data-deletions")?"deletions":"additions"}function yv(e,t){const n=t.dataset.lineIndex;if(!n)return;const r=n.split(",").map(i=>parseInt(i,10)).filter(i=>!Number.isNaN(i));if(r.length!==0)return e&&r.length===2?r[1]:r[0]}function ih(e,t,n,r){const i=Array.from(e.querySelectorAll(`[data-line="${n}"], [data-alt-line="${n}"]`)).filter(a=>a instanceof HTMLElement);if(i.length===0)return;const o=r??"additions";for(const a of i)if(D8(a)===o||parseInt(a.dataset.altLine??"",10)===n)return yv(t,a)}function xk(e,t){if(!t)return t;if(!e)return;const n=e.querySelector("[data-diff]");if(!(n instanceof HTMLElement))return;const r=n.dataset.diffType==="split",i=ih(e,r,t.start,t.side),o=ih(e,r,t.end,t.endSide??t.side);if(i===void 0||o===void 0)return e.querySelector("[data-line], [data-alt-line]")==null?void 0:null;if(i<=o)return t;const a=t.endSide??t.side,s={start:t.end,end:t.start};return a&&(s.side=a),t.endSide&&t.side&&(s.endSide=t.side),s}function M8(e){const t=e.dataset.lineAnnotation?.split(",")[1];if(!t)return;const n=parseInt(t,10);if(!Number.isNaN(n))return n}function P8(e){const t=Array.from(e.querySelectorAll("[data-comment-selected]"));for(const n of t)n instanceof HTMLElement&&n.removeAttribute("data-comment-selected")}function iB(e,t){P8(e);const n=e.querySelector("[data-diff]");if(!(n instanceof HTMLElement))return;const r=n.dataset.diffType==="split",i=Array.from(n.querySelectorAll("[data-line-index]")).filter(a=>a instanceof HTMLElement);if(i.length===0)return;const o=Array.from(n.querySelectorAll("[data-line-annotation]")).filter(a=>a instanceof HTMLElement);for(const a of t){const s=ih(e,r,a.start,a.side);if(s===void 0)continue;const l=a.end===a.start&&(a.endSide==null||a.endSide===a.side)?s:ih(e,r,a.end,a.endSide??a.side);if(l===void 0)continue;const c=Math.min(s,l),d=Math.max(s,l);for(const u of i){const h=yv(r,u);h===void 0||h<c||h>d||u.setAttribute("data-comment-selected","")}for(const u of o){const h=M8(u);h===void 0||h<c||h>d||u.setAttribute("data-comment-selected","")}}}function oB(e,t){P8(e);const n=Array.from(e.querySelectorAll("[data-line-annotation]")).filter(r=>r instanceof HTMLElement);for(const r of t){const i=Math.max(1,Math.min(r.start,r.end)),o=Math.max(r.start,r.end);for(let a=i;a<=o;a++){const s=Array.from(e.querySelectorAll(`[data-line="${a}"], [data-column-number="${a}"]`));for(const l of s)l instanceof HTMLElement&&l.setAttribute("data-comment-selected","")}for(const a of n){const s=M8(a);s===void 0||s<i||s>o||a.setAttribute("data-comment-selected","")}}}const oh=new Set;let sa,oi,Sk=!1;function aB(e){return e instanceof HTMLElement?e.closest("[data-prevent-autofocus]")||e.isContentEditable?!0:/^(INPUT|TEXTAREA|SELECT|BUTTON)$/.test(e.tagName):!1}function _k(e){if(e instanceof Node)for(const t of oh){const n=t.element();if(n&&n.isConnected&&n.contains(e))return t}}function sB(){Sk||typeof window>"u"||(Sk=!0,window.addEventListener("keydown",e=>{if(e.defaultPrevented||aB(e.target)||!(e.metaKey||e.ctrlKey))return;const n=e.key.toLowerCase();if(n==="g"){const o=oi;if(!o||!o.isOpen())return;e.preventDefault(),e.stopPropagation(),o.next(e.shiftKey?-1:1);return}if(n!=="f")return;const r=oi;if(r&&r.isOpen()){e.preventDefault(),e.stopPropagation(),r.open();return}const i=_k(document.activeElement)??_k(e.target)??sa??Array.from(oh)[0];i&&(e.preventDefault(),e.stopPropagation(),i.open())},{capture:!0}))}function Zs(){const e=globalThis.CSS?.highlights;e&&(e.delete("opencode-find"),e.delete("opencode-find-current"))}function Ak(){const e=globalThis;return typeof e.Highlight=="function"&&e.CSS?.highlights!=null}function Ck(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);if(n.overflowY==="auto"||n.overflowY==="scroll")return t;t=t.parentElement}}function lB(e){let t,n,r=[],i="overlay",o=[];const[a,s]=me(!1),[l,c]=me(""),[d,u]=me(0),[h,m]=me(0),[f,p]=me({top:8,right:8}),b=()=>{for(const U of r)U.removeEventListener("scroll",k);r=[]},v=()=>{const U=e.overlay();U&&(n!==void 0&&(cancelAnimationFrame(n),n=void 0),U.innerHTML="")},g=()=>{if(i!=="overlay"){v();return}const U=e.wrapper(),q=e.overlay();if(!U||!q||(v(),o.length===0))return;const X=U.getBoundingClientRect(),le=d(),_e=document.createDocumentFragment();for(let ne=0;ne<o.length;ne++){const B=o[ne].range,ae=ne===le;for(const Y of Array.from(B.getClientRects())){if(!Y.width||!Y.height)continue;const ie=document.createElement("div");ie.style.position="absolute",ie.style.left=`${Math.round(Y.left-X.left)}px`,ie.style.top=`${Math.round(Y.top-X.top)}px`,ie.style.width=`${Math.round(Y.width)}px`,ie.style.height=`${Math.round(Y.height)}px`,ie.style.borderRadius="2px",ie.style.backgroundColor=ae?"var(--surface-warning-strong)":"var(--surface-warning-base)",ie.style.opacity=ae?"0.55":"0.35",ae&&(ie.style.boxShadow="inset 0 0 0 1px var(--border-warning-base)"),_e.appendChild(ie)}}q.appendChild(_e)};function k(){i==="overlay"&&a()&&n===void 0&&(n=requestAnimationFrame(()=>{n=void 0,g()}))}const S=()=>{if(i!=="overlay")return;const U=e.getRoot(),q=U?Array.from(U.querySelectorAll("[data-code]")).filter(X=>X instanceof HTMLElement):[];if(!(q.length===r.length&&q.every((X,le)=>X===r[le]))){b(),r=q;for(const X of r)X.addEventListener("scroll",k,{passive:!0})}},w=()=>{Zs(),v(),b(),o=[],m(0),u(0)},x=()=>{if(typeof window>"u")return;const U=e.wrapper();if(!U)return;const q=Ck(U)??U,X=q.getBoundingClientRect(),le=parseFloat(getComputedStyle(q).getPropertyValue("--session-title-height")),_e=Number.isNaN(le)?0:le;p({top:Math.round(X.top)+_e-4,right:Math.round(window.innerWidth-X.right)+8})},L=(U,q)=>{const X=q.toLowerCase(),le=[],_e=Array.from(U.querySelectorAll("[data-content] [data-line], [data-column-content]")).filter(ne=>ne instanceof HTMLElement);for(const ne of _e){const B=ne.textContent;if(!B)continue;const ae=B.toLowerCase();let Y=ae.indexOf(X);if(Y===-1)continue;const ie=ne.closest("[data-line], [data-alt-line]");if(!(ie instanceof HTMLElement))continue;const be=parseInt(ie.dataset.line??"",10),ge=parseInt(ie.dataset.altLine??"",10),Re=(()=>{if(!Number.isNaN(be))return be;if(!Number.isNaN(ge))return ge})();if(Re===void 0)continue;const Oe=(()=>{const tt=ne.closest("[data-code]");if(tt instanceof HTMLElement)return tt.hasAttribute("data-deletions")?"deletions":"additions";const lt=ne.closest("[data-line-type]");return lt instanceof HTMLElement&&lt.dataset.lineType==="change-deletion"?"deletions":"additions"})(),dt=[],it=[],fn=document.createTreeWalker(ne,NodeFilter.SHOW_TEXT);let Et=fn.nextNode(),pt=0;for(;Et;)Et instanceof Text&&(pt+=Et.data.length,dt.push(Et),it.push(pt)),Et=fn.nextNode();if(dt.length===0)continue;const nn=tt=>{let lt=0,Bn=it.length-1;for(;lt<Bn;){const vn=lt+Bn>>1;it[vn]>=tt?Bn=vn:lt=vn+1}const sr=lt===0?0:it[lt-1];return{node:dt[lt],offset:tt-sr}};for(;Y!==-1;){const tt=nn(Y),lt=nn(Y+q.length),Bn=document.createRange();Bn.setStart(tt.node,tt.offset),Bn.setEnd(lt.node,lt.offset),le.push({range:Bn,side:Oe,line:Re,alt:Number.isNaN(ge)?void 0:ge,col:Y+1,len:q.length}),Y=ae.indexOf(X,Y+q.length)}}return le},C=U=>{const q=()=>{const X=U.startContainer;(X instanceof Element?X:X.parentElement)?.scrollIntoView({block:"center",inline:"center"})};q(),requestAnimationFrame(q)},I=(U,q)=>{const X=globalThis.CSS?.highlights,le=globalThis.Highlight;if(!X||typeof le!="function")return!1;X.delete("opencode-find"),X.delete("opencode-find-current");const _e=U[q]?.range;_e&&X.set("opencode-find-current",new le(_e));const ne=U.flatMap((B,ae)=>ae===q?[]:[B.range]);return ne.length>0&&X.set("opencode-find",new le(...ne)),!0},$=(U,q)=>{const X=o[U]?.range;return X?(u(U),i==="highlights"?I(o,U)?(C(X),!0):(i="overlay",F({reset:!0,scroll:q}),!1):(Zs(),S(),C(X),k(),!0)):!1},F=U=>{if(!a())return;const q=l().trim();if(!q){w();return}const X=e.getRoot();if(!X)return;i=Ak()?"highlights":"overlay";const le=L(X,q),_e=le.length,ne=U?.reset?0:d(),B=_e?Math.min(ne,_e-1):0;o=le,m(_e),u(B);const ae=le[B]?.range;if(i==="highlights"){v(),b(),I(le,B)||(i="overlay",Zs(),S(),k()),U?.scroll&&ae&&C(ae);return}Zs(),S(),U?.scroll&&ae&&C(ae),k()},N=()=>{s(!1),c(""),w(),oi===K&&(oi=void 0)},D=()=>{c(""),w()},T=()=>{e.shortcuts!=="disabled"&&(oi&&oi!==K&&oi.close(),oi=K,sa=K),a()||s(!0)},M=()=>{T(),requestAnimationFrame(()=>{F({scroll:!0}),t?.focus(),t?.select()})},R=U=>{if(!a())return;const q=h();if(q<=0)return;const X=(d()+U+q)%q;$(X,!0)},G=U=>{if(!a()||o.length===0)return!1;const q=o.findIndex(_e=>_e.side===U.side&&_e.line===U.line&&_e.col===U.col&&_e.len===U.len),X=o.findIndex(_e=>(_e.line===U.line||_e.alt===U.line)&&_e.col===U.col&&_e.len===U.len),le=q>=0?q:X;return le<0?!1:$(le,!0)},K={element:e.wrapper,isOpen:()=>a(),next:R,open:M,close:N};return Wt(()=>{i=Ak()?"highlights":"overlay",e.shortcuts!=="disabled"&&(sB(),oh.add(K),sa||(sa=K)),he(()=>{e.shortcuts!=="disabled"&&(oh.delete(K),oi===K&&(oi=void 0,Zs()),sa===K&&(sa=void 0))})}),se(()=>{if(!a())return;const U=()=>x();requestAnimationFrame(U),window.addEventListener("resize",U,{passive:!0});const q=e.wrapper();if(!q)return;const X=Ck(q)??q,le=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>U());le?.observe(X),he(()=>{window.removeEventListener("resize",U),le?.disconnect()})}),he(()=>{b(),v(),oi===K&&(oi=void 0,Zs())}),{open:a,query:l,count:h,index:d,pos:f,setInput:U=>{t=U},setQuery:(U,q)=>{c(U),u(0),F({reset:!0,scroll:q?.scroll??!0})},clear:D,activate:T,focus:M,close:N,next:R,reveal:G,refresh:U=>F(U),onPointerDown:()=>{e.shortcuts!=="disabled"&&(sa=K,e.wrapper()?.focus({preventScroll:!0}))},onFocus:()=>{e.shortcuts!=="disabled"&&(sa=K)},onInputKeyDown:U=>{if(U.key==="Escape"){U.preventDefault(),N();return}U.key==="Enter"&&(U.preventDefault(),R(U.shiftKey?-1:1))}}}function cB(){return{token:0}}function Fc(e){e.observer?.disconnect(),e.observer=void 0}function O8(e){if(!e)return;const t=e.querySelector("diffs-container");if(t instanceof HTMLElement)return t}function dB(e){return O8(e)?.shadowRoot??void 0}function wv(e){if(!e||typeof document>"u")return;const t=document.documentElement.dataset.colorScheme;if(t==="dark"||t==="light"){e.dataset.colorScheme=t;return}e.removeAttribute("data-color-scheme")}function uB(e){if(typeof document>"u")return()=>{};if(wv(e()),typeof MutationObserver>"u")return()=>{};const t=document.documentElement,n=new MutationObserver(()=>wv(e()));return n.observe(t,{attributes:!0,attributeFilter:["data-color-scheme"]}),()=>n.disconnect()}function fB(e){Fc(e.state),e.state.token+=1;const t=e.state.token,n=Math.max(0,e.settleFrames??0),r=()=>{const a=s=>{if(t===e.state.token){if(s<=0){e.onReady();return}requestAnimationFrame(()=>a(s-1))}};requestAnimationFrame(()=>a(n))},i=a=>{if(e.isReady(a)){r();return}typeof MutationObserver>"u"||(Fc(e.state),e.state.observer=new MutationObserver(()=>{t===e.state.token&&e.isReady(a)&&(Fc(e.state),r())}),e.state.observer.observe(a,{childList:!0,subtree:!0}))},o=e.getRoot();if(!o){if(typeof MutationObserver>"u")return;e.state.observer=new MutationObserver(()=>{if(t!==e.state.token)return;const a=e.getRoot();a&&i(a)}),e.state.observer.observe(e.container,{childList:!0,subtree:!0});return}i(o)}function Zge(e){const t=Math.min(e.start,e.end),n=Math.max(e.start,e.end);return t===n?`line ${t}`:`lines ${t}-${n}`}function Wge(e,t){const n=Math.max(1,Math.min(t.start,t.end)),r=Math.max(t.start,t.end),i=e.split(`
1943
1943
  `).slice(n-1,r);if(i.length!==0)return i.slice(0,2).join(`
1944
- `)}function Gge(e){const t={start:e.start,end:e.end};return e.side&&(t.side=e.side),e.endSide&&(t.endSide=e.endSide),t}function Kge(e,t,n){if(!e)return!1;const r=Math.min(e.start,e.end),i=Math.max(e.start,e.end);if(t<r||t>i)return!1;if(!n)return!0;const o=e.side,a=e.endSide??o;return!o&&!a?!0:!o||!a?(o??a)===n:o===a||t===r?o===n:t===i?a===n:!0}function hB(e){return e?e.start===e.end&&(e.endSide==null||e.endSide===e.side):!1}function mB(e){if(e instanceof Range)return e;const t=new Range;return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t}function $8(e,t){!e||!t||requestAnimationFrame(()=>{const n=e.getSelection?.()??window.getSelection();if(n)try{n.removeAllRanges(),n.addRange(t)}catch{}})}function pB(){let e="none",t,n=!1,r=!1;const i=()=>{e="none",t=void 0,n=!1};return{begin(o,a){if(!o){e="text";return}e="numbers",t=a,n=!1},track(o,a){return e!=="numbers"?!1:(o&1)===0?(i(),!0):(a!==void 0&&t!==void 0&&a!==t&&(n=!0),!0)},finish(){const o=e;return r=o==="numbers"&&n,i(),o},consume(o){const a=r&&!hB(o);return r=!1,a},reset(){r=!1,i()}}}function a0(e){if(e)return e instanceof HTMLElement?e:e.parentElement??void 0}function gB(e){const t=a0(e);if(!t)return;const n=t.closest("[data-line]");if(!(n instanceof HTMLElement))return;const r=parseInt(n.dataset.line??"",10);if(!Number.isNaN(r))return r}function Ek(e){const t=a0(e);if(!t)return;const n=t.closest("[data-line], [data-alt-line]");if(!(n instanceof HTMLElement))return;const r=parseInt(n.dataset.line??"",10);if(!Number.isNaN(r))return r;const i=parseInt(n.dataset.altLine??"",10);if(!Number.isNaN(i))return i}function vB(e){const t=a0(e);if(!t)return;const n=t.closest("[data-code]");if(n instanceof HTMLElement)return n.hasAttribute("data-deletions")?"deletions":"additions"}function R8(e){const t=e.root.getSelection?.()??window.getSelection();if(!t||t.isCollapsed)return;const n=t.getComposedRanges?.({shadowRoots:[e.root]})?.[0]??(t.rangeCount>0?t.getRangeAt(0):void 0),r=n?.startContainer??t.anchorNode,i=n?.endContainer??t.focusNode;if(!r||!i||!e.root.contains(r)||!e.root.contains(i))return;const o=e.lineForNode(r),a=e.lineForNode(i);if(o===void 0||a===void 0)return;const s=e.sideForNode?.(r),l=e.sideForNode?.(i),c=s??l,d={start:o,end:a};return c&&(d.side=c),l&&c&&l!==c&&(d.endSide=l),{range:d,text:e.preserveTextSelection&&n?mB(n).cloneRange():void 0}}const Ou=new WeakMap,bB={lineHeight:24,hunkSeparatorHeight:24,fileGap:0};function yB(e){return e==="auto"||e==="scroll"||e==="overlay"}function Ik(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);if(yB(n.overflowY))return t;t=t.parentElement}}function wB(e){if(typeof document>"u")return;const t=e.closest("[data-component='session-review']");if(t instanceof HTMLElement){const r=Ik(e)??t,i=t.querySelector("[data-slot='session-review-container']");return{key:t,root:r,content:i instanceof HTMLElement?i:void 0}}const n=Ik(e);if(n){const r=n.querySelector("[role='log']");return{key:n,root:n,content:r instanceof HTMLElement?r:void 0}}return{key:document,root:document,content:void 0}}function kB(e){const t=wB(e);if(!t)return;let n=Ou.get(t.key);if(!n){const i=new A8;i.setup(t.root,t.content),n={virtualizer:i,refs:0},Ou.set(t.key,n)}n.refs+=1;let r=!1;return{virtualizer:n.virtualizer,release(){if(r)return;r=!0;const i=Ou.get(t.key);i&&(i.refs-=1,!(i.refs>0)&&(i.virtualizer.cleanUp(),Ou.delete(t.key)))}}}function z8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _c={exports:{}},xB=_c.exports,Tk;function SB(){return Tk||(Tk=1,(function(e,t){(function(n,r){r(t)})(xB,function(n){const r=Symbol("newer"),i=Symbol("older");class o{constructor(u,h){typeof u!="number"&&(h=u,u=0),this.size=0,this.limit=u,this.oldest=this.newest=void 0,this._keymap=new Map,h&&(this.assign(h),u<1&&(this.limit=this.size))}_markEntryAsUsed(u){u!==this.newest&&(u[r]&&(u===this.oldest&&(this.oldest=u[r]),u[r][i]=u[i]),u[i]&&(u[i][r]=u[r]),u[r]=void 0,u[i]=this.newest,this.newest&&(this.newest[r]=u),this.newest=u)}assign(u){let h,m=this.limit||Number.MAX_VALUE;this._keymap.clear();let f=u[Symbol.iterator]();for(let p=f.next();!p.done;p=f.next()){let b=new a(p.value[0],p.value[1]);if(this._keymap.set(b.key,b),h?(h[r]=b,b[i]=h):this.oldest=b,h=b,m--==0)throw new Error("overflow")}this.newest=h,this.size=this._keymap.size}get(u){var h=this._keymap.get(u);return h?(this._markEntryAsUsed(h),h.value):void 0}set(u,h){var m=this._keymap.get(u);return m?(m.value=h,this._markEntryAsUsed(m),this):(this._keymap.set(u,m=new a(u,h)),this.newest?(this.newest[r]=m,m[i]=this.newest):this.oldest=m,this.newest=m,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var u=this.oldest;if(u)return this.oldest[r]?(this.oldest=this.oldest[r],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),u[r]=u[i]=void 0,this._keymap.delete(u.key),--this.size,[u.key,u.value]}find(u){let h=this._keymap.get(u);return h?h.value:void 0}has(u){return this._keymap.has(u)}delete(u){var h=this._keymap.get(u);return h?(this._keymap.delete(h.key),h[r]&&h[i]?(h[i][r]=h[r],h[r][i]=h[i]):h[r]?(h[r][i]=void 0,this.oldest=h[r]):h[i]?(h[i][r]=void 0,this.newest=h[i]):this.oldest=this.newest=void 0,this.size--,h.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new l(this.oldest)}values(){return new c(this.oldest)}entries(){return this}[Symbol.iterator](){return new s(this.oldest)}forEach(u,h){typeof h!="object"&&(h=this);let m=this.oldest;for(;m;)u.call(h,m.value,m.key,this),m=m[r]}toJSON(){for(var u=new Array(this.size),h=0,m=this.oldest;m;)u[h++]={key:m.key,value:m.value},m=m[r];return u}toString(){for(var u="",h=this.oldest;h;)u+=String(h.key)+":"+h.value,h=h[r],h&&(u+=" < ");return u}}n.LRUMap=o;function a(d,u){this.key=d,this.value=u,this[r]=void 0,this[i]=void 0}function s(d){this.entry=d}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let d=this.entry;return d?(this.entry=d[r],{done:!1,value:[d.key,d.value]}):{done:!0,value:void 0}};function l(d){this.entry=d}l.prototype[Symbol.iterator]=function(){return this},l.prototype.next=function(){let d=this.entry;return d?(this.entry=d[r],{done:!1,value:d.key}):{done:!0,value:void 0}};function c(d){this.entry=d}c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let d=this.entry;return d?(this.entry=d[r],{done:!1,value:d.value}):{done:!0,value:void 0}}})})(_c,_c.exports)),_c.exports}var _B=SB();const Lk=z8(_B),zp=Symbol("IGNORE_RESPONSE");var AB=class{highlighter;preferredHighlighter;renderOptions;initialized=!1;workers=[];taskQueue=new Map;pendingTasks=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;instanceRequestMap=new Map;statSubscribers=new Set;fileCache;diffCache;_queuedBroadcast;constructor(e,{langs:t,theme:n=hr,lineDiffType:r="word-alt",tokenizeMaxLineLength:i=1e3,preferredHighlighter:o="shiki-js"}){this.options=e,this.preferredHighlighter=o,this.renderOptions={theme:n,lineDiffType:r,tokenizeMaxLineLength:i},this.fileCache=new Lk.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new Lk.LRUMap(e.totalASTLRUCacheSize??100),this.initialize(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey!=null?this.fileCache.get(e.cacheKey):void 0}getDiffResultCache(e){return e.cacheKey!=null?this.diffCache.get(e.cacheKey):void 0}inspectCaches(){const{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){try{return this.fileCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(e){try{return this.diffCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:e=hr,lineDiffType:t="word-alt",tokenizeMaxLineLength:n=1e3}){const r={theme:e,lineDiffType:t,tokenizeMaxLineLength:n};this.isInitialized()||await this.initialize();const i=J1(r.theme,this.renderOptions.theme);if(i&&r.lineDiffType===this.renderOptions.lineDiffType&&r.tokenizeMaxLineLength===this.renderOptions.tokenizeMaxLineLength)return;const o=Yc(e);let a=[];if(i||(fv(o)?a=wk(o):a=await kk(o)),this.highlighter!=null)uv(a,this.highlighter),await this.setRenderOptionsOnWorkers(r,a);else{const[s]=await Promise.all([Il({themes:o,langs:["text"],preferredHighlighter:this.preferredHighlighter}),this.setRenderOptionsOnWorkers(r,a)]);this.highlighter=s}this.renderOptions=r,this.diffCache.clear(),this.fileCache.clear();for(const s of this.themeSubscribers)s.rerender()}getFileRenderOptions(){const{tokenizeMaxLineLength:e,theme:t}=this.renderOptions;return{theme:t,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;this.isInitialized()||await this.initialize();const n=[];for(const r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),new Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");n.push(new Promise((i,o)=>{const a=this.generateRequestId(),s={type:"set-render-options",id:a,request:{type:"set-render-options",id:a,renderOptions:e,resolvedThemes:t},resolve:i,reject:o,requestStart:Date.now()};this.pendingTasks.set(a,s),r.worker.postMessage(s.request)}))}await Promise.all(n)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(e),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e),this.queueBroadcastStateChanges()}subscribeToStatChanges(e){return this.statSubscribers.add(e),e(this.getStats()),()=>{this.statSubscribers.delete(e)}}queueBroadcastStateChanges(){this._queuedBroadcast==null&&(this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges))}_broadcastStateChanges=()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);const e=this.getStats();for(const t of this.statSubscribers)t(e)};cleanUpPendingTasks(e){this.taskQueue.delete(e);const t=this.instanceRequestMap.get(e);t!=null&&(this.pendingTasks.delete(t),this.instanceRequestMap.delete(e)),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized!==!0)if(this.initialized===!1)this.initialized=new Promise((t,n)=>{(async()=>{try{const r=Yc(this.renderOptions.theme);let i=[];fv(r)?i=wk(r):i=await kk(r);let o=[];bk(e)?o=vk(e):o=await yk(e);const[a]=await Promise.all([Il({themes:r,langs:["text",...e],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(i,o)]);if(this.initialized===!1)throw this.terminateWorkers(),new Error("WorkerPoolManager: workers failed to initialize");this.highlighter=a,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),t()}catch(r){this.initialized=!1,this.workersFailed=!0,this.queueBroadcastStateChanges(),n(r)}})()}),this.queueBroadcastStateChanges();else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;const n=[];this.workers.length>0&&this.terminateWorkers();for(let r=0;r<(this.options.poolSize??8);r++){const i=this.options.workerFactory(),o={worker:i,request_id:void 0,initialized:!1,langs:new Set(["text",...t.map(({name:a})=>a)])};i.addEventListener("message",a=>{this.handleWorkerMessage(o,a.data)}),i.addEventListener("error",a=>console.error("Worker error:",a,o)),this.workers.push(o),n.push(new Promise((a,s)=>{const l=this.generateRequestId(),c={type:"initialize",id:l,request:{type:"initialize",id:l,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:e,resolvedLanguages:t},resolve(){o.initialized=!0,a()},reject:s,requestStart:Date.now()};this.pendingTasks.set(l,c),this.executeTask(o,c)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.taskQueue.size===0)){for(const[e,t]of this.taskQueue){if(this.instanceRequestMap.has(e))continue;const n=Dk(t),r=this.getAvailableWorker(n);if(r==null)break;this.assignWorkerToTask(t,r),this.resolveLanguagesAndExecuteTask(r,t,n)}this.queueBroadcastStateChanges()}};highlightFileAST(e,t){if((t.lang??hi(t.name))!=="text"){for(const n of[this.taskQueue,this.pendingTasks.values()])for(const r of n)if("instance"in r&&r.instance===e&&r.request.type==="file"&&nh(t,r.request.file))return;this.submitTask(e,{type:"file",file:t})}}getPlainFileAST(e,t,n,r){if(this.highlighter==null){this.initialize();return}return l8(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,lines:r})}highlightDiffAST(e,t){if((t.lang??hi(t.name))!=="text"){for(const n of[this.taskQueue,this.pendingTasks.values()])for(const r of n)if("instance"in r&&r.instance===e&&r.request.type==="diff"&&r.request.diff===t)return;this.submitTask(e,{type:"diff",diff:t})}}getPlainDiffAST(e,t,n,r,i){return this.highlighter!=null?k8(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,expandedHunks:r,collapsedContextThreshold:i}):void 0}terminate(){this.terminateWorkers(),this.fileCache.clear(),this.diffCache.clear(),this.instanceRequestMap.clear(),this.taskQueue.clear(),this.pendingTasks.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}terminateWorkers(){for(const e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?"waiting":this.initialized!==!0?"initializing":"initialized",totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(e=>e.request_id!=null).length,queuedTasks:this.taskQueue.size,pendingTasks:this.pendingTasks.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(e,t){this.initialized===!1&&this.initialize();const n=this.generateRequestId(),r=Date.now(),i=(()=>{switch(t.type){case"file":return{type:"file",id:n,request:{...t,id:n},instance:e,requestStart:r};case"diff":return{type:"diff",id:n,request:{...t,id:n},instance:e,requestStart:r}}})();this.taskQueue.set(e,i),this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,n){try{const r=n.filter(i=>!e.langs.has(i));r.length>0&&(bk(r)?t.request.resolvedLanguages=vk(r):t.request.resolvedLanguages=await yk(r)),this.executeTask(e,t)}catch{this.cleanWorkerAndTask(e,t)}}handleWorkerMessage(e,t){const n=this.pendingTasks.get(t.id);try{if(n==null)throw zp;if(t.type==="error"){const r=new Error(t.error);throw t.stack&&(r.stack=t.stack),"reject"in n?n.reject(r):n.instance.onHighlightError(r),r}else{if("instance"in n&&this.instanceRequestMap.get(n.instance)!==t.id)throw zp;switch(t.requestType){case"initialize":if(n.type!=="initialize")throw new Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"set-render-options":if(n.type!=="set-render-options")throw new Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"file":{if(n.type!=="file")throw new Error("handleWorkerMessage: task/response dont match");const{result:r,options:i}=t,{instance:o,request:a}=n;a.file.cacheKey!=null&&this.fileCache.set(a.file.cacheKey,{result:r,options:i}),o.onHighlightSuccess(a.file,r,i);break}case"diff":{if(n.type!=="diff")throw new Error("handleWorkerMessage: task/response dont match");const{result:r,options:i}=t,{instance:o,request:a}=n;a.diff.cacheKey!=null&&this.diffCache.set(a.diff.cacheKey,{result:r,options:i}),o.onHighlightSuccess(a.diff,r,i);break}}}}catch(r){r!==zp&&console.error(r,n,t)}this.cleanWorkerAndTask(e,n),this.queueBroadcastStateChanges(),this.taskQueue.size>0&&this.queueDrain()}_queuedDrain;queueDrain(){this._queuedDrain==null&&(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(e,t){t.request_id=e.id,"instance"in e&&(this.taskQueue.delete(e.instance),this.instanceRequestMap.set(e.instance,e.id)),this.pendingTasks.set(e.id,e)}cleanWorkerAndTask(e,t){e.request_id=void 0,t!=null&&("instance"in t&&this.instanceRequestMap.delete(t.instance),this.pendingTasks.delete(t.id))}executeTask(e,t){this.assignWorkerToTask(t,e);for(const n of Dk(t))e.langs.add(n);try{e.worker.postMessage(t.request)}catch(n){this.cleanWorkerAndTask(e,t),console.error("Failed to post message to worker:",n),"instance"in t?t.instance.onHighlightError(n):"reject"in t&&t.reject(n)}this.queueBroadcastStateChanges()}getAvailableWorker(e){let t;for(const n of this.workers){if(n.request_id!=null||!n.initialized)continue;if(t=n,e.length===0)break;let r=!0;for(const i of e)if(!n.langs.has(i)){r=!1;break}if(r)break}return t}generateRequestId(){return`req_${++this.nextRequestId}`}};function Dk(e){const t=new Set;if(e.type==="initialize"||e.type==="set-render-options")return[];switch(e.type){case"file":t.add(e.request.file.lang??hi(e.request.file.name));break;case"diff":t.add(e.request.diff.lang??hi(e.request.diff.name)),t.add(e.request.diff.lang??hi(e.request.diff.prevName??"-"));break}return t.delete("text"),Array.from(t)}const CB="/assets/worker-1VQD7L0Q.js";function EB(){return new Worker(CB,{type:"module"})}function Mk(e){const t=new AB({workerFactory:EB,poolSize:2},{theme:"OpenCode",lineDiffType:e,preferredHighlighter:"shiki-wasm"});return t.initialize(),t}let Np,Fp;function kv(e){if(!(typeof window>"u"))return e==="split"?(Fp||(Fp=Mk("word-alt")),Fp):(Np||(Np=Mk("none")),Np)}const N8={"ui.sessionReview.title":"Session changes","ui.sessionReview.title.lastTurn":"Last turn changes","ui.sessionReview.diffStyle.unified":"Unified","ui.sessionReview.diffStyle.split":"Split","ui.sessionReview.expandAll":"Expand all","ui.sessionReview.collapseAll":"Collapse all","ui.sessionReview.change.added":"Added","ui.sessionReview.change.removed":"Removed","ui.sessionReview.change.modified":"Modified","ui.sessionReview.image.loading":"Loading...","ui.sessionReview.image.placeholder":"Image","ui.sessionReview.largeDiff.title":"Diff too large to render","ui.sessionReview.largeDiff.meta":"Limit: {{limit}} changed lines. Current: {{current}} changed lines.","ui.sessionReview.largeDiff.renderAnyway":"Render anyway","ui.sessionReview.openFile":"Open file","ui.sessionReview.selection.line":"line {{line}}","ui.sessionReview.selection.lines":"lines {{start}}-{{end}}","ui.fileMedia.kind.image":"image","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Removed {{kind}} file.","ui.fileMedia.state.loading":"Loading {{kind}}...","ui.fileMedia.state.error":"Unable to load {{kind}}.","ui.fileMedia.state.unavailable":"{{kind}} preview unavailable.","ui.fileMedia.binary.title":"Binary file","ui.fileMedia.binary.description.path":"{{path}} is binary.","ui.fileMedia.binary.description.default":"Binary content","ui.lineComment.label.prefix":"Comment on ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Commenting on ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Add comment","ui.lineComment.submit":"Comment","ui.sessionTurn.steps.show":"Show steps","ui.sessionTurn.steps.hide":"Hide steps","ui.sessionTurn.summary.response":"Response","ui.sessionTurn.diff.showMore":"Show more changes ({{count}})","ui.sessionTurn.retry.retrying":"retrying","ui.sessionTurn.retry.inSeconds":"in {{seconds}}s","ui.sessionTurn.retry.attempt":"attempt #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - attempt #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini is way too hot right now","ui.sessionTurn.error.freeUsageExceeded":"Free usage exceeded","ui.sessionTurn.error.addCredits":"Add credits","ui.sessionTurn.status.delegating":"Delegating work","ui.sessionTurn.status.planning":"Planning next steps","ui.sessionTurn.status.gatheringContext":"Exploring","ui.sessionTurn.status.gatheredContext":"Explored","ui.sessionTurn.status.searchingCodebase":"Searching the codebase","ui.sessionTurn.status.searchingWeb":"Searching the web","ui.sessionTurn.status.makingEdits":"Making edits","ui.sessionTurn.status.runningCommands":"Running commands","ui.sessionTurn.status.thinking":"Thinking","ui.sessionTurn.status.thinkingWithTopic":"Thinking - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Gathering thoughts","ui.sessionTurn.status.consideringNextSteps":"Considering next steps","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Edit","ui.messagePart.title.write":"Write","ui.messagePart.option.typeOwnAnswer":"Type your own answer","ui.messagePart.review.title":"Review your answers","ui.messagePart.questions.dismissed":"Questions dismissed","ui.messagePart.compaction":"History compacted","ui.messagePart.context.read.one":"{{count}} read","ui.messagePart.context.read.other":"{{count}} reads","ui.messagePart.context.search.one":"{{count}} search","ui.messagePart.context.search.other":"{{count}} searches","ui.messagePart.context.list.one":"{{count}} list","ui.messagePart.context.list.other":"{{count}} lists","ui.list.loading":"Loading","ui.list.empty":"No results","ui.list.clearFilter":"Clear filter","ui.list.emptyWithFilter.prefix":"No results for","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"New message","ui.textField.copyToClipboard":"Copy to clipboard","ui.textField.copyLink":"Copy link","ui.textField.copied":"Copied","ui.imagePreview.alt":"Image preview","ui.scrollView.ariaLabel":"scrollable content","ui.tool.read":"Read","ui.tool.loaded":"Loaded","ui.tool.list":"List","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"To-dos","ui.tool.todos.read":"Read to-dos","ui.tool.questions":"Questions","ui.tool.agent":"{{type}} Agent","ui.common.file.one":"file","ui.common.file.other":"files","ui.common.question.one":"question","ui.common.question.other":"questions","ui.common.add":"Add","ui.common.back":"Back","ui.common.cancel":"Cancel","ui.common.confirm":"Confirm","ui.common.dismiss":"Dismiss","ui.common.close":"Close","ui.common.next":"Next","ui.common.submit":"Submit","ui.permission.deny":"Deny","ui.permission.allowAlways":"Allow always","ui.permission.allowOnce":"Allow once","ui.message.expand":"Expand message","ui.message.collapse":"Collapse message","ui.message.copy":"Copy","ui.message.copyMessage":"Copy message","ui.message.copyResponse":"Copy response","ui.message.copied":"Copied","ui.message.interrupted":"Interrupted","ui.message.queued":"Queued","ui.message.attachment.alt":"attachment","ui.patch.action.deleted":"Deleted","ui.patch.action.created":"Created","ui.patch.action.moved":"Moved","ui.patch.action.patched":"Patched","ui.question.subtitle.answered":"{{count}} answered","ui.question.answer.none":"(no answer)","ui.question.review.notAnswered":"(not answered)","ui.question.multiHint":"Select all answers that apply","ui.question.singleHint":"Select one answer","ui.question.custom.placeholder":"Type your answer..."};function IB(e,t){return t?e.replace(/{{\s*([^}]+?)\s*}}/g,(n,r)=>{const i=String(r),o=t[i];return o===void 0?"":String(o)}):e}const TB={locale:()=>"en",t:(e,t)=>{const n=N8[e]??String(e);return IB(n,t)}},F8=Ct(TB);function LB(e){return y(F8.Provider,{get value(){return e.value},get children(){return e.children}})}function Wl(){return yt(F8)}const DB=new Set(["png","jpg","jpeg","gif","webp","avif","bmp","ico","tif","tiff","heic"]),MB=new Set(["mp3","wav","ogg","m4a","aac","flac","opus"]);function s0(e){if(!(!e||typeof e!="object"))return e}function eb(e){if(!e)return;const t=e.split(";",1)[0]?.trim().toLowerCase();if(t)return t==="audio/x-aac"?"audio/aac":t==="audio/x-m4a"?"audio/mp4":t}function PB(e){if(!e)return"";const t=e.lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()}function OB(e){const t=PB(e);if(t==="svg")return"svg";if(DB.has(t))return"image";if(MB.has(t))return"audio"}function $B(e){return s0(e)?.type==="binary"}function RB(e,t){if(t==="svg")return e.startsWith("data:image/svg+xml")?e:void 0;if(t==="image")return e.startsWith("data:image/")?e:void 0;if(e.startsWith("data:audio/x-aac;"))return e.replace("data:audio/x-aac;","data:audio/aac;");if(e.startsWith("data:audio/x-m4a;"))return e.replace("data:audio/x-m4a;","data:audio/mp4;");if(e.startsWith("data:audio/"))return e}function Vp(e,t){if(!e)return;if(typeof e=="string")return RB(e,t);const n=s0(e);if(!n||typeof n.content!="string")return;const r=eb(typeof n.mimeType=="string"?n.mimeType:void 0);if(r){if(t==="svg")return r!=="image/svg+xml"?void 0:n.encoding==="base64"?`data:image/svg+xml;base64,${n.content}`:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n.content)}`;if(!(t==="image"&&!r.startsWith("image/"))&&!(t==="audio"&&!r.startsWith("audio/"))&&n.encoding==="base64")return`data:${r};base64,${n.content}`}}function zB(e){if(typeof atob=="function")try{const t=atob(e),n=Uint8Array.from(t,r=>r.charCodeAt(0));return typeof TextDecoder=="function"?new TextDecoder().decode(n):t}catch{}}function NB(e){const t=s0(e);if(!(!t||typeof t.content!="string"||eb(typeof t.mimeType=="string"?t.mimeType:void 0)!=="image/svg+xml"))return t.encoding==="base64"?zB(t.content):t.content}function jp(e){if(typeof e=="string")return e.length>0;const t=s0(e);return t?typeof t.content=="string"&&t.content.length>0:!1}var FB=Q('<div class="flex min-h-56 flex-col items-center justify-center gap-2 px-6 py-10 text-center"><div class="text-14-semibold text-text-strong"></div><div class="text-14-regular text-text-weak">'),$u=Q('<div class="flex min-h-40 items-center justify-center px-6 py-4 text-center text-text-weak">'),VB=Q('<div class="flex justify-center bg-background-stronger px-6 py-4"><img class="max-h-[60vh] max-w-full rounded border border-border-weak-base bg-background-base object-contain">'),jB=Q('<div class="flex justify-center bg-background-stronger px-6 py-4"><audio class="w-full max-w-xl"controls preload=metadata><source>'),BB=Q('<div class="flex flex-col gap-4 px-6 py-4">'),HB=Q('<div class="flex justify-center"><img class="max-h-[60vh] max-w-full rounded border border-border-weak-base bg-background-base object-contain">');function UB(e,t){return e.current!==void 0?e.current:e.after??e.before}function Pk(e){const t=Wl(),n=()=>e.media,r=j(()=>{const g=n();if(!(!g||g.mode==="off"))return OB(g.path)}),i=j(()=>{const g=n();return!g||g.mode==="off"||r()?!1:$B(g.current)}),o=()=>e.media?.onLoad?.(),a=j(()=>{const g=n(),k=r();return!g||!k||k==="svg"||g.current!==void 0?!1:!jp(g.after)&&jp(g.before)}),s=j(()=>{const g=n(),k=r();if(!(!g||k!=="image"&&k!=="audio"))return Vp(UB(g,k),k)}),l=j(()=>{const g=n(),k=r();if(!(!g||k!=="image"&&k!=="audio")&&g.current===void 0&&!a()&&!s()&&!(!g.path||!g.readFile))return{key:`${k}:${g.path}`,kind:k,path:g.path,readFile:g.readFile,onError:g.onError}}),[c]=Ss(l,async g=>g.readFile(g.path).then(k=>{const S=Vp(k,g.kind);return S?{key:g.key,src:S,mime:g.kind==="audio"?eb(k?.mimeType):void 0}:(g.onError?.({kind:g.kind}),{key:g.key,error:!0})},()=>(g.onError?.({kind:g.kind}),{key:g.key,error:!0}))),d=j(()=>{const g=l(),k=c();if(!(!g||!k||k.key!==g.key))return k}),u=j(()=>{const g=d();return s()??(g&&"src"in g?g.src:void 0)}),h=j(()=>s()?"ready":l()?c.loading?"loading":d()?.error?"error":u()?"ready":"idle":"idle"),m=j(()=>{const g=d();return g&&"mime"in g?g.mime:void 0}),f=j(()=>{const g=n();if(!(!g||r()!=="svg"))return NB(g.current)}),p=j(()=>{const g=n();if(!(!g||r()!=="svg"))return Vp(g.current,"svg")}),b=j(()=>{const g=n();if(!(!g||r()!=="svg")&&f()===void 0&&jp(g.current))return[g.path,g.current]});se(Ht(b,g=>{g&&n()?.onError?.({kind:"svg"})},{defer:!0}));const v=g=>t.t(g==="image"?"ui.fileMedia.kind.image":"ui.fileMedia.kind.audio");return y(Ur,{get children(){return[y(Ot,{get when(){return r()==="image"||r()==="audio"},get children(){return y(de,{get when(){return u()},get fallback(){const g=n(),k=r();if(!g||k!=="image"&&k!=="audio")return e.fallback();const S=v(k);return a()?(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.removed",{kind:S})),w})():h()==="loading"?(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.loading",{kind:S})),w})():h()==="error"?(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.error",{kind:S})),w})():(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.unavailable",{kind:S})),w})()},children:g=>{const k=r();return k!=="image"&&k!=="audio"?e.fallback():k==="image"?(()=>{var S=VB(),w=S.firstChild;return w.addEventListener("load",o),Ne(x=>{var L=g(),C=n()?.path;return L!==x.e&&et(w,"src",x.e=L),C!==x.t&&et(w,"alt",x.t=C),x},{e:void 0,t:void 0}),S})():(()=>{var S=jB(),w=S.firstChild,x=w.firstChild;return w.addEventListener("loadedmetadata",o),Ne(L=>{var C=g(),I=m();return C!==L.e&&et(x,"src",L.e=C),I!==L.t&&et(x,"type",L.t=I),L},{e:void 0,t:void 0}),S})()}})}}),y(Ot,{get when(){return r()==="svg"},get children(){return f()===void 0&&p()==null?e.fallback():(()=>{var g=BB();return P(g,y(de,{get when(){return f()!==void 0},get children(){return e.fallback()}}),null),P(g,y(de,{get when(){return p()},children:k=>(()=>{var S=HB(),w=S.firstChild;return w.addEventListener("load",o),Ne(x=>{var L=k(),C=n()?.path;return L!==x.e&&et(w,"src",x.e=L),C!==x.t&&et(w,"alt",x.t=C),x},{e:void 0,t:void 0}),S})()}),null),g})()}}),y(Ot,{get when(){return i()},get children(){var g=FB(),k=g.firstChild,S=k.nextSibling;return P(k,()=>n()?.path?.split("/").pop()??t.t("ui.fileMedia.binary.title")),P(S,()=>{const w=n()?.path;return w?t.t("ui.fileMedia.binary.description.path",{path:w}):t.t("ui.fileMedia.binary.description.default")}),g}}),y(Ot,{when:!0,get children(){return e.fallback()}})]}})}var qB=Q("<div data-component=icon><svg data-slot=icon-svg fill=none aria-hidden=true>");const ZB={"align-right":'<path d="M12.292 6.04167L16.2503 9.99998L12.292 13.9583M2.91699 9.99998H15.6253M17.0837 3.75V16.25" stroke="currentColor" stroke-linecap="square"/>',"arrow-up":'<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 2.24121L16.0921 8.33343L15.2083 9.21731L10.6249 4.63397V17.5001H9.37492V4.63398L4.7916 9.21731L3.90771 8.33343L9.99991 2.24121Z" fill="currentColor"/>',"arrow-left":'<path d="M8.33464 4.58398L2.91797 10.0007L8.33464 15.4173M3.33464 10.0007H17.0846" stroke="currentColor" stroke-linecap="square"/>',"arrow-right":'<path d="M11.6654 4.58398L17.082 10.0007L11.6654 15.4173M16.6654 10.0007H2.91536" stroke="currentColor" stroke-linecap="square"/>',archive:'<path d="M16.8747 6.24935H17.3747V5.74935H16.8747V6.24935ZM16.8747 16.8743V17.3743H17.3747V16.8743H16.8747ZM3.12467 16.8743H2.62467V17.3743H3.12467V16.8743ZM3.12467 6.24935V5.74935H2.62467V6.24935H3.12467ZM2.08301 2.91602V2.41602H1.58301V2.91602H2.08301ZM17.9163 2.91602H18.4163V2.41602H17.9163V2.91602ZM17.9163 6.24935V6.74935H18.4163V6.24935H17.9163ZM2.08301 6.24935H1.58301V6.74935H2.08301V6.24935ZM8.33301 9.08268H7.83301V10.0827H8.33301V9.58268V9.08268ZM11.6663 10.0827H12.1663V9.08268H11.6663V9.58268V10.0827ZM16.8747 6.24935H16.3747V16.8743H16.8747H17.3747V6.24935H16.8747ZM16.8747 16.8743V16.3743H3.12467V16.8743V17.3743H16.8747V16.8743ZM3.12467 16.8743H3.62467V6.24935H3.12467H2.62467V16.8743H3.12467ZM3.12467 6.24935V6.74935H16.8747V6.24935V5.74935H3.12467V6.24935ZM2.08301 2.91602V3.41602H17.9163V2.91602V2.41602H2.08301V2.91602ZM17.9163 2.91602H17.4163V6.24935H17.9163H18.4163V2.91602H17.9163ZM17.9163 6.24935V5.74935H2.08301V6.24935V6.74935H17.9163V6.24935ZM2.08301 6.24935H2.58301V2.91602H2.08301H1.58301V6.24935H2.08301ZM8.33301 9.58268V10.0827H11.6663V9.58268V9.08268H8.33301V9.58268Z" fill="currentColor"/>',"bubble-5":'<path d="M18.3327 9.99935C18.3327 5.57227 15.0919 2.91602 9.99935 2.91602C4.90676 2.91602 1.66602 5.57227 1.66602 9.99935C1.66602 11.1487 2.45505 13.1006 2.57637 13.3939C2.58707 13.4197 2.59766 13.4434 2.60729 13.4697C2.69121 13.6987 3.04209 14.9354 1.66602 16.7674C3.51787 17.6528 5.48453 16.1973 5.48453 16.1973C6.84518 16.9193 8.46417 17.0827 9.99935 17.0827C15.0919 17.0827 18.3327 14.4264 18.3327 9.99935Z" stroke="currentColor" stroke-linecap="square"/>',prompt:'<path d="M14.5841 12.0807H17.9193V2.91406H5.6276V6.2474M14.5859 6.2474H2.08594V15.4141H5.0026V17.4974L8.7526 15.4141H14.5859V6.2474Z" stroke="currentColor" stroke-linecap="square"/>',brain:'<path d="M13.332 8.7487C11.4911 8.7487 9.9987 7.25631 9.9987 5.41536M6.66536 11.2487C8.50631 11.2487 9.9987 12.7411 9.9987 14.582M9.9987 2.78209L9.9987 17.0658M16.004 15.0475C17.1255 14.5876 17.9154 13.4849 17.9154 12.1978C17.9154 11.3363 17.5615 10.5575 16.9913 9.9987C17.5615 9.43991 17.9154 8.66108 17.9154 7.79962C17.9154 6.21199 16.7136 4.90504 15.1702 4.73878C14.7858 3.21216 13.4039 2.08203 11.758 2.08203C11.1171 2.08203 10.5162 2.25337 9.9987 2.55275C9.48117 2.25337 8.88032 2.08203 8.23944 2.08203C6.59353 2.08203 5.21157 3.21216 4.82722 4.73878C3.28377 4.90504 2.08203 6.21199 2.08203 7.79962C2.08203 8.66108 2.43585 9.43991 3.00609 9.9987C2.43585 10.5575 2.08203 11.3363 2.08203 12.1978C2.08203 13.4849 2.87191 14.5876 3.99339 15.0475C4.46688 16.7033 5.9917 17.9154 7.79962 17.9154C8.61335 17.9154 9.36972 17.6698 9.9987 17.2488C10.6277 17.6698 11.384 17.9154 12.1978 17.9154C14.0057 17.9154 15.5305 16.7033 16.004 15.0475Z" stroke="currentColor"/>',"bullet-list":'<path d="M9.58329 13.7497H17.0833M9.58329 6.24967H17.0833M6.24996 6.24967C6.24996 7.17015 5.50377 7.91634 4.58329 7.91634C3.66282 7.91634 2.91663 7.17015 2.91663 6.24967C2.91663 5.3292 3.66282 4.58301 4.58329 4.58301C5.50377 4.58301 6.24996 5.3292 6.24996 6.24967ZM6.24996 13.7497C6.24996 14.6701 5.50377 15.4163 4.58329 15.4163C3.66282 15.4163 2.91663 14.6701 2.91663 13.7497C2.91663 12.8292 3.66282 12.083 4.58329 12.083C5.50377 12.083 6.24996 12.8292 6.24996 13.7497Z" stroke="currentColor" stroke-linecap="square"/>',"check-small":'<path d="M6.5 11.4412L8.97059 13.5L13.5 6.5" stroke="currentColor" stroke-linecap="square"/>',"chevron-down":'<path d="M6.6665 8.33325L9.99984 11.6666L13.3332 8.33325" stroke="currentColor" stroke-linecap="square"/>',"chevron-left":'<path d="M12 15L7 10L12 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-right":'<path d="M8 15L13 10L8 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-grabber-vertical":'<path d="M6.66675 12.4998L10.0001 15.8332L13.3334 12.4998M6.66675 7.49984L10.0001 4.1665L13.3334 7.49984" stroke="currentColor" stroke-linecap="square"/>',"chevron-double-right":'<path d="M11.6654 13.3346L14.9987 10.0013L11.6654 6.66797M5.83203 13.3346L9.16536 10.0013L5.83203 6.66797" stroke="currentColor" stroke-linecap="square"/>',"circle-x":'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 10.0003C1.6665 5.39795 5.39746 1.66699 9.99984 1.66699C14.6022 1.66699 18.3332 5.39795 18.3332 10.0003C18.3332 14.6027 14.6022 18.3337 9.99984 18.3337C5.39746 18.3337 1.6665 14.6027 1.6665 10.0003ZM7.49984 6.91107L6.91058 7.50033L9.41058 10.0003L6.91058 12.5003L7.49984 13.0896L9.99984 10.5896L12.4998 13.0896L13.0891 12.5003L10.5891 10.0003L13.0891 7.50033L12.4998 6.91107L9.99984 9.41107L7.49984 6.91107Z" fill="currentColor"/>',close:'<path d="M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25" stroke="currentColor" stroke-linecap="square"/>',"close-small":'<path d="M6 6L14 14M14 6L6 14" stroke="currentColor" stroke-linecap="square"/>',checklist:'<path d="M9.58342 13.7498H17.0834M9.58342 6.24984H17.0834M2.91675 6.6665L4.58341 7.9165L7.08341 4.1665M2.91675 14.1665L4.58341 15.4165L7.08341 11.6665" stroke="currentColor" stroke-linecap="square"/>',console:'<path d="M3.75 5.4165L8.33333 9.99984L3.75 14.5832M10.4167 14.5832H16.25" stroke="currentColor" stroke-linecap="square"/>',expand:'<path d="M4.58301 10.4163V15.4163H9.58301M10.4163 4.58301H15.4163V9.58301" stroke="currentColor" stroke-linecap="square"/>',collapse:'<path d="M16.666 8.33398H11.666V3.33398" stroke="currentColor" stroke-linecap="square"/><path d="M8.33398 16.666V11.666H3.33398" stroke="currentColor" stroke-linecap="square"/>',code:'<path d="M8.7513 7.5013L6.2513 10.0013L8.7513 12.5013M11.2513 7.5013L13.7513 10.0013L11.2513 12.5013M2.91797 2.91797H17.0846V17.0846H2.91797V2.91797Z" stroke="currentColor"/>',"code-lines":'<path d="M2.08325 3.75H11.2499M14.5833 3.75H17.9166M2.08325 10L7.08325 10M10.4166 10L17.9166 10M2.08325 16.25L8.74992 16.25M12.0833 16.25L17.9166 16.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>',"circle-ban-sign":'<path d="M15.3675 4.63087L4.55742 15.441M17.9163 9.9987C17.9163 14.371 14.3719 17.9154 9.99967 17.9154C7.81355 17.9154 5.83438 17.0293 4.40175 15.5966C2.96911 14.164 2.08301 12.1848 2.08301 9.9987C2.08301 5.62644 5.62742 2.08203 9.99967 2.08203C12.1858 2.08203 14.165 2.96813 15.5976 4.40077C17.0302 5.8334 17.9163 7.81257 17.9163 9.9987Z" stroke="currentColor" stroke-linecap="round"/>',"edit-small-2":'<path d="M17.0834 17.0833V17.5833H17.5834V17.0833H17.0834ZM2.91675 17.0833H2.41675V17.5833H2.91675V17.0833ZM2.91675 2.91659V2.41659H2.41675V2.91659H2.91675ZM9.58341 3.41659H10.0834V2.41659H9.58341V2.91659V3.41659ZM17.5834 10.4166V9.91659H16.5834V10.4166H17.0834H17.5834ZM10.4167 7.08325L10.0632 6.7297L9.91675 6.87615V7.08325H10.4167ZM10.4167 9.58325H9.91675V10.0833H10.4167V9.58325ZM12.9167 9.58325V10.0833H13.1239L13.2703 9.93681L12.9167 9.58325ZM15.4167 2.08325L15.7703 1.7297L15.4167 1.37615L15.0632 1.7297L15.4167 2.08325ZM17.9167 4.58325L18.2703 4.93681L18.6239 4.58325L18.2703 4.2297L17.9167 4.58325ZM17.0834 17.0833V16.5833H2.91675V17.0833V17.5833H17.0834V17.0833ZM2.91675 17.0833H3.41675V2.91659H2.91675H2.41675V17.0833H2.91675ZM2.91675 2.91659V3.41659H9.58341V2.91659V2.41659H2.91675V2.91659ZM17.0834 10.4166H16.5834V17.0833H17.0834H17.5834V10.4166H17.0834ZM10.4167 7.08325H9.91675V9.58325H10.4167H10.9167V7.08325H10.4167ZM10.4167 9.58325V10.0833H12.9167V9.58325V9.08325H10.4167V9.58325ZM10.4167 7.08325L10.7703 7.43681L15.7703 2.43681L15.4167 2.08325L15.0632 1.7297L10.0632 6.7297L10.4167 7.08325ZM15.4167 2.08325L15.0632 2.43681L17.5632 4.93681L17.9167 4.58325L18.2703 4.2297L15.7703 1.7297L15.4167 2.08325ZM17.9167 4.58325L17.5632 4.2297L12.5632 9.2297L12.9167 9.58325L13.2703 9.93681L18.2703 4.93681L17.9167 4.58325Z" fill="currentColor"/>',eye:'<path d="M10 4.58325C5.83333 4.58325 2.5 9.99992 2.5 9.99992C2.5 9.99992 5.83333 15.4166 10 15.4166C14.1667 15.4166 17.5 9.99992 17.5 9.99992C17.5 9.99992 14.1667 4.58325 10 4.58325Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/>',enter:'<path d="M5.83333 15.8334L2.5 12.5L5.83333 9.16671M3.33333 12.5H17.9167V4.58337H10" stroke="currentColor" stroke-linecap="square"/>',folder:'<path d="M2.08301 2.91675V16.2501H17.9163V5.41675H9.99967L8.33301 2.91675H2.08301Z" stroke="currentColor" stroke-linecap="round"/>',"file-tree":'<path d="M4.58203 16.6693L6.66536 9.58594H17.082M4.58203 16.6693H16.457L18.5404 9.58594H17.082M4.58203 16.6693H2.08203V3.33594H8.33203L9.9987 5.83594H17.082V9.58594" stroke="currentColor" stroke-linecap="round"/>',"file-tree-active":'<path d="M6.66536 9.58594L4.58203 16.6693H16.457L18.5404 9.58594H17.082H6.66536Z" fill="currentColor" fill-opacity="16%"/><path d="M4.58203 16.6693L6.66536 9.58594H17.082M4.58203 16.6693H16.457L18.5404 9.58594H17.082M4.58203 16.6693H2.08203V3.33594H8.33203L9.9987 5.83594H17.082V9.58594" stroke="currentColor" stroke-linecap="round"/>',"magnifying-glass":'<path d="M13 13L10.6418 10.6418M11.9552 7.47761C11.9552 9.95053 9.95053 11.9552 7.47761 11.9552C5.0047 11.9552 3 9.95053 3 7.47761C3 5.0047 5.0047 3 7.47761 3C9.95053 3 11.9552 5.0047 11.9552 7.47761Z" stroke="currentColor" stroke-linecap="square" vector-effect="non-scaling-stroke"/>',"plus-small":'<path d="M9.99984 5.41699V10.0003M9.99984 10.0003V14.5837M9.99984 10.0003H5.4165M9.99984 10.0003H14.5832" stroke="currentColor" stroke-linecap="square"/>',plus:'<path d="M9.9987 2.20703V9.9987M9.9987 9.9987V17.7904M9.9987 9.9987H2.20703M9.9987 9.9987H17.7904" stroke="currentColor" stroke-linecap="square"/>',"new-session":'<path d="M17.0827 17.0807V17.5807H17.5827V17.0807H17.0827ZM2.91602 17.0807H2.41602L2.41602 17.5807H2.91602L2.91602 17.0807ZM2.91602 2.91406V2.41406H2.41602V2.91406H2.91602ZM9.58268 3.41406H10.0827V2.41406L9.58268 2.41406V2.91406V3.41406ZM17.5827 10.4141V9.91406L16.5827 9.91406V10.4141H17.0827H17.5827ZM6.24935 11.2474L5.8958 10.8938L5.74935 11.0403V11.2474H6.24935ZM6.24935 13.7474H5.74935V14.2474H6.24935V13.7474ZM8.74935 13.7474V14.2474H8.95646L9.1029 14.101L8.74935 13.7474ZM15.2077 2.28906L15.5612 1.93551L15.2077 1.58196L14.8541 1.93551L15.2077 2.28906ZM17.7077 4.78906L18.0612 5.14262L18.4148 4.78906L18.0612 4.43551L17.7077 4.78906ZM17.0827 17.0807V16.5807H2.91602V17.0807L2.91602 17.5807H17.0827V17.0807ZM2.91602 17.0807H3.41602L3.41602 2.91406H2.91602H2.41602L2.41602 17.0807H2.91602ZM2.91602 2.91406V3.41406L9.58268 3.41406V2.91406V2.41406L2.91602 2.41406V2.91406ZM17.0827 10.4141H16.5827V17.0807H17.0827H17.5827V10.4141H17.0827ZM6.24935 11.2474H5.74935V13.7474H6.24935H6.74935V11.2474H6.24935ZM6.24935 13.7474V14.2474L8.74935 14.2474V13.7474V13.2474L6.24935 13.2474V13.7474ZM6.24935 11.2474L6.6029 11.6009L15.5612 2.64262L15.2077 2.28906L14.8541 1.93551L5.8958 10.8938L6.24935 11.2474ZM15.2077 2.28906L14.8541 2.64262L17.3541 5.14262L17.7077 4.78906L18.0612 4.43551L15.5612 1.93551L15.2077 2.28906ZM17.7077 4.78906L17.3541 4.43551L8.3958 13.3938L8.74935 13.7474L9.1029 14.101L18.0612 5.14262L17.7077 4.78906Z" fill="currentColor"/>',"pencil-line":'<path d="M9.58301 17.9166H17.9163M17.9163 5.83325L14.1663 2.08325L2.08301 14.1666V17.9166H5.83301L17.9163 5.83325Z" stroke="currentColor" stroke-linecap="square"/>',mcp:'<g><path d="M0.972656 9.37176L9.5214 1.60019C10.7018 0.527151 12.6155 0.527151 13.7957 1.60019C14.9761 2.67321 14.9761 4.41295 13.7957 5.48599L7.3397 11.3552" stroke="currentColor" stroke-linecap="round"/><path d="M7.42871 11.2747L13.7957 5.48643C14.9761 4.41338 16.8898 4.41338 18.0702 5.48643L18.1147 5.52688C19.2951 6.59993 19.2951 8.33966 18.1147 9.4127L10.3831 16.4414C9.98966 16.7991 9.98966 17.379 10.3831 17.7366L11.9707 19.1799" stroke="currentColor" stroke-linecap="round"/><path d="M11.6587 3.54346L5.33619 9.29119C4.15584 10.3642 4.15584 12.1039 5.33619 13.177C6.51649 14.25 8.43019 14.25 9.61054 13.177L15.9331 7.42923" stroke="currentColor" stroke-linecap="round"/></g>',glasses:'<path d="M0.416626 7.91667H1.66663M19.5833 7.91667H18.3333M11.866 7.57987C11.3165 7.26398 10.6793 7.08333 9.99996 7.08333C9.32061 7.08333 8.68344 7.26398 8.13389 7.57987M8.74996 10C8.74996 12.0711 7.07103 13.75 4.99996 13.75C2.92889 13.75 1.24996 12.0711 1.24996 10C1.24996 7.92893 2.92889 6.25 4.99996 6.25C7.07103 6.25 8.74996 7.92893 8.74996 10ZM18.75 10C18.75 12.0711 17.071 13.75 15 13.75C12.9289 13.75 11.25 12.0711 11.25 10C11.25 7.92893 12.9289 6.25 15 6.25C17.071 6.25 18.75 7.92893 18.75 10Z" stroke="currentColor" stroke-linecap="square"/>',"magnifying-glass-menu":'<path d="M2.08325 10.0002H4.58325M2.08325 5.41683H5.41659M2.08325 14.5835H5.41659M16.4583 13.9585L18.7499 16.2502M17.9166 10.0002C17.9166 12.9917 15.4915 15.4168 12.4999 15.4168C9.50838 15.4168 7.08325 12.9917 7.08325 10.0002C7.08325 7.00862 9.50838 4.5835 12.4999 4.5835C15.4915 4.5835 17.9166 7.00862 17.9166 10.0002Z" stroke="currentColor" stroke-linecap="square"/>',"window-cursor":'<path d="M17.9166 10.4167V3.75H2.08325V17.0833H10.4166M17.9166 13.5897L11.6666 11.6667L13.5897 17.9167L15.032 15.0321L17.9166 13.5897Z" stroke="currentColor" stroke-width="1.07143" stroke-linecap="square"/><path d="M5.00024 6.125C5.29925 6.12518 5.54126 6.36795 5.54126 6.66699C5.54108 6.96589 5.29914 7.20783 5.00024 7.20801C4.7012 7.20801 4.45843 6.966 4.45825 6.66699C4.45825 6.36784 4.70109 6.125 5.00024 6.125ZM7.91626 6.125C8.21541 6.125 8.45825 6.36784 8.45825 6.66699C8.45808 6.966 8.21531 7.20801 7.91626 7.20801C7.61736 7.20783 7.37542 6.96589 7.37524 6.66699C7.37524 6.36795 7.61726 6.12518 7.91626 6.125ZM10.8333 6.125C11.1324 6.125 11.3752 6.36784 11.3752 6.66699C11.3751 6.966 11.1323 7.20801 10.8333 7.20801C10.5342 7.20801 10.2914 6.966 10.2913 6.66699C10.2913 6.36784 10.5341 6.125 10.8333 6.125Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="square"/>',task:'<path d="M9.99992 2.0835V17.9168M7.08325 3.75016H2.08325V16.2502H7.08325M12.9166 16.2502H17.9166V3.75016H12.9166" stroke="currentColor" stroke-linecap="square"/>',stop:'<rect x="5" y="5" width="10" height="10" fill="currentColor"/>',"layout-left":'<path d="M2.91675 2.91699L2.91675 2.41699L2.41675 2.41699L2.41675 2.91699L2.91675 2.91699ZM17.0834 2.91699L17.5834 2.91699L17.5834 2.41699L17.0834 2.41699L17.0834 2.91699ZM17.0834 17.0837L17.0834 17.5837L17.5834 17.5837L17.5834 17.0837L17.0834 17.0837ZM2.91675 17.0837L2.41675 17.0837L2.41675 17.5837L2.91675 17.5837L2.91675 17.0837ZM7.41674 17.0837L7.41674 17.5837L8.41674 17.5837L8.41674 17.0837L7.91674 17.0837L7.41674 17.0837ZM8.41674 2.91699L8.41674 2.41699L7.41674 2.41699L7.41674 2.91699L7.91674 2.91699L8.41674 2.91699ZM2.91675 2.91699L2.91675 3.41699L17.0834 3.41699L17.0834 2.91699L17.0834 2.41699L2.91675 2.41699L2.91675 2.91699ZM17.0834 2.91699L16.5834 2.91699L16.5834 17.0837L17.0834 17.0837L17.5834 17.0837L17.5834 2.91699L17.0834 2.91699ZM17.0834 17.0837L17.0834 16.5837L2.91675 16.5837L2.91675 17.0837L2.91675 17.5837L17.0834 17.5837L17.0834 17.0837ZM2.91675 17.0837L3.41675 17.0837L3.41675 2.91699L2.91675 2.91699L2.41675 2.91699L2.41675 17.0837L2.91675 17.0837ZM7.91674 17.0837L8.41674 17.0837L8.41674 2.91699L7.91674 2.91699L7.41674 2.91699L7.41674 17.0837L7.91674 17.0837Z" fill="currentColor"/>',"layout-left-partial":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-left-full":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-right":'<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>',"layout-right-partial":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"layout-right-full":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"square-arrow-top-right":'<path d="M7.91675 2.9165H2.91675V17.0832H17.0834V12.0832M12.0834 2.9165H17.0834V7.9165M9.58342 10.4165L16.6667 3.33317" stroke="currentColor" stroke-linecap="square"/>',"open-file":'<path d="M7.91602 2.91406H2.91602V17.0807H17.0827V12.0807M12.0827 2.91406H17.0827V7.91406M9.58268 10.4141L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>',"speech-bubble":'<path d="M18.3334 10.0003C18.3334 5.57324 15.0927 2.91699 10.0001 2.91699C4.90749 2.91699 1.66675 5.57324 1.66675 10.0003C1.66675 11.1497 2.45578 13.1016 2.5771 13.3949C2.5878 13.4207 2.59839 13.4444 2.60802 13.4706C2.69194 13.6996 3.04282 14.9364 1.66675 16.7684C3.5186 17.6538 5.48526 16.1982 5.48526 16.1982C6.84592 16.9202 8.46491 17.0837 10.0001 17.0837C15.0927 17.0837 18.3334 14.4274 18.3334 10.0003Z" stroke="currentColor" stroke-linecap="square"/>',comment:'<path d="M16.25 3.75H3.75V16.25L6.875 14.4643H16.25V3.75Z" stroke="currentColor" stroke-linecap="square"/>',"folder-add-left":'<path d="M2.08333 9.58268V2.91602H8.33333L10 5.41602H17.9167V16.2493H8.75M3.75 12.0827V14.5827M3.75 14.5827V17.0827M3.75 14.5827H1.25M3.75 14.5827H6.25" stroke="currentColor" stroke-linecap="square"/>',github:'<path d="M10.0001 1.62549C14.6042 1.62549 18.3334 5.35465 18.3334 9.95882C18.333 11.7049 17.785 13.4068 16.7666 14.8251C15.7482 16.2434 14.3107 17.3066 12.6563 17.8651C12.2397 17.9484 12.0834 17.688 12.0834 17.4692C12.0834 17.188 12.0938 16.2922 12.0938 15.1776C12.0938 14.3963 11.8334 13.8963 11.5313 13.6359C13.3855 13.4276 15.3334 12.7192 15.3334 9.52132C15.3334 8.60465 15.0105 7.86507 14.4792 7.28174C14.5626 7.0734 14.8542 6.21924 14.3959 5.0734C14.3959 5.0734 13.698 4.84424 12.1042 5.92757C11.4376 5.74007 10.7292 5.64632 10.0209 5.64632C9.31258 5.64632 8.60425 5.74007 7.93758 5.92757C6.34383 4.85465 5.64592 5.0734 5.64592 5.0734C5.18758 6.21924 5.47925 7.0734 5.56258 7.28174C5.03133 7.86507 4.70842 8.61507 4.70842 9.52132C4.70842 12.7088 6.64592 13.4276 8.50008 13.6359C8.2605 13.8442 8.04175 14.2088 7.96883 14.7505C7.48967 14.9692 6.29175 15.3234 5.54175 14.063C5.3855 13.813 4.91675 13.1984 4.2605 13.2088C3.56258 13.2192 3.97925 13.6047 4.27092 13.7609C4.62508 13.9588 5.03133 14.6984 5.12508 14.938C5.29175 15.4067 5.83342 16.3026 7.92717 15.9172C7.92717 16.6151 7.93758 17.2713 7.93758 17.4692C7.93758 17.688 7.78133 17.938 7.36467 17.8651C5.70491 17.3126 4.26126 16.2515 3.23851 14.8324C2.21576 13.4133 1.66583 11.7081 1.66675 9.95882C1.66675 5.35465 5.39592 1.62549 10.0001 1.62549Z" fill="currentColor"/>',discord:'<path d="M16.0742 4.45014C14.9244 3.92097 13.7106 3.54556 12.4638 3.3335C12.2932 3.64011 12.1388 3.95557 12.0013 4.27856C10.6732 4.07738 9.32261 4.07738 7.99451 4.27856C7.85694 3.9556 7.70257 3.64014 7.53203 3.3335C6.28441 3.54735 5.06981 3.92365 3.91889 4.45291C1.63401 7.85128 1.01462 11.1652 1.32431 14.4322C2.6624 15.426 4.16009 16.1819 5.7523 16.6668C6.11082 16.1821 6.42806 15.6678 6.70066 15.1295C6.18289 14.9351 5.68315 14.6953 5.20723 14.4128C5.33249 14.3215 5.45499 14.2274 5.57336 14.136C6.95819 14.7907 8.46965 15.1302 9.99997 15.1302C11.5303 15.1302 13.0418 14.7907 14.4266 14.136C14.5463 14.2343 14.6688 14.3284 14.7927 14.4128C14.3159 14.6957 13.8152 14.9361 13.2965 15.1309C13.5688 15.669 13.8861 16.1828 14.2449 16.6668C15.8385 16.1838 17.3373 15.4283 18.6756 14.4335C19.039 10.645 18.0549 7.36145 16.0742 4.45014ZM7.09294 12.423C6.22992 12.423 5.51693 11.6357 5.51693 10.6671C5.51693 9.69852 6.20514 8.90427 7.09019 8.90427C7.97524 8.90427 8.68272 9.69852 8.66758 10.6671C8.65244 11.6357 7.97248 12.423 7.09294 12.423ZM12.907 12.423C12.0426 12.423 11.3324 11.6357 11.3324 10.6671C11.3324 9.69852 12.0206 8.90427 12.907 8.90427C13.7934 8.90427 14.4954 9.69852 14.4803 10.6671C14.4651 11.6357 13.7865 12.423 12.907 12.423Z" fill="currentColor"/>',"layout-bottom":'<path d="M2.91699 17.0832L2.41699 17.0832L2.41699 17.5832L2.91699 17.5832L2.91699 17.0832ZM2.91699 2.91653L2.91699 2.41653L2.41699 2.41653L2.41699 2.91653L2.91699 2.91653ZM17.0837 2.91653L17.5837 2.91653L17.5837 2.41653L17.0837 2.41653L17.0837 2.91653ZM17.0837 17.0832L17.5837 17.0832L17.5837 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.5827L17.5837 12.5827L17.5837 11.5827L17.0837 11.5827L17.0837 12.0827L17.0837 12.5827ZM2.91699 11.5827L2.41699 11.5827L2.41699 12.5827L2.91699 12.5827L2.91699 12.0827L2.91699 11.5827ZM2.91699 17.0832L3.41699 17.0832L3.41699 2.91653L2.91699 2.91653L2.41699 2.91653L2.41699 17.0832L2.91699 17.0832ZM2.91699 2.91653L2.91699 3.41653L17.0837 3.41653L17.0837 2.91653L17.0837 2.41653L2.91699 2.41653L2.91699 2.91653ZM17.0837 2.91653L16.5837 2.91653L16.5837 17.0832L17.0837 17.0832L17.5837 17.0832L17.5837 2.91653L17.0837 2.91653ZM17.0837 17.0832L17.0837 16.5832L2.91699 16.5832L2.91699 17.0832L2.91699 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.0827L17.0837 11.5827L2.91699 11.5827L2.91699 12.0827L2.91699 12.5827L17.0837 12.5827L17.0837 12.0827Z" fill="currentColor"/>',"layout-bottom-partial":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"layout-bottom-full":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"dot-grid":'<path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" fill="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" fill="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" fill="currentColor"/><path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" stroke="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" stroke="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" stroke="currentColor"/>',"circle-check":'<path d="M12.4987 7.91732L8.7487 12.5007L7.08203 10.834M17.9154 10.0007C17.9154 14.3729 14.371 17.9173 9.9987 17.9173C5.62644 17.9173 2.08203 14.3729 2.08203 10.0007C2.08203 5.6284 5.62644 2.08398 9.9987 2.08398C14.371 2.08398 17.9154 5.6284 17.9154 10.0007Z" stroke="currentColor" stroke-linecap="square"/>',copy:'<path d="M6.2513 6.24935V2.91602H17.0846V13.7493H13.7513M13.7513 6.24935V17.0827H2.91797V6.24935H13.7513Z" stroke="currentColor" stroke-linecap="round"/>',check:'<path d="M5 11.9657L8.37838 14.7529L15 5.83398" stroke="currentColor" stroke-linecap="square"/>',photo:'<path d="M16.6665 16.6666L11.6665 11.6666L9.99984 13.3333L6.6665 9.99996L3.08317 13.5833M2.9165 2.91663H17.0832V17.0833H2.9165V2.91663ZM13.3332 7.49996C13.3332 8.30537 12.6803 8.95829 11.8748 8.95829C11.0694 8.95829 10.4165 8.30537 10.4165 7.49996C10.4165 6.69454 11.0694 6.04163 11.8748 6.04163C12.6803 6.04163 13.3332 6.69454 13.3332 7.49996Z" stroke="currentColor" stroke-linecap="square"/>',share:'<path d="M10.0013 12.0846L10.0013 3.33464M13.7513 6.66797L10.0013 2.91797L6.2513 6.66797M17.0846 10.418V17.0846H2.91797V10.418" stroke="currentColor" stroke-linecap="square"/>',download:'<path d="M13.9583 10.6257L10 14.584L6.04167 10.6257M10 2.08398V13.959M16.25 17.9173H3.75" stroke="currentColor" stroke-linecap="square"/>',menu:'<path d="M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5" stroke="currentColor" stroke-linecap="square"/>',server:'<rect x="3.35547" y="1.92969" width="13.2857" height="16.1429" stroke="currentColor"/><rect x="3.35547" y="11.9297" width="13.2857" height="6.14286" stroke="currentColor"/><rect x="12.8555" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/><rect x="10" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/>',branch:'<path d="M14.2036 7.19987L14.2079 6.69989L13.2079 6.69132L13.2036 7.1913L13.7036 7.19559L14.2036 7.19987ZM8.14804 5.09032H7.64804C7.64804 5.75797 7.06861 6.34471 6.29619 6.34471V6.84471V7.34471C7.56926 7.34471 8.64804 6.36051 8.64804 5.09032H8.14804ZM6.29619 6.84471V6.34471C5.52376 6.34471 4.94434 5.75797 4.94434 5.09032H4.44434H3.94434C3.94434 6.36051 5.02311 7.34471 6.29619 7.34471V6.84471ZM4.44434 5.09032H4.94434C4.94434 4.42267 5.52376 3.83594 6.29619 3.83594V3.33594V2.83594C5.02311 2.83594 3.94434 3.82013 3.94434 5.09032H4.44434ZM6.29619 3.33594V3.83594C7.06861 3.83594 7.64804 4.42267 7.64804 5.09032H8.14804H8.64804C8.64804 3.82013 7.56926 2.83594 6.29619 2.83594V3.33594ZM8.14804 14.9149H7.64804C7.64804 15.5825 7.06861 16.1693 6.29619 16.1693V16.6693V17.1693C7.56926 17.1693 8.64804 16.1851 8.64804 14.9149H8.14804ZM6.29619 16.6693V16.1693C5.52376 16.1693 4.94434 15.5825 4.94434 14.9149H4.44434H3.94434C3.94434 16.1851 5.02311 17.1693 6.29619 17.1693V16.6693ZM4.44434 14.9149H4.94434C4.94434 14.2472 5.52376 13.6605 6.29619 13.6605V13.1605V12.6605C5.02311 12.6605 3.94434 13.6447 3.94434 14.9149H4.44434ZM6.29619 13.1605V13.6605C7.06861 13.6605 7.64804 14.2472 7.64804 14.9149H8.14804H8.64804C8.64804 13.6447 7.56926 12.6605 6.29619 12.6605V13.1605ZM15.5554 5.09032H15.0554C15.0554 5.75797 14.476 6.34471 13.7036 6.34471V6.84471V7.34471C14.9767 7.34471 16.0554 6.36051 16.0554 5.09032H15.5554ZM13.7036 6.84471V6.34471C12.9312 6.34471 12.3517 5.75797 12.3517 5.09032H11.8517H11.3517C11.3517 6.36051 12.4305 7.34471 13.7036 7.34471V6.84471ZM11.8517 5.09032H12.3517C12.3517 4.42267 12.9312 3.83594 13.7036 3.83594V3.33594V2.83594C12.4305 2.83594 11.3517 3.82013 11.3517 5.09032H11.8517ZM13.7036 3.33594V3.83594C14.476 3.83594 15.0554 4.42267 15.0554 5.09032H15.5554H16.0554C16.0554 3.82013 14.9767 2.83594 13.7036 2.83594V3.33594ZM13.7036 7.19559L13.2036 7.1913L13.1544 12.9277L13.6544 12.932L14.1544 12.9363L14.2036 7.19987L13.7036 7.19559ZM6.29619 6.84471H5.79619V13.1605H6.29619H6.79619V6.84471H6.29619ZM11.6545 14.9149V14.4149H8.14804V14.9149V15.4149H11.6545V14.9149ZM13.6544 12.932L13.1544 12.9277C13.1474 13.7511 12.4779 14.4149 11.6545 14.4149V14.9149V15.4149C13.0269 15.4149 14.1426 14.3086 14.1544 12.9363L13.6544 12.932Z" fill="currentColor"/>',edit:'<path d="M17.0832 17.0807V17.5807H17.5832V17.0807H17.0832ZM2.9165 17.0807H2.4165V17.5807H2.9165V17.0807ZM2.9165 2.91406V2.41406H2.4165V2.91406H2.9165ZM9.58317 3.41406H10.0832V2.41406H9.58317V2.91406V3.41406ZM17.5832 10.4141V9.91406H16.5832V10.4141H17.0832H17.5832ZM6.24984 11.2474L5.89628 10.8938L5.74984 11.0403V11.2474H6.24984ZM6.24984 13.7474H5.74984V14.2474H6.24984V13.7474ZM8.74984 13.7474V14.2474H8.95694L9.10339 14.101L8.74984 13.7474ZM15.2082 2.28906L15.5617 1.93551L15.2082 1.58196L14.8546 1.93551L15.2082 2.28906ZM17.7082 4.78906L18.0617 5.14262L18.4153 4.78906L18.0617 4.43551L17.7082 4.78906ZM17.0832 17.0807V16.5807H2.9165V17.0807V17.5807H17.0832V17.0807ZM2.9165 17.0807H3.4165V2.91406H2.9165H2.4165V17.0807H2.9165ZM2.9165 2.91406V3.41406H9.58317V2.91406V2.41406H2.9165V2.91406ZM17.0832 10.4141H16.5832V17.0807H17.0832H17.5832V10.4141H17.0832ZM6.24984 11.2474H5.74984V13.7474H6.24984H6.74984V11.2474H6.24984ZM6.24984 13.7474V14.2474H8.74984V13.7474V13.2474H6.24984V13.7474ZM6.24984 11.2474L6.60339 11.6009L15.5617 2.64262L15.2082 2.28906L14.8546 1.93551L5.89628 10.8938L6.24984 11.2474ZM15.2082 2.28906L14.8546 2.64262L17.3546 5.14262L17.7082 4.78906L18.0617 4.43551L15.5617 1.93551L15.2082 2.28906ZM17.7082 4.78906L17.3546 4.43551L8.39628 13.3938L8.74984 13.7474L9.10339 14.101L18.0617 5.14262L17.7082 4.78906Z" fill="currentColor"/>',help:'<path d="M7.91683 7.91927V6.2526H12.0835V8.7526L10.0002 10.0026V12.0859M10.0002 13.7526V13.7609M17.9168 10.0026C17.9168 14.3749 14.3724 17.9193 10.0002 17.9193C5.62791 17.9193 2.0835 14.3749 2.0835 10.0026C2.0835 5.63035 5.62791 2.08594 10.0002 2.08594C14.3724 2.08594 17.9168 5.63035 17.9168 10.0026Z" stroke="currentColor" stroke-linecap="square"/>',"settings-gear":'<path d="M7.62516 4.46094L5.05225 3.86719L3.86475 5.05469L4.4585 7.6276L2.0835 9.21094V10.7943L4.4585 12.3776L3.86475 14.9505L5.05225 16.138L7.62516 15.5443L9.2085 17.9193H10.7918L12.3752 15.5443L14.9481 16.138L16.1356 14.9505L15.5418 12.3776L17.9168 10.7943V9.21094L15.5418 7.6276L16.1356 5.05469L14.9481 3.86719L12.3752 4.46094L10.7918 2.08594H9.2085L7.62516 4.46094Z" stroke="currentColor"/><path d="M12.5002 10.0026C12.5002 11.3833 11.3809 12.5026 10.0002 12.5026C8.61945 12.5026 7.50016 11.3833 7.50016 10.0026C7.50016 8.62189 8.61945 7.5026 10.0002 7.5026C11.3809 7.5026 12.5002 8.62189 12.5002 10.0026Z" stroke="currentColor"/>',dash:'<rect x="5" y="9.5" width="10" height="1" fill="currentColor"/>',"cloud-upload":'<path d="M12.0833 16.25H15C17.0711 16.25 18.75 14.5711 18.75 12.5C18.75 10.5649 17.2843 8.97217 15.4025 8.77133C15.2 6.13103 12.8586 4.08333 10 4.08333C7.71532 4.08333 5.76101 5.49781 4.96501 7.49881C2.84892 7.90461 1.25 9.76559 1.25 11.6667C1.25 13.9813 3.30203 16.25 5.83333 16.25H7.91667M10 16.25V10.4167M12.0833 11.875L10 9.79167L7.91667 11.875" stroke="currentColor" stroke-linecap="square"/>',trash:'<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>',sliders:'<path d="M3.625 6.25H10.9375M16.375 13.75H10.5625M3.625 13.75H4.9375M11.125 6.25C11.125 4.79969 12.2997 3.625 13.75 3.625C15.2003 3.625 16.375 4.79969 16.375 6.25C16.375 7.70031 15.2003 8.875 13.75 8.875C12.2997 8.875 11.125 7.70031 11.125 6.25ZM10.375 13.75C10.375 15.2003 9.20031 16.375 7.75 16.375C6.29969 16.375 5.125 15.2003 5.125 13.75C5.125 12.2997 6.29969 11.125 7.75 11.125C9.20031 11.125 10.375 12.2997 10.375 13.75Z" stroke="currentColor" stroke-linecap="square"/>',keyboard:'<path d="M5.125 7.375V4.375H14.875V2.875M8.3125 13.9375H11.6875M8.125 13.9375H11.875M2.125 7.375H17.875V17.125H2.125V7.375ZM5.5 10.375H5.125V10.75H5.5V10.375ZM8.5 10.375H8.125V10.75H8.5V10.375ZM11.875 10.375H11.5V10.75H11.875V10.375ZM14.875 10.375H14.5V10.75H14.875V10.375ZM14.875 13.75H14.5V14.125H14.875V13.75ZM5.5 13.75H5.125V14.125H5.5V13.75Z" stroke="currentColor" stroke-linecap="square"/>',selector:'<path d="M6.66626 12.5033L9.99959 15.8366L13.3329 12.5033M6.66626 7.50326L9.99959 4.16992L13.3329 7.50326" stroke="currentColor" stroke-linecap="square"/>',"arrow-down-to-line":'<path d="M15.2083 11.6667L10 16.875L4.79167 11.6667M10 16.25V3.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>',warning:'<path d="M10 7.91667V11.6667M10 13.7417V13.75M10 2.5L1.875 16.25H18.125L10 2.5Z" stroke="currentColor" stroke-linecap="square"/>',link:'<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>',providers:'<path d="M10.0001 4.37562V2.875M13 4.37793V2.87793M7.00014 4.37793V2.875M10 17.1279V15.6279M13 17.1279V15.6279M7 17.1279V15.6279M15.625 13.0029H17.125M15.625 7.00293H17.125M15.625 10.0029H17.125M2.875 10.0029H4.375M2.875 13.0029H4.375M2.875 7.00293H4.375M4.375 4.37793H15.625V15.6279H4.375V4.37793ZM12.6241 10.0022C12.6241 11.4519 11.4488 12.6272 9.99908 12.6272C8.54934 12.6272 7.37408 11.4519 7.37408 10.0022C7.37408 8.55245 8.54934 7.3772 9.99908 7.3772C11.4488 7.3772 12.6241 8.55245 12.6241 10.0022Z" stroke="currentColor" stroke-linecap="square"/>',models:'<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C12.2917 10 10 12.2917 10 17.5C10 12.2917 7.70833 10 2.5 10C7.70833 10 10 7.70833 10 2.5C10 7.70833 12.2917 10 17.5 10Z" stroke="currentColor"/>'};function Dt(e){const[t,n]=ue(e,["name","size","class","classList"]),r=()=>t.name==="magnifying-glass"?"0 0 16 16":"0 0 20 20";return(()=>{var i=qB(),o=i.firstChild;return nr(o,ee({get classList(){return{...t.classList||{},[t.class??""]:!!t.class}},get viewBox(){return r()},get innerHTML(){return ZB[t.name]}},n),!0,!1),Ne(()=>et(i,"data-size",t.size||"normal")),i})()}var WB=Q('<div class="fixed z-50 flex h-8 items-center gap-2 rounded-md border border-border-base bg-background-base px-3 shadow-md"><input placeholder=Find class="w-40 bg-transparent outline-none text-14-regular text-text-strong placeholder:text-text-weak"><div class="shrink-0 text-12-regular text-text-weak tabular-nums text-right"style=width:10ch></div><div class="flex items-center"><button type=button class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong disabled:opacity-40 disabled:pointer-events-none"aria-label="Previous match"></button><button type=button class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong disabled:opacity-40 disabled:pointer-events-none"aria-label="Next match"></button></div><button type=button class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong"aria-label="Close search">');function GB(e){return y(Da,{get children(){var t=WB(),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,o=i.firstChild,a=o.nextSibling,s=i.nextSibling;t.$$pointerdown=c=>c.stopPropagation(),P(t,y(Dt,{name:"magnifying-glass",size:"small",class:"text-text-weak shrink-0"}),n),n.$$keydown=c=>e.onKeyDown(c),n.$$input=c=>e.onInput(c.currentTarget.value);var l=e.setInput;return typeof l=="function"?or(l,n):e.setInput=n,P(r,(()=>{var c=Le(()=>!!e.count());return()=>c()?`${e.index()+1}/${e.count()}`:"0/0"})()),ga(o,"click",e.onPrev,!0),P(o,y(Dt,{name:"chevron-down",size:"small",class:"rotate-180"})),ga(a,"click",e.onNext,!0),P(a,y(Dt,{name:"chevron-down",size:"small"})),ga(s,"click",e.onClose,!0),P(s,y(Dt,{name:"close-small",size:"small"})),Ne(c=>{var d=`${e.pos().top}px`,u=`${e.pos().right}px`,h=e.count()===0,m=e.count()===0;return d!==c.e&&zi(t,"top",c.e=d),u!==c.t&&zi(t,"right",c.t=u),h!==c.a&&(o.disabled=c.a=h),m!==c.o&&(a.disabled=c.o=m),c},{e:void 0,t:void 0,a:void 0,o:void 0}),Ne(()=>n.value=e.query()),t}})}rr(["pointerdown","input","keydown","click"]);var KB=Q('<div data-component=file class="relative outline-none"tabindex=0><div></div><div class="pointer-events-none absolute inset-0 z-0">');const JB=5e5,QB={...P1,lineHeight:24,fileGap:0},V8=["mode","media","class","classList","annotations","selectedLines","commentedLines","search","onLineSelected","onLineSelectionEnd","onLineNumberSelectionEnd","onRendered","preloadedDiff"],XB=["file",...V8],YB=["before","after",...V8];function eH(e,t){if(e.isPartial||e.hunks.length===0)return;const n=t.side==="deletions"?{start:r=>r.deletionStart,count:r=>r.deletionCount}:{start:r=>r.additionStart,count:r=>r.additionCount};for(let r=0;r<e.hunks.length;r++){const i=e.hunks[r],o=n.start(i);if(t.line<o)return{index:r,direction:r===0?"down":"both"};const a=o+Math.max(n.count(i)-1,-1);if(t.line<=a)return}return{index:e.hunks.length,direction:"up"}}function tH(e){let t,n,r,i,o,a,s,l=!1,c=null,d=!1;const u=cB(),h=pB(),[m,f]=me(0),p=()=>dB(n),b=()=>O8(n),v=lB({wrapper:()=>t,overlay:()=>r,getRoot:p,shortcuts:e.search()?.shortcuts}),g=()=>{i===void 0&&(i=requestAnimationFrame(()=>{i=void 0;const C=d;e.updateSelection(C),d&&(d=!1,e.onLineSelectionEnd(c))}))},k=()=>{o===void 0&&(o=requestAnimationFrame(()=>{o=void 0;const C=e.buildDragSelection();C&&e.setSelectedLines(C)}))},S=C=>{if(!e.enableLineSelection()||C.button!==0)return;const I=e.lineFromMouseEvent(C);if(I.numberColumn){h.begin(!0,I.line);return}I.line!==void 0&&(h.begin(!1,I.line),a=I.line,s=I.line,l=!1,e.onDragStart(I))},w=C=>{if(!e.enableLineSelection())return;const I=e.lineFromMouseEvent(C);if(!h.track(C.buttons,I.line)&&a!==void 0){if((C.buttons&1)===0){a=void 0,s=void 0,l=!1,e.onDragReset(),h.finish();return}I.line!==void 0&&(s=I.line,l=!0,e.onDragMove(I),k())}},x=()=>{if(e.enableLineSelection()&&h.finish()!=="numbers"&&a!==void 0){if(!l){d=!1;const C=e.buildClickSelection();C&&e.setSelectedLines(C),e.onLineSelectionEnd(c),a=void 0,s=void 0,l=!1,e.onDragReset();return}d=!0,k(),g(),a=void 0,s=void 0,l=!1,e.onDragReset()}},L=()=>{if(!e.enableLineSelection()||a===void 0)return;const C=window.getSelection();!C||C.isCollapsed||g()};return Wt(()=>{he(uB(b))}),se(()=>{m();const C=e.commentedLines();requestAnimationFrame(()=>{const I=p();I&&e.markCommented(I,C)})}),se(()=>{e.setSelectedLines(e.selectedLines()??null)}),se(()=>{e.enableLineSelection()&&(n.addEventListener("mousedown",S),n.addEventListener("mousemove",w),window.addEventListener("mouseup",x),document.addEventListener("selectionchange",L),he(()=>{n.removeEventListener("mousedown",S),n.removeEventListener("mousemove",w),window.removeEventListener("mouseup",x),document.removeEventListener("selectionchange",L)}))}),he(()=>{Fc(u),i!==void 0&&cancelAnimationFrame(i),o!==void 0&&cancelAnimationFrame(o),i=void 0,o=void 0,a=void 0,s=void 0,l=!1,h.reset(),c=null,d=!1}),{get wrapper(){return t},set wrapper(C){t=C},get container(){return n},set container(C){n=C},get overlay(){return r},set overlay(C){r=C},get dragStart(){return a},get dragEnd(){return s},get lastSelection(){return c},set lastSelection(C){c=C},ready:u,bridge:h,rendered:m,setRendered:f,getRoot:p,getHost:b,find:v,scheduleSelectionUpdate:g}}function j8(e,t){return tH({enableLineSelection:e.enableLineSelection,search:e.search,selectedLines:e.selectedLines,commentedLines:()=>e.commentedLines()??[],onLineSelectionEnd:e.onLineSelectionEnd,...t})}function B8(e){se(()=>{const t=e.search();if(!t)return;const n={focus:()=>{e.find.focus()},setQuery:r=>{e.find.activate(),e.find.setQuery(r,{scroll:!1})},clear:()=>{e.find.clear()},reveal:r=>(e.find.activate(),e.find.reveal(r)),expand:r=>e.expand?.(r)??!1,refresh:()=>{e.find.activate(),e.find.refresh()}};t.register(n),he(()=>t.register(null))})}function H8(e){const t=n=>{if(!e.normalize)return n;const r=e.normalize(n);return r!==void 0?r:n};return{onLineSelected:n=>{const r=t(n);e.viewer.lastSelection=r,e.onLineSelected?.(r)},onLineSelectionEnd:n=>{const r=t(n);e.viewer.lastSelection=r,e.onLineSelectionEnd?.(r),e.viewer.bridge.consume(r)&&requestAnimationFrame(()=>e.onLineNumberSelectionEnd?.(r))}}}function U8(e){se(()=>{e.viewer.rendered();const t=e.current();t&&(t.setLineAnnotations(e.annotations()),t.rerender(),requestAnimationFrame(()=>e.viewer.find.refresh({reset:!0})))})}function q8(e){fB({state:e.viewer.ready,container:e.viewer.container,getRoot:e.viewer.getRoot,isReady:e.isReady,settleFrames:e.settleFrames,onReady:e.onReady})}function Z8(e){Fc(e.viewer.ready),e.current?.cleanUp();const t=e.create();e.assign(t),e.viewer.container.innerHTML="",e.draw(t),wv(e.viewer.getHost()),e.viewer.setRendered(n=>n+1),e.onReady()}function nH(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);if(n.overflowY==="auto"||n.overflowY==="scroll")return t;t=t.parentElement}}function rH(e,t){let n,r;const i=()=>{n?.cleanUp(),n=void 0,r=void 0};return{get:()=>{if(!t()){i();return}if(typeof document>"u")return;const o=e();if(!o)return;const a=nH(o)??document;return n&&r===a||(i(),n=new A8,r=a,n.setup(a,a instanceof Document?void 0:o)),n},cleanup:i}}function iH(e,t){let n;const r=()=>{n?.release(),n=void 0};return{get:()=>{if(!t()){r();return}if(n)return n.virtualizer;const i=e();if(!i)return;const o=kB(i);if(o)return n=o,o.virtualizer},cleanup:r}}function oH(e){if(!e.dataset.line)return;const t=parseInt(e.dataset.line,10);if(!Number.isNaN(t))return t}function W8(e,t,n){const r=e.composedPath();let i=!1,o,a;for(const s of r)if(s instanceof HTMLElement&&(i=i||s.dataset.columnNumber!=null,o===void 0&&(o=t(s)),a===void 0&&n&&(a=n(s)),i&&o!==void 0&&(n==null||a!==void 0)))break;return{line:o,numberColumn:i,side:a}}function aH(e){const t=e.dataset.lineType;if(t==="change-deletion")return"deletions";if(t==="change-addition"||t==="change-additions")return"additions";if(e.dataset.code!=null)return e.hasAttribute("data-deletions")?"deletions":"additions"}function sH(e){const t=a0(e);if(t)return D8(t)}function G8(e){return(()=>{var t=KB(),n=t.firstChild,r=n.nextSibling;return ga(t,"focus",e.viewer.find.onFocus),ga(t,"pointerdown",e.viewer.find.onPointerDown,!0),or(i=>e.viewer.wrapper=i,t),P(t,y(de,{get when(){return Le(()=>!!(e.search?.showBar??!0))()&&e.viewer.find.open()},get children(){return y(GB,{get pos(){return e.viewer.find.pos},get query(){return e.viewer.find.query},get count(){return e.viewer.find.count},get index(){return e.viewer.find.index},get setInput(){return e.viewer.find.setInput},get onInput(){return e.viewer.find.setQuery},get onKeyDown(){return e.viewer.find.onInputKeyDown},get onClose(){return e.viewer.find.close},onPrev:()=>e.viewer.find.next(-1),onNext:()=>e.viewer.find.next(1)})}}),n),or(i=>e.viewer.container=i,n),or(i=>e.viewer.overlay=i,r),Ne(i=>{var o=e.mode,a=rB,s={...e.classList||{},[e.class??""]:!!e.class};return o!==i.e&&et(t,"data-mode",i.e=o),i.t=Jh(t,a,i.t),i.a=ln(t,s,i.a),i},{e:void 0,t:void 0,a:void 0}),t})()}function lH(e){let t,n;const[r,i]=ue(e,XB),o=()=>{const v=r.file.contents;return typeof v=="string"?v:Array.isArray(v)?v.join(`
1944
+ `)}function Gge(e){const t={start:e.start,end:e.end};return e.side&&(t.side=e.side),e.endSide&&(t.endSide=e.endSide),t}function Kge(e,t,n){if(!e)return!1;const r=Math.min(e.start,e.end),i=Math.max(e.start,e.end);if(t<r||t>i)return!1;if(!n)return!0;const o=e.side,a=e.endSide??o;return!o&&!a?!0:!o||!a?(o??a)===n:o===a||t===r?o===n:t===i?a===n:!0}function hB(e){return e?e.start===e.end&&(e.endSide==null||e.endSide===e.side):!1}function mB(e){if(e instanceof Range)return e;const t=new Range;return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t}function $8(e,t){!e||!t||requestAnimationFrame(()=>{const n=e.getSelection?.()??window.getSelection();if(n)try{n.removeAllRanges(),n.addRange(t)}catch{}})}function pB(){let e="none",t,n=!1,r=!1;const i=()=>{e="none",t=void 0,n=!1};return{begin(o,a){if(!o){e="text";return}e="numbers",t=a,n=!1},track(o,a){return e!=="numbers"?!1:(o&1)===0?(i(),!0):(a!==void 0&&t!==void 0&&a!==t&&(n=!0),!0)},finish(){const o=e;return r=o==="numbers"&&n,i(),o},consume(o){const a=r&&!hB(o);return r=!1,a},reset(){r=!1,i()}}}function a0(e){if(e)return e instanceof HTMLElement?e:e.parentElement??void 0}function gB(e){const t=a0(e);if(!t)return;const n=t.closest("[data-line]");if(!(n instanceof HTMLElement))return;const r=parseInt(n.dataset.line??"",10);if(!Number.isNaN(r))return r}function Ek(e){const t=a0(e);if(!t)return;const n=t.closest("[data-line], [data-alt-line]");if(!(n instanceof HTMLElement))return;const r=parseInt(n.dataset.line??"",10);if(!Number.isNaN(r))return r;const i=parseInt(n.dataset.altLine??"",10);if(!Number.isNaN(i))return i}function vB(e){const t=a0(e);if(!t)return;const n=t.closest("[data-code]");if(n instanceof HTMLElement)return n.hasAttribute("data-deletions")?"deletions":"additions"}function R8(e){const t=e.root.getSelection?.()??window.getSelection();if(!t||t.isCollapsed)return;const n=t.getComposedRanges?.({shadowRoots:[e.root]})?.[0]??(t.rangeCount>0?t.getRangeAt(0):void 0),r=n?.startContainer??t.anchorNode,i=n?.endContainer??t.focusNode;if(!r||!i||!e.root.contains(r)||!e.root.contains(i))return;const o=e.lineForNode(r),a=e.lineForNode(i);if(o===void 0||a===void 0)return;const s=e.sideForNode?.(r),l=e.sideForNode?.(i),c=s??l,d={start:o,end:a};return c&&(d.side=c),l&&c&&l!==c&&(d.endSide=l),{range:d,text:e.preserveTextSelection&&n?mB(n).cloneRange():void 0}}const Ou=new WeakMap,bB={lineHeight:24,hunkSeparatorHeight:24,fileGap:0};function yB(e){return e==="auto"||e==="scroll"||e==="overlay"}function Ik(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);if(yB(n.overflowY))return t;t=t.parentElement}}function wB(e){if(typeof document>"u")return;const t=e.closest("[data-component='session-review']");if(t instanceof HTMLElement){const r=Ik(e)??t,i=t.querySelector("[data-slot='session-review-container']");return{key:t,root:r,content:i instanceof HTMLElement?i:void 0}}const n=Ik(e);if(n){const r=n.querySelector("[role='log']");return{key:n,root:n,content:r instanceof HTMLElement?r:void 0}}return{key:document,root:document,content:void 0}}function kB(e){const t=wB(e);if(!t)return;let n=Ou.get(t.key);if(!n){const i=new A8;i.setup(t.root,t.content),n={virtualizer:i,refs:0},Ou.set(t.key,n)}n.refs+=1;let r=!1;return{virtualizer:n.virtualizer,release(){if(r)return;r=!0;const i=Ou.get(t.key);i&&(i.refs-=1,!(i.refs>0)&&(i.virtualizer.cleanUp(),Ou.delete(t.key)))}}}function z8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _c={exports:{}},xB=_c.exports,Tk;function SB(){return Tk||(Tk=1,(function(e,t){(function(n,r){r(t)})(xB,function(n){const r=Symbol("newer"),i=Symbol("older");class o{constructor(u,h){typeof u!="number"&&(h=u,u=0),this.size=0,this.limit=u,this.oldest=this.newest=void 0,this._keymap=new Map,h&&(this.assign(h),u<1&&(this.limit=this.size))}_markEntryAsUsed(u){u!==this.newest&&(u[r]&&(u===this.oldest&&(this.oldest=u[r]),u[r][i]=u[i]),u[i]&&(u[i][r]=u[r]),u[r]=void 0,u[i]=this.newest,this.newest&&(this.newest[r]=u),this.newest=u)}assign(u){let h,m=this.limit||Number.MAX_VALUE;this._keymap.clear();let f=u[Symbol.iterator]();for(let p=f.next();!p.done;p=f.next()){let b=new a(p.value[0],p.value[1]);if(this._keymap.set(b.key,b),h?(h[r]=b,b[i]=h):this.oldest=b,h=b,m--==0)throw new Error("overflow")}this.newest=h,this.size=this._keymap.size}get(u){var h=this._keymap.get(u);return h?(this._markEntryAsUsed(h),h.value):void 0}set(u,h){var m=this._keymap.get(u);return m?(m.value=h,this._markEntryAsUsed(m),this):(this._keymap.set(u,m=new a(u,h)),this.newest?(this.newest[r]=m,m[i]=this.newest):this.oldest=m,this.newest=m,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var u=this.oldest;if(u)return this.oldest[r]?(this.oldest=this.oldest[r],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),u[r]=u[i]=void 0,this._keymap.delete(u.key),--this.size,[u.key,u.value]}find(u){let h=this._keymap.get(u);return h?h.value:void 0}has(u){return this._keymap.has(u)}delete(u){var h=this._keymap.get(u);return h?(this._keymap.delete(h.key),h[r]&&h[i]?(h[i][r]=h[r],h[r][i]=h[i]):h[r]?(h[r][i]=void 0,this.oldest=h[r]):h[i]?(h[i][r]=void 0,this.newest=h[i]):this.oldest=this.newest=void 0,this.size--,h.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new l(this.oldest)}values(){return new c(this.oldest)}entries(){return this}[Symbol.iterator](){return new s(this.oldest)}forEach(u,h){typeof h!="object"&&(h=this);let m=this.oldest;for(;m;)u.call(h,m.value,m.key,this),m=m[r]}toJSON(){for(var u=new Array(this.size),h=0,m=this.oldest;m;)u[h++]={key:m.key,value:m.value},m=m[r];return u}toString(){for(var u="",h=this.oldest;h;)u+=String(h.key)+":"+h.value,h=h[r],h&&(u+=" < ");return u}}n.LRUMap=o;function a(d,u){this.key=d,this.value=u,this[r]=void 0,this[i]=void 0}function s(d){this.entry=d}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let d=this.entry;return d?(this.entry=d[r],{done:!1,value:[d.key,d.value]}):{done:!0,value:void 0}};function l(d){this.entry=d}l.prototype[Symbol.iterator]=function(){return this},l.prototype.next=function(){let d=this.entry;return d?(this.entry=d[r],{done:!1,value:d.key}):{done:!0,value:void 0}};function c(d){this.entry=d}c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let d=this.entry;return d?(this.entry=d[r],{done:!1,value:d.value}):{done:!0,value:void 0}}})})(_c,_c.exports)),_c.exports}var _B=SB();const Lk=z8(_B),zp=Symbol("IGNORE_RESPONSE");var AB=class{highlighter;preferredHighlighter;renderOptions;initialized=!1;workers=[];taskQueue=new Map;pendingTasks=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;instanceRequestMap=new Map;statSubscribers=new Set;fileCache;diffCache;_queuedBroadcast;constructor(e,{langs:t,theme:n=hr,lineDiffType:r="word-alt",tokenizeMaxLineLength:i=1e3,preferredHighlighter:o="shiki-js"}){this.options=e,this.preferredHighlighter=o,this.renderOptions={theme:n,lineDiffType:r,tokenizeMaxLineLength:i},this.fileCache=new Lk.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new Lk.LRUMap(e.totalASTLRUCacheSize??100),this.initialize(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey!=null?this.fileCache.get(e.cacheKey):void 0}getDiffResultCache(e){return e.cacheKey!=null?this.diffCache.get(e.cacheKey):void 0}inspectCaches(){const{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){try{return this.fileCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(e){try{return this.diffCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:e=hr,lineDiffType:t="word-alt",tokenizeMaxLineLength:n=1e3}){const r={theme:e,lineDiffType:t,tokenizeMaxLineLength:n};this.isInitialized()||await this.initialize();const i=J1(r.theme,this.renderOptions.theme);if(i&&r.lineDiffType===this.renderOptions.lineDiffType&&r.tokenizeMaxLineLength===this.renderOptions.tokenizeMaxLineLength)return;const o=Yc(e);let a=[];if(i||(fv(o)?a=wk(o):a=await kk(o)),this.highlighter!=null)uv(a,this.highlighter),await this.setRenderOptionsOnWorkers(r,a);else{const[s]=await Promise.all([Il({themes:o,langs:["text"],preferredHighlighter:this.preferredHighlighter}),this.setRenderOptionsOnWorkers(r,a)]);this.highlighter=s}this.renderOptions=r,this.diffCache.clear(),this.fileCache.clear();for(const s of this.themeSubscribers)s.rerender()}getFileRenderOptions(){const{tokenizeMaxLineLength:e,theme:t}=this.renderOptions;return{theme:t,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;this.isInitialized()||await this.initialize();const n=[];for(const r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),new Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");n.push(new Promise((i,o)=>{const a=this.generateRequestId(),s={type:"set-render-options",id:a,request:{type:"set-render-options",id:a,renderOptions:e,resolvedThemes:t},resolve:i,reject:o,requestStart:Date.now()};this.pendingTasks.set(a,s),r.worker.postMessage(s.request)}))}await Promise.all(n)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(e),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e),this.queueBroadcastStateChanges()}subscribeToStatChanges(e){return this.statSubscribers.add(e),e(this.getStats()),()=>{this.statSubscribers.delete(e)}}queueBroadcastStateChanges(){this._queuedBroadcast==null&&(this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges))}_broadcastStateChanges=()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);const e=this.getStats();for(const t of this.statSubscribers)t(e)};cleanUpPendingTasks(e){this.taskQueue.delete(e);const t=this.instanceRequestMap.get(e);t!=null&&(this.pendingTasks.delete(t),this.instanceRequestMap.delete(e)),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized!==!0)if(this.initialized===!1)this.initialized=new Promise((t,n)=>{(async()=>{try{const r=Yc(this.renderOptions.theme);let i=[];fv(r)?i=wk(r):i=await kk(r);let o=[];bk(e)?o=vk(e):o=await yk(e);const[a]=await Promise.all([Il({themes:r,langs:["text",...e],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(i,o)]);if(this.initialized===!1)throw this.terminateWorkers(),new Error("WorkerPoolManager: workers failed to initialize");this.highlighter=a,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),t()}catch(r){this.initialized=!1,this.workersFailed=!0,this.queueBroadcastStateChanges(),n(r)}})()}),this.queueBroadcastStateChanges();else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;const n=[];this.workers.length>0&&this.terminateWorkers();for(let r=0;r<(this.options.poolSize??8);r++){const i=this.options.workerFactory(),o={worker:i,request_id:void 0,initialized:!1,langs:new Set(["text",...t.map(({name:a})=>a)])};i.addEventListener("message",a=>{this.handleWorkerMessage(o,a.data)}),i.addEventListener("error",a=>console.error("Worker error:",a,o)),this.workers.push(o),n.push(new Promise((a,s)=>{const l=this.generateRequestId(),c={type:"initialize",id:l,request:{type:"initialize",id:l,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:e,resolvedLanguages:t},resolve(){o.initialized=!0,a()},reject:s,requestStart:Date.now()};this.pendingTasks.set(l,c),this.executeTask(o,c)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.taskQueue.size===0)){for(const[e,t]of this.taskQueue){if(this.instanceRequestMap.has(e))continue;const n=Dk(t),r=this.getAvailableWorker(n);if(r==null)break;this.assignWorkerToTask(t,r),this.resolveLanguagesAndExecuteTask(r,t,n)}this.queueBroadcastStateChanges()}};highlightFileAST(e,t){if((t.lang??hi(t.name))!=="text"){for(const n of[this.taskQueue,this.pendingTasks.values()])for(const r of n)if("instance"in r&&r.instance===e&&r.request.type==="file"&&nh(t,r.request.file))return;this.submitTask(e,{type:"file",file:t})}}getPlainFileAST(e,t,n,r){if(this.highlighter==null){this.initialize();return}return l8(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,lines:r})}highlightDiffAST(e,t){if((t.lang??hi(t.name))!=="text"){for(const n of[this.taskQueue,this.pendingTasks.values()])for(const r of n)if("instance"in r&&r.instance===e&&r.request.type==="diff"&&r.request.diff===t)return;this.submitTask(e,{type:"diff",diff:t})}}getPlainDiffAST(e,t,n,r,i){return this.highlighter!=null?k8(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,expandedHunks:r,collapsedContextThreshold:i}):void 0}terminate(){this.terminateWorkers(),this.fileCache.clear(),this.diffCache.clear(),this.instanceRequestMap.clear(),this.taskQueue.clear(),this.pendingTasks.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}terminateWorkers(){for(const e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?"waiting":this.initialized!==!0?"initializing":"initialized",totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(e=>e.request_id!=null).length,queuedTasks:this.taskQueue.size,pendingTasks:this.pendingTasks.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(e,t){this.initialized===!1&&this.initialize();const n=this.generateRequestId(),r=Date.now(),i=(()=>{switch(t.type){case"file":return{type:"file",id:n,request:{...t,id:n},instance:e,requestStart:r};case"diff":return{type:"diff",id:n,request:{...t,id:n},instance:e,requestStart:r}}})();this.taskQueue.set(e,i),this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,n){try{const r=n.filter(i=>!e.langs.has(i));r.length>0&&(bk(r)?t.request.resolvedLanguages=vk(r):t.request.resolvedLanguages=await yk(r)),this.executeTask(e,t)}catch{this.cleanWorkerAndTask(e,t)}}handleWorkerMessage(e,t){const n=this.pendingTasks.get(t.id);try{if(n==null)throw zp;if(t.type==="error"){const r=new Error(t.error);throw t.stack&&(r.stack=t.stack),"reject"in n?n.reject(r):n.instance.onHighlightError(r),r}else{if("instance"in n&&this.instanceRequestMap.get(n.instance)!==t.id)throw zp;switch(t.requestType){case"initialize":if(n.type!=="initialize")throw new Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"set-render-options":if(n.type!=="set-render-options")throw new Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"file":{if(n.type!=="file")throw new Error("handleWorkerMessage: task/response dont match");const{result:r,options:i}=t,{instance:o,request:a}=n;a.file.cacheKey!=null&&this.fileCache.set(a.file.cacheKey,{result:r,options:i}),o.onHighlightSuccess(a.file,r,i);break}case"diff":{if(n.type!=="diff")throw new Error("handleWorkerMessage: task/response dont match");const{result:r,options:i}=t,{instance:o,request:a}=n;a.diff.cacheKey!=null&&this.diffCache.set(a.diff.cacheKey,{result:r,options:i}),o.onHighlightSuccess(a.diff,r,i);break}}}}catch(r){r!==zp&&console.error(r,n,t)}this.cleanWorkerAndTask(e,n),this.queueBroadcastStateChanges(),this.taskQueue.size>0&&this.queueDrain()}_queuedDrain;queueDrain(){this._queuedDrain==null&&(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(e,t){t.request_id=e.id,"instance"in e&&(this.taskQueue.delete(e.instance),this.instanceRequestMap.set(e.instance,e.id)),this.pendingTasks.set(e.id,e)}cleanWorkerAndTask(e,t){e.request_id=void 0,t!=null&&("instance"in t&&this.instanceRequestMap.delete(t.instance),this.pendingTasks.delete(t.id))}executeTask(e,t){this.assignWorkerToTask(t,e);for(const n of Dk(t))e.langs.add(n);try{e.worker.postMessage(t.request)}catch(n){this.cleanWorkerAndTask(e,t),console.error("Failed to post message to worker:",n),"instance"in t?t.instance.onHighlightError(n):"reject"in t&&t.reject(n)}this.queueBroadcastStateChanges()}getAvailableWorker(e){let t;for(const n of this.workers){if(n.request_id!=null||!n.initialized)continue;if(t=n,e.length===0)break;let r=!0;for(const i of e)if(!n.langs.has(i)){r=!1;break}if(r)break}return t}generateRequestId(){return`req_${++this.nextRequestId}`}};function Dk(e){const t=new Set;if(e.type==="initialize"||e.type==="set-render-options")return[];switch(e.type){case"file":t.add(e.request.file.lang??hi(e.request.file.name));break;case"diff":t.add(e.request.diff.lang??hi(e.request.diff.name)),t.add(e.request.diff.lang??hi(e.request.diff.prevName??"-"));break}return t.delete("text"),Array.from(t)}const CB="/ikanban/assets/worker-1VQD7L0Q.js";function EB(){return new Worker(CB,{type:"module"})}function Mk(e){const t=new AB({workerFactory:EB,poolSize:2},{theme:"OpenCode",lineDiffType:e,preferredHighlighter:"shiki-wasm"});return t.initialize(),t}let Np,Fp;function kv(e){if(!(typeof window>"u"))return e==="split"?(Fp||(Fp=Mk("word-alt")),Fp):(Np||(Np=Mk("none")),Np)}const N8={"ui.sessionReview.title":"Session changes","ui.sessionReview.title.lastTurn":"Last turn changes","ui.sessionReview.diffStyle.unified":"Unified","ui.sessionReview.diffStyle.split":"Split","ui.sessionReview.expandAll":"Expand all","ui.sessionReview.collapseAll":"Collapse all","ui.sessionReview.change.added":"Added","ui.sessionReview.change.removed":"Removed","ui.sessionReview.change.modified":"Modified","ui.sessionReview.image.loading":"Loading...","ui.sessionReview.image.placeholder":"Image","ui.sessionReview.largeDiff.title":"Diff too large to render","ui.sessionReview.largeDiff.meta":"Limit: {{limit}} changed lines. Current: {{current}} changed lines.","ui.sessionReview.largeDiff.renderAnyway":"Render anyway","ui.sessionReview.openFile":"Open file","ui.sessionReview.selection.line":"line {{line}}","ui.sessionReview.selection.lines":"lines {{start}}-{{end}}","ui.fileMedia.kind.image":"image","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Removed {{kind}} file.","ui.fileMedia.state.loading":"Loading {{kind}}...","ui.fileMedia.state.error":"Unable to load {{kind}}.","ui.fileMedia.state.unavailable":"{{kind}} preview unavailable.","ui.fileMedia.binary.title":"Binary file","ui.fileMedia.binary.description.path":"{{path}} is binary.","ui.fileMedia.binary.description.default":"Binary content","ui.lineComment.label.prefix":"Comment on ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Commenting on ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Add comment","ui.lineComment.submit":"Comment","ui.sessionTurn.steps.show":"Show steps","ui.sessionTurn.steps.hide":"Hide steps","ui.sessionTurn.summary.response":"Response","ui.sessionTurn.diff.showMore":"Show more changes ({{count}})","ui.sessionTurn.retry.retrying":"retrying","ui.sessionTurn.retry.inSeconds":"in {{seconds}}s","ui.sessionTurn.retry.attempt":"attempt #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - attempt #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini is way too hot right now","ui.sessionTurn.error.freeUsageExceeded":"Free usage exceeded","ui.sessionTurn.error.addCredits":"Add credits","ui.sessionTurn.status.delegating":"Delegating work","ui.sessionTurn.status.planning":"Planning next steps","ui.sessionTurn.status.gatheringContext":"Exploring","ui.sessionTurn.status.gatheredContext":"Explored","ui.sessionTurn.status.searchingCodebase":"Searching the codebase","ui.sessionTurn.status.searchingWeb":"Searching the web","ui.sessionTurn.status.makingEdits":"Making edits","ui.sessionTurn.status.runningCommands":"Running commands","ui.sessionTurn.status.thinking":"Thinking","ui.sessionTurn.status.thinkingWithTopic":"Thinking - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Gathering thoughts","ui.sessionTurn.status.consideringNextSteps":"Considering next steps","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Edit","ui.messagePart.title.write":"Write","ui.messagePart.option.typeOwnAnswer":"Type your own answer","ui.messagePart.review.title":"Review your answers","ui.messagePart.questions.dismissed":"Questions dismissed","ui.messagePart.compaction":"History compacted","ui.messagePart.context.read.one":"{{count}} read","ui.messagePart.context.read.other":"{{count}} reads","ui.messagePart.context.search.one":"{{count}} search","ui.messagePart.context.search.other":"{{count}} searches","ui.messagePart.context.list.one":"{{count}} list","ui.messagePart.context.list.other":"{{count}} lists","ui.list.loading":"Loading","ui.list.empty":"No results","ui.list.clearFilter":"Clear filter","ui.list.emptyWithFilter.prefix":"No results for","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"New message","ui.textField.copyToClipboard":"Copy to clipboard","ui.textField.copyLink":"Copy link","ui.textField.copied":"Copied","ui.imagePreview.alt":"Image preview","ui.scrollView.ariaLabel":"scrollable content","ui.tool.read":"Read","ui.tool.loaded":"Loaded","ui.tool.list":"List","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"To-dos","ui.tool.todos.read":"Read to-dos","ui.tool.questions":"Questions","ui.tool.agent":"{{type}} Agent","ui.common.file.one":"file","ui.common.file.other":"files","ui.common.question.one":"question","ui.common.question.other":"questions","ui.common.add":"Add","ui.common.back":"Back","ui.common.cancel":"Cancel","ui.common.confirm":"Confirm","ui.common.dismiss":"Dismiss","ui.common.close":"Close","ui.common.next":"Next","ui.common.submit":"Submit","ui.permission.deny":"Deny","ui.permission.allowAlways":"Allow always","ui.permission.allowOnce":"Allow once","ui.message.expand":"Expand message","ui.message.collapse":"Collapse message","ui.message.copy":"Copy","ui.message.copyMessage":"Copy message","ui.message.copyResponse":"Copy response","ui.message.copied":"Copied","ui.message.interrupted":"Interrupted","ui.message.queued":"Queued","ui.message.attachment.alt":"attachment","ui.patch.action.deleted":"Deleted","ui.patch.action.created":"Created","ui.patch.action.moved":"Moved","ui.patch.action.patched":"Patched","ui.question.subtitle.answered":"{{count}} answered","ui.question.answer.none":"(no answer)","ui.question.review.notAnswered":"(not answered)","ui.question.multiHint":"Select all answers that apply","ui.question.singleHint":"Select one answer","ui.question.custom.placeholder":"Type your answer..."};function IB(e,t){return t?e.replace(/{{\s*([^}]+?)\s*}}/g,(n,r)=>{const i=String(r),o=t[i];return o===void 0?"":String(o)}):e}const TB={locale:()=>"en",t:(e,t)=>{const n=N8[e]??String(e);return IB(n,t)}},F8=Ct(TB);function LB(e){return y(F8.Provider,{get value(){return e.value},get children(){return e.children}})}function Wl(){return yt(F8)}const DB=new Set(["png","jpg","jpeg","gif","webp","avif","bmp","ico","tif","tiff","heic"]),MB=new Set(["mp3","wav","ogg","m4a","aac","flac","opus"]);function s0(e){if(!(!e||typeof e!="object"))return e}function eb(e){if(!e)return;const t=e.split(";",1)[0]?.trim().toLowerCase();if(t)return t==="audio/x-aac"?"audio/aac":t==="audio/x-m4a"?"audio/mp4":t}function PB(e){if(!e)return"";const t=e.lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()}function OB(e){const t=PB(e);if(t==="svg")return"svg";if(DB.has(t))return"image";if(MB.has(t))return"audio"}function $B(e){return s0(e)?.type==="binary"}function RB(e,t){if(t==="svg")return e.startsWith("data:image/svg+xml")?e:void 0;if(t==="image")return e.startsWith("data:image/")?e:void 0;if(e.startsWith("data:audio/x-aac;"))return e.replace("data:audio/x-aac;","data:audio/aac;");if(e.startsWith("data:audio/x-m4a;"))return e.replace("data:audio/x-m4a;","data:audio/mp4;");if(e.startsWith("data:audio/"))return e}function Vp(e,t){if(!e)return;if(typeof e=="string")return RB(e,t);const n=s0(e);if(!n||typeof n.content!="string")return;const r=eb(typeof n.mimeType=="string"?n.mimeType:void 0);if(r){if(t==="svg")return r!=="image/svg+xml"?void 0:n.encoding==="base64"?`data:image/svg+xml;base64,${n.content}`:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n.content)}`;if(!(t==="image"&&!r.startsWith("image/"))&&!(t==="audio"&&!r.startsWith("audio/"))&&n.encoding==="base64")return`data:${r};base64,${n.content}`}}function zB(e){if(typeof atob=="function")try{const t=atob(e),n=Uint8Array.from(t,r=>r.charCodeAt(0));return typeof TextDecoder=="function"?new TextDecoder().decode(n):t}catch{}}function NB(e){const t=s0(e);if(!(!t||typeof t.content!="string"||eb(typeof t.mimeType=="string"?t.mimeType:void 0)!=="image/svg+xml"))return t.encoding==="base64"?zB(t.content):t.content}function jp(e){if(typeof e=="string")return e.length>0;const t=s0(e);return t?typeof t.content=="string"&&t.content.length>0:!1}var FB=Q('<div class="flex min-h-56 flex-col items-center justify-center gap-2 px-6 py-10 text-center"><div class="text-14-semibold text-text-strong"></div><div class="text-14-regular text-text-weak">'),$u=Q('<div class="flex min-h-40 items-center justify-center px-6 py-4 text-center text-text-weak">'),VB=Q('<div class="flex justify-center bg-background-stronger px-6 py-4"><img class="max-h-[60vh] max-w-full rounded border border-border-weak-base bg-background-base object-contain">'),jB=Q('<div class="flex justify-center bg-background-stronger px-6 py-4"><audio class="w-full max-w-xl"controls preload=metadata><source>'),BB=Q('<div class="flex flex-col gap-4 px-6 py-4">'),HB=Q('<div class="flex justify-center"><img class="max-h-[60vh] max-w-full rounded border border-border-weak-base bg-background-base object-contain">');function UB(e,t){return e.current!==void 0?e.current:e.after??e.before}function Pk(e){const t=Wl(),n=()=>e.media,r=j(()=>{const g=n();if(!(!g||g.mode==="off"))return OB(g.path)}),i=j(()=>{const g=n();return!g||g.mode==="off"||r()?!1:$B(g.current)}),o=()=>e.media?.onLoad?.(),a=j(()=>{const g=n(),k=r();return!g||!k||k==="svg"||g.current!==void 0?!1:!jp(g.after)&&jp(g.before)}),s=j(()=>{const g=n(),k=r();if(!(!g||k!=="image"&&k!=="audio"))return Vp(UB(g,k),k)}),l=j(()=>{const g=n(),k=r();if(!(!g||k!=="image"&&k!=="audio")&&g.current===void 0&&!a()&&!s()&&!(!g.path||!g.readFile))return{key:`${k}:${g.path}`,kind:k,path:g.path,readFile:g.readFile,onError:g.onError}}),[c]=Ss(l,async g=>g.readFile(g.path).then(k=>{const S=Vp(k,g.kind);return S?{key:g.key,src:S,mime:g.kind==="audio"?eb(k?.mimeType):void 0}:(g.onError?.({kind:g.kind}),{key:g.key,error:!0})},()=>(g.onError?.({kind:g.kind}),{key:g.key,error:!0}))),d=j(()=>{const g=l(),k=c();if(!(!g||!k||k.key!==g.key))return k}),u=j(()=>{const g=d();return s()??(g&&"src"in g?g.src:void 0)}),h=j(()=>s()?"ready":l()?c.loading?"loading":d()?.error?"error":u()?"ready":"idle":"idle"),m=j(()=>{const g=d();return g&&"mime"in g?g.mime:void 0}),f=j(()=>{const g=n();if(!(!g||r()!=="svg"))return NB(g.current)}),p=j(()=>{const g=n();if(!(!g||r()!=="svg"))return Vp(g.current,"svg")}),b=j(()=>{const g=n();if(!(!g||r()!=="svg")&&f()===void 0&&jp(g.current))return[g.path,g.current]});se(Ht(b,g=>{g&&n()?.onError?.({kind:"svg"})},{defer:!0}));const v=g=>t.t(g==="image"?"ui.fileMedia.kind.image":"ui.fileMedia.kind.audio");return y(Ur,{get children(){return[y(Ot,{get when(){return r()==="image"||r()==="audio"},get children(){return y(de,{get when(){return u()},get fallback(){const g=n(),k=r();if(!g||k!=="image"&&k!=="audio")return e.fallback();const S=v(k);return a()?(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.removed",{kind:S})),w})():h()==="loading"?(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.loading",{kind:S})),w})():h()==="error"?(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.error",{kind:S})),w})():(()=>{var w=$u();return P(w,()=>t.t("ui.fileMedia.state.unavailable",{kind:S})),w})()},children:g=>{const k=r();return k!=="image"&&k!=="audio"?e.fallback():k==="image"?(()=>{var S=VB(),w=S.firstChild;return w.addEventListener("load",o),Ne(x=>{var L=g(),C=n()?.path;return L!==x.e&&et(w,"src",x.e=L),C!==x.t&&et(w,"alt",x.t=C),x},{e:void 0,t:void 0}),S})():(()=>{var S=jB(),w=S.firstChild,x=w.firstChild;return w.addEventListener("loadedmetadata",o),Ne(L=>{var C=g(),I=m();return C!==L.e&&et(x,"src",L.e=C),I!==L.t&&et(x,"type",L.t=I),L},{e:void 0,t:void 0}),S})()}})}}),y(Ot,{get when(){return r()==="svg"},get children(){return f()===void 0&&p()==null?e.fallback():(()=>{var g=BB();return P(g,y(de,{get when(){return f()!==void 0},get children(){return e.fallback()}}),null),P(g,y(de,{get when(){return p()},children:k=>(()=>{var S=HB(),w=S.firstChild;return w.addEventListener("load",o),Ne(x=>{var L=k(),C=n()?.path;return L!==x.e&&et(w,"src",x.e=L),C!==x.t&&et(w,"alt",x.t=C),x},{e:void 0,t:void 0}),S})()}),null),g})()}}),y(Ot,{get when(){return i()},get children(){var g=FB(),k=g.firstChild,S=k.nextSibling;return P(k,()=>n()?.path?.split("/").pop()??t.t("ui.fileMedia.binary.title")),P(S,()=>{const w=n()?.path;return w?t.t("ui.fileMedia.binary.description.path",{path:w}):t.t("ui.fileMedia.binary.description.default")}),g}}),y(Ot,{when:!0,get children(){return e.fallback()}})]}})}var qB=Q("<div data-component=icon><svg data-slot=icon-svg fill=none aria-hidden=true>");const ZB={"align-right":'<path d="M12.292 6.04167L16.2503 9.99998L12.292 13.9583M2.91699 9.99998H15.6253M17.0837 3.75V16.25" stroke="currentColor" stroke-linecap="square"/>',"arrow-up":'<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 2.24121L16.0921 8.33343L15.2083 9.21731L10.6249 4.63397V17.5001H9.37492V4.63398L4.7916 9.21731L3.90771 8.33343L9.99991 2.24121Z" fill="currentColor"/>',"arrow-left":'<path d="M8.33464 4.58398L2.91797 10.0007L8.33464 15.4173M3.33464 10.0007H17.0846" stroke="currentColor" stroke-linecap="square"/>',"arrow-right":'<path d="M11.6654 4.58398L17.082 10.0007L11.6654 15.4173M16.6654 10.0007H2.91536" stroke="currentColor" stroke-linecap="square"/>',archive:'<path d="M16.8747 6.24935H17.3747V5.74935H16.8747V6.24935ZM16.8747 16.8743V17.3743H17.3747V16.8743H16.8747ZM3.12467 16.8743H2.62467V17.3743H3.12467V16.8743ZM3.12467 6.24935V5.74935H2.62467V6.24935H3.12467ZM2.08301 2.91602V2.41602H1.58301V2.91602H2.08301ZM17.9163 2.91602H18.4163V2.41602H17.9163V2.91602ZM17.9163 6.24935V6.74935H18.4163V6.24935H17.9163ZM2.08301 6.24935H1.58301V6.74935H2.08301V6.24935ZM8.33301 9.08268H7.83301V10.0827H8.33301V9.58268V9.08268ZM11.6663 10.0827H12.1663V9.08268H11.6663V9.58268V10.0827ZM16.8747 6.24935H16.3747V16.8743H16.8747H17.3747V6.24935H16.8747ZM16.8747 16.8743V16.3743H3.12467V16.8743V17.3743H16.8747V16.8743ZM3.12467 16.8743H3.62467V6.24935H3.12467H2.62467V16.8743H3.12467ZM3.12467 6.24935V6.74935H16.8747V6.24935V5.74935H3.12467V6.24935ZM2.08301 2.91602V3.41602H17.9163V2.91602V2.41602H2.08301V2.91602ZM17.9163 2.91602H17.4163V6.24935H17.9163H18.4163V2.91602H17.9163ZM17.9163 6.24935V5.74935H2.08301V6.24935V6.74935H17.9163V6.24935ZM2.08301 6.24935H2.58301V2.91602H2.08301H1.58301V6.24935H2.08301ZM8.33301 9.58268V10.0827H11.6663V9.58268V9.08268H8.33301V9.58268Z" fill="currentColor"/>',"bubble-5":'<path d="M18.3327 9.99935C18.3327 5.57227 15.0919 2.91602 9.99935 2.91602C4.90676 2.91602 1.66602 5.57227 1.66602 9.99935C1.66602 11.1487 2.45505 13.1006 2.57637 13.3939C2.58707 13.4197 2.59766 13.4434 2.60729 13.4697C2.69121 13.6987 3.04209 14.9354 1.66602 16.7674C3.51787 17.6528 5.48453 16.1973 5.48453 16.1973C6.84518 16.9193 8.46417 17.0827 9.99935 17.0827C15.0919 17.0827 18.3327 14.4264 18.3327 9.99935Z" stroke="currentColor" stroke-linecap="square"/>',prompt:'<path d="M14.5841 12.0807H17.9193V2.91406H5.6276V6.2474M14.5859 6.2474H2.08594V15.4141H5.0026V17.4974L8.7526 15.4141H14.5859V6.2474Z" stroke="currentColor" stroke-linecap="square"/>',brain:'<path d="M13.332 8.7487C11.4911 8.7487 9.9987 7.25631 9.9987 5.41536M6.66536 11.2487C8.50631 11.2487 9.9987 12.7411 9.9987 14.582M9.9987 2.78209L9.9987 17.0658M16.004 15.0475C17.1255 14.5876 17.9154 13.4849 17.9154 12.1978C17.9154 11.3363 17.5615 10.5575 16.9913 9.9987C17.5615 9.43991 17.9154 8.66108 17.9154 7.79962C17.9154 6.21199 16.7136 4.90504 15.1702 4.73878C14.7858 3.21216 13.4039 2.08203 11.758 2.08203C11.1171 2.08203 10.5162 2.25337 9.9987 2.55275C9.48117 2.25337 8.88032 2.08203 8.23944 2.08203C6.59353 2.08203 5.21157 3.21216 4.82722 4.73878C3.28377 4.90504 2.08203 6.21199 2.08203 7.79962C2.08203 8.66108 2.43585 9.43991 3.00609 9.9987C2.43585 10.5575 2.08203 11.3363 2.08203 12.1978C2.08203 13.4849 2.87191 14.5876 3.99339 15.0475C4.46688 16.7033 5.9917 17.9154 7.79962 17.9154C8.61335 17.9154 9.36972 17.6698 9.9987 17.2488C10.6277 17.6698 11.384 17.9154 12.1978 17.9154C14.0057 17.9154 15.5305 16.7033 16.004 15.0475Z" stroke="currentColor"/>',"bullet-list":'<path d="M9.58329 13.7497H17.0833M9.58329 6.24967H17.0833M6.24996 6.24967C6.24996 7.17015 5.50377 7.91634 4.58329 7.91634C3.66282 7.91634 2.91663 7.17015 2.91663 6.24967C2.91663 5.3292 3.66282 4.58301 4.58329 4.58301C5.50377 4.58301 6.24996 5.3292 6.24996 6.24967ZM6.24996 13.7497C6.24996 14.6701 5.50377 15.4163 4.58329 15.4163C3.66282 15.4163 2.91663 14.6701 2.91663 13.7497C2.91663 12.8292 3.66282 12.083 4.58329 12.083C5.50377 12.083 6.24996 12.8292 6.24996 13.7497Z" stroke="currentColor" stroke-linecap="square"/>',"check-small":'<path d="M6.5 11.4412L8.97059 13.5L13.5 6.5" stroke="currentColor" stroke-linecap="square"/>',"chevron-down":'<path d="M6.6665 8.33325L9.99984 11.6666L13.3332 8.33325" stroke="currentColor" stroke-linecap="square"/>',"chevron-left":'<path d="M12 15L7 10L12 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-right":'<path d="M8 15L13 10L8 5" stroke="currentColor" stroke-linecap="square"/>',"chevron-grabber-vertical":'<path d="M6.66675 12.4998L10.0001 15.8332L13.3334 12.4998M6.66675 7.49984L10.0001 4.1665L13.3334 7.49984" stroke="currentColor" stroke-linecap="square"/>',"chevron-double-right":'<path d="M11.6654 13.3346L14.9987 10.0013L11.6654 6.66797M5.83203 13.3346L9.16536 10.0013L5.83203 6.66797" stroke="currentColor" stroke-linecap="square"/>',"circle-x":'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.6665 10.0003C1.6665 5.39795 5.39746 1.66699 9.99984 1.66699C14.6022 1.66699 18.3332 5.39795 18.3332 10.0003C18.3332 14.6027 14.6022 18.3337 9.99984 18.3337C5.39746 18.3337 1.6665 14.6027 1.6665 10.0003ZM7.49984 6.91107L6.91058 7.50033L9.41058 10.0003L6.91058 12.5003L7.49984 13.0896L9.99984 10.5896L12.4998 13.0896L13.0891 12.5003L10.5891 10.0003L13.0891 7.50033L12.4998 6.91107L9.99984 9.41107L7.49984 6.91107Z" fill="currentColor"/>',close:'<path d="M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25" stroke="currentColor" stroke-linecap="square"/>',"close-small":'<path d="M6 6L14 14M14 6L6 14" stroke="currentColor" stroke-linecap="square"/>',checklist:'<path d="M9.58342 13.7498H17.0834M9.58342 6.24984H17.0834M2.91675 6.6665L4.58341 7.9165L7.08341 4.1665M2.91675 14.1665L4.58341 15.4165L7.08341 11.6665" stroke="currentColor" stroke-linecap="square"/>',console:'<path d="M3.75 5.4165L8.33333 9.99984L3.75 14.5832M10.4167 14.5832H16.25" stroke="currentColor" stroke-linecap="square"/>',expand:'<path d="M4.58301 10.4163V15.4163H9.58301M10.4163 4.58301H15.4163V9.58301" stroke="currentColor" stroke-linecap="square"/>',collapse:'<path d="M16.666 8.33398H11.666V3.33398" stroke="currentColor" stroke-linecap="square"/><path d="M8.33398 16.666V11.666H3.33398" stroke="currentColor" stroke-linecap="square"/>',code:'<path d="M8.7513 7.5013L6.2513 10.0013L8.7513 12.5013M11.2513 7.5013L13.7513 10.0013L11.2513 12.5013M2.91797 2.91797H17.0846V17.0846H2.91797V2.91797Z" stroke="currentColor"/>',"code-lines":'<path d="M2.08325 3.75H11.2499M14.5833 3.75H17.9166M2.08325 10L7.08325 10M10.4166 10L17.9166 10M2.08325 16.25L8.74992 16.25M12.0833 16.25L17.9166 16.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>',"circle-ban-sign":'<path d="M15.3675 4.63087L4.55742 15.441M17.9163 9.9987C17.9163 14.371 14.3719 17.9154 9.99967 17.9154C7.81355 17.9154 5.83438 17.0293 4.40175 15.5966C2.96911 14.164 2.08301 12.1848 2.08301 9.9987C2.08301 5.62644 5.62742 2.08203 9.99967 2.08203C12.1858 2.08203 14.165 2.96813 15.5976 4.40077C17.0302 5.8334 17.9163 7.81257 17.9163 9.9987Z" stroke="currentColor" stroke-linecap="round"/>',"edit-small-2":'<path d="M17.0834 17.0833V17.5833H17.5834V17.0833H17.0834ZM2.91675 17.0833H2.41675V17.5833H2.91675V17.0833ZM2.91675 2.91659V2.41659H2.41675V2.91659H2.91675ZM9.58341 3.41659H10.0834V2.41659H9.58341V2.91659V3.41659ZM17.5834 10.4166V9.91659H16.5834V10.4166H17.0834H17.5834ZM10.4167 7.08325L10.0632 6.7297L9.91675 6.87615V7.08325H10.4167ZM10.4167 9.58325H9.91675V10.0833H10.4167V9.58325ZM12.9167 9.58325V10.0833H13.1239L13.2703 9.93681L12.9167 9.58325ZM15.4167 2.08325L15.7703 1.7297L15.4167 1.37615L15.0632 1.7297L15.4167 2.08325ZM17.9167 4.58325L18.2703 4.93681L18.6239 4.58325L18.2703 4.2297L17.9167 4.58325ZM17.0834 17.0833V16.5833H2.91675V17.0833V17.5833H17.0834V17.0833ZM2.91675 17.0833H3.41675V2.91659H2.91675H2.41675V17.0833H2.91675ZM2.91675 2.91659V3.41659H9.58341V2.91659V2.41659H2.91675V2.91659ZM17.0834 10.4166H16.5834V17.0833H17.0834H17.5834V10.4166H17.0834ZM10.4167 7.08325H9.91675V9.58325H10.4167H10.9167V7.08325H10.4167ZM10.4167 9.58325V10.0833H12.9167V9.58325V9.08325H10.4167V9.58325ZM10.4167 7.08325L10.7703 7.43681L15.7703 2.43681L15.4167 2.08325L15.0632 1.7297L10.0632 6.7297L10.4167 7.08325ZM15.4167 2.08325L15.0632 2.43681L17.5632 4.93681L17.9167 4.58325L18.2703 4.2297L15.7703 1.7297L15.4167 2.08325ZM17.9167 4.58325L17.5632 4.2297L12.5632 9.2297L12.9167 9.58325L13.2703 9.93681L18.2703 4.93681L17.9167 4.58325Z" fill="currentColor"/>',eye:'<path d="M10 4.58325C5.83333 4.58325 2.5 9.99992 2.5 9.99992C2.5 9.99992 5.83333 15.4166 10 15.4166C14.1667 15.4166 17.5 9.99992 17.5 9.99992C17.5 9.99992 14.1667 4.58325 10 4.58325Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="10" cy="10" r="2.5" stroke="currentColor"/>',enter:'<path d="M5.83333 15.8334L2.5 12.5L5.83333 9.16671M3.33333 12.5H17.9167V4.58337H10" stroke="currentColor" stroke-linecap="square"/>',folder:'<path d="M2.08301 2.91675V16.2501H17.9163V5.41675H9.99967L8.33301 2.91675H2.08301Z" stroke="currentColor" stroke-linecap="round"/>',"file-tree":'<path d="M4.58203 16.6693L6.66536 9.58594H17.082M4.58203 16.6693H16.457L18.5404 9.58594H17.082M4.58203 16.6693H2.08203V3.33594H8.33203L9.9987 5.83594H17.082V9.58594" stroke="currentColor" stroke-linecap="round"/>',"file-tree-active":'<path d="M6.66536 9.58594L4.58203 16.6693H16.457L18.5404 9.58594H17.082H6.66536Z" fill="currentColor" fill-opacity="16%"/><path d="M4.58203 16.6693L6.66536 9.58594H17.082M4.58203 16.6693H16.457L18.5404 9.58594H17.082M4.58203 16.6693H2.08203V3.33594H8.33203L9.9987 5.83594H17.082V9.58594" stroke="currentColor" stroke-linecap="round"/>',"magnifying-glass":'<path d="M13 13L10.6418 10.6418M11.9552 7.47761C11.9552 9.95053 9.95053 11.9552 7.47761 11.9552C5.0047 11.9552 3 9.95053 3 7.47761C3 5.0047 5.0047 3 7.47761 3C9.95053 3 11.9552 5.0047 11.9552 7.47761Z" stroke="currentColor" stroke-linecap="square" vector-effect="non-scaling-stroke"/>',"plus-small":'<path d="M9.99984 5.41699V10.0003M9.99984 10.0003V14.5837M9.99984 10.0003H5.4165M9.99984 10.0003H14.5832" stroke="currentColor" stroke-linecap="square"/>',plus:'<path d="M9.9987 2.20703V9.9987M9.9987 9.9987V17.7904M9.9987 9.9987H2.20703M9.9987 9.9987H17.7904" stroke="currentColor" stroke-linecap="square"/>',"new-session":'<path d="M17.0827 17.0807V17.5807H17.5827V17.0807H17.0827ZM2.91602 17.0807H2.41602L2.41602 17.5807H2.91602L2.91602 17.0807ZM2.91602 2.91406V2.41406H2.41602V2.91406H2.91602ZM9.58268 3.41406H10.0827V2.41406L9.58268 2.41406V2.91406V3.41406ZM17.5827 10.4141V9.91406L16.5827 9.91406V10.4141H17.0827H17.5827ZM6.24935 11.2474L5.8958 10.8938L5.74935 11.0403V11.2474H6.24935ZM6.24935 13.7474H5.74935V14.2474H6.24935V13.7474ZM8.74935 13.7474V14.2474H8.95646L9.1029 14.101L8.74935 13.7474ZM15.2077 2.28906L15.5612 1.93551L15.2077 1.58196L14.8541 1.93551L15.2077 2.28906ZM17.7077 4.78906L18.0612 5.14262L18.4148 4.78906L18.0612 4.43551L17.7077 4.78906ZM17.0827 17.0807V16.5807H2.91602V17.0807L2.91602 17.5807H17.0827V17.0807ZM2.91602 17.0807H3.41602L3.41602 2.91406H2.91602H2.41602L2.41602 17.0807H2.91602ZM2.91602 2.91406V3.41406L9.58268 3.41406V2.91406V2.41406L2.91602 2.41406V2.91406ZM17.0827 10.4141H16.5827V17.0807H17.0827H17.5827V10.4141H17.0827ZM6.24935 11.2474H5.74935V13.7474H6.24935H6.74935V11.2474H6.24935ZM6.24935 13.7474V14.2474L8.74935 14.2474V13.7474V13.2474L6.24935 13.2474V13.7474ZM6.24935 11.2474L6.6029 11.6009L15.5612 2.64262L15.2077 2.28906L14.8541 1.93551L5.8958 10.8938L6.24935 11.2474ZM15.2077 2.28906L14.8541 2.64262L17.3541 5.14262L17.7077 4.78906L18.0612 4.43551L15.5612 1.93551L15.2077 2.28906ZM17.7077 4.78906L17.3541 4.43551L8.3958 13.3938L8.74935 13.7474L9.1029 14.101L18.0612 5.14262L17.7077 4.78906Z" fill="currentColor"/>',"pencil-line":'<path d="M9.58301 17.9166H17.9163M17.9163 5.83325L14.1663 2.08325L2.08301 14.1666V17.9166H5.83301L17.9163 5.83325Z" stroke="currentColor" stroke-linecap="square"/>',mcp:'<g><path d="M0.972656 9.37176L9.5214 1.60019C10.7018 0.527151 12.6155 0.527151 13.7957 1.60019C14.9761 2.67321 14.9761 4.41295 13.7957 5.48599L7.3397 11.3552" stroke="currentColor" stroke-linecap="round"/><path d="M7.42871 11.2747L13.7957 5.48643C14.9761 4.41338 16.8898 4.41338 18.0702 5.48643L18.1147 5.52688C19.2951 6.59993 19.2951 8.33966 18.1147 9.4127L10.3831 16.4414C9.98966 16.7991 9.98966 17.379 10.3831 17.7366L11.9707 19.1799" stroke="currentColor" stroke-linecap="round"/><path d="M11.6587 3.54346L5.33619 9.29119C4.15584 10.3642 4.15584 12.1039 5.33619 13.177C6.51649 14.25 8.43019 14.25 9.61054 13.177L15.9331 7.42923" stroke="currentColor" stroke-linecap="round"/></g>',glasses:'<path d="M0.416626 7.91667H1.66663M19.5833 7.91667H18.3333M11.866 7.57987C11.3165 7.26398 10.6793 7.08333 9.99996 7.08333C9.32061 7.08333 8.68344 7.26398 8.13389 7.57987M8.74996 10C8.74996 12.0711 7.07103 13.75 4.99996 13.75C2.92889 13.75 1.24996 12.0711 1.24996 10C1.24996 7.92893 2.92889 6.25 4.99996 6.25C7.07103 6.25 8.74996 7.92893 8.74996 10ZM18.75 10C18.75 12.0711 17.071 13.75 15 13.75C12.9289 13.75 11.25 12.0711 11.25 10C11.25 7.92893 12.9289 6.25 15 6.25C17.071 6.25 18.75 7.92893 18.75 10Z" stroke="currentColor" stroke-linecap="square"/>',"magnifying-glass-menu":'<path d="M2.08325 10.0002H4.58325M2.08325 5.41683H5.41659M2.08325 14.5835H5.41659M16.4583 13.9585L18.7499 16.2502M17.9166 10.0002C17.9166 12.9917 15.4915 15.4168 12.4999 15.4168C9.50838 15.4168 7.08325 12.9917 7.08325 10.0002C7.08325 7.00862 9.50838 4.5835 12.4999 4.5835C15.4915 4.5835 17.9166 7.00862 17.9166 10.0002Z" stroke="currentColor" stroke-linecap="square"/>',"window-cursor":'<path d="M17.9166 10.4167V3.75H2.08325V17.0833H10.4166M17.9166 13.5897L11.6666 11.6667L13.5897 17.9167L15.032 15.0321L17.9166 13.5897Z" stroke="currentColor" stroke-width="1.07143" stroke-linecap="square"/><path d="M5.00024 6.125C5.29925 6.12518 5.54126 6.36795 5.54126 6.66699C5.54108 6.96589 5.29914 7.20783 5.00024 7.20801C4.7012 7.20801 4.45843 6.966 4.45825 6.66699C4.45825 6.36784 4.70109 6.125 5.00024 6.125ZM7.91626 6.125C8.21541 6.125 8.45825 6.36784 8.45825 6.66699C8.45808 6.966 8.21531 7.20801 7.91626 7.20801C7.61736 7.20783 7.37542 6.96589 7.37524 6.66699C7.37524 6.36795 7.61726 6.12518 7.91626 6.125ZM10.8333 6.125C11.1324 6.125 11.3752 6.36784 11.3752 6.66699C11.3751 6.966 11.1323 7.20801 10.8333 7.20801C10.5342 7.20801 10.2914 6.966 10.2913 6.66699C10.2913 6.36784 10.5341 6.125 10.8333 6.125Z" fill="currentColor" stroke="currentColor" stroke-width="0.25" stroke-linecap="square"/>',task:'<path d="M9.99992 2.0835V17.9168M7.08325 3.75016H2.08325V16.2502H7.08325M12.9166 16.2502H17.9166V3.75016H12.9166" stroke="currentColor" stroke-linecap="square"/>',stop:'<rect x="5" y="5" width="10" height="10" fill="currentColor"/>',"layout-left":'<path d="M2.91675 2.91699L2.91675 2.41699L2.41675 2.41699L2.41675 2.91699L2.91675 2.91699ZM17.0834 2.91699L17.5834 2.91699L17.5834 2.41699L17.0834 2.41699L17.0834 2.91699ZM17.0834 17.0837L17.0834 17.5837L17.5834 17.5837L17.5834 17.0837L17.0834 17.0837ZM2.91675 17.0837L2.41675 17.0837L2.41675 17.5837L2.91675 17.5837L2.91675 17.0837ZM7.41674 17.0837L7.41674 17.5837L8.41674 17.5837L8.41674 17.0837L7.91674 17.0837L7.41674 17.0837ZM8.41674 2.91699L8.41674 2.41699L7.41674 2.41699L7.41674 2.91699L7.91674 2.91699L8.41674 2.91699ZM2.91675 2.91699L2.91675 3.41699L17.0834 3.41699L17.0834 2.91699L17.0834 2.41699L2.91675 2.41699L2.91675 2.91699ZM17.0834 2.91699L16.5834 2.91699L16.5834 17.0837L17.0834 17.0837L17.5834 17.0837L17.5834 2.91699L17.0834 2.91699ZM17.0834 17.0837L17.0834 16.5837L2.91675 16.5837L2.91675 17.0837L2.91675 17.5837L17.0834 17.5837L17.0834 17.0837ZM2.91675 17.0837L3.41675 17.0837L3.41675 2.91699L2.91675 2.91699L2.41675 2.91699L2.41675 17.0837L2.91675 17.0837ZM7.91674 17.0837L8.41674 17.0837L8.41674 2.91699L7.91674 2.91699L7.41674 2.91699L7.41674 17.0837L7.91674 17.0837Z" fill="currentColor"/>',"layout-left-partial":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-left-full":'<path d="M2.91732 2.91602L7.91732 2.91602L7.91732 17.0827H2.91732L2.91732 2.91602Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M2.91732 2.91602L7.91732 2.91602M17.084 2.91602L17.084 17.0827M17.084 2.91602L7.91732 2.91602M17.084 17.0827L2.91732 17.0827M17.084 17.0827L7.91732 17.0827M2.91732 17.0827H7.91732M7.91732 17.0827L7.91732 2.91602" stroke="currentColor" stroke-linecap="square"/>',"layout-right":'<path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor"/>',"layout-right-partial":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"layout-right-full":'<path d="M17.082 17.0807L6.9987 17.0807V2.91406H17.082V17.0807Z" fill="currentColor" /><path d="M2.91536 2.91406H2.36536V2.36406H2.91536V2.91406ZM2.91536 17.0807V17.6307H2.36536V17.0807H2.91536ZM17.082 17.0807H17.632V17.6307H17.082V17.0807ZM17.082 2.91406V2.36406H17.632V2.91406H17.082ZM6.9987 2.91406H6.4487V2.36406H6.9987V2.91406ZM6.9987 17.0807V17.6307H6.4487V17.0807H6.9987ZM2.91536 2.91406H3.46536V17.0807H2.91536H2.36536V2.91406H2.91536ZM2.91536 17.0807V16.5307H17.082V17.0807V17.6307H2.91536V17.0807ZM17.082 17.0807H16.532V2.91406H17.082H17.632V17.0807H17.082ZM17.082 2.91406V3.46406H2.91536V2.91406V2.36406H17.082V2.91406ZM6.9987 2.91406H7.5487V17.0807H6.9987H6.4487V2.91406H6.9987ZM17.082 17.0807L17.082 17.6307L6.9987 17.6307V17.0807V16.5307L17.082 16.5307L17.082 17.0807ZM6.9987 2.91406V2.36406H17.082V2.91406V3.46406H6.9987V2.91406Z" fill="currentColor" />',"square-arrow-top-right":'<path d="M7.91675 2.9165H2.91675V17.0832H17.0834V12.0832M12.0834 2.9165H17.0834V7.9165M9.58342 10.4165L16.6667 3.33317" stroke="currentColor" stroke-linecap="square"/>',"open-file":'<path d="M7.91602 2.91406H2.91602V17.0807H17.0827V12.0807M12.0827 2.91406H17.0827V7.91406M9.58268 10.4141L16.666 3.33073" stroke="currentColor" stroke-linecap="square"/>',"speech-bubble":'<path d="M18.3334 10.0003C18.3334 5.57324 15.0927 2.91699 10.0001 2.91699C4.90749 2.91699 1.66675 5.57324 1.66675 10.0003C1.66675 11.1497 2.45578 13.1016 2.5771 13.3949C2.5878 13.4207 2.59839 13.4444 2.60802 13.4706C2.69194 13.6996 3.04282 14.9364 1.66675 16.7684C3.5186 17.6538 5.48526 16.1982 5.48526 16.1982C6.84592 16.9202 8.46491 17.0837 10.0001 17.0837C15.0927 17.0837 18.3334 14.4274 18.3334 10.0003Z" stroke="currentColor" stroke-linecap="square"/>',comment:'<path d="M16.25 3.75H3.75V16.25L6.875 14.4643H16.25V3.75Z" stroke="currentColor" stroke-linecap="square"/>',"folder-add-left":'<path d="M2.08333 9.58268V2.91602H8.33333L10 5.41602H17.9167V16.2493H8.75M3.75 12.0827V14.5827M3.75 14.5827V17.0827M3.75 14.5827H1.25M3.75 14.5827H6.25" stroke="currentColor" stroke-linecap="square"/>',github:'<path d="M10.0001 1.62549C14.6042 1.62549 18.3334 5.35465 18.3334 9.95882C18.333 11.7049 17.785 13.4068 16.7666 14.8251C15.7482 16.2434 14.3107 17.3066 12.6563 17.8651C12.2397 17.9484 12.0834 17.688 12.0834 17.4692C12.0834 17.188 12.0938 16.2922 12.0938 15.1776C12.0938 14.3963 11.8334 13.8963 11.5313 13.6359C13.3855 13.4276 15.3334 12.7192 15.3334 9.52132C15.3334 8.60465 15.0105 7.86507 14.4792 7.28174C14.5626 7.0734 14.8542 6.21924 14.3959 5.0734C14.3959 5.0734 13.698 4.84424 12.1042 5.92757C11.4376 5.74007 10.7292 5.64632 10.0209 5.64632C9.31258 5.64632 8.60425 5.74007 7.93758 5.92757C6.34383 4.85465 5.64592 5.0734 5.64592 5.0734C5.18758 6.21924 5.47925 7.0734 5.56258 7.28174C5.03133 7.86507 4.70842 8.61507 4.70842 9.52132C4.70842 12.7088 6.64592 13.4276 8.50008 13.6359C8.2605 13.8442 8.04175 14.2088 7.96883 14.7505C7.48967 14.9692 6.29175 15.3234 5.54175 14.063C5.3855 13.813 4.91675 13.1984 4.2605 13.2088C3.56258 13.2192 3.97925 13.6047 4.27092 13.7609C4.62508 13.9588 5.03133 14.6984 5.12508 14.938C5.29175 15.4067 5.83342 16.3026 7.92717 15.9172C7.92717 16.6151 7.93758 17.2713 7.93758 17.4692C7.93758 17.688 7.78133 17.938 7.36467 17.8651C5.70491 17.3126 4.26126 16.2515 3.23851 14.8324C2.21576 13.4133 1.66583 11.7081 1.66675 9.95882C1.66675 5.35465 5.39592 1.62549 10.0001 1.62549Z" fill="currentColor"/>',discord:'<path d="M16.0742 4.45014C14.9244 3.92097 13.7106 3.54556 12.4638 3.3335C12.2932 3.64011 12.1388 3.95557 12.0013 4.27856C10.6732 4.07738 9.32261 4.07738 7.99451 4.27856C7.85694 3.9556 7.70257 3.64014 7.53203 3.3335C6.28441 3.54735 5.06981 3.92365 3.91889 4.45291C1.63401 7.85128 1.01462 11.1652 1.32431 14.4322C2.6624 15.426 4.16009 16.1819 5.7523 16.6668C6.11082 16.1821 6.42806 15.6678 6.70066 15.1295C6.18289 14.9351 5.68315 14.6953 5.20723 14.4128C5.33249 14.3215 5.45499 14.2274 5.57336 14.136C6.95819 14.7907 8.46965 15.1302 9.99997 15.1302C11.5303 15.1302 13.0418 14.7907 14.4266 14.136C14.5463 14.2343 14.6688 14.3284 14.7927 14.4128C14.3159 14.6957 13.8152 14.9361 13.2965 15.1309C13.5688 15.669 13.8861 16.1828 14.2449 16.6668C15.8385 16.1838 17.3373 15.4283 18.6756 14.4335C19.039 10.645 18.0549 7.36145 16.0742 4.45014ZM7.09294 12.423C6.22992 12.423 5.51693 11.6357 5.51693 10.6671C5.51693 9.69852 6.20514 8.90427 7.09019 8.90427C7.97524 8.90427 8.68272 9.69852 8.66758 10.6671C8.65244 11.6357 7.97248 12.423 7.09294 12.423ZM12.907 12.423C12.0426 12.423 11.3324 11.6357 11.3324 10.6671C11.3324 9.69852 12.0206 8.90427 12.907 8.90427C13.7934 8.90427 14.4954 9.69852 14.4803 10.6671C14.4651 11.6357 13.7865 12.423 12.907 12.423Z" fill="currentColor"/>',"layout-bottom":'<path d="M2.91699 17.0832L2.41699 17.0832L2.41699 17.5832L2.91699 17.5832L2.91699 17.0832ZM2.91699 2.91653L2.91699 2.41653L2.41699 2.41653L2.41699 2.91653L2.91699 2.91653ZM17.0837 2.91653L17.5837 2.91653L17.5837 2.41653L17.0837 2.41653L17.0837 2.91653ZM17.0837 17.0832L17.5837 17.0832L17.5837 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.5827L17.5837 12.5827L17.5837 11.5827L17.0837 11.5827L17.0837 12.0827L17.0837 12.5827ZM2.91699 11.5827L2.41699 11.5827L2.41699 12.5827L2.91699 12.5827L2.91699 12.0827L2.91699 11.5827ZM2.91699 17.0832L3.41699 17.0832L3.41699 2.91653L2.91699 2.91653L2.41699 2.91653L2.41699 17.0832L2.91699 17.0832ZM2.91699 2.91653L2.91699 3.41653L17.0837 3.41653L17.0837 2.91653L17.0837 2.41653L2.91699 2.41653L2.91699 2.91653ZM17.0837 2.91653L16.5837 2.91653L16.5837 17.0832L17.0837 17.0832L17.5837 17.0832L17.5837 2.91653L17.0837 2.91653ZM17.0837 17.0832L17.0837 16.5832L2.91699 16.5832L2.91699 17.0832L2.91699 17.5832L17.0837 17.5832L17.0837 17.0832ZM17.0837 12.0827L17.0837 11.5827L2.91699 11.5827L2.91699 12.0827L2.91699 12.5827L17.0837 12.5827L17.0837 12.0827Z" fill="currentColor"/>',"layout-bottom-partial":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor" fill-opacity="16%" /><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"layout-bottom-full":'<path d="M2.91732 12.0827L17.084 12.0827L17.084 17.0827H2.91732L2.91732 12.0827Z" fill="currentColor"/><path d="M2.91732 2.91602L17.084 2.91602M2.91732 2.91602L2.91732 17.0827M17.084 2.91602L17.084 17.0827M17.084 17.0827L2.91732 17.0827M2.91732 12.0827L17.084 12.0827" stroke="currentColor" stroke-linecap="square"/>',"dot-grid":'<path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" fill="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" fill="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" fill="currentColor"/><path d="M2.08398 9.16602H3.75065V10.8327H2.08398V9.16602Z" stroke="currentColor"/><path d="M10.834 9.16602H9.16732V10.8327H10.834V9.16602Z" stroke="currentColor"/><path d="M16.2507 9.16602H17.9173V10.8327H16.2507V9.16602Z" stroke="currentColor"/>',"circle-check":'<path d="M12.4987 7.91732L8.7487 12.5007L7.08203 10.834M17.9154 10.0007C17.9154 14.3729 14.371 17.9173 9.9987 17.9173C5.62644 17.9173 2.08203 14.3729 2.08203 10.0007C2.08203 5.6284 5.62644 2.08398 9.9987 2.08398C14.371 2.08398 17.9154 5.6284 17.9154 10.0007Z" stroke="currentColor" stroke-linecap="square"/>',copy:'<path d="M6.2513 6.24935V2.91602H17.0846V13.7493H13.7513M13.7513 6.24935V17.0827H2.91797V6.24935H13.7513Z" stroke="currentColor" stroke-linecap="round"/>',check:'<path d="M5 11.9657L8.37838 14.7529L15 5.83398" stroke="currentColor" stroke-linecap="square"/>',photo:'<path d="M16.6665 16.6666L11.6665 11.6666L9.99984 13.3333L6.6665 9.99996L3.08317 13.5833M2.9165 2.91663H17.0832V17.0833H2.9165V2.91663ZM13.3332 7.49996C13.3332 8.30537 12.6803 8.95829 11.8748 8.95829C11.0694 8.95829 10.4165 8.30537 10.4165 7.49996C10.4165 6.69454 11.0694 6.04163 11.8748 6.04163C12.6803 6.04163 13.3332 6.69454 13.3332 7.49996Z" stroke="currentColor" stroke-linecap="square"/>',share:'<path d="M10.0013 12.0846L10.0013 3.33464M13.7513 6.66797L10.0013 2.91797L6.2513 6.66797M17.0846 10.418V17.0846H2.91797V10.418" stroke="currentColor" stroke-linecap="square"/>',download:'<path d="M13.9583 10.6257L10 14.584L6.04167 10.6257M10 2.08398V13.959M16.25 17.9173H3.75" stroke="currentColor" stroke-linecap="square"/>',menu:'<path d="M2.5 5H17.5M2.5 10H17.5M2.5 15H17.5" stroke="currentColor" stroke-linecap="square"/>',server:'<rect x="3.35547" y="1.92969" width="13.2857" height="16.1429" stroke="currentColor"/><rect x="3.35547" y="11.9297" width="13.2857" height="6.14286" stroke="currentColor"/><rect x="12.8555" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/><rect x="10" y="14.2852" width="1.42857" height="1.42857" fill="currentColor"/>',branch:'<path d="M14.2036 7.19987L14.2079 6.69989L13.2079 6.69132L13.2036 7.1913L13.7036 7.19559L14.2036 7.19987ZM8.14804 5.09032H7.64804C7.64804 5.75797 7.06861 6.34471 6.29619 6.34471V6.84471V7.34471C7.56926 7.34471 8.64804 6.36051 8.64804 5.09032H8.14804ZM6.29619 6.84471V6.34471C5.52376 6.34471 4.94434 5.75797 4.94434 5.09032H4.44434H3.94434C3.94434 6.36051 5.02311 7.34471 6.29619 7.34471V6.84471ZM4.44434 5.09032H4.94434C4.94434 4.42267 5.52376 3.83594 6.29619 3.83594V3.33594V2.83594C5.02311 2.83594 3.94434 3.82013 3.94434 5.09032H4.44434ZM6.29619 3.33594V3.83594C7.06861 3.83594 7.64804 4.42267 7.64804 5.09032H8.14804H8.64804C8.64804 3.82013 7.56926 2.83594 6.29619 2.83594V3.33594ZM8.14804 14.9149H7.64804C7.64804 15.5825 7.06861 16.1693 6.29619 16.1693V16.6693V17.1693C7.56926 17.1693 8.64804 16.1851 8.64804 14.9149H8.14804ZM6.29619 16.6693V16.1693C5.52376 16.1693 4.94434 15.5825 4.94434 14.9149H4.44434H3.94434C3.94434 16.1851 5.02311 17.1693 6.29619 17.1693V16.6693ZM4.44434 14.9149H4.94434C4.94434 14.2472 5.52376 13.6605 6.29619 13.6605V13.1605V12.6605C5.02311 12.6605 3.94434 13.6447 3.94434 14.9149H4.44434ZM6.29619 13.1605V13.6605C7.06861 13.6605 7.64804 14.2472 7.64804 14.9149H8.14804H8.64804C8.64804 13.6447 7.56926 12.6605 6.29619 12.6605V13.1605ZM15.5554 5.09032H15.0554C15.0554 5.75797 14.476 6.34471 13.7036 6.34471V6.84471V7.34471C14.9767 7.34471 16.0554 6.36051 16.0554 5.09032H15.5554ZM13.7036 6.84471V6.34471C12.9312 6.34471 12.3517 5.75797 12.3517 5.09032H11.8517H11.3517C11.3517 6.36051 12.4305 7.34471 13.7036 7.34471V6.84471ZM11.8517 5.09032H12.3517C12.3517 4.42267 12.9312 3.83594 13.7036 3.83594V3.33594V2.83594C12.4305 2.83594 11.3517 3.82013 11.3517 5.09032H11.8517ZM13.7036 3.33594V3.83594C14.476 3.83594 15.0554 4.42267 15.0554 5.09032H15.5554H16.0554C16.0554 3.82013 14.9767 2.83594 13.7036 2.83594V3.33594ZM13.7036 7.19559L13.2036 7.1913L13.1544 12.9277L13.6544 12.932L14.1544 12.9363L14.2036 7.19987L13.7036 7.19559ZM6.29619 6.84471H5.79619V13.1605H6.29619H6.79619V6.84471H6.29619ZM11.6545 14.9149V14.4149H8.14804V14.9149V15.4149H11.6545V14.9149ZM13.6544 12.932L13.1544 12.9277C13.1474 13.7511 12.4779 14.4149 11.6545 14.4149V14.9149V15.4149C13.0269 15.4149 14.1426 14.3086 14.1544 12.9363L13.6544 12.932Z" fill="currentColor"/>',edit:'<path d="M17.0832 17.0807V17.5807H17.5832V17.0807H17.0832ZM2.9165 17.0807H2.4165V17.5807H2.9165V17.0807ZM2.9165 2.91406V2.41406H2.4165V2.91406H2.9165ZM9.58317 3.41406H10.0832V2.41406H9.58317V2.91406V3.41406ZM17.5832 10.4141V9.91406H16.5832V10.4141H17.0832H17.5832ZM6.24984 11.2474L5.89628 10.8938L5.74984 11.0403V11.2474H6.24984ZM6.24984 13.7474H5.74984V14.2474H6.24984V13.7474ZM8.74984 13.7474V14.2474H8.95694L9.10339 14.101L8.74984 13.7474ZM15.2082 2.28906L15.5617 1.93551L15.2082 1.58196L14.8546 1.93551L15.2082 2.28906ZM17.7082 4.78906L18.0617 5.14262L18.4153 4.78906L18.0617 4.43551L17.7082 4.78906ZM17.0832 17.0807V16.5807H2.9165V17.0807V17.5807H17.0832V17.0807ZM2.9165 17.0807H3.4165V2.91406H2.9165H2.4165V17.0807H2.9165ZM2.9165 2.91406V3.41406H9.58317V2.91406V2.41406H2.9165V2.91406ZM17.0832 10.4141H16.5832V17.0807H17.0832H17.5832V10.4141H17.0832ZM6.24984 11.2474H5.74984V13.7474H6.24984H6.74984V11.2474H6.24984ZM6.24984 13.7474V14.2474H8.74984V13.7474V13.2474H6.24984V13.7474ZM6.24984 11.2474L6.60339 11.6009L15.5617 2.64262L15.2082 2.28906L14.8546 1.93551L5.89628 10.8938L6.24984 11.2474ZM15.2082 2.28906L14.8546 2.64262L17.3546 5.14262L17.7082 4.78906L18.0617 4.43551L15.5617 1.93551L15.2082 2.28906ZM17.7082 4.78906L17.3546 4.43551L8.39628 13.3938L8.74984 13.7474L9.10339 14.101L18.0617 5.14262L17.7082 4.78906Z" fill="currentColor"/>',help:'<path d="M7.91683 7.91927V6.2526H12.0835V8.7526L10.0002 10.0026V12.0859M10.0002 13.7526V13.7609M17.9168 10.0026C17.9168 14.3749 14.3724 17.9193 10.0002 17.9193C5.62791 17.9193 2.0835 14.3749 2.0835 10.0026C2.0835 5.63035 5.62791 2.08594 10.0002 2.08594C14.3724 2.08594 17.9168 5.63035 17.9168 10.0026Z" stroke="currentColor" stroke-linecap="square"/>',"settings-gear":'<path d="M7.62516 4.46094L5.05225 3.86719L3.86475 5.05469L4.4585 7.6276L2.0835 9.21094V10.7943L4.4585 12.3776L3.86475 14.9505L5.05225 16.138L7.62516 15.5443L9.2085 17.9193H10.7918L12.3752 15.5443L14.9481 16.138L16.1356 14.9505L15.5418 12.3776L17.9168 10.7943V9.21094L15.5418 7.6276L16.1356 5.05469L14.9481 3.86719L12.3752 4.46094L10.7918 2.08594H9.2085L7.62516 4.46094Z" stroke="currentColor"/><path d="M12.5002 10.0026C12.5002 11.3833 11.3809 12.5026 10.0002 12.5026C8.61945 12.5026 7.50016 11.3833 7.50016 10.0026C7.50016 8.62189 8.61945 7.5026 10.0002 7.5026C11.3809 7.5026 12.5002 8.62189 12.5002 10.0026Z" stroke="currentColor"/>',dash:'<rect x="5" y="9.5" width="10" height="1" fill="currentColor"/>',"cloud-upload":'<path d="M12.0833 16.25H15C17.0711 16.25 18.75 14.5711 18.75 12.5C18.75 10.5649 17.2843 8.97217 15.4025 8.77133C15.2 6.13103 12.8586 4.08333 10 4.08333C7.71532 4.08333 5.76101 5.49781 4.96501 7.49881C2.84892 7.90461 1.25 9.76559 1.25 11.6667C1.25 13.9813 3.30203 16.25 5.83333 16.25H7.91667M10 16.25V10.4167M12.0833 11.875L10 9.79167L7.91667 11.875" stroke="currentColor" stroke-linecap="square"/>',trash:'<path d="M4.58342 17.9134L4.58369 17.4134L4.22787 17.5384L4.22766 18.0384H4.58342V17.9134ZM15.4167 17.9134V18.0384H15.7725L15.7723 17.5384L15.4167 17.9134ZM2.08342 3.95508V3.45508H1.58342V3.95508H2.08342V4.45508V3.95508ZM17.9167 4.45508V4.95508H18.4167V4.45508H17.9167V3.95508V4.45508ZM4.16677 4.58008L3.66701 4.5996L4.22816 17.5379L4.72792 17.4934L5.22767 17.4489L4.66652 4.54055L4.16677 4.58008ZM4.58342 18.0384V17.9134H15.4167V18.0384V18.5384H4.58342V18.0384ZM15.4167 17.9134L15.8332 17.5379L16.2498 4.5996L15.7501 4.58008L15.2503 4.56055L14.8337 17.4989L15.4167 17.9134ZM15.8334 4.58008V4.08008H4.16677V4.58008V5.08008H15.8334V4.58008ZM2.08342 4.45508V4.95508H4.16677V4.58008V4.08008H2.08342V4.45508ZM15.8334 4.58008V5.08008H17.9167V4.45508V3.95508H15.8334V4.58008ZM6.83951 4.35149L7.432 4.55047C7.79251 3.47701 8.80699 2.70508 10.0001 2.70508V2.20508V1.70508C8.25392 1.70508 6.77335 2.83539 6.24702 4.15251L6.83951 4.35149ZM10.0001 2.20508V2.70508C11.1932 2.70508 12.2077 3.47701 12.5682 4.55047L13.1607 4.35149L13.7532 4.15251C13.2269 2.83539 11.7463 1.70508 10.0001 1.70508V2.20508Z" fill="currentColor"/>',sliders:'<path d="M3.625 6.25H10.9375M16.375 13.75H10.5625M3.625 13.75H4.9375M11.125 6.25C11.125 4.79969 12.2997 3.625 13.75 3.625C15.2003 3.625 16.375 4.79969 16.375 6.25C16.375 7.70031 15.2003 8.875 13.75 8.875C12.2997 8.875 11.125 7.70031 11.125 6.25ZM10.375 13.75C10.375 15.2003 9.20031 16.375 7.75 16.375C6.29969 16.375 5.125 15.2003 5.125 13.75C5.125 12.2997 6.29969 11.125 7.75 11.125C9.20031 11.125 10.375 12.2997 10.375 13.75Z" stroke="currentColor" stroke-linecap="square"/>',keyboard:'<path d="M5.125 7.375V4.375H14.875V2.875M8.3125 13.9375H11.6875M8.125 13.9375H11.875M2.125 7.375H17.875V17.125H2.125V7.375ZM5.5 10.375H5.125V10.75H5.5V10.375ZM8.5 10.375H8.125V10.75H8.5V10.375ZM11.875 10.375H11.5V10.75H11.875V10.375ZM14.875 10.375H14.5V10.75H14.875V10.375ZM14.875 13.75H14.5V14.125H14.875V13.75ZM5.5 13.75H5.125V14.125H5.5V13.75Z" stroke="currentColor" stroke-linecap="square"/>',selector:'<path d="M6.66626 12.5033L9.99959 15.8366L13.3329 12.5033M6.66626 7.50326L9.99959 4.16992L13.3329 7.50326" stroke="currentColor" stroke-linecap="square"/>',"arrow-down-to-line":'<path d="M15.2083 11.6667L10 16.875L4.79167 11.6667M10 16.25V3.125" stroke="currentColor" stroke-width="1.25" stroke-linecap="square"/>',warning:'<path d="M10 7.91667V11.6667M10 13.7417V13.75M10 2.5L1.875 16.25H18.125L10 2.5Z" stroke="currentColor" stroke-linecap="square"/>',link:'<path d="M2.08334 12.0833L1.72979 11.7298L1.37624 12.0833L1.72979 12.4369L2.08334 12.0833ZM7.91668 17.9167L7.56312 18.2702L7.91668 18.6238L8.27023 18.2702L7.91668 17.9167ZM17.9167 7.91666L18.2702 8.27022L18.6238 7.91666L18.2702 7.56311L17.9167 7.91666ZM12.0833 2.08333L12.4369 1.72977L12.0833 1.37622L11.7298 1.72977L12.0833 2.08333ZM8.39646 5.06311L8.0429 5.41666L8.75001 6.12377L9.10356 5.77021L8.75001 5.41666L8.39646 5.06311ZM5.77023 9.10355L6.12378 8.74999L5.41668 8.04289L5.06312 8.39644L5.41668 8.74999L5.77023 9.10355ZM14.2298 10.8964L13.8762 11.25L14.5833 11.9571L14.9369 11.6035L14.5833 11.25L14.2298 10.8964ZM11.6036 14.9369L11.9571 14.5833L11.25 13.8762L10.8965 14.2298L11.25 14.5833L11.6036 14.9369ZM7.14646 12.1464L6.7929 12.5L7.50001 13.2071L7.85356 12.8535L7.50001 12.5L7.14646 12.1464ZM12.8536 7.85355L13.2071 7.49999L12.5 6.79289L12.1465 7.14644L12.5 7.49999L12.8536 7.85355ZM2.08334 12.0833L1.72979 12.4369L7.56312 18.2702L7.91668 17.9167L8.27023 17.5631L2.4369 11.7298L2.08334 12.0833ZM17.9167 7.91666L18.2702 7.56311L12.4369 1.72977L12.0833 2.08333L11.7298 2.43688L17.5631 8.27022L17.9167 7.91666ZM12.0833 2.08333L11.7298 1.72977L8.39646 5.06311L8.75001 5.41666L9.10356 5.77021L12.4369 2.43688L12.0833 2.08333ZM5.41668 8.74999L5.06312 8.39644L1.72979 11.7298L2.08334 12.0833L2.4369 12.4369L5.77023 9.10355L5.41668 8.74999ZM14.5833 11.25L14.9369 11.6035L18.2702 8.27022L17.9167 7.91666L17.5631 7.56311L14.2298 10.8964L14.5833 11.25ZM7.91668 17.9167L8.27023 18.2702L11.6036 14.9369L11.25 14.5833L10.8965 14.2298L7.56312 17.5631L7.91668 17.9167ZM7.50001 12.5L7.85356 12.8535L12.8536 7.85355L12.5 7.49999L12.1465 7.14644L7.14646 12.1464L7.50001 12.5Z" fill="currentColor"/>',providers:'<path d="M10.0001 4.37562V2.875M13 4.37793V2.87793M7.00014 4.37793V2.875M10 17.1279V15.6279M13 17.1279V15.6279M7 17.1279V15.6279M15.625 13.0029H17.125M15.625 7.00293H17.125M15.625 10.0029H17.125M2.875 10.0029H4.375M2.875 13.0029H4.375M2.875 7.00293H4.375M4.375 4.37793H15.625V15.6279H4.375V4.37793ZM12.6241 10.0022C12.6241 11.4519 11.4488 12.6272 9.99908 12.6272C8.54934 12.6272 7.37408 11.4519 7.37408 10.0022C7.37408 8.55245 8.54934 7.3772 9.99908 7.3772C11.4488 7.3772 12.6241 8.55245 12.6241 10.0022Z" stroke="currentColor" stroke-linecap="square"/>',models:'<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C12.2917 10 10 12.2917 10 17.5C10 12.2917 7.70833 10 2.5 10C7.70833 10 10 7.70833 10 2.5C10 7.70833 12.2917 10 17.5 10Z" stroke="currentColor"/>'};function Dt(e){const[t,n]=ue(e,["name","size","class","classList"]),r=()=>t.name==="magnifying-glass"?"0 0 16 16":"0 0 20 20";return(()=>{var i=qB(),o=i.firstChild;return nr(o,ee({get classList(){return{...t.classList||{},[t.class??""]:!!t.class}},get viewBox(){return r()},get innerHTML(){return ZB[t.name]}},n),!0,!1),Ne(()=>et(i,"data-size",t.size||"normal")),i})()}var WB=Q('<div class="fixed z-50 flex h-8 items-center gap-2 rounded-md border border-border-base bg-background-base px-3 shadow-md"><input placeholder=Find class="w-40 bg-transparent outline-none text-14-regular text-text-strong placeholder:text-text-weak"><div class="shrink-0 text-12-regular text-text-weak tabular-nums text-right"style=width:10ch></div><div class="flex items-center"><button type=button class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong disabled:opacity-40 disabled:pointer-events-none"aria-label="Previous match"></button><button type=button class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong disabled:opacity-40 disabled:pointer-events-none"aria-label="Next match"></button></div><button type=button class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong"aria-label="Close search">');function GB(e){return y(Da,{get children(){var t=WB(),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,o=i.firstChild,a=o.nextSibling,s=i.nextSibling;t.$$pointerdown=c=>c.stopPropagation(),P(t,y(Dt,{name:"magnifying-glass",size:"small",class:"text-text-weak shrink-0"}),n),n.$$keydown=c=>e.onKeyDown(c),n.$$input=c=>e.onInput(c.currentTarget.value);var l=e.setInput;return typeof l=="function"?or(l,n):e.setInput=n,P(r,(()=>{var c=Le(()=>!!e.count());return()=>c()?`${e.index()+1}/${e.count()}`:"0/0"})()),ga(o,"click",e.onPrev,!0),P(o,y(Dt,{name:"chevron-down",size:"small",class:"rotate-180"})),ga(a,"click",e.onNext,!0),P(a,y(Dt,{name:"chevron-down",size:"small"})),ga(s,"click",e.onClose,!0),P(s,y(Dt,{name:"close-small",size:"small"})),Ne(c=>{var d=`${e.pos().top}px`,u=`${e.pos().right}px`,h=e.count()===0,m=e.count()===0;return d!==c.e&&zi(t,"top",c.e=d),u!==c.t&&zi(t,"right",c.t=u),h!==c.a&&(o.disabled=c.a=h),m!==c.o&&(a.disabled=c.o=m),c},{e:void 0,t:void 0,a:void 0,o:void 0}),Ne(()=>n.value=e.query()),t}})}rr(["pointerdown","input","keydown","click"]);var KB=Q('<div data-component=file class="relative outline-none"tabindex=0><div></div><div class="pointer-events-none absolute inset-0 z-0">');const JB=5e5,QB={...P1,lineHeight:24,fileGap:0},V8=["mode","media","class","classList","annotations","selectedLines","commentedLines","search","onLineSelected","onLineSelectionEnd","onLineNumberSelectionEnd","onRendered","preloadedDiff"],XB=["file",...V8],YB=["before","after",...V8];function eH(e,t){if(e.isPartial||e.hunks.length===0)return;const n=t.side==="deletions"?{start:r=>r.deletionStart,count:r=>r.deletionCount}:{start:r=>r.additionStart,count:r=>r.additionCount};for(let r=0;r<e.hunks.length;r++){const i=e.hunks[r],o=n.start(i);if(t.line<o)return{index:r,direction:r===0?"down":"both"};const a=o+Math.max(n.count(i)-1,-1);if(t.line<=a)return}return{index:e.hunks.length,direction:"up"}}function tH(e){let t,n,r,i,o,a,s,l=!1,c=null,d=!1;const u=cB(),h=pB(),[m,f]=me(0),p=()=>dB(n),b=()=>O8(n),v=lB({wrapper:()=>t,overlay:()=>r,getRoot:p,shortcuts:e.search()?.shortcuts}),g=()=>{i===void 0&&(i=requestAnimationFrame(()=>{i=void 0;const C=d;e.updateSelection(C),d&&(d=!1,e.onLineSelectionEnd(c))}))},k=()=>{o===void 0&&(o=requestAnimationFrame(()=>{o=void 0;const C=e.buildDragSelection();C&&e.setSelectedLines(C)}))},S=C=>{if(!e.enableLineSelection()||C.button!==0)return;const I=e.lineFromMouseEvent(C);if(I.numberColumn){h.begin(!0,I.line);return}I.line!==void 0&&(h.begin(!1,I.line),a=I.line,s=I.line,l=!1,e.onDragStart(I))},w=C=>{if(!e.enableLineSelection())return;const I=e.lineFromMouseEvent(C);if(!h.track(C.buttons,I.line)&&a!==void 0){if((C.buttons&1)===0){a=void 0,s=void 0,l=!1,e.onDragReset(),h.finish();return}I.line!==void 0&&(s=I.line,l=!0,e.onDragMove(I),k())}},x=()=>{if(e.enableLineSelection()&&h.finish()!=="numbers"&&a!==void 0){if(!l){d=!1;const C=e.buildClickSelection();C&&e.setSelectedLines(C),e.onLineSelectionEnd(c),a=void 0,s=void 0,l=!1,e.onDragReset();return}d=!0,k(),g(),a=void 0,s=void 0,l=!1,e.onDragReset()}},L=()=>{if(!e.enableLineSelection()||a===void 0)return;const C=window.getSelection();!C||C.isCollapsed||g()};return Wt(()=>{he(uB(b))}),se(()=>{m();const C=e.commentedLines();requestAnimationFrame(()=>{const I=p();I&&e.markCommented(I,C)})}),se(()=>{e.setSelectedLines(e.selectedLines()??null)}),se(()=>{e.enableLineSelection()&&(n.addEventListener("mousedown",S),n.addEventListener("mousemove",w),window.addEventListener("mouseup",x),document.addEventListener("selectionchange",L),he(()=>{n.removeEventListener("mousedown",S),n.removeEventListener("mousemove",w),window.removeEventListener("mouseup",x),document.removeEventListener("selectionchange",L)}))}),he(()=>{Fc(u),i!==void 0&&cancelAnimationFrame(i),o!==void 0&&cancelAnimationFrame(o),i=void 0,o=void 0,a=void 0,s=void 0,l=!1,h.reset(),c=null,d=!1}),{get wrapper(){return t},set wrapper(C){t=C},get container(){return n},set container(C){n=C},get overlay(){return r},set overlay(C){r=C},get dragStart(){return a},get dragEnd(){return s},get lastSelection(){return c},set lastSelection(C){c=C},ready:u,bridge:h,rendered:m,setRendered:f,getRoot:p,getHost:b,find:v,scheduleSelectionUpdate:g}}function j8(e,t){return tH({enableLineSelection:e.enableLineSelection,search:e.search,selectedLines:e.selectedLines,commentedLines:()=>e.commentedLines()??[],onLineSelectionEnd:e.onLineSelectionEnd,...t})}function B8(e){se(()=>{const t=e.search();if(!t)return;const n={focus:()=>{e.find.focus()},setQuery:r=>{e.find.activate(),e.find.setQuery(r,{scroll:!1})},clear:()=>{e.find.clear()},reveal:r=>(e.find.activate(),e.find.reveal(r)),expand:r=>e.expand?.(r)??!1,refresh:()=>{e.find.activate(),e.find.refresh()}};t.register(n),he(()=>t.register(null))})}function H8(e){const t=n=>{if(!e.normalize)return n;const r=e.normalize(n);return r!==void 0?r:n};return{onLineSelected:n=>{const r=t(n);e.viewer.lastSelection=r,e.onLineSelected?.(r)},onLineSelectionEnd:n=>{const r=t(n);e.viewer.lastSelection=r,e.onLineSelectionEnd?.(r),e.viewer.bridge.consume(r)&&requestAnimationFrame(()=>e.onLineNumberSelectionEnd?.(r))}}}function U8(e){se(()=>{e.viewer.rendered();const t=e.current();t&&(t.setLineAnnotations(e.annotations()),t.rerender(),requestAnimationFrame(()=>e.viewer.find.refresh({reset:!0})))})}function q8(e){fB({state:e.viewer.ready,container:e.viewer.container,getRoot:e.viewer.getRoot,isReady:e.isReady,settleFrames:e.settleFrames,onReady:e.onReady})}function Z8(e){Fc(e.viewer.ready),e.current?.cleanUp();const t=e.create();e.assign(t),e.viewer.container.innerHTML="",e.draw(t),wv(e.viewer.getHost()),e.viewer.setRendered(n=>n+1),e.onReady()}function nH(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);if(n.overflowY==="auto"||n.overflowY==="scroll")return t;t=t.parentElement}}function rH(e,t){let n,r;const i=()=>{n?.cleanUp(),n=void 0,r=void 0};return{get:()=>{if(!t()){i();return}if(typeof document>"u")return;const o=e();if(!o)return;const a=nH(o)??document;return n&&r===a||(i(),n=new A8,r=a,n.setup(a,a instanceof Document?void 0:o)),n},cleanup:i}}function iH(e,t){let n;const r=()=>{n?.release(),n=void 0};return{get:()=>{if(!t()){r();return}if(n)return n.virtualizer;const i=e();if(!i)return;const o=kB(i);if(o)return n=o,o.virtualizer},cleanup:r}}function oH(e){if(!e.dataset.line)return;const t=parseInt(e.dataset.line,10);if(!Number.isNaN(t))return t}function W8(e,t,n){const r=e.composedPath();let i=!1,o,a;for(const s of r)if(s instanceof HTMLElement&&(i=i||s.dataset.columnNumber!=null,o===void 0&&(o=t(s)),a===void 0&&n&&(a=n(s)),i&&o!==void 0&&(n==null||a!==void 0)))break;return{line:o,numberColumn:i,side:a}}function aH(e){const t=e.dataset.lineType;if(t==="change-deletion")return"deletions";if(t==="change-addition"||t==="change-additions")return"additions";if(e.dataset.code!=null)return e.hasAttribute("data-deletions")?"deletions":"additions"}function sH(e){const t=a0(e);if(t)return D8(t)}function G8(e){return(()=>{var t=KB(),n=t.firstChild,r=n.nextSibling;return ga(t,"focus",e.viewer.find.onFocus),ga(t,"pointerdown",e.viewer.find.onPointerDown,!0),or(i=>e.viewer.wrapper=i,t),P(t,y(de,{get when(){return Le(()=>!!(e.search?.showBar??!0))()&&e.viewer.find.open()},get children(){return y(GB,{get pos(){return e.viewer.find.pos},get query(){return e.viewer.find.query},get count(){return e.viewer.find.count},get index(){return e.viewer.find.index},get setInput(){return e.viewer.find.setInput},get onInput(){return e.viewer.find.setQuery},get onKeyDown(){return e.viewer.find.onInputKeyDown},get onClose(){return e.viewer.find.close},onPrev:()=>e.viewer.find.next(-1),onNext:()=>e.viewer.find.next(1)})}}),n),or(i=>e.viewer.container=i,n),or(i=>e.viewer.overlay=i,r),Ne(i=>{var o=e.mode,a=rB,s={...e.classList||{},[e.class??""]:!!e.class};return o!==i.e&&et(t,"data-mode",i.e=o),i.t=Jh(t,a,i.t),i.a=ln(t,s,i.a),i},{e:void 0,t:void 0,a:void 0}),t})()}function lH(e){let t,n;const[r,i]=ue(e,XB),o=()=>{const v=r.file.contents;return typeof v=="string"?v:Array.isArray(v)?v.join(`
1945
1945
  `):v==null?"":String(v)},a=()=>{const v=o(),g=v.split(`
1946
1946
  `).length-(v.endsWith(`
1947
1947
  `)?1:0);return Math.max(1,g)},s=j(()=>{const v=r.file.contents;return typeof v=="string"?v.length:Array.isArray(v)?v.reduce((g,k)=>g+(typeof k=="string"?k.length+1:String(k).length+1),0):v==null?0:String(v).length}),l=j(()=>s()>JB),c=rH(()=>n.wrapper,l),d=v=>W8(v,oH),u=v=>{const g=t;if(!g)return!1;if(l())return g.setSelectedLines(v),!0;const k=n.getRoot();if(!k)return!1;const S=a();if(k.querySelectorAll("[data-line]").length<S)return!1;if(!v)return g.setSelectedLines(null),!0;const w=Math.min(v.start,v.end),x=Math.max(v.start,v.end);if(w<1||x>S||!k.querySelector(`[data-line="${w}"]`)||!k.querySelector(`[data-line="${x}"]`))return g.setSelectedLines(null),!0;const L=v.endSide!=null?{start:v.start,end:v.end}:v.side!=="deletions"||k.querySelector("[data-deletions]")!=null?v:{start:v.start,end:v.end};return g.setSelectedLines(L),!0},h=v=>{n.lastSelection=v,u(v)};n=j8({enableLineSelection:()=>e.enableLineSelection===!0,search:()=>r.search,selectedLines:()=>r.selectedLines,commentedLines:()=>r.commentedLines,onLineSelectionEnd:v=>r.onLineSelectionEnd?.(v)},{lineFromMouseEvent:d,setSelectedLines:h,updateSelection:v=>{const g=n.getRoot();if(!g)return;const k=R8({root:g,lineForNode:gB,sideForNode:vB,preserveTextSelection:v});k&&(h(k.range),!(!v||!k.text)&&$8(g,k.text))},buildDragSelection:()=>{if(!(n.dragStart===void 0||n.dragEnd===void 0))return{start:Math.min(n.dragStart,n.dragEnd),end:Math.max(n.dragStart,n.dragEnd)}},buildClickSelection:()=>{if(n.dragStart!==void 0)return{start:n.dragStart,end:n.dragStart}},onDragStart:()=>{},onDragMove:()=>{},onDragReset:()=>{},markCommented:oB});const f=H8({viewer:n,onLineSelected:v=>r.onLineSelected?.(v),onLineSelectionEnd:v=>r.onLineSelectionEnd?.(v),onLineNumberSelectionEnd:v=>r.onLineNumberSelectionEnd?.(v)}),p=j(()=>({...L8("unified"),...i,...f})),b=()=>{q8({viewer:n,isReady:v=>l()?v.querySelector("[data-line]")!=null:v.querySelectorAll("[data-line]").length>=a(),onReady:()=>{u(n.lastSelection),n.find.refresh({reset:!0}),r.onRendered?.()}})};return B8({search:()=>r.search,find:n.find}),se(()=>{const v=p(),g=kv("unified"),k=l(),S=c.get();Z8({viewer:n,current:t,create:()=>k&&S?new Rj(v,S,QB,g):new y8(v,g),assign:w=>{t=w},draw:w=>{const x=o();w.render({file:typeof r.file.contents=="string"?r.file:{...r.file,contents:x},lineAnnotations:[],containerWrapper:n.container})},onReady:b})}),U8({viewer:n,current:()=>t,annotations:()=>r.annotations??[]}),he(()=>{t?.cleanUp(),t=void 0,c.cleanup()}),y(G8,{mode:"text",viewer:n,get search(){return r.search},get class(){return r.class},get classList(){return r.classList}})}function cH(e){let t,n,r,i;const[o,a]=ue(e,YB),s=I8("(max-width: 640px)"),l=v=>W8(v,Ek,aH),c=(v,g)=>{const k=t;if(!k)return;const S=xk(i.getRoot(),v);if(S===void 0){i.lastSelection=v;return}i.lastSelection=S,k.setSelectedLines(S),$8(g?.root,g?.text)};i=j8({enableLineSelection:()=>e.enableLineSelection===!0,search:()=>o.search,selectedLines:()=>o.selectedLines,commentedLines:()=>o.commentedLines,onLineSelectionEnd:v=>o.onLineSelectionEnd?.(v)},{lineFromMouseEvent:l,setSelectedLines:c,updateSelection:v=>{const g=i.getRoot();if(!g)return;const k=R8({root:g,lineForNode:Ek,sideForNode:sH,preserveTextSelection:v});if(k){if(k.text){c(k.range,{root:g,text:k.text});return}c(k.range)}},buildDragSelection:()=>{if(i.dragStart===void 0||i.dragEnd===void 0)return;const v={start:i.dragStart,end:i.dragEnd};return n&&(v.side=n),r&&n&&r!==n&&(v.endSide=r),v},buildClickSelection:()=>{if(i.dragStart===void 0)return;const v={start:i.dragStart,end:i.dragStart};return n&&(v.side=n),v},onDragStart:v=>{n=v.side,r=v.side},onDragMove:v=>{r=v.side},onDragReset:()=>{n=void 0,r=void 0},markCommented:iB});const u=iH(()=>i.container,()=>o.search?.disableVirtualization!==!0),h=j(()=>{const v=typeof o.before?.contents=="string"?o.before.contents:"",g=typeof o.after?.contents=="string"?o.after.contents:"";return Math.max(v.length,g.length)>5e5}),m={lineDiffType:"none",maxLineDiffLength:0,tokenizeMaxLineLength:1},f=H8({viewer:i,normalize:v=>xk(i.getRoot(),v),onLineSelected:v=>o.onLineSelected?.(v),onLineSelectionEnd:v=>o.onLineSelectionEnd?.(v),onLineNumberSelectionEnd:v=>o.onLineNumberSelectionEnd?.(v)}),p=j(()=>{const v={...L8(e.diffStyle),...a,...f},g=h()?{...v,...m}:v;return s()?{...g,disableLineNumbers:!0}:g}),b=()=>{q8({viewer:i,isReady:v=>v.querySelector("[data-line]")!=null,settleFrames:1,onReady:()=>{c(i.lastSelection),i.find.refresh({reset:!0}),o.onRendered?.()}})};return B8({search:()=>o.search,find:i.find,expand:v=>{const g=t;if(!g?.fileDiff)return!1;const k=eH(g.fileDiff,v);return k?(g.expandHunk(k.index,k.direction),!0):!1}}),se(()=>{const v=p(),g=h()?kv("unified"):kv(e.diffStyle),k=u.get(),S=typeof o.before?.contents=="string"?o.before.contents:"",w=typeof o.after?.contents=="string"?o.after.contents:"",x=L=>h()?mw(L):mw(L,L.length);Z8({viewer:i,current:t,create:()=>k?new Vj(v,k,bB,g):new x8(v,g),assign:L=>{t=L},draw:L=>{L.render({oldFile:{...o.before,contents:S,cacheKey:x(S)},newFile:{...o.after,contents:w,cacheKey:x(w)},lineAnnotations:[],containerWrapper:i.container})},onReady:b})}),U8({viewer:i,current:()=>t,annotations:()=>o.annotations??[]}),he(()=>{t?.cleanUp(),t=void 0,u.cleanup(),n=void 0,r=void 0}),y(G8,{mode:"diff",viewer:i,get search(){return o.search},get class(){return o.class},get classList(){return o.classList}})}function dH(e){return e.mode==="text"?y(Pk,{get media(){return e.media},fallback:()=>lH(e)}):y(Pk,{get media(){return e.media},fallback:()=>cH(e)})}rr(["pointerdown"]);function Sn(e){const t=Ct();return{provider:n=>{const r=e.init(n);if(!(e.gate??!0))return y(t.Provider,{value:r,get children(){return n.children}});const o=j(()=>{const a=r.ready;return a===void 0||(typeof a=="function"?a():a)});return y(de,{get when(){return o()},get children(){return y(t.Provider,{value:r,get children(){return n.children}})}})},use(){const n=yt(t);if(!n)throw new Error(`${e.name} context must be used within a context provider`);return n}}}const{use:Jge,provider:uH}=Sn({name:"Data",init:e=>({get store(){return e.data},get directory(){return e.directory},navigateToSession:e.onNavigateToSession,sessionHref:e.onSessionHref})}),K8=Sn({name:"FileComponent",init:e=>e.component}),fH=K8.provider,Qge=K8.use,Bp=Symbol("fallback");function Ok(e){for(const t of e)t.dispose()}function hH(e,t,n,r={}){const i=new Map;return he(()=>Ok(i.values())),()=>{const a=e()||[];return a[Uc],nt(()=>{if(!a.length)return Ok(i.values()),i.clear(),r.fallback?[Nn(u=>(i.set(Bp,{dispose:u}),r.fallback()))]:[];const s=new Array(a.length),l=i.get(Bp);if(!i.size||l){l?.dispose(),i.delete(Bp);for(let d=0;d<a.length;d++){const u=a[d],h=t(u,d);o(s,u,d,h)}return s}const c=new Set(i.keys());for(let d=0;d<a.length;d++){const u=a[d],h=t(u,d);c.delete(h);const m=i.get(h);m?(s[d]=m.mapped,m.setIndex?.(d),m.setItem(()=>u)):o(s,u,d,h)}for(const d of c)i.get(d)?.dispose(),i.delete(d);return s})};function o(a,s,l,c){Nn(d=>{const[u,h]=me(s),m={setItem:h,dispose:d};if(n.length>1){const[f,p]=me(l);m.setIndex=p,m.mapped=n(u,f)}else m.mapped=n(u);i.set(c,m),a[l]=m.mapped})}}function mH(e){const{by:t}=e;return j(hH(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function J8(e,t=!1){const n=window.matchMedia(e),[r,i]=C8(t,()=>n.matches);return Y1(n,"change",()=>i(n.matches)),r}function pH(e){return J8("(prefers-color-scheme: dark)",e)}pH.bind(void 0,!1);const gH=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function $k(e){const t={};let n;for(;n=gH.exec(e);)t[n[1]]=n[2];return t}function Pr(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=$k(e)}else typeof t=="string"&&(t=$k(t));return{...e,...t}}function kt(...e){return Jj(e)}function vH(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function xv(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bH(e){return typeof e=="number"}function al(e){return Object.prototype.toString.call(e)==="[object String]"}function Cd(e){return typeof e=="function"}function Or(e){return t=>`${e()}-${t}`}function yH(){const e=new Map,t=(i,o,a,s)=>{const l=s?.once?(...c)=>{e.delete(a),a(...c)}:a;e.set(a,{type:o,eventTarget:i,fn:l,options:s}),i.addEventListener(o,a,s)},n=(i,o,a,s)=>{const l=e.get(a)?.fn||a;i.removeEventListener(o,l,s),e.delete(a)},r=()=>{e.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})};return he(()=>{r()}),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function zn(e,t){return e?e===t||e.contains(t):!1}function Ac(e,t=!1){const{activeElement:n}=Sr(e);if(!n?.nodeName)return null;if(Q8(n)&&n.contentDocument)return Ac(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const i=Sr(n).getElementById(r);if(i)return i}}return n}function tb(e){return Sr(e).defaultView||window}function Sr(e){return e?e.ownerDocument||e:document}function Q8(e){return e.tagName==="IFRAME"}var nb=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(nb||{});function X8(e){return typeof window>"u"||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function rb(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Ed(){return rb(/^Mac/i)}function wH(){return rb(/^iPhone/i)}function kH(){return rb(/^iPad/i)||Ed()&&navigator.maxTouchPoints>1}function xH(){return wH()||kH()}function SH(){return Ed()||xH()}function Y8(){return X8(/AppleWebKit/i)&&!_H()}function _H(){return X8(/Chrome/i)}function Ve(e,t){return t&&(Cd(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function gt(e){return t=>{for(const n of e)Ve(t,n)}}function AH(e){return Ed()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function pn(e){if(e)if(CH())e.focus({preventScroll:!0});else{const t=EH(e);e.focus(),IH(t)}}var Ru=null;function CH(){if(Ru==null){Ru=!1;try{document.createElement("div").focus({get preventScroll(){return Ru=!0,!0}})}catch{}}return Ru}function EH(e){let t=e.parentNode;const n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function IH(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var e9=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],TH=[...e9,'[tabindex]:not([tabindex="-1"]):not([disabled])'],ib=`${e9.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`,LH=TH.join(':not([hidden]):not([tabindex="-1"]),');function t9(e,t){const r=Array.from(e.querySelectorAll(ib)).filter(Rk);return t&&Rk(e)&&r.unshift(e),r.forEach((i,o)=>{if(Q8(i)&&i.contentDocument){const a=i.contentDocument.body,s=t9(a,!1);r.splice(o,1,...s)}}),r}function Rk(e){return n9(e)&&!DH(e)}function n9(e){return e.matches(ib)&&ob(e)}function DH(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function ob(e,t){return e.nodeName!=="#comment"&&MH(e)&&PH(e,t)&&(!e.parentElement||ob(e.parentElement,e))}function MH(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;const{getComputedStyle:i}=e.ownerDocument.defaultView,{display:o,visibility:a}=i(e);r=o!=="none"&&a!=="hidden"&&a!=="collapse"}return r}function PH(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function r9(e,t,n){const r=t?.tabbable?LH:ib,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){return t?.from?.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&ob(o)&&(!t?.accept||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}function zk(e){let t=e;for(;t&&!OH(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function OH(e){const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function $H(){}function i9(e){return[e.clientX,e.clientY]}function ab(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let a=o,s=0,l=a-1;s<a;l=s++){const[c,d]=t[s],[u,h]=t[l],[,m]=t[l===0?a-1:l-1]||[0,0],f=(d-h)*(n-c)-(c-u)*(r-d);if(h<d){if(r>=h&&r<d){if(f===0)return!0;f>0&&(r===h?r>m&&(i=!i):i=!i)}}else if(d<h){if(r>d&&r<=h){if(f===0)return!0;f<0&&(r===h?r<m&&(i=!i):i=!i)}}else if(r===d&&(n>=u&&n<=c||n>=c&&n<=u))return!0}return i}function Be(e,t){return ee(e,t)}var fc=new Map,Nk=new Set;function Fk(){if(typeof window>"u")return;const e=n=>{if(!n.target)return;let r=fc.get(n.target);r||(r=new Set,fc.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=fc.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),fc.delete(n.target)),fc.size===0)){for(const i of Nk)i();Nk.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Fk():document.addEventListener("DOMContentLoaded",Fk));function Sv(e,t){const n=Vk(e,t,"left"),r=Vk(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight;let a=e.scrollLeft,s=e.scrollTop;const l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+i>l&&(a+=n+i-l),r<=s?s=r:r+o>c&&(s+=r+o-c),e.scrollLeft=a,e.scrollTop=s}function Vk(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function RH(e,t){if(document.contains(e)){const n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let i=zk(e);for(;e&&i&&e!==n&&i!==n;)Sv(i,e),e=i,i=zk(e)}else{const{left:i,top:o}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});const{left:a,top:s}=e.getBoundingClientRect();(Math.abs(i-a)>1||Math.abs(o-s)>1)&&e.scrollIntoView?.({block:"nearest"})}}}var sb={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"},ed="data-kb-top-layer",o9,_v=!1,Ho=[];function td(e){return Ho.findIndex(t=>t.node===e)}function zH(e){return Ho[td(e)]}function NH(e){return Ho[Ho.length-1].node===e}function a9(){return Ho.filter(e=>e.isPointerBlocking)}function FH(){return[...a9()].slice(-1)[0]}function lb(){return a9().length>0}function s9(e){const t=td(FH()?.node);return td(e)<t}function VH(e){Ho.push(e)}function jH(e){const t=td(e);t<0||Ho.splice(t,1)}function BH(){for(const{node:e}of Ho)e.style.pointerEvents=s9(e)?"none":"auto"}function HH(e){if(lb()&&!_v){const t=Sr(e);o9=document.body.style.pointerEvents,t.body.style.pointerEvents="none",_v=!0}}function UH(e){if(lb())return;const t=Sr(e);t.body.style.pointerEvents=o9,t.body.style.length===0&&t.body.removeAttribute("style"),_v=!1}var zr={layers:Ho,isTopMostLayer:NH,hasPointerBlockingLayer:lb,isBelowPointerBlockingLayer:s9,addLayer:VH,removeLayer:jH,indexOf:td,find:zH,assignPointerEventToLayers:BH,disableBodyPointerEvents:HH,restoreBodyPointerEvents:UH},Hp="focusScope.autoFocusOnMount",Up="focusScope.autoFocusOnUnmount",jk={bubbles:!1,cancelable:!0},Bk={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=xv(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=xv(this.stack,e),this.active()?.resume()}};function cb(e,t){const[n,r]=me(!1),i={pause(){r(!0)},resume(){r(!1)}};let o=null;const a=f=>e.onMountAutoFocus?.(f),s=f=>e.onUnmountAutoFocus?.(f),l=()=>Sr(t()),c=()=>{const f=l().createElement("span");return f.setAttribute("data-focus-trap",""),f.tabIndex=0,Object.assign(f.style,sb),f},d=()=>{const f=t();return f?t9(f,!0).filter(p=>!p.hasAttribute("data-focus-trap")):[]},u=()=>{const f=d();return f.length>0?f[0]:null},h=()=>{const f=d();return f.length>0?f[f.length-1]:null},m=()=>{const f=t();if(!f)return!1;const p=Ac(f);return!p||zn(f,p)?!1:n9(p)};se(()=>{const f=t();if(!f)return;Bk.add(i);const p=Ac(f);if(!zn(f,p)){const v=new CustomEvent(Hp,jk);f.addEventListener(Hp,a),f.dispatchEvent(v),v.defaultPrevented||setTimeout(()=>{pn(u()),Ac(f)===p&&pn(f)},0)}he(()=>{f.removeEventListener(Hp,a),setTimeout(()=>{const v=new CustomEvent(Up,jk);m()&&v.preventDefault(),f.addEventListener(Up,s),f.dispatchEvent(v),v.defaultPrevented||pn(p??l().body),f.removeEventListener(Up,s),Bk.remove(i)},0)})}),se(()=>{const f=t();if(!f||!ce(e.trapFocus)||n())return;const p=v=>{const g=v.target;g?.closest(`[${ed}]`)||(zn(f,g)?o=g:pn(o))},b=v=>{const k=v.relatedTarget??Ac(f);k?.closest(`[${ed}]`)||zn(f,k)||pn(o)};l().addEventListener("focusin",p),l().addEventListener("focusout",b),he(()=>{l().removeEventListener("focusin",p),l().removeEventListener("focusout",b)})}),se(()=>{const f=t();if(!f||!ce(e.trapFocus)||n())return;const p=c();f.insertAdjacentElement("afterbegin",p);const b=c();f.insertAdjacentElement("beforeend",b);function v(k){const S=u(),w=h();k.relatedTarget===S?pn(w):pn(S)}p.addEventListener("focusin",v),b.addEventListener("focusin",v);const g=new MutationObserver(k=>{for(const S of k)S.previousSibling===b&&(b.remove(),f.insertAdjacentElement("beforeend",b)),S.nextSibling===p&&(p.remove(),f.insertAdjacentElement("afterbegin",p))});g.observe(f,{childList:!0,subtree:!1}),he(()=>{p.removeEventListener("focusin",v),b.removeEventListener("focusin",v),p.remove(),b.remove(),g.disconnect()})})}var qH="data-live-announcer";function db(e){se(()=>{ce(e.isDisabled)||he(ZH(ce(e.targets),ce(e.root)))})}var hc=new WeakMap,ei=[];function ZH(e,t=document.body){const n=new Set(e),r=new Set,i=l=>{for(const h of l.querySelectorAll(`[${qH}], [${ed}]`))n.add(h);const c=h=>{if(n.has(h)||h.parentElement&&r.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const m of n)if(h.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),u=c(l);if(u===NodeFilter.FILTER_ACCEPT&&o(l),u!==NodeFilter.FILTER_REJECT){let h=d.nextNode();for(;h!=null;)o(h),h=d.nextNode()}},o=l=>{const c=hc.get(l)??0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),hc.set(l,c+1))};ei.length&&ei[ei.length-1].disconnect(),i(t);const a=new MutationObserver(l=>{for(const c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(c.target))){for(const d of c.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(const d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});a.observe(t,{childList:!0,subtree:!0});const s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ei.push(s),()=>{a.disconnect();for(const l of r){const c=hc.get(l);if(c==null)return;c===1?(l.removeAttribute("aria-hidden"),hc.delete(l)):hc.set(l,c-1)}s===ei[ei.length-1]?(ei.pop(),ei.length&&ei[ei.length-1].observe()):ei.splice(ei.indexOf(s),1)}}var Hk="interactOutside.pointerDownOutside",Uk="interactOutside.focusOutside";function WH(e,t){let n,r=$H;const i=()=>Sr(t()),o=u=>e.onPointerDownOutside?.(u),a=u=>e.onFocusOutside?.(u),s=u=>e.onInteractOutside?.(u),l=u=>{const h=u.target;return!(h instanceof Element)||h.closest(`[${ed}]`)||!zn(i(),h)||zn(t(),h)?!1:!e.shouldExcludeElement?.(h)},c=u=>{function h(){const m=t(),f=u.target;if(!m||!f||!l(u))return;const p=gt([o,s]);f.addEventListener(Hk,p,{once:!0});const b=new CustomEvent(Hk,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:u.button===2||AH(u)&&u.button===0}});f.dispatchEvent(b)}u.pointerType==="touch"?(i().removeEventListener("click",h),r=h,i().addEventListener("click",h,{once:!0})):h()},d=u=>{const h=t(),m=u.target;if(!h||!m||!l(u))return;const f=gt([a,s]);m.addEventListener(Uk,f,{once:!0});const p=new CustomEvent(Uk,{bubbles:!1,cancelable:!0,detail:{originalEvent:u,isContextMenu:!1}});m.dispatchEvent(p)};se(()=>{ce(e.isDisabled)||(n=window.setTimeout(()=>{i().addEventListener("pointerdown",c,!0)},0),i().addEventListener("focusin",d,!0),he(()=>{window.clearTimeout(n),i().removeEventListener("click",r),i().removeEventListener("pointerdown",c,!0),i().removeEventListener("focusin",d,!0)}))})}function GH(e){const t=n=>{n.key===nb.Escape&&e.onEscapeKeyDown?.(n)};se(()=>{if(ce(e.isDisabled))return;const n=e.ownerDocument?.()??Sr();n.addEventListener("keydown",t),he(()=>{n.removeEventListener("keydown",t)})})}function We(e){const[t,n]=ue(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return y(E$,ee(n,{get component(){return t.as}}))}var l9=Ct();function KH(){return yt(l9)}function Id(e){let t;const n=KH(),[r,i]=ue(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),o=new Set([]),a=u=>{o.add(u);const h=n?.registerNestedLayer(u);return()=>{o.delete(u),h?.()}};WH({shouldExcludeElement:u=>t?r.excludedElements?.some(h=>zn(h(),u))||[...o].some(h=>zn(h,u)):!1,onPointerDownOutside:u=>{!t||zr.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!zr.isTopMostLayer(t)||(r.onPointerDownOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.())},onFocusOutside:u=>{r.onFocusOutside?.(u),r.onInteractOutside?.(u),u.defaultPrevented||r.onDismiss?.()}},()=>t),GH({ownerDocument:()=>Sr(t),onEscapeKeyDown:u=>{!t||!zr.isTopMostLayer(t)||(r.onEscapeKeyDown?.(u),!u.defaultPrevented&&r.onDismiss&&(u.preventDefault(),r.onDismiss()))}}),Wt(()=>{if(!t)return;zr.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});const u=n?.registerNestedLayer(t);zr.assignPointerEventToLayers(),zr.disableBodyPointerEvents(t),he(()=>{t&&(zr.removeLayer(t),u?.(),zr.assignPointerEventToLayers(),zr.restoreBodyPointerEvents(t))})}),se(Ht([()=>t,()=>r.disableOutsidePointerEvents],([u,h])=>{if(!u)return;const m=zr.find(u);m&&m.isPointerBlocking!==h&&(m.isPointerBlocking=h,zr.assignPointerEventToLayers()),h&&zr.disableBodyPointerEvents(u),he(()=>{zr.restoreBodyPointerEvents(u)})},{defer:!0}));const d={registerNestedLayer:a};return y(l9.Provider,{value:d,get children(){return y(We,ee({as:"div",ref(u){var h=kt(m=>t=m,r.ref);typeof h=="function"&&h(u)}},i))}})}function Gl(e){const[t,n]=me(e.defaultValue?.()),r=j(()=>e.value?.()!==void 0),i=j(()=>r()?e.value?.():t());return[i,a=>{nt(()=>{const s=Qj(a,i());return Object.is(s,i())||(r()||n(s),e.onChange?.(s)),s})}]}function c9(e){const[t,n]=Gl(e);return[()=>t()??!1,n]}function JH(e){const[t,n]=Gl(e);return[()=>t()??[],n]}function Ma(e={}){const[t,n]=c9({value:()=>ce(e.open),defaultValue:()=>!!ce(e.defaultOpen),onChange:a=>e.onOpenChange?.(a)}),r=()=>{n(!0)},i=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:i,toggle:()=>{t()?i():r()}}}function Td(e,t){const[n,r]=me(qk(t?.()));return se(()=>{r(e()?.tagName.toLowerCase()||qk(t?.()))}),n}function qk(e){return al(e)?e:void 0}var QH=Object.defineProperty,Ar=(e,t)=>{for(var n in t)QH(e,n,{get:t[n],enumerable:!0})},XH={};Ar(XH,{Button:()=>ub,Root:()=>Pa});var YH=["button","color","file","image","reset","submit"];function eU(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?YH.indexOf(e.type)!==-1:!1}function Pa(e){let t;const n=Be({type:"button"},e),[r,i]=ue(n,["ref","type","disabled"]),o=Td(()=>t,()=>"button"),a=j(()=>{const c=o();return c==null?!1:eU({tagName:c,type:r.type})}),s=j(()=>o()==="input"),l=j(()=>o()==="a"&&t?.getAttribute("href")!=null);return y(We,ee({as:"button",ref(c){var d=kt(u=>t=u,r.ref);typeof d=="function"&&d(c)},get type(){return Le(()=>!!(a()||s()))()?r.type:void 0},get role(){return!a()&&!l()?"button":void 0},get tabIndex(){return!a()&&!l()&&!r.disabled?0:void 0},get disabled(){return Le(()=>!!(a()||s()))()?r.disabled:void 0},get"aria-disabled"(){return!a()&&!s()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},i))}var ub=Pa;function In(e){return t=>(e(t),()=>e(void 0))}var Zt=e=>typeof e=="function"?e():e,Av=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},zu=new Map,tU=e=>{se(()=>{const t=Zt(e.style)??{},n=Zt(e.properties)??[],r={};for(const o in t)r[o]=e.element.style[o];const i=zu.get(e.key);i?i.activeCount++:zu.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(o=>o.key)}),Object.assign(e.element.style,e.style);for(const o of n)e.element.style.setProperty(o.key,o.value);he(()=>{const o=zu.get(e.key);if(o){if(o.activeCount!==1){o.activeCount--;return}zu.delete(e.key);for(const[a,s]of Object.entries(o.originalStyles))e.element.style[a]=s;for(const a of o.properties)e.element.style.removeProperty(a);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},Zk=tU,nU=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},rU=(e,t)=>{const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},iU=(e,t,n)=>{const r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1;let i=e,o=0,a=0,s=!1;do{const[l,c,d]=nU(i,t),u=d-l-r*c;(c!==0||u!==0)&&rU(i,t)&&(o+=u,a+=c),i===(n??document.documentElement)?s=!0:i=i._$host??i.parentElement}while(i&&!s);return[o,a]},[Wk,Gk]=me([]),oU=e=>Wk().indexOf(e)===Wk().length-1,aU=e=>{const t=ee({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=cn();let r=[0,0],i=null,o=null;se(()=>{Zt(t.enabled)&&(Gk(c=>[...c,n]),he(()=>{Gk(c=>c.filter(d=>d!==n))}))}),se(()=>{if(!Zt(t.enabled)||!Zt(t.hideScrollbar))return;const{body:c}=document,d=window.innerWidth-c.offsetWidth;if(Zt(t.preventScrollbarShift)){const u={overflow:"hidden"},h=[];d>0&&(Zt(t.preventScrollbarShiftMode)==="padding"?u.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${d}px)`:u.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${d}px)`,h.push({key:"--scrollbar-width",value:`${d}px`}));const m=window.scrollY,f=window.scrollX;Zk({key:"prevent-scroll",element:c,style:u,properties:h,cleanup:()=>{Zt(t.restoreScrollPosition)&&d>0&&window.scrollTo(f,m)}})}else Zk({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),se(()=>{!oU(n)||!Zt(t.enabled)||(document.addEventListener("wheel",s,{passive:!1}),document.addEventListener("touchstart",a,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),he(()=>{document.removeEventListener("wheel",s),document.removeEventListener("touchstart",a),document.removeEventListener("touchmove",l)}))});const a=c=>{r=Kk(c),i=null,o=null},s=c=>{const d=c.target,u=Zt(t.element),h=sU(c),m=Math.abs(h[0])>Math.abs(h[1])?"x":"y",f=m==="x"?h[0]:h[1],p=Jk(d,m,f,u);let b;u&&Av(u,d)?b=!p:b=!0,b&&c.cancelable&&c.preventDefault()},l=c=>{const d=Zt(t.element),u=c.target;let h;if(c.touches.length===2)h=!Zt(t.allowPinchZoom);else{if(i==null||o===null){const m=Kk(c).map((p,b)=>r[b]-p),f=Math.abs(m[0])>Math.abs(m[1])?"x":"y";i=f,o=f==="x"?m[0]:m[1]}if(u.type==="range")h=!1;else{const m=Jk(u,i,o,d);d&&Av(d,u)?h=!m:h=!0}}h&&c.cancelable&&c.preventDefault()}},sU=e=>[e.deltaX,e.deltaY],Kk=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],Jk=(e,t,n,r)=>{const i=r!==null&&Av(r,e),[o,a]=iU(e,t,i?r:void 0);return!(n>0&&Math.abs(o)<=1||n<0&&Math.abs(a)<1)},lU=aU,fb=lU,cU=e=>{const t=j(()=>{const a=Zt(e.element);if(a)return getComputedStyle(a)}),n=()=>t()?.animationName??"none",[r,i]=me(Zt(e.show)?"present":"hidden");let o="none";return se(a=>{const s=Zt(e.show);return nt(()=>{if(a===s)return s;const l=o,c=n();s?i("present"):c==="none"||t()?.display==="none"?i("hidden"):i(a===!0&&l!==c?"hiding":"hidden")}),s}),se(()=>{const a=Zt(e.element);if(!a)return;const s=c=>{c.target===a&&(o=n())},l=c=>{const u=n().includes(c.animationName);c.target===a&&u&&r()==="hiding"&&i("hidden")};a.addEventListener("animationstart",s),a.addEventListener("animationcancel",l),a.addEventListener("animationend",l),he(()=>{a.removeEventListener("animationstart",s),a.removeEventListener("animationcancel",l),a.removeEventListener("animationend",l)})}),{present:()=>r()==="present"||r()==="hiding",state:r,setState:i}},dU=cU,Uo=dU,uU={};Ar(uU,{CloseButton:()=>u9,Content:()=>f9,Description:()=>h9,Dialog:()=>fa,Overlay:()=>m9,Portal:()=>p9,Root:()=>g9,Title:()=>v9,Trigger:()=>b9,useDialogContext:()=>Oa});var d9=Ct();function Oa(){const e=yt(d9);if(e===void 0)throw new Error("[kobalte]: `useDialogContext` must be used within a `Dialog` component");return e}function u9(e){const t=Oa(),[n,r]=ue(e,["aria-label","onClick"]);return y(Pa,ee({get"aria-label"(){return n["aria-label"]||t.translations().dismiss},onClick:o=>{Ve(o,n.onClick),t.close()}},r))}function f9(e){let t;const n=Oa(),r=Be({id:n.generateId("content")},e),[i,o]=ue(r,["ref","onOpenAutoFocus","onCloseAutoFocus","onPointerDownOutside","onFocusOutside","onInteractOutside"]);let a=!1,s=!1;const l=h=>{i.onPointerDownOutside?.(h),n.modal()&&h.detail.isContextMenu&&h.preventDefault()},c=h=>{i.onFocusOutside?.(h),n.modal()&&h.preventDefault()},d=h=>{i.onInteractOutside?.(h),!n.modal()&&(h.defaultPrevented||(a=!0,h.detail.originalEvent.type==="pointerdown"&&(s=!0)),zn(n.triggerRef(),h.target)&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&s&&h.preventDefault())},u=h=>{i.onCloseAutoFocus?.(h),n.modal()?(h.preventDefault(),pn(n.triggerRef())):(h.defaultPrevented||(a||pn(n.triggerRef()),h.preventDefault()),a=!1,s=!1)};return db({isDisabled:()=>!(n.isOpen()&&n.modal()),targets:()=>t?[t]:[]}),fb({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),cb({trapFocus:()=>n.isOpen()&&n.modal(),onMountAutoFocus:i.onOpenAutoFocus,onUnmountAutoFocus:u},()=>t),se(()=>he(n.registerContentId(o.id))),y(de,{get when(){return n.contentPresent()},get children(){return y(Id,ee({ref(h){var m=kt(f=>{n.setContentRef(f),t=f},i.ref);typeof m=="function"&&m(h)},role:"dialog",tabIndex:-1,get disableOutsidePointerEvents(){return Le(()=>!!n.modal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},get"data-expanded"(){return n.isOpen()?"":void 0},get"data-closed"(){return n.isOpen()?void 0:""},onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,get onDismiss(){return n.close}},o))}})}function h9(e){const t=Oa(),n=Be({id:t.generateId("description")},e),[r,i]=ue(n,["id"]);return se(()=>he(t.registerDescriptionId(r.id))),y(We,ee({as:"p",get id(){return r.id}},i))}function m9(e){const t=Oa(),[n,r]=ue(e,["ref","style","onPointerDown"]),i=o=>{Ve(o,n.onPointerDown),o.target===o.currentTarget&&o.preventDefault()};return y(de,{get when(){return t.overlayPresent()},get children(){return y(We,ee({as:"div",ref(o){var a=kt(t.setOverlayRef,n.ref);typeof a=="function"&&a(o)},get style(){return Pr({"pointer-events":"auto"},n.style)},get"data-expanded"(){return t.isOpen()?"":void 0},get"data-closed"(){return t.isOpen()?void 0:""},onPointerDown:i},r))}})}function p9(e){const t=Oa();return y(de,{get when(){return t.contentPresent()||t.overlayPresent()},get children(){return y(Da,e)}})}var Qk={dismiss:"Dismiss"};function g9(e){const t=`dialog-${cn()}`,n=Be({id:t,modal:!0,translations:Qk},e),[r,i]=me(),[o,a]=me(),[s,l]=me(),[c,d]=me(),[u,h]=me(),[m,f]=me(),p=Ma({open:()=>n.open,defaultOpen:()=>n.defaultOpen,onOpenChange:S=>n.onOpenChange?.(S)}),b=()=>n.forceMount||p.isOpen(),{present:v}=Uo({show:b,element:()=>c()??null}),{present:g}=Uo({show:b,element:()=>u()??null}),k={translations:()=>n.translations??Qk,isOpen:p.isOpen,modal:()=>n.modal??!0,preventScroll:()=>n.preventScroll??k.modal(),contentId:r,titleId:o,descriptionId:s,triggerRef:m,overlayRef:c,setOverlayRef:d,contentRef:u,setContentRef:h,overlayPresent:v,contentPresent:g,close:p.close,toggle:p.toggle,setTriggerRef:f,generateId:Or(()=>n.id),registerContentId:In(i),registerTitleId:In(a),registerDescriptionId:In(l)};return y(d9.Provider,{value:k,get children(){return n.children}})}function v9(e){const t=Oa(),n=Be({id:t.generateId("title")},e),[r,i]=ue(n,["id"]);return se(()=>he(t.registerTitleId(r.id))),y(We,ee({as:"h2",get id(){return r.id}},i))}function b9(e){const t=Oa(),[n,r]=ue(e,["ref","onClick"]);return y(Pa,ee({ref(o){var a=kt(t.setTriggerRef,n.ref);typeof a=="function"&&a(o)},"aria-haspopup":"dialog",get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return Le(()=>!!t.isOpen())()?t.contentId():void 0},get"data-expanded"(){return t.isOpen()?"":void 0},get"data-closed"(){return t.isOpen()?void 0:""},onClick:o=>{Ve(o,n.onClick),t.toggle()}},r))}var fa=Object.assign(g9,{CloseButton:u9,Content:f9,Description:h9,Overlay:m9,Portal:p9,Title:v9,Trigger:b9}),fU=Q("<div data-component=dialog-stack>");const y9=Ct();function hU(){const[e,t]=me(),n={current:void 0},r={value:!1};he(()=>{n.current!==void 0&&(clearTimeout(n.current),n.current=void 0)});const i=()=>{const a=e();if(!a||r.value)return;r.value=!0,a.onClose?.(),a.setClosing(!0);const s=a.id;n.current!==void 0&&(clearTimeout(n.current),n.current=void 0),n.current=setTimeout(()=>{n.current=void 0,a.dispose(),e()?.id===s&&t(void 0),r.value=!1},100)};return se(()=>{if(!e())return;const a=s=>{s.key==="Escape"&&(i(),s.preventDefault(),s.stopPropagation())};window.addEventListener("keydown",a,!0),he(()=>window.removeEventListener("keydown",a,!0))}),{get active(){return e()},close:i,show:(a,s,l)=>{const c=e();c&&(c.dispose(),t(void 0)),n.current!==void 0&&(clearTimeout(n.current),n.current=void 0),r.value=!1;const d=Math.random().toString(36).slice(2);let u,h;const m=Mo(s,()=>Nn(f=>{u=f;const[p,b]=me(!1);return h=b,y(fa,{modal:!0,get open(){return!p()},onOpenChange:v=>{v||i()},get children(){return y(fa.Portal,{get children(){return[y(fa.Overlay,{"data-component":"dialog-overlay",onClick:i}),Le(()=>a())]}})}})}));!u||!h||t({id:d,node:m,dispose:u,owner:s,onClose:l,setClosing:h})}}}function mU(e){const t=hU();return y(y9.Provider,{value:t,get children(){return[Le(()=>e.children),(()=>{var n=fU();return P(n,()=>t.active?.node),n})()]}})}function Ui(){const e=yt(y9),t=fo();if(!t)throw new Error("useDialog must be used within a DialogProvider");if(!e)throw new Error("useDialog must be used within a DialogProvider");return{get active(){return e.active},show(n,r){const i=e.active?.owner??t;e.show(n,i,r)},close(){e.close()}}}function hb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Es=hb();function w9(e){Es=e}var Xa={exec:()=>null};function Tt(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(wr.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,t)};return r}var pU=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),wr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},gU=/^(?:[ \t]*(?:\n|$))+/,vU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,bU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ld=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,mb=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,k9=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,x9=Tt(k9).replace(/bull/g,mb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),wU=Tt(k9).replace(/bull/g,mb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),pb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kU=/^[^\n]+/,gb=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,xU=Tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),SU=Tt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,mb).getRegex(),l0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_U=Tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vb).replace("tag",l0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S9=Tt(pb).replace("hr",Ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",l0).getRegex(),AU=Tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",S9).getRegex(),bb={blockquote:AU,code:vU,def:xU,fences:bU,heading:yU,hr:Ld,html:_U,lheading:x9,list:SU,newline:gU,paragraph:S9,table:Xa,text:kU},Xk=Tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",l0).getRegex(),CU={...bb,lheading:wU,table:Xk,paragraph:Tt(pb).replace("hr",Ld).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xk).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",l0).getRegex()},EU={...bb,html:Tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tt(pb).replace("hr",Ld).replace("heading",` *#{1,6} *[^
@@ -2265,7 +2265,7 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
2265
2265
  please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}z6.hasOwnProperty(n[0])&&!tn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=z6[n[0]]+n.slice(1));var o=WZ.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var a;if(tn[this.mode][n]){this.settings.strict&&this.mode==="math"&&Mv.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var s=tn[this.mode][n].group,l=Lr.range(t),c;if(Fq.hasOwnProperty(s)){var d=s;c={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};a=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(P9(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),a={type:"textord",mode:"text",loc:Lr.range(t),text:n};else return null;if(this.consume(),o)for(var u=0;u<o[0].length;u++){var h=o[0][u];if(!og[h])throw new Ce("Unknown accent ' "+h+"'",t);var m=og[h][this.mode]||og[h].text;if(!m)throw new Ce("Accent "+h+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:Lr.range(t),label:m,isStretchy:!1,isShifty:!0,base:a}}return a}}g0.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Vb=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new g0(t,n);delete r.gullet.macros.current["\\df@tag"];var i=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Ce("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new Zr("\\df@tag")])}]}return i},AS=function(t,n,r){n.textContent="";var i=jb(t,r).toNode();n.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),AS=function(){throw new Ce("KaTeX doesn't work in quirks mode.")});var XZ=function(t,n){var r=jb(t,n).toMarkup();return r},YZ=function(t,n){var r=new xb(n);return Vb(t,r)},CS=function(t,n,r){if(r.throwOnError||!(t instanceof Ce))throw t;var i=oe.makeSpan(["katex-error"],[new gi(n)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+r.errorColor),i},jb=function(t,n){var r=new xb(n);try{var i=Vb(t,r);return lZ(i,t,r)}catch(o){return CS(o,t,r)}},eW=function(t,n){var r=new xb(n);try{var i=Vb(t,r);return cZ(i,t,r)}catch(o){return CS(o,t,r)}},tW="0.16.27",nW={Span:Md,Anchor:Ab,SymbolNode:gi,SvgNode:qo,PathNode:Sa,LineNode:Dv},Nv={version:tW,render:AS,renderToString:XZ,ParseError:Ce,SETTINGS_SCHEMA:_f,__parse:YZ,__renderToDomTree:jb,__renderToHTMLTree:eW,__setFontMetrics:Dq,__defineSymbol:_,__defineFunction:$e,__defineMacro:z,__domTree:nW};const rW=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,iW=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1/,oW=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function aW(e={}){return{extensions:[sW(e,N6(e,!1)),lW(e,N6(e,!0))]}}function N6(e,t){return n=>Nv.renderToString(n.text,{...e,displayMode:n.displayMode})+(t?`
2266
2266
  `:"")}function sW(e,t){const n=e&&e.nonStandard,r=n?iW:rW;return{name:"inlineKatex",level:"inline",start(i){let o,a=i;for(;a;){if(o=a.indexOf("$"),o===-1)return;if((n?o>-1:o===0||a.charAt(o-1)===" ")&&a.substring(o).match(r))return o;a=a.substring(o+1).replace(/^\$+/,"")}},tokenizer(i,o){const a=i.match(r);if(a)return{type:"inlineKatex",raw:a[0],text:a[2].trim(),displayMode:a[1].length===2}},renderer:t}}function lW(e,t){return{name:"blockKatex",level:"block",tokenizer(n,r){const i=n.match(oW);if(i)return{type:"blockKatex",raw:i[0],text:i[2].trim(),displayMode:i[1].length===2}},renderer:t}}function cW(e={}){const{highlight:t,container:n}=e;return{async:!0,async walkTokens(r){var i;if(r.type!=="code"||typeof t!="function")return;const[o="text",...a]=((i=r.lang)==null?void 0:i.split(" "))??[],{text:s}=r,l=await t(s,o,a),c=n?n.replace("%l",String(o).toUpperCase()).replace("%s",l).replace("%t",s):l;Object.assign(r,{type:"html",block:!0,text:`${c}
2267
2267
  `})}}}var Fv=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,uW=Object.getOwnPropertyNames,fW=Object.prototype.hasOwnProperty,Bb=(e,t)=>{let n={};for(var r in e)Fv(n,r,{get:e[r],enumerable:!0});return Fv(n,Symbol.toStringTag,{value:"Module"}),n},hW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=uW(t),o=0,a=i.length,s;o<a;o++)s=i[o],!fW.call(e,s)&&s!==n&&Fv(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(r=dW(t,s))||r.enumerable});return e},ES=(e,t,n)=>(hW(e,t,"default"),n);const v0=[{id:"abap",name:"ABAP",import:(()=>A(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>A(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>A(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>A(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([101,102,103,104])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>A(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([105,101,102,103,104,106])))},{id:"apache",name:"Apache Conf",import:(()=>A(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>A(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>A(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([107,102,103,104,108,109,110])))},{id:"applescript",name:"AppleScript",import:(()=>A(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>A(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>A(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>A(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>A(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([111,110,103,112,104,113,114])))},{id:"awk",name:"AWK",import:(()=>A(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>A(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>A(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>A(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>A(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>A(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>A(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>A(()=>import("./bird2-D-8n_ahI.js"),[]))},{id:"blade",name:"Blade",import:(()=>A(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([115,116,102,103,104,108,109,117,110])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>A(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([118,119])))},{id:"c",name:"C",import:(()=>A(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>A(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>A(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>A(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([120,121])))},{id:"clarity",name:"Clarity",import:(()=>A(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>A(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>A(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>A(()=>import("./cobol-CELfDnG_.js"),__vite__mapDeps([122,102,103,104,109])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>A(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>A(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>A(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([123,103])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>A(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>A(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>A(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([124,125,126,127,117])))},{id:"crystal",name:"Crystal",import:(()=>A(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([128,102,103,104,117,127,129])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>A(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>A(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>A(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>A(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>A(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>A(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>A(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>A(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>A(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>A(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>A(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>A(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>A(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>A(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([130,112,102,103,104,116])))},{id:"elixir",name:"Elixir",import:(()=>A(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([131,102,103,104])))},{id:"elm",name:"Elm",import:(()=>A(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([132,126,127])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>A(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>A(()=>import("./erb-B12qg9BL.js"),__vite__mapDeps([133,102,103,104,134,135,108,109,117,136,112,137,114,124,125,126,127,129,138,139])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>A(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([140,141])))},{id:"fennel",name:"Fennel",import:(()=>A(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>A(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>A(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>A(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([142,143])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>A(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>A(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([144,141])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>A(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([145,146,147])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>A(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>A(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>A(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>A(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>A(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([148,149])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>A(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([150,129])))},{id:"gleam",name:"Gleam",import:(()=>A(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>A(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([151,103,112,104,102])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>A(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([152,112,104,103,102])))},{id:"glsl",name:"GLSL",import:(()=>A(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([126,127])))},{id:"gn",name:"GN",import:(()=>A(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>A(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>A(()=>import("./go-CxLEBnE3.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>A(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([136,103,112,137,114])))},{id:"groovy",name:"Groovy",import:(()=>A(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>A(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([153,102,103,104,117])))},{id:"haml",name:"Ruby Haml",import:(()=>A(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([135,103,104])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>A(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([154,102,103,104,139])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>A(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>A(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>A(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>A(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>A(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>A(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([102,103,104])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>A(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([116,102,103,104])))},{id:"http",name:"HTTP",import:(()=>A(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([155,129,110,108,109,136,103,112,137,114])))},{id:"hurl",name:"Hurl",import:(()=>A(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([156,136,103,112,137,114,108,109,157])))},{id:"hxml",name:"HXML",import:(()=>A(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([158,159])))},{id:"hy",name:"Hy",import:(()=>A(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>A(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>A(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>A(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>A(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>A(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([160,102,103,104])))},{id:"jison",name:"Jison",import:(()=>A(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([161,103])))},{id:"json",name:"JSON",import:(()=>A(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>A(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>A(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>A(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>A(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>A(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>A(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>A(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([162,124,125,126,127,117,121,103,163])))},{id:"just",name:"Just",import:(()=>A(()=>import("./just-Cw27pwNe.js"),__vite__mapDeps([164,129,103,112,165,102,104,108,109,117,121,134,135,136,137,114,124,125,126,127,138,139])))},{id:"kdl",name:"KDL",import:(()=>A(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>A(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>A(()=>import("./kusto-DZf3V79B.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>A(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([166,167,163])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>A(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>A(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>A(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([168,102,103,104,110])))},{id:"llvm",name:"LLVM IR",import:(()=>A(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>A(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>A(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>A(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([138,127])))},{id:"luau",name:"Luau",import:(()=>A(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>A(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>A(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>A(()=>import("./marko-CnJfTvn9.js"),__vite__mapDeps([169,104,170,106,112])))},{id:"matlab",name:"MATLAB",import:(()=>A(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>A(()=>import("./mdc-BMNejdWA.js"),__vite__mapDeps([171,141,139,116,102,103,104])))},{id:"mdx",name:"MDX",import:(()=>A(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>A(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>A(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>A(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>A(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>A(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>A(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>A(()=>import("./nextflow-Zz6hmt5N.js"),__vite__mapDeps([172,173])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>A(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>A(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([174,138,127])))},{id:"nim",name:"Nim",import:(()=>A(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([175,127,102,103,104,108,109,126,141])))},{id:"nix",name:"Nix",import:(()=>A(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>A(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>A(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>A(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>A(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>A(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>A(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>A(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>A(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([165,102,103,104,108,109,117])))},{id:"php",name:"PHP",import:(()=>A(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([176,102,103,104,108,109,117,110])))},{id:"pkl",name:"Pkl",import:(()=>A(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>A(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>A(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>A(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>A(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>A(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>A(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>A(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>A(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>A(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>A(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([177,103,104,102])))},{id:"puppet",name:"Puppet",import:(()=>A(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>A(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>A(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>A(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([178,103])))},{id:"qmldir",name:"QML Directory",import:(()=>A(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>A(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>A(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>A(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>A(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>A(()=>import("./razor-Uh8Bk_45.js"),__vite__mapDeps([179,102,103,104,180])))},{id:"reg",name:"Windows Registry Script",import:(()=>A(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>A(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>A(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>A(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>A(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>A(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>A(()=>import("./rst-BrH8l1NY.js"),__vite__mapDeps([181,116,102,103,104,124,125,126,127,117,121,129,139,182,134,135,108,109,136,112,137,114,138])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>A(()=>import("./ruby-Dw2BHqvy.js"),__vite__mapDeps([134,102,103,104,135,108,109,117,136,112,137,114,124,125,126,127,129,138,139])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>A(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>A(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([183,117])))},{id:"sass",name:"Sass",import:(()=>A(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>A(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>A(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>A(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([106,104])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>A(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>A(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([184,185])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>A(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>A(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([186,129])))},{id:"smalltalk",name:"Smalltalk",import:(()=>A(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>A(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>A(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([187,102,103,104])))},{id:"sparql",name:"SPARQL",import:(()=>A(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([188,189])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>A(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>A(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>A(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>A(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([190,117])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>A(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>A(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([191,103])))},{id:"svelte",name:"Svelte",import:(()=>A(()=>import("./svelte-C_ipcX3V.js"),__vite__mapDeps([192,103,112,104,113])))},{id:"swift",name:"Swift",import:(()=>A(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>A(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>A(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>A(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>A(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>A(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>A(()=>import("./templ-P3uqSqPl.js"),__vite__mapDeps([193,194,103,104])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>A(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>A(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([167,163])))},{id:"toml",name:"TOML",import:(()=>A(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>A(()=>import("./ts-tags-eLBrqaVN.js"),__vite__mapDeps([195,112,104,103,126,127,102,117,108,109])))},{id:"tsv",name:"TSV",import:(()=>A(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>A(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>A(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>A(()=>import("./twig-DNn4PbVi.js"),__vite__mapDeps([196,104,103,106,176,102,108,109,117,110,121,134,135,136,112,137,114,124,125,126,127,129,138,139])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>A(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>A(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>A(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>A(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>A(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>A(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>A(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>A(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>A(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>A(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([197,104,103,112,110,102,116])))},{id:"vue-html",name:"Vue HTML",import:(()=>A(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([198,103])))},{id:"vue-vine",name:"Vue Vine",import:(()=>A(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([199,104,106,170,200,113,103])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>A(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>A(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>A(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>A(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>A(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>A(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>A(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>A(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([108,109])))},{id:"xsl",name:"XSL",import:(()=>A(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([201,108,109])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>A(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>A(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>A(()=>import("./zig-VOosw3JB.js"),[]))}],Hb=Object.fromEntries(v0.map(e=>[e.id,e.import])),Ub=Object.fromEntries(v0.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Od={...Hb,...Ub},qb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>A(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>A(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>A(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>A(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>A(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>A(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>A(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>A(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>A(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>A(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>A(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>A(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>A(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>A(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>A(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>A(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>A(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>A(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>A(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>A(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>A(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>A(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>A(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>A(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>A(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>A(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>A(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>A(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>A(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>A(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>A(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>A(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>A(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>A(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>A(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>A(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>A(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>A(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>A(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>A(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>A(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>A(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>A(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>A(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>A(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>A(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>A(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>A(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>A(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>A(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>A(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>A(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>A(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>A(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>A(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>A(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>A(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>A(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>A(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>A(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>A(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>A(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>A(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>A(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>A(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],Zb=Object.fromEntries(qb.map(e=>[e.id,e.import]));var Wb=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function mW(){return 2147483648}function pW(){return typeof performance<"u"?performance.now():Date.now()}const gW=(e,t)=>e+(t-e%t)%t;async function vW(e){let t,n;const r={};function i(m){n=m,r.HEAPU8=new Uint8Array(m),r.HEAPU32=new Uint32Array(m)}function o(m,f,p){r.HEAPU8.copyWithin(m,f,f+p)}function a(m){try{return t.grow(m-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(m){const f=r.HEAPU8.length;m=m>>>0;const p=mW();if(m>p)return!1;for(let b=1;b<=4;b*=2){let v=f*(1+.2/b);v=Math.min(v,m+100663296);const g=Math.min(p,gW(Math.max(m,v),65536));if(a(g))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(m,f,p=1024){const b=f+p;let v=f;for(;m[v]&&!(v>=b);)++v;if(v-f>16&&m.buffer&&l)return l.decode(m.subarray(f,v));let g="";for(;f<v;){let k=m[f++];if(!(k&128)){g+=String.fromCharCode(k);continue}const S=m[f++]&63;if((k&224)===192){g+=String.fromCharCode((k&31)<<6|S);continue}const w=m[f++]&63;if((k&240)===224?k=(k&15)<<12|S<<6|w:k=(k&7)<<18|S<<12|w<<6|m[f++]&63,k<65536)g+=String.fromCharCode(k);else{const x=k-65536;g+=String.fromCharCode(55296|x>>10,56320|x&1023)}}return g}function d(m,f){return m?c(r.HEAPU8,m,f):""}const u={emscripten_get_now:pW,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await e({env:u,wasi_snapshot_preview1:u});t=f.memory,i(t.buffer),Object.assign(r,f),r.UTF8ToString=d}return await h(),r}var bW=Object.defineProperty,yW=(e,t,n)=>t in e?bW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zn=(e,t,n)=>yW(e,typeof t!="symbol"?t+"":t,n);let Xn=null;function wW(e){throw new Wb(e.UTF8ToString(e.getLastOnigError()))}class b0{constructor(t){Zn(this,"utf16Length"),Zn(this,"utf8Length"),Zn(this,"utf16Value"),Zn(this,"utf8Value"),Zn(this,"utf16OffsetToUtf8"),Zn(this,"utf8OffsetToUtf16");const n=t.length,r=b0._utf8ByteLength(t),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const s=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const d=t.charCodeAt(c);let u=d,h=!1;if(d>=55296&&d<=56319&&c+1<n){const m=t.charCodeAt(c+1);m>=56320&&m<=57343&&(u=(d-55296<<10)+65536|m-56320,h=!0)}i&&(o[c]=l,h&&(o[c+1]=l),u<=127?a[l+0]=c:u<=2047?(a[l+0]=c,a[l+1]=c):u<=65535?(a[l+0]=c,a[l+1]=c,a[l+2]=c):(a[l+0]=c,a[l+1]=c,a[l+2]=c,a[l+3]=c)),u<=127?s[l++]=u:u<=2047?(s[l++]=192|(u&1984)>>>6,s[l++]=128|(u&63)>>>0):u<=65535?(s[l++]=224|(u&61440)>>>12,s[l++]=128|(u&4032)>>>6,s[l++]=128|(u&63)>>>0):(s[l++]=240|(u&1835008)>>>18,s[l++]=128|(u&258048)>>>12,s[l++]=128|(u&4032)>>>6,s[l++]=128|(u&63)>>>0),h&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const o=t.charCodeAt(r);let a=o,s=!1;if(o>=55296&&o<=56319&&r+1<i){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?n+=1:a<=2047?n+=2:a<=65535?n+=3:n+=4,s&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const y0=class Yi{constructor(t){if(Zn(this,"id",++Yi.LAST_ID),Zn(this,"_onigBinding"),Zn(this,"content"),Zn(this,"utf16Length"),Zn(this,"utf8Length"),Zn(this,"utf16OffsetToUtf8"),Zn(this,"utf8OffsetToUtf16"),Zn(this,"ptr"),!Xn)throw new Wb("Must invoke loadWasm first.");this._onigBinding=Xn,this.content=t;const n=new b0(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Yi._sharedPtrInUse?(Yi._sharedPtr||(Yi._sharedPtr=Xn.omalloc(1e4)),Yi._sharedPtrInUse=!0,Xn.HEAPU8.set(n.utf8Value,Yi._sharedPtr),this.ptr=Yi._sharedPtr):this.ptr=n.createString(Xn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Yi._sharedPtr?Yi._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Zn(y0,"LAST_ID",0);Zn(y0,"_sharedPtr",0);Zn(y0,"_sharedPtrInUse",!1);let IS=y0;class kW{constructor(t){if(Zn(this,"_onigBinding"),Zn(this,"_ptr"),!Xn)throw new Wb("Must invoke loadWasm first.");const n=[],r=[];for(let s=0,l=t.length;s<l;s++){const c=new b0(t[s]);n[s]=c.createString(Xn),r[s]=c.utf8Length}const i=Xn.omalloc(4*t.length);Xn.HEAPU32.set(n,i/4);const o=Xn.omalloc(4*t.length);Xn.HEAPU32.set(r,o/4);const a=Xn.createOnigScanner(i,o,t.length);for(let s=0,l=t.length;s<l;s++)Xn.ofree(n[s]);Xn.ofree(o),Xn.ofree(i),a===0&&wW(Xn),this._onigBinding=Xn,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new IS(t);const o=this._findNextMatchSync(t,n,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(a===0)return null;const s=o.HEAPU32;let l=a/4;const c=s[l++],d=s[l++],u=[];for(let h=0;h<d;h++){const m=t.convertUtf8OffsetToUtf16(s[l++]),f=t.convertUtf8OffsetToUtf16(s[l++]);u[h]={start:m,end:f,length:f-m}}return{index:c,captureIndices:u}}}function xW(e){return typeof e.instantiator=="function"}function SW(e){return typeof e.default=="function"}function _W(e){return typeof e.data<"u"}function AW(e){return typeof Response<"u"&&e instanceof Response}function CW(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Gu;function Gb(e){if(Gu)return Gu;async function t(){Xn=await vW(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),xW(r)?r=await r.instantiator(n):SW(r)?r=await r.default(n):(_W(r)&&(r=r.data),AW(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await EW(r)(n):r=await IW(r)(n):CW(r)?r=await ag(r)(n):r instanceof WebAssembly.Module?r=await ag(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await ag(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Gu=t(),Gu}function ag(e){return t=>WebAssembly.instantiate(e,t)}function EW(e){return t=>WebAssembly.instantiateStreaming(e,t)}function IW(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let TS;function TW(e){TS=e}function LW(){return TS}async function LS(e){return e&&await Gb(e),{createScanner(t){return new kW(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new IS(t)}}}const DW=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:LS,getDefaultWasmLoader:LW,loadWasm:Gb,setDefaultWasmLoader:TW},Symbol.toStringTag,{value:"Module"}));var DS=Bb({});ES(DS,DW);var en=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function mh(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function ba(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function MW(e){return Array.isArray(e)?e:[e]}async function MS(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function w0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function PS(e){return e==="ansi"||w0(e)}function k0(e){return e==="none"}function OS(e){return k0(e)}function x0(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const a=t?n[o]+(n[o+1]||""):n[o];i.push([a,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}const F6={light:"#333333",dark:"#bbbbbb"},V6={light:"#fffffe",dark:"#1e1e1e"},j6="__shiki_resolved";function Kb(e){if(e?.[j6])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(r=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?F6.light:F6.dark),n||(n=t.type==="light"?V6.light:V6.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}t.settings=t.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const d={...s,settings:{...s.settings}};if(l){const u=a(s.settings.foreground);t.colorReplacements[u]=s.settings.foreground,d.settings.foreground=u}if(c){const u=a(s.settings.background);t.colorReplacements[u]=s.settings.background,d.settings.background=u}return d});for(const s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){const l=a(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,j6,{enumerable:!1,writable:!1,value:!0}),t}async function $S(e){return Array.from(new Set((await Promise.all(e.filter(t=>!PS(t)).map(async t=>await MS(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function RS(e){return(await Promise.all(e.map(async t=>OS(t)?null:Kb(await MS(t))))).filter(t=>!!t)}function zS(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new en(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}var PW=class extends c5{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=Kb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Wc.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=zS(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(i=>{this._alias[i]=e.name}),this._loadedLanguagesCache=null,t.size)for(const i of t)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const t=Array.from(this._langGraph.entries()),n=t.filter(([r,i])=>!i);if(n.length){const r=t.filter(([i,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(a=>n.map(([s])=>s).includes(a)):!1).filter(i=>!n.includes(i));throw new en(`Missing languages ${n.map(([i])=>`\`${i}\``).join(", ")}, required by ${r.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[r,i]of t)this._resolver.addLanguage(i);for(const[r,i]of t)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const n of t)this._langGraph.set(n,this._langMap.get(n))}},OW=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const i=t.slice(0,r).join(".");n=[...n,...this._injections.get(i)||[]]}return n}};let gc=0;function $W(e){gc+=1,e.warnings!==!1&&gc>=10&&gc%10===0&&console.warn(`[Shiki] ${gc} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new en("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Kb),i=new PW(new OW(e.engine,n),r,n,e.langAlias);let o;function a(g){return zS(g,e.langAlias)}function s(g){b();const k=i.getGrammar(typeof g=="string"?g:g.name);if(!k)throw new en(`Language \`${g}\` not found, you may need to load it first`);return k}function l(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const k=i.getTheme(g);if(!k)throw new en(`Theme \`${g}\` not found, you may need to load it first`);return k}function c(g){b();const k=l(g);return o!==g&&(i.setTheme(k),o=g),{theme:k,colorMap:i.getColorMap()}}function d(){return b(),i.getLoadedThemes()}function u(){return b(),i.getLoadedLanguages()}function h(...g){b(),i.loadLanguages(g.flat(1))}async function m(...g){return h(await $S(g))}function f(...g){b();for(const k of g.flat(1))i.loadTheme(k)}async function p(...g){return b(),f(await RS(g))}function b(){if(t)throw new en("Shiki instance has been disposed")}function v(){t||(t=!0,i.dispose(),gc-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:d,getLoadedLanguages:u,resolveLangAlias:a,loadLanguage:m,loadLanguageSync:h,loadTheme:p,loadThemeSync:f,dispose:v,[Symbol.dispose]:v}}async function RW(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([RS(e.themes||[]),$S(e.langs||[]),e.engine]);return $W({...e,themes:t,langs:n,engine:r})}const NS=new WeakMap;function S0(e,t){NS.set(e,t)}function id(e){return NS.get(e)}var _0=class FS{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new FS(Object.fromEntries(MW(n).map(r=>[r,El])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return zW(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function zW(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&r(i.parent)}return r(e),t}function NW(e,t){if(!(e instanceof _0))throw new en("Invalid grammar state");return e.getInternalStack(t)}function VS(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n;if(w0(e.resolveLangAlias(n.lang||"text"))||k0(r))return x0(t).map(s=>[{content:s[0],offset:s[1]}]);const{theme:i,colorMap:o}=e.setTheme(r),a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new en(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(i.name))throw new en(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return VW(t,a,i,o,n)}function FW(...e){if(e.length===2)return id(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=r;if(w0(i)||k0(o))throw new en("Plain language does not have grammar state");if(i==="ansi")throw new en("ANSI language does not have grammar state");const{theme:a,colorMap:s}=t.setTheme(o),l=t.getLanguage(i);return new _0(Jb(n,l,a,s,r).stateStack,l.name,a.name)}function VW(e,t,n,r,i){const o=Jb(e,t,n,r,i),a=new _0(o.stateStack,t.name,n.name);return S0(o.tokens,a),o.tokens}function Jb(e,t,n,r,i){const o=mh(n,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=x0(e);let c=i.grammarState?NW(i.grammarState,n.name)??El:i.grammarContextCode!=null?Jb(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:El,d=[];const u=[];for(let h=0,m=l.length;h<m;h++){const[f,p]=l[h];if(f===""){d=[],u.push([]);continue}if(a>0&&f.length>=a){d=[],u.push([{content:f,offset:p,color:"",fontStyle:0}]);continue}let b,v,g;i.includeExplanation&&(b=t.tokenizeLine(f,c,s),v=b.tokens,g=0);const k=t.tokenizeLine2(f,c,s),S=k.tokens.length/2;for(let w=0;w<S;w++){const x=k.tokens[2*w],L=w+1<S?k.tokens[2*w+2]:f.length;if(x===L)continue;const C=k.tokens[2*w+1],I=ba(r[ka.getForeground(C)],o),$=ka.getFontStyle(C),F={content:f.substring(x,L),offset:p+x,color:I,fontStyle:$};if(i.includeExplanation){const N=[];if(i.includeExplanation!=="scopeName")for(const T of n.settings){let M;switch(typeof T.scope){case"string":M=T.scope.split(/,/).map(R=>R.trim());break;case"object":M=T.scope;break;default:continue}N.push({settings:T,selectors:M.map(R=>R.split(/ /))})}F.explanation=[];let D=0;for(;x+D<L;){const T=v[g],M=f.substring(T.startIndex,T.endIndex);D+=M.length,F.explanation.push({content:M,scopes:i.includeExplanation==="scopeName"?jW(T.scopes):BW(N,T.scopes)}),g+=1}}d.push(F)}u.push(d),d=[],c=k.ruleStack}return{tokens:u,stateStack:c}}function jW(e){return e.map(t=>({scopeName:t}))}function BW(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const o=t[r];n[r]={scopeName:o,themeMatches:UW(e,o,t.slice(0,r))}}return n}function B6(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function HW(e,t,n){if(!B6(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)B6(e[r],n[i])&&(r-=1),i-=1;return r===-1}function UW(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const a of i)if(HW(a,t,n)){r.push(o);break}return r}function jS(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{const c=VS(e,t,{...n,theme:l.theme});return{tokens:c,state:id(c),theme:typeof l.theme=="string"?l.theme:l.theme.name}}),o=qW(...i.map(l=>l.tokens)),a=o[0].map((l,c)=>l.map((d,u)=>{const h={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=d.explanation),o.forEach((m,f)=>{const{content:p,explanation:b,offset:v,...g}=m[c][u];h.variants[r[f].color]=g}),h})),s=i[0].state?new _0(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return s&&S0(a,s),a}function qW(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,c)=>l.push(o[c]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<n;c++){const d=s[c];d.content.length===l?(o[c].push(d),a[c]+=1,s[c]=i[c][a[c]]):(o[c].push({...d,content:d.content.slice(0,l)}),s[c]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}function BS(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function ZW(e){const t=x0(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=i,a=0;for(const s of t){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function r(i,o){let a=0;for(let s=0;s<i;s++)a+=t[s].length;return a+=o,a}return{lines:t,indexToPos:n,posToIndex:r}}function WW(e,t,n){const r=new Set;for(const o of e.matchAll(/:?lang=["']([^"']+)["']/g)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g)){const a=o[1].toLowerCase().trim();a&&r.add(a)}for(const o of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const a=o[1].toLowerCase().trim(),s=a.includes("/")?a.split("/").pop():a;s&&r.add(s)}if(!n)return Array.from(r);const i=n.getBundledLanguages();return Array.from(r).filter(o=>o&&i[o])}const Qb="light-dark()",GW=["color","background-color"];function KW(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function JW(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const o=n.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,s)=>a-s);return o.length?KW(i,o):i})):e}function QW(e,t,n,r,i="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(d=>ph(e.variants[d])),s=new Set(a.flatMap(d=>Object.keys(d))),l={},c=(d,u)=>{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+t[d]+(u==="color"?"":h)};return a.forEach((d,u)=>{for(const h of s){const m=d[h]||"inherit";if(u===0&&r&&GW.includes(h))if(r===Qb&&a.length>1){const f=t.findIndex(b=>b==="light"),p=t.findIndex(b=>b==="dark");if(f===-1||p===-1)throw new en('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[h]=`light-dark(${a[f][h]||"inherit"}, ${a[p][h]||"inherit"})`,i==="css-vars"&&(l[c(u,h)]=m)}else l[h]=m;else i==="css-vars"&&(l[c(u,h)]=m)}}),o.htmlStyle=l,o}function ph(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&jt.Italic&&(t["font-style"]="italic"),e.fontStyle&jt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&jt.Underline&&n.push("underline"),e.fontStyle&jt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Vv(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function XW(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new en(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...r.indexToPos(a),offset:a}}else{const s=r.lines[a.line];if(s===void 0)throw new en(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${r.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new en(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:r.posToIndex(a.line,l)}}};const r=ZW(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:i(a.start),end:i(a.end)}));YW(o),e.set(n.meta,{decorations:o,converter:r,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return JW(n,t(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=Array.from(n.children).filter(d=>d.type==="element"&&d.tagName==="span");if(i.length!==r.converter.lines.length)throw new en(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(d,u,h,m){const f=i[d];let p="",b=-1,v=-1;if(u===0&&(b=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=f.children.length),b===-1||v===-1)for(let k=0;k<f.children.length;k++)p+=HS(f.children[k]),b===-1&&p.length===u&&(b=k+1),v===-1&&p.length===h&&(v=k+1);if(b===-1)throw new en(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(v===-1)throw new en(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);const g=f.children.slice(b,v);if(!m.alwaysWrap&&g.length===f.children.length)s(f,m,"line");else if(!m.alwaysWrap&&g.length===1&&g[0].type==="element")s(g[0],m,"token");else{const k={type:"element",tagName:"span",properties:{},children:g};s(k,m,"wrapper"),f.children.splice(b,g.length,k)}}function a(d,u){i[d]=s(i[d],u,"line")}function s(d,u,h){const m=u.properties||{},f=u.transform||(p=>p);return d.tagName=u.tagName||"span",d.properties={...d.properties,...m,class:d.properties.class},u.properties?.class&&BS(d,u.properties.class),d=f(d,h)||d,d}const l=[],c=r.decorations.sort((d,u)=>u.start.offset-d.start.offset||d.end.offset-u.end.offset);for(const d of c){const{start:u,end:h}=d;if(u.line===h.line)o(u.line,u.character,h.character,d);else if(u.line<h.line){o(u.line,u.character,Number.POSITIVE_INFINITY,d);for(let m=u.line+1;m<h.line;m++)l.unshift(()=>a(m,d));o(h.line,0,h.character,d)}}l.forEach(d=>d())}}}function YW(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new en(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,a=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,s=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||a||s||l){if(o&&a||s&&l||s&&n.start.offset===n.end.offset||a&&i.start.offset===i.end.offset)continue;throw new en(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function HS(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(HS).join(""):""}const eG=[XW()];function gh(e){const t=tG(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...eG]}function tG(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var ns=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],sg={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nG(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function H6(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function rG(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)sg[r]&&t.push({type:"setDecoration",value:sg[r]});else if(r<=29){const i=sg[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ns[r-30]}});else if(r===38){const i=H6(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ns[r-40]}});else if(r===48){const i=H6(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ns[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ns[r-100+8]}})}return t}function iG(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let o=0;do{const a=nG(r,o),s=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const l=rG(a.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}o=a.position}while(o<r.length);return i}}}var oG={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function aG(e=oG){function t(s){return e[s]}function n(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<ns.length;c++)r.push(t(ns[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let d=0;d<6;d++)for(let u=0;u<6;u++)r.push(n([s[c],s[d],s[u]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return t(s.name);case"rgb":return n(s.rgb);case"table":return o(s.index)}}return{value:a}}const sG={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function lG(e,t,n){const r=mh(e,n),i=x0(t),o=aG(Object.fromEntries(ns.map(s=>{const l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||sG[s]]}))),a=iG();return i.map(s=>a.parse(s[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?o.value(l.background):e.bg,d=l.foreground?o.value(l.foreground):e.fg):(c=l.foreground?o.value(l.foreground):e.fg,d=l.background?o.value(l.background):void 0),c=ba(c,r),d=ba(d,r),l.decorations.has("dim")&&(c=cG(c));let u=jt.None;return l.decorations.has("bold")&&(u|=jt.Bold),l.decorations.has("italic")&&(u|=jt.Italic),l.decorations.has("underline")&&(u|=jt.Underline),l.decorations.has("strikethrough")&&(u|=jt.Strikethrough),{content:l.value,offset:s[1],color:c,bgColor:d,fontStyle:u}}))}function cG(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],o=r[1],a=r[2],s=r[3];return`#${i}${i}${o}${o}${a}${a}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){const i=r[0],o=r[1],a=r[2];return`#${i}${i}${o}${o}${a}${a}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function US(e,t,n={}){const r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!w0(r)&&!k0(i)&&r==="ansi"){const{theme:o}=e.setTheme(i);return lG(o,t,n)}return VS(e,t,n)}function vh(e,t,n){let r,i,o,a,s,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:u="css-vars"}=n,h=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,g)=>v.color===c?-1:g.color===c?1:0);if(h.length===0)throw new en("`themes` option must not be empty");const m=jS(e,t,n);if(l=id(m),c&&Qb!==c&&!h.find(v=>v.color===c))throw new en(`\`themes\` option must contain the defaultColor key \`${c}\``);const f=h.map(v=>e.getTheme(v.theme)),p=h.map(v=>v.color);o=m.map(v=>v.map(g=>QW(g,p,d,c,u))),l&&S0(o,l);const b=h.map(v=>mh(v.theme,n));i=U6(h,f,b,d,c,"fg",u),r=U6(h,f,b,d,c,"bg",u),a=`shiki-themes ${f.map(v=>v.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else if("theme"in n){const c=mh(n.theme,n);o=US(e,t,n);const d=e.getTheme(n.theme);r=ba(d.bg,c),i=ba(d.fg,c),a=d.name,l=id(o)}else throw new en("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:a,rootStyle:s,grammarState:l}}function U6(e,t,n,r,i,o,a){return e.map((s,l)=>{const c=ba(t[l][o],n[l])||"inherit",d=`${r+s.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&i){if(i===Qb&&e.length>1){const u=e.findIndex(m=>m.color==="light"),h=e.findIndex(m=>m.color==="dark");if(u===-1||h===-1)throw new en('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ba(t[u][o],n[u])||"inherit"}, ${ba(t[h][o],n[h])||"inherit"});${d}`}return c}return a==="css-vars"?d:null}).filter(s=>!!s).join(";")}function bh(e,t,n,r={meta:{},options:n,codeToHast:(i,o)=>bh(e,i,o),codeToTokens:(i,o)=>vh(e,i,o)}){let i=t;for(const f of gh(n))i=f.preprocess?.call(r,i,n)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:d}=vh(e,i,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:h=!1}=n;u===!0?o=uG(o):u==="never"&&(o=fG(o)),h&&(o=hG(o));const m={...r,get source(){return i}};for(const f of gh(n))o=f.tokens?.call(m,o)||o;return dG(o,{...n,fg:a,bg:s,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},m,d)}function dG(e,t,n,r=id(e)){const i=gh(t),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[p,b]of Object.entries(t.meta||{}))p.startsWith("_")||(c[p]=b);let d={type:"element",tagName:"pre",properties:c,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:o};const h=[],m={...n,structure:s,addClassToHast:BS,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return d},get code(){return u},get lines(){return h}};if(e.forEach((p,b)=>{b&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:`
2268
- `}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const k of p){let S={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const w=Vv(k.htmlStyle||ph(k));w&&(S.properties.style=w);for(const x of i)S=x?.span?.call(m,S,b+1,g,v,k)||S;s==="inline"?a.children.push(S):s==="classic"&&v.children.push(S),g+=k.content.length}if(s==="classic"){for(const k of i)v=k?.line?.call(m,v,b+1)||v;h.push(v),o.push(v)}else s==="inline"&&h.push(v)}),s==="classic"){for(const p of i)u=p?.code?.call(m,u)||u;d.children.push(u);for(const p of i)d=p?.pre?.call(m,d)||d;a.children.push(d)}else if(s==="inline"){const p=[];let b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const g of a.children)g.type==="element"&&g.tagName==="br"?(p.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(g.type==="element"||g.type==="text")&&b.children.push(g);p.push(b);let v={type:"element",tagName:"code",properties:{},children:p};for(const g of i)v=g?.code?.call(m,v)||v;a.children=[];for(let g=0;g<v.children.length;g++){g>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const k=v.children[g];k.type==="element"&&a.children.push(...k.children)}}let f=a;for(const p of i)f=p?.root?.call(m,f)||f;return r&&S0(f,r),f}function uG(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((o,a)=>{const s=!(o.fontStyle&&(o.fontStyle&jt.Underline||o.fontStyle&jt.Strikethrough));s&&o.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(s?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function fG(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,o,a]=r;if(!i&&!a)return n;const s=[{...n,offset:n.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:n.offset}),a&&s.push({content:a,offset:n.offset+i.length+o.length}),s}))}function hG(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],o=Vv(i.htmlStyle||ph(i)),a=Vv(r.htmlStyle||ph(r)),s=i.fontStyle&&(i.fontStyle&jt.Underline||i.fontStyle&jt.Strikethrough),l=r.fontStyle&&(r.fontStyle&jt.Underline||r.fontStyle&jt.Strikethrough);!s&&!l&&o===a?i.content+=r.content:n.push({...r})}return n})}const mG=Ni;function pG(e,t,n){const r={meta:{},options:n,codeToHast:(o,a)=>bh(e,o,a),codeToTokens:(o,a)=>vh(e,o,a)};let i=mG(bh(e,t,n,r));for(const o of gh(n))i=o.postprocess?.call(r,i,n)||i;return i}async function gG(e){const t=await RW(e);return{getLastGrammarState:(...n)=>FW(t,...n),codeToTokensBase:(n,r)=>US(t,n,r),codeToTokensWithThemes:(n,r)=>jS(t,n,r),codeToTokens:(n,r)=>vh(t,n,r),codeToHast:(n,r)=>bh(t,n,r),codeToHtml:(n,r)=>pG(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function vG(e){const t=e.langs,n=e.themes,r=e.engine;async function i(o){function a(u){if(typeof u=="string"){if(u=o.langAlias?.[u]||u,PS(u))return[];const h=t[u];if(!h)throw new en(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}function s(u){if(OS(u))return"none";if(typeof u=="string"){const h=n[u];if(!h)throw new en(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}const l=(o.themes??[]).map(u=>s(u)),c=(o.langs??[]).map(u=>a(u)),d=await gG({engine:o.engine??r(),...o,themes:l,langs:c});return{...d,loadLanguage(...u){return d.loadLanguage(...u.map(a))},loadTheme(...u){return d.loadTheme(...u.map(s))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function bG(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function yG(e,t){const n=bG(e);async function r(i,o){const a=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),s=await t?.guessEmbeddedLanguages?.(i,o.lang,a);return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}var wG=Bb({bundledLanguages:()=>Od,bundledLanguagesAlias:()=>Ub,bundledLanguagesBase:()=>Hb,bundledLanguagesInfo:()=>v0,bundledThemes:()=>Zb,bundledThemesInfo:()=>qb,codeToHast:()=>ZS,codeToHtml:()=>qS,codeToTokens:()=>WS,codeToTokensBase:()=>GS,codeToTokensWithThemes:()=>KS,createHighlighter:()=>Xb,getLastGrammarState:()=>QS,getSingletonHighlighter:()=>JS});const Xb=vG({langs:Od,themes:Zb,engine:()=>(0,DS.createOnigurumaEngine)(A(()=>import("./wasm-Ck_ssClF.js"),[]))}),{codeToHtml:qS,codeToHast:ZS,codeToTokens:WS,codeToTokensBase:GS,codeToTokensWithThemes:KS,getSingletonHighlighter:JS,getLastGrammarState:QS}=yG(Xb,{guessEmbeddedLanguages:WW}),q6=4294967295;var kG=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const a=r?.get(o);if(a){if(a instanceof RegExp)return a;if(n)return null;throw a}try{const s=i(o);return r?.set(o,s),s}catch(s){if(r?.set(o,s),n)return null;throw s}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,i=[];function o(a,s,l=0){return{index:a,captureIndices:s.indices.map(c=>c==null?{start:q6,end:q6,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){const s=this.regexps[a];if(s)try{s.lastIndex=t;const l=s.exec(r);if(!l)continue;if(l.index===t)return o(a,l,0);i.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(i.length){const a=Math.min(...i.map(s=>s[1].index));for(const[s,l,c]of i)if(l.index===a)return o(s,l,c)}return null}};function XS(e,t){return Q5(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function xG(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>XS(n,{target:t.target}),{createScanner(n){return new kG(n,t)},createString(n){return{content:n}}}}var SG=Bb({bundledLanguages:()=>Od,bundledLanguagesAlias:()=>Ub,bundledLanguagesBase:()=>Hb,bundledLanguagesInfo:()=>v0,bundledThemes:()=>Zb,bundledThemesInfo:()=>qb,codeToHast:()=>ZS,codeToHtml:()=>qS,codeToTokens:()=>WS,codeToTokensBase:()=>GS,codeToTokensWithThemes:()=>KS,createHighlighter:()=>Xb,createJavaScriptRegexEngine:()=>xG,createOnigurumaEngine:()=>LS,defaultJavaScriptRegexConstructor:()=>XS,getLastGrammarState:()=>QS,getSingletonHighlighter:()=>JS,loadWasm:()=>Gb});ES(SG,wG);K1("OpenCode",()=>Promise.resolve({name:"OpenCode",colors:{"editor.background":"var(--color-background-stronger)","editor.foreground":"var(--text-base)","gitDecoration.addedResourceForeground":"var(--syntax-diff-add)","gitDecoration.deletedResourceForeground":"var(--syntax-diff-delete)"},tokenColors:[{scope:["comment","punctuation.definition.comment","string.comment"],settings:{foreground:"var(--syntax-comment)"}},{scope:["entity.other.attribute-name"],settings:{foreground:"var(--syntax-property)"}},{scope:["constant","entity.name.constant","variable.other.constant","variable.language","entity"],settings:{foreground:"var(--syntax-constant)"}},{scope:["entity.name","meta.export.default","meta.definition.variable"],settings:{foreground:"var(--syntax-type)"}},{scope:["meta.object.member"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.embedded.expression","meta.template.expression","string.other.begin.yaml","string.other.end.yaml"],settings:{foreground:"var(--syntax-punctuation)"}},{scope:["entity.name.function","support.type.primitive"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["support.class.component"],settings:{foreground:"var(--syntax-type)"}},{scope:"keyword",settings:{foreground:"var(--syntax-keyword)"}},{scope:["keyword.operator","storage.type.function.arrow","punctuation.separator.key-value.css","entity.name.tag.yaml","punctuation.separator.key-value.mapping.yaml"],settings:{foreground:"var(--syntax-operator)"}},{scope:["storage","storage.type"],settings:{foreground:"var(--syntax-keyword)"}},{scope:["storage.modifier.package","storage.modifier.import","storage.type.java"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["string","punctuation.definition.string","string punctuation.section.embedded source","entity.name.tag"],settings:{foreground:"var(--syntax-string)"}},{scope:"support",settings:{foreground:"var(--syntax-primitive)"}},{scope:["support.type.object.module","variable.other.object","support.type.property-name.css"],settings:{foreground:"var(--syntax-object)"}},{scope:"meta.property-name",settings:{foreground:"var(--syntax-property)"}},{scope:"variable",settings:{foreground:"var(--syntax-variable)"}},{scope:"variable.other",settings:{foreground:"var(--syntax-variable)"}},{scope:["invalid.broken","invalid.illegal","invalid.unimplemented","invalid.deprecated","message.error","markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted","brackethighlighter.unmatched","token.error-token"],settings:{foreground:"var(--syntax-critical)"}},{scope:"carriage-return",settings:{foreground:"var(--syntax-keyword)"}},{scope:"string source",settings:{foreground:"var(--syntax-variable)"}},{scope:"string variable",settings:{foreground:"var(--syntax-constant)"}},{scope:["source.regexp","string.regexp","string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition","string.regexp constant.character.escape"],settings:{foreground:"var(--syntax-regexp)"}},{scope:"support.constant",settings:{foreground:"var(--syntax-primitive)"}},{scope:"support.variable",settings:{foreground:"var(--syntax-variable)"}},{scope:"meta.module-reference",settings:{foreground:"var(--syntax-info)"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"var(--syntax-punctuation)"}},{scope:["markup.heading","markup.heading entity.name"],settings:{fontStyle:"bold",foreground:"var(--syntax-info)"}},{scope:"markup.quote",settings:{foreground:"var(--syntax-info)"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"var(--text-strong)"}},{scope:["markup.raw","markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted","markup.changed","punctuation.definition.changed","markup.ignored","markup.untracked"],settings:{foreground:"var(--text-base)"}},{scope:"meta.diff.range",settings:{fontStyle:"bold",foreground:"var(--syntax-unknown)"}},{scope:"meta.diff.header",settings:{foreground:"var(--syntax-unknown)"}},{scope:"meta.separator",settings:{fontStyle:"bold",foreground:"var(--syntax-unknown)"}},{scope:"meta.output",settings:{foreground:"var(--syntax-unknown)"}},{scope:"meta.export.default",settings:{foreground:"var(--syntax-unknown)"}},{scope:["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],settings:{foreground:"var(--syntax-unknown)"}},{scope:["constant.other.reference.link","string.other.link"],settings:{fontStyle:"underline",foreground:"var(--syntax-unknown)"}},{scope:"token.info-token",settings:{foreground:"var(--syntax-info)"}},{scope:"token.warn-token",settings:{foreground:"var(--syntax-warning)"}},{scope:"token.debug-token",settings:{foreground:"var(--syntax-info)"}}],semanticTokenColors:{comment:"var(--syntax-comment)",string:"var(--syntax-string)",number:"var(--syntax-constant)",regexp:"var(--syntax-regexp)",keyword:"var(--syntax-keyword)",variable:"var(--syntax-variable)",parameter:"var(--syntax-variable)",property:"var(--syntax-property)",function:"var(--syntax-primitive)",method:"var(--syntax-primitive)",type:"var(--syntax-type)",class:"var(--syntax-type)",namespace:"var(--syntax-type)",enumMember:"var(--syntax-primitive)","variable.constant":"var(--syntax-constant)","variable.defaultLibrary":"var(--syntax-unknown)"}}));function _G(e){let t=e;const n=/\$\$([\s\S]*?)\$\$/g;t=t.replace(n,(i,o)=>{try{return Nv.renderToString(o,{displayMode:!0,throwOnError:!1})}catch{return`$$${o}$$`}});const r=/(?<!\$)\$(?!\$)((?:[^$\\]|\\.)+?)\$(?!\$)/g;return t=t.replace(r,(i,o)=>{try{return Nv.renderToString(o,{displayMode:!1,throwOnError:!1})}catch{return`$${o}$`}}),t}function AG(e){const t=/(<(?:pre|code|kbd)[^>]*>[\s\S]*?<\/(?:pre|code|kbd)>)/gi;return e.split(t).map((r,i)=>i%2===1?r:_G(r)).join("")}async function CG(e){const t=/<pre><code(?:\s+class="language-([^"]*)")?>([\s\S]*?)<\/code><\/pre>/g,n=[...e.matchAll(t)];if(n.length===0)return e;const r=await Il({themes:["OpenCode"],langs:[]});let i=e;for(const o of n){const[a,s,l]=o,c=l.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'");let d=s||"text";d in Od||(d="text"),r.getLoadedLanguages().includes(d)||await r.loadLanguage(d);const u=r.codeToHtml(c,{lang:d,theme:"OpenCode",tabindex:!1});i=i.replace(a,()=>u)}return i}const{use:tve,provider:EG}=Sn({name:"Marked",init:e=>{const t=qt.use({renderer:{link({href:n,title:r,text:i}){const o=r?` title="${r}"`:"";return`<a href="${n}"${o} class="external-link" target="_blank" rel="noopener noreferrer">${i}</a>`}}},aW({throwOnError:!1,nonStandard:!0}),cW({async highlight(n,r){const i=await Il({themes:["OpenCode"],langs:[]});return r in Od||(r="text"),i.getLoadedLanguages().includes(r)||await i.loadLanguage(r),i.codeToHtml(n,{lang:r||"text",theme:"OpenCode",tabindex:!1})}}));if(e.nativeParser){const n=e.nativeParser;return{async parse(r){const i=await n(r),o=AG(i);return CG(o)}}}return t}}),YS=Ct(),IG=["title","meta"],Z6=[],W6=["name","http-equiv","content","charset","media"].concat(["property"]),G6=(e,t)=>{const n=Object.fromEntries(Object.entries(e.props).filter(([r])=>t.includes(r)).sort());return(Object.hasOwn(n,"name")||Object.hasOwn(n,"property"))&&(n.name=n.name||n.property,delete n.property),e.tag+JSON.stringify(n)};function TG(){if(!je.context){const n=document.head.querySelectorAll("[data-sm]");Array.prototype.forEach.call(n,r=>r.parentNode.removeChild(r))}const e=new Map;function t(n){if(n.ref)return n.ref;let r=document.querySelector(`[data-sm="${n.id}"]`);return r?(r.tagName.toLowerCase()!==n.tag&&(r.parentNode&&r.parentNode.removeChild(r),r=document.createElement(n.tag)),r.removeAttribute("data-sm")):r=document.createElement(n.tag),r}return{addTag(n){if(IG.indexOf(n.tag)!==-1){const o=n.tag==="title"?Z6:W6,a=G6(n,o);e.has(a)||e.set(a,[]);let s=e.get(a),l=s.length;s=[...s,n],e.set(a,s);let c=t(n);n.ref=c,nr(c,n.props);let d=null;for(var r=l-1;r>=0;r--)if(s[r]!=null){d=s[r];break}return c.parentNode!=document.head&&document.head.appendChild(c),d&&d.ref&&d.ref.parentNode&&document.head.removeChild(d.ref),l}let i=t(n);return n.ref=i,nr(i,n.props),i.parentNode!=document.head&&document.head.appendChild(i),-1},removeTag(n,r){const i=n.tag==="title"?Z6:W6,o=G6(n,i);if(n.ref){const a=e.get(o);if(a){if(n.ref.parentNode){n.ref.parentNode.removeChild(n.ref);for(let s=r-1;s>=0;s--)a[s]!=null&&document.head.appendChild(a[s].ref)}a[r]=null,e.set(o,a)}else n.ref.parentNode&&n.ref.parentNode.removeChild(n.ref)}}}}const LG=e=>{const t=TG();return y(YS.Provider,{value:t,get children(){return e.children}})},e_=(e,t,n)=>(DG({tag:e,props:t,setting:n,id:cn(),get name(){return t.name||t.property}}),null);function DG(e){const t=yt(YS);if(!t)throw new Error("<MetaProvider /> should be in the tree");Ne(()=>{const n=t.addTag(e);he(()=>t.removeTag(e,n))})}const MG=e=>e_("style",e,{close:!0}),K6=e=>e_("link",e),J6="/assets/inter-FIwubZjA.woff2",Q6="/assets/BlexMonoNerdFontMono-Regular-DSJ7IWr2.woff2",PG="/assets/BlexMonoNerdFontMono-Medium-BvtJB5kd.woff2",OG="/assets/BlexMonoNerdFontMono-Bold-B8jzonSj.woff2",$G="/assets/CaskaydiaCoveNerdFontMono-Regular-C_H0OSLN.woff2",RG="/assets/CaskaydiaCoveNerdFontMono-Bold-CxABrWmj.woff2",zG="/assets/FiraCodeNerdFontMono-Regular-io3c92n9.woff2",NG="/assets/FiraCodeNerdFontMono-Bold-BjAeM3gJ.woff2",FG="/assets/HackNerdFontMono-Regular-IcpSchWC.woff2",VG="/assets/HackNerdFontMono-Bold-BNG4kp7w.woff2",jG="/assets/InconsolataNerdFontMono-Regular-CRHGEvh2.woff2",BG="/assets/InconsolataNerdFontMono-Bold-oTRjQesI.woff2",HG="/assets/IntoneMonoNerdFontMono-Regular-BwjBdmsJ.woff2",UG="/assets/IntoneMonoNerdFontMono-Bold-BL6LrHzx.woff2",qG="/assets/JetBrainsMonoNerdFontMono-Regular-QVq88ZfU.woff2",ZG="/assets/JetBrainsMonoNerdFontMono-Bold-CU80ifuM.woff2",WG="/assets/MesloLGSNerdFontMono-Regular-j-nTZDWZ.woff2",GG="/assets/MesloLGSNerdFontMono-Bold-CrpVO3ec.woff2",KG="/assets/RobotoMonoNerdFontMono-Regular-DvxS3QZC.woff2",JG="/assets/RobotoMonoNerdFontMono-Bold-DNxuDepp.woff2",QG="/assets/SauceCodeProNerdFontMono-Regular-Ba96Bdne.woff2",XG="/assets/SauceCodeProNerdFontMono-Bold-DloEeUVQ.woff2",YG="/assets/UbuntuMonoNerdFontMono-Regular-tdnXLyap.woff2",eK="/assets/UbuntuMonoNerdFontMono-Bold-wLXUURqB.woff2",tK="/assets/iosevka-nerd-font-DKH7rjGs.woff2",nK="/assets/iosevka-nerd-font-bold-BObfzjZJ.woff2",rK="/assets/GeistMonoNerdFontMono-Regular-DE7-1zdA.woff2",iK="/assets/GeistMonoNerdFontMono-Bold-BUWrnNa7.woff2",oK=[{family:"JetBrains Mono Nerd Font",regular:qG,bold:ZG},{family:"Fira Code Nerd Font",regular:zG,bold:NG},{family:"Cascadia Code Nerd Font",regular:$G,bold:RG},{family:"Hack Nerd Font",regular:FG,bold:VG},{family:"Source Code Pro Nerd Font",regular:QG,bold:XG},{family:"Inconsolata Nerd Font",regular:jG,bold:BG},{family:"Roboto Mono Nerd Font",regular:KG,bold:JG},{family:"Ubuntu Mono Nerd Font",regular:YG,bold:eK},{family:"Intel One Mono Nerd Font",regular:HG,bold:UG},{family:"Meslo LGS Nerd Font",regular:WG,bold:GG},{family:"Iosevka Nerd Font",regular:tK,bold:nK},{family:"GeistMono Nerd Font",regular:rK,bold:iK}],aK=oK.map(e=>`
2268
+ `}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const k of p){let S={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]};const w=Vv(k.htmlStyle||ph(k));w&&(S.properties.style=w);for(const x of i)S=x?.span?.call(m,S,b+1,g,v,k)||S;s==="inline"?a.children.push(S):s==="classic"&&v.children.push(S),g+=k.content.length}if(s==="classic"){for(const k of i)v=k?.line?.call(m,v,b+1)||v;h.push(v),o.push(v)}else s==="inline"&&h.push(v)}),s==="classic"){for(const p of i)u=p?.code?.call(m,u)||u;d.children.push(u);for(const p of i)d=p?.pre?.call(m,d)||d;a.children.push(d)}else if(s==="inline"){const p=[];let b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const g of a.children)g.type==="element"&&g.tagName==="br"?(p.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(g.type==="element"||g.type==="text")&&b.children.push(g);p.push(b);let v={type:"element",tagName:"code",properties:{},children:p};for(const g of i)v=g?.code?.call(m,v)||v;a.children=[];for(let g=0;g<v.children.length;g++){g>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const k=v.children[g];k.type==="element"&&a.children.push(...k.children)}}let f=a;for(const p of i)f=p?.root?.call(m,f)||f;return r&&S0(f,r),f}function uG(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((o,a)=>{const s=!(o.fontStyle&&(o.fontStyle&jt.Underline||o.fontStyle&jt.Strikethrough));s&&o.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(s?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function fG(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,o,a]=r;if(!i&&!a)return n;const s=[{...n,offset:n.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:n.offset}),a&&s.push({content:a,offset:n.offset+i.length+o.length}),s}))}function hG(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],o=Vv(i.htmlStyle||ph(i)),a=Vv(r.htmlStyle||ph(r)),s=i.fontStyle&&(i.fontStyle&jt.Underline||i.fontStyle&jt.Strikethrough),l=r.fontStyle&&(r.fontStyle&jt.Underline||r.fontStyle&jt.Strikethrough);!s&&!l&&o===a?i.content+=r.content:n.push({...r})}return n})}const mG=Ni;function pG(e,t,n){const r={meta:{},options:n,codeToHast:(o,a)=>bh(e,o,a),codeToTokens:(o,a)=>vh(e,o,a)};let i=mG(bh(e,t,n,r));for(const o of gh(n))i=o.postprocess?.call(r,i,n)||i;return i}async function gG(e){const t=await RW(e);return{getLastGrammarState:(...n)=>FW(t,...n),codeToTokensBase:(n,r)=>US(t,n,r),codeToTokensWithThemes:(n,r)=>jS(t,n,r),codeToTokens:(n,r)=>vh(t,n,r),codeToHast:(n,r)=>bh(t,n,r),codeToHtml:(n,r)=>pG(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function vG(e){const t=e.langs,n=e.themes,r=e.engine;async function i(o){function a(u){if(typeof u=="string"){if(u=o.langAlias?.[u]||u,PS(u))return[];const h=t[u];if(!h)throw new en(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}function s(u){if(OS(u))return"none";if(typeof u=="string"){const h=n[u];if(!h)throw new en(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}const l=(o.themes??[]).map(u=>s(u)),c=(o.langs??[]).map(u=>a(u)),d=await gG({engine:o.engine??r(),...o,themes:l,langs:c});return{...d,loadLanguage(...u){return d.loadLanguage(...u.map(a))},loadTheme(...u){return d.loadTheme(...u.map(s))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function bG(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function yG(e,t){const n=bG(e);async function r(i,o){const a=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),s=await t?.guessEmbeddedLanguages?.(i,o.lang,a);return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}var wG=Bb({bundledLanguages:()=>Od,bundledLanguagesAlias:()=>Ub,bundledLanguagesBase:()=>Hb,bundledLanguagesInfo:()=>v0,bundledThemes:()=>Zb,bundledThemesInfo:()=>qb,codeToHast:()=>ZS,codeToHtml:()=>qS,codeToTokens:()=>WS,codeToTokensBase:()=>GS,codeToTokensWithThemes:()=>KS,createHighlighter:()=>Xb,getLastGrammarState:()=>QS,getSingletonHighlighter:()=>JS});const Xb=vG({langs:Od,themes:Zb,engine:()=>(0,DS.createOnigurumaEngine)(A(()=>import("./wasm-Ck_ssClF.js"),[]))}),{codeToHtml:qS,codeToHast:ZS,codeToTokens:WS,codeToTokensBase:GS,codeToTokensWithThemes:KS,getSingletonHighlighter:JS,getLastGrammarState:QS}=yG(Xb,{guessEmbeddedLanguages:WW}),q6=4294967295;var kG=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const a=r?.get(o);if(a){if(a instanceof RegExp)return a;if(n)return null;throw a}try{const s=i(o);return r?.set(o,s),s}catch(s){if(r?.set(o,s),n)return null;throw s}})}findNextMatchSync(e,t,n){const r=typeof e=="string"?e:e.content,i=[];function o(a,s,l=0){return{index:a,captureIndices:s.indices.map(c=>c==null?{start:q6,end:q6,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){const s=this.regexps[a];if(s)try{s.lastIndex=t;const l=s.exec(r);if(!l)continue;if(l.index===t)return o(a,l,0);i.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(i.length){const a=Math.min(...i.map(s=>s[1].index));for(const[s,l,c]of i)if(l.index===a)return o(s,l,c)}return null}};function XS(e,t){return Q5(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function xG(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>XS(n,{target:t.target}),{createScanner(n){return new kG(n,t)},createString(n){return{content:n}}}}var SG=Bb({bundledLanguages:()=>Od,bundledLanguagesAlias:()=>Ub,bundledLanguagesBase:()=>Hb,bundledLanguagesInfo:()=>v0,bundledThemes:()=>Zb,bundledThemesInfo:()=>qb,codeToHast:()=>ZS,codeToHtml:()=>qS,codeToTokens:()=>WS,codeToTokensBase:()=>GS,codeToTokensWithThemes:()=>KS,createHighlighter:()=>Xb,createJavaScriptRegexEngine:()=>xG,createOnigurumaEngine:()=>LS,defaultJavaScriptRegexConstructor:()=>XS,getLastGrammarState:()=>QS,getSingletonHighlighter:()=>JS,loadWasm:()=>Gb});ES(SG,wG);K1("OpenCode",()=>Promise.resolve({name:"OpenCode",colors:{"editor.background":"var(--color-background-stronger)","editor.foreground":"var(--text-base)","gitDecoration.addedResourceForeground":"var(--syntax-diff-add)","gitDecoration.deletedResourceForeground":"var(--syntax-diff-delete)"},tokenColors:[{scope:["comment","punctuation.definition.comment","string.comment"],settings:{foreground:"var(--syntax-comment)"}},{scope:["entity.other.attribute-name"],settings:{foreground:"var(--syntax-property)"}},{scope:["constant","entity.name.constant","variable.other.constant","variable.language","entity"],settings:{foreground:"var(--syntax-constant)"}},{scope:["entity.name","meta.export.default","meta.definition.variable"],settings:{foreground:"var(--syntax-type)"}},{scope:["meta.object.member"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.embedded.expression","meta.template.expression","string.other.begin.yaml","string.other.end.yaml"],settings:{foreground:"var(--syntax-punctuation)"}},{scope:["entity.name.function","support.type.primitive"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["support.class.component"],settings:{foreground:"var(--syntax-type)"}},{scope:"keyword",settings:{foreground:"var(--syntax-keyword)"}},{scope:["keyword.operator","storage.type.function.arrow","punctuation.separator.key-value.css","entity.name.tag.yaml","punctuation.separator.key-value.mapping.yaml"],settings:{foreground:"var(--syntax-operator)"}},{scope:["storage","storage.type"],settings:{foreground:"var(--syntax-keyword)"}},{scope:["storage.modifier.package","storage.modifier.import","storage.type.java"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["string","punctuation.definition.string","string punctuation.section.embedded source","entity.name.tag"],settings:{foreground:"var(--syntax-string)"}},{scope:"support",settings:{foreground:"var(--syntax-primitive)"}},{scope:["support.type.object.module","variable.other.object","support.type.property-name.css"],settings:{foreground:"var(--syntax-object)"}},{scope:"meta.property-name",settings:{foreground:"var(--syntax-property)"}},{scope:"variable",settings:{foreground:"var(--syntax-variable)"}},{scope:"variable.other",settings:{foreground:"var(--syntax-variable)"}},{scope:["invalid.broken","invalid.illegal","invalid.unimplemented","invalid.deprecated","message.error","markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted","brackethighlighter.unmatched","token.error-token"],settings:{foreground:"var(--syntax-critical)"}},{scope:"carriage-return",settings:{foreground:"var(--syntax-keyword)"}},{scope:"string source",settings:{foreground:"var(--syntax-variable)"}},{scope:"string variable",settings:{foreground:"var(--syntax-constant)"}},{scope:["source.regexp","string.regexp","string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition","string.regexp constant.character.escape"],settings:{foreground:"var(--syntax-regexp)"}},{scope:"support.constant",settings:{foreground:"var(--syntax-primitive)"}},{scope:"support.variable",settings:{foreground:"var(--syntax-variable)"}},{scope:"meta.module-reference",settings:{foreground:"var(--syntax-info)"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"var(--syntax-punctuation)"}},{scope:["markup.heading","markup.heading entity.name"],settings:{fontStyle:"bold",foreground:"var(--syntax-info)"}},{scope:"markup.quote",settings:{foreground:"var(--syntax-info)"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"var(--text-strong)"}},{scope:["markup.raw","markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted","markup.changed","punctuation.definition.changed","markup.ignored","markup.untracked"],settings:{foreground:"var(--text-base)"}},{scope:"meta.diff.range",settings:{fontStyle:"bold",foreground:"var(--syntax-unknown)"}},{scope:"meta.diff.header",settings:{foreground:"var(--syntax-unknown)"}},{scope:"meta.separator",settings:{fontStyle:"bold",foreground:"var(--syntax-unknown)"}},{scope:"meta.output",settings:{foreground:"var(--syntax-unknown)"}},{scope:"meta.export.default",settings:{foreground:"var(--syntax-unknown)"}},{scope:["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],settings:{foreground:"var(--syntax-unknown)"}},{scope:["constant.other.reference.link","string.other.link"],settings:{fontStyle:"underline",foreground:"var(--syntax-unknown)"}},{scope:"token.info-token",settings:{foreground:"var(--syntax-info)"}},{scope:"token.warn-token",settings:{foreground:"var(--syntax-warning)"}},{scope:"token.debug-token",settings:{foreground:"var(--syntax-info)"}}],semanticTokenColors:{comment:"var(--syntax-comment)",string:"var(--syntax-string)",number:"var(--syntax-constant)",regexp:"var(--syntax-regexp)",keyword:"var(--syntax-keyword)",variable:"var(--syntax-variable)",parameter:"var(--syntax-variable)",property:"var(--syntax-property)",function:"var(--syntax-primitive)",method:"var(--syntax-primitive)",type:"var(--syntax-type)",class:"var(--syntax-type)",namespace:"var(--syntax-type)",enumMember:"var(--syntax-primitive)","variable.constant":"var(--syntax-constant)","variable.defaultLibrary":"var(--syntax-unknown)"}}));function _G(e){let t=e;const n=/\$\$([\s\S]*?)\$\$/g;t=t.replace(n,(i,o)=>{try{return Nv.renderToString(o,{displayMode:!0,throwOnError:!1})}catch{return`$$${o}$$`}});const r=/(?<!\$)\$(?!\$)((?:[^$\\]|\\.)+?)\$(?!\$)/g;return t=t.replace(r,(i,o)=>{try{return Nv.renderToString(o,{displayMode:!1,throwOnError:!1})}catch{return`$${o}$`}}),t}function AG(e){const t=/(<(?:pre|code|kbd)[^>]*>[\s\S]*?<\/(?:pre|code|kbd)>)/gi;return e.split(t).map((r,i)=>i%2===1?r:_G(r)).join("")}async function CG(e){const t=/<pre><code(?:\s+class="language-([^"]*)")?>([\s\S]*?)<\/code><\/pre>/g,n=[...e.matchAll(t)];if(n.length===0)return e;const r=await Il({themes:["OpenCode"],langs:[]});let i=e;for(const o of n){const[a,s,l]=o,c=l.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'");let d=s||"text";d in Od||(d="text"),r.getLoadedLanguages().includes(d)||await r.loadLanguage(d);const u=r.codeToHtml(c,{lang:d,theme:"OpenCode",tabindex:!1});i=i.replace(a,()=>u)}return i}const{use:tve,provider:EG}=Sn({name:"Marked",init:e=>{const t=qt.use({renderer:{link({href:n,title:r,text:i}){const o=r?` title="${r}"`:"";return`<a href="${n}"${o} class="external-link" target="_blank" rel="noopener noreferrer">${i}</a>`}}},aW({throwOnError:!1,nonStandard:!0}),cW({async highlight(n,r){const i=await Il({themes:["OpenCode"],langs:[]});return r in Od||(r="text"),i.getLoadedLanguages().includes(r)||await i.loadLanguage(r),i.codeToHtml(n,{lang:r||"text",theme:"OpenCode",tabindex:!1})}}));if(e.nativeParser){const n=e.nativeParser;return{async parse(r){const i=await n(r),o=AG(i);return CG(o)}}}return t}}),YS=Ct(),IG=["title","meta"],Z6=[],W6=["name","http-equiv","content","charset","media"].concat(["property"]),G6=(e,t)=>{const n=Object.fromEntries(Object.entries(e.props).filter(([r])=>t.includes(r)).sort());return(Object.hasOwn(n,"name")||Object.hasOwn(n,"property"))&&(n.name=n.name||n.property,delete n.property),e.tag+JSON.stringify(n)};function TG(){if(!je.context){const n=document.head.querySelectorAll("[data-sm]");Array.prototype.forEach.call(n,r=>r.parentNode.removeChild(r))}const e=new Map;function t(n){if(n.ref)return n.ref;let r=document.querySelector(`[data-sm="${n.id}"]`);return r?(r.tagName.toLowerCase()!==n.tag&&(r.parentNode&&r.parentNode.removeChild(r),r=document.createElement(n.tag)),r.removeAttribute("data-sm")):r=document.createElement(n.tag),r}return{addTag(n){if(IG.indexOf(n.tag)!==-1){const o=n.tag==="title"?Z6:W6,a=G6(n,o);e.has(a)||e.set(a,[]);let s=e.get(a),l=s.length;s=[...s,n],e.set(a,s);let c=t(n);n.ref=c,nr(c,n.props);let d=null;for(var r=l-1;r>=0;r--)if(s[r]!=null){d=s[r];break}return c.parentNode!=document.head&&document.head.appendChild(c),d&&d.ref&&d.ref.parentNode&&document.head.removeChild(d.ref),l}let i=t(n);return n.ref=i,nr(i,n.props),i.parentNode!=document.head&&document.head.appendChild(i),-1},removeTag(n,r){const i=n.tag==="title"?Z6:W6,o=G6(n,i);if(n.ref){const a=e.get(o);if(a){if(n.ref.parentNode){n.ref.parentNode.removeChild(n.ref);for(let s=r-1;s>=0;s--)a[s]!=null&&document.head.appendChild(a[s].ref)}a[r]=null,e.set(o,a)}else n.ref.parentNode&&n.ref.parentNode.removeChild(n.ref)}}}}const LG=e=>{const t=TG();return y(YS.Provider,{value:t,get children(){return e.children}})},e_=(e,t,n)=>(DG({tag:e,props:t,setting:n,id:cn(),get name(){return t.name||t.property}}),null);function DG(e){const t=yt(YS);if(!t)throw new Error("<MetaProvider /> should be in the tree");Ne(()=>{const n=t.addTag(e);he(()=>t.removeTag(e,n))})}const MG=e=>e_("style",e,{close:!0}),K6=e=>e_("link",e),J6="/ikanban/assets/inter-FIwubZjA.woff2",Q6="/ikanban/assets/BlexMonoNerdFontMono-Regular-DSJ7IWr2.woff2",PG="/ikanban/assets/BlexMonoNerdFontMono-Medium-BvtJB5kd.woff2",OG="/ikanban/assets/BlexMonoNerdFontMono-Bold-B8jzonSj.woff2",$G="/ikanban/assets/CaskaydiaCoveNerdFontMono-Regular-C_H0OSLN.woff2",RG="/ikanban/assets/CaskaydiaCoveNerdFontMono-Bold-CxABrWmj.woff2",zG="/ikanban/assets/FiraCodeNerdFontMono-Regular-io3c92n9.woff2",NG="/ikanban/assets/FiraCodeNerdFontMono-Bold-BjAeM3gJ.woff2",FG="/ikanban/assets/HackNerdFontMono-Regular-IcpSchWC.woff2",VG="/ikanban/assets/HackNerdFontMono-Bold-BNG4kp7w.woff2",jG="/ikanban/assets/InconsolataNerdFontMono-Regular-CRHGEvh2.woff2",BG="/ikanban/assets/InconsolataNerdFontMono-Bold-oTRjQesI.woff2",HG="/ikanban/assets/IntoneMonoNerdFontMono-Regular-BwjBdmsJ.woff2",UG="/ikanban/assets/IntoneMonoNerdFontMono-Bold-BL6LrHzx.woff2",qG="/ikanban/assets/JetBrainsMonoNerdFontMono-Regular-QVq88ZfU.woff2",ZG="/ikanban/assets/JetBrainsMonoNerdFontMono-Bold-CU80ifuM.woff2",WG="/ikanban/assets/MesloLGSNerdFontMono-Regular-j-nTZDWZ.woff2",GG="/ikanban/assets/MesloLGSNerdFontMono-Bold-CrpVO3ec.woff2",KG="/ikanban/assets/RobotoMonoNerdFontMono-Regular-DvxS3QZC.woff2",JG="/ikanban/assets/RobotoMonoNerdFontMono-Bold-DNxuDepp.woff2",QG="/ikanban/assets/SauceCodeProNerdFontMono-Regular-Ba96Bdne.woff2",XG="/ikanban/assets/SauceCodeProNerdFontMono-Bold-DloEeUVQ.woff2",YG="/ikanban/assets/UbuntuMonoNerdFontMono-Regular-tdnXLyap.woff2",eK="/ikanban/assets/UbuntuMonoNerdFontMono-Bold-wLXUURqB.woff2",tK="/ikanban/assets/iosevka-nerd-font-DKH7rjGs.woff2",nK="/ikanban/assets/iosevka-nerd-font-bold-BObfzjZJ.woff2",rK="/ikanban/assets/GeistMonoNerdFontMono-Regular-DE7-1zdA.woff2",iK="/ikanban/assets/GeistMonoNerdFontMono-Bold-BUWrnNa7.woff2",oK=[{family:"JetBrains Mono Nerd Font",regular:qG,bold:ZG},{family:"Fira Code Nerd Font",regular:zG,bold:NG},{family:"Cascadia Code Nerd Font",regular:$G,bold:RG},{family:"Hack Nerd Font",regular:FG,bold:VG},{family:"Source Code Pro Nerd Font",regular:QG,bold:XG},{family:"Inconsolata Nerd Font",regular:jG,bold:BG},{family:"Roboto Mono Nerd Font",regular:KG,bold:JG},{family:"Ubuntu Mono Nerd Font",regular:YG,bold:eK},{family:"Intel One Mono Nerd Font",regular:HG,bold:UG},{family:"Meslo LGS Nerd Font",regular:WG,bold:GG},{family:"Iosevka Nerd Font",regular:tK,bold:nK},{family:"GeistMono Nerd Font",regular:rK,bold:iK}],aK=oK.map(e=>`
2269
2269
  @font-face {
2270
2270
  font-family: "${e.family}";
2271
2271
  src: url("${e.regular}") format("woff2");
@@ -2389,7 +2389,7 @@ ${t}`,n1=(e,t)=>e<t?-1:e>t?1:0;function O3(e,t){e("message",t.sessionID,n=>{if(!
2389
2389
  `),r=n>=0?t.slice(0,n):t,i=n>=0?t.slice(n+1):vg;return Nn(o=>({value:toe(r,i===vg?void 0:i),dispose:o}))},{maxEntries:Yie,dispose:t=>t.dispose()});return{load:(t,n)=>{const r=`${t}
2390
2390
  ${n??vg}`;return e.get(r).value},clear:()=>e.clear()}}function roe(e){const[t,n]=He({node:{},dir:{"":{expanded:!0}}}),r=new Map,i=()=>{r.clear(),n("node",$t({})),n("dir",$t({})),n("dir","",{expanded:!0})},o=u=>{t.dir[u]||n("dir",u,{expanded:!1})},a=(u,h)=>{const m=e.normalizeDir(u);o(m);const f=t.dir[m];if(!h?.force&&f?.loaded)return Promise.resolve();const p=r.get(m);if(p)return p;n("dir",m,st(g=>{g.loading=!0,g.error=void 0}));const b=e.scope(),v=e.list(m).then(g=>{if(e.scope()!==b)return;const k=t.dir[m]?.children??[],S=g.map(x=>x.path),w=new Set(S);n("node",st(x=>{const L=[];for(const C of k){if(w.has(C))continue;x[C]?.type==="directory"&&L.push(C),delete x[C]}if(L.length>0){const C=Object.keys(x);for(const I of C)for(const $ of L)if(I.startsWith($+"/")){delete x[I];break}}for(const C of g)x[C.path]=C})),n("dir",m,st(x=>{x.loaded=!0,x.loading=!1,x.children=S}))}).catch(g=>{e.scope()===b&&(n("dir",m,st(k=>{k.loading=!1,k.error=g.message})),e.onError(g.message))}).finally(()=>{r.delete(m)});return r.set(m,v),v};return{listDir:a,expandDir:u=>{const h=e.normalizeDir(u);o(h),n("dir",h,"expanded",!0),a(h)},collapseDir:u=>{const h=e.normalizeDir(u);o(h),n("dir",h,"expanded",!1)},dirState:u=>{const h=e.normalizeDir(u);return t.dir[h]},children:u=>{const h=e.normalizeDir(u),m=t.dir[h]?.children;if(!m)return[];const f=[];for(const p of m){const b=t.node[p];b&&f.push(b)}return f},node:u=>t.node[u],isLoaded:u=>!!t.dir[u]?.loaded,reset:i}}function ioe(e,t){if(e.type!=="file.watcher.updated")return;const n=typeof e.properties=="object"&&e.properties?e.properties:void 0,r=typeof n?.file=="string"?n.file:void 0,i=typeof n?.event=="string"?n.event:void 0;if(!r||!i)return;const o=t.normalize(r);if(!o||o.startsWith(".git/"))return;if((t.hasFile(o)||t.isOpen?.(o))&&t.loadFile(o),i==="change"){const s=(()=>{if(o==="")return"";if(t.node(o)?.type==="directory")return o})();if(s===void 0||!t.isDirLoaded(s))return;t.refreshDir(s);return}if(i!=="add"&&i!=="unlink")return;const a=o.split("/").slice(0,-1).join("/");t.isDirLoaded(a)&&t.refreshDir(a)}function ooe(e){return e instanceof Error&&e.message?e.message:typeof e=="string"&&e?e:"Unknown error"}const{use:dve,provider:aoe}=Sn({name:"File",gate:!1,init:()=>{const e=bm();o4();const t=Jr(),n=Kt(),r=Ms(),i=j(()=>e.directory),o=QL(i),a=r.tabs(()=>`${t.dir}${t.id?"/"+t.id:""}`),s=new Map,[l,c]=He({file:{}}),d=roe({scope:i,normalizeDir:o.normalizeDir,list:D=>e.client.file.list({path:D}).then(T=>T.data??[]),onError:D=>{Ft({variant:"error",title:n.t("toast.file.listFailed.title"),description:D})}}),u=D=>{Jie(D,T=>{l.file[T]&&c("file",T,st(M=>{M.content=void 0,M.loaded=!1}))})};se(()=>{i(),s.clear(),Qie(),_t(()=>{c("file",$t({})),d.reset()})});const h=noe(),m=j(()=>h.load(i(),t.id)),f=D=>{D&&(l.file[D]||c("file",D,{path:D,name:$n(D)}))},p=D=>{c("file",D,st(T=>{T.loading=!0,T.error=void 0}))},b=(D,T)=>{c("file",D,st(M=>{M.loaded=!0,M.loading=!1,M.content=T}))},v=(D,T)=>{c("file",D,st(M=>{M.loading=!1,M.error=T})),Ft({variant:"error",title:n.t("toast.file.loadFailed.title"),description:T})},g=(D,T)=>{const M=o.normalize(D);if(!M)return Promise.resolve();const R=i(),G=`${R}
2391
2391
  ${M}`;f(M);const K=l.file[M];if(!T?.force&&K?.loaded)return Promise.resolve();const U=s.get(G);if(U)return U;p(M);const q=e.client.file.read({path:M}).then(X=>{if(i()!==R)return;const le=X.data;b(M,le),le&&(gg(M,F3(le)),u(new Set([M])))}).catch(X=>{i()===R&&v(M,ooe(X))}).finally(()=>{s.delete(G)});return s.set(G,q),q},k=(D,T)=>e.client.find.files({query:D,dirs:T}).then(M=>(M.data??[]).map(o.normalize),()=>[]),S=e.event.listen(D=>{ioe(D.details,{normalize:o.normalize,hasFile:T=>!!l.file[T],isOpen:T=>a.all().some(M=>o.pathFromTab(M)===T),loadFile:T=>{g(T,{force:!0})},node:d.node,isDirLoaded:d.isLoaded,refreshDir:T=>{d.listDir(T,{force:!0})}})}),w=D=>{const T=o.normalize(D),M=l.file[T],R=M?.content;return R?Xie(T)?(gg(T),M):(gg(T,F3(R)),M):M};function x(D,T){return T(o.normalize(D))}const L=D=>x(D,T=>m().scrollTop(T)),C=D=>x(D,T=>m().scrollLeft(T)),I=D=>x(D,T=>m().selectedLines(T)),$=(D,T)=>x(D,M=>m().setScrollTop(M,T)),F=(D,T)=>x(D,M=>m().setScrollLeft(M,T)),N=(D,T)=>x(D,M=>m().setSelectedLines(M,T));return he(()=>{S(),h.clear()}),{ready:()=>m().ready(),normalize:o.normalize,tab:o.tab,pathFromTab:o.pathFromTab,tree:{list:d.listDir,refresh:D=>d.listDir(D,{force:!0}),state:d.dirState,children:d.children,expand:d.expandDir,collapse:d.collapseDir,toggle(D){if(d.dirState(D)?.expanded){d.collapseDir(D);return}d.expandDir(D)}},get:w,load:g,scrollTop:L,scrollLeft:C,setScrollTop:$,setScrollLeft:F,selectedLines:I,setSelectedLines:N,searchFiles:D=>k(D,"false"),searchFilesAndDirectories:D=>k(D,"true")}}});var soe=Q("<div data-slot=dialog-header>"),loe=Q("<div data-slot=dialog-body>"),coe=Q("<div data-component=dialog><div data-slot=dialog-container>");function mo(e){const t=Wl();return(()=>{var n=coe(),r=n.firstChild;return P(r,y(fa.Content,{"data-slot":"dialog-content",get"data-no-header"(){return!e.title&&!e.action?"":void 0},get classList(){return{...e.classList??{},[e.class??""]:!!e.class}},onOpenAutoFocus:i=>{const a=i.currentTarget?.querySelector("[autofocus]");a&&(i.preventDefault(),a.focus())},get children(){return[y(de,{get when(){return e.title||e.action},get children(){var i=soe();return P(i,y(de,{get when(){return e.title},get children(){return y(fa.Title,{"data-slot":"dialog-title",get children(){return e.title}})}}),null),P(i,y(Ur,{get children(){return[y(Ot,{get when(){return e.action},get children(){return e.action}}),y(Ot,{when:!0,get children(){return y(fa.CloseButton,{"data-slot":"dialog-close-button",as:xn,icon:"close",variant:"ghost",get"aria-label"(){return t.t("ui.common.close")}})}})]}}),null),i}}),y(de,{get when(){return e.description},get children(){return y(fa.Description,{"data-slot":"dialog-description",style:{"margin-left":"-4px"},get children(){return e.description}})}}),(()=>{var i=loe();return P(i,()=>e.children),i})()]}})),Ne(i=>{var o=e.fit?!0:void 0,a=e.size||"normal",s=e.transition?!0:void 0;return o!==i.e&&et(n,"data-fit",i.e=o),a!==i.t&&et(n,"data-size",i.t=a),s!==i.a&&et(n,"data-transition",i.a=s),i},{e:void 0,t:void 0,a:void 0}),n})()}function At(e){const[t,n]=ue(e,["variant","size","icon","class","classList"]);return y(ub,ee(n,{"data-component":"button",get"data-size"(){return t.size||"normal"},get"data-variant"(){return t.variant||"secondary"},get"data-icon"(){return t.icon},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return[y(de,{get when(){return t.icon},get children(){return y(Dt,{get name(){return t.icon},size:"small"})}}),Le(()=>e.children)]}}))}var doe=Q('<div class="flex flex-1 min-w-0 min-h-0"tabindex=0 autofocus><div class="flex flex-col flex-1 min-w-0 p-8"><div class="flex flex-col gap-2 pt-22"><div class="flex items-center gap-2"><h1 class="text-16-medium text-text-strong"></h1></div><p class="text-14-regular text-text-base"></p></div><div class=flex-1></div><div class="flex flex-col gap-12"><div class="flex flex-col items-start gap-3">'),uoe=Q('<div class="flex items-center gap-1.5 -my-2.5">'),foe=Q('<button type=button class="h-6 flex items-center cursor-pointer bg-transparent border-none p-0 transition-all duration-200"><div class="w-full h-0.5 rounded-[1px] transition-colors duration-200">'),hoe=Q('<div class="flex-1 min-w-0 bg-surface-base overflow-hidden rounded-r-xl">'),moe=Q('<img class="w-full h-full object-cover">'),poe=Q('<video autoplay loop muted playsinline class="w-full h-full object-cover">');function goe(e){const t=Ui(),n=Kt(),r=Ts(),[i,o]=me(0),a=()=>e.highlights.length,s=()=>Math.max(0,a()-1),l=()=>e.highlights[i()]??e.highlights[s()],c=()=>i()===0,d=()=>i()>=s(),u=()=>a()>1;function h(){d()||o(i()+1)}function m(){t.close()}function f(){r.general.setReleaseNotes(!1),m()}function p(b){if(b.key==="Escape"){b.preventDefault(),m();return}u()&&(b.key==="ArrowLeft"&&!c()&&(b.preventDefault(),o(i()-1)),b.key==="ArrowRight"&&!d()&&(b.preventDefault(),o(i()+1)))}return y(mo,{size:"large",fit:!0,class:"w-[min(calc(100vw-40px),720px)] h-[min(calc(100vh-40px),400px)] -mt-20 min-h-0 overflow-hidden",get children(){var b=doe(),v=b.firstChild,g=v.firstChild,k=g.firstChild,S=k.firstChild,w=k.nextSibling,x=g.nextSibling,L=x.nextSibling,C=L.firstChild;return b.$$keydown=p,P(S,()=>l()?.title??""),P(w,()=>l()?.description??""),P(C,(()=>{var I=Le(()=>!!d());return()=>I()?y(At,{variant:"primary",size:"large",onClick:m,get children(){return n.t("dialog.releaseNotes.action.getStarted")}}):y(At,{variant:"secondary",size:"large",onClick:h,get children(){return n.t("dialog.releaseNotes.action.next")}})})(),null),P(C,y(At,{variant:"ghost",size:"small",onClick:f,get children(){return n.t("dialog.releaseNotes.action.hideFuture")}}),null),P(L,(()=>{var I=Le(()=>!!u());return()=>I()&&(()=>{var $=uoe();return P($,()=>e.highlights.map((F,N)=>(()=>{var D=foe(),T=D.firstChild;return D.$$click=()=>o(N),Ne(M=>{var R=N===i(),G=N!==i(),K=N===i(),U=N!==i();return R!==M.e&&D.classList.toggle("w-8",M.e=R),G!==M.t&&D.classList.toggle("w-3",M.t=G),K!==M.a&&T.classList.toggle("bg-icon-strong-base",M.a=K),U!==M.o&&T.classList.toggle("bg-icon-weak-base",M.o=U),M},{e:void 0,t:void 0,a:void 0,o:void 0}),D})())),$})()})(),null),P(b,(()=>{var I=Le(()=>!!l()?.media);return()=>I()&&(()=>{var $=hoe();return P($,(()=>{var F=Le(()=>l().media.type==="image");return()=>F()?(()=>{var N=moe();return Ne(D=>{var T=l().media.src,M=l().media.alt??l()?.title??n.t("dialog.releaseNotes.media.alt");return T!==D.e&&et(N,"src",D.e=T),M!==D.t&&et(N,"alt",D.t=M),D},{e:void 0,t:void 0}),N})():(()=>{var N=poe();return Ne(()=>et(N,"src",l().media.src)),N})()})()),$})()})(),null),b}})}rr(["keydown","click"]);const voe="https://opencode.ai/changelog.json";function hd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function lo(e){if(typeof e=="string"){const t=e.trim();return t.length>0?t:void 0}if(typeof e=="number")return String(e)}function rf(e){const t=e?.trim();if(t)return t.startsWith("v")||t.startsWith("V")?t.slice(1):t}function boe(e,t){if(!hd(e))return;const n=lo(e.type)?.toLowerCase(),r=lo(e.src)??lo(e.url);if(r&&!(n!=="image"&&n!=="video"))return{type:n,src:r,alt:t}}function j3(e){if(!hd(e))return;const t=lo(e.title);if(!t)return;const n=lo(e.description)??lo(e.shortDescription);if(!n)return;const r=boe(e.media,t);return{title:t,description:n,media:r}}function B3(e){if(!hd(e))return;const t=lo(e.tag)??lo(e.tag_name)??lo(e.name);if(!Array.isArray(e.highlights))return{tag:t,highlights:[]};const n=e.highlights.flatMap(r=>{if(!hd(r))return[];const i=lo(r.source);if(!i)return[];if(!i.toLowerCase().includes("desktop"))return[];if(Array.isArray(r.items))return r.items.map(a=>j3(a)).filter(a=>a!==void 0);const o=j3(r);return o?[o]:[]});return{tag:t,highlights:n}}function yoe(e){if(Array.isArray(e))return e.map(B3).filter(t=>t!==void 0);if(hd(e)&&Array.isArray(e.releases))return e.releases.map(B3).filter(t=>t!==void 0)}function woe(e){const t=rf(e.current),n=rf(e.previous),r=e.releases,i=(()=>{if(!t)return 0;const c=r.findIndex(d=>rf(d.tag)===t);return c===-1?0:c})(),o=(()=>{if(!n)return r.length;const c=r.findIndex((d,u)=>u>=i&&rf(d.tag)===n);return c===-1?r.length:c})(),a=r.slice(i,o).flatMap(c=>c.highlights),s=new Set;return a.filter(c=>{const d=koe(c);return s.has(d)?!1:(s.add(d),!0)}).slice(0,5)}function koe(e){return[e.title,e.description,e.media?.type??"",e.media?.src??""].join(`
2392
- `)}function xoe(e,t,n){const r=yoe(e);return r?.length?woe({releases:r,current:t,previous:n}):[]}const{provider:Soe}=Sn({name:"Highlights",gate:!1,init:()=>{const e=Er(),t=Ui(),n=Ts(),[r,i,o,a]=tr("highlights.v1",He({version:void 0})),[s,l]=me(void 0),[c,d]=me(void 0),u={started:!1};let h;const m=()=>{h!==void 0&&(clearTimeout(h),h=void 0)},f=()=>{e.version&&i("version",e.version)},p=b=>{if(!n.general.releaseNotes()){f();return}const v=e.fetch??fetch,g=new AbortController;he(()=>{g.abort(),m()}),v(voe,{signal:g.signal,headers:{Accept:"application/json"}}).then(k=>k.ok?k.json():void 0).then(k=>{if(!k)return;const S=xoe(k,e.version,b);if(!g.signal.aborted){if(S.length===0){f();return}h=setTimeout(()=>{h=void 0,f(),t.show(()=>y(goe,{highlights:S}))},500)}}).catch(()=>{})};return se(()=>{if(u.started||!a()||!n.ready()||!e.version)return;u.started=!0;const b=r.version;if(!b){i("version",e.version);return}b!==e.version&&(l(b),d(e.version),p(b))}),{ready:a,from:s,to:c,get last(){return r.version},markSeen:f}}});class Ps extends Error{}class _oe extends Ps{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Aoe extends Ps{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Coe extends Ps{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class ml extends Ps{}class tD extends Ps{constructor(t){super(`Invalid unit ${t}`)}}class ur extends Ps{}class ia extends Ps{constructor(){super("Zone is an abstract class")}}const Pe="numeric",ji="short",Wr="long",Rh={year:Pe,month:Pe,day:Pe},nD={year:Pe,month:ji,day:Pe},Eoe={year:Pe,month:ji,day:Pe,weekday:ji},rD={year:Pe,month:Wr,day:Pe},iD={year:Pe,month:Wr,day:Pe,weekday:Wr},oD={hour:Pe,minute:Pe},aD={hour:Pe,minute:Pe,second:Pe},sD={hour:Pe,minute:Pe,second:Pe,timeZoneName:ji},lD={hour:Pe,minute:Pe,second:Pe,timeZoneName:Wr},cD={hour:Pe,minute:Pe,hourCycle:"h23"},dD={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},uD={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ji},fD={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:Wr},hD={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},mD={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},pD={year:Pe,month:ji,day:Pe,hour:Pe,minute:Pe},gD={year:Pe,month:ji,day:Pe,hour:Pe,minute:Pe,second:Pe},Ioe={year:Pe,month:ji,day:Pe,weekday:ji,hour:Pe,minute:Pe},vD={year:Pe,month:Wr,day:Pe,hour:Pe,minute:Pe,timeZoneName:ji},bD={year:Pe,month:Wr,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:ji},yD={year:Pe,month:Wr,day:Pe,weekday:Wr,hour:Pe,minute:Pe,timeZoneName:Wr},wD={year:Pe,month:Wr,day:Pe,weekday:Wr,hour:Pe,minute:Pe,second:Pe,timeZoneName:Wr};class lu{get type(){throw new ia}get name(){throw new ia}get ianaName(){return this.name}get isUniversal(){throw new ia}offsetName(t,n){throw new ia}formatOffset(t,n){throw new ia}offset(t){throw new ia}equals(t){throw new ia}get isValid(){throw new ia}}let bg=null;class ym extends lu{static get instance(){return bg===null&&(bg=new ym),bg}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return DD(t,n,r)}formatOffset(t,n){return Bc(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const o1=new Map;function Toe(e){let t=o1.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),o1.set(e,t)),t}const Loe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Doe(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,l,c,d]=r;return[a,i,o,s,l,c,d]}function Moe(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:a}=n[i],s=Loe[o];o==="era"?r[s]=a:Ye(s)||(r[s]=parseInt(a,10))}return r}const yg=new Map;class Jo extends lu{static create(t){let n=yg.get(t);return n===void 0&&yg.set(t,n=new Jo(t)),n}static resetCache(){yg.clear(),o1.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Jo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return DD(t,n,r,this.name)}formatOffset(t,n){return Bc(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=Toe(this.name);let[i,o,a,s,l,c,d]=r.formatToParts?Moe(r,n):Doe(r,n);s==="BC"&&(i=-Math.abs(i)+1);const h=km({year:i,month:o,day:a,hour:l===24?0:l,minute:c,second:d,millisecond:0});let m=+n;const f=m%1e3;return m-=f>=0?f:1e3+f,(h-m)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let H3={};function Poe(e,t={}){const n=JSON.stringify([e,t]);let r=H3[n];return r||(r=new Intl.ListFormat(e,t),H3[n]=r),r}const a1=new Map;function s1(e,t={}){const n=JSON.stringify([e,t]);let r=a1.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),a1.set(n,r)),r}const l1=new Map;function Ooe(e,t={}){const n=JSON.stringify([e,t]);let r=l1.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),l1.set(n,r)),r}const c1=new Map;function $oe(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=c1.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,t),c1.set(i,o)),o}let Lc=null;function Roe(){return Lc||(Lc=new Intl.DateTimeFormat().resolvedOptions().locale,Lc)}const d1=new Map;function kD(e){let t=d1.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),d1.set(e,t)),t}const u1=new Map;function zoe(e){let t=u1.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...xD,...t}),u1.set(e,t)}return t}function Noe(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=s1(e).resolvedOptions(),i=e}catch{const l=e.substring(0,n);r=s1(l).resolvedOptions(),i=l}const{numberingSystem:o,calendar:a}=r;return[i,o,a]}}function Foe(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Voe(e){const t=[];for(let n=1;n<=12;n++){const r=Xe.utc(2009,n,1);t.push(e(r))}return t}function joe(e){const t=[];for(let n=1;n<=7;n++){const r=Xe.utc(2016,11,13+n);t.push(e(r))}return t}function of(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function Boe(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||kD(e.locale).numberingSystem==="latn"}class Hoe{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Ooe(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):u4(t,3);return On(n,this.padTo)}}}class Uoe{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&Jo.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=s1(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class qoe{constructor(t,n,r){this.opts={style:"long",...r},!n&&TD()&&(this.rtf=$oe(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):hae(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const xD={firstDay:1,minimalDays:4,weekend:[6,7]};class Bt{static fromOpts(t){return Bt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const a=t||kn.defaultLocale,s=a||(o?"en-US":Roe()),l=n||kn.defaultNumberingSystem,c=r||kn.defaultOutputCalendar,d=h1(i)||kn.defaultWeekSettings;return new Bt(s,l,c,d,a)}static resetCache(){Lc=null,a1.clear(),l1.clear(),c1.clear(),d1.clear(),u1.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return Bt.create(t,n,r,i)}constructor(t,n,r,i,o){const[a,s,l]=Noe(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=i,this.intl=Foe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Boe(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Bt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,h1(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return of(this,t,OD,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";if(!this.monthsCache[o][t]){const a=r?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[o][t]=Voe(a)}return this.monthsCache[o][t]})}weekdays(t,n=!1){return of(this,t,zD,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=joe(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return of(this,void 0,()=>ND,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Xe.utc(2016,11,13,9),Xe.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return of(this,t,FD,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Xe.utc(-40,1,1),Xe.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),a=o.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new Hoe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Uoe(t,this.intl,n)}relFormatter(t={}){return new qoe(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Poe(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||kD(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:LD()?zoe(this.locale):xD}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let wg=null;class xr extends lu{static get utcInstance(){return wg===null&&(wg=new xr(0)),wg}static instance(t){return t===0?xr.utcInstance:new xr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new xr(xm(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Bc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Bc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Bc(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Zoe extends lu{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ua(e,t){if(Ye(e)||e===null)return t;if(e instanceof lu)return e;if(Xoe(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?ym.instance:n==="utc"||n==="gmt"?xr.utcInstance:xr.parseSpecifier(n)||Jo.create(e)}else return ya(e)?xr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Zoe(e)}const s4={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},U3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Woe=s4.hanidec.replace(/[\[|\]]/g,"").split("");function Goe(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(s4.hanidec)!==-1)t+=Woe.indexOf(e[n]);else for(const i in U3){const[o,a]=U3[i];r>=o&&r<=a&&(t+=r-o)}}return parseInt(t,10)}else return t}const f1=new Map;function Koe(){f1.clear()}function Ci({numberingSystem:e},t=""){const n=e||"latn";let r=f1.get(n);r===void 0&&(r=new Map,f1.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${s4[n]}${t}`),r.set(t,i)),i}let q3=()=>Date.now(),Z3="system",W3=null,G3=null,K3=null,J3=60,Q3,X3=null;class kn{static get now(){return q3}static set now(t){q3=t}static set defaultZone(t){Z3=t}static get defaultZone(){return ua(Z3,ym.instance)}static get defaultLocale(){return W3}static set defaultLocale(t){W3=t}static get defaultNumberingSystem(){return G3}static set defaultNumberingSystem(t){G3=t}static get defaultOutputCalendar(){return K3}static set defaultOutputCalendar(t){K3=t}static get defaultWeekSettings(){return X3}static set defaultWeekSettings(t){X3=h1(t)}static get twoDigitCutoffYear(){return J3}static set twoDigitCutoffYear(t){J3=t%100}static get throwOnInvalid(){return Q3}static set throwOnInvalid(t){Q3=t}static resetCaches(){Bt.resetCache(),Jo.resetCache(),Xe.resetCache(),Koe()}}class $i{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const SD=[0,31,59,90,120,151,181,212,243,273,304,334],_D=[0,31,60,91,121,152,182,213,244,274,305,335];function ui(e,t){return new $i("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function l4(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function AD(e,t,n){return n+(cu(e)?_D:SD)[t-1]}function CD(e,t){const n=cu(e)?_D:SD,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function c4(e,t){return(e-t+7)%7+1}function zh(e,t=4,n=1){const{year:r,month:i,day:o}=e,a=AD(r,i,o),s=c4(l4(r,i,o),n);let l=Math.floor((a-s+14-t)/7),c;return l<1?(c=r-1,l=md(c,t,n)):l>md(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...Sm(e)}}function Y3(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,a=c4(l4(r,1,t),n),s=Sl(r);let l=i*7+o-a-7+t,c;l<1?(c=r-1,l+=Sl(c)):l>s?(c=r+1,l-=Sl(r)):c=r;const{month:d,day:u}=CD(c,l);return{year:c,month:d,day:u,...Sm(e)}}function kg(e){const{year:t,month:n,day:r}=e,i=AD(t,n,r);return{year:t,ordinal:i,...Sm(e)}}function ex(e){const{year:t,ordinal:n}=e,{month:r,day:i}=CD(t,n);return{year:t,month:r,day:i,...Sm(e)}}function tx(e,t){if(!Ye(e.localWeekday)||!Ye(e.localWeekNumber)||!Ye(e.localWeekYear)){if(!Ye(e.weekday)||!Ye(e.weekNumber)||!Ye(e.weekYear))throw new ml("Cannot mix locale-based week fields with ISO-based week fields");return Ye(e.localWeekday)||(e.weekday=e.localWeekday),Ye(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ye(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Joe(e,t=4,n=1){const r=wm(e.weekYear),i=fi(e.weekNumber,1,md(e.weekYear,t,n)),o=fi(e.weekday,1,7);return r?i?o?!1:ui("weekday",e.weekday):ui("week",e.weekNumber):ui("weekYear",e.weekYear)}function Qoe(e){const t=wm(e.year),n=fi(e.ordinal,1,Sl(e.year));return t?n?!1:ui("ordinal",e.ordinal):ui("year",e.year)}function ED(e){const t=wm(e.year),n=fi(e.month,1,12),r=fi(e.day,1,Nh(e.year,e.month));return t?n?r?!1:ui("day",e.day):ui("month",e.month):ui("year",e.year)}function ID(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=fi(t,0,23)||t===24&&n===0&&r===0&&i===0,a=fi(n,0,59),s=fi(r,0,59),l=fi(i,0,999);return o?a?s?l?!1:ui("millisecond",i):ui("second",r):ui("minute",n):ui("hour",t)}function Ye(e){return typeof e>"u"}function ya(e){return typeof e=="number"}function wm(e){return typeof e=="number"&&e%1===0}function Xoe(e){return typeof e=="string"}function Yoe(e){return Object.prototype.toString.call(e)==="[object Date]"}function TD(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function LD(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function eae(e){return Array.isArray(e)?e:[e]}function nx(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function tae(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function jl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h1(e){if(e==null)return null;if(typeof e!="object")throw new ur("Week settings must be an object");if(!fi(e.firstDay,1,7)||!fi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!fi(t,1,7)))throw new ur("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function fi(e,t,n){return wm(e)&&e>=t&&e<=n}function nae(e,t){return e-t*Math.floor(e/t)}function On(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function da(e){if(!(Ye(e)||e===null||e===""))return parseInt(e,10)}function Ua(e){if(!(Ye(e)||e===null||e===""))return parseFloat(e)}function d4(e){if(!(Ye(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function u4(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function cu(e){return e%4===0&&(e%100!==0||e%400===0)}function Sl(e){return cu(e)?366:365}function Nh(e,t){const n=nae(t-1,12)+1,r=e+(t-n)/12;return n===2?cu(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function km(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function rx(e,t,n){return-c4(l4(e,1,t),n)+t-1}function md(e,t=4,n=1){const r=rx(e,t,n),i=rx(e+1,t,n);return(Sl(e)-r+i)/7}function m1(e){return e>99?e:e>kn.twoDigitCutoffYear?1900+e:2e3+e}function DD(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function xm(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function MD(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new ur(`Invalid unit value ${e}`);return t}function Fh(e,t){const n={};for(const r in e)if(jl(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=MD(i)}return n}function Bc(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${On(n,2)}:${On(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${On(n,2)}${On(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sm(e){return tae(e,["hour","minute","second","millisecond"])}const rae=["January","February","March","April","May","June","July","August","September","October","November","December"],PD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iae=["J","F","M","A","M","J","J","A","S","O","N","D"];function OD(e){switch(e){case"narrow":return[...iae];case"short":return[...PD];case"long":return[...rae];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const $D=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],RD=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],oae=["M","T","W","T","F","S","S"];function zD(e){switch(e){case"narrow":return[...oae];case"short":return[...RD];case"long":return[...$D];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ND=["AM","PM"],aae=["Before Christ","Anno Domini"],sae=["BC","AD"],lae=["B","A"];function FD(e){switch(e){case"narrow":return[...lae];case"short":return[...sae];case"long":return[...aae];default:return null}}function cae(e){return ND[e.hour<12?0:1]}function dae(e,t){return zD(t)[e.weekday-1]}function uae(e,t){return OD(t)[e.month-1]}function fae(e,t){return FD(t)[e.year<0?0:1]}function hae(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const u=e==="days";switch(t){case 1:return u?"tomorrow":`next ${i[e][0]}`;case-1:return u?"yesterday":`last ${i[e][0]}`;case 0:return u?"today":`this ${i[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=i[e],d=r?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return a?`${s} ${d} ago`:`in ${s} ${d}`}function ix(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const mae={D:Rh,DD:nD,DDD:rD,DDDD:iD,t:oD,tt:aD,ttt:sD,tttt:lD,T:cD,TT:dD,TTT:uD,TTTT:fD,f:hD,ff:pD,fff:vD,ffff:yD,F:mD,FF:gD,FFF:bD,FFFF:wD};class fr{static create(t,n={}){return new fr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?((r.length>0||i)&&o.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return mae[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return On(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(m,f)=>this.loc.extract(t,m,f),a=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",s=()=>r?cae(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,f)=>r?uae(t,m):o(f?{month:m}:{month:m,day:"numeric"},"month"),c=(m,f)=>r?dae(t,m):o(f?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const f=fr.macroTokenToFormatOpts(m);return f?this.formatWithSystemDefault(t,f):m},u=m=>r?fae(t,m):o({era:m},"era"),h=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(m)}};return ix(fr.parseFormat(n),h)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(d,u)=>h=>{const m=i(h);if(m){const f=u.isNegativeDuration&&m!==u.largestUnit?r:1;let p;return this.opts.signMode==="negativeLargestOnly"&&m!==u.largestUnit?p="never":this.opts.signMode==="all"?p="always":p="auto",this.num(d.get(m)*f,h.length,p)}else return h},a=fr.parseFormat(n),s=a.reduce((d,{literal:u,val:h})=>u?d:d.concat(h),[]),l=t.shiftTo(...s.map(i).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return ix(a,o(l,c))}}const VD=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ec(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function tc(...e){return t=>e.reduce(([n,r,i],o)=>{const[a,s,l]=o(t,i);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function nc(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function jD(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=da(t[n+i]);return[r,null,n+i]}}const BD=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,pae=`(?:${BD.source}?(?:\\[(${VD.source})\\])?)?`,f4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,HD=RegExp(`${f4.source}${pae}`),h4=RegExp(`(?:[Tt]${HD.source})?`),gae=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vae=/(\d{4})-?W(\d\d)(?:-?(\d))?/,bae=/(\d{4})-?(\d{3})/,yae=jD("weekYear","weekNumber","weekDay"),wae=jD("year","ordinal"),kae=/(\d{4})-(\d\d)-(\d\d)/,UD=RegExp(`${f4.source} ?(?:${BD.source}|(${VD.source}))?`),xae=RegExp(`(?: ${UD.source})?`);function _l(e,t,n){const r=e[t];return Ye(r)?n:da(r)}function Sae(e,t){return[{year:_l(e,t),month:_l(e,t+1,1),day:_l(e,t+2,1)},null,t+3]}function rc(e,t){return[{hours:_l(e,t,0),minutes:_l(e,t+1,0),seconds:_l(e,t+2,0),milliseconds:d4(e[t+3])},null,t+4]}function du(e,t){const n=!e[t]&&!e[t+1],r=xm(e[t+1],e[t+2]),i=n?null:xr.instance(r);return[{},i,t+3]}function uu(e,t){const n=e[t]?Jo.create(e[t]):null;return[{},n,t+1]}const _ae=RegExp(`^T?${f4.source}$`),Aae=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Cae(e){const[t,n,r,i,o,a,s,l,c]=e,d=t[0]==="-",u=l&&l[0]==="-",h=(m,f=!1)=>m!==void 0&&(f||m&&d)?-m:m;return[{years:h(Ua(n)),months:h(Ua(r)),weeks:h(Ua(i)),days:h(Ua(o)),hours:h(Ua(a)),minutes:h(Ua(s)),seconds:h(Ua(l),l==="-0"),milliseconds:h(d4(c),u)}]}const Eae={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function m4(e,t,n,r,i,o,a){const s={year:t.length===2?m1(da(t)):da(t),month:PD.indexOf(n)+1,day:da(r),hour:da(i),minute:da(o)};return a&&(s.second=da(a)),e&&(s.weekday=e.length>3?$D.indexOf(e)+1:RD.indexOf(e)+1),s}const Iae=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Tae(e){const[,t,n,r,i,o,a,s,l,c,d,u]=e,h=m4(t,i,r,n,o,a,s);let m;return l?m=Eae[l]:c?m=0:m=xm(d,u),[h,new xr(m)]}function Lae(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Dae=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Mae=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Pae=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ox(e){const[,t,n,r,i,o,a,s]=e;return[m4(t,i,r,n,o,a,s),xr.utcInstance]}function Oae(e){const[,t,n,r,i,o,a,s]=e;return[m4(t,s,n,r,i,o,a),xr.utcInstance]}const $ae=ec(gae,h4),Rae=ec(vae,h4),zae=ec(bae,h4),Nae=ec(HD),qD=tc(Sae,rc,du,uu),Fae=tc(yae,rc,du,uu),Vae=tc(wae,rc,du,uu),jae=tc(rc,du,uu);function Bae(e){return nc(e,[$ae,qD],[Rae,Fae],[zae,Vae],[Nae,jae])}function Hae(e){return nc(Lae(e),[Iae,Tae])}function Uae(e){return nc(e,[Dae,ox],[Mae,ox],[Pae,Oae])}function qae(e){return nc(e,[Aae,Cae])}const Zae=tc(rc);function Wae(e){return nc(e,[_ae,Zae])}const Gae=ec(kae,xae),Kae=ec(UD),Jae=tc(rc,du,uu);function Qae(e){return nc(e,[Gae,qD],[Kae,Jae])}const ax="Invalid Duration",ZD={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Xae={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...ZD},ti=146097/400,Ks=146097/4800,Yae={years:{quarters:4,months:12,weeks:ti/7,days:ti,hours:ti*24,minutes:ti*24*60,seconds:ti*24*60*60,milliseconds:ti*24*60*60*1e3},quarters:{months:3,weeks:ti/28,days:ti/4,hours:ti*24/4,minutes:ti*24*60/4,seconds:ti*24*60*60/4,milliseconds:ti*24*60*60*1e3/4},months:{weeks:Ks/7,days:Ks,hours:Ks*24,minutes:Ks*24*60,seconds:Ks*24*60*60,milliseconds:Ks*24*60*60*1e3},...ZD},is=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ese=is.slice(0).reverse();function Eo(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Lt(r)}function WD(e,t){let n=t.milliseconds??0;for(const r of ese.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function sx(e,t){const n=WD(e,t)<0?-1:1;is.reduceRight((r,i)=>{if(Ye(t[i]))return r;if(r){const o=t[r]*n,a=e[i][r],s=Math.floor(o/a);t[i]+=s*n,t[r]-=s*a*n}return i},null),is.reduce((r,i)=>{if(Ye(t[i]))return r;if(r){const o=t[r]%1;t[r]-=o,t[i]+=o*e[r][i]}return i},null)}function lx(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Lt{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Yae:Xae;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||Bt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Lt.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new ur(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Lt({values:Fh(t,Lt.normalizeUnit),loc:Bt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(ya(t))return Lt.fromMillis(t);if(Lt.isDuration(t))return t;if(typeof t=="object")return Lt.fromObject(t);throw new ur(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=qae(t);return r?Lt.fromObject(r,n):Lt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Wae(t);return r?Lt.fromObject(r,n):Lt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new ur("need to specify a reason the Duration is invalid");const r=t instanceof $i?t:new $i(t,n);if(kn.throwOnInvalid)throw new Coe(r);return new Lt({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new tD(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?fr.create(this.loc,r).formatDurationFromString(this,t):ax}toHuman(t={}){if(!this.isValid)return ax;const n=t.showZeros!==!1,r=is.map(i=>{const o=this.values[i];return Ye(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=u4(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Xe.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?WD(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t),r={};for(const i of is)(jl(n.values,i)||jl(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Eo(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=MD(t(this.values[r],r));return Eo(this,{values:n},!0)}get(t){return this[Lt.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Fh(t,Lt.normalizeUnit)};return Eo(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Eo(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return sx(this.matrix,t),Eo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=lx(this.normalize().shiftToAll().toObject());return Eo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Lt.normalizeUnit(a));const n={},r={},i=this.toObject();let o;for(const a of is)if(t.indexOf(a)>=0){o=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;ya(i[a])&&(s+=i[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else ya(i[a])&&(r[a]=i[a]);for(const a in r)r[a]!==0&&(n[o]+=a===o?r[a]:r[a]/this.matrix[o][a]);return sx(this.matrix,n),Eo(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Eo(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=lx(this.values);return Eo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of is)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Js="Invalid Interval";function tse(e,t){return!e||!e.isValid?wn.invalid("missing or invalid start"):!t||!t.isValid?wn.invalid("missing or invalid end"):t<e?wn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class wn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new ur("need to specify a reason the Interval is invalid");const r=t instanceof $i?t:new $i(t,n);if(kn.throwOnInvalid)throw new Aoe(r);return new wn({invalid:r})}static fromDateTimes(t,n){const r=yc(t),i=yc(n),o=tse(r,i);return o??new wn({start:r,end:i})}static after(t,n){const r=Lt.fromDurationLike(n),i=yc(t);return wn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=Lt.fromDurationLike(n),i=yc(t);return wn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,a;try{o=Xe.fromISO(r,n),a=o.isValid}catch{a=!1}let s,l;try{s=Xe.fromISO(i,n),l=s.isValid}catch{l=!1}if(a&&l)return wn.fromDateTimes(o,s);if(a){const c=Lt.fromISO(i,n);if(c.isValid)return wn.after(o,c)}else if(l){const c=Lt.fromISO(r,n);if(c.isValid)return wn.before(s,c)}}return wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n?.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?wn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(yc).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const a=n[o]||this.e,s=+a>+this.e?this.e:a;r.push(wn.fromDateTimes(i,s)),i=s,o+=1}return r}splitBy(t){const n=Lt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const a=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));o=+s>+this.e?this.e:s,a.push(wn.fromDateTimes(r,o)),r=o,i+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:wn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return wn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[i,o.union(a)]:[i.concat([o]),a]:[i,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(wn.fromDateTimes(n,l.time)),n=null);return wn.merge(i)}difference(...t){return wn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Js}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Rh,n={}){return this.isValid?fr.create(this.s.loc.clone(n),t).formatInterval(this):Js}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Js}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Js}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Js}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Js}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Lt.invalid(this.invalidReason)}mapEndpoints(t){return wn.fromDateTimes(t(this.s),t(this.e))}}class af{static hasDST(t=kn.defaultZone){const n=Xe.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Jo.isValidZone(t)}static normalizeZone(t){return ua(t,kn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Bt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Bt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Bt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Bt.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Bt.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Bt.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Bt.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Bt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Bt.create(n,null,"gregory").eras(t)}static features(){return{relative:TD(),localeWeek:LD()}}}function cx(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Lt.fromMillis(r).as("days"))}function nse(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=cx(l,c);return(d-d%7)/7}],["days",cx]],i={},o=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,i[l]=c(e,t),s=o.plus(i),s>t?(i[l]--,e=o.plus(i),e>t&&(s=e,i[l]--,e=o.plus(i))):e=s);return[e,i,s,a]}function rse(e,t,n,r){let[i,o,a,s]=nse(e,t,n);const l=t-i,c=n.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);c.length===0&&(a<t&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+l/(a-i)));const d=Lt.fromObject(o,r);return c.length>0?Lt.fromMillis(l,r).shiftTo(...c).plus(d):d}const ise="missing Intl.DateTimeFormat.formatToParts support";function Nt(e,t=n=>n){return{regex:e,deser:([n])=>t(Goe(n))}}const ose=" ",GD=`[ ${ose}]`,KD=new RegExp(GD,"g");function ase(e){return e.replace(/\./g,"\\.?").replace(KD,GD)}function dx(e){return e.replace(/\./g,"").replace(KD," ").toLowerCase()}function Ei(e,t){return e===null?null:{regex:RegExp(e.map(ase).join("|")),deser:([n])=>e.findIndex(r=>dx(n)===dx(r))+t}}function ux(e,t){return{regex:e,deser:([,n,r])=>xm(n,r),groups:t}}function sf(e){return{regex:e,deser:([t])=>t}}function sse(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function lse(e,t){const n=Ci(t),r=Ci(t,"{2}"),i=Ci(t,"{3}"),o=Ci(t,"{4}"),a=Ci(t,"{6}"),s=Ci(t,"{1,2}"),l=Ci(t,"{1,3}"),c=Ci(t,"{1,6}"),d=Ci(t,"{1,9}"),u=Ci(t,"{2,4}"),h=Ci(t,"{4,6}"),m=b=>({regex:RegExp(sse(b.val)),deser:([v])=>v,literal:!0}),p=(b=>{if(e.literal)return m(b);switch(b.val){case"G":return Ei(t.eras("short"),0);case"GG":return Ei(t.eras("long"),0);case"y":return Nt(c);case"yy":return Nt(u,m1);case"yyyy":return Nt(o);case"yyyyy":return Nt(h);case"yyyyyy":return Nt(a);case"M":return Nt(s);case"MM":return Nt(r);case"MMM":return Ei(t.months("short",!0),1);case"MMMM":return Ei(t.months("long",!0),1);case"L":return Nt(s);case"LL":return Nt(r);case"LLL":return Ei(t.months("short",!1),1);case"LLLL":return Ei(t.months("long",!1),1);case"d":return Nt(s);case"dd":return Nt(r);case"o":return Nt(l);case"ooo":return Nt(i);case"HH":return Nt(r);case"H":return Nt(s);case"hh":return Nt(r);case"h":return Nt(s);case"mm":return Nt(r);case"m":return Nt(s);case"q":return Nt(s);case"qq":return Nt(r);case"s":return Nt(s);case"ss":return Nt(r);case"S":return Nt(l);case"SSS":return Nt(i);case"u":return sf(d);case"uu":return sf(s);case"uuu":return Nt(n);case"a":return Ei(t.meridiems(),0);case"kkkk":return Nt(o);case"kk":return Nt(u,m1);case"W":return Nt(s);case"WW":return Nt(r);case"E":case"c":return Nt(n);case"EEE":return Ei(t.weekdays("short",!1),1);case"EEEE":return Ei(t.weekdays("long",!1),1);case"ccc":return Ei(t.weekdays("short",!0),1);case"cccc":return Ei(t.weekdays("long",!0),1);case"Z":case"ZZ":return ux(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return ux(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return sf(/[a-z_+-/]{1,256}?/i);case" ":return sf(/[^\S\n\r]/);default:return m(b)}})(e)||{invalidReason:ise};return p.token=e,p}const cse={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function dse(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const o=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=cse[a];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function use(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function fse(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const a in n)if(jl(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+l))),o+=l}return[r,i]}else return[r,{}]}function hse(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Ye(e.z)||(n=Jo.create(e.z)),Ye(e.Z)||(n||(n=new xr(e.Z)),r=e.Z),Ye(e.q)||(e.M=(e.q-1)*3+1),Ye(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ye(e.u)||(e.S=d4(e.u)),[Object.keys(e).reduce((o,a)=>{const s=t(a);return s&&(o[s]=e[a]),o},{}),n,r]}let xg=null;function mse(){return xg||(xg=Xe.fromMillis(1555555555555)),xg}function pse(e,t){if(e.literal)return e;const n=fr.macroTokenToFormatOpts(e.val),r=YD(n,t);return r==null||r.includes(void 0)?e:r}function JD(e,t){return Array.prototype.concat(...e.map(n=>pse(n,t)))}class QD{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=JD(fr.parseFormat(n),t),this.units=this.tokens.map(r=>lse(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=use(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=fse(t,this.regex,this.handlers),[i,o,a]=r?hse(r):[null,null,void 0];if(jl(r,"a")&&jl(r,"H"))throw new ml("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:o,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function XD(e,t,n){return new QD(e,n).explainFromTokens(t)}function gse(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:a}=XD(e,t,n);return[r,i,o,a]}function YD(e,t){if(!e)return null;const r=fr.create(t,e).dtFormatter(mse()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(a=>dse(a,e,o))}const Sg="Invalid DateTime",fx=864e13;function Dc(e){return new $i("unsupported zone",`the zone "${e.name}" is not supported`)}function _g(e){return e.weekData===null&&(e.weekData=zh(e.c)),e.weekData}function Ag(e){return e.localWeekData===null&&(e.localWeekData=zh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function qa(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Xe({...n,...t,old:n})}function eM(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function lf(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Lf(e,t,n){return eM(km(e),t,n)}function hx(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,Nh(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Lt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=km(o);let[l,c]=eM(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function Qs(e,t,n,r,i,o){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=Xe.fromObject(e,{...n,zone:l,specificOffset:o});return a?c:c.setZone(s)}else return Xe.invalid(new $i("unparsable",`the input "${i}" can't be parsed as ${r}`))}function cf(e,t,n=!0){return e.isValid?fr.create(Bt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Cg(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=On(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=On(e.c.month),n==="month")return i;i+="-"}else if(i+=On(e.c.month),n==="month")return i;return i+=On(e.c.day),i}function mx(e,t,n,r,i,o,a){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=On(e.c.hour),a==="hour")break;if(t){if(l+=":",l+=On(e.c.minute),a==="minute")break;s&&(l+=":",l+=On(e.c.second))}else{if(l+=On(e.c.minute),a==="minute")break;s&&(l+=On(e.c.second))}if(a==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=On(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?l+="Z":e.o<0?(l+="-",l+=On(Math.trunc(-e.o/60)),l+=":",l+=On(Math.trunc(-e.o%60))):(l+="+",l+=On(Math.trunc(e.o/60)),l+=":",l+=On(Math.trunc(e.o%60)))),o&&(l+="["+e.zone.ianaName+"]"),l}const tM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},vse={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bse={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Df=["year","month","day","hour","minute","second","millisecond"],yse=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wse=["year","ordinal","hour","minute","second","millisecond"];function Mf(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new tD(e);return t}function px(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mf(e)}}function kse(e){if(Mc===void 0&&(Mc=kn.now()),e.type!=="iana")return e.offset(Mc);const t=e.name;let n=p1.get(t);return n===void 0&&(n=e.offset(Mc),p1.set(t,n)),n}function gx(e,t){const n=ua(t.zone,kn.defaultZone);if(!n.isValid)return Xe.invalid(Dc(n));const r=Bt.fromObject(t);let i,o;if(Ye(e.year))i=kn.now();else{for(const l of Df)Ye(e[l])&&(e[l]=tM[l]);const a=ED(e)||ID(e);if(a)return Xe.invalid(a);const s=kse(n);[i,o]=Lf(e,s,n)}return new Xe({ts:i,zone:n,loc:r,o})}function vx(e,t,n){const r=Ye(n.round)?!0:n.round,i=Ye(n.rounding)?"trunc":n.rounding,o=(s,l)=>(s=u4(s,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(s,l)),a=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return o(a(n.unit),n.unit);for(const s of n.units){const l=a(s);if(Math.abs(l)>=1)return o(l,s)}return o(e>t?-0:0,n.units[n.units.length-1])}function bx(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let Mc;const p1=new Map;class Xe{constructor(t){const n=t.zone||kn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new $i("invalid input"):null)||(n.isValid?null:Dc(n));this.ts=Ye(t.ts)?kn.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const s=ya(t.o)&&!t.old?t.o:n.offset(this.ts);i=lf(this.ts,s),r=Number.isNaN(i.year)?new $i("invalid input"):null,i=r?null:i,o=r?null:s}this._zone=n,this.loc=t.loc||Bt.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Xe({})}static local(){const[t,n]=bx(arguments),[r,i,o,a,s,l,c]=n;return gx({year:r,month:i,day:o,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=bx(arguments),[r,i,o,a,s,l,c]=n;return t.zone=xr.utcInstance,gx({year:r,month:i,day:o,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=Yoe(t)?t.valueOf():NaN;if(Number.isNaN(r))return Xe.invalid("invalid input");const i=ua(n.zone,kn.defaultZone);return i.isValid?new Xe({ts:r,zone:i,loc:Bt.fromObject(n)}):Xe.invalid(Dc(i))}static fromMillis(t,n={}){if(ya(t))return t<-fx||t>fx?Xe.invalid("Timestamp out of range"):new Xe({ts:t,zone:ua(n.zone,kn.defaultZone),loc:Bt.fromObject(n)});throw new ur(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ya(t))return new Xe({ts:t*1e3,zone:ua(n.zone,kn.defaultZone),loc:Bt.fromObject(n)});throw new ur("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=ua(n.zone,kn.defaultZone);if(!r.isValid)return Xe.invalid(Dc(r));const i=Bt.fromObject(n),o=Fh(t,px),{minDaysInFirstWeek:a,startOfWeek:s}=tx(o,i),l=kn.now(),c=Ye(n.specificOffset)?r.offset(l):n.specificOffset,d=!Ye(o.ordinal),u=!Ye(o.year),h=!Ye(o.month)||!Ye(o.day),m=u||h,f=o.weekYear||o.weekNumber;if((m||d)&&f)throw new ml("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new ml("Can't mix ordinal dates with month/day");const p=f||o.weekday&&!m;let b,v,g=lf(l,c);p?(b=yse,v=vse,g=zh(g,a,s)):d?(b=wse,v=bse,g=kg(g)):(b=Df,v=tM);let k=!1;for(const $ of b){const F=o[$];Ye(F)?k?o[$]=v[$]:o[$]=g[$]:k=!0}const S=p?Joe(o,a,s):d?Qoe(o):ED(o),w=S||ID(o);if(w)return Xe.invalid(w);const x=p?Y3(o,a,s):d?ex(o):o,[L,C]=Lf(x,c,r),I=new Xe({ts:L,zone:r,o:C,loc:i});return o.weekday&&m&&t.weekday!==I.weekday?Xe.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${I.toISO()}`):I.isValid?I:Xe.invalid(I.invalid)}static fromISO(t,n={}){const[r,i]=Bae(t);return Qs(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=Hae(t);return Qs(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Uae(t);return Qs(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Ye(t)||Ye(n))throw new ur("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,a=Bt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,l,c,d]=gse(a,t,n);return d?Xe.invalid(d):Qs(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return Xe.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=Qae(t);return Qs(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new ur("need to specify a reason the DateTime is invalid");const r=t instanceof $i?t:new $i(t,n);if(kn.throwOnInvalid)throw new _oe(r);return new Xe({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=YD(t,Bt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return JD(fr.parseFormat(t),Bt.fromObject(n)).map(i=>i.val).join("")}static resetCache(){Mc=void 0,p1.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?_g(this).weekYear:NaN}get weekNumber(){return this.isValid?_g(this).weekNumber:NaN}get weekday(){return this.isValid?_g(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ag(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ag(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ag(this).weekYear:NaN}get ordinal(){return this.isValid?kg(this.c).ordinal:NaN}get monthShort(){return this.isValid?af.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?af.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?af.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?af.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=km(this.c),i=this.zone.offset(r-t),o=this.zone.offset(r+t),a=this.zone.offset(r-i*n),s=this.zone.offset(r-o*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,d=lf(l,a),u=lf(c,s);return d.hour===u.hour&&d.minute===u.minute&&d.second===u.second&&d.millisecond===u.millisecond?[qa(this,{ts:l}),qa(this,{ts:c})]:[this]}get isInLeapYear(){return cu(this.year)}get daysInMonth(){return Nh(this.year,this.month)}get daysInYear(){return this.isValid?Sl(this.year):NaN}get weeksInWeekYear(){return this.isValid?md(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?md(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=fr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(xr.instance(t),n)}toLocal(){return this.setZone(kn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=ua(t,kn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),a=this.toObject();[i]=Lf(a,o,t)}return qa(this,{ts:i,zone:t})}else return Xe.invalid(Dc(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return qa(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Fh(t,px),{minDaysInFirstWeek:r,startOfWeek:i}=tx(n,this.loc),o=!Ye(n.weekYear)||!Ye(n.weekNumber)||!Ye(n.weekday),a=!Ye(n.ordinal),s=!Ye(n.year),l=!Ye(n.month)||!Ye(n.day),c=s||l,d=n.weekYear||n.weekNumber;if((c||a)&&d)throw new ml("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new ml("Can't mix ordinal dates with month/day");let u;o?u=Y3({...zh(this.c,r,i),...n},r,i):Ye(n.ordinal)?(u={...this.toObject(),...n},Ye(n.day)&&(u.day=Math.min(Nh(u.year,u.month),u.day))):u=ex({...kg(this.c),...n});const[h,m]=Lf(u,this.o,this.zone);return qa(this,{ts:h,o:m})}plus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t);return qa(this,hx(this,n))}minus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t).negate();return qa(this,hx(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=Lt.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:a}=this;a<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(i==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?fr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Sg}toLocaleString(t=Rh,n={}){return this.isValid?fr.create(this.loc.clone(n),t).formatDateTime(this):Sg}toLocaleParts(t={}){return this.isValid?fr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Mf(a);const s=t==="extended";let l=Cg(this,s,a);return Df.indexOf(a)>=3&&(l+="T"),l+=mx(this,s,n,r,i,o,a),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Cg(this,t==="extended",Mf(n)):null}toISOWeekDate(){return cf(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:a="extended",precision:s="milliseconds"}={}){return this.isValid?(s=Mf(s),(i&&Df.indexOf(s)>=3?"T":"")+mx(this,a==="extended",n,t,r,o,s)):null}toRFC2822(){return cf(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return cf(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Cg(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),cf(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Sg}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Lt.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=eae(n).map(Lt.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,l=a?t:this,c=rse(s,l,o,i);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(Xe.now(),t,n)}until(t){return this.isValid?wn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n,r)<=i&&i<=o.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Xe.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),vx(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?vx(t.base||Xe.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Xe.isDateTime))throw new ur("min requires all arguments be DateTimes");return nx(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Xe.isDateTime))throw new ur("max requires all arguments be DateTimes");return nx(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,a=Bt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return XD(a,t,n)}static fromStringExplain(t,n,r={}){return Xe.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=Bt.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new QD(o,t)}static fromFormatParser(t,n,r={}){if(Ye(t)||Ye(n))throw new ur("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,a=Bt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!a.equals(n.locale))throw new ur(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?Xe.invalid(d):Qs(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Rh}static get DATE_MED(){return nD}static get DATE_MED_WITH_WEEKDAY(){return Eoe}static get DATE_FULL(){return rD}static get DATE_HUGE(){return iD}static get TIME_SIMPLE(){return oD}static get TIME_WITH_SECONDS(){return aD}static get TIME_WITH_SHORT_OFFSET(){return sD}static get TIME_WITH_LONG_OFFSET(){return lD}static get TIME_24_SIMPLE(){return cD}static get TIME_24_WITH_SECONDS(){return dD}static get TIME_24_WITH_SHORT_OFFSET(){return uD}static get TIME_24_WITH_LONG_OFFSET(){return fD}static get DATETIME_SHORT(){return hD}static get DATETIME_SHORT_WITH_SECONDS(){return mD}static get DATETIME_MED(){return pD}static get DATETIME_MED_WITH_SECONDS(){return gD}static get DATETIME_MED_WITH_WEEKDAY(){return Ioe}static get DATETIME_FULL(){return vD}static get DATETIME_FULL_WITH_SECONDS(){return bD}static get DATETIME_HUGE(){return yD}static get DATETIME_HUGE_WITH_SECONDS(){return wD}}function yc(e){if(Xe.isDateTime(e))return e;if(e&&e.valueOf&&ya(e.valueOf()))return Xe.fromJSDate(e);if(e&&typeof e=="object")return Xe.fromObject(e);throw new ur(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function nM(e,t,n){let r=i=>e(i,...t);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:t})}function Na(e,t,n){let r=e.length-t.length;if(r===0)return e(...t);if(r===1)return nM(e,t,n);throw Error("Wrong number of arguments")}const p4={done:!1,hasNext:!1},xse=e=>({hasNext:!0,next:e,done:!1});function ks(e,...t){let n=e,r=t.map(o=>"lazy"in o?Sse(o):void 0),i=0;for(;i<t.length;){if(r[i]===void 0||!_se(n)){let l=t[i];n=l(n),i+=1;continue}let o=[];for(let l=i;l<t.length;l++){let c=r[l];if(c===void 0||(o.push(c),c.isSingle))break}let a=[];for(let l of n)if(rM(l,a,o))break;let{isSingle:s}=o.at(-1);n=s?a[0]:a,i+=o.length}return n}function rM(e,t,n){if(n.length===0)return t.push(e),!1;let r=e,i=p4,o=!1;for(let[a,s]of n.entries()){let{index:l,items:c}=s;if(c.push(r),i=s(r,l,c),s.index+=1,i.hasNext){if(i.hasMany??!1){for(let d of i.next)if(rM(d,t,n.slice(a+1)))return!0;return o}r=i.next}if(!i.hasNext)break;i.done&&(o=!0)}return i.hasNext&&t.push(r),o}function Sse(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??!1,index:0,items:[]})}function _se(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function Ase(e,t){let n=t.length-e.length;if(n===1){let[r,...i]=t;return ks(r,{lazy:e,lazyArgs:i})}if(n===0){let r={lazy:e,lazyArgs:t};return Object.assign(i=>ks(i,r),r)}throw Error("Wrong number of arguments")}function Cse(...e){return Na(Ese,e)}const Ese=(e,t)=>e.length>=t,iM={asc:(e,t)=>e>t,desc:(e,t)=>e<t};function Ise(e,t){let[n,...r]=t;if(!Tse(n))return e(n,g1(...r));let i=g1(n,...r);return o=>e(o,i)}function g1(e,t,...n){let r=typeof e=="function"?e:e[0],i=typeof e=="function"?"asc":e[1],{[i]:o}=iM,a=t===void 0?void 0:g1(t,...n);return(s,l)=>{let c=r(s),d=r(l);return o(c,d)?1:o(d,c)?-1:a?.(s,l)??0}}function Tse(e){if(yx(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[t,n,...r]=e;return yx(t)&&typeof n=="string"&&n in iM&&r.length===0}const yx=e=>typeof e=="function"&&e.length===1;function oM(...e){return Na(Object.entries,e)}function Lse(...e){return Na(Dse,e,Mse)}const Dse=(e,t)=>e.filter(t),Mse=e=>(t,n,r)=>e(t,n,r)?{done:!1,hasNext:!0,next:t}:p4;function Pse(...e){return Ise(Ose,e)}function Ose(e,t){if(!Cse(e,2))return e[0];let[n]=e,[,...r]=e;for(let i of r)t(i,n)<0&&(n=i);return n}function $se(e,t){return typeof e=="object"?wx(e,t):nM(wx,[],Rse)}const wx=(e,t)=>t===void 0?e.flat():e.flat(t),Rse=e=>e===void 0||e===1?zse:e<=0?xse:t=>Array.isArray(t)?{next:t.flat(e-1),hasNext:!0,hasMany:!0,done:!1}:{next:t,hasNext:!0,done:!1},zse=e=>Array.isArray(e)?{next:e,hasNext:!0,hasMany:!0,done:!1}:{next:e,hasNext:!0,done:!1};function Nse(...e){return Na(Fse,e,Vse)}const Fse=(e,t)=>e.flatMap(t),Vse=e=>(t,n,r)=>{let i=e(t,n,r);return Array.isArray(i)?{done:!1,hasNext:!0,hasMany:!0,next:i}:{done:!1,hasNext:!0,next:i}};function Vh(...e){return Na(jse,e)}const jse=(e,t)=>{let n=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r,e);if(o!==void 0){let a=n[o];a===void 0?n[o]=[i]:a.push(i)}}return Object.setPrototypeOf(n,Object.prototype),n};function aM(...e){return Na(Bse,e,Hse)}const Bse=(e,t)=>e.map(t),Hse=e=>(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)});function Use(...e){return Na(qse,e)}function qse(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=t(i,r,e);return n}function Zse(...e){return Ase(Wse,e)}function Wse(e){let t=e,n=new Set;return(r,i,o)=>{let a=t(r,i,o);return n.has(a)?p4:(n.add(a),{done:!1,hasNext:!0,next:r})}}function kx(...e){return Na(Object.values,e)}const io=["opencode","opencode-go","anthropic","github-copilot","openai","google","openrouter","vercel"],Gse=new Set(io);function fu(){const e=ar(),t=Jr(),n=j(()=>Oo(t.dir)??""),r=j(()=>{if(n()){const[l]=e.child(n());return l.provider}return e.data.provider}),i=j(()=>new Set(r().connected)),o=j(()=>r().all.filter(l=>i().has(l.id))),a=j(()=>o().filter(l=>l.id!=="opencode"||Object.values(l.models).find(c=>c.cost?.input))),s=j(()=>r().all.filter(l=>Gse.has(l.id)));return{all:j(()=>r().all),default:j(()=>r().default),popular:s,connected:o,paid:a}}const Kse=5;function df(e){return`${e.providerID}:${e.modelID}`}const{use:sM,provider:Jse}=Sn({name:"Models",init:()=>{const e=fu(),[t,n,r,i]=tr(Ln.global("model",["model.v1"]),He({user:[],recent:[],variant:{}})),o=j(()=>e.connected().flatMap(k=>Object.values(k.models).map(S=>({...S,provider:k})))),a=j(()=>new Map(o().map(k=>{const S=Xe.fromISO(k.release_date);return[df({providerID:k.provider.id,modelID:k.id}),S]}))),s=j(()=>ks(o(),Lse(k=>Math.abs((a().get(df({providerID:k.provider.id,modelID:k.id}))??Xe.invalid("invalid")).diffNow().as("months"))<6),Vh(k=>k.provider.id),Use(k=>ks(k,Vh(S=>S.family),kx(),S=>S.flatMap(w=>{const x=Pse(w,[L=>L.release_date,"desc"]);return x?[{modelID:x.id,providerID:x.provider.id}]:[]}))),kx(),$se())),l=j(()=>new Set(s().map(k=>df(k)))),c=j(()=>{const k=new Map;for(const S of t.user)k.set(`${S.providerID}:${S.modelID}`,S.visibility);return k}),d=j(()=>o().map(k=>({...k,name:k.name.replace("(latest)","").trim(),latest:k.name.includes("(latest)")}))),u=k=>d().find(S=>S.id===k.modelID&&S.provider.id===k.providerID);function h(k,S){const w=t.user.findIndex(x=>x.modelID===k.modelID&&x.providerID===k.providerID);if(w>=0){n("user",w,x=>({...x,visibility:S}));return}n("user",t.user.length,{...k,visibility:S})}const m=k=>{const S=df(k),w=c().get(S);return w==="hide"?!1:!!(w==="show"||l().has(S)||!a().get(S)?.isValid)},f=(k,S)=>{h(k,S?"show":"hide")},p=k=>{const S=Zse([k,...t.recent],w=>`${w.providerID}:${w.modelID}`);S.length>Kse&&S.pop(),n("recent",S)},b=k=>`${k.providerID}/${k.modelID}`,v=k=>t.variant?.[b(k)],g=(k,S)=>{const w=b(k);if(!t.variant){n("variant",{[w]:S});return}n("variant",w,S)};return{ready:i,list:d,find:u,visible:m,setVisibility:f,recent:{list:j(()=>t.recent),push:p},variant:{get:v,set:g}}}}),Qse="/assets/alert-01-BuOD_o_q.aac",Xse="/assets/alert-02-CS75AsoP.aac",Yse="data:audio/aac;base64,//FQQDH//N4CAExhdmM2MS4xOS4xMDEAAfyvVFpwtuuOeM5649e25vPOsut9UJFTNMURN2gyuPLiHNjECNLASbEBNrxFA6ArcbrGMqdzMBvEqz2OHkBVdB1SwLB2+d5XHm8sj7Omee7/aBhFluSUr+hGMZNL39Rr2dLWzKIPs8ej5ZZXyht8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F1cL5mHa0PCs7YyV5n06DANQaAHZWQuBs/BKaWwhjK4IcWAAqMN3yQ9jCG1gOJGRvOHzNOQszgOOwvmagPmhCX2jOKdIMiCWWkTAY2TGphjjxYRwP/xUEAa//wBLDes7HL4n3D795cSlLlIkIQJVkyY6sEuOUyF9JLO5gnHURcP+NN9kJoKKnh2xpezB9lzHm1c9x3yqUThZt+ZvYt/129n9+2PzPd2Gvx34XSDUN+BVG+yd9O3sN9k203SG+ybT3VG8E1HuQaVMdL3YdkVuDLDUpVfdUaVKllUKUdfs7YNUCmF5HYBe51i6x+/GQXJ3UuKouTPSN7ZSK2ko8qLZU2HlgVSny1S+T9/8tWVRlptYVgZjYRWBZGOLAtCFkgHsqpe3nZCbwZaaUIH//FQQB///AEYN6xUtllcPPHz9fbV3NzgZbnrmIIqCConQI0M6R0mQI0D6Z2LrWVF8p+B8xoGyq1YUySAabFO2rVwybKnbVqNOLFhgPX5vC3u7Rp80xd3aNOMxYYC2LFXgNOMxYYDTjMWDgzITuNOMxYSDTjB7v5s8PxB7v5s8PxB7v5s8PxB7v5s8PxB7vt5y+E6H285fCdD7eeb4d0ZG/eb4d0ZG/eb4TC+bOMydGQ3ufM7DkN7nzOw5De58zsOQ3ufM7DkN7nzOw5De582eH4g9382eH4g93285fCdD7ecvhOh9vOXwnQ+3nL4Tofbzl8J0PmzjMCDfvN8Owgc//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH",ele="/assets/alert-04-CaGsIGFP.aac",tle="/assets/alert-05-D2gbGoRH.aac",nle="/assets/alert-06-GK5Tqy6u.aac",rle="/assets/alert-07-0r0kiLGz.aac",ile="/assets/alert-08-CZowNquU.aac",ole="data:audio/aac;base64,//FQQDLf/N4CAExhdmM2MS4xOS4xMDEAAdyvR1hwRg0FhQFjN7ZOt9+esGfHMi8XeRRKlV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c09utf+LoUFBda/8Vn51/yjo1QUdtBRXwo7rUFZFLdxQUFW/yvxVl3eEF+KqiCgpxX60FHbDrjQUFNVcvmuhQX5r+qgoKCgqnpxxxxmfukdyNmR/MPj4+Phv8Foo6C61/4oKp7QUFBQWFX/F0KpqqCu///FQQAO//AD+K6gkIJEJv/b/3DXmpPUUUUUUUUf/8VBAAd/8AO4gkCATwP/xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH",cle="/assets/bip-bop-03-DXp7Zb0f.aac",dle="/assets/bip-bop-04-CfVtpI7z.aac",ule="data:audio/aac;base64,//FQQCs//N4CAExhdmM2MS4xOS4xMDEAAcCmV8xheKlTbjPv+eL59vHtzXVay6lZCYt6DCyVzqmULK/Y5PF1u2YhjHuqjt8Bdf13p58rbz6+Q4xlCnFrgQxwps/feYVzqlgUM105pPY9vj14gCJt74/lZqQkIwk9gYYTkZXMoMq0/K+HoHxmvyF03KrlYe8XY25VkfE6sMLIa5B7XlZog84eZZFkRx7AlmW6kLJYBZNewM2efbqzwDkHiwLB27dewJr9j3T9p1TQPb/l+cf/meBZxC+D/8/2+vpDLc23NZxSJ38+v1t4jCDkR1YjgdWNOOApCwOIh26tnPqxzYjScnJx8RHk5+TsZpQwskqTVs3JghEKyQkT3j0ygAA51GQcMp/d/L+g/7OiB2/+fZtsrnVI3/H6XhIXO7HZ7ucSz9S9EtAihgow+Vr2E5KPdz5rgPRLxZ/V9MDg//FQQCe//ADum7KMXTB0wRIKzXRkFZrRAVmu9TniOn13u/Dd/FavcrfP9Pj283O+G//r6ffideVfvfA6hgmeVzZ1Ig9/puRgoy9LHjWNdSriXRywN2RSyJosqmxbR70i46x11WsW9cFoIoGs3I2qRHYd1hLIBnfYt4nlPI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xADpXSv/K63/9LDLDLBuulCfKzf816b/+lwgDDP8V/+q+dfbQU09gU1//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggBw==",mle="/assets/bip-bop-08-DBf7Bwjz.aac",ple="/assets/bip-bop-09-CxEgoAHQ.aac",gle="data:audio/aac;base64,//FQQDCf/N4CAExhdmM2MS4xOS4xMDEAAcivQgAxWjMMxQIwgERPXOs+Ots3nXrhqqLSklRiSqTniufahQ4AabZaAAAIABM5k58DFDEhbfoBplpx8hnhloVDxwU9vVpMAqPI7TT18yz3ZRCb7CNXg+TcbS00/hyog3XeO2/5HgM7eNMu93K2kRY15fd93jv7DWQ4P6exET4de8XcaxHbx0KiJs/DKMnVtcDcIlcDEJ2e72+O+wQoAKEyGedbb7FRUVFQQnTnt058GRMlz8vXyuBxZccC6uPX4TrFI9v7woT2e7simzx8yMBSLAwDkDBAaDtXXGPq/Q7GU0BGUBvGcZQ1xcsw7bwHVLgwjHCfg+hqrJOPjO+sDR8w+V1L0SkdWSwRl/2PrfV+N4vKzTSQ2i6s6s8QhB++e/xqgsqZVzfvnUYiEUoPMTEBu6kszECg+zxlieP5/j4RuM4F/7eJi47iYnl450y7jcYkwIxlyJkvHq232CThppfcEANstED7vlEDgP/xUEArf/wBApuYudKHSKsx7ZqwpUJjdc02elkqrkfde16ftXf8fXn+cv4XXv8/P9v1/mH+Bv5/8Zx/9ueNazp67R9wh13b8Addv/4HXfRx+RkwSH7PZacc7kNJij9m9gNUSVIWPwEy/Wi6au6s8It3Qv0LfnABEeJ/Z6e32ftp11CZqd3Vz9vPbHQyLHu8vHbSi/Pru4MsI26+ERbdOe2WyBNz6jOWW23lUdNwL6r4xtKgmT2NMvWG340xSkWbKgpE28QWBTY45+pcQEE9UF3F+CrxD//b2u6xrgbR+jfCrysmSF14637Qaq42tyvS/qjg3d1nOFXh/fuh4sGcSNOGAp+v1rCaW/KRDDfKZUTfIuaraoV3s0kBqXSKUIKliEgQn9Ku7DyV4Ww6PMAGg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qN6sH6Gk6T5jXaz4F8TLrM3xrpNV316ry+ZJraDhmnDSKlrsN5h+FIYg9W5jGRyo5VIrYhTokAj4k3dQgH//FQQAK//ADoIxhgEhIBTNXIbQt8//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAc=",Dle="/assets/staplebops-03-Aug82oH0.aac",Mle="/assets/staplebops-04-olyHi8qQ.aac",Ple="data:audio/aac;base64,//FQQAOf/N4CAExhdmM2MS4xOS4xMDEAAjBADv/xUEABf/wBGEAH//FQQC0//ADamYw9vQil+364rb9fzr3vd9/jet+/4B+n6LV1xbLEgMdtu7MDtda9I55eB+8xsHOAOXbfJaLASnpqwq2/PpAlQDw6ZMKTGy57oLWpSaiefz1TnakF+GIHATE7J4ZWV02TGmUiWIZTQSBaBMqkrJEsD2dVLsfPde6qwIjqcfVnp9KRf1bhDiAFClVyayc/StX/dDn3K8xjW7IHDum9RWfJcJR2McjkxB18wxfE57lceBhh6d/ncvyRRmESuD4utgVKTbaQjBTx+DuLvuhhkBJzoKx4szCt8H8vjDkx+HA3k1K7/JzLZExrOnkwn1Aaf8/0HyfXOY4f6mTarIayUBZAI/g51X/6tKhsm94RDy/dyYhfc94/yclyi2T43FVjSpkkECrJwKQg+S2cIzQooNa2H/nyuYnQDJ4rcf6KRSomyX3XGgmN4UQAFlEFPIQoFiJ4RAABKKH+uTwEghhT7YABwP/xUEBXv/wBBPev64HYn2B98v7AAAAAPv8fH1/uPaZZNOIsfWXNPSvTtMtlig3i2re8Y9vkiEapiT63DePiX2an/We6bpERQ4i88+FJRJNjPIojkY6qieSkR5bOROy7T+3fHWDNn5LP+dQ9GfptxkRk5cJCLLQMmlu0vRRIQfQkXM3WV0mIufMpyQWElk8nIkNYoZhp3SP13+Lpn4b+tVyzor6lPf6Xw2EQf671z39/5bC0T3TZH5azgbzIiPZpJOCSMX3LKoOjP9XF5EyqEISPBJQTyakjAX+oJJP6WREL0wkMNdiIqXLAiQi0MD+704SU7Hyr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qa+coAHP/xUEAen/wA7jUtsHQ7CRr7T759vj1PHtXx2dXjCVpdVFQJVhyqdMVYGt3aWVyEIZ8hpWFh3+AsnM6JifUg9K4CHSM8fjGxm8dIWXGeXrga59aoKxOILqC5tUnianbaC7W5kqJfXA0TPmBgMiRa3/6SJWXr1efn/Q/jK6ERpznQzehhgzWpL7yl4T5cMce9liDEe5FJrmIwfJVbc6gAaeIp9AIwAmBALRVSkAdknQz+gNzJlEVK1vAnZa3dP2GITl66uwVggKmqbdt5BG9wrcJi7BwEF0wKpLcgyt1UyowFIHCgq8qjdA6+ccuNsWK0PZZO7vz/8VBAEV/8ANQrLgBYCff7ffnqj7fe2vf/8xHOChIlLgISN3KkdTsSMCCRgHtLMEthmLHNxDIcAji9cR2evl3HksluiW+1BLHZAlrOEEo0C1iESPIwlEIVMlh6JE2GI5jHEKziWGxhK0vBRVwklFhkxEIx5hGpCIlHgI/2KaWkx74ur1ur1ur1urw=",Ole="/assets/staplebops-06-Cj_2vOI4.aac",$le="/assets/staplebops-07-cqQEvbIf.aac",Rle="/assets/yup-01-BtRq6dLN.aac",zle="data:audio/aac;base64,//FQQDHf/N4CAExhdmM2MS4xOS4xMDEAAcyvWGPmIMCQTBQb9q49VxMnmVM3d3JlXaplpsiZaqmaC5/q5dCoDHuGJkuPwKyrT2eegvBiI1ZdNrgazDGxESpkue+CFs64Pk9hmr4e3bGgQmM+RuJkPDt2E33tnb0HqbagIbSIddOe2JgJ3SMTDjz8HyYhh4MREqZZxpmn16gOTLBDHuLTZ166tKo2hL9BGeWnVz0At4JkvHFQ4Gss56ljcNMvYdwz89ewwwjPkVFQQBghOrqywXdvQDV7fbzxi2GJtLSXt44BmHI7i0WNOeNtufpPudnXRfnr8juJvdxpksphhghM5oKghComANTambPXjEQ2ILbbYthrLvdvgAm2LI7juLS7x6vLx6vbx6EwGw9i8XIey9vji4GIAAAGp1aVRtL3Dju34afn1ER6FRURB0+HjttwTIS1AUwQgRDTq2xMMAcACiP28f8PtD/rm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EYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAc=",Nle="/assets/yup-03-BHLEoqSS.aac",Fle="/assets/yup-04-C7yadpJT.aac",Vle="/assets/yup-05-CuuaeyjC.aac",jle="data:audio/aac;base64,//FQQCt//N4CAExhdmM2MS4xOS4xMDEAAgyvUNq6OgqHS2bRUHQ0KwvykvKz6rbrjq/Ezxeqf3NbmcOZS8zXrhlPgdU/cNBW5d09kpNm6Zvl8fLTVEbf+YeXy9SBZ452f3KWU0t05R39RiSWZyqpZIWSFFirZmPfsHKe7I1CzN5zWzNVELqM3STeuqRlcrF/ndjXSCyjsf7PVq21bVMbZRhFFWM1cVrPqFOTAlPb8++VT8P/Hvb1iQYtlQHkP3PZ/G8xcWRzsek1HMdfY4m+e8TjfDO6LIYKcik8HYznu24extZ8DEC4ubLYzBNFdJS9l545o5D2vo+Q+GewOBopf/z2G5HQK557WoIuc8xxw/EDxxio8bu+0eeQj35X9W/McrtnGMQwUAEAGCAzwER7Plflf6PcP2loLwnGLAZLT7WqY9XkuMeKfCfeLl/1+HsnO8577Db0Jxdzecf/8VBALt/8ARya2XayWqy/MJlZiy4VK2+ZUWLnj6/Nv3zf2v7Vfe/18ewDr/6f9Z/T/T7TXlU/X/+z/u/p/p9r10Hr+X/AAPZmNSmGMAZPjJw8SgHF7L+TJf9+MHWQGh9mHv9IUH/57zkaphqG7D/79nyNHMbRxNnw/zwWgOJ1nI5HH+/cYgPPzlOEKj4aTCLo28t44NRGtBjPbcBb0EkU+tgmF+s4cHqur4hrB+noSQ0CvpAQZA+rxmG2zPcZnI8SiPCoo/YAho1fivvyA1656EOxgkR4IfxwtQ1mugbZltMtWqMgvq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KuQ6Zre7yABgI7qDpo/NqqIiAUUoYbTWxRwiZEJdz2oAAABiZBrKxhuBeUSIRSpxKhLuc0KRUIDFmpREFuh4pOMR4DQAsDQAYYdClBcvXOvn2pQ6C8DnBizRSgGABQMAEK4ZzI2dpA4qeXadKMEcIQHOiySlVJW1T9OScOooWcTyhNRRTBhgFFKLA0UFJ5Nm3GMVag6xbMSVuA//FQQCqf/ADwN5E2WEWKBIGwuFgqGwsJxIJwkJxEKAmF7dzi95l793n2lpOOf0+NXv315zvzX9dfh8/FPHE3AKDCrI0EOgqJMeZrmLSTUf9F9Bt4NFAw3LuXUDUeLJBSnPohU0UjRJSqh0ZoKUZFmpwbZ9lkDQwmKWjNMk/R7kRiuaqvyvtPo3i1L7F0asskwM1wCEsKhCGiyhtig0YsqcKTuZHxobVcVCKAFmoWE5zNxV9J61sLCvlZ6OMFwLxNmSvtXFkrkambd/Cc5SCoYwAxaGbY99G6y7d2SgaloYBSMCEgYnJsZrcBZkdwp8Le0TYAAAynV0fhdtq6ONZAAUNJaqGsnQXW340FFO8NAXjWtpfB7X43CvHEgALyOw/GfR8O82bOADLK+p4PZcL4Pa62lleIALyQaMg0fG7m+GgA5zgmEIUmLstFkxQC9V1xfoubgP/xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggBw==",lM=[{id:"alert-01",label:"sound.option.alert01",src:Qse},{id:"alert-02",label:"sound.option.alert02",src:Xse},{id:"alert-03",label:"sound.option.alert03",src:Yse},{id:"alert-04",label:"sound.option.alert04",src:ele},{id:"alert-05",label:"sound.option.alert05",src:tle},{id:"alert-06",label:"sound.option.alert06",src:nle},{id:"alert-07",label:"sound.option.alert07",src:rle},{id:"alert-08",label:"sound.option.alert08",src:ile},{id:"alert-09",label:"sound.option.alert09",src:ole},{id:"alert-10",label:"sound.option.alert10",src:ale},{id:"bip-bop-01",label:"sound.option.bipbop01",src:sle},{id:"bip-bop-02",label:"sound.option.bipbop02",src:lle},{id:"bip-bop-03",label:"sound.option.bipbop03",src:cle},{id:"bip-bop-04",label:"sound.option.bipbop04",src:dle},{id:"bip-bop-05",label:"sound.option.bipbop05",src:ule},{id:"bip-bop-06",label:"sound.option.bipbop06",src:fle},{id:"bip-bop-07",label:"sound.option.bipbop07",src:hle},{id:"bip-bop-08",label:"sound.option.bipbop08",src:mle},{id:"bip-bop-09",label:"sound.option.bipbop09",src:ple},{id:"bip-bop-10",label:"sound.option.bipbop10",src:gle},{id:"staplebops-01",label:"sound.option.staplebops01",src:Tle},{id:"staplebops-02",label:"sound.option.staplebops02",src:Lle},{id:"staplebops-03",label:"sound.option.staplebops03",src:Dle},{id:"staplebops-04",label:"sound.option.staplebops04",src:Mle},{id:"staplebops-05",label:"sound.option.staplebops05",src:Ple},{id:"staplebops-06",label:"sound.option.staplebops06",src:Ole},{id:"staplebops-07",label:"sound.option.staplebops07",src:$le},{id:"nope-01",label:"sound.option.nope01",src:vle},{id:"nope-02",label:"sound.option.nope02",src:ble},{id:"nope-03",label:"sound.option.nope03",src:yle},{id:"nope-04",label:"sound.option.nope04",src:wle},{id:"nope-05",label:"sound.option.nope05",src:kle},{id:"nope-06",label:"sound.option.nope06",src:xle},{id:"nope-07",label:"sound.option.nope07",src:Sle},{id:"nope-08",label:"sound.option.nope08",src:_le},{id:"nope-09",label:"sound.option.nope09",src:Ale},{id:"nope-10",label:"sound.option.nope10",src:Cle},{id:"nope-11",label:"sound.option.nope11",src:Ele},{id:"nope-12",label:"sound.option.nope12",src:Ile},{id:"yup-01",label:"sound.option.yup01",src:Rle},{id:"yup-02",label:"sound.option.yup02",src:zle},{id:"yup-03",label:"sound.option.yup03",src:Nle},{id:"yup-04",label:"sound.option.yup04",src:Fle},{id:"yup-05",label:"sound.option.yup05",src:Vle},{id:"yup-06",label:"sound.option.yup06",src:jle}],xx=Object.fromEntries(lM.map(e=>[e.id,e.src]));function v1(e){if(e&&e in xx)return xx[e]}function jh(e){if(typeof Audio>"u"||!e)return;const t=new Audio(e);return t.play().catch(()=>{}),()=>{t.pause(),t.currentTime=0}}const Sx=500,Ble=1e3*60*60*24*30;function _x(e){const t=Date.now()-Ble,n=e.filter(r=>r.time>=t);return n.length<=Sx?n:n.slice(n.length-Sx)}function Hle(){return{session:{all:{},unseen:{},unseenCount:{},unseenHasError:{}},project:{all:{},unseen:{},unseenCount:{},unseenHasError:{}}}}function Ax(e){const t=Hle();return e.forEach(n=>{if(n.session){const r=t.session.all[n.session]??[];if(t.session.all[n.session]=[...r,n],!n.viewed){const i=t.session.unseen[n.session]??[];t.session.unseen[n.session]=[...i,n],t.session.unseenCount[n.session]=i.length+1,n.type==="error"&&(t.session.unseenHasError[n.session]=!0)}}if(n.directory){const r=t.project.all[n.directory]??[];if(t.project.all[n.directory]=[...r,n],!n.viewed){const i=t.project.unseen[n.directory]??[];t.project.unseen[n.directory]=[...i,n],t.project.unseenCount[n.directory]=i.length+1,n.type==="error"&&(t.project.unseenHasError[n.directory]=!0)}}}),t}const{use:_m,provider:Ule}=Sn({name:"Notification",init:()=>{const e=Jr(),t=qi(),n=ar(),r=Er(),i=Ts(),o=Kt(),a=[],s=j(()=>Oo(e.dir)),l=j(()=>e.id),[c,d,u,h]=tr(Ln.global("notification",["notification.v1"]),He({list:[]})),[m,f]=He(Ax(c.list)),p={pruned:!1,disposed:!1},b=(I,$,F)=>{f(I,"unseen",$,F),f(I,"unseenCount",$,F.length),f(I,"unseenHasError",$,F.some(N=>N.type==="error"))},v=I=>{I.session&&(f("session","all",I.session,($=[])=>[...$,I]),I.viewed||(f("session","unseen",I.session,($=[])=>[...$,I]),f("session","unseenCount",I.session,($=0)=>$+1),I.type==="error"&&f("session","unseenHasError",I.session,!0))),I.directory&&(f("project","all",I.directory,($=[])=>[...$,I]),I.viewed||(f("project","unseen",I.directory,($=[])=>[...$,I]),f("project","unseenCount",I.directory,($=0)=>$+1),I.type==="error"&&f("project","unseenHasError",I.directory,!0)))},g=I=>{if(I.session&&(f("session","all",I.session,($=[])=>$.filter(F=>F!==I)),!I.viewed)){const $=(m.session.unseen[I.session]??a).filter(F=>F!==I);b("session",I.session,$)}if(I.directory&&(f("project","all",I.directory,($=[])=>$.filter(F=>F!==I)),!I.viewed)){const $=(m.project.unseen[I.directory]??a).filter(F=>F!==I);b("project",I.directory,$)}};se(()=>{if(!h()||p.pruned)return;p.pruned=!0;const I=_x(c.list);_t(()=>{d("list",I),f($t(Ax(I),{merge:!1}))})});const k=I=>{const $=_x([...c.list,I]),F=new Set($),N=c.list.filter(D=>!F.has(D));_t(()=>{F.has(I)&&v(I),N.forEach(D=>g(D)),d("list",$)})},S=async(I,$)=>{if(!$)return;const[F]=n.child(I,{bootstrap:!1}),N=rn.search(F.session,$,D=>D.id);return N.found?F.session[N.index]:t.client.session.get({directory:I,sessionID:$}).then(D=>D.data).catch(()=>{})},w=(I,$)=>{const F=s(),N=l();return!F||!N||!$||I!==F?!1:$===N},x=(I,$,F)=>{const N=$.properties.sessionID;S(I,N).then(D=>{if(p.disposed||!D||D.parentID)return;i.sounds.agentEnabled()&&jh(v1(i.sounds.agent())),k({directory:I,time:F,viewed:w(I,N),type:"turn-complete",session:N});const T=`/${It(I)}/session/${N}`;i.notifications.agent()&&r.notify(o.t("notification.session.responseReady.title"),D.title??N,T)})},L=(I,$,F)=>{const N=$.properties.sessionID;S(I,N).then(D=>{if(p.disposed||D?.parentID)return;i.sounds.errorsEnabled()&&jh(v1(i.sounds.errors()));const T="error"in $.properties?$.properties.error:void 0;k({directory:I,time:F,viewed:w(I,N),type:"error",session:N??"global",error:T});const M=D?.title??(typeof T=="string"?T:o.t("notification.session.error.fallbackDescription")),R=N?`/${It(I)}/session/${N}`:`/${It(I)}`;i.notifications.errors()&&r.notify(o.t("notification.session.error.title"),M,R)})},C=t.event.listen(I=>{const $=I.details;if($.type!=="session.idle"&&$.type!=="session.error")return;const F=I.name,N=Date.now();if($.type==="session.idle"){x(F,$,N);return}L(F,$,N)});return he(()=>{p.disposed=!0,C()}),{ready:h,session:{all(I){return m.session.all[I]??a},unseen(I){return m.session.unseen[I]??a},unseenCount(I){return m.session.unseenCount[I]??0},unseenHasError(I){return m.session.unseenHasError[I]??!1},markViewed(I){const $=m.session.unseen[I]??a;if(!$.length)return;const F=[...new Set($.flatMap(N=>N.directory?[N.directory]:[]))];_t(()=>{d("list",N=>N.session===I&&!N.viewed,"viewed",!0),b("session",I,[]),F.forEach(N=>{const D=(m.project.unseen[N]??a).filter(T=>T.session!==I);b("project",N,D)})})}},project:{all(I){return m.project.all[I]??a},unseen(I){return m.project.unseen[I]??a},unseenCount(I){return m.project.unseenCount[I]??0},unseenHasError(I){return m.project.unseenHasError[I]??!1},markViewed(I){const $=m.project.unseen[I]??a;if(!$.length)return;const F=[...new Set($.flatMap(N=>N.session?[N.session]:[]))];_t(()=>{d("list",N=>N.directory===I&&!N.viewed,"viewed",!0),b("project",I,[]),F.forEach(N=>{const D=(m.session.unseen[N]??a).filter(T=>T.directory!==I);b("session",N,D)})})}}}}});function Pf(e,t){return t?`${It(t)}/${e}`:e}function qle(e,t,n){const r=Pf(t,n);return e[r]??e[t]}function Zle(e,t){const n=e.reduce((o,a)=>(a.parentID&&o.set(a.id,a.parentID),o),new Map),r=new Set([t]),i=[t];for(const o of i){const a=n.get(o);!a||r.has(a)||(r.add(a),i.push(a))}return i}function Cx(e,t,n,r){return Zle(t,n.sessionID).map(o=>qle(e,o,r)).find(o=>o!==void 0)??!1}function Wle(e){if(!e)return!1;if(typeof e=="string")return e!=="allow";if(typeof e!="object"||Array.isArray(e))return!1;for(const t of Object.values(e))if(t!=="allow")return!0;return!1}function Gle(e){return e?typeof e=="string"?e!=="allow":typeof e!="object"||Array.isArray(e)?!1:Object.values(e).some(Wle):!1}const{use:g4,provider:Kle}=Sn({name:"Permission",init:()=>{const e=Jr(),t=qi(),n=ar(),r=j(()=>{const w=Oo(e.dir);if(!w)return!1;const[x]=n.child(w);return Gle(x.config.permission)}),[i,o,a,s]=tr({...Ln.global("permission",["permission.v3"]),migrate(w){if(!w||typeof w!="object"||Array.isArray(w))return w;const x=w;return x.autoAccept?w:{...x,autoAccept:typeof x.autoAcceptEdits=="object"&&x.autoAcceptEdits&&!Array.isArray(x.autoAcceptEdits)?x.autoAcceptEdits:{}}}},He({autoAccept:{}})),l=1e3,c=3600*1e3,d=new Map,u=new Map;function h(w){for(const[x,L]of d){if(w-L<c)break;d.delete(x)}for(const x of d.keys()){if(d.size<=l)break;d.delete(x)}}const m=w=>{t.client.permission.respond(w).catch(()=>{d.delete(w.permissionID)})};function f(w,x){const L=Date.now(),C=d.has(w.id);d.delete(w.id),d.set(w.id,L),h(L),!C&&m({sessionID:w.sessionID,permissionID:w.id,response:"once",directory:x})}function p(w,x){const L=x?n.child(x,{bootstrap:!1})[0].session:[];return Cx(i.autoAccept,L,{sessionID:w},x)}function b(w,x){const L=x?n.child(x,{bootstrap:!1})[0].session:[];return Cx(i.autoAccept,L,w,x)}function v(w,x){const L=Pf(w,x),C=(u.get(L)??0)+1;return u.set(L,C),C}const g=t.event.listen(w=>{const x=w.details;if(x?.type!=="permission.asked")return;const L=x.properties;b(L,w.name)&&f(L,w.name)});he(g);function k(w,x){const L=Pf(w,x),C=v(w,x);o(st(I=>{I.autoAccept[L]=!0,delete I.autoAccept[w]})),t.client.permission.list({directory:x}).then(I=>{if(u.get(L)===C&&p(w,x))for(const $ of I.data??[])$?.id&&b($,x)&&f($,x)}).catch(()=>{})}function S(w,x){v(w,x);const L=x?Pf(w,x):w;o(st(C=>{C.autoAccept[L]=!1,x&&delete C.autoAccept[w]}))}return{ready:s,respond:m,autoResponds(w,x){return b(w,x)},isAutoAccepting:p,toggleAutoAccept(w,x){if(p(w,x)){S(w,x);return}k(w,x)},enableAutoAccept(w,x){p(w,x)||k(w,x)},disableAutoAccept(w,x){S(w,x)},permissionsEnabled:r}}}),b1=[{type:"text",content:"",start:0,end:0}];function Jle(e,t){return!e&&!t?!0:!e||!t?!1:e.startLine===t.startLine&&e.startChar===t.startChar&&e.endLine===t.endLine&&e.endChar===t.endChar}function Qle(e,t){switch(e.type){case"text":return t.type==="text"&&e.content===t.content;case"file":return t.type==="file"&&e.path===t.path&&Jle(e.selection,t.selection);case"agent":return t.type==="agent"&&e.name===t.name;case"image":return t.type==="image"&&e.id===t.id}}function Xle(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Qle(e[n],t[n]))return!1;return!0}function Yle(e){if(e)return{...e}}function ece(e){return e.type==="text"?{...e}:e.type==="image"?{...e}:e.type==="agent"?{...e}:{...e,selection:Yle(e.selection)}}function y1(e){return e.map(ece)}function Eg(e){if(e.type!=="file")return e.type;const t=e.selection?.startLine,n=e.selection?.endLine,r=`${e.type}:${e.path}:${t}:${n}`;if(e.commentID)return`${r}:c=${e.commentID}`;const i=e.comment?.trim();if(!i)return r;const o=Ff(i)??i;return`${r}:c=${o.slice(0,8)}`}function tce(e){return e.type==="file"&&!!e.comment?.trim()}function nce(e){return{set(t,n){const r=y1(t);_t(()=>{e("prompt",r),n!==void 0&&e("cursor",n)})},reset(){_t(()=>{e("prompt",y1(b1)),e("cursor",0)})}}}const rce="__workspace__",ice=20;function oce(e,t){const n=`${e}/prompt${t?"/"+t:""}.v2`,[r,i,o,a]=tr(Ln.scoped(e,t,"prompt",[n]),He({prompt:y1(b1),cursor:void 0,context:{items:[]}})),s=nce(i);return{ready:a,current:j(()=>r.prompt),cursor:j(()=>r.cursor),dirty:j(()=>!Xle(r.prompt,b1)),context:{items:j(()=>r.context.items),add(l){const c=Eg(l);r.context.items.find(d=>d.key===c)||i("context","items",d=>[...d,{key:c,...l}])},remove(l){i("context","items",c=>c.filter(d=>d.key!==l))},removeComment(l,c){i("context","items",d=>d.filter(u=>!(u.type==="file"&&u.path===l&&u.commentID===c)))},updateComment(l,c,d){i("context","items",u=>u.map(h=>{if(h.type!=="file"||h.path!==l||h.commentID!==c)return h;const m={...h,...d};return{...m,key:Eg(m)}}))},replaceComments(l){i("context","items",c=>[...c.filter(d=>!tce(d)),...l.map(d=>({...d,key:Eg(d)}))])}},set:s.set,reset:s.reset}}const{use:uve,provider:ace}=Sn({name:"Prompt",gate:!1,init:()=>{const e=Jr(),t=new Map;he(()=>{for(const a of t.values())a.dispose();t.clear()});const r=()=>{for(;t.size>ice;){const a=t.keys().next().value;if(!a)return;t.get(a)?.dispose(),t.delete(a)}},i=(a,s)=>{const l=`${a}:${s??rce}`,c=t.get(l);if(c)return t.delete(l),t.set(l,c),c.value;const d=Nn(u=>({value:oce(a,s),dispose:u}));return t.set(l,d),r(),d.value},o=j(()=>i(e.dir,e.id));return{ready:()=>o().ready(),current:()=>o().current(),cursor:()=>o().cursor(),dirty:()=>o().dirty(),context:{items:()=>o().context.items(),add:a=>o().context.add(a),remove:a=>o().context.remove(a),removeComment:(a,s)=>o().context.removeComment(a,s),updateComment:(a,s,l)=>o().context.updateComment(a,s,l),replaceComments:a=>o().context.replaceComments(a)},set:(a,s)=>o().set(a,s),reset:()=>o().reset()}}}),sce="__workspace__",lce=20;function cM(e){return`${e}:${sce}`}function w1(e,t){return t?[`${e}/terminal/${t}.v1`,`${e}/terminal.v1`]:[`${e}/terminal.v1`]}const k1=new Set;function cce(e,t,n){const r=cM(e);for(const o of k1)o.get(r)?.value.clear();Sh(Ln.workspace(e,"terminal"),n);const i=new Set(w1(e));for(const o of t??[])for(const a of w1(e,o))i.add(a);for(const o of i)Sh({key:o},n)}function dce(e,t,n){const r=w1(t,n),i=m=>{const f=m.match(/^Terminal (\d+)$/);if(!f)return;const p=Number(f[1]);if(!(!Number.isFinite(p)||p<=0))return p},[o,a,s,l]=tr(Ln.workspace(t,"terminal",r),He({all:[]})),c=()=>{const m=new Set(o.all.flatMap(f=>{const p=Number.isFinite(f.titleNumber)&&f.titleNumber>0?f.titleNumber:void 0;if(p!==void 0)return[p];const b=i(f.title);return b===void 0?[]:[b]}));return Array.from({length:m.size+1},(f,p)=>p+1).find(f=>!m.has(f))??1},d=m=>{const f=o.all,p=f.findIndex(v=>v.id===m);if(p===-1)return;const b=o.active===m?p===0?f[1]?.id:f[0]?.id:o.active;_t(()=>{a("active",b),a("all",st(v=>{v.splice(p,1)}))})},u=e.event.on("pty.exited",m=>{d(m.properties.id)});he(u);const h={migrated:!1};return se(()=>{l()&&(h.migrated||(h.migrated=!0,a("all",m=>{const f=m.map(p=>{if((Number.isFinite(p.titleNumber)&&p.titleNumber>0?p.titleNumber:void 0)!==void 0)return p;const v=i(p.title);return v===void 0?p:{...p,titleNumber:v}});return f.every((p,b)=>p===m[b])?m:f})))}),{ready:l,all:j(()=>o.all),active:j(()=>o.active),clear(){_t(()=>{a("active",void 0),a("all",[])})},new(){const m=c();e.client.pty.create({title:`Terminal ${m}`}).then(f=>{const p=f.data?.id;if(!p)return;const b={id:p,title:f.data?.title??"Terminal",titleNumber:m};a("all",o.all.length,b),a("active",p)}).catch(f=>{console.error("Failed to create terminal",f)})},update(m){const f=o.all.findIndex(b=>b.id===m.id),p=f>=0?o.all[f]:void 0;f>=0&&a("all",f,b=>({...b,...m})),e.client.pty.update({ptyID:m.id,title:m.title,size:m.cols&&m.rows?{rows:m.rows,cols:m.cols}:void 0}).catch(b=>{if(p){const v=o.all.findIndex(g=>g.id===m.id);v>=0&&a("all",v,p)}console.error("Failed to update terminal",b)})},async clone(m){const f=o.all.findIndex(g=>g.id===m),p=o.all[f];if(!p)return;const b=await e.client.pty.create({title:p.title}).catch(g=>{console.error("Failed to clone terminal",g)});if(!b?.data)return;const v=o.active===p.id;_t(()=>{a("all",f,{id:b.data.id,title:b.data.title??p.title,titleNumber:p.titleNumber,buffer:void 0,cursor:void 0,scrollY:void 0,rows:void 0,cols:void 0}),v&&a("active",b.data.id)})},open(m){a("active",m)},next(){const m=o.all.findIndex(p=>p.id===o.active);if(m===-1)return;const f=(m+1)%o.all.length;a("active",o.all[f]?.id)},previous(){const m=o.all.findIndex(p=>p.id===o.active);if(m===-1)return;const f=m===0?o.all.length-1:m-1;a("active",o.all[f]?.id)},async close(m){const f=o.all.findIndex(p=>p.id===m);f!==-1&&_t(()=>{if(o.active===m){const p=f>0?o.all[f-1]?.id:o.all[1]?.id;a("active",p)}a("all",st(p=>{p.splice(f,1)}))}),await e.client.pty.remove({ptyID:m}).catch(p=>{console.error("Failed to close terminal",p)})},move(m,f){const p=o.all.findIndex(b=>b.id===m);p!==-1&&a("all",st(b=>{b.splice(f,0,b.splice(p,1)[0])}))}}}const{use:fve,provider:uce}=Sn({name:"Terminal",gate:!1,init:()=>{const e=bm(),t=Jr(),n=new Map;k1.add(n),he(()=>k1.delete(n)),he(()=>{for(const s of n.values())s.dispose();n.clear()});const i=()=>{for(;n.size>lce;){const s=n.keys().next().value;if(!s)return;n.get(s)?.dispose(),n.delete(s)}},o=(s,l)=>{const c=cM(s),d=n.get(c);if(d)return n.delete(c),n.set(c,d),d.value;const u=Nn(h=>({value:dce(e,s,l),dispose:h}));return n.set(c,u),i(),u.value},a=j(()=>o(t.dir,t.id));return{ready:()=>a().ready(),all:()=>a().all(),active:()=>a().active(),new:()=>a().new(),update:s=>a().update(s),clone:s=>a().clone(s),open:s=>a().open(s),close:s=>a().close(s),move:(s,l)=>a().move(s,l),next:()=>a().next(),previous:()=>a().previous()}}});function fce(e){if(e.agent?.variant&&e.agent.model&&e.model?.variants&&e.agent.model.providerID===e.model.providerID&&e.agent.model.modelID===e.model.modelID&&e.agent.variant in e.model.variants)return e.agent.variant}function hce(e){if(e.selected&&e.variants.includes(e.selected))return e.selected;if(e.configured&&e.variants.includes(e.configured))return e.configured}function mce(e){if(e.variants.length!==0){if(e.selected&&e.variants.includes(e.selected)){const t=e.variants.indexOf(e.selected);return t===e.variants.length-1?void 0:e.variants[t+1]}if(e.configured&&e.variants.includes(e.configured)){const t=e.variants.indexOf(e.configured);return t===e.variants.length-1?e.variants[0]:e.variants[t+1]}return e.variants[0]}}const{use:hve,provider:pce}=Sn({name:"Local",init:()=>{const e=bm(),t=o4(),n=fu(),r=j(()=>new Set(n.connected().map(d=>d.id)));function i(d){return!!n.all().find(h=>h.id===d.providerID)?.models[d.modelID]&&r().has(d.providerID)}function o(...d){for(const u of d){const h=u();if(h&&i(h))return h}}let a=()=>{};const s=(()=>{const d=j(()=>t.data.agent.filter(m=>m.mode!=="subagent"&&!m.hidden)),[u,h]=He({current:d()[0]?.name});return{list:d,current(){const m=d();if(m.length!==0)return m.find(f=>f.name===u.current)??m[0]},set(m){const f=d();if(f.length===0){h("current",void 0);return}if(m&&f.some(p=>p.name===m)){h("current",m);return}h("current",f[0].name)},move(m){const f=d();if(f.length===0){h("current",void 0);return}let p=f.findIndex(v=>v.name===u.current)+m;p<0&&(p=f.length-1),p>=f.length&&(p=0);const b=f[p];b&&(h("current",b.name),b.model&&a({providerID:b.model.providerID,modelID:b.model.modelID}))}}})(),l=(()=>{const d=sM(),[u,h]=He({model:{}}),m=()=>{if(!t.data.config.model)return;const[w,x]=t.data.config.model.split("/"),L={providerID:w,modelID:x};if(i(L))return L},f=()=>{for(const w of d.recent.list())if(i(w))return w},p=()=>{const w=n.default();for(const x of n.connected()){const L=w[x.id];if(L){const $={providerID:x.id,modelID:L};if(i($))return $}const C=Object.values(x.models)[0];if(!C)continue;const I={providerID:x.id,modelID:C.id};if(i(I))return I}},b=j(()=>m()??f()??p()),v=j(()=>{const w=s.current();if(!w)return;const x=o(()=>u.model[w.name],()=>w.model,b);if(x)return d.find(x)}),g=j(()=>d.recent.list().map(d.find).filter(Boolean)),k=w=>{const x=g(),L=v();if(!L)return;const C=x.findIndex(F=>F?.provider.id===L.provider.id&&F?.id===L.id);if(C===-1)return;let I=C+w;I<0&&(I=x.length-1),I>=x.length&&(I=0);const $=x[I];$&&l.set({providerID:$.provider.id,modelID:$.id})},S=(w,x)=>{_t(()=>{const L=s.current(),C=w??b();L&&h("model",L.name,C),w&&d.setVisibility(w,!0),x?.recent&&w&&d.recent.push(w)})};return a=S,{ready:d.ready,current:v,recent:g,list:d.list,cycle:k,set:S,visible(w){return d.visible(w)},setVisibility(w,x){d.setVisibility(w,x)},variant:{configured(){const w=s.current(),x=v();if(!(!w||!x))return fce({agent:{model:w.model,variant:w.variant},model:{providerID:x.provider.id,modelID:x.id,variants:x.variants}})},selected(){const w=v();if(w)return d.variant.get({providerID:w.provider.id,modelID:w.id})},current(){return hce({variants:this.list(),selected:this.selected(),configured:this.configured()})},list(){const w=v();return w?w.variants?Object.keys(w.variants):[]:[]},set(w){const x=v();x&&d.variant.set({providerID:x.provider.id,modelID:x.id},w)},cycle(){const w=this.list();w.length!==0&&this.set(mce({variants:w,selected:this.selected(),configured:this.configured()}))}}}})();return{slug:j(()=>It(e.directory)),model:l,agent:s}}});function gce(e){const t=Jr(),n=Ra(),r=o4();return y(uH,{get data(){return r.data},get directory(){return e.directory},onNavigateToSession:i=>n(`/${t.dir}/session/${i}`),onSessionHref:i=>`/${t.dir}/session/${i}`,get children(){return y(pce,{get children(){return e.children}})}})}function vce(e){const t=Jr(),n=Ra(),r=Kt(),[i,o]=He({invalid:""}),a=j(()=>Oo(t.dir)??"");return se(()=>{t.dir&&(a()||i.invalid!==t.dir&&(o("invalid",t.dir),Ft({variant:"error",title:r.t("common.requestFailed"),description:r.t("directory.error.invalidUrl")}),n("/",{replace:!0})))}),y(de,{get when(){return a()},get children(){return y(cie,{directory:a,get children(){return y(Pie,{get children(){return y(gce,{get directory(){return a()},get children(){return e.children}})}})}})}})}var bce=Q("<div>");function yce(e){const[t,n]=ue(e,["direction","edge","size","min","max","onResize","onCollapse","collapseThreshold","class","classList"]),r=i=>{i.preventDefault();const o=t.edge??(t.direction==="vertical"?"start":"end"),a=t.direction==="horizontal"?i.clientX:i.clientY,s=t.size;let l=s;document.body.style.userSelect="none",document.body.style.overflow="hidden";const c=u=>{const h=t.direction==="horizontal"?u.clientX:u.clientY,m=t.direction==="vertical"?o==="end"?h-a:a-h:o==="start"?a-h:h-a;l=s+m;const f=Math.min(t.max,Math.max(t.min,l));t.onResize(f)},d=()=>{document.body.style.userSelect="",document.body.style.overflow="",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d);const u=t.collapseThreshold??0;t.onCollapse&&u>0&&l<u&&t.onCollapse()};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d)};return(()=>{var i=bce();return nr(i,ee(n,{"data-component":"resize-handle",get"data-direction"(){return t.direction},get"data-edge"(){return t.edge??(t.direction==="vertical"?"start":"end")},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},onMouseDown:r}),!1,!1),i})()}var wce=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),kce=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function xce(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return wce.has(n)}const t=e.split("-")[0];return kce.has(t)}function Sce(e){return xce(e)?"rtl":"ltr"}function dM(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Sce(e)}}var x1=dM(),Pc=new Set;function Ex(){x1=dM();for(const e of Pc)e(x1)}function _ce(){const[e,t]=me(x1),n=j(()=>e());return Wt(()=>{Pc.size===0&&window.addEventListener("languagechange",Ex),Pc.add(t),he(()=>{Pc.delete(t),Pc.size===0&&window.removeEventListener("languagechange",Ex)})}),{locale:()=>n().locale,direction:()=>n().direction}}var Ace=Ct();function Zi(){const e=_ce();return yt(Ace)||e}var Ig=new Map;function uM(e){const{locale:t}=Zi(),n=j(()=>t()+(e?Object.entries(e).sort((r,i)=>r[0]<i[0]?-1:1).join():""));return j(()=>{const r=n();let i;return Ig.has(r)&&(i=Ig.get(r)),i||(i=new Intl.Collator(t(),e),Ig.set(r,i)),i})}const Cce=["top","right","bottom","left"],Ia=Math.min,Br=Math.max,Bh=Math.round,uf=Math.floor,uo=e=>({x:e,y:e}),Ece={left:"right",right:"left",bottom:"top",top:"bottom"};function S1(e,t,n){return Br(e,Ia(t,n))}function Os(e,t){return typeof e=="function"?e(t):e}function Ta(e){return e.split("-")[0]}function ic(e){return e.split("-")[1]}function fM(e){return e==="x"?"y":"x"}function v4(e){return e==="y"?"height":"width"}function $o(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function b4(e){return fM($o(e))}function Ice(e,t,n){n===void 0&&(n=!1);const r=ic(e),i=b4(e),o=v4(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Hh(a)),[a,Hh(a)]}function Tce(e){const t=Hh(e);return[_1(e),t,_1(t)]}function _1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ix=["left","right"],Tx=["right","left"],Lce=["top","bottom"],Dce=["bottom","top"];function Mce(e,t,n){switch(e){case"top":case"bottom":return n?t?Tx:Ix:t?Ix:Tx;case"left":case"right":return t?Lce:Dce;default:return[]}}function Pce(e,t,n,r){const i=ic(e);let o=Mce(Ta(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(_1)))),o}function Hh(e){const t=Ta(e);return Ece[t]+e.slice(t.length)}function Oce(e){return{top:0,right:0,bottom:0,left:0,...e}}function hM(e){return typeof e!="number"?Oce(e):{top:e,right:e,bottom:e,left:e}}function Uh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Lx(e,t,n){let{reference:r,floating:i}=e;const o=$o(t),a=b4(t),s=v4(a),l=Ta(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let m;switch(l){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-i.width,y:u};break;default:m={x:r.x,y:r.y}}switch(ic(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}async function $ce(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=Os(t,e),f=hM(m),b=s[h?u==="floating"?"reference":"floating":u],v=Uh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),g=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),S=await(o.isElement==null?void 0:o.isElement(k))?await(o.getScale==null?void 0:o.getScale(k))||{x:1,y:1}:{x:1,y:1},w=Uh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:k,strategy:l}):g);return{top:(v.top-w.top+f.top)/S.y,bottom:(w.bottom-v.bottom+f.bottom)/S.y,left:(v.left-w.left+f.left)/S.x,right:(w.right-v.right+f.right)/S.x}}const Rce=50,zce=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:$ce},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Lx(c,r,l),h=r,m=0;const f={};for(let p=0;p<o.length;p++){const b=o[p];if(!b)continue;const{name:v,fn:g}=b,{x:k,y:S,data:w,reset:x}=await g({x:d,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});d=k??d,u=S??u,f[v]={...f[v],...w},x&&m<Rce&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(c=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:d,y:u}=Lx(c,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:i,middlewareData:f}},Nce=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Os(e,t)||{};if(c==null)return{};const u=hM(d),h={x:n,y:r},m=b4(i),f=v4(m),p=await a.getDimensions(c),b=m==="y",v=b?"top":"left",g=b?"bottom":"right",k=b?"clientHeight":"clientWidth",S=o.reference[f]+o.reference[m]-h[m]-o.floating[f],w=h[m]-o.reference[m],x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let L=x?x[k]:0;(!L||!await(a.isElement==null?void 0:a.isElement(x)))&&(L=s.floating[k]||o.floating[f]);const C=S/2-w/2,I=L/2-p[f]/2-1,$=Ia(u[v],I),F=Ia(u[g],I),N=$,D=L-p[f]-F,T=L/2-p[f]/2+C,M=S1(N,T,D),R=!l.arrow&&ic(i)!=null&&T!==M&&o.reference[f]/2-(T<N?$:F)-p[f]/2<0,G=R?T<N?T-N:T-D:0;return{[m]:h[m]+G,data:{[m]:M,centerOffset:T-M-G,...R&&{alignmentOffset:G}},reset:R}}}),Fce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...b}=Os(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Ta(i),g=$o(s),k=Ta(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=h||(k||!p?[Hh(s)]:Tce(s)),x=f!=="none";!h&&x&&w.push(...Pce(s,p,f,S));const L=[s,...w],C=await l.detectOverflow(t,b),I=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&I.push(C[v]),u){const T=Ice(i,a,S);I.push(C[T[0]],C[T[1]])}if($=[...$,{placement:i,overflows:I}],!I.every(T=>T<=0)){var F,N;const T=(((F=o.flip)==null?void 0:F.index)||0)+1,M=L[T];if(M&&(!(u==="alignment"?g!==$o(M):!1)||$.every(K=>$o(K.placement)===g?K.overflows[0]>0:!0)))return{data:{index:T,overflows:$},reset:{placement:M}};let R=(N=$.filter(G=>G.overflows[0]<=0).sort((G,K)=>G.overflows[1]-K.overflows[1])[0])==null?void 0:N.placement;if(!R)switch(m){case"bestFit":{var D;const G=(D=$.filter(K=>{if(x){const U=$o(K.placement);return U===g||U==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(U=>U>0).reduce((U,q)=>U+q,0)]).sort((K,U)=>K[1]-U[1])[0])==null?void 0:D[0];G&&(R=G);break}case"initialPlacement":R=s;break}if(i!==R)return{reset:{placement:R}}}return{}}}};function Dx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mx(e){return Cce.some(t=>e[t]>=0)}const Vce=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=Os(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),s=Dx(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mx(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),s=Dx(a,n.floating);return{data:{escapedOffsets:s,escaped:Mx(s)}}}default:return{}}}}},jce=new Set(["left","top"]);async function Bce(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ta(n),s=ic(n),l=$o(n)==="y",c=jce.has(a)?-1:1,d=o&&l?-1:1,u=Os(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof f=="number"&&(m=s==="end"?f*-1:f),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Hce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await Bce(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Uce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:g,y:k}=v;return{x:g,y:k}}},...c}=Os(e,t),d={x:n,y:r},u=await o.detectOverflow(t,c),h=$o(Ta(i)),m=fM(h);let f=d[m],p=d[h];if(a){const v=m==="y"?"top":"left",g=m==="y"?"bottom":"right",k=f+u[v],S=f-u[g];f=S1(k,f,S)}if(s){const v=h==="y"?"top":"left",g=h==="y"?"bottom":"right",k=p+u[v],S=p-u[g];p=S1(k,p,S)}const b=l.fn({...t,[m]:f,[h]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:a,[h]:s}}}}}},qce=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Os(e,t),d=await a.detectOverflow(t,c),u=Ta(i),h=ic(i),m=$o(i)==="y",{width:f,height:p}=o.floating;let b,v;u==="top"||u==="bottom"?(b=u,v=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,b=h==="end"?"top":"bottom");const g=p-d.top-d.bottom,k=f-d.left-d.right,S=Ia(p-d[b],g),w=Ia(f-d[v],k),x=!t.middlewareData.shift;let L=S,C=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=g),x&&!h){const $=Br(d.left,0),F=Br(d.right,0),N=Br(d.top,0),D=Br(d.bottom,0);m?C=f-2*($!==0||F!==0?$+F:Br(d.left,d.right)):L=p-2*(N!==0||D!==0?N+D:Br(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:L});const I=await a.getDimensions(s.floating);return f!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function Am(){return typeof window<"u"}function oc(e){return mM(e)?(e.nodeName||"").toLowerCase():"#document"}function Gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yo(e){var t;return(t=(mM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mM(e){return Am()?e instanceof Node||e instanceof Gr(e).Node:!1}function Bi(e){return Am()?e instanceof Element||e instanceof Gr(e).Element:!1}function Yo(e){return Am()?e instanceof HTMLElement||e instanceof Gr(e).HTMLElement:!1}function Px(e){return!Am()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gr(e).ShadowRoot}function hu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Zce(e){return/^(table|td|th)$/.test(oc(e))}function Cm(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Wce=/transform|translate|scale|rotate|perspective|filter/,Gce=/paint|layout|strict|content/,Za=e=>!!e&&e!=="none";let Tg;function y4(e){const t=Bi(e)?Hi(e):e;return Za(t.transform)||Za(t.translate)||Za(t.scale)||Za(t.rotate)||Za(t.perspective)||!w4()&&(Za(t.backdropFilter)||Za(t.filter))||Wce.test(t.willChange||"")||Gce.test(t.contain||"")}function Kce(e){let t=La(e);for(;Yo(t)&&!Bl(t);){if(y4(t))return t;if(Cm(t))return null;t=La(t)}return null}function w4(){return Tg==null&&(Tg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tg}function Bl(e){return/^(html|body|#document)$/.test(oc(e))}function Hi(e){return Gr(e).getComputedStyle(e)}function Em(e){return Bi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function La(e){if(oc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Px(e)&&e.host||yo(e);return Px(t)?t.host:t}function pM(e){const t=La(e);return Bl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yo(t)&&hu(t)?t:pM(t)}function pd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=pM(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gr(i);if(o){const s=A1(a);return t.concat(a,a.visualViewport||[],hu(i)?i:[],s&&n?pd(s):[])}else return t.concat(i,pd(i,[],n))}function A1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gM(e){const t=Hi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yo(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Bh(n)!==o||Bh(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function k4(e){return Bi(e)?e:e.contextElement}function Al(e){const t=k4(e);if(!Yo(t))return uo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=gM(t);let a=(o?Bh(n.width):n.width)/r,s=(o?Bh(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Jce=uo(0);function vM(e){const t=Gr(e);return!w4()||!t.visualViewport?Jce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qce(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gr(e)?!1:t}function xs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=k4(e);let a=uo(1);t&&(r?Bi(r)&&(a=Al(r)):a=Al(e));const s=Qce(o,n,r)?vM(o):uo(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const h=Gr(o),m=r&&Bi(r)?Gr(r):r;let f=h,p=A1(f);for(;p&&r&&m!==f;){const b=Al(p),v=p.getBoundingClientRect(),g=Hi(p),k=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,S=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=S,f=Gr(p),p=A1(f)}}return Uh({width:d,height:u,x:l,y:c})}function Im(e,t){const n=Em(e).scrollLeft;return t?t.left+n:xs(yo(e)).left+n}function bM(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Im(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Xce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=yo(r),s=t?Cm(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=uo(1);const d=uo(0),u=Yo(r);if((u||!u&&!o)&&((oc(r)!=="body"||hu(a))&&(l=Em(r)),u)){const m=xs(r);c=Al(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=a&&!u&&!o?bM(a,l):uo(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Yce(e){return Array.from(e.getClientRects())}function ede(e){const t=yo(e),n=Em(e),r=e.ownerDocument.body,i=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Im(e);const s=-n.scrollTop;return Hi(r).direction==="rtl"&&(a+=Br(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const Ox=25;function tde(e,t){const n=Gr(e),r=yo(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const d=w4();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=Im(r);if(c<=0){const d=r.ownerDocument,u=d.body,h=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-u.clientWidth-m);f<=Ox&&(o-=f)}else c<=Ox&&(o+=c);return{width:o,height:a,x:s,y:l}}function nde(e,t){const n=xs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Yo(e)?Al(e):uo(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function $x(e,t,n){let r;if(t==="viewport")r=tde(e,n);else if(t==="document")r=ede(yo(e));else if(Bi(t))r=nde(t,n);else{const i=vM(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Uh(r)}function yM(e,t){const n=La(e);return n===t||!Bi(n)||Bl(n)?!1:Hi(n).position==="fixed"||yM(n,t)}function rde(e,t){const n=t.get(e);if(n)return n;let r=pd(e,[],!1).filter(s=>Bi(s)&&oc(s)!=="body"),i=null;const o=Hi(e).position==="fixed";let a=o?La(e):e;for(;Bi(a)&&!Bl(a);){const s=Hi(a),l=y4(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||hu(a)&&!l&&yM(e,a))?r=r.filter(d=>d!==a):i=s,a=La(a)}return t.set(e,r),r}function ide(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Cm(t)?[]:rde(t,this._c):[].concat(n),r],s=$x(t,a[0],i);let l=s.top,c=s.right,d=s.bottom,u=s.left;for(let h=1;h<a.length;h++){const m=$x(t,a[h],i);l=Br(m.top,l),c=Ia(m.right,c),d=Ia(m.bottom,d),u=Br(m.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function ode(e){const{width:t,height:n}=gM(e);return{width:t,height:n}}function ade(e,t,n){const r=Yo(t),i=yo(t),o=n==="fixed",a=xs(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=uo(0);function c(){l.x=Im(i)}if(r||!r&&!o)if((oc(t)!=="body"||hu(i))&&(s=Em(t)),r){const m=xs(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!r&&i&&c();const d=i&&!r&&!o?bM(i,s):uo(0),u=a.left+s.scrollLeft-l.x-d.x,h=a.top+s.scrollTop-l.y-d.y;return{x:u,y:h,width:a.width,height:a.height}}function Lg(e){return Hi(e).position==="static"}function Rx(e,t){if(!Yo(e)||Hi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yo(e)===n&&(n=n.ownerDocument.body),n}function wM(e,t){const n=Gr(e);if(Cm(e))return n;if(!Yo(e)){let i=La(e);for(;i&&!Bl(i);){if(Bi(i)&&!Lg(i))return i;i=La(i)}return n}let r=Rx(e,t);for(;r&&Zce(r)&&Lg(r);)r=Rx(r,t);return r&&Bl(r)&&Lg(r)&&!y4(r)?n:r||Kce(e)||n}const sde=async function(e){const t=this.getOffsetParent||wM,n=this.getDimensions,r=await n(e.floating);return{reference:ade(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lde(e){return Hi(e).direction==="rtl"}const kM={convertOffsetParentRelativeRectToViewportRelativeRect:Xce,getDocumentElement:yo,getClippingRect:ide,getOffsetParent:wM,getElementRects:sde,getClientRects:Yce,getDimensions:ode,getScale:Al,isElement:Bi,isRTL:lde};function xM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cde(e,t){let n=null,r;const i=yo(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:m}=c;if(s||t(),!h||!m)return;const f=uf(u),p=uf(i.clientWidth-(d+h)),b=uf(i.clientHeight-(u+m)),v=uf(d),k={rootMargin:-f+"px "+-p+"px "+-b+"px "+-v+"px",threshold:Br(0,Ia(1,l))||1};let S=!0;function w(x){const L=x[0].intersectionRatio;if(L!==l){if(!S)return a();L?a(!1,L):r=setTimeout(()=>{a(!1,1e-7)},1e3)}L===1&&!xM(c,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(w,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,k)}n.observe(e)}return a(!0),o}function dde(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=k4(e),d=i||o?[...c?pd(c):[],...t?pd(t):[]]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const u=c&&s?cde(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let f,p=l?xs(e):null;l&&b();function b(){const v=xs(e);p&&!xM(p,v)&&n(),p=v,f=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),u?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const ude=Hce,fde=Uce,hde=Fce,mde=qce,pde=Vce,gde=Nce,vde=(e,t,n)=>{const r=new Map,i={platform:kM,...n},o={...i.platform,_c:r};return zce(e,t,{...i,platform:o})};var bde=Q('<svg display=block viewBox="0 0 30 30"style=transform:scale(1.02)><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>'),x4=Ct();function S4(){const e=yt(x4);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var C1=30,zx=C1/2,yde={top:180,right:-90,bottom:0,left:90};function Wi(e){const t=S4(),n=Be({size:C1},e),[r,i]=ue(n,["ref","style","size"]),o=()=>t.currentPlacement().split("-")[0],a=wde(t.contentRef),s=()=>a()?.getPropertyValue("background-color")||"none",l=()=>a()?.getPropertyValue(`border-${o()}-color`)||"none",c=()=>a()?.getPropertyValue(`border-${o()}-width`)||"0px",d=()=>Number.parseInt(c())*2*(C1/r.size),u=()=>`rotate(${yde[o()]} ${zx} ${zx}) translate(0 2)`;return y(We,ee({as:"div",ref(h){var m=kt(t.setArrowRef,r.ref);typeof m=="function"&&m(h)},"aria-hidden":"true",get style(){return Pr({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:s(),stroke:l(),"stroke-width":d()},r.style)}},i,{get children(){var h=bde(),m=h.firstChild,f=m.firstChild;return f.nextSibling,Ne(()=>et(m,"transform",u())),h}}))}function wde(e){const[t,n]=me();return se(()=>{const r=e();r&&n(tb(r).getComputedStyle(r))}),t}function kde(e){const t=S4(),[n,r]=ue(e,["ref","style"]);return y(We,ee({as:"div",ref(i){var o=kt(t.setPositionerRef,n.ref);typeof o=="function"&&o(i)},"data-popper-positioner":"",get style(){return Pr({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function Nx(e){const{x:t=0,y:n=0,width:r=0,height:i=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,i);const o={x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:n+i,left:t};return{...o,toJSON:()=>o}}function xde(e,t){return{contextElement:e,getBoundingClientRect:()=>{const r=t(e);return r?Nx(r):e?e.getBoundingClientRect():Nx()}}}function Sde(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var _de={top:"bottom",right:"left",bottom:"top",left:"right"};function Ade(e,t){const[n,r]=e.split("-"),i=_de[n];return r?n==="left"||n==="right"?`${i} ${r==="start"?"top":"bottom"}`:r==="start"?`${i} ${t==="rtl"?"right":"left"}`:`${i} ${t==="rtl"?"left":"right"}`:`${i} center`}function Cde(e){const t=Be({getAnchorRect:h=>h?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=me(),[i,o]=me(),[a,s]=me(t.placement),l=()=>xde(t.anchorRef?.(),t.getAnchorRect),{direction:c}=Zi();async function d(){const h=l(),m=n(),f=i();if(!h||!m)return;const p=(f?.clientHeight||0)/2,b=typeof t.gutter=="number"?t.gutter+p:t.gutter??p;m.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),h.getBoundingClientRect();const v=[ude(({placement:x})=>{const L=!!x.split("-")[1];return{mainAxis:b,crossAxis:L?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){const x=typeof t.flip=="string"?t.flip.split(" "):void 0;if(x!==void 0&&!x.every(Sde))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(hde({padding:t.overflowPadding,fallbackPlacements:x}))}(t.slide||t.overlap)&&v.push(fde({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),v.push(mde({padding:t.overflowPadding,apply({availableWidth:x,availableHeight:L,rects:C}){const I=Math.round(C.reference.width);x=Math.floor(x),L=Math.floor(L),m.style.setProperty("--kb-popper-anchor-width",`${I}px`),m.style.setProperty("--kb-popper-content-available-width",`${x}px`),m.style.setProperty("--kb-popper-content-available-height",`${L}px`),t.sameWidth&&(m.style.width=`${I}px`),t.fitViewport&&(m.style.maxWidth=`${x}px`,m.style.maxHeight=`${L}px`)}})),t.hideWhenDetached&&v.push(pde({padding:t.detachedPadding})),f&&v.push(gde({element:f,padding:t.arrowPadding}));const g=await vde(h,m,{placement:t.placement,strategy:"absolute",middleware:v,platform:{...kM,isRTL:()=>c()==="rtl"}});if(s(g.placement),t.onCurrentPlacementChange?.(g.placement),!m)return;m.style.setProperty("--kb-popper-content-transform-origin",Ade(g.placement,c()));const k=Math.round(g.x),S=Math.round(g.y);let w;if(t.hideWhenDetached&&(w=g.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(m.style,{top:"0",left:"0",transform:`translate3d(${k}px, ${S}px, 0)`,visibility:w}),f&&g.middlewareData.arrow){const{x,y:L}=g.middlewareData.arrow,C=g.placement.split("-")[0];Object.assign(f.style,{left:x!=null?`${x}px`:"",top:L!=null?`${L}px`:"",[C]:"100%"})}}se(()=>{const h=l(),m=n();if(!h||!m)return;const f=dde(h,m,d,{elementResize:typeof ResizeObserver=="function"});he(f)}),se(()=>{const h=n(),m=t.contentRef?.();!h||!m||queueMicrotask(()=>{h.style.zIndex=getComputedStyle(m).zIndex})});const u={currentPlacement:a,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:o};return y(x4.Provider,{value:u,get children(){return t.children}})}var Fa=Object.assign(Cde,{Arrow:Wi,Context:x4,usePopperContext:S4,Positioner:kde}),Ede={};Ar(Ede,{Arrow:()=>Wi,Content:()=>_M,Portal:()=>AM,Root:()=>CM,Tooltip:()=>Ro,Trigger:()=>EM,useTooltipContext:()=>Tm});var SM=Ct();function Tm(){const e=yt(SM);if(e===void 0)throw new Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");return e}function _M(e){const t=Tm(),n=Be({id:t.generateId("content")},e),[r,i]=ue(n,["ref","style"]);return se(()=>he(t.registerContentId(i.id))),y(de,{get when(){return t.contentPresent()},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({ref(o){var a=kt(s=>{t.setContentRef(s)},r.ref);typeof a=="function"&&a(o)},role:"tooltip",disableOutsidePointerEvents:!1,get style(){return Pr({"--kb-tooltip-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},r.style)},onFocusOutside:o=>o.preventDefault(),onDismiss:()=>t.hideTooltip(!0)},()=>t.dataset(),i))}})}})}function AM(e){const t=Tm();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}function Ide(e,t,n){const r=e.split("-")[0],i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=[],s=i.left+i.width/2,l=i.top+i.height/2;switch(r){case"top":a.push([i.left,l]),a.push([o.left,o.bottom]),a.push([o.left,o.top]),a.push([o.right,o.top]),a.push([o.right,o.bottom]),a.push([i.right,l]);break;case"right":a.push([s,i.top]),a.push([o.left,o.top]),a.push([o.right,o.top]),a.push([o.right,o.bottom]),a.push([o.left,o.bottom]),a.push([s,i.bottom]);break;case"bottom":a.push([i.left,l]),a.push([o.left,o.top]),a.push([o.left,o.bottom]),a.push([o.right,o.bottom]),a.push([o.right,o.top]),a.push([i.right,l]);break;case"left":a.push([s,i.top]),a.push([o.right,o.top]),a.push([o.left,o.top]),a.push([o.left,o.bottom]),a.push([o.right,o.bottom]),a.push([s,i.bottom]);break}return a}var Wa={},Tde=0,Xs=!1,Io,wc,Ys;function CM(e){const t=`tooltip-${cn()}`,n=`${++Tde}`,r=Be({id:t,openDelay:700,closeDelay:300,skipDelayDuration:300},e),[i,o]=ue(r,["id","open","defaultOpen","onOpenChange","disabled","triggerOnFocusOnly","openDelay","closeDelay","skipDelayDuration","ignoreSafeArea","forceMount"]);let a;const[s,l]=me(),[c,d]=me(),[u,h]=me(),[m,f]=me(o.placement),p=Ma({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:T=>i.onOpenChange?.(T)}),{present:b}=Uo({show:()=>i.forceMount||p.isOpen(),element:()=>u()??null}),v=()=>{Wa[n]=k},g=()=>{for(const T in Wa)T!==n&&(Wa[T](!0),delete Wa[T])},k=(T=!1)=>{T||i.closeDelay&&i.closeDelay<=0?(window.clearTimeout(a),a=void 0,p.close()):a||(a=window.setTimeout(()=>{a=void 0,p.close()},i.closeDelay)),window.clearTimeout(Io),Io=void 0,i.skipDelayDuration&&i.skipDelayDuration>=0&&(Ys=window.setTimeout(()=>{window.clearTimeout(Ys),Ys=void 0},i.skipDelayDuration)),Xs&&(window.clearTimeout(wc),wc=window.setTimeout(()=>{delete Wa[n],wc=void 0,Xs=!1},i.closeDelay))},S=()=>{clearTimeout(a),a=void 0,g(),v(),Xs=!0,p.open(),window.clearTimeout(Io),Io=void 0,window.clearTimeout(wc),wc=void 0,window.clearTimeout(Ys),Ys=void 0},w=()=>{g(),v(),!p.isOpen()&&!Io&&!Xs?Io=window.setTimeout(()=>{Io=void 0,Xs=!0,S()},i.openDelay):p.isOpen()||S()},x=(T=!1)=>{!T&&i.openDelay&&i.openDelay>0&&!a&&!Ys?w():S()},L=()=>{window.clearTimeout(Io),Io=void 0,Xs=!1},C=()=>{window.clearTimeout(a),a=void 0},I=T=>zn(c(),T)||zn(u(),T),$=T=>{const M=c(),R=u();if(!(!M||!R))return Ide(T,M,R)},F=T=>{const M=T.target;if(I(M)){C();return}if(!i.ignoreSafeArea){const R=$(m());if(R&&ab(i9(T),R)){C();return}}a||k()};se(()=>{if(!p.isOpen())return;const T=Sr();T.addEventListener("pointermove",F,!0),he(()=>{T.removeEventListener("pointermove",F,!0)})}),se(()=>{const T=c();if(!T||!p.isOpen())return;const M=G=>{const K=G.target;zn(K,T)&&k(!0)},R=tb();R.addEventListener("scroll",M,{capture:!0}),he(()=>{R.removeEventListener("scroll",M,{capture:!0})})}),he(()=>{clearTimeout(a),Wa[n]&&delete Wa[n]});const D={dataset:j(()=>({"data-expanded":p.isOpen()?"":void 0,"data-closed":p.isOpen()?void 0:""})),isOpen:p.isOpen,isDisabled:()=>i.disabled??!1,triggerOnFocusOnly:()=>i.triggerOnFocusOnly??!1,contentId:s,contentPresent:b,openTooltip:x,hideTooltip:k,cancelOpening:L,generateId:Or(()=>r.id),registerContentId:In(l),isTargetOnTooltip:I,setTriggerRef:d,setContentRef:h};return y(SM.Provider,{value:D,get children(){return y(Fa,ee({anchorRef:c,contentRef:u,onCurrentPlacementChange:f},o))}})}function EM(e){let t;const n=Tm(),[r,i]=ue(e,["ref","onPointerEnter","onPointerLeave","onPointerDown","onClick","onFocus","onBlur"]);let o=!1,a=!1,s=!1;const l=()=>{o=!1},c=()=>{!n.isOpen()&&(a||s)&&n.openTooltip(s)},d=v=>{n.isOpen()&&!a&&!s&&n.hideTooltip(v)},u=v=>{Ve(v,r.onPointerEnter),!(v.pointerType==="touch"||n.triggerOnFocusOnly()||n.isDisabled()||v.defaultPrevented)&&(a=!0,c())},h=v=>{Ve(v,r.onPointerLeave),v.pointerType!=="touch"&&(a=!1,s=!1,n.isOpen()?d():n.cancelOpening())},m=v=>{Ve(v,r.onPointerDown),o=!0,Sr(t).addEventListener("pointerup",l,{once:!0})},f=v=>{Ve(v,r.onClick),a=!1,s=!1,d(!0)},p=v=>{Ve(v,r.onFocus),!(n.isDisabled()||v.defaultPrevented||o)&&(s=!0,c())},b=v=>{Ve(v,r.onBlur);const g=v.relatedTarget;n.isTargetOnTooltip(g)||(a=!1,s=!1,d(!0))};return he(()=>{Sr(t).removeEventListener("pointerup",l)}),y(We,ee({as:"button",ref(v){var g=kt(k=>{n.setTriggerRef(k),t=k},r.ref);typeof g=="function"&&g(v)},get"aria-describedby"(){return Le(()=>!!n.isOpen())()?n.contentId():void 0},onPointerEnter:u,onPointerLeave:h,onPointerDown:m,onClick:f,onFocus:p,onBlur:b},()=>n.dataset(),i))}var Ro=Object.assign(CM,{Arrow:Wi,Content:_M,Portal:AM,Trigger:EM}),Lde=Q("<div data-slot=tooltip-keybind><span></span><span data-slot=tooltip-keybind-key>");function gd(e){const[t,n]=ue(e,["title","keybind"]);return y(_r,ee(n,{get value(){return(()=>{var r=Lde(),i=r.firstChild,o=i.nextSibling;return P(i,()=>t.title),P(o,()=>t.keybind),r})()}}))}function _r(e){const[t,n]=me(!1),[r,i]=ue(e,["children","class","contentClass","contentStyle","inactive","forceOpen","value"]);return y(Ur,{get children(){return[y(Ot,{get when(){return r.inactive},get children(){return r.children}}),y(Ot,{when:!0,get children(){return y(Ro,ee({gutter:4},i,{get open(){return r.forceOpen||t()},onOpenChange:n,get children(){return[y(Ro.Trigger,{as:"div","data-component":"tooltip-trigger",get class(){return r.class},get children(){return r.children}}),y(Ro.Portal,{get children(){return y(Ro.Content,{"data-component":"tooltip",get"data-placement"(){return e.placement},get"data-force-open"(){return r.forceOpen},get class(){return r.contentClass},get style(){return r.contentStyle},get children(){return r.value}})}})]}}))}})]}})}function IM(e){let t=e.startIndex??0;const n=e.startLevel??0,r=[],i=l=>{if(l==null)return"";const c=e.getKey??"key",d=al(c)?l[c]:c(l);return d!=null?String(d):""},o=l=>{if(l==null)return"";const c=e.getTextValue??"textValue",d=al(c)?l[c]:c(l);return d!=null?String(d):""},a=l=>{if(l==null)return!1;const c=e.getDisabled??"disabled";return(al(c)?l[c]:c(l))??!1},s=l=>{if(l!=null)return al(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(const l of e.dataSource){if(al(l)||bH(l)){r.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:a(l),level:n,index:t}),t++;continue}if(s(l)!=null){r.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const c=s(l)??[];if(c.length>0){const d=IM({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...d),t+=d.length}}else r.push({type:"item",rawValue:l,key:i(l),textValue:o(l),disabled:a(l),level:n,index:t}),t++}return r}function Dde(e,t=[]){return j(()=>{const n=IM({dataSource:ce(e.dataSource),getKey:ce(e.getKey),getTextValue:ce(e.getTextValue),getDisabled:ce(e.getDisabled),getSectionChildren:ce(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}var ro=class TM extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof TM?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function Mde(e){const[t,n]=Gl(e);return[()=>t()??new ro,n]}function LM(e){return SH()?e.altKey:e.ctrlKey}function dl(e){return Ed()?e.metaKey:e.ctrlKey}function Fx(e){return new ro(e)}function DM(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Pde(e){const t=Be({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=me(!1),[i,o]=me(),a=j(()=>{const p=ce(t.selectedKeys);return p!=null?Fx(p):p}),s=j(()=>{const p=ce(t.defaultSelectedKeys);return p!=null?Fx(p):new ro}),[l,c]=Mde({value:a,defaultValue:s,onChange:p=>t.onSelectionChange?.(p)}),[d,u]=me(ce(t.selectionBehavior)),h=()=>ce(t.selectionMode),m=()=>ce(t.disallowEmptySelection)??!1,f=p=>{(ce(t.allowDuplicateSelectionEvents)||!DM(p,l()))&&c(p)};return se(()=>{const p=l();ce(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof p=="object"&&p.size===0&&u("replace")}),se(()=>{u(ce(t.selectionBehavior)??"toggle")}),{selectionMode:h,disallowEmptySelection:m,selectionBehavior:d,setSelectionBehavior:u,isFocused:n,setFocused:r,focusedKey:i,setFocusedKey:o,selectedKeys:l,setSelectedKeys:f}}function MM(e){const[t,n]=me(""),[r,i]=me(-1);return{typeSelectHandlers:{onKeyDown:a=>{if(ce(e.isDisabled))return;const s=ce(e.keyboardDelegate),l=ce(e.selectionManager);if(!s.getKeyForSearch)return;const c=Ode(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===" "&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let d=n(h=>h+c),u=s.getKeyForSearch(d,l.focusedKey())??s.getKeyForSearch(d);u==null&&$de(d)&&(d=d[0],u=s.getKeyForSearch(d,l.focusedKey())??s.getKeyForSearch(d)),u!=null&&(l.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),i(window.setTimeout(()=>n(""),500))}}}}function Ode(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function $de(e){return e.split("").every(t=>t===e[0])}function PM(e,t,n){const i=ee({selectOnFocus:()=>ce(e.selectionManager).selectionBehavior()==="replace"},e),o=()=>n?.()??t(),{direction:a}=Zi();let s={top:0,left:0};Yj(()=>ce(i.isVirtualized)?void 0:o(),"scroll",()=>{const b=o();b&&(s={top:b.scrollTop,left:b.scrollLeft})});const{typeSelectHandlers:l}=MM({isDisabled:()=>ce(i.disallowTypeAhead),keyboardDelegate:()=>ce(i.keyboardDelegate),selectionManager:()=>ce(i.selectionManager)}),c=()=>ce(i.orientation)??"vertical",d=b=>{Ve(b,l.onKeyDown),b.altKey&&b.key==="Tab"&&b.preventDefault();const v=t();if(!v?.contains(b.target))return;const g=ce(i.selectionManager),k=ce(i.selectOnFocus),S=C=>{C!=null&&(g.setFocusedKey(C),b.shiftKey&&g.selectionMode()==="multiple"?g.extendSelection(C):k&&!LM(b)&&g.replaceSelection(C))},w=ce(i.keyboardDelegate),x=ce(i.shouldFocusWrap),L=g.focusedKey();switch(b.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(w.getKeyBelow){b.preventDefault();let C;L!=null?C=w.getKeyBelow(L):C=w.getFirstKey?.(),C==null&&x&&(C=w.getFirstKey?.(L)),S(C)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(w.getKeyAbove){b.preventDefault();let C;L!=null?C=w.getKeyAbove(L):C=w.getLastKey?.(),C==null&&x&&(C=w.getLastKey?.(L)),S(C)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(w.getKeyLeftOf){b.preventDefault();const C=a()==="rtl";let I;L!=null?I=w.getKeyLeftOf(L):I=C?w.getFirstKey?.():w.getLastKey?.(),S(I)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(w.getKeyRightOf){b.preventDefault();const C=a()==="rtl";let I;L!=null?I=w.getKeyRightOf(L):I=C?w.getLastKey?.():w.getFirstKey?.(),S(I)}break}case"Home":if(w.getFirstKey){b.preventDefault();const C=w.getFirstKey(L,dl(b));C!=null&&(g.setFocusedKey(C),dl(b)&&b.shiftKey&&g.selectionMode()==="multiple"?g.extendSelection(C):k&&g.replaceSelection(C))}break;case"End":if(w.getLastKey){b.preventDefault();const C=w.getLastKey(L,dl(b));C!=null&&(g.setFocusedKey(C),dl(b)&&b.shiftKey&&g.selectionMode()==="multiple"?g.extendSelection(C):k&&g.replaceSelection(C))}break;case"PageDown":if(w.getKeyPageBelow&&L!=null){b.preventDefault();const C=w.getKeyPageBelow(L);S(C)}break;case"PageUp":if(w.getKeyPageAbove&&L!=null){b.preventDefault();const C=w.getKeyPageAbove(L);S(C)}break;case"a":dl(b)&&g.selectionMode()==="multiple"&&ce(i.disallowSelectAll)!==!0&&(b.preventDefault(),g.selectAll());break;case"Escape":b.defaultPrevented||(b.preventDefault(),ce(i.disallowEmptySelection)||g.clearSelection());break;case"Tab":if(!ce(i.allowsTabNavigation)){if(b.shiftKey)v.focus();else{const C=r9(v,{tabbable:!0});let I,$;do $=C.lastChild(),$&&(I=$);while($);I&&!I.contains(document.activeElement)&&pn(I)}break}}},u=b=>{const v=ce(i.selectionManager),g=ce(i.keyboardDelegate),k=ce(i.selectOnFocus);if(v.isFocused()){b.currentTarget.contains(b.target)||v.setFocused(!1);return}if(b.currentTarget.contains(b.target)){if(v.setFocused(!0),v.focusedKey()==null){const S=x=>{x!=null&&(v.setFocusedKey(x),k&&v.replaceSelection(x))},w=b.relatedTarget;w&&b.currentTarget.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?S(v.lastSelectedKey()??g.getLastKey?.()):S(v.firstSelectedKey()??g.getFirstKey?.())}else if(!ce(i.isVirtualized)){const S=o();if(S){S.scrollTop=s.top,S.scrollLeft=s.left;const w=S.querySelector(`[data-key="${v.focusedKey()}"]`);w&&(pn(w),Sv(S,w))}}}},h=b=>{const v=ce(i.selectionManager);b.currentTarget.contains(b.relatedTarget)||v.setFocused(!1)},m=b=>{o()===b.target&&b.preventDefault()},f=()=>{const b=ce(i.autoFocus);if(!b)return;const v=ce(i.selectionManager),g=ce(i.keyboardDelegate);let k;b==="first"&&(k=g.getFirstKey?.()),b==="last"&&(k=g.getLastKey?.());const S=v.selectedKeys();S.size&&(k=S.values().next().value),v.setFocused(!0),v.setFocusedKey(k);const w=t();w&&k==null&&!ce(i.shouldUseVirtualFocus)&&pn(w)};return Wt(()=>{i.deferAutoFocus?setTimeout(f,0):f()}),se(Ht([o,()=>ce(i.isVirtualized),()=>ce(i.selectionManager).focusedKey()],b=>{const[v,g,k]=b;if(g)k&&i.scrollToKey?.(k);else if(k&&v){const S=v.querySelector(`[data-key="${k}"]`);S&&Sv(v,S)}})),{tabIndex:j(()=>{if(!ce(i.shouldUseVirtualFocus))return ce(i.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:m,onFocusIn:u,onFocusOut:h}}function Lm(e,t){const n=()=>ce(e.selectionManager),r=()=>ce(e.key),i=()=>ce(e.shouldUseVirtualFocus),o=g=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):g?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||dl(g)||"pointerType"in g&&g.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},a=()=>n().isSelected(r()),s=()=>ce(e.disabled)||n().isDisabled(r()),l=()=>!s()&&n().canSelectItem(r());let c=null;const d=g=>{l()&&(c=g.pointerType,g.pointerType==="mouse"&&g.button===0&&!ce(e.shouldSelectOnPressUp)&&o(g))},u=g=>{l()&&g.pointerType==="mouse"&&g.button===0&&ce(e.shouldSelectOnPressUp)&&ce(e.allowsDifferentPressOrigin)&&o(g)},h=g=>{l()&&(ce(e.shouldSelectOnPressUp)&&!ce(e.allowsDifferentPressOrigin)||c!=="mouse")&&o(g)},m=g=>{!l()||!["Enter"," "].includes(g.key)||(LM(g)?n().toggleSelection(r()):o(g))},f=g=>{s()&&g.preventDefault()},p=g=>{const k=t();i()||s()||!k||g.target===k&&n().setFocusedKey(r())},b=j(()=>{if(!(i()||s()))return r()===n().focusedKey()?0:-1}),v=j(()=>ce(e.virtualized)?void 0:r());return se(Ht([t,r,i,()=>n().focusedKey(),()=>n().isFocused()],([g,k,S,w,x])=>{g&&k===w&&x&&!S&&document.activeElement!==g&&(e.focus?e.focus():pn(g))})),{isSelected:a,isDisabled:s,allowsSelection:l,tabIndex:b,dataKey:v,onPointerDown:d,onPointerUp:u,onClick:h,onKeyDown:m,onMouseDown:f,onFocus:p}}var Rde=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=this.state.selectedKeys(),r=n.anchorKey||t,i=new ro(n,r,t);for(const o of this.getKeyRange(r,n.currentKey||t))i.delete(o);for(const o of this.getKeyRange(t,r))this.canSelectItem(o)&&i.add(o);this.state.setSelectedKeys(i)}getKeyRange(e,t){const n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const n=[];let r=e;for(;r!=null;){const i=this.collection().getItem(r);if(i&&i.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=new ro(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const n=this.canSelectItem(t)?new ro([t],t,t):new ro;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new ro;for(const n of e){const r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new ro)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;for(const n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){const r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},Vx=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(const r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(const[r,i]of this.keyMap)t?(t.nextKey=r,i.prevKey=t.key):(this.firstKey=r,i.prevKey=void 0),i.type==="item"&&(i.index=n++),t=i,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function Dm(e){const t=Pde(e),r=Dde({dataSource:()=>ce(e.dataSource),getKey:()=>ce(e.getKey),getTextValue:()=>ce(e.getTextValue),getDisabled:()=>ce(e.getDisabled),getSectionChildren:()=>ce(e.getSectionChildren),factory:o=>e.filter?new Vx(e.filter(o)):new Vx(o)},[()=>e.filter]),i=new Rde(r,t);return Ng(()=>{const o=t.focusedKey();o!=null&&!r().getItem(o)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>i}}var OM=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);let i=e;for(;i&&n&&n.offsetTop>r;)i=this.getKeyAbove(i),n=i!=null?this.getItem(i):null;return i}getKeyPageBelow(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);let i=e;for(;i&&n&&n.offsetTop<r;)i=this.getKeyBelow(i),n=i!=null?this.getItem(i):null;return i}getKeyForSearch(e,t){const n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){const i=this.collection().getItem(r);if(i){const o=i.textValue.slice(0,e.length);if(i.textValue&&n.compare(o,e)===0)return r}r=this.getKeyBelow(r)}}};function $M(e,t,n){const r=uM({usage:"search",sensitivity:"base"}),i=j(()=>{const o=ce(e.keyboardDelegate);return o||new OM(e.collection,t,r)});return PM({selectionManager:()=>ce(e.selectionManager),keyboardDelegate:i,autoFocus:()=>ce(e.autoFocus),deferAutoFocus:()=>ce(e.deferAutoFocus),shouldFocusWrap:()=>ce(e.shouldFocusWrap),disallowEmptySelection:()=>ce(e.disallowEmptySelection),selectOnFocus:()=>ce(e.selectOnFocus),disallowTypeAhead:()=>ce(e.disallowTypeAhead),shouldUseVirtualFocus:()=>ce(e.shouldUseVirtualFocus),allowsTabNavigation:()=>ce(e.allowsTabNavigation),isVirtualized:()=>ce(e.isVirtualized),scrollToKey:o=>ce(e.scrollToKey)?.(o),orientation:()=>ce(e.orientation)},t,n)}var RM=Ct();function zM(){return yt(RM)}function zde(){const e=zM();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function NM(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Nde(e,t){const n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){const i=e[r]?.ref();if(i&&NM(i,n))return r+1}return 0}function Fde(e){const t=e.map((r,i)=>[i,r]);let n=!1;return t.sort(([r,i],[o,a])=>{const s=i.ref(),l=a.ref();return s===l||!s||!l?0:NM(s,l)?(r>o&&(n=!0),-1):(r<o&&(n=!0),1)}),n?t.map(([r,i])=>i):e}function FM(e,t){const n=Fde(e);e!==n&&t(n)}function Vde(e){const t=e[0],n=e[e.length-1]?.ref();let r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return Sr(r).body}function jde(e,t){se(()=>{const n=setTimeout(()=>{FM(e(),t)});he(()=>clearTimeout(n))})}function Bde(e,t){if(typeof IntersectionObserver!="function"){jde(e,t);return}let n=[];se(()=>{const r=()=>{const a=!!n.length;n=e(),a&&FM(e(),t)},i=Vde(e()),o=new IntersectionObserver(r,{root:i});for(const a of e()){const s=a.ref();s&&o.observe(s)}he(()=>o.disconnect())})}function VM(e={}){const[t,n]=JH({value:()=>ce(e.items),onChange:o=>e.onItemsChange?.(o)});Bde(t,n);const r=o=>(n(a=>{const s=Nde(a,o);return vH(a,o,s)}),()=>{n(a=>{const s=a.filter(l=>l.ref()!==o.ref());return a.length===s.length?a:s})});return{DomCollectionProvider:o=>y(RM.Provider,{value:{registerItem:r},get children(){return o.children}})}}function jM(e){const t=zde(),n=Be({shouldRegisterItem:!0},e);se(()=>{if(!n.shouldRegisterItem)return;const r=t.registerItem(n.getItem());he(r)})}function BM(e={}){const[t,n]=c9({value:()=>ce(e.isSelected),defaultValue:()=>!!ce(e.defaultIsSelected),onChange:o=>e.onSelectedChange?.(o)});return{isSelected:t,setIsSelected:o=>{!ce(e.isReadOnly)&&!ce(e.isDisabled)&&n(o)},toggle:()=>{!ce(e.isReadOnly)&&!ce(e.isDisabled)&&n(!t())}}}var Hde=Ct();function Mm(){return yt(Hde)}var Ude=Ct();function HM(){return yt(Ude)}var UM=Ct();function qM(){return yt(UM)}function wo(){const e=qM();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var ZM=Ct();function _4(){const e=yt(ZM);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var WM=Ct();function wi(){const e=yt(WM);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function A4(e){let t;const n=wi(),r=wo(),i=Be({id:n.generateId(`item-${cn()}`)},e),[o,a]=ue(i,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,l]=me(),[c,d]=me(),[u,h]=me(),m=()=>r.listState().selectionManager(),f=()=>a.id,p=()=>m().focusedKey()===f(),b=()=>{o.onSelect?.(),o.closeOnSelect&&setTimeout(()=>{r.close(!0)})};jM({getItem:()=>({ref:()=>t,type:"item",key:f(),textValue:o.textValue??u()?.textContent??t?.textContent??"",disabled:o.disabled??!1})});const v=Lm({key:f,selectionManager:m,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>o.disabled},()=>t),g=I=>{Ve(I,o.onPointerMove),I.pointerType==="mouse"&&(o.disabled?r.onItemLeave(I):(r.onItemEnter(I),I.defaultPrevented||(pn(I.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f()))))},k=I=>{Ve(I,o.onPointerLeave),I.pointerType==="mouse"&&r.onItemLeave(I)},S=I=>{Ve(I,o.onPointerUp),!o.disabled&&I.button===0&&b()},w=I=>{if(Ve(I,o.onKeyDown),!I.repeat&&!o.disabled)switch(I.key){case"Enter":case" ":b();break}},x=j(()=>{if(o.indeterminate)return"mixed";if(o.checked!=null)return o.checked}),L=j(()=>({"data-indeterminate":o.indeterminate?"":void 0,"data-checked":o.checked&&!o.indeterminate?"":void 0,"data-disabled":o.disabled?"":void 0,"data-highlighted":p()?"":void 0})),C={isChecked:()=>o.checked,dataset:L,setLabelRef:h,generateId:Or(()=>a.id),registerLabel:In(l),registerDescription:In(d)};return y(ZM.Provider,{value:C,get children(){return y(We,ee({as:"div",ref(I){var $=kt(F=>t=F,o.ref);typeof $=="function"&&$(I)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return x()},get"aria-disabled"(){return o.disabled},get"aria-labelledby"(){return s()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return gt([o.onPointerDown,v.onPointerDown])},get onPointerUp(){return gt([S,v.onPointerUp])},get onClick(){return gt([o.onClick,v.onClick])},get onKeyDown(){return gt([w,v.onKeyDown])},get onMouseDown(){return gt([o.onMouseDown,v.onMouseDown])},get onFocus(){return gt([o.onFocus,v.onFocus])},onPointerMove:g,onPointerLeave:k},L,a))}})}function Pm(e){const t=Be({closeOnSelect:!1},e),[n,r]=ue(t,["checked","defaultChecked","onChange","onSelect"]),i=BM({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:a=>n.onChange?.(a),isDisabled:()=>r.disabled});return y(A4,ee({role:"menuitemcheckbox",get checked(){return i.isSelected()},onSelect:()=>{n.onSelect?.(),i.toggle()}},r))}var vd={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>vd.next(e==="ltr"?"rtl":"ltr",t)},jx={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};function GM(e){const t=wi(),n=wo(),r=Mm(),{direction:i}=Zi(),o=Be({id:t.generateId("trigger")},e),[a,s]=ue(o,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]);let l=()=>t.value();r!==void 0&&(l=()=>t.value()??a.id,r.lastValue()===void 0&&r.setLastValue(l));const c=Td(()=>n.triggerRef(),()=>"button"),d=j(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);se(Ht(()=>r?.value(),v=>{d()&&v===l()&&n.triggerRef()?.focus()}));const u=()=>{r!==void 0?n.isOpen()?r.value()===l()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},h=v=>{Ve(v,a.onPointerDown),v.currentTarget.dataset.pointerType=v.pointerType,!a.disabled&&v.pointerType!=="touch"&&v.button===0&&u()},m=v=>{Ve(v,a.onClick),a.disabled||v.currentTarget.dataset.pointerType==="touch"&&u()},f=v=>{if(Ve(v,a.onKeyDown),!a.disabled){if(d())switch(v.key){case"Enter":case" ":return}switch(v.key){case"Enter":case" ":case jx.first(t.orientation()):v.stopPropagation(),v.preventDefault(),RH(v.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(l);break;case jx.last(t.orientation()):v.stopPropagation(),v.preventDefault(),n.open("last");break;case vd.next(i(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.nextMenu();break;case vd.previous(i(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.previousMenu();break}}},p=v=>{Ve(v,a.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!a.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(l)},b=v=>{Ve(v,a.onFocus),r!==void 0&&v.currentTarget.dataset.pointerType!=="touch"&&r.setValue(l)};return se(()=>he(n.registerTriggerId(a.id))),y(Pa,ee({ref(v){var g=kt(n.setTriggerRef,a.ref);typeof g=="function"&&g(v)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return a.id},get disabled(){return a.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Le(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&r?.value()===l()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===l()||r.lastValue()===l()?0:-1:void 0},onPointerDown:h,onMouseOver:p,onClick:m,onKeyDown:f,onFocus:b,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),s))}function KM(e){let t;const n=wi(),r=wo(),i=Mm(),o=HM(),{direction:a}=Zi(),s=Be({id:n.generateId(`content-${cn()}`)},e),[l,c]=ue(s,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let d=0;const u=()=>r.parentMenuContext()==null&&i===void 0&&n.isModal(),h=$M({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);cb({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:k=>{i===void 0&&l.onOpenAutoFocus?.(k)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);const m=k=>{if(zn(k.currentTarget,k.target)&&(k.key==="Tab"&&r.isOpen()&&k.preventDefault(),i!==void 0&&k.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(k.key){case vd.next(a(),n.orientation()):k.stopPropagation(),k.preventDefault(),r.close(!0),i.setAutoFocusMenu(!0),i.nextMenu();break;case vd.previous(a(),n.orientation()):if(k.currentTarget.hasAttribute("data-closed"))break;k.stopPropagation(),k.preventDefault(),r.close(!0),i.setAutoFocusMenu(!0),i.previousMenu();break}},f=k=>{l.onEscapeKeyDown?.(k),i?.setAutoFocusMenu(!1),r.close(!0)},p=k=>{l.onFocusOutside?.(k),n.isModal()&&k.preventDefault()},b=k=>{Ve(k,l.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},v=k=>{if(Ve(k,l.onPointerMove),k.pointerType!=="mouse")return;const S=k.target,w=d!==k.clientX;zn(k.currentTarget,S)&&w&&(r.setPointerDir(k.clientX>d?"right":"left"),d=k.clientX)};se(()=>he(r.registerContentId(l.id))),he(()=>r.setContentRef(void 0));const g={ref:kt(k=>{r.setContentRef(k),t=k},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return h.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:gt([l.onKeyDown,h.onKeyDown,m]),onMouseDown:gt([l.onMouseDown,h.onMouseDown]),onFocusIn:gt([l.onFocusIn,h.onFocusIn]),onFocusOut:gt([l.onFocusOut,h.onFocusOut]),onPointerEnter:b,onPointerMove:v,get"data-orientation"(){return n.orientation()}};return y(de,{get when(){return r.contentPresent()},get children(){return y(de,{get when(){return o===void 0||r.parentMenuContext()!=null},get fallback(){return y(We,ee({as:"div"},()=>r.dataset(),g,c))},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({get disableOutsidePointerEvents(){return Le(()=>!!u())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Pr({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:f,onFocusOutside:p,get onDismiss(){return r.close}},()=>r.dataset(),g,c))}})}})}})}function JM(e){let t;const n=wi(),r=wo(),[i,o]=ue(e,["ref"]);return fb({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),y(KM,ee({ref(a){var s=kt(l=>{t=l},i.ref);typeof s=="function"&&s(a)}},o))}var QM=Ct();function qde(){const e=yt(QM);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function mu(e){const t=wi(),n=Be({id:t.generateId(`group-${cn()}`)},e),[r,i]=me(),o={generateId:Or(()=>n.id),registerLabelId:In(i)};return y(QM.Provider,{value:o,get children(){return y(We,ee({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function Om(e){const t=qde(),n=Be({id:t.generateId("label")},e),[r,i]=ue(n,["id"]);return se(()=>he(t.registerLabelId(r.id))),y(We,ee({as:"span",get id(){return r.id},"aria-hidden":"true"},i))}function $m(e){const t=wo(),n=Be({children:"▼"},e);return y(We,ee({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Rm(e){return y(A4,ee({role:"menuitem",closeOnSelect:!0},e))}function zm(e){const t=_4(),n=Be({id:t.generateId("description")},e),[r,i]=ue(n,["id"]);return se(()=>he(t.registerDescription(r.id))),y(We,ee({as:"div",get id(){return r.id}},()=>t.dataset(),i))}function Nm(e){const t=_4(),n=Be({id:t.generateId("indicator")},e),[r,i]=ue(n,["forceMount"]);return y(de,{get when(){return r.forceMount||t.isChecked()},get children(){return y(We,ee({as:"div"},()=>t.dataset(),i))}})}function Fm(e){const t=_4(),n=Be({id:t.generateId("label")},e),[r,i]=ue(n,["ref","id"]);return se(()=>he(t.registerLabel(r.id))),y(We,ee({as:"div",ref(o){var a=kt(t.setLabelRef,r.ref);typeof a=="function"&&a(o)},get id(){return r.id}},()=>t.dataset(),i))}function Vm(e){const t=wo();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}var XM=Ct();function Zde(){const e=yt(XM);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function jm(e){const n=wi().generateId(`radiogroup-${cn()}`),r=Be({id:n},e),[i,o]=ue(r,["value","defaultValue","onChange","disabled"]),[a,s]=Gl({value:()=>i.value,defaultValue:()=>i.defaultValue,onChange:c=>i.onChange?.(c)}),l={isDisabled:()=>i.disabled,isSelectedValue:c=>c===a(),setSelectedValue:c=>s(c)};return y(XM.Provider,{value:l,get children(){return y(mu,o)}})}function Bm(e){const t=Zde(),n=Be({closeOnSelect:!1},e),[r,i]=ue(n,["value","onSelect"]);return y(A4,ee({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},i))}function Wde(e,t,n){const r=e.split("-")[0],i=n.getBoundingClientRect(),o=[],a=t.clientX,s=t.clientY;switch(r){case"top":o.push([a,s+5]),o.push([i.left,i.bottom]),o.push([i.left,i.top]),o.push([i.right,i.top]),o.push([i.right,i.bottom]);break;case"right":o.push([a-5,s]),o.push([i.left,i.top]),o.push([i.right,i.top]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]);break;case"bottom":o.push([a,s-5]),o.push([i.right,i.top]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]),o.push([i.left,i.top]);break;case"left":o.push([a+5,s]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]),o.push([i.left,i.top]),o.push([i.right,i.top]);break}return o}function Gde(e,t){return t?ab([e.clientX,e.clientY],t):!1}function YM(e){const t=wi(),n=zM(),r=qM(),i=Mm(),o=HM(),a=Be({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[s,l]=ue(a,["open","defaultOpen","onOpenChange"]);let c=0,d=null,u="right";const[h,m]=me(),[f,p]=me(),[b,v]=me(),[g,k]=me(),[S,w]=me(!0),[x,L]=me(l.placement),[C,I]=me([]),[$,F]=me([]),{DomCollectionProvider:N}=VM({items:$,onItemsChange:F}),D=Ma({open:()=>s.open,defaultOpen:()=>s.defaultOpen,onOpenChange:ie=>s.onOpenChange?.(ie)}),{present:T}=Uo({show:()=>t.forceMount()||D.isOpen(),element:()=>g()??null}),M=Dm({selectionMode:"none",dataSource:$}),R=ie=>{w(ie),D.open()},G=(ie=!1)=>{D.close(),ie&&r&&r.close(!0)},K=ie=>{w(ie),D.toggle()},U=()=>{const ie=g();ie&&(pn(ie),M.selectionManager().setFocused(!0),M.selectionManager().setFocusedKey(void 0))},q=()=>{o!=null?setTimeout(()=>U()):U()},X=ie=>{I(ge=>[...ge,ie]);const be=r?.registerNestedMenu(ie);return()=>{I(ge=>xv(ge,ie)),be?.()}},le=ie=>u===d?.side&&Gde(ie,d?.area),_e=ie=>{le(ie)&&ie.preventDefault()},ne=ie=>{le(ie)||q()},B=ie=>{le(ie)&&ie.preventDefault()};db({isDisabled:()=>!(r==null&&D.isOpen()&&t.isModal()),targets:()=>[g(),...C()].filter(Boolean)}),se(()=>{const ie=g();if(!ie||!r)return;const be=r.registerNestedMenu(ie);he(()=>{be()})}),se(()=>{r===void 0&&i?.registerMenu(t.value(),[g(),...C()])}),se(()=>{r!==void 0||i===void 0||(i.value()===t.value()?(b()?.focus(),i.autoFocusMenu()&&R(!0)):G())}),se(()=>{r!==void 0||i===void 0||D.isOpen()&&i.setValue(t.value())}),he(()=>{r===void 0&&i?.unregisterMenu(t.value())});const Y={dataset:j(()=>({"data-expanded":D.isOpen()?"":void 0,"data-closed":D.isOpen()?void 0:""})),isOpen:D.isOpen,contentPresent:T,nestedMenus:C,currentPlacement:x,pointerGraceTimeoutId:()=>c,autoFocus:S,listState:()=>M,parentMenuContext:()=>r,triggerRef:b,contentRef:g,triggerId:h,contentId:f,setTriggerRef:v,setContentRef:k,open:R,close:G,toggle:K,focusContent:q,onItemEnter:_e,onItemLeave:ne,onTriggerLeave:B,setPointerDir:ie=>u=ie,setPointerGraceTimeoutId:ie=>c=ie,setPointerGraceIntent:ie=>d=ie,registerNestedMenu:X,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:In(m),registerContentId:In(p)};return y(N,{get children(){return y(UM.Provider,{value:Y,get children(){return y(de,{when:o===void 0,get fallback(){return l.children},get children(){return y(Fa,ee({anchorRef:b,contentRef:g,onCurrentPlacementChange:L},l))}})}})}})}function Hm(e){const{direction:t}=Zi();return y(YM,ee({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Kde={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};function Um(e){const t=wo(),n=wi(),[r,i]=ue(e,["onFocusOutside","onKeyDown"]),{direction:o}=Zi();return y(KM,ee({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{r.onFocusOutside?.(d);const u=d.target;zn(t.triggerRef(),u)||t.close()},onKeyDown:d=>{Ve(d,r.onKeyDown);const u=zn(d.currentTarget,d.target),h=Kde.close(o(),n.orientation()).includes(d.key),m=t.parentMenuContext()!=null;u&&h&&m&&(t.close(),pn(t.triggerRef()))}},i))}var Bx=["Enter"," "],Jde={open:(e,t)=>e==="ltr"?[...Bx,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Bx,t==="horizontal"?"ArrowLeft":"ArrowUp"]};function qm(e){let t;const n=wi(),r=wo(),i=Be({id:n.generateId(`sub-trigger-${cn()}`)},e),[o,a]=ue(i,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let s=null;const l=()=>{s&&window.clearTimeout(s),s=null},{direction:c}=Zi(),d=()=>o.id,u=()=>{const k=r.parentMenuContext();if(k==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return k.listState().selectionManager()},h=()=>r.listState().collection(),m=()=>u().focusedKey()===d(),f=Lm({key:d,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>o.disabled},()=>t),p=k=>{Ve(k,o.onClick),!r.isOpen()&&!o.disabled&&r.open(!0)},b=k=>{if(Ve(k,o.onPointerMove),k.pointerType!=="mouse")return;const S=r.parentMenuContext();if(S?.onItemEnter(k),!k.defaultPrevented){if(o.disabled){S?.onItemLeave(k);return}!r.isOpen()&&!s&&(r.parentMenuContext()?.setPointerGraceIntent(null),s=window.setTimeout(()=>{r.open(!1),l()},100)),S?.onItemEnter(k),k.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),pn(k.currentTarget),S?.listState().selectionManager().setFocused(!0),S?.listState().selectionManager().setFocusedKey(d()))}},v=k=>{if(Ve(k,o.onPointerLeave),k.pointerType!=="mouse")return;l();const S=r.parentMenuContext(),w=r.contentRef();if(w){S?.setPointerGraceIntent({area:Wde(r.currentPlacement(),k,w),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(S?.pointerGraceTimeoutId());const x=window.setTimeout(()=>{S?.setPointerGraceIntent(null)},300);S?.setPointerGraceTimeoutId(x)}else{if(S?.onTriggerLeave(k),k.defaultPrevented)return;S?.setPointerGraceIntent(null)}S?.onItemLeave(k)},g=k=>{Ve(k,o.onKeyDown),!k.repeat&&(o.disabled||Jde.open(c(),n.orientation()).includes(k.key)&&(k.stopPropagation(),k.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(h().getFirstKey())))};return se(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const k=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:o.textValue??t?.textContent??"",disabled:o.disabled??!1});he(k)}),se(Ht(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),k=>{he(()=>{window.clearTimeout(k),r.parentMenuContext()?.setPointerGraceIntent(null)})})),se(()=>he(r.registerTriggerId(o.id))),he(()=>{l()}),y(We,ee({as:"div",ref(k){var S=kt(w=>{r.setTriggerRef(w),t=w},o.ref);typeof S=="function"&&S(k)},get id(){return o.id},role:"menuitem",get tabIndex(){return f.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return Le(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return o.disabled},get"data-key"(){return f.dataKey()},get"data-highlighted"(){return m()?"":void 0},get"data-disabled"(){return o.disabled?"":void 0},get onPointerDown(){return gt([o.onPointerDown,f.onPointerDown])},get onPointerUp(){return gt([o.onPointerUp,f.onPointerUp])},get onClick(){return gt([p,f.onClick])},get onKeyDown(){return gt([g,f.onKeyDown])},get onMouseDown(){return gt([o.onMouseDown,f.onMouseDown])},get onFocus(){return gt([o.onFocus,f.onFocus])},onPointerMove:b,onPointerLeave:v},()=>r.dataset(),a))}function eP(e){const t=Mm(),n=`menu-${cn()}`,r=Be({id:n,modal:!0},e),[i,o]=ue(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),a=Ma({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:l=>i.onOpenChange?.(l)}),s={isModal:()=>i.modal??!0,preventScroll:()=>i.preventScroll??s.isModal(),forceMount:()=>i.forceMount??!1,generateId:Or(()=>i.id),value:()=>i.value,orientation:()=>i.orientation??t?.orientation()??"horizontal"};return y(WM.Provider,{value:s,get children(){return y(YM,ee({get open(){return a.isOpen()},get onOpenChange(){return a.setIsOpen}},o))}})}var Qde={};Ar(Qde,{Root:()=>ac,Separator:()=>Xde});function ac(e){let t;const n=Be({orientation:"horizontal"},e),[r,i]=ue(n,["ref","orientation"]),o=Td(()=>t,()=>"hr");return y(We,ee({as:"hr",ref(a){var s=kt(l=>t=l,r.ref);typeof s=="function"&&s(a)},get role(){return o()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},i))}var Xde=ac,Yde={};Ar(Yde,{Arrow:()=>Wi,CheckboxItem:()=>Pm,Content:()=>tP,DropdownMenu:()=>Vn,Group:()=>mu,GroupLabel:()=>Om,Icon:()=>$m,Item:()=>Rm,ItemDescription:()=>zm,ItemIndicator:()=>Nm,ItemLabel:()=>Fm,Portal:()=>Vm,RadioGroup:()=>jm,RadioItem:()=>Bm,Root:()=>nP,Separator:()=>ac,Sub:()=>Hm,SubContent:()=>Um,SubTrigger:()=>qm,Trigger:()=>GM});function tP(e){const t=wi(),n=wo(),[r,i]=ue(e,["onCloseAutoFocus","onInteractOutside"]);let o=!1;return y(JM,ee({onCloseAutoFocus:l=>{r.onCloseAutoFocus?.(l),o||pn(n.triggerRef()),o=!1,l.preventDefault()},onInteractOutside:l=>{r.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(o=!0)}},i))}function nP(e){const t=`dropdownmenu-${cn()}`,n=Be({id:t},e);return y(eP,n)}var Vn=Object.assign(nP,{Arrow:Wi,CheckboxItem:Pm,Content:tP,Group:mu,GroupLabel:Om,Icon:$m,Item:Rm,ItemDescription:zm,ItemIndicator:Nm,ItemLabel:Fm,Portal:Vm,RadioGroup:jm,RadioItem:Bm,Separator:ac,Sub:Hm,SubContent:Um,SubTrigger:qm,Trigger:GM});function eue(e){return y(Vn,ee(e,{"data-component":"dropdown-menu"}))}function tue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Trigger,ee(n,{"data-slot":"dropdown-menu-trigger",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function nue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Icon,ee(n,{"data-slot":"dropdown-menu-icon",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function rue(e){return y(Vn.Portal,e)}function iue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Content,ee(n,{"data-component":"dropdown-menu-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function oue(e){const[t,n]=ue(e,["class","classList"]);return y(Vn.Arrow,ee(n,{"data-slot":"dropdown-menu-arrow",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function aue(e){const[t,n]=ue(e,["class","classList"]);return y(Vn.Separator,ee(n,{"data-slot":"dropdown-menu-separator",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function sue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Group,ee(n,{"data-slot":"dropdown-menu-group",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function lue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.GroupLabel,ee(n,{"data-slot":"dropdown-menu-group-label",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function cue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Item,ee(n,{"data-slot":"dropdown-menu-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function due(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.ItemLabel,ee(n,{"data-slot":"dropdown-menu-item-label",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function uue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.ItemDescription,ee(n,{"data-slot":"dropdown-menu-item-description",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function fue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.ItemIndicator,ee(n,{"data-slot":"dropdown-menu-item-indicator",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function hue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.RadioGroup,ee(n,{"data-slot":"dropdown-menu-radio-group",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function mue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.RadioItem,ee(n,{"data-slot":"dropdown-menu-radio-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function pue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.CheckboxItem,ee(n,{"data-slot":"dropdown-menu-checkbox-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function gue(e){return y(Vn.Sub,e)}function vue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.SubTrigger,ee(n,{"data-slot":"dropdown-menu-sub-trigger",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function bue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.SubContent,ee(n,{"data-component":"dropdown-menu-sub-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}const St=Object.assign(eue,{Trigger:tue,Icon:nue,Portal:rue,Content:iue,Arrow:oue,Separator:aue,Group:sue,GroupLabel:lue,Item:cue,ItemLabel:due,ItemDescription:uue,ItemIndicator:fue,RadioGroup:hue,RadioItem:mue,CheckboxItem:pue,Sub:gue,SubTrigger:vue,SubContent:bue});var yue=Q("<div>"),Zm=class{x;y;width;height;constructor(t){this.x=Math.floor(t.x),this.y=Math.floor(t.y),this.width=Math.floor(t.width),this.height=Math.floor(t.height)}get rect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}get left(){return this.x}get top(){return this.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get center(){return{x:this.x+this.width*.5,y:this.y+this.height*.5}}get corners(){return{topLeft:{x:this.left,y:this.top},topRight:{x:this.right,y:this.top},bottomRight:{x:this.left,y:this.bottom},bottomLeft:{x:this.right,y:this.bottom}}}},Cl=e=>{let t=new Zm(e.getBoundingClientRect());const{transform:n}=getComputedStyle(e);return n&&(t=wue(t,n)),t},wue=(e,t)=>{let n,r;if(t.startsWith("matrix3d(")){const i=t.slice(9,-1).split(/, /);n=+i[12],r=+i[13]}else if(t.startsWith("matrix(")){const i=t.slice(7,-1).split(/, /);n=+i[4],r=+i[5]}else n=0,r=0;return new Zm({...e,x:e.x-n,y:e.y-r})},Ri=()=>({x:0,y:0}),C4=(e,t)=>e.x===t.x&&e.y===t.y,Dg=(e,t)=>new Zm({...e,x:e.x+t.x,y:e.y+t.y}),kue=(e,t)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),xue=(e,t)=>{const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=i-r,s=o-n;if(r<i&&n<o){const l=e.width*e.height,c=t.width*t.height,d=a*s;return d/(l+c-d)}return 0},Mg=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,rP=(e,t,n)=>{const r=e.transformed.center,i={distance:1/0,droppable:null};for(const o of t){const a=kue(r,o.layout.center);a<i.distance?(i.distance=a,i.droppable=o):a===i.distance&&o.id===n.activeDroppableId&&(i.droppable=o)}return i.droppable},Sue=(e,t,n)=>{const r=e.transformed,i={ratio:0,droppable:null};for(const o of t){const a=xue(r,o.layout);a>i.ratio?(i.ratio=a,i.droppable=o):a>0&&a===i.ratio&&o.id===n.activeDroppableId&&(i.droppable=o)}return i.droppable},iP=Ct(),oP=e=>{const t=ee({collisionDetector:Sue},e),[n,r]=He({draggables:{},droppables:{},sensors:{},active:{draggableId:null,get draggable(){return n.active.draggableId!==null?n.draggables[n.active.draggableId]:null},droppableId:null,get droppable(){return n.active.droppableId!==null?n.droppables[n.active.droppableId]:null},sensorId:null,get sensor(){return n.active.sensorId!==null?n.sensors[n.active.sensorId]:null},overlay:null}}),i=(T,M,R)=>{T.substring(0,T.length-1),nt(()=>n[T][M])&&r(T,M,"transformers",R.id,R)},o=(T,M,R)=>{T.substring(0,T.length-1),nt(()=>n[T][M])&&nt(()=>n[T][M].transformers[R])&&r(T,M,"transformers",R,void 0)},a=({id:T,node:M,layout:R,data:G})=>{const K=n.draggables[T],U={id:T,node:M,layout:R,data:G,_pendingCleanup:!1};let q;if(!K)Object.defineProperties(U,{transformers:{enumerable:!0,configurable:!0,writable:!0,value:{}},transform:{enumerable:!0,configurable:!0,get:()=>{if(n.active.overlay)return Ri();const X=Object.values(n.draggables[T].transformers);return X.sort((le,_e)=>le.order-_e.order),X.reduce((le,_e)=>_e.callback(le),Ri())}},transformed:{enumerable:!0,configurable:!0,get:()=>Dg(n.draggables[T].layout,n.draggables[T].transform)}});else if(n.active.draggableId===T&&!n.active.overlay){const X={x:K.layout.x-R.x,y:K.layout.y-R.y},le="addDraggable-existing-offset",_e=K.transformers[le],ne=_e?_e.callback(X):X;q={id:le,order:100,callback:B=>({x:B.x+ne.x,y:B.y+ne.y})},F(()=>o("draggables",T,le))}_t(()=>{r("draggables",T,U),q&&i("draggables",T,q)}),n.active.draggable&&S()},s=T=>{nt(()=>n.draggables[T])&&(r("draggables",T,"_pendingCleanup",!0),queueMicrotask(()=>l(T)))},l=T=>{if(n.draggables[T]?._pendingCleanup){const M=n.active.draggableId===T;_t(()=>{M&&r("active","draggableId",null),r("draggables",T,void 0)})}},c=({id:T,node:M,layout:R,data:G})=>{const K=n.droppables[T],U={id:T,node:M,layout:R,data:G,_pendingCleanup:!1};K||Object.defineProperties(U,{transformers:{enumerable:!0,configurable:!0,writable:!0,value:{}},transform:{enumerable:!0,configurable:!0,get:()=>{const q=Object.values(n.droppables[T].transformers);return q.sort((X,le)=>X.order-le.order),q.reduce((X,le)=>le.callback(X),Ri())}},transformed:{enumerable:!0,configurable:!0,get:()=>Dg(n.droppables[T].layout,n.droppables[T].transform)}}),r("droppables",T,U),n.active.draggable&&S()},d=T=>{nt(()=>n.droppables[T])&&(r("droppables",T,"_pendingCleanup",!0),queueMicrotask(()=>u(T)))},u=T=>{if(n.droppables[T]?._pendingCleanup){const M=n.active.droppableId===T;_t(()=>{M&&r("active","droppableId",null),r("droppables",T,void 0)})}},h=({id:T,activators:M})=>{r("sensors",T,{id:T,activators:M,coordinates:{origin:{x:0,y:0},current:{x:0,y:0},get delta(){return{x:n.sensors[T].coordinates.current.x-n.sensors[T].coordinates.origin.x,y:n.sensors[T].coordinates.current.y-n.sensors[T].coordinates.origin.y}}}})},m=T=>{if(!nt(()=>n.sensors[T]))return;const M=n.active.sensorId===T;_t(()=>{M&&r("active","sensorId",null),r("sensors",T,void 0)})},f=({node:T,layout:M})=>{const R=n.active.overlay,G={node:T,layout:M};R||Object.defineProperties(G,{id:{enumerable:!0,configurable:!0,get:()=>n.active.draggable?.id},data:{enumerable:!0,configurable:!0,get:()=>n.active.draggable?.data},transformers:{enumerable:!0,configurable:!0,get:()=>Object.fromEntries(Object.entries(n.active.draggable?n.active.draggable.transformers:{}).filter(([K])=>K!=="addDraggable-existing-offset"))},transform:{enumerable:!0,configurable:!0,get:()=>{const K=Object.values(n.active.overlay?n.active.overlay.transformers:[]);return K.sort((U,q)=>U.order-q.order),K.reduce((U,q)=>q.callback(U),Ri())}},transformed:{enumerable:!0,configurable:!0,get:()=>n.active.overlay?Dg(n.active.overlay.layout,n.active.overlay.transform):new Zm({x:0,y:0,width:0,height:0})}}),r("active","overlay",G)},p=()=>r("active","overlay",null),b=(T,M)=>{_t(()=>{r("sensors",T,"coordinates",{origin:{...M},current:{...M}}),r("active","sensorId",T)})},v=T=>{const M=n.active.sensorId;M&&r("sensors",M,"coordinates","current",{...T})},g=()=>r("active","sensorId",null),k=(T,M)=>{const R={};for(const K of Object.values(n.sensors))if(K)for(const[U,q]of Object.entries(K.activators))R[U]??=[],R[U].push({sensor:K,activator:q});const G={};for(const K in R){let U=K;M&&(U=`on${K}`),G[U]=q=>{for(const{activator:X}of R[K]){if(n.active.sensor)break;X(q,T)}}}return G},S=()=>{let T=!1;const M=Object.values(n.draggables),R=Object.values(n.droppables),G=n.active.overlay;return _t(()=>{const K=new WeakMap;for(const U of M)if(U){const q=U.layout;K.has(U.node)||K.set(U.node,Cl(U.node));const X=K.get(U.node);Mg(q,X)||(r("draggables",U.id,"layout",X),T=!0)}for(const U of R)if(U){const q=U.layout;K.has(U.node)||K.set(U.node,Cl(U.node));const X=K.get(U.node);Mg(q,X)||(r("droppables",U.id,"layout",X),T=!0)}if(G){const U=G.layout,q=Cl(G.node);Mg(U,q)||(r("active","overlay","layout",q),T=!0)}}),T},w=()=>{const T=n.active.overlay??n.active.draggable;if(T){const M=t.collisionDetector(T,Object.values(n.droppables),{activeDroppableId:n.active.droppableId}),R=M?M.id:null;n.active.droppableId!==R&&r("active","droppableId",R)}},x=T=>{const M={id:"sensorMove",order:0,callback:R=>n.active.sensor?{x:R.x+n.active.sensor.coordinates.delta.x,y:R.y+n.active.sensor.coordinates.delta.y}:R};S(),_t(()=>{r("active","draggableId",T),i("draggables",T,M)}),w()},L=()=>{const T=nt(()=>n.active.draggableId);_t(()=>{T!==null&&o("draggables",T,"sensorMove"),r("active",["draggableId","droppableId"],null)}),S()},C=T=>{se(()=>{const M=n.active.draggable;M&&nt(()=>T({draggable:M}))})},I=T=>{se(()=>{const M=n.active.draggable;if(M){const R=nt(()=>n.active.overlay);Object.values(R?R.transform:M.transform),nt(()=>T({draggable:M,overlay:R}))}})},$=T=>{se(()=>{const M=n.active.draggable,R=n.active.droppable;M&&nt(()=>T({draggable:M,droppable:R,overlay:n.active.overlay}))})},F=T=>{se(({previousDraggable:M,previousDroppable:R,previousOverlay:G})=>{const K=n.active.draggable,U=K?n.active.droppable:null,q=K?n.active.overlay:null;return!K&&M&&nt(()=>T({draggable:M,droppable:R,overlay:G})),{previousDraggable:K,previousDroppable:U,previousOverlay:q}},{previousDraggable:null,previousDroppable:null,previousOverlay:null})};I(()=>w()),t.onDragStart&&C(t.onDragStart),t.onDragMove&&I(t.onDragMove),t.onDragOver&&$(t.onDragOver),t.onDragEnd&&F(t.onDragEnd);const D=[n,{addTransformer:i,removeTransformer:o,addDraggable:a,removeDraggable:s,addDroppable:c,removeDroppable:d,addSensor:h,removeSensor:m,setOverlay:f,clearOverlay:p,recomputeLayouts:S,detectCollisions:w,draggableActivators:k,sensorStart:b,sensorMove:v,sensorEnd:g,dragStart:x,dragEnd:L,onDragStart:C,onDragMove:I,onDragOver:$,onDragEnd:F}];return y(iP.Provider,{value:D,get children(){return t.children}})},$s=()=>yt(iP)||null,_ue=(e="pointer-sensor")=>{const[t,{addSensor:n,removeSensor:r,sensorStart:i,sensorMove:o,sensorEnd:a,dragStart:s,dragEnd:l}]=$s(),c=250,d=10;Wt(()=>{n({id:e,activators:{pointerdown:p}})}),he(()=>{r(e)});const u=()=>t.active.sensorId===e,h={x:0,y:0};let m=null,f=null;const p=(w,x)=>{w.button===0&&(document.addEventListener("pointermove",g),document.addEventListener("pointerup",k),f=x,h.x=w.clientX,h.y=w.clientY,m=window.setTimeout(v,c))},b=()=>{m&&(clearTimeout(m),m=null),document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",k),document.removeEventListener("selectionchange",S)},v=()=>{t.active.sensor?u()||b():(i(e,h),s(f),S(),document.addEventListener("selectionchange",S))},g=w=>{const x={x:w.clientX,y:w.clientY};if(!t.active.sensor){const L={x:x.x-h.x,y:x.y-h.y};Math.sqrt(L.x**2+L.y**2)>d&&v()}u()&&(w.preventDefault(),o(x))},k=w=>{b(),u()&&(w.preventDefault(),l(),a())},S=()=>{window.getSelection()?.removeAllRanges()}},aP=e=>(_ue(),Le(()=>e.children)),Wm=e=>({transform:`translate3d(${e.x}px, ${e.y}px, 0)`}),Aue=(e,t={})=>{const[n,{addDraggable:r,removeDraggable:i,draggableActivators:o}]=$s(),[a,s]=me(null);Wt(()=>{const u=a();u&&r({id:e,node:u,layout:Cl(u),data:t})}),he(()=>i(e));const l=()=>n.active.draggableId===e,c=()=>n.draggables[e]?.transform||Ri();return Object.defineProperties((u,h)=>{const m=h?h():{};se(()=>{const f=a(),p=o(e);if(f)for(const b in p)f.addEventListener(b,p[b]);he(()=>{if(f)for(const b in p)f.removeEventListener(b,p[b])})}),s(u),m.skipTransform||se(()=>{const f=c();if(C4(f,Ri()))u.style.removeProperty("transform");else{const p=Wm(c());u.style.setProperty("transform",p.transform??null)}})},{ref:{enumerable:!0,value:s},isActiveDraggable:{enumerable:!0,get:l},dragActivators:{enumerable:!0,get:()=>o(e,!0)},transform:{enumerable:!0,get:c}})},Cue=(e,t={})=>{const[n,{addDroppable:r,removeDroppable:i}]=$s(),[o,a]=me(null);Wt(()=>{const d=o();d&&r({id:e,node:d,layout:Cl(d),data:t})}),he(()=>i(e));const s=()=>n.active.droppableId===e,l=()=>n.droppables[e]?.transform||Ri();return Object.defineProperties((d,u)=>{const h=u?u():{};a(d),h.skipTransform||se(()=>{const m=l();if(C4(m,Ri()))d.style.removeProperty("transform");else{const f=Wm(l());d.style.setProperty("transform",f.transform??null)}})},{ref:{enumerable:!0,value:a},isActiveDroppable:{enumerable:!0,get:s},transform:{enumerable:!0,get:l}})},sP=e=>{const[t,{onDragStart:n,onDragEnd:r,setOverlay:i,clearOverlay:o}]=$s();let a;n(({draggable:l})=>{i({node:l.node,layout:l.layout}),queueMicrotask(()=>{if(a){const c=Cl(a),d={x:(l.layout.width-c.width)/2,y:(l.layout.height-c.height)/2};c.x+=d.x,c.y+=d.y,i({node:a,layout:c})}})}),r(()=>queueMicrotask(o));const s=()=>{const l=t.active.overlay,c=t.active.draggable;return!l||!c?{}:{position:"fixed",transition:"transform 0s",top:`${l.layout.top}px`,left:`${l.layout.left}px`,"min-width":`${c.layout.width}px`,"min-height":`${c.layout.height}px`,...Wm(l.transform),...e.style}};return y(Da,{get mount(){return document.body},get children(){return y(de,{get when(){return t.active.draggable},get children(){var l=yue(),c=a;return typeof c=="function"?or(c,l):a=l,P(l,(()=>{var d=Le(()=>typeof e.children=="function");return()=>d()?e.children(t.active.draggable):e.children})()),Ne(d=>{var u=e.class,h=s();return u!==d.e&&zo(l,d.e=u),d.t=Jh(l,h,d.t),d},{e:void 0,t:void 0}),l}})}})},Eue=(e,t,n)=>{const r=e.slice();return r.splice(n,0,...r.splice(t,1)),r},lP=Ct(),cP=e=>{const[t]=$s(),[n,r]=He({initialIds:[],sortedIds:[]}),i=s=>s>=0&&s<n.initialIds.length;se(()=>{r("initialIds",[...e.ids]),r("sortedIds",[...e.ids])}),se(()=>{t.active.draggableId&&t.active.droppableId?nt(()=>{const s=n.sortedIds.indexOf(t.active.draggableId),l=n.initialIds.indexOf(t.active.droppableId);if(!i(s)||!i(l))r("sortedIds",[...e.ids]);else if(s!==l){const c=Eue(n.sortedIds,s,l);r("sortedIds",c)}}):r("sortedIds",[...e.ids])});const a=[n,{}];return y(lP.Provider,{value:a,get children(){return e.children}})},Iue=()=>yt(lP)||null,Tue=(e,t)=>n=>{e(n),t(n)},dP=(e,t={})=>{const[n,{addTransformer:r,removeTransformer:i}]=$s(),[o]=Iue(),a=Aue(e,t),s=Cue(e,t),l=Tue(a.ref,s.ref),c=()=>o.initialIds.indexOf(e),d=()=>o.sortedIds.indexOf(e),u=b=>n.droppables[b]?.layout||null,h=()=>{const b=Ri(),v=c(),g=d();if(g!==v){const k=u(e),S=u(o.initialIds[g]);k&&S&&(b.x=S.x-k.x,b.y=S.y-k.y)}return b},m={id:"sortableOffset",order:100,callback:b=>{const v=h();return{x:b.x+v.x,y:b.y+v.y}}};Wt(()=>r("droppables",e,m)),he(()=>i("droppables",e,m.id));const f=()=>(e===n.active.draggableId&&!n.active.overlay?n.draggables[e]?.transform:n.droppables[e]?.transform)||Ri();return Object.defineProperties(b=>{a(b,()=>({skipTransform:!0})),s(b,()=>({skipTransform:!0})),se(()=>{const v=f();if(C4(v,Ri()))b.style.removeProperty("transform");else{const g=Wm(f());b.style.setProperty("transform",g.transform??null)}})},{ref:{enumerable:!0,value:l},transform:{enumerable:!0,get:f},isActiveDraggable:{enumerable:!0,get:()=>a.isActiveDraggable},dragActivators:{enumerable:!0,get:()=>a.dragActivators},isActiveDroppable:{enumerable:!0,get:()=>s.isActiveDroppable}})};function Lue(e){const t={locs:[],timer:void 0,pending:void 0,over:void 0,last:void 0},n=e.delay??250,r=e.max??4,i=e.tolerance??80,o=e.edge??18,a=()=>{t.timer!==void 0&&clearTimeout(t.timer),t.timer=void 0,t.pending=void 0},s=()=>{a(),t.over=void 0,t.last=void 0,t.locs.length=0},l=f=>{if(!e.enabled())return;const p=e.el();if(!p)return;const b=p.getBoundingClientRect(),v=f.clientX,g=f.clientY;v<b.left||v>b.right||g<b.top||g>b.bottom||(t.locs.push({x:v,y:g}),t.locs.length>r&&t.locs.shift())},c=()=>{if(!e.enabled()||!e.active())return 0;const f=e.el();if(!f||t.locs.length<2)return 0;const p=f.getBoundingClientRect(),b=t.locs[t.locs.length-1];if(!b)return 0;const v=t.locs[0]??b;if(v.x<p.left||v.x>p.right||v.y<p.top||v.y>p.bottom||t.last&&b.x===t.last.x&&b.y===t.last.y)return 0;if(p.right-b.x<=o)return t.last=b,n;const g={x:p.right,y:p.top-i},k={x:p.right,y:p.bottom+i},S=(I,$)=>($.y-I.y)/($.x-I.x),w=S(b,g),x=S(b,k),L=S(v,g),C=S(v,k);return w<L&&x>C?(t.last=b,n):(t.last=void 0,0)},d=f=>{a(),e.onActivate(f)},u=f=>{if(!f||e.active()===f)return;if(!e.active()){d(f);return}const p=c();if(p===0){d(f);return}a(),t.pending=f,t.timer=window.setTimeout(()=>{t.timer=void 0,t.pending===f&&(t.pending=void 0,e.enabled()&&e.active()&&t.over===f&&e.onActivate(f))},p)};return{move:l,enter:(f,p)=>{e.enabled()&&(t.over=f,l(p),u(f))},leave:f=>{t.over===f&&(t.over=void 0),t.pending===f&&a()},activate:d,request:u,cancel:a,reset:s}}const kc=e=>e.replace(/[\\/]+$/,""),el=new Map,tl=new Map;function Due(){const e={resolve:n=>{}};return{promise:new Promise(n=>{e.resolve=n}),resolve:e.resolve}}const ff={get(e){return el.get(kc(e))},pending(e){const t=kc(e),n=el.get(t);n&&n.status!=="pending"||el.set(t,{status:"pending"})},ready(e){const t=kc(e),n={status:"ready"};el.set(t,n);const r=tl.get(t);r&&(tl.delete(t),r.resolve(n))},failed(e,t){const n=kc(e),r={status:"failed",message:t};el.set(n,r);const i=tl.get(n);i&&(tl.delete(n),i.resolve(r))},wait(e){const t=kc(e),n=el.get(t);if(n&&n.status!=="pending")return Promise.resolve(n);const r=tl.get(t);if(r)return r.promise;const i=Due();return tl.set(t,i),i.promise}};var Of={exports:{}},Mue=Of.exports,Hx;function Pue(){return Hx||(Hx=1,(function(e){((t,n)=>{e.exports?e.exports=n():t.fuzzysort=n()})(Mue,t=>{var n=(ne,B)=>{if(!ne||!B)return q;var ae=f(ne);R(B)||(B=m(B));var Y=ae.bitflags;return(Y&B._bitflags)!==Y?q:b(ae,B)},r=(ne,B,ae)=>{if(!ne)return ae?.all?p(B,ae):U;var Y=f(ne),ie=Y.bitflags,be=Y.containsSpace,ge=u(ae?.threshold||0),Re=ae?.limit||G,Oe=0,dt=0,it=B.length;function fn(Yr){Oe<Re?(_e.add(Yr),++Oe):(++dt,Yr._score>_e.peek()._score&&_e.replaceTop(Yr))}if(ae?.key)for(var Et=ae.key,pt=0;pt<it;++pt){var nn=B[pt],tt=M(nn,Et);if(tt&&(R(tt)||(tt=m(tt)),(ie&tt._bitflags)===ie)){var lt=b(Y,tt);lt!==q&&(lt._score<ge||(lt.obj=nn,fn(lt)))}}else if(ae?.keys){var Bn=ae.keys,sr=Bn.length;e:for(var pt=0;pt<it;++pt){var nn=B[pt];{for(var vn=0,Ke=0;Ke<sr;++Ke){var Et=Bn[Ke],tt=M(nn,Et);if(!tt){D[Ke]=X;continue}R(tt)||(tt=m(tt)),D[Ke]=tt,vn|=tt._bitflags}if((ie&vn)!==ie)continue}if(be)for(let zt=0;zt<Y.spaceSearches.length;zt++)F[zt]=K;for(var Ke=0;Ke<sr;++Ke){if(tt=D[Ke],tt===X){T[Ke]=X;continue}if(T[Ke]=b(Y,tt,!1,be),T[Ke]===q){T[Ke]=X;continue}if(be)for(let Ut=0;Ut<Y.spaceSearches.length;Ut++){if(N[Ut]>-1e3&&F[Ut]>K){var _n=(F[Ut]+N[Ut])/4;_n>F[Ut]&&(F[Ut]=_n)}N[Ut]>F[Ut]&&(F[Ut]=N[Ut])}}if(be){for(let zt=0;zt<Y.spaceSearches.length;zt++)if(F[zt]===K)continue e}else{var bt=!1;for(let zt=0;zt<sr;zt++)if(T[zt]._score!==K){bt=!0;break}if(!bt)continue}var lr=new l(sr);for(let zt=0;zt<sr;zt++)lr[zt]=T[zt];if(be){var bn=0;for(let zt=0;zt<Y.spaceSearches.length;zt++)bn+=F[zt]}else{var bn=K;for(let Ut=0;Ut<sr;Ut++){var lt=lr[Ut];if(lt._score>-1e3&&bn>K){var _n=(bn+lt._score)/4;_n>bn&&(bn=_n)}lt._score>bn&&(bn=lt._score)}}if(lr.obj=nn,lr._score=bn,ae?.scoreFn){if(bn=ae.scoreFn(lr),!bn)continue;bn=u(bn),lr._score=bn}bn<ge||fn(lr)}}else for(var pt=0;pt<it;++pt){var tt=B[pt];if(tt&&(R(tt)||(tt=m(tt)),(ie&tt._bitflags)===ie)){var lt=b(Y,tt);lt!==q&&(lt._score<ge||fn(lt))}}if(Oe===0)return U;for(var ki=new Array(Oe),pt=Oe-1;pt>=0;--pt)ki[pt]=_e.poll();return ki.total=Oe+dt,ki},i=(ne,B="<b>",ae="</b>")=>{for(var Y=typeof B=="function"?B:void 0,ie=ne.target,be=ie.length,ge=ne.indexes,Re="",Oe=0,dt=0,it=!1,fn=[],Et=0;Et<be;++Et){var pt=ie[Et];if(ge[dt]===Et){if(++dt,it||(it=!0,Y?(fn.push(Re),Re=""):Re+=B),dt===ge.length){Y?(Re+=pt,fn.push(Y(Re,Oe++)),Re="",fn.push(ie.substr(Et+1))):Re+=pt+ae+ie.substr(Et+1);break}}else it&&(it=!1,Y?(fn.push(Y(Re,Oe++)),Re=""):Re+=ae);Re+=pt}return Y?fn:Re},o=ne=>{typeof ne=="number"?ne=""+ne:typeof ne!="string"&&(ne="");var B=k(ne);return c(ne,{_targetLower:B._lower,_targetLowerCodes:B.lowerCodes,_bitflags:B.bitflags})},a=()=>{x.clear(),L.clear()};class s{get indexes(){return this._indexes.slice(0,this._indexes.len).sort((B,ae)=>B-ae)}set indexes(B){return this._indexes=B}highlight(B,ae){return i(this,B,ae)}get score(){return d(this._score)}set score(B){this._score=u(B)}}class l extends Array{get score(){return d(this._score)}set score(B){this._score=u(B)}}var c=(ne,B)=>{const ae=new s;return ae.target=ne,ae.obj=B.obj??q,ae._score=B._score??K,ae._indexes=B._indexes??[],ae._targetLower=B._targetLower??"",ae._targetLowerCodes=B._targetLowerCodes??q,ae._nextBeginningIndexes=B._nextBeginningIndexes??q,ae._bitflags=B._bitflags??0,ae},d=ne=>ne===K?0:ne>1?ne:Math.E**(((-ne+1)**.04307-1)*-2),u=ne=>ne===0?K:ne>1?ne:1-Math.pow(Math.log(ne)/-2+1,1/.04307),h=ne=>{typeof ne=="number"?ne=""+ne:typeof ne!="string"&&(ne=""),ne=ne.trim();var B=k(ne),ae=[];if(B.containsSpace){var Y=ne.split(/\s+/);Y=[...new Set(Y)];for(var ie=0;ie<Y.length;ie++)if(Y[ie]!==""){var be=k(Y[ie]);ae.push({lowerCodes:be.lowerCodes,_lower:Y[ie].toLowerCase(),containsSpace:!1})}}return{lowerCodes:B.lowerCodes,_lower:B._lower,containsSpace:B.containsSpace,bitflags:B.bitflags,spaceSearches:ae}},m=ne=>{if(ne.length>999)return o(ne);var B=x.get(ne);return B!==void 0||(B=o(ne),x.set(ne,B)),B},f=ne=>{if(ne.length>999)return h(ne);var B=L.get(ne);return B!==void 0||(B=h(ne),L.set(ne,B)),B},p=(ne,B)=>{var ae=[];ae.total=ne.length;var Y=B?.limit||G;if(B?.key)for(var ie=0;ie<ne.length;ie++){var be=ne[ie],ge=M(be,B.key);if(ge!=q){R(ge)||(ge=m(ge));var Re=c(ge.target,{_score:ge._score,obj:be});if(ae.push(Re),ae.length>=Y)return ae}}else if(B?.keys)for(var ie=0;ie<ne.length;ie++){for(var be=ne[ie],Oe=new l(B.keys.length),dt=B.keys.length-1;dt>=0;--dt){var ge=M(be,B.keys[dt]);if(!ge){Oe[dt]=X;continue}R(ge)||(ge=m(ge)),ge._score=K,ge._indexes.len=0,Oe[dt]=ge}if(Oe.obj=be,Oe._score=K,ae.push(Oe),ae.length>=Y)return ae}else for(var ie=0;ie<ne.length;ie++){var ge=ne[ie];if(ge!=q&&(R(ge)||(ge=m(ge)),ge._score=K,ge._indexes.len=0,ae.push(ge),ae.length>=Y))return ae}return ae},b=(ne,B,ae=!1,Y=!1)=>{if(ae===!1&&ne.containsSpace)return v(ne,B,Y);for(var ie=ne._lower,be=ne.lowerCodes,ge=be[0],Re=B._targetLowerCodes,Oe=be.length,dt=Re.length,pt=0,it=0,fn=0;;){var Et=ge===Re[it];if(Et){if(C[fn++]=it,++pt,pt===Oe)break;ge=be[pt]}if(++it,it>=dt)return q}var pt=0,nn=!1,tt=0,lt=B._nextBeginningIndexes;lt===q&&(lt=B._nextBeginningIndexes=w(B.target)),it=C[0]===0?0:lt[C[0]-1];var Bn=0;if(it!==dt)for(;;)if(it>=dt){if(pt<=0||(++Bn,Bn>200))break;--pt;var sr=I[--tt];it=lt[sr]}else{var Et=be[pt]===Re[it];if(Et){if(I[tt++]=it,++pt,pt===Oe){nn=!0;break}++it}else it=lt[it]}var vn=Oe<=1?-1:B._targetLower.indexOf(ie,C[0]),Ke=!!~vn,_n=Ke?vn===0||B._nextBeginningIndexes[vn-1]===vn:!1;if(Ke&&!_n){for(var bt=0;bt<lt.length;bt=lt[bt])if(!(bt<=vn)){for(var lr=0;lr<Oe&&be[lr]===B._targetLowerCodes[bt+lr];lr++);if(lr===Oe){vn=bt,_n=!0;break}}}var bn=zt=>{for(var Ut=0,Ns=0,Rr=1;Rr<Oe;++Rr)zt[Rr]-zt[Rr-1]!==1&&(Ut-=zt[Rr],++Ns);var yu=zt[Oe-1]-zt[0]-(Oe-1);if(Ut-=(12+yu)*Ns,zt[0]!==0&&(Ut-=zt[0]*zt[0]*.2),!nn)Ut*=1e3;else{for(var Fs=1,Rr=lt[0];Rr<dt;Rr=lt[Rr])++Fs;Fs>24&&(Ut*=(Fs-24)*10)}return Ut-=(dt-Oe)/2,Ke&&(Ut/=1+Oe*Oe*1),_n&&(Ut/=1+Oe*Oe*1),Ut-=(dt-Oe)/2,Ut};if(nn)if(_n){for(var bt=0;bt<Oe;++bt)C[bt]=vn+bt;var ki=C,Yr=bn(C)}else var ki=I,Yr=bn(I);else{if(Ke)for(var bt=0;bt<Oe;++bt)C[bt]=vn+bt;var ki=C,Yr=bn(ki)}B._score=Yr;for(var bt=0;bt<Oe;++bt)B._indexes[bt]=ki[bt];B._indexes.len=Oe;const zs=new s;return zs.target=B.target,zs._score=B._score,zs._indexes=B._indexes,zs},v=(ne,B,ae)=>{for(var Y=new Set,ie=0,be=q,ge=0,Re=ne.spaceSearches,Oe=Re.length,dt=0,it=()=>{for(let _n=dt-1;_n>=0;_n--)B._nextBeginningIndexes[$[_n*2+0]]=$[_n*2+1]},fn=!1,Ke=0;Ke<Oe;++Ke){N[Ke]=K;var Et=Re[Ke];if(be=b(Et,B),ae){if(be===q)continue;fn=!0}else if(be===q)return it(),q;var pt=Ke===Oe-1;if(!pt){var nn=be._indexes,tt=!0;for(let bt=0;bt<nn.len-1;bt++)if(nn[bt+1]-nn[bt]!==1){tt=!1;break}if(tt){var lt=nn[nn.len-1]+1,Bn=B._nextBeginningIndexes[lt-1];for(let bt=lt-1;bt>=0&&Bn===B._nextBeginningIndexes[bt];bt--)B._nextBeginningIndexes[bt]=lt,$[dt*2+0]=bt,$[dt*2+1]=Bn,dt++}}ie+=be._score/Oe,N[Ke]=be._score/Oe,be._indexes[0]<ge&&(ie-=(ge-be._indexes[0])*2),ge=be._indexes[0];for(var sr=0;sr<be._indexes.len;++sr)Y.add(be._indexes[sr])}if(ae&&!fn)return q;it();var vn=b(ne,B,!0);if(vn!==q&&vn._score>ie){if(ae)for(var Ke=0;Ke<Oe;++Ke)N[Ke]=vn._score/Oe;return vn}ae&&(be=B),be._score=ie;var Ke=0;for(let _n of Y)be._indexes[Ke++]=_n;return be._indexes.len=Ke,be},g=ne=>ne.replace(/\p{Script=Latin}+/gu,B=>B.normalize("NFD")).replace(/[\u0300-\u036f]/g,""),k=ne=>{ne=g(ne);for(var B=ne.length,ae=ne.toLowerCase(),Y=[],ie=0,be=!1,ge=0;ge<B;++ge){var Re=Y[ge]=ae.charCodeAt(ge);if(Re===32){be=!0;continue}var Oe=Re>=97&&Re<=122?Re-97:Re>=48&&Re<=57?26:Re<=127?30:31;ie|=1<<Oe}return{lowerCodes:Y,bitflags:ie,containsSpace:be,_lower:ae}},S=ne=>{for(var B=ne.length,ae=[],Y=0,ie=!1,be=!1,ge=0;ge<B;++ge){var Re=ne.charCodeAt(ge),Oe=Re>=65&&Re<=90,dt=Oe||Re>=97&&Re<=122||Re>=48&&Re<=57,it=Oe&&!ie||!be||!dt;ie=Oe,be=dt,it&&(ae[Y++]=ge)}return ae},w=ne=>{ne=g(ne);for(var B=ne.length,ae=S(ne),Y=[],ie=ae[0],be=0,ge=0;ge<B;++ge)ie>ge?Y[ge]=ie:(ie=ae[++be],Y[ge]=ie===void 0?B:ie);return Y},x=new Map,L=new Map,C=[],I=[],$=[],F=[],N=[],D=[],T=[],M=(ne,B)=>{var ae=ne[B];if(ae!==void 0)return ae;if(typeof B=="function")return B(ne);var Y=B;Array.isArray(B)||(Y=B.split("."));for(var ie=Y.length,be=-1;ne&&++be<ie;)ne=ne[Y[be]];return ne},R=ne=>typeof ne=="object"&&typeof ne._bitflags=="number",G=1/0,K=-G,U=[];U.total=0;var q=null,X=o(""),le=ne=>{var B=[],ae=0,Y={},ie=be=>{for(var ge=0,Re=B[ge],Oe=1;Oe<ae;){var dt=Oe+1;ge=Oe,dt<ae&&B[dt]._score<B[Oe]._score&&(ge=dt),B[ge-1>>1]=B[ge],Oe=1+(ge<<1)}for(var it=ge-1>>1;ge>0&&Re._score<B[it]._score;it=(ge=it)-1>>1)B[ge]=B[it];B[ge]=Re};return Y.add=(be=>{var ge=ae;B[ae++]=be;for(var Re=ge-1>>1;ge>0&&be._score<B[Re]._score;Re=(ge=Re)-1>>1)B[ge]=B[Re];B[ge]=be}),Y.poll=(be=>{if(ae!==0){var ge=B[0];return B[0]=B[--ae],ie(),ge}}),Y.peek=(be=>{if(ae!==0)return B[0]}),Y.replaceTop=(be=>{B[0]=be,ie()}),Y},_e=le();return{single:n,go:r,prepare:o,cleanup:a}})})(Of)),Of.exports}var Oue=Pue();const qh=z8(Oue);function $ue(e){const[t,n]=me(e.initialValue),r=()=>e.value?.()!==void 0,i=()=>r()?e.value?.():t();return[i,a=>nt(()=>{let s;return typeof a=="function"?s=a(i()):s=a,Object.is(s,i())||(r()||n(s),e.onChange?.(s)),s})]}var Rue=$ue,zue=e=>{const t=ee({initialActive:null,orientation:"vertical",loop:!0,textDirection:"ltr",handleTab:!0,vimMode:!1,vimKeys:{up:"k",down:"j",right:"l",left:"h"}},e),[n,r]=Rue({initialValue:t.initialActive,onChange:t.onActiveChange}),i=()=>{const s=Zt(t.vimKeys);let l,c;return Zt(t.orientation)==="vertical"?(l="arrowdown",c=s.down):Zt(t.textDirection)==="ltr"?(l="arrowright",c=s.right):(l="arrowleft",c=s.left),Zt(t.vimMode)?[l,c]:[l]},o=()=>{const s=Zt(t.vimKeys);let l,c;return Zt(t.orientation)==="vertical"?(l="arrowup",c=s.up):Zt(t.textDirection)==="ltr"?(l="arrowleft",c=s.left):(l="arrowright",c=s.right),Zt(t.vimMode)?[l,c]:[l]};return{active:n,setActive:r,onKeyDown:s=>{const l=s.key.toLowerCase(),c=Zt(t.items);if(c.length===0)return;const d=c.length,u=n(),h=u!==null?c.indexOf(u):null;i().includes(l)?(s.preventDefault(),h===d-1?Zt(t.loop)&&r(()=>c[0]):r(()=>c[h!==null?h+1:0])):o().includes(l)?(s.preventDefault(),h===0?Zt(t.loop)&&r(()=>c[d-1]):r(()=>c[h!==null?h-1:d-1])):l==="home"?(s.preventDefault(),r(()=>c[0])):l==="end"?(s.preventDefault(),r(()=>c[d-1])):Zt(t.handleTab)&&h!==null&&(l==="tab"&&!s.shiftKey&&h<d-1&&(s.preventDefault(),r(()=>c[h+1])),l==="tab"&&s.shiftKey&&h>0&&(s.preventDefault(),r(()=>c[h-1])))}}},Nue=zue;function uP(e){const[t,n]=He({filter:""}),r=[],[i,{refetch:o}]=Ss(()=>({filter:t.filter,items:typeof e.items=="function"?e.items(t.filter):e.items}),async({filter:h,items:m})=>{const p=(h??"").toLowerCase(),b=await Promise.resolve(m)||[];return ks(b,g=>p?!e.filterKeys&&Array.isArray(g)&&g.every(k=>typeof k=="string")?qh.go(p,g).map(k=>k.target):qh.go(p,g,{keys:e.filterKeys}).map(k=>k.obj):g,Vh(g=>e.groupBy?e.groupBy(g):""),oM(),aM(([g,k])=>({category:g,items:e.sortBy?k.sort(e.sortBy):k})),g=>e.sortGroupsBy?g.sort(e.sortGroupsBy):g)},{initialValue:r}),a=j(()=>ks(i.latest||[],Nse(h=>h.items)));function s(){if(e.noInitialSelection)return"";if(e.current)return e.key(e.current);const h=a();return h.length===0?"":e.key(h[0])}const l=Nue({items:()=>a().map(e.key),initialActive:s(),loop:!0}),c=()=>{if(e.noInitialSelection){l.setActive("");return}const h=a();h.length!==0&&l.setActive(e.key(h[0]))},d=h=>{if(h.key==="Enter"&&!h.isComposing){h.preventDefault();const m=a().findIndex(p=>e.key(p)===l.active()),f=a()[m];f&&e.onSelect?.(f,m)}else if(h.ctrlKey&&!h.metaKey&&!h.altKey&&!h.shiftKey){if(h.key==="n"||h.key==="p"){h.preventDefault();const m=new KeyboardEvent("keydown",{key:h.key==="n"?"ArrowDown":"ArrowUp",bubbles:!0});l.onKeyDown(m)}}else{if(h.altKey||h.metaKey)return;l.onKeyDown(h)}};return se(Ht(i,()=>{c()})),{grouped:i,filter:()=>t.filter,flat:a,reset:c,refetch:o,clear:()=>n("filter",""),onKeyDown:d,onInput:h=>{n("filter",h)},active:l.active,setActive:l.setActive}}var E4=["id","name","validationState","required","disabled","readOnly"];function I4(e){const t=`form-control-${cn()}`,n=Be({id:t},e),[r,i]=me(),[o,a]=me(),[s,l]=me(),[c,d]=me(),u=(p,b,v)=>{const g=v!=null||r()!=null;return[v,r(),g&&b!=null?p:void 0].filter(Boolean).join(" ")||void 0},h=p=>[s(),c(),p].filter(Boolean).join(" ")||void 0,m=j(()=>({"data-valid":ce(n.validationState)==="valid"?"":void 0,"data-invalid":ce(n.validationState)==="invalid"?"":void 0,"data-required":ce(n.required)?"":void 0,"data-disabled":ce(n.disabled)?"":void 0,"data-readonly":ce(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>ce(n.name)??ce(n.id),dataset:m,validationState:()=>ce(n.validationState),isRequired:()=>ce(n.required),isDisabled:()=>ce(n.disabled),isReadOnly:()=>ce(n.readOnly),labelId:r,fieldId:o,descriptionId:s,errorMessageId:c,getAriaLabelledBy:u,getAriaDescribedBy:h,generateId:Or(()=>ce(n.id)),registerLabel:In(i),registerField:In(a),registerDescription:In(l),registerErrorMessage:In(d)}}}var Gm=Ct();function Gi(){const e=yt(Gm);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function pu(e){const t=Gi(),n=Be({id:t.generateId("description")},e);return se(()=>he(t.registerDescription(n.id))),y(We,ee({as:"div"},()=>t.dataset(),n))}var T4=["id","aria-label","aria-labelledby","aria-describedby"];function L4(e){const t=Gi(),n=Be({id:t.generateId("field")},e);return se(()=>he(t.registerField(ce(n.id)))),{fieldProps:{id:()=>ce(n.id),ariaLabel:()=>ce(n["aria-label"]),ariaLabelledBy:()=>t.getAriaLabelledBy(ce(n.id),ce(n["aria-label"]),ce(n["aria-labelledby"])),ariaDescribedBy:()=>t.getAriaDescribedBy(ce(n["aria-describedby"]))}}}function Km(e){let t;const n=Gi(),r=Be({id:n.generateId("label")},e),[i,o]=ue(r,["ref"]),a=Td(()=>t,()=>"label");return se(()=>he(n.registerLabel(o.id))),y(We,ee({as:"label",ref(s){var l=kt(c=>t=c,i.ref);typeof l=="function"&&l(s)},get for(){return Le(()=>a()==="label")()?n.fieldId():void 0}},()=>n.dataset(),o))}function D4(e,t){se(Ht(e,n=>{if(n==null)return;const r=Fue(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),he(()=>{r.removeEventListener("reset",t)}))}))}function Fue(e){return Vue(e)?e.form:e.closest("form")}function Vue(e){return e.matches("textarea, input, select, button")}function gu(e){const t=Gi(),n=Be({id:t.generateId("error-message")},e),[r,i]=ue(n,["forceMount"]),o=()=>t.validationState()==="invalid";return se(()=>{o()&&he(t.registerErrorMessage(i.id))}),y(de,{get when(){return r.forceMount||o()},get children(){return y(We,ee({as:"div"},()=>t.dataset(),i))}})}var jue={};Ar(jue,{Description:()=>pu,ErrorMessage:()=>gu,Input:()=>hP,Label:()=>Km,Root:()=>pP,TextArea:()=>gP,TextField:()=>Ja,useTextFieldContext:()=>M4});var fP=Ct();function M4(){const e=yt(fP);if(e===void 0)throw new Error("[kobalte]: `useTextFieldContext` must be used within a `TextField` component");return e}function hP(e){return y(mP,ee({type:"text"},e))}function mP(e){const t=Gi(),n=M4(),r=Be({id:n.generateId("input")},e),[i,o,a]=ue(r,["onInput"],T4),{fieldProps:s}=L4(o);return y(We,ee({as:"input",get id(){return s.id()},get name(){return t.name()},get value(){return n.value()},get required(){return t.isRequired()},get disabled(){return t.isDisabled()},get readonly(){return t.isReadOnly()},get"aria-label"(){return s.ariaLabel()},get"aria-labelledby"(){return s.ariaLabelledBy()},get"aria-describedby"(){return s.ariaDescribedBy()},get"aria-invalid"(){return t.validationState()==="invalid"||void 0},get"aria-required"(){return t.isRequired()||void 0},get"aria-disabled"(){return t.isDisabled()||void 0},get"aria-readonly"(){return t.isReadOnly()||void 0},get onInput(){return gt([i.onInput,n.onInput])}},()=>t.dataset(),a))}function pP(e){let t;const n=`textfield-${cn()}`,r=Be({id:n},e),[i,o,a]=ue(r,["ref","value","defaultValue","onChange"],E4),s=i.value,[l,c]=Gl({value:()=>s===void 0?void 0:i.value??"",defaultValue:()=>i.defaultValue,onChange:m=>i.onChange?.(m)}),{formControlContext:d}=I4(o);D4(()=>t,()=>c(i.defaultValue??""));const u=m=>{if(d.isReadOnly()||d.isDisabled())return;const f=m.target;c(f.value),f.value=l()??""},h={value:l,generateId:Or(()=>ce(o.id)),onInput:u};return y(Gm.Provider,{value:d,get children(){return y(fP.Provider,{value:h,get children(){return y(We,ee({as:"div",ref(m){var f=kt(p=>t=p,i.ref);typeof f=="function"&&f(m)},role:"group",get id(){return ce(o.id)}},()=>d.dataset(),a))}})}})}function gP(e){let t;const n=M4(),r=Be({id:n.generateId("textarea")},e),[i,o]=ue(r,["ref","autoResize","submitOnEnter","onKeyPress"]);se(Ht([()=>t,()=>i.autoResize,()=>n.value()],([s,l])=>{!s||!l||Bue(s)}));const a=s=>{t&&i.submitOnEnter&&s.key==="Enter"&&!s.shiftKey&&t.form&&(t.form.requestSubmit(),s.preventDefault())};return y(mP,ee({as:"textarea",get"aria-multiline"(){return i.submitOnEnter?"false":void 0},get onKeyPress(){return gt([i.onKeyPress,a])},ref(s){var l=kt(c=>t=c,i.ref);typeof l=="function"&&l(s)}},o))}function Bue(e){const t=e.style.alignSelf,n=e.style.overflow;"MozAppearance"in e.style||(e.style.overflow="hidden"),e.style.alignSelf="start",e.style.height="auto",e.style.height=`${e.scrollHeight+(e.offsetHeight-e.clientHeight)}px`,e.style.overflow=n,e.style.alignSelf=t}var Ja=Object.assign(pP,{Description:pu,ErrorMessage:gu,Input:hP,Label:Km,TextArea:gP}),Hue=Q("<div data-slot=input-wrapper>");function En(e){const t=Wl(),[n,r]=ue(e,["name","defaultValue","value","onChange","onKeyDown","validationState","required","disabled","readOnly","class","label","hideLabel","description","error","variant","copyable","copyKind","multiline"]),[i,o]=me(!1),a=()=>i()?t.t("ui.textField.copied"):n.copyKind==="link"?t.t("ui.textField.copyLink"):t.t("ui.textField.copyToClipboard"),s=()=>i()?"check":n.copyKind==="link"?"link":"copy";async function l(){const d=n.value??n.defaultValue??"";await navigator.clipboard.writeText(d),o(!0),setTimeout(()=>o(!1),2e3)}function c(){n.copyable&&l()}return y(Ja,{"data-component":"input",get"data-variant"(){return n.variant||"normal"},get name(){return n.name},get defaultValue(){return n.defaultValue},get value(){return n.value},get onChange(){return n.onChange},get onKeyDown(){return n.onKeyDown},onClick:c,get required(){return n.required},get disabled(){return n.disabled},get readOnly(){return n.readOnly},get validationState(){return n.validationState},get children(){return[y(de,{get when(){return n.label},get children(){return y(Ja.Label,{"data-slot":"input-label",get classList(){return{"sr-only":n.hideLabel}},get children(){return n.label}})}}),(()=>{var d=Hue();return P(d,y(de,{get when(){return n.multiline},get fallback(){return y(Ja.Input,ee(r,{"data-slot":"input-input",get class(){return n.class}}))},get children(){return y(Ja.TextArea,ee(r,{autoResize:!0,"data-slot":"input-input",get class(){return n.class}}))}}),null),P(d,y(de,{get when(){return n.copyable},get children(){return y(_r,{get value(){return a()},placement:"top",gutter:4,get forceOpen(){return i()},skipDelayDuration:0,get children(){return y(xn,{type:"button",get icon(){return s()},variant:"ghost",onClick:l,tabIndex:-1,"data-slot":"input-copy-button",get"aria-label"(){return a()}})}})}}),null),d})(),y(de,{get when(){return n.description},get children(){return y(Ja.Description,{"data-slot":"input-description",get children(){return n.description}})}}),y(Ja.ErrorMessage,{"data-slot":"input-error",get children(){return n.error}})]}})}var Uue=Q("<div data-slot=list-item-add>"),que=Q("<div data-slot=list-header>"),Ux=Q("<span>"),Zue=Q("<span data-slot=list-filter>&quot;<!>&quot;"),Wue=Q("<div data-slot=list-search-wrapper><div data-slot=list-search><div data-slot=list-search-container>"),qx=Q("<div data-slot=list-group><div data-slot=list-items>"),Gue=Q("<div data-component=list><div data-slot=list-scroll>"),Kue=Q("<div data-slot=list-empty-state><div data-slot=list-message>"),Jue=Q("<span data-slot=list-item-selected-icon>"),Que=Q("<button data-slot=list-item type=button>"),Xue=Q("<span data-slot=list-item-active-icon>"),Yue=Q("<span data-slot=list-item-divider>");function Zx(e,t){const n=e.querySelectorAll('[data-slot="list-item"][data-key]');for(const r of n)if(r.getAttribute("data-key")===t)return r}function Jm(e){const t=Wl(),[n,r]=me(void 0),[i,o]=me("");let a;const[s,l]=He({mouseActive:!1}),c=(D,T,M)=>{const R=D.getBoundingClientRect(),G=T.getBoundingClientRect(),K=G.top-R.top+D.scrollTop;K+G.height,D.scrollTop+D.clientHeight;const q=K-D.clientHeight/2+G.height/2,X=Math.max(0,D.scrollHeight-D.clientHeight);D.scrollTop=Math.max(0,Math.min(q,X))},{filter:d,grouped:u,flat:h,active:m,setActive:f,onKeyDown:p,onInput:b,refetch:v}=uP(e),g=()=>typeof e.search=="object"?e.search:{},k=()=>g().action,S=()=>e.add,w=()=>!!S(),x=D=>D.movementX!==0||D.movementY!==0,L=(D,T)=>{const M=d();if(o(D),b(D),e.onFilter?.(D),!!T?.ref){if(M===D){v();return}queueMicrotask(()=>v())}};se(()=>{e.filter!==void 0&&e.filter!==i()&&(o(e.filter),b(e.filter))}),se(Ht(d,()=>{n()?.scrollTo(0,0)},{defer:!0})),se(()=>{const D=n();if(!D||!e.current)return;const T=e.key(e.current);requestAnimationFrame(()=>{const M=Zx(D,T);M&&c(D,M)})}),se(()=>{const D=h();if(s.mouseActive||D.length===0)return;const T=n();if(!T)return;if(m()===e.key(D[0])){T.scrollTo(0,0);return}const M=m();if(!M)return;const R=Zx(T,M);R&&c(T,R)}),se(()=>{const D=h(),T=m(),M=D.find(R=>e.key(R)===T);e.onMove?.(M)});const C=(D,T)=>{e.onSelect?.(D,T)},I=D=>{if(l("mouseActive",!1),D.key==="Escape")return;const T=h(),M=T.find(G=>e.key(G)===m()),R=M?T.indexOf(M):-1;if(e.onKeyEvent?.(D,M),!D.defaultPrevented)if(D.key==="Enter"&&!D.isComposing)D.preventDefault(),M&&C(M,R);else if(e.search){if(D.ctrlKey&&!D.metaKey&&!D.altKey&&!D.shiftKey&&(D.key==="n"||D.key==="p")){p(D);return}(D.key==="ArrowDown"||D.key==="ArrowUp")&&p(D)}else p(D)};e.ref?.({onKeyDown:I,setScrollRef:r,setFilter:D=>L(D,{ref:!0})});const $=()=>{const D=S();return D?(()=>{var T=Uue();return P(T,()=>D.render()),Ne(M=>ln(T,{[D.class??""]:!!D.class},M)),T})():null};function F(D){const[T,M]=me(!1),[R,G]=me(void 0);return se(()=>{const K=n(),U=R();if(!K||!U)return;const q=()=>{const X=U.getBoundingClientRect(),le=K.getBoundingClientRect();M(X.top<=le.top+1&&K.scrollTop>0)};K.addEventListener("scroll",q,{passive:!0}),q(),he(()=>K.removeEventListener("scroll",q))}),(()=>{var K=que();return or(G,K),P(K,()=>e.groupHeader?.(D.group)??D.group.category),Ne(()=>et(K,"data-stuck",T())),K})()}const N=()=>{if(u.loading)return e.loadingMessage??t.t("ui.list.loading");if(e.emptyMessage)return e.emptyMessage;const D=d();if(!D)return t.t("ui.list.empty");const T=t.t("ui.list.emptyWithFilter.suffix");return[(()=>{var M=Ux();return P(M,()=>t.t("ui.list.emptyWithFilter.prefix")),M})(),(()=>{var M=Zue(),R=M.firstChild,G=R.nextSibling;return G.nextSibling,P(M,D,G),M})(),y(de,{when:T,get children(){var M=Ux();return P(M,T),M}})]};return(()=>{var D=Gue(),T=D.firstChild;return P(D,y(de,{get when(){return!!e.search},get children(){var M=Wue(),R=M.firstChild,G=R.firstChild;return R.$$pointerdown=K=>{const U=K.currentTarget;if(!(U instanceof HTMLElement))return;const q=U.querySelector("input, textarea");(q instanceof HTMLInputElement||q instanceof HTMLTextAreaElement?q:a)?.focus(),K.stopPropagation()},P(G,y(de,{get when(){return!g().hideIcon},get children(){return y(Dt,{name:"magnifying-glass"})}}),null),P(G,y(En,{get autofocus(){return g().autofocus},variant:"ghost","data-slot":"list-search-input",type:"text",ref:K=>{a=K},get value(){return i()},onChange:K=>L(K),onKeyDown:I,get placeholder(){return g().placeholder},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off"}),null),P(R,y(de,{get when(){return i()},get children(){return y(xn,{icon:"circle-x",variant:"ghost",onClick:()=>{o(""),queueMicrotask(()=>a?.focus())},get"aria-label"(){return t.t("ui.list.clearFilter")}})}}),null),P(M,k,null),Ne(K=>ln(R,{[g().class??""]:!!g().class},K)),M}}),T),or(r,T),P(T,y(de,{get when(){return h().length>0||w()},get fallback(){return(()=>{var M=Kue(),R=M.firstChild;return P(R,N),M})()},get children(){return[y(on,{get each(){return u.latest},children:(M,R)=>{const G=()=>R()===u.latest.length-1;return(()=>{var K=qx(),U=K.firstChild;return P(K,y(de,{get when(){return M.category},get children(){return y(F,{group:M})}}),U),P(U,y(on,{get each(){return M.items},children:(q,X)=>{const le=(()=>{var _e=Que();return _e.addEventListener("mouseleave",()=>{s.mouseActive&&f(null)}),_e.$$mousemove=ne=>{x(ne)&&(l("mouseActive",!0),f(e.key(q)))},_e.$$keydown=I,_e.$$click=()=>C(q,X()),P(_e,()=>e.children(q),null),P(_e,y(de,{get when(){return q===e.current},get children(){var ne=Jue();return P(ne,y(Dt,{name:"check-small"})),ne}}),null),P(_e,y(de,{get when(){return e.activeIcon},children:ne=>(()=>{var B=Xue();return P(B,y(Dt,{get name(){return ne()}})),B})()}),null),P(_e,(()=>{var ne=Le(()=>!!(e.divider&&(X()!==M.items.length-1||w()&&G())));return()=>ne()&&Yue()})(),null),Ne(ne=>{var B=e.key(q),ae=e.key(q)===m(),Y=q===e.current;return B!==ne.e&&et(_e,"data-key",ne.e=B),ae!==ne.t&&et(_e,"data-active",ne.t=ae),Y!==ne.a&&et(_e,"data-selected",ne.a=Y),ne},{e:void 0,t:void 0,a:void 0}),_e})();return e.itemWrapper?e.itemWrapper(q,le):le}}),null),P(U,y(de,{get when(){return Le(()=>!!w())()&&G()},get children(){return $()}}),null),K})()}}),y(de,{get when(){return Le(()=>u.latest.length===0)()&&w()},get children(){var M=qx(),R=M.firstChild;return P(R,$),M}})]}})),Ne(M=>ln(D,{[e.class??""]:!!e.class},M)),D})()}rr(["pointerdown","click","keydown","mousemove"]);var efe=Q("<span>");function os(e){const[t,n]=ue(e,["size","class","classList","children"]);return(()=>{var r=efe();return nr(r,ee(n,{"data-component":"tag",get"data-size"(){return t.size||"normal"},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}),!1,!0),P(r,()=>t.children),r})()}const tfe="/assets/sprite-B0ryth1W.svg",nfe=["zhipuai","zhipuai-coding-plan","zenmux","zai","zai-coding-plan","xiaomi","xai","wandb","vultr","vivgrid","vercel","venice","v0","upstage","togetherai","synthetic","submodel","stepfun","stackit","siliconflow","siliconflow-cn","scaleway","sap-ai-core","requesty","qiniu-ai","qihang-ai","privatemode-ai","poe","perplexity","ovhcloud","openrouter","opencode","opencode-go","openai","ollama-cloud","nvidia","novita-ai","nova","nebius","nano-gpt","morph","moonshotai","moonshotai-cn","modelscope","moark","mistral","minimax","minimax-coding-plan","minimax-cn","minimax-cn-coding-plan","meganova","lucidquery","lmstudio","llama","kuae-cloud-coding-plan","kimi-for-coding","kilo","jiekou","io-net","inference","inception","iflowcn","huggingface","helicone","groq","google","google-vertex","google-vertex-anthropic","gitlab","github-models","github-copilot","friendli","firmware","fireworks-ai","fastrouter","evroc","deepseek","deepinfra","cortecs","cohere","cloudflare-workers-ai","cloudflare-ai-gateway","cloudferro-sherlock","chutes","cerebras","berget","baseten","bailing","azure","azure-cognitive-services","anthropic","amazon-bedrock","alibaba","alibaba-cn","aihubmix","abacus","302ai"];var rfe=Q("<svg data-component=provider-icon><use>");const cs=e=>{const[t,n]=ue(e,["id","class","classList"]),r=j(()=>nfe.includes(t.id)?t.id:"synthetic");return(()=>{var i=rfe(),o=i.firstChild;return nr(i,ee(n,{get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}),!0,!0),Ne(()=>et(o,"href",`${tfe}#${r()}`)),i})()};var ife=Q("<svg>"),ofe=Q("<svg><rect width=3 height=3 rx=1></svg>",!1,!0,!1);const afe=new Set([1,2,4,7,8,11,13,14]),sfe=new Set([0,3,12,15]),lfe=Array.from({length:16},(e,t)=>({id:t,x:t%4*4,y:Math.floor(t/4)*4,delay:Math.random()*1.5,duration:1+Math.random()*1,outer:afe.has(t),corner:sfe.has(t)}));function Zh(e){return(()=>{var t=ife();return nr(t,ee(e,{viewBox:"0 0 15 15","data-component":"spinner",get classList(){return{...e.classList??{},[e.class??""]:!!e.class}},fill:"currentColor"}),!0,!0),P(t,y(on,{each:lfe,children:n=>(()=>{var r=ofe();return Ne(i=>{var o=n.x,a=n.y,s=n.corner?0:void 0,l=n.corner?void 0:`${n.outer?"pulse-opacity-dim":"pulse-opacity"} ${n.duration}s ease-in-out infinite`,c=n.corner?void 0:`${n.delay}s`;return o!==i.e&&et(r,"x",i.e=o),a!==i.t&&et(r,"y",i.t=a),s!==i.a&&zi(r,"opacity",i.a=s),l!==i.o&&zi(r,"animation",i.o=l),c!==i.i&&zi(r,"animation-delay",i.i=c),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})()})),t})()}var cfe=Q("<a>");function Hc(e){const t=Er(),[n,r]=ue(e,["href","children","class"]);return(()=>{var i=cfe();return i.$$click=o=>{n.href&&(o.preventDefault(),t.openLink(n.href))},nr(i,ee({get href(){return n.href},get class(){return`text-text-strong underline ${n.class??""}`}},r),!1,!0),P(i,()=>n.children),i})()}rr(["click"]);var Wx=Q('<div class="text-14-regular text-text-base">'),dfe=Q("<div>"),ufe=Q('<div class="w-full flex items-center gap-x-2"><div class="w-4 h-2 rounded-[1px] bg-input-base shadow-xs-border-base flex items-center justify-center"><div class="w-2.5 h-0.5 ml-0 bg-icon-strong-base hidden"data-slot=list-item-extra-icon></div></div><span>'),ffe=Q('<div class="flex flex-col gap-4"><div class="text-14-regular text-text-base"></div><div class="text-14-regular text-text-base"></div><div class="text-14-regular text-text-base">'),hfe=Q('<div class="flex flex-col gap-6"><form class="flex flex-col items-start gap-4">'),mfe=Q('<div class="flex flex-col gap-6"><div class="text-14-regular text-text-base"></div><form class="flex flex-col items-start gap-4">'),pfe=Q('<div class="flex flex-col gap-6"><div class="text-14-regular text-text-base"></div><div class="text-14-regular text-text-base flex items-center gap-4"><span>'),Gx=Q('<div class="text-14-regular text-text-base"><div class="flex items-center gap-x-2"><span>'),gfe=Q('<div class="flex flex-col gap-6 px-2.5 pb-3"><div class="px-2.5 flex gap-4 items-center"><div class="text-16-medium text-text-strong"></div></div><div class="px-2.5 pb-10 flex flex-col gap-6"><div tabindex=0>');function vP(e){const t=Ui(),n=ar(),r=qi(),i=Er(),o=Kt(),a={value:!0},s={current:void 0};he(()=>{a.value=!1,s.current!==void 0&&(clearTimeout(s.current),s.current=void 0)});const l=j(()=>n.data.provider.all.find(I=>I.id===e.provider)),c=j(()=>n.data.provider_auth[e.provider]??[{type:"api",label:o.t("provider.connect.method.apiKey")}]),[d,u]=He({methodIndex:void 0,authorization:void 0,state:"pending",error:void 0});function h(I){u(st($=>{if(I.type==="method.select"){$.methodIndex=I.index,$.authorization=void 0,$.state=void 0,$.error=void 0;return}if(I.type==="method.reset"){$.methodIndex=void 0,$.authorization=void 0,$.state=void 0,$.error=void 0;return}if(I.type==="auth.pending"){$.state="pending",$.error=void 0;return}if(I.type==="auth.complete"){$.state="complete",$.authorization=I.authorization,$.error=void 0;return}$.state="error",$.error=I.error}))}const m=j(()=>d.methodIndex!==void 0?c().at(d.methodIndex):void 0),f=I=>I?I.type==="api"?o.t("provider.connect.method.apiKey"):I.label??"":"";function p(I,$){if(I&&typeof I=="object"&&"data"in I){const F=I.data;if(typeof F?.message=="string"&&F.message)return F.message}if(I&&typeof I=="object"&&"error"in I){const F=p(I.error,"");if(F)return F}if(I&&typeof I=="object"&&"message"in I){const F=I.message;if(typeof F=="string"&&F)return F}return I instanceof Error&&I.message?I.message:typeof I=="string"&&I?I:$}async function b(I){s.current!==void 0&&(clearTimeout(s.current),s.current=void 0);const $=c()[I];if(h({type:"method.select",index:I}),$.type==="oauth"){h({type:"auth.pending"});const F=Date.now();await r.client.provider.oauth.authorize({providerID:e.provider,method:I},{throwOnError:!0}).then(N=>{if(!a.value)return;const T=1e3-(Date.now()-F);if(T>0){s.current!==void 0&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=void 0,a.value&&h({type:"auth.complete",authorization:N.data})},T);return}h({type:"auth.complete",authorization:N.data})}).catch(N=>{a.value&&h({type:"auth.error",error:p(N,o.t("common.requestFailed"))})})}}let v;function g(I){I.key==="Enter"&&I.target instanceof HTMLInputElement||I.key!=="Escape"&&v?.onKeyDown(I)}Wt(()=>{c().length===1&&b(0)});async function k(){await r.client.global.dispose(),t.close(),Ft({variant:"success",icon:"circle-check",title:o.t("provider.connect.toast.connected.title",{provider:l().name}),description:o.t("provider.connect.toast.connected.description",{provider:l().name})})}function S(){if(c().length===1){t.show(()=>y(bd,{}));return}if(d.authorization){h({type:"method.reset"});return}if(d.methodIndex!==void 0){h({type:"method.reset"});return}t.show(()=>y(bd,{}))}function w(){return[(()=>{var I=Wx();return P(I,()=>o.t("provider.connect.selectMethod",{provider:l().name})),I})(),(()=>{var I=dfe();return P(I,y(Jm,{ref:$=>{v=$},items:c,key:$=>$?.label,onSelect:async($,F)=>{$&&b(F)},children:$=>(()=>{var F=ufe(),N=F.firstChild,D=N.nextSibling;return P(D,()=>f($)),F})()})),I})()]}function x(){const[I,$]=He({value:"",error:void 0});async function F(N){N.preventDefault();const D=N.currentTarget,M=new FormData(D).get("apiKey");if(!M?.trim()){$("error",o.t("provider.connect.apiKey.required"));return}$("error",void 0),await r.client.auth.set({providerID:e.provider,auth:{type:"api",key:M}}),await k()}return(()=>{var N=hfe(),D=N.firstChild;return P(N,y(Ur,{get children(){return[y(Ot,{get when(){return l().id==="opencode"},get children(){var T=ffe(),M=T.firstChild,R=M.nextSibling,G=R.nextSibling;return P(M,()=>o.t("provider.connect.opencodeZen.line1")),P(R,()=>o.t("provider.connect.opencodeZen.line2")),P(G,()=>o.t("provider.connect.opencodeZen.visit.prefix"),null),P(G,y(Hc,{href:"https://opencode.ai/zen",tabIndex:-1,get children(){return o.t("provider.connect.opencodeZen.visit.link")}}),null),P(G,()=>o.t("provider.connect.opencodeZen.visit.suffix"),null),T}}),y(Ot,{when:!0,get children(){var T=Wx();return P(T,()=>o.t("provider.connect.apiKey.description",{provider:l().name})),T}})]}}),D),D.addEventListener("submit",F),P(D,y(En,{autofocus:!0,type:"text",get label(){return o.t("provider.connect.apiKey.label",{provider:l().name})},get placeholder(){return o.t("provider.connect.apiKey.placeholder")},name:"apiKey",get value(){return I.value},onChange:T=>$("value",T),get validationState(){return I.error?"invalid":void 0},get error(){return I.error}}),null),P(D,y(At,{class:"w-auto",type:"submit",size:"large",variant:"primary",get children(){return o.t("common.submit")}}),null),N})()}function L(){const[I,$]=He({value:"",error:void 0});Wt(()=>{d.authorization?.method==="code"&&d.authorization?.url&&i.openLink(d.authorization.url)});async function F(N){N.preventDefault();const D=N.currentTarget,M=new FormData(D).get("code");if(!M?.trim()){$("error",o.t("provider.connect.oauth.code.required"));return}$("error",void 0);const R=await r.client.provider.oauth.callback({providerID:e.provider,method:d.methodIndex,code:M}).then(G=>G.error?{ok:!1,error:G.error}:{ok:!0}).catch(G=>({ok:!1,error:G}));if(R.ok){await k();return}$("error",p(R.error,o.t("provider.connect.oauth.code.invalid")))}return(()=>{var N=mfe(),D=N.firstChild,T=D.nextSibling;return P(D,()=>o.t("provider.connect.oauth.code.visit.prefix"),null),P(D,y(Hc,{get href(){return d.authorization.url},get children(){return o.t("provider.connect.oauth.code.visit.link")}}),null),P(D,()=>o.t("provider.connect.oauth.code.visit.suffix",{provider:l().name}),null),T.addEventListener("submit",F),P(T,y(En,{autofocus:!0,type:"text",get label(){return o.t("provider.connect.oauth.code.label",{method:m()?.label??""})},get placeholder(){return o.t("provider.connect.oauth.code.placeholder")},name:"code",get value(){return I.value},onChange:M=>$("value",M),get validationState(){return I.error?"invalid":void 0},get error(){return I.error}}),null),P(T,y(At,{class:"w-auto",type:"submit",size:"large",variant:"primary",get children(){return o.t("common.submit")}}),null),N})()}function C(){const I=j(()=>{const $=d.authorization?.instructions;return $?.includes(":")?$.split(":")[1]?.trim():$});return Wt(()=>{(async()=>{d.authorization?.url&&i.openLink(d.authorization.url);const $=await r.client.provider.oauth.callback({providerID:e.provider,method:d.methodIndex}).then(F=>F.error?{ok:!1,error:F.error}:{ok:!0}).catch(F=>({ok:!1,error:F}));if(a.value){if(!$.ok){const F=p($.error,o.t("common.requestFailed"));h({type:"auth.error",error:F});return}await k()}})()}),(()=>{var $=pfe(),F=$.firstChild,N=F.nextSibling,D=N.firstChild;return P(F,()=>o.t("provider.connect.oauth.auto.visit.prefix"),null),P(F,y(Hc,{get href(){return d.authorization.url},get children(){return o.t("provider.connect.oauth.auto.visit.link")}}),null),P(F,()=>o.t("provider.connect.oauth.auto.visit.suffix",{provider:l().name}),null),P($,y(En,{get label(){return o.t("provider.connect.oauth.auto.confirmationCode")},class:"font-mono",get value(){return I()},readOnly:!0,copyable:!0}),N),P(N,y(Zh,{}),D),P(D,()=>o.t("provider.connect.status.waiting")),$})()}return y(mo,{get title(){return y(xn,{tabIndex:-1,icon:"arrow-left",variant:"ghost",onClick:S,get"aria-label"(){return o.t("common.goBack")}})},get children(){var I=gfe(),$=I.firstChild,F=$.firstChild,N=$.nextSibling,D=N.firstChild;return P($,y(cs,{get id(){return e.provider},class:"size-5 shrink-0 icon-strong-base"}),F),P(F,y(Ur,{get children(){return[y(Ot,{get when(){return Le(()=>e.provider==="anthropic")()&&m()?.label?.toLowerCase().includes("max")},get children(){return o.t("provider.connect.title.anthropicProMax")}}),y(Ot,{when:!0,get children(){return o.t("provider.connect.title",{provider:l().name})}})]}})),D.$$keydown=g,P(D,y(Ur,{get children(){return[y(Ot,{get when(){return d.methodIndex===void 0},get children(){return y(w,{})}}),y(Ot,{get when(){return d.state==="pending"},get children(){var T=Gx(),M=T.firstChild,R=M.firstChild;return P(M,y(Zh,{}),R),P(R,()=>o.t("provider.connect.status.inProgress")),T}}),y(Ot,{get when(){return d.state==="error"},get children(){var T=Gx(),M=T.firstChild,R=M.firstChild;return P(M,y(Dt,{name:"circle-ban-sign",class:"text-icon-critical-base"}),R),P(R,()=>o.t("provider.connect.status.failed",{error:d.error??""})),T}}),y(Ot,{get when(){return m()?.type==="api"},get children(){return y(x,{})}}),y(Ot,{get when(){return m()?.type==="oauth"},get children(){return y(Ur,{get children(){return[y(Ot,{get when(){return d.authorization?.method==="code"},get children(){return y(L,{})}}),y(Ot,{get when(){return d.authorization?.method==="auto"},get children(){return y(C,{})}})]}})}})]}})),Ne(()=>D.autofocus=d.methodIndex===void 0?!0:void 0),I}})}rr(["keydown"]);var vfe=Q('<div class="flex flex-col gap-6 px-2.5 pb-3 overflow-y-auto max-h-[60vh]"><div class="px-2.5 flex gap-4 items-center"><div class="text-16-medium text-text-strong"></div></div><form class="px-2.5 pb-6 flex flex-col gap-6"><p class="text-14-regular text-text-base"></p><div class="flex flex-col gap-4"></div><div class="flex flex-col gap-3"><label class="text-12-medium text-text-weak"></label></div><div class="flex flex-col gap-3"><label class="text-12-medium text-text-weak">'),Kx=Q('<div class="flex gap-2 items-start"><div class=flex-1></div><div class=flex-1>');const bfe=/^[a-z0-9][a-z0-9-_]*$/,yfe="@ai-sdk/openai-compatible";function wfe(e){const t=e.form.providerID.trim(),n=e.form.name.trim(),r=e.form.baseURL.trim(),i=e.form.apiKey.trim(),o=i.match(/^\{env:([^}]+)\}$/)?.[1]?.trim(),a=i&&!o?i:void 0,s=t?bfe.test(t)?void 0:e.t("provider.custom.error.providerID.format"):e.t("provider.custom.error.providerID.required"),l=n?void 0:e.t("provider.custom.error.name.required"),c=r?/^https?:\/\//.test(r)?void 0:e.t("provider.custom.error.baseURL.format"):e.t("provider.custom.error.baseURL.required"),d=e.disabledProviders.includes(t),u=s?void 0:e.existingProviderIDs.has(t)&&!d?e.t("provider.custom.error.providerID.exists"):void 0,h=new Set,m=e.form.models.map(L=>{const C=L.id.trim(),I=C?h.has(C)?e.t("provider.custom.error.duplicate"):void h.add(C):e.t("provider.custom.error.required"),$=L.name.trim()?void 0:e.t("provider.custom.error.required");return{id:I,name:$}}),f=m.every(L=>!L.id&&!L.name),p=Object.fromEntries(e.form.models.map(L=>[L.id.trim(),{name:L.name.trim()}])),b=new Set,v=e.form.headers.map(L=>{const C=L.key.trim(),I=L.value.trim();if(!C&&!I)return{};const $=C?b.has(C.toLowerCase())?e.t("provider.custom.error.duplicate"):void b.add(C.toLowerCase()):e.t("provider.custom.error.required"),F=I?void 0:e.t("provider.custom.error.required");return{key:$,value:F}}),g=v.every(L=>!L.key&&!L.value),k=Object.fromEntries(e.form.headers.map(L=>({key:L.key.trim(),value:L.value.trim()})).filter(L=>!!L.key&&!!L.value).map(L=>[L.key,L.value])),S={providerID:s??u,name:l,baseURL:c,models:m,headers:v};if(!(!s&&!u&&!l&&!c&&f&&g))return{errors:S};const x={baseURL:r,...Object.keys(k).length?{headers:k}:{}};return{errors:S,result:{providerID:t,name:n,key:a,config:{npm:yfe,name:n,...o?{env:[o]}:{},options:x,models:p}}}}function bP(e){const t=Ui(),n=ar(),r=qi(),i=Kt(),[o,a]=He({providerID:"",name:"",baseURL:"",apiKey:"",models:[{id:"",name:""}],headers:[{key:"",value:""}],saving:!1}),[s,l]=He({providerID:void 0,name:void 0,baseURL:void 0,models:[{}],headers:[{}]}),c=()=>{if(e.back==="close"){t.close();return}t.show(()=>y(bd,{}))},d=()=>{a("models",b=>[...b,{id:"",name:""}]),l("models",b=>[...b,{}])},u=b=>{o.models.length<=1||(a("models",v=>v.filter((g,k)=>k!==b)),l("models",v=>v.filter((g,k)=>k!==b)))},h=()=>{a("headers",b=>[...b,{key:"",value:""}]),l("headers",b=>[...b,{}])},m=b=>{o.headers.length<=1||(a("headers",v=>v.filter((g,k)=>k!==b)),l("headers",v=>v.filter((g,k)=>k!==b)))},f=()=>{const b=wfe({form:o,t:i.t,disabledProviders:n.data.config.disabled_providers??[],existingProviderIDs:new Set(n.data.provider.all.map(v=>v.id))});return l(b.errors),b.result},p=async b=>{if(b.preventDefault(),o.saving)return;const v=f();if(!v)return;a("saving",!0);const k=(n.data.config.disabled_providers??[]).filter(w=>w!==v.providerID);(v.key?r.client.auth.set({providerID:v.providerID,auth:{type:"api",key:v.key}}):Promise.resolve()).then(()=>n.updateConfig({provider:{[v.providerID]:v.config},disabled_providers:k})).then(()=>{t.close(),Ft({variant:"success",icon:"circle-check",title:i.t("provider.connect.toast.connected.title",{provider:v.name}),description:i.t("provider.connect.toast.connected.description",{provider:v.name})})}).catch(w=>{const x=w instanceof Error?w.message:String(w);Ft({title:i.t("common.requestFailed"),description:x})}).finally(()=>{a("saving",!1)})};return y(mo,{get title(){return y(xn,{tabIndex:-1,icon:"arrow-left",variant:"ghost",onClick:c,get"aria-label"(){return i.t("common.goBack")}})},transition:!0,get children(){var b=vfe(),v=b.firstChild,g=v.firstChild,k=v.nextSibling,S=k.firstChild,w=S.nextSibling,x=w.nextSibling,L=x.firstChild,C=x.nextSibling,I=C.firstChild;return P(v,y(cs,{id:"synthetic",class:"size-5 shrink-0 icon-strong-base"}),g),P(g,()=>i.t("provider.custom.title")),k.addEventListener("submit",p),P(S,()=>i.t("provider.custom.description.prefix"),null),P(S,y(Hc,{href:"https://opencode.ai/docs/providers/#custom-provider",tabIndex:-1,get children(){return i.t("provider.custom.description.link")}}),null),P(S,()=>i.t("provider.custom.description.suffix"),null),P(w,y(En,{autofocus:!0,get label(){return i.t("provider.custom.field.providerID.label")},get placeholder(){return i.t("provider.custom.field.providerID.placeholder")},get description(){return i.t("provider.custom.field.providerID.description")},get value(){return o.providerID},onChange:$=>a("providerID",$),get validationState(){return s.providerID?"invalid":void 0},get error(){return s.providerID}}),null),P(w,y(En,{get label(){return i.t("provider.custom.field.name.label")},get placeholder(){return i.t("provider.custom.field.name.placeholder")},get value(){return o.name},onChange:$=>a("name",$),get validationState(){return s.name?"invalid":void 0},get error(){return s.name}}),null),P(w,y(En,{get label(){return i.t("provider.custom.field.baseURL.label")},get placeholder(){return i.t("provider.custom.field.baseURL.placeholder")},get value(){return o.baseURL},onChange:$=>a("baseURL",$),get validationState(){return s.baseURL?"invalid":void 0},get error(){return s.baseURL}}),null),P(w,y(En,{get label(){return i.t("provider.custom.field.apiKey.label")},get placeholder(){return i.t("provider.custom.field.apiKey.placeholder")},get description(){return i.t("provider.custom.field.apiKey.description")},get value(){return o.apiKey},onChange:$=>a("apiKey",$)}),null),P(L,()=>i.t("provider.custom.models.label")),P(x,y(on,{get each(){return o.models},children:($,F)=>(()=>{var N=Kx(),D=N.firstChild,T=D.nextSibling;return P(D,y(En,{get label(){return i.t("provider.custom.models.id.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.models.id.placeholder")},get value(){return $.id},onChange:M=>a("models",F(),"id",M),get validationState(){return s.models[F()]?.id?"invalid":void 0},get error(){return s.models[F()]?.id}})),P(T,y(En,{get label(){return i.t("provider.custom.models.name.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.models.name.placeholder")},get value(){return $.name},onChange:M=>a("models",F(),"name",M),get validationState(){return s.models[F()]?.name?"invalid":void 0},get error(){return s.models[F()]?.name}})),P(N,y(xn,{type:"button",icon:"trash",variant:"ghost",class:"mt-1.5",onClick:()=>u(F()),get disabled(){return o.models.length<=1},get"aria-label"(){return i.t("provider.custom.models.remove")}}),null),N})()}),null),P(x,y(At,{type:"button",size:"small",variant:"ghost",icon:"plus-small",onClick:d,class:"self-start",get children(){return i.t("provider.custom.models.add")}}),null),P(I,()=>i.t("provider.custom.headers.label")),P(C,y(on,{get each(){return o.headers},children:($,F)=>(()=>{var N=Kx(),D=N.firstChild,T=D.nextSibling;return P(D,y(En,{get label(){return i.t("provider.custom.headers.key.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.headers.key.placeholder")},get value(){return $.key},onChange:M=>a("headers",F(),"key",M),get validationState(){return s.headers[F()]?.key?"invalid":void 0},get error(){return s.headers[F()]?.key}})),P(T,y(En,{get label(){return i.t("provider.custom.headers.value.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.headers.value.placeholder")},get value(){return $.value},onChange:M=>a("headers",F(),"value",M),get validationState(){return s.headers[F()]?.value?"invalid":void 0},get error(){return s.headers[F()]?.value}})),P(N,y(xn,{type:"button",icon:"trash",variant:"ghost",class:"mt-1.5",onClick:()=>m(F()),get disabled(){return o.headers.length<=1},get"aria-label"(){return i.t("provider.custom.headers.remove")}}),null),N})()}),null),P(C,y(At,{type:"button",size:"small",variant:"ghost",icon:"plus-small",onClick:h,class:"self-start",get children(){return i.t("provider.custom.headers.add")}}),null),P(k,y(At,{class:"w-auto self-start",type:"submit",size:"large",variant:"primary",get disabled(){return o.saving},get children(){return Le(()=>!!o.saving)()?i.t("common.saving"):i.t("common.submit")}}),null),b}})}var Jx=Q('<div class="text-14-regular text-text-weak">'),kfe=Q('<div class="px-1.25 w-full flex items-center gap-x-3"><span>');const xc="_custom",bd=()=>{const e=Ui(),t=fu(),n=Kt(),r=()=>n.t("dialog.provider.group.popular"),i=()=>n.t("dialog.provider.group.other"),o=()=>n.t("settings.providers.tag.custom"),a=s=>{if(s==="anthropic")return n.t("dialog.provider.anthropic.note");if(s==="openai")return n.t("dialog.provider.openai.note");if(s.startsWith("github-copilot"))return n.t("dialog.provider.copilot.note");if(s==="opencode-go")return n.t("dialog.provider.opencodeGo.tagline")};return y(mo,{get title(){return n.t("command.provider.connect")},transition:!0,get children(){return y(Jm,{get search(){return{placeholder:n.t("dialog.provider.search.placeholder"),autofocus:!0}},get emptyMessage(){return n.t("dialog.provider.empty")},activeIcon:"plus-small",key:s=>s?.id,items:()=>(n.locale(),[{id:xc,name:o()},...t.all()]),filterKeys:["id","name"],groupBy:s=>io.includes(s.id)?r():i(),sortBy:(s,l)=>s.id===xc?-1:l.id===xc?1:io.includes(s.id)&&io.includes(l.id)?io.indexOf(s.id)-io.indexOf(l.id):s.name.localeCompare(l.name),sortGroupsBy:(s,l)=>{const c=r();return s.category===c&&l.category!==c?-1:l.category===c&&s.category!==c?1:0},onSelect:s=>{if(s){if(s.id===xc){e.show(()=>y(bP,{back:"providers"}));return}e.show(()=>y(vP,{get provider(){return s.id}}))}},children:s=>(()=>{var l=kfe(),c=l.firstChild;return P(l,y(cs,{"data-slot":"list-item-extra-icon",get id(){return s.id}}),c),P(c,()=>s.name),P(l,y(de,{get when(){return s.id==="opencode"},get children(){var d=Jx();return P(d,()=>n.t("dialog.provider.opencode.tagline")),d}}),null),P(l,y(de,{get when(){return s.id===xc},get children(){return y(os,{get children(){return n.t("settings.providers.tag.custom")}})}}),null),P(l,y(de,{get when(){return s.id==="opencode"},get children(){return y(os,{get children(){return n.t("dialog.provider.tag.recommended")}})}}),null),P(l,y(de,{get when(){return a(s.id)},children:d=>(()=>{var u=Jx();return P(u,d),u})()}),null),P(l,y(de,{get when(){return s.id==="opencode-go"},get children(){return y(os,{get children(){return n.t("dialog.provider.tag.recommended")}})}}),null),l})()})}})};var xfe=Q("<span class=text-text-invert-weak>v"),Sfe=Q('<span class="flex items-center gap-2"><span>'),_fe=Q('<div><div class="flex flex-col items-start"><div class="flex flex-row items-center gap-2"><span>'),Afe=Q("<span>v"),Cfe=Q('<div class="flex flex-row gap-3"><span>'),Efe=Q("<span class=text-text-weak>"),Ife=Q("<span class=text-text-weaker>no username"),Tfe=Q("<span class=text-text-weak>••••••••"),Lfe=Q("<div>");function Dfe(e){const[t,n]=me(!1);let r,i;const o=j(()=>e1(e.conn)),a=()=>{const c=r?r.scrollWidth>r.clientWidth:!1,d=i?i.scrollWidth>i.clientWidth:!1;n(c||d)};se(()=>{o(),e.conn.http.url,e.status?.version,queueMicrotask(a)}),Wt(()=>{if(a(),typeof ResizeObserver!="function")return;const c=new ResizeObserver(a);r&&c.observe(r),i&&c.observe(i),he(()=>c.disconnect())});const s=()=>(()=>{var c=Sfe(),d=c.firstChild;return P(d,()=>e1(e.conn,!0)),P(c,y(de,{get when(){return e.status?.version},get children(){var u=xfe();return u.firstChild,P(u,()=>e.status?.version,null),u}}),null),c})(),l=_s(()=>e.badge);return y(_r,{class:"flex-1",get value(){return s()},placement:"top-start",get inactive(){return Le(()=>!t())()&&!e.conn.displayName},get children(){var c=_fe(),d=c.firstChild,u=d.firstChild,h=u.firstChild,m=r;return typeof m=="function"?or(m,h):r=h,P(h,o),P(u,y(de,{get when(){return l()},get fallback(){return y(de,{get when(){return e.status?.version},get children(){var f=Afe();f.firstChild;var p=i;return typeof p=="function"?or(p,f):i=f,P(f,()=>e.status?.version,null),Ne(()=>zo(f,e.versionClass??"text-text-weak text-14-regular truncate")),f}})},children:f=>f()}),null),P(d,y(de,{get when(){return Le(()=>!!(e.showCredentials&&e.conn.type==="http"))()&&e.conn},children:f=>(()=>{var p=Cfe(),b=p.firstChild;return P(b,(()=>{var v=Le(()=>!!f().http.username);return()=>v()?(()=>{var g=Efe();return P(g,()=>f().http.username),g})():Ife()})()),P(p,(()=>{var v=Le(()=>!!f().http.password);return()=>v()&&Tfe()})(),null),p})()}),null),P(c,()=>e.children,null),Ne(f=>{var p=e.class,b=!!e.dimmed,v=e.nameClass??"truncate";return p!==f.e&&zo(c,f.e=p),b!==f.t&&c.classList.toggle("opacity-50",f.t=b),v!==f.a&&zo(h,f.a=v),f},{e:void 0,t:void 0,a:void 0}),c}})}function Mfe(e){return(()=>{var t=Lfe();return Ne(n=>ln(t,{"size-1.5 rounded-full shrink-0":!0,"bg-icon-success-base":e.health?.healthy===!0,"bg-icon-critical-base":e.health?.healthy===!1,"bg-border-weak-base":e.health===void 0},n)),t})()}var Pfe=Q('<div class=px-5><div class="bg-surface-raised-base rounded-md p-5 flex flex-col gap-3"><div class="flex-1 min-w-0 [&amp;_[data-slot=input-wrapper]]:relative"></div><div class="grid grid-cols-2 gap-2 min-w-0">'),Ofe=Q('<div class="flex items-center gap-2 -ml-2"><span>'),$fe=Q('<div class="flex flex-col gap-2"><div class="px-5 pb-5">'),Rfe=Q('<div class="flex items-center gap-3 min-w-0 flex-1 w-full group/item"><div class="flex flex-col h-full items-start w-5"></div><div class="flex items-center justify-center gap-4 pl-4">'),zfe=Q('<span class="text-text-base bg-surface-base text-14-regular px-1.5 rounded-xs">');function Qx(e,t){Ft({variant:"error",title:e.t("common.requestFailed"),description:t instanceof Error?t.message:String(t)})}function Nfe(e,t){const[n,r]=Ss(async()=>{try{const a=await e.getDefaultServerUrl?.();return a?Fl(a)??null:null}catch(a){return Qx(t,a),null}},{initialValue:null}),i=j(()=>!!e.getDefaultServerUrl&&!!e.setDefaultServerUrl);return{defaultUrl:n,canDefault:i,setDefault:async a=>{try{await e.setDefaultServerUrl?.(a),r.mutate(a)}catch(s){Qx(t,s)}}}}function Ffe(e){const t=r=>{const i=Fl(r);if(!i)return!1;const o=i.replace(/^https?:\/\//,"").split("/")[0];return o?o.includes("localhost")||o.startsWith("127.0.0.1")?!0:o.includes(".")||o.includes(":"):!1};return{previewStatus:async(r,i,o,a)=>{if(a(void 0),!t(r))return;const s=Fl(r);if(!s)return;const l={url:s};i&&(l.username=i),o&&(l.password=o);const c=await jc(l,e);a(c.healthy)}}}function Vfe(e){const t=Kt(),n=r=>{if(r.stopPropagation(),r.key==="Escape"){r.preventDefault(),e.onBack();return}r.key!=="Enter"||r.isComposing||(r.preventDefault(),e.onSubmit())};return(()=>{var r=Pfe(),i=r.firstChild,o=i.firstChild,a=o.nextSibling;return P(o,y(En,{type:"text",get label(){return t.t("dialog.server.add.url")},get placeholder(){return e.placeholder},get value(){return e.value},autofocus:!0,get validationState(){return e.error?"invalid":"valid"},get error(){return e.error},get disabled(){return e.busy},get onChange(){return e.onChange},onKeyDown:n})),P(i,y(En,{type:"text",get label(){return t.t("dialog.server.add.name")},get placeholder(){return t.t("dialog.server.add.namePlaceholder")},get value(){return e.name},get disabled(){return e.busy},get onChange(){return e.onNameChange},onKeyDown:n}),a),P(a,y(En,{type:"text",get label(){return t.t("dialog.server.add.username")},placeholder:"username",get value(){return e.username},get disabled(){return e.busy},get onChange(){return e.onUsernameChange},onKeyDown:n}),null),P(a,y(En,{type:"password",get label(){return t.t("dialog.server.add.password")},placeholder:"password",get value(){return e.password},get disabled(){return e.busy},get onChange(){return e.onPasswordChange},onKeyDown:n}),null),r})()}function jfe(){const e=Ra(),t=Ui(),n=su(),r=Er(),i=Kt(),o=r.fetch??globalThis.fetch,{defaultUrl:a,canDefault:s,setDefault:l}=Nfe(r,i),{previewStatus:c}=Ffe(o),[d,u]=He({status:{},addServer:{url:"",name:"",username:"",password:"",adding:!1,error:"",showForm:!1,status:void 0},editServer:{id:void 0,value:"",name:"",username:"",password:"",error:"",busy:!1,status:void 0}}),h=()=>{u("addServer",{url:"",name:"",username:"",password:"",adding:!1,error:"",showForm:!1,status:void 0})},m=()=>{u("editServer",{id:void 0,value:"",name:"",username:"",password:"",error:"",status:void 0,busy:!1})},f=(B,ae)=>{const Y=n.key,ie=n.add(ae);if(!ie)return;const be=Y===Pn.key(B)?Pn.key(ie):Y;be&&n.setActive(be),n.remove(Pn.key(B))},p=j(()=>{const B=n.current,ae=n.list;return B?ae.includes(B)?[B,...ae.filter(Y=>Y!==B)]:[B,...ae]:ae}),b=j(()=>p().find(B=>Pn.key(B)===n.key)??p()[0]),v=j(()=>{const B=p();if(!B.length)return B;const ae=b(),Y=new Map(B.map((be,ge)=>[be,ge])),ie=be=>be?.healthy===!0?0:be?.healthy===!1?2:1;return B.slice().sort((be,ge)=>{if(be===ae)return-1;if(ge===ae)return 1;const Re=ie(d.status[Pn.key(be)])-ie(d.status[Pn.key(ge)]);return Re!==0?Re:(Y.get(be)??0)-(Y.get(ge)??0)})});async function g(){const B={};await Promise.all(p().map(async ae=>{B[Pn.key(ae)]=await jc(ae.http,o)})),u("status",$t(B))}se(()=>{p(),g();const B=setInterval(g,1e4);he(()=>clearInterval(B))});async function k(B,ae){if(!(!ae&&d.status[Pn.key(B)]?.healthy===!1)){if(t.close(),ae&&B.type==="http"){n.add(B),e("/");return}n.setActive(Pn.key(B)),e("/")}}const S=B=>{d.addServer.adding||(u("addServer",{url:B,error:""}),c(B,d.addServer.username,d.addServer.password,ae=>u("addServer",{status:ae})))},w=B=>{d.addServer.adding||u("addServer",{name:B,error:""})},x=B=>{d.addServer.adding||(u("addServer",{username:B,error:""}),c(d.addServer.url,B,d.addServer.password,ae=>u("addServer",{status:ae})))},L=B=>{d.addServer.adding||(u("addServer",{password:B,error:""}),c(d.addServer.url,d.addServer.username,B,ae=>u("addServer",{status:ae})))},C=B=>{d.editServer.busy||(u("editServer",{value:B,error:""}),c(B,d.editServer.username,d.editServer.password,ae=>u("editServer",{status:ae})))},I=B=>{d.editServer.busy||u("editServer",{name:B,error:""})},$=B=>{d.editServer.busy||(u("editServer",{username:B,error:""}),c(d.editServer.value,B,d.editServer.password,ae=>u("editServer",{status:ae})))},F=B=>{d.editServer.busy||(u("editServer",{password:B,error:""}),c(d.editServer.value,d.editServer.username,B,ae=>u("editServer",{status:ae})))};async function N(B){if(d.addServer.adding)return;const ae=Fl(B);if(!ae){h();return}u("addServer",{adding:!0,error:""});const Y={type:"http",http:{url:ae}};d.addServer.name.trim()&&(Y.displayName=d.addServer.name.trim()),d.addServer.username&&(Y.http.username=d.addServer.username),d.addServer.password&&(Y.http.password=d.addServer.password);const ie=await jc(Y.http,o);if(u("addServer",{adding:!1}),!ie.healthy){u("addServer",{error:i.t("dialog.server.add.error")});return}h(),await k(Y,!0)}async function D(B,ae){if(d.editServer.busy||B.type!=="http")return;const Y=Fl(ae);if(!Y){m();return}const ie=d.editServer.name.trim()||void 0,be=d.editServer.username||void 0,ge=d.editServer.password||void 0,Re=B.displayName;if(Y===B.http.url&&ie===Re&&be===B.http.username&&ge===B.http.password){m();return}u("editServer",{busy:!0,error:""});const Oe={type:"http",displayName:ie,http:{url:Y,username:be,password:ge}},dt=await jc(Oe.http,o);if(u("editServer",{busy:!1}),!dt.healthy){u("editServer",{error:i.t("dialog.server.add.error")});return}Y===B.http.url?n.add(Oe):f(B,Oe),m()}const T=j(()=>d.editServer.id?"edit":d.addServer.showForm?"add":"list"),M=j(()=>{if(d.editServer.id)return p().find(B=>B.type==="http"&&B.http.url===d.editServer.id)}),R=()=>{h(),m()},G=()=>{m(),u("addServer",{showForm:!0,url:"",name:"",username:"",password:"",error:"",status:void 0})},K=B=>{h(),u("editServer",{id:B.http.url,value:B.http.url,name:B.displayName??"",username:B.http.username??"",password:B.http.password??"",error:"",status:d.status[Pn.key(B)]?.healthy,busy:!1})},U=()=>{if(T()==="add"){N(d.addServer.url);return}const B=M();B&&D(B,d.editServer.value)},q=j(()=>T()!=="list"),X=j(()=>T()==="add"),le=j(()=>X()?d.addServer.adding:d.editServer.busy),_e=j(()=>q()?(()=>{var B=Ofe(),ae=B.firstChild;return P(B,y(xn,{icon:"arrow-left",variant:"ghost",onClick:R,get"aria-label"(){return i.t("common.goBack")}}),ae),P(ae,(()=>{var Y=Le(()=>!!X());return()=>Y()?i.t("dialog.server.add.title"):i.t("dialog.server.edit.title")})()),B})():i.t("dialog.server.title"));se(()=>{d.editServer.id&&(M()||m())});async function ne(B){n.remove(B),await r.getDefaultServerUrl?.()===B&&r.setDefaultServerUrl?.(null)}return y(mo,{get title(){return _e()},get children(){var B=$fe(),ae=B.firstChild;return P(B,y(de,{get when(){return!q()},get fallback(){return y(Vfe,{get value(){return Le(()=>!!X())()?d.addServer.url:d.editServer.value},get name(){return Le(()=>!!X())()?d.addServer.name:d.editServer.name},get username(){return Le(()=>!!X())()?d.addServer.username:d.editServer.username},get password(){return Le(()=>!!X())()?d.addServer.password:d.editServer.password},get placeholder(){return i.t("dialog.server.add.placeholder")},get busy(){return le()},get error(){return Le(()=>!!X())()?d.addServer.error:d.editServer.error},get status(){return Le(()=>!!X())()?d.addServer.status:d.editServer.status},get onChange(){return X()?S:C},get onNameChange(){return X()?w:I},get onUsernameChange(){return X()?x:$},get onPasswordChange(){return X()?L:F},onSubmit:U,onBack:R})},get children(){return y(Jm,{get search(){return{placeholder:i.t("dialog.server.search.placeholder"),autofocus:!1}},noInitialSelection:!0,get emptyMessage(){return i.t("dialog.server.empty")},items:v,key:Y=>Y.http.url,onSelect:Y=>{Y&&k(Y)},divider:!0,class:"px-5 [&_[data-slot=list-search-wrapper]]:w-full [&_[data-slot=list-scroll]]h-[300px] [&_[data-slot=list-scroll]]:overflow-y-auto [&_[data-slot=list-items]]:bg-surface-raised-base [&_[data-slot=list-items]]:rounded-md [&_[data-slot=list-item]]:min-h-14 [&_[data-slot=list-item]]:p-3 [&_[data-slot=list-item]]:!bg-transparent",children:Y=>{const ie=Pn.key(Y);return(()=>{var be=Rfe(),ge=be.firstChild,Re=ge.nextSibling;return P(ge,y(Mfe,{get health(){return d.status[ie]}})),P(be,y(Dfe,{conn:Y,get dimmed(){return d.status[ie]?.healthy===!1},get status(){return d.status[ie]},class:"flex items-center gap-3 min-w-0 flex-1",get badge(){return y(de,{get when(){return a()===Y.http.url},get children(){var Oe=zfe();return P(Oe,()=>i.t("dialog.server.status.default")),Oe}})},showCredentials:!0}),Re),P(Re,y(de,{get when(){return Pn.key(b())===ie},get children(){return y(Dt,{name:"check",class:"h-6"})}}),null),P(Re,y(de,{get when(){return Y.type==="http"},get children(){return y(St,{get children(){return[y(St.Trigger,{as:xn,icon:"dot-grid",variant:"ghost",class:"shrink-0 size-8 hover:bg-surface-base-hover data-[expanded]:bg-surface-base-active",onClick:Oe=>Oe.stopPropagation(),onPointerDown:Oe=>Oe.stopPropagation()}),y(St.Portal,{get children(){return y(St.Content,{class:"mt-1",get children(){return[y(St.Item,{onSelect:()=>{Y.type==="http"&&K(Y)},get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.edit")}})}}),y(de,{get when(){return Le(()=>!!s())()&&a()!==Y.http.url},get children(){return y(St.Item,{onSelect:()=>l(Y.http.url),get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.default")}})}})}}),y(de,{get when(){return Le(()=>!!s())()&&a()===Y.http.url},get children(){return y(St.Item,{onSelect:()=>l(null),get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.defaultRemove")}})}})}}),y(St.Separator,{}),y(St.Item,{onSelect:()=>ne(Pn.key(Y)),class:"text-text-on-critical-base hover:bg-surface-critical-weak",get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.delete")}})}})]}})}})]}})}}),null),be})()}})}}),ae),P(ae,y(de,{get when(){return q()},get fallback(){return y(At,{variant:"secondary",icon:"plus-small",size:"large",onClick:G,class:"py-1.5 pl-1.5 pr-3 flex items-center gap-1.5",get children(){return i.t("dialog.server.add.button")}})},get children(){return y(At,{variant:"primary",size:"large",onClick:U,get disabled(){return le()},class:"px-3 py-1.5",get children(){return Le(()=>!!le())()?i.t("dialog.server.add.checking"):Le(()=>!!X())()?i.t("dialog.server.add.button"):i.t("common.save")}})}})),B}})}var Bfe=class{collection;direction;orientation;constructor(e,t,n){this.collection=e,this.direction=t,this.orientation=n}flipDirection(){return this.direction()==="rtl"&&this.orientation()==="horizontal"}getKeyLeftOf(e){if(this.flipDirection())return this.getNextKey(e);if(this.orientation()==="horizontal")return this.getPreviousKey(e)}getKeyRightOf(e){if(this.flipDirection())return this.getPreviousKey(e);if(this.orientation()==="horizontal")return this.getNextKey(e)}getKeyAbove(e){if(this.orientation()==="vertical")return this.getPreviousKey(e)}getKeyBelow(e){if(this.orientation()==="vertical")return this.getNextKey(e)}getFirstKey(){let e=this.collection().getFirstKey();return e==null?void 0:(this.collection().getItem(e)?.disabled&&(e=this.getNextKey(e)),e)}getLastKey(){let e=this.collection().getLastKey();return e==null?void 0:(this.collection().getItem(e)?.disabled&&(e=this.getPreviousKey(e)),e)}getNextKey(e){let t=e,n;do if(t=this.collection().getKeyAfter(t)??this.collection().getFirstKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}getPreviousKey(e){let t=e,n;do if(t=this.collection().getKeyBefore(t)??this.collection().getLastKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}};function Hfe(e,t){const n=new ResizeObserver(e);return he(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function Ufe(e,t,n){const r=new WeakMap,{observe:i,unobserve:o}=Hfe(a=>{for(const s of a){const{contentRect:l,target:c}=s,d=Math.round(l.width),u=Math.round(l.height),h=r.get(c);(!h||h.width!==d||h.height!==u)&&(t(l,c,s),r.set(c,{width:d,height:u}))}},n);se(a=>{const s=Kj(bv(ce(e)));return Xj(s,a,i,o),s},[])}var qfe={};Ar(qfe,{Content:()=>wP,Indicator:()=>kP,List:()=>xP,Root:()=>SP,Tabs:()=>bu,Trigger:()=>_P,useTabsContext:()=>vu});var yP=Ct();function vu(){const e=yt(yP);if(e===void 0)throw new Error("[kobalte]: `useTabsContext` must be used within a `Tabs` component");return e}function wP(e){const[t,n]=me(),r=vu(),[i,o]=ue(e,["ref","id","value","forceMount"]),[a,s]=me(0),l=()=>i.id??r.generateContentId(i.value),c=()=>r.listState().selectedKey()===i.value,{present:d}=Uo({show:()=>i.forceMount||c(),element:()=>t()??null});return se(Ht([()=>t(),()=>d()],([u,h])=>{if(u==null||!h)return;const m=()=>{const p=r9(u,{tabbable:!0});s(p.nextNode()?void 0:0)};m();const f=new MutationObserver(m);f.observe(u,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabindex","disabled"]}),he(()=>{f.disconnect()})})),se(Ht([()=>i.value,l],([u,h])=>{r.contentIdsMap().set(u,h)})),y(de,{get when(){return d()},get children(){return y(We,ee({as:"div",ref(u){var h=kt(n,i.ref);typeof h=="function"&&h(u)},get id(){return l()},role:"tabpanel",get tabIndex(){return a()},get"aria-labelledby"(){return r.triggerIdsMap().get(i.value)},get"data-orientation"(){return r.orientation()},get"data-selected"(){return c()?"":void 0}},o))}})}function kP(e){const t=vu(),[n,r]=ue(e,["style"]),[i,o]=me({width:void 0,height:void 0}),{direction:a}=Zi(),s=()=>{const h=t.selectedTab();if(h==null)return;const m={transform:void 0,width:void 0,height:void 0},f=a()==="rtl"?-1*(h.offsetParent?.offsetWidth-h.offsetWidth-h.offsetLeft):h.offsetLeft;m.transform=t.orientation()==="vertical"?`translateY(${h.offsetTop}px)`:`translateX(${f}px)`,t.orientation()==="horizontal"?m.width=`${h.offsetWidth}px`:m.height=`${h.offsetHeight}px`,o(m)};Wt(()=>{queueMicrotask(()=>{s()})}),se(Ht([t.selectedTab,t.orientation,a],()=>{s()},{defer:!0}));const[l,c]=me(!1);let d=null,u=null;return Ufe(t.selectedTab,(h,m)=>{if(u!==m){u=m;return}c(!0),d&&clearTimeout(d),d=setTimeout(()=>{d=null,c(!1)},1),s()}),y(We,ee({as:"div",role:"presentation",get style(){return Pr(i(),n.style)},get"data-orientation"(){return t.orientation()},get"data-resizing"(){return l()}},r))}function xP(e){let t;const n=vu(),[r,i]=ue(e,["ref","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),{direction:o}=Zi(),a=new Bfe(()=>n.listState().collection(),o,n.orientation),s=PM({selectionManager:()=>n.listState().selectionManager(),keyboardDelegate:()=>a,selectOnFocus:()=>n.activationMode()==="automatic",shouldFocusWrap:!1,disallowEmptySelection:!0},()=>t);return se(()=>{if(t==null)return;const l=t.querySelector(`[data-key="${n.listState().selectedKey()}"]`);l!=null&&n.setSelectedTab(l)}),y(We,ee({as:"div",ref(l){var c=kt(d=>t=d,r.ref);typeof c=="function"&&c(l)},role:"tablist",get"aria-orientation"(){return n.orientation()},get"data-orientation"(){return n.orientation()},get onKeyDown(){return gt([r.onKeyDown,s.onKeyDown])},get onMouseDown(){return gt([r.onMouseDown,s.onMouseDown])},get onFocusIn(){return gt([r.onFocusIn,s.onFocusIn])},get onFocusOut(){return gt([r.onFocusOut,s.onFocusOut])}},i))}function Zfe(e){const[t,n]=Gl({value:()=>ce(e.selectedKey),defaultValue:()=>ce(e.defaultSelectedKey),onChange:c=>e.onSelectionChange?.(c)}),r=j(()=>{const c=t();return c!=null?[c]:[]}),[,i]=ue(e,["onSelectionChange"]),o=ee(i,{selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:c=>{const d=c.values().next().value;d===t()&&e.onSelectionChange?.(d),n(d)}}),{collection:a,selectionManager:s}=Dm(o),l=j(()=>{const c=t();return c!=null?a().getItem(c):void 0});return{collection:a,selectionManager:s,selectedKey:t,setSelectedKey:n,selectedItem:l}}function SP(e){const t=`tabs-${cn()}`,n=Be({id:t,orientation:"horizontal",activationMode:"automatic"},e),[r,i]=ue(n,["value","defaultValue","onChange","orientation","activationMode","disabled"]),[o,a]=me([]),[s,l]=me(),{DomCollectionProvider:c}=VM({items:o,onItemsChange:a}),d=Zfe({selectedKey:()=>r.value,defaultSelectedKey:()=>r.defaultValue,onSelectionChange:p=>r.onChange?.(String(p)),dataSource:o});let u=d.selectedKey();se(Ht([()=>d.selectionManager(),()=>d.collection(),()=>d.selectedKey()],([p,b,v])=>{let g=v;if(p.isEmpty()||g==null||!b.getItem(g)){g=b.getFirstKey();let k=g!=null?b.getItem(g):void 0;for(;k?.disabled&&k.key!==b.getLastKey();)g=b.getKeyAfter(k.key),k=g!=null?b.getItem(g):void 0;k?.disabled&&g===b.getLastKey()&&(g=b.getFirstKey()),g!=null&&p.setSelectedKeys([g])}(p.focusedKey()==null||!p.isFocused()&&g!==u)&&p.setFocusedKey(g),u=g}));const h=new Map,m=new Map,f={isDisabled:()=>r.disabled??!1,orientation:()=>r.orientation,activationMode:()=>r.activationMode,triggerIdsMap:()=>h,contentIdsMap:()=>m,listState:()=>d,selectedTab:s,setSelectedTab:l,generateTriggerId:p=>`${i.id}-trigger-${p}`,generateContentId:p=>`${i.id}-content-${p}`};return y(c,{get children(){return y(yP.Provider,{value:f,get children(){return y(We,ee({as:"div",get"data-orientation"(){return f.orientation()}},i))}})}})}function _P(e){let t;const n=vu(),r=Be({type:"button"},e),[i,o]=ue(r,["ref","id","value","disabled","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),a=()=>i.id??n.generateTriggerId(i.value),s=()=>n.listState().selectionManager().focusedKey()===i.value,l=()=>i.disabled||n.isDisabled(),c=()=>n.contentIdsMap().get(i.value);jM({getItem:()=>({ref:()=>t,type:"item",key:i.value,textValue:"",disabled:l()})});const d=Lm({key:()=>i.value,selectionManager:()=>n.listState().selectionManager(),disabled:l},()=>t),u=h=>{Y8()&&pn(h.currentTarget)};return se(Ht([()=>i.value,a],([h,m])=>{n.triggerIdsMap().set(h,m)})),y(We,ee({as:"button",ref(h){var m=kt(f=>t=f,i.ref);typeof m=="function"&&m(h)},get id(){return a()},role:"tab",get tabIndex(){return Le(()=>!l())()?d.tabIndex():void 0},get disabled(){return l()},get"aria-selected"(){return d.isSelected()},get"aria-disabled"(){return l()||void 0},get"aria-controls"(){return Le(()=>!!d.isSelected())()?c():void 0},get"data-key"(){return d.dataKey()},get"data-orientation"(){return n.orientation()},get"data-selected"(){return d.isSelected()?"":void 0},get"data-highlighted"(){return s()?"":void 0},get"data-disabled"(){return l()?"":void 0},get onPointerDown(){return gt([i.onPointerDown,d.onPointerDown])},get onPointerUp(){return gt([i.onPointerUp,d.onPointerUp])},get onClick(){return gt([i.onClick,d.onClick,u])},get onKeyDown(){return gt([i.onKeyDown,d.onKeyDown])},get onMouseDown(){return gt([i.onMouseDown,d.onMouseDown])},get onFocus(){return gt([i.onFocus,d.onFocus])}},o))}var bu=Object.assign(SP,{Content:wP,Indicator:kP,List:xP,Trigger:_P}),Wfe=Q("<div data-slot=tabs-trigger-wrapper>"),Gfe=Q("<div data-slot=tabs-trigger-close-button>"),Kfe=Q("<div data-slot=tabs-section-title>");function Jfe(e){const[t,n]=ue(e,["class","classList","variant","orientation"]);return y(bu,ee(n,{get orientation(){return t.orientation},"data-component":"tabs",get"data-variant"(){return t.variant||"normal"},get"data-orientation"(){return t.orientation||"horizontal"},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function Qfe(e){const[t,n]=ue(e,["class","classList"]);return y(bu.List,ee(n,{"data-slot":"tabs-list",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function Xfe(e){const[t,n]=ue(e,["class","classList","classes","children","closeButton","hideCloseButton","onMiddleClick"]);return(()=>{var r=Wfe();return r.addEventListener("auxclick",i=>{i.button===1&&t.onMiddleClick&&(i.preventDefault(),t.onMiddleClick())}),r.$$mousedown=i=>{i.button===1&&t.onMiddleClick&&i.preventDefault()},P(r,y(bu.Trigger,ee(n,{"data-slot":"tabs-trigger",get"data-value"(){return e.value},get classList(){return{[t.classes?.button??""]:t.classes?.button}},get children(){return t.children}})),null),P(r,y(de,{get when(){return t.closeButton},children:i=>(()=>{var o=Gfe();return P(o,i),Ne(()=>et(o,"data-hidden",t.hideCloseButton)),o})()}),null),Ne(i=>{var o=e.value,a={...t.classList??{},[t.class??""]:!!t.class};return o!==i.e&&et(r,"data-value",i.e=o),i.t=ln(r,a,i.t),i},{e:void 0,t:void 0}),r})()}function Yfe(e){const[t,n]=ue(e,["class","classList","children"]);return y(bu.Content,ee(n,{"data-slot":"tabs-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}const ehe=e=>(()=>{var t=Kfe();return P(t,()=>e.children),t})(),ni=Object.assign(Jfe,{List:Qfe,Trigger:Xfe,Content:Yfe,SectionTitle:ehe});rr(["mousedown"]);var the=Q("<option>"),nhe=Q("<div aria-hidden=true><input type=text style=font-size:16px><select tabindex=-1><option>");function rhe(e){let t;const[n,r]=ue(e,["ref","onChange","collection","selectionManager","isOpen","isMultiple","isVirtualized","focusTrigger"]),i=Gi(),[o,a]=me(!1),s=l=>{const c=n.collection.getItem(l);return y(de,{get when(){return c?.type==="item"},get children(){var d=the();return d.value=l,P(d,()=>c?.textValue),Ne(()=>d.selected=n.selectionManager.isSelected(l)),d}})};return se(Ht(()=>n.selectionManager.selectedKeys(),(l,c)=>{c&&DM(l,c)||(a(!0),t?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})))},{defer:!0})),(()=>{var l=nhe(),c=l.firstChild,d=c.nextSibling;d.firstChild,c.addEventListener("focus",()=>n.focusTrigger()),d.addEventListener("change",h=>{Ve(h,n.onChange),o()||n.selectionManager.setSelectedKeys(new Set([h.target.value])),a(!1)});var u=kt(h=>t=h,n.ref);return typeof u=="function"&&or(u,d),nr(d,ee({get multiple(){return n.isMultiple},get name(){return i.name()},get required(){return i.isRequired()},get disabled(){return i.isDisabled()},get size(){return n.collection.getSize()},get value(){return n.selectionManager.firstSelectedKey()??""}},r),!1,!0),P(d,y(de,{get when(){return n.isVirtualized},get fallback(){return y(on,{get each(){return[...n.collection.getKeys()]},children:s})},get children(){return y(on,{get each(){return[...n.selectionManager.selectedKeys()]},children:s})}}),null),Ne(h=>{var m=sb,f=n.selectionManager.isFocused()||n.isOpen?-1:0,p=i.isRequired(),b=i.isDisabled(),v=i.isReadOnly();return h.e=Jh(l,m,h.e),f!==h.t&&et(c,"tabindex",h.t=f),p!==h.a&&(c.required=h.a=p),b!==h.o&&(c.disabled=h.o=b),v!==h.i&&(c.readOnly=h.i=v),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),l})()}var Xx=new WeakMap;function ihe(e){let t=Xx.get(e);if(t!=null)return t;t=0;for(const n of e)n.type==="item"&&t++;return Xx.set(e,t),t}var ohe={};Ar(ohe,{Item:()=>Qm,ItemDescription:()=>Xm,ItemIndicator:()=>Ym,ItemLabel:()=>ep,Listbox:()=>ahe,Root:()=>O4,Section:()=>tp,useListboxContext:()=>CP});var AP=Ct();function CP(){const e=yt(AP);if(e===void 0)throw new Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");return e}var EP=Ct();function P4(){const e=yt(EP);if(e===void 0)throw new Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");return e}function Qm(e){let t;const n=CP(),r=`${n.generateId("item")}-${cn()}`,i=Be({id:r},e),[o,a]=ue(i,["ref","item","aria-label","aria-labelledby","aria-describedby","onPointerMove","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,l]=me(),[c,d]=me(),u=()=>n.listState().selectionManager(),h=()=>u().focusedKey()===o.item.key,m=Lm({key:()=>o.item.key,selectionManager:u,shouldSelectOnPressUp:n.shouldSelectOnPressUp,allowsDifferentPressOrigin:()=>n.shouldSelectOnPressUp()&&n.shouldFocusOnHover(),shouldUseVirtualFocus:n.shouldUseVirtualFocus,disabled:()=>o.item.disabled},()=>t),f=()=>{if(u().selectionMode()!=="none")return m.isSelected()},p=j(()=>!(Ed()&&Y8())),b=()=>p()?o["aria-label"]:void 0,v=()=>p()?s():void 0,g=()=>p()?c():void 0,k=()=>{if(!n.isVirtualized())return;const C=n.listState().collection().getItem(o.item.key)?.index;return C!=null?C+1:void 0},S=()=>{if(n.isVirtualized())return ihe(n.listState().collection())},w=C=>{Ve(C,o.onPointerMove),C.pointerType==="mouse"&&!m.isDisabled()&&n.shouldFocusOnHover()&&(pn(C.currentTarget),u().setFocused(!0),u().setFocusedKey(o.item.key))},x=j(()=>({"data-disabled":m.isDisabled()?"":void 0,"data-selected":m.isSelected()?"":void 0,"data-highlighted":h()?"":void 0})),L={isSelected:m.isSelected,dataset:x,generateId:Or(()=>a.id),registerLabelId:In(l),registerDescriptionId:In(d)};return y(EP.Provider,{value:L,get children(){return y(We,ee({as:"li",ref(C){var I=kt($=>t=$,o.ref);typeof I=="function"&&I(C)},role:"option",get tabIndex(){return m.tabIndex()},get"aria-disabled"(){return m.isDisabled()},get"aria-selected"(){return f()},get"aria-label"(){return b()},get"aria-labelledby"(){return v()},get"aria-describedby"(){return g()},get"aria-posinset"(){return k()},get"aria-setsize"(){return S()},get"data-key"(){return m.dataKey()},get onPointerDown(){return gt([o.onPointerDown,m.onPointerDown])},get onPointerUp(){return gt([o.onPointerUp,m.onPointerUp])},get onClick(){return gt([o.onClick,m.onClick])},get onKeyDown(){return gt([o.onKeyDown,m.onKeyDown])},get onMouseDown(){return gt([o.onMouseDown,m.onMouseDown])},get onFocus(){return gt([o.onFocus,m.onFocus])},onPointerMove:w},x,a))}})}function Xm(e){const t=P4(),n=Be({id:t.generateId("description")},e);return se(()=>he(t.registerDescriptionId(n.id))),y(We,ee({as:"div"},()=>t.dataset(),n))}function Ym(e){const t=P4(),n=Be({id:t.generateId("indicator")},e),[r,i]=ue(n,["forceMount"]);return y(de,{get when(){return r.forceMount||t.isSelected()},get children(){return y(We,ee({as:"div","aria-hidden":"true"},()=>t.dataset(),i))}})}function ep(e){const t=P4(),n=Be({id:t.generateId("label")},e);return se(()=>he(t.registerLabelId(n.id))),y(We,ee({as:"div"},()=>t.dataset(),n))}function O4(e){let t;const n=`listbox-${cn()}`,r=Be({id:n,selectionMode:"single",virtualized:!1},e),[i,o]=ue(r,["ref","children","renderItem","renderSection","value","defaultValue","onChange","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","state","keyboardDelegate","autoFocus","selectionMode","shouldFocusWrap","shouldUseVirtualFocus","shouldSelectOnPressUp","shouldFocusOnHover","allowDuplicateSelectionEvents","disallowEmptySelection","selectionBehavior","selectOnFocus","disallowTypeAhead","allowsTabNavigation","virtualized","scrollToItem","scrollRef","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),a=j(()=>i.state?i.state:Dm({selectedKeys:()=>i.value,defaultSelectedKeys:()=>i.defaultValue,onSelectionChange:i.onChange,allowDuplicateSelectionEvents:()=>ce(i.allowDuplicateSelectionEvents),disallowEmptySelection:()=>ce(i.disallowEmptySelection),selectionBehavior:()=>ce(i.selectionBehavior),selectionMode:()=>ce(i.selectionMode),dataSource:()=>i.options??[],getKey:()=>i.optionValue,getTextValue:()=>i.optionTextValue,getDisabled:()=>i.optionDisabled,getSectionChildren:()=>i.optionGroupChildren})),s=$M({selectionManager:()=>a().selectionManager(),collection:()=>a().collection(),autoFocus:()=>ce(i.autoFocus),shouldFocusWrap:()=>ce(i.shouldFocusWrap),keyboardDelegate:()=>i.keyboardDelegate,disallowEmptySelection:()=>ce(i.disallowEmptySelection),selectOnFocus:()=>ce(i.selectOnFocus),disallowTypeAhead:()=>ce(i.disallowTypeAhead),shouldUseVirtualFocus:()=>ce(i.shouldUseVirtualFocus),allowsTabNavigation:()=>ce(i.allowsTabNavigation),isVirtualized:()=>i.virtualized,scrollToKey:()=>i.scrollToItem},()=>t,()=>i.scrollRef?.()),l={listState:a,generateId:Or(()=>o.id),shouldUseVirtualFocus:()=>r.shouldUseVirtualFocus,shouldSelectOnPressUp:()=>r.shouldSelectOnPressUp,shouldFocusOnHover:()=>r.shouldFocusOnHover,isVirtualized:()=>i.virtualized};return y(AP.Provider,{value:l,get children(){return y(We,ee({as:"ul",ref(c){var d=kt(u=>t=u,i.ref);typeof d=="function"&&d(c)},role:"listbox",get tabIndex(){return s.tabIndex()},get"aria-multiselectable"(){return a().selectionManager().selectionMode()==="multiple"?!0:void 0},get onKeyDown(){return gt([i.onKeyDown,s.onKeyDown])},get onMouseDown(){return gt([i.onMouseDown,s.onMouseDown])},get onFocusIn(){return gt([i.onFocusIn,s.onFocusIn])},get onFocusOut(){return gt([i.onFocusOut,s.onFocusOut])}},o,{get children(){return y(de,{get when(){return!i.virtualized},get fallback(){return i.children?.(a().collection)},get children(){return y(mH,{get each(){return[...a().collection()]},by:"key",children:c=>y(Ur,{get children(){return[y(Ot,{get when(){return c().type==="section"},get children(){return i.renderSection?.(c())}}),y(Ot,{get when(){return c().type==="item"},get children(){return i.renderItem?.(c())}})]}})})}})}}))}})}function tp(e){return y(We,ee({as:"li",role:"presentation"},e))}var ahe=Object.assign(O4,{Item:Qm,ItemDescription:Xm,ItemIndicator:Ym,ItemLabel:ep,Section:tp}),she={};Ar(she,{Arrow:()=>Wi,Content:()=>TP,Description:()=>pu,ErrorMessage:()=>gu,HiddenSelect:()=>LP,Icon:()=>DP,Item:()=>Qm,ItemDescription:()=>Xm,ItemIndicator:()=>Ym,ItemLabel:()=>ep,Label:()=>MP,Listbox:()=>PP,Portal:()=>OP,Root:()=>$P,Section:()=>tp,Select:()=>ii,Trigger:()=>RP,Value:()=>zP,useSelectContext:()=>ea});var IP=Ct();function ea(){const e=yt(IP);if(e===void 0)throw new Error("[kobalte]: `useSelectContext` must be used within a `Select` component");return e}function TP(e){let t;const n=ea(),[r,i]=ue(e,["ref","style","onCloseAutoFocus","onFocusOutside"]),o=s=>{n.close()},a=s=>{r.onFocusOutside?.(s),n.isOpen()&&n.isModal()&&s.preventDefault()};return db({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),fb({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),cb({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:s=>{s.preventDefault()},onUnmountAutoFocus:s=>{r.onCloseAutoFocus?.(s),s.defaultPrevented||(pn(n.triggerRef()),s.preventDefault())}},()=>t),y(de,{get when(){return n.contentPresent()},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({ref(s){var l=kt(c=>{n.setContentRef(c),t=c},r.ref);typeof l=="function"&&l(s)},get disableOutsidePointerEvents(){return Le(()=>!!n.isModal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get style(){return Pr({"--kb-select-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},r.style)},onEscapeKeyDown:o,onFocusOutside:a,get onDismiss(){return n.close}},()=>n.dataset(),i))}})}})}function LP(e){const t=ea();return y(rhe,ee({get collection(){return t.listState().collection()},get selectionManager(){return t.listState().selectionManager()},get isOpen(){return t.isOpen()},get isMultiple(){return t.isMultiple()},get isVirtualized(){return t.isVirtualized()},focusTrigger:()=>t.triggerRef()?.focus()},e))}function DP(e){const t=ea(),n=Be({children:"▼"},e);return y(We,ee({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function MP(e){const t=ea(),[n,r]=ue(e,["onClick"]);return y(Km,ee({as:"span",onClick:o=>{Ve(o,n.onClick),t.isDisabled()||t.triggerRef()?.focus()}},r))}function PP(e){const t=ea(),n=Be({id:t.generateId("listbox")},e),[r,i]=ue(n,["ref","id","onKeyDown"]);return se(()=>he(t.registerListboxId(r.id))),y(O4,ee({ref(a){var s=kt(t.setListboxRef,r.ref);typeof s=="function"&&s(a)},get id(){return r.id},get state(){return t.listState()},get virtualized(){return t.isVirtualized()},get autoFocus(){return t.autoFocus()},shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,get shouldFocusWrap(){return t.shouldFocusWrap()},get disallowTypeAhead(){return t.disallowTypeAhead()},get"aria-labelledby"(){return t.listboxAriaLabelledBy()},get renderItem(){return t.renderItem},get renderSection(){return t.renderSection},onKeyDown:a=>{Ve(a,r.onKeyDown),a.key==="Escape"&&a.preventDefault()}},i))}function OP(e){const t=ea();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}function lhe(e){const t=`select-${cn()}`,n=Be({id:t,selectionMode:"single",disallowEmptySelection:!1,closeOnSelection:e.selectionMode==="single",allowDuplicateSelectionEvents:!0,gutter:8,sameWidth:!0,modal:!1},e),[r,i,o,a]=ue(n,["itemComponent","sectionComponent","open","defaultOpen","onOpenChange","value","defaultValue","onChange","placeholder","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","keyboardDelegate","allowDuplicateSelectionEvents","disallowEmptySelection","closeOnSelection","disallowTypeAhead","shouldFocusWrap","selectionBehavior","selectionMode","virtualized","modal","preventScroll","forceMount"],["getAnchorRect","placement","gutter","shift","flip","slide","overlap","sameWidth","fitViewport","hideWhenDetached","detachedPadding","arrowPadding","overflowPadding"],E4),[s,l]=me(),[c,d]=me(),[u,h]=me(),[m,f]=me(),[p,b]=me(),[v,g]=me(),[k,S]=me(),[w,x]=me(!0),L=Y=>{const ie=r.optionValue;return ie==null?String(Y):String(Cd(ie)?ie(Y):Y[ie])},C=j(()=>{const Y=r.optionGroupChildren;return Y==null?r.options:r.options.flatMap(ie=>ie[Y]??ie)}),I=j(()=>C().map(Y=>L(Y))),$=Y=>[...Y].map(ie=>C().find(be=>L(be)===ie)).filter(ie=>ie!=null),F=Ma({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:Y=>r.onOpenChange?.(Y)}),N=Dm({selectedKeys:()=>r.value!=null?r.value.map(L):r.value,defaultSelectedKeys:()=>r.defaultValue!=null?r.defaultValue.map(L):r.defaultValue,onSelectionChange:Y=>{r.onChange?.($(Y)),r.closeOnSelection&&K()},allowDuplicateSelectionEvents:()=>ce(r.allowDuplicateSelectionEvents),disallowEmptySelection:()=>ce(r.disallowEmptySelection),selectionBehavior:()=>ce(r.selectionBehavior),selectionMode:()=>r.selectionMode,dataSource:()=>r.options??[],getKey:()=>r.optionValue,getTextValue:()=>r.optionTextValue,getDisabled:()=>r.optionDisabled,getSectionChildren:()=>r.optionGroupChildren}),D=j(()=>$(N.selectionManager().selectedKeys())),T=Y=>{N.selectionManager().toggleSelection(L(Y))},{present:M}=Uo({show:()=>r.forceMount||F.isOpen(),element:()=>p()??null}),R=()=>{const Y=v();Y&&pn(Y)},G=Y=>{if(r.options.length<=0)return;x(Y),F.open();let ie=N.selectionManager().firstSelectedKey();ie==null&&(Y==="first"?ie=N.collection().getFirstKey():Y==="last"&&(ie=N.collection().getLastKey())),R(),N.selectionManager().setFocused(!0),N.selectionManager().setFocusedKey(ie)},K=()=>{F.close(),N.selectionManager().setFocused(!1),N.selectionManager().setFocusedKey(void 0)},U=Y=>{F.isOpen()?K():G(Y)},{formControlContext:q}=I4(o);D4(m,()=>{const Y=r.defaultValue?[...r.defaultValue].map(L):new ro;N.selectionManager().setSelectedKeys(Y)});const X=uM({usage:"search",sensitivity:"base"}),le=j(()=>{const Y=ce(r.keyboardDelegate);return Y||new OM(N.collection,void 0,X)}),_e=Y=>r.itemComponent?.({item:Y}),ne=Y=>r.sectionComponent?.({section:Y});se(Ht([I],([Y])=>{const be=[...N.selectionManager().selectedKeys()].filter(ge=>Y.includes(ge));N.selectionManager().setSelectedKeys(be)},{defer:!0}));const B=j(()=>({"data-expanded":F.isOpen()?"":void 0,"data-closed":F.isOpen()?void 0:""})),ae={dataset:B,isOpen:F.isOpen,isDisabled:()=>q.isDisabled()??!1,isMultiple:()=>ce(r.selectionMode)==="multiple",isVirtualized:()=>r.virtualized??!1,isModal:()=>r.modal??!1,preventScroll:()=>r.preventScroll??ae.isModal(),disallowTypeAhead:()=>r.disallowTypeAhead??!1,shouldFocusWrap:()=>r.shouldFocusWrap??!1,selectedOptions:D,contentPresent:M,autoFocus:w,triggerRef:m,listState:()=>N,keyboardDelegate:le,triggerId:s,valueId:c,listboxId:u,listboxAriaLabelledBy:k,setListboxAriaLabelledBy:S,setTriggerRef:f,setContentRef:b,setListboxRef:g,open:G,close:K,toggle:U,placeholder:()=>r.placeholder,renderItem:_e,renderSection:ne,removeOptionFromSelection:T,generateId:Or(()=>ce(o.id)),registerTriggerId:In(l),registerValueId:In(d),registerListboxId:In(h)};return y(Gm.Provider,{value:q,get children(){return y(IP.Provider,{value:ae,get children(){return y(Fa,ee({anchorRef:m,contentRef:p},i,{get children(){return y(We,ee({as:"div",role:"group",get id(){return ce(o.id)}},()=>q.dataset(),B,a))}}))}})}})}function $P(e){const[t,n]=ue(e,["value","defaultValue","onChange","multiple"]),r=j(()=>t.value!=null?t.multiple?t.value:[t.value]:t.value),i=j(()=>t.defaultValue!=null?t.multiple?t.defaultValue:[t.defaultValue]:t.defaultValue);return y(lhe,ee({get value(){return r()},get defaultValue(){return i()},onChange:a=>{t.multiple?t.onChange?.(a??[]):t.onChange?.(a[0]??null)},get selectionMode(){return t.multiple?"multiple":"single"}},n))}function RP(e){const t=Gi(),n=ea(),r=Be({id:n.generateId("trigger")},e),[i,o,a]=ue(r,["ref","disabled","onPointerDown","onClick","onKeyDown","onFocus","onBlur"],T4),s=()=>n.listState().selectionManager(),l=()=>n.keyboardDelegate(),c=()=>i.disabled||n.isDisabled(),{fieldProps:d}=L4(o),{typeSelectHandlers:u}=MM({keyboardDelegate:l,selectionManager:s,onTypeSelect:g=>s().select(g)}),h=()=>[n.listboxAriaLabelledBy(),n.valueId()].filter(Boolean).join(" ")||void 0,m=g=>{Ve(g,i.onPointerDown),g.currentTarget.dataset.pointerType=g.pointerType,!c()&&g.pointerType!=="touch"&&g.button===0&&(g.preventDefault(),n.toggle(!0))},f=g=>{Ve(g,i.onClick),!c()&&g.currentTarget.dataset.pointerType==="touch"&&n.toggle(!0)},p=g=>{if(Ve(g,i.onKeyDown),!c())switch(Ve(g,u.onKeyDown),g.key){case"Enter":case" ":case"ArrowDown":g.stopPropagation(),g.preventDefault(),n.toggle("first");break;case"ArrowUp":g.stopPropagation(),g.preventDefault(),n.toggle("last");break;case"ArrowLeft":{if(g.preventDefault(),n.isMultiple())return;const k=s().firstSelectedKey(),S=k!=null?l().getKeyAbove?.(k):l().getFirstKey?.();S!=null&&s().select(S);break}case"ArrowRight":{if(g.preventDefault(),n.isMultiple())return;const k=s().firstSelectedKey(),S=k!=null?l().getKeyBelow?.(k):l().getFirstKey?.();S!=null&&s().select(S);break}}},b=g=>{Ve(g,i.onFocus),!s().isFocused()&&s().setFocused(!0)},v=g=>{Ve(g,i.onBlur),!n.isOpen()&&s().setFocused(!1)};return se(()=>he(n.registerTriggerId(d.id()))),se(()=>{n.setListboxAriaLabelledBy([d.ariaLabelledBy(),d.ariaLabel()&&!d.ariaLabelledBy()?d.id():null].filter(Boolean).join(" ")||void 0)}),y(Pa,ee({ref(g){var k=kt(n.setTriggerRef,i.ref);typeof k=="function"&&k(g)},get id(){return d.id()},get disabled(){return c()},"aria-haspopup":"listbox",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Le(()=>!!n.isOpen())()?n.listboxId():void 0},get"aria-label"(){return d.ariaLabel()},get"aria-labelledby"(){return h()},get"aria-describedby"(){return d.ariaDescribedBy()},onPointerDown:m,onClick:f,onKeyDown:p,onFocus:b,onBlur:v},()=>n.dataset(),()=>t.dataset(),a))}function zP(e){const t=Gi(),n=ea(),r=Be({id:n.generateId("value")},e),[i,o]=ue(r,["id","children"]),a=()=>n.listState().selectionManager(),s=()=>{const l=a().selectedKeys();return l.size===1&&l.has("")?!0:a().isEmpty()};return se(()=>he(n.registerValueId(i.id))),y(We,ee({as:"span",get id(){return i.id},get"data-placeholder-shown"(){return s()?"":void 0}},()=>t.dataset(),o,{get children(){return y(de,{get when(){return!s()},get fallback(){return n.placeholder()},get children(){return y(che,{state:{selectedOption:()=>n.selectedOptions()[0],selectedOptions:()=>n.selectedOptions(),remove:l=>n.removeOptionFromSelection(l),clear:()=>a().clearSelection()},get children(){return i.children}})}})}}))}function che(e){const t=_s(()=>{const n=e.children;return Cd(n)?n(e.state):n});return Le(t)}var ii=Object.assign($P,{Arrow:Wi,Content:TP,Description:pu,ErrorMessage:gu,HiddenSelect:LP,Icon:DP,Item:Qm,ItemDescription:Xm,ItemIndicator:Ym,ItemLabel:ep,Label:MP,Listbox:PP,Portal:OP,Section:tp,Trigger:RP,Value:zP});function Ga(e){const[t,n]=ue(e,["class","classList","placeholder","options","current","value","label","groupBy","valueClass","onSelect","onHighlight","onOpenChange","children","triggerStyle","triggerVariant"]),r={key:void 0,cleanup:void 0},i=()=>{r.cleanup?.(),r.cleanup=void 0,r.key=void 0},o=l=>t.value?t.value(l):l,a=l=>{if(!t.onHighlight)return;if(!l){i();return}const c=o(l);r.key!==c&&(r.cleanup?.(),r.cleanup=t.onHighlight(l),r.key=c)};he(i);const s=j(()=>ks(t.options,Vh(c=>t.groupBy?t.groupBy(c):""),oM(),aM(([c,d])=>({category:c,options:d}))));return y(ii,ee(n,{"data-component":"select",get"data-trigger-style"(){return t.triggerVariant},get placement(){return t.triggerVariant==="settings"?"bottom-end":"bottom-start"},gutter:4,get value(){return t.current},get options(){return s()},optionValue:l=>t.value?t.value(l):l,optionTextValue:l=>t.label?t.label(l):l,optionGroupChildren:"options",get placeholder(){return t.placeholder},sectionComponent:l=>y(ii.Section,{"data-slot":"select-section",get children(){return l.section.rawValue.category}}),itemComponent:l=>y(ii.Item,ee(l,{"data-slot":"select-select-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},onPointerEnter:()=>a(l.item.rawValue),onPointerMove:()=>a(l.item.rawValue),onFocus:()=>a(l.item.rawValue),get children(){return[y(ii.ItemLabel,{"data-slot":"select-select-item-label",get children(){return Le(()=>!!t.children)()?t.children(l.item.rawValue):Le(()=>!!t.label)()?t.label(l.item.rawValue):l.item.rawValue}}),y(ii.ItemIndicator,{"data-slot":"select-select-item-indicator",get children(){return y(Dt,{name:"check-small",size:"small"})}})]}})),onChange:l=>{t.onSelect?.(l??void 0),i()},onOpenChange:l=>{t.onOpenChange?.(l),l||i()},get children(){return[y(ii.Trigger,{get disabled(){return e.disabled},"data-slot":"select-select-trigger",as:At,get size(){return e.size},get variant(){return e.variant},get style(){return t.triggerStyle},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return[y(ii.Value,{"data-slot":"select-select-trigger-value",get class(){return t.valueClass},children:l=>{const c=l.selectedOption()??t.current;return c?t.label?t.label(c):c:t.placeholder||""}}),y(ii.Icon,{"data-slot":"select-select-trigger-icon",get children(){return y(Dt,{get name(){return t.triggerVariant==="settings"?"selector":"chevron-down"},size:"small"})}})]}}),y(ii.Portal,{get children(){return y(ii.Content,{get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},"data-component":"select-content",get"data-trigger-style"(){return t.triggerVariant},get children(){return y(ii.Listbox,{"data-slot":"select-select-content-list"})}})}})]}}))}var dhe={};Ar(dhe,{Control:()=>FP,Description:()=>VP,ErrorMessage:()=>jP,Input:()=>BP,Label:()=>HP,Root:()=>UP,Switch:()=>ca,Thumb:()=>qP,useSwitchContext:()=>Rs});var NP=Ct();function Rs(){const e=yt(NP);if(e===void 0)throw new Error("[kobalte]: `useSwitchContext` must be used within a `Switch` component");return e}function FP(e){const t=Gi(),n=Rs(),r=Be({id:n.generateId("control")},e),[i,o]=ue(r,["onClick","onKeyDown"]);return y(We,ee({as:"div",onClick:l=>{Ve(l,i.onClick),n.toggle(),n.inputRef()?.focus()},onKeyDown:l=>{Ve(l,i.onKeyDown),l.key===nb.Space&&(n.toggle(),n.inputRef()?.focus())}},()=>t.dataset(),()=>n.dataset(),o))}function VP(e){const t=Rs();return y(pu,ee(()=>t.dataset(),e))}function jP(e){const t=Rs();return y(gu,ee(()=>t.dataset(),e))}function BP(e){const t=Gi(),n=Rs(),r=Be({id:n.generateId("input")},e),[i,o,a]=ue(r,["ref","style","onChange","onFocus","onBlur"],T4),{fieldProps:s}=L4(o);return y(We,ee({as:"input",ref(u){var h=kt(n.setInputRef,i.ref);typeof h=="function"&&h(u)},type:"checkbox",role:"switch",get id(){return s.id()},get name(){return t.name()},get value(){return n.value()},get checked(){return n.checked()},get required(){return t.isRequired()},get disabled(){return t.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return Pr({...sb},i.style)},get"aria-checked"(){return n.checked()},get"aria-label"(){return s.ariaLabel()},get"aria-labelledby"(){return s.ariaLabelledBy()},get"aria-describedby"(){return s.ariaDescribedBy()},get"aria-invalid"(){return t.validationState()==="invalid"||void 0},get"aria-required"(){return t.isRequired()||void 0},get"aria-disabled"(){return t.isDisabled()||void 0},get"aria-readonly"(){return t.isReadOnly()||void 0},onChange:u=>{Ve(u,i.onChange),u.stopPropagation();const h=u.target;n.setIsChecked(h.checked),h.checked=n.checked()},onFocus:u=>{Ve(u,i.onFocus),n.setIsFocused(!0)},onBlur:u=>{Ve(u,i.onBlur),n.setIsFocused(!1)}},()=>t.dataset(),()=>n.dataset(),a))}function HP(e){const t=Rs();return y(Km,ee(()=>t.dataset(),e))}function UP(e){let t;const n=`switch-${cn()}`,r=Be({value:"on",id:n},e),[i,o,a]=ue(r,["ref","children","value","checked","defaultChecked","onChange","onPointerDown"],E4),[s,l]=me(),[c,d]=me(!1),{formControlContext:u}=I4(o),h=BM({isSelected:()=>i.checked,defaultIsSelected:()=>i.defaultChecked,onSelectedChange:b=>i.onChange?.(b),isDisabled:()=>u.isDisabled(),isReadOnly:()=>u.isReadOnly()});D4(()=>t,()=>h.setIsSelected(i.defaultChecked??!1));const m=b=>{Ve(b,i.onPointerDown),c()&&b.preventDefault()},f=j(()=>({"data-checked":h.isSelected()?"":void 0})),p={value:()=>i.value,dataset:f,checked:()=>h.isSelected(),inputRef:s,generateId:Or(()=>ce(o.id)),toggle:()=>h.toggle(),setIsChecked:b=>h.setIsSelected(b),setIsFocused:d,setInputRef:l};return y(Gm.Provider,{value:u,get children(){return y(NP.Provider,{value:p,get children(){return y(We,ee({as:"div",ref(b){var v=kt(g=>t=g,i.ref);typeof v=="function"&&v(b)},role:"group",get id(){return ce(o.id)},onPointerDown:m},()=>u.dataset(),f,a,{get children(){return y(uhe,{state:p,get children(){return i.children}})}}))}})}})}function uhe(e){const t=_s(()=>{const n=e.children;return Cd(n)?n(e.state):n});return Le(t)}function qP(e){const t=Gi(),n=Rs(),r=Be({id:n.generateId("thumb")},e);return y(We,ee({as:"div"},()=>t.dataset(),()=>n.dataset(),r))}var ca=Object.assign(UP,{Control:FP,Description:VP,ErrorMessage:jP,Input:BP,Label:HP,Thumb:qP});function eo(e){const[t,n]=ue(e,["children","class","hideLabel","description"]);return y(ca,ee(n,{get class(){return t.class},"data-component":"switch",get children(){return[y(ca.Input,{"data-slot":"switch-input"}),y(de,{get when(){return t.children},get children(){return y(ca.Label,{"data-slot":"switch-label",get classList(){return{"sr-only":t.hideLabel}},get children(){return t.children}})}}),y(de,{get when(){return t.description},get children(){return y(ca.Description,{"data-slot":"switch-description",get children(){return t.description}})}}),y(ca.ErrorMessage,{"data-slot":"switch-error"}),y(ca.Control,{"data-slot":"switch-control",get children(){return y(ca.Thumb,{"data-slot":"switch-thumb"})}})]}}))}var nl=Q('<div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg">'),fhe=Q("<span>"),hhe=Q("<div data-action=settings-feed-reasoning-summaries>"),mhe=Q("<div data-action=settings-feed-shell-tool-parts-expanded>"),phe=Q("<div data-action=settings-feed-edit-tool-parts-expanded>"),ghe=Q("<div data-action=settings-notifications-agent>"),vhe=Q("<div data-action=settings-notifications-permissions>"),bhe=Q("<div data-action=settings-notifications-errors>"),yhe=Q("<div data-action=settings-updates-startup>"),whe=Q("<div data-action=settings-release-notes>"),khe=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 w-full">'),xhe=Q("<div data-action=settings-wayland>"),She=Q("<span class=text-text-weak>"),_he=Q('<div class="flex items-center gap-2"><span>'),Ahe=Q('<div class="flex flex-wrap items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><div class="flex flex-col gap-0.5 min-w-0"><span class="text-14-medium text-text-strong"></span><span class="text-12-regular text-text-weak"></span></div><div class=flex-shrink-0>');let pl={cleanup:void 0,timeout:void 0};const ZP=()=>{pl.cleanup&&pl.cleanup(),clearTimeout(pl.timeout),pl.cleanup=void 0},Yx=e=>{ZP(),e&&(pl.timeout=setTimeout(()=>{pl.cleanup=jh(e)},100))},Che=()=>{const e=ty(),t=Kt(),n=Er(),r=Ts(),[i,o]=He({checking:!1}),a=j(()=>n.platform==="desktop"&&n.os==="linux"),s=()=>{n.checkUpdate&&(o("checking",!0),n.checkUpdate().then(w=>{if(!w.updateAvailable){Ft({variant:"success",icon:"circle-check",title:t.t("settings.updates.toast.latest.title"),description:t.t("settings.updates.toast.latest.description",{version:n.version??""})});return}const x=n.update&&n.restart?[{label:t.t("toast.update.action.installRestart"),onClick:async()=>{await n.update(),await n.restart()}},{label:t.t("toast.update.action.notYet"),onClick:"dismiss"}]:[{label:t.t("toast.update.action.notYet"),onClick:"dismiss"}];Ft({persistent:!0,icon:"download",title:t.t("toast.update.title"),description:t.t("toast.update.description",{version:w.version??""}),actions:x})}).catch(w=>{const x=w instanceof Error?w.message:String(w);Ft({title:t.t("common.requestFailed"),description:x})}).finally(()=>o("checking",!1)))},l=j(()=>Object.entries(e.themes()).map(([w,x])=>({id:w,name:x.name??w}))),c=j(()=>[{value:"system",label:t.t("theme.scheme.system")},{value:"light",label:t.t("theme.scheme.light")},{value:"dark",label:t.t("theme.scheme.dark")}]),d=j(()=>t.locales.map(w=>({value:w,label:t.label(w)}))),h=[...[{value:"ibm-plex-mono",label:"font.option.ibmPlexMono"},{value:"cascadia-code",label:"font.option.cascadiaCode"},{value:"fira-code",label:"font.option.firaCode"},{value:"hack",label:"font.option.hack"},{value:"inconsolata",label:"font.option.inconsolata"},{value:"intel-one-mono",label:"font.option.intelOneMono"},{value:"iosevka",label:"font.option.iosevka"},{value:"jetbrains-mono",label:"font.option.jetbrainsMono"},{value:"meslo-lgs",label:"font.option.mesloLgs"},{value:"roboto-mono",label:"font.option.robotoMono"},{value:"source-code-pro",label:"font.option.sourceCodePro"},{value:"ubuntu-mono",label:"font.option.ubuntuMono"},{value:"geist-mono",label:"font.option.geistMono"}]],m={id:"none",label:"sound.option.none",src:void 0},f=[m,...lM],p=(w,x,L,C)=>({options:f,current:w()?f.find(I=>I.id===x())??m:m,value:I=>I.id,label:I=>t.t(I.label),onHighlight:I=>{I&&Yx(I.src)},onSelect:I=>{if(I){if(I.id==="none"){L(!1),ZP();return}L(!0),C(I.id),Yx(I.src)}},variant:"secondary",size:"small",triggerVariant:"settings"}),b=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.appearance")),P(L,y(ir,{get title(){return t.t("settings.general.row.language.title")},get description(){return t.t("settings.general.row.language.description")},get children(){return y(Ga,{"data-action":"settings-language",get options(){return d()},get current(){return d().find(C=>C.value===t.locale())},value:C=>C.value,label:C=>C.label,onSelect:C=>C&&t.setLocale(C.value),variant:"secondary",size:"small",triggerVariant:"settings"})}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.appearance.title")},get description(){return t.t("settings.general.row.appearance.description")},get children(){return y(Ga,{"data-action":"settings-color-scheme",get options(){return c()},get current(){return c().find(C=>C.value===e.colorScheme())},value:C=>C.value,label:C=>C.label,onSelect:C=>C&&e.setColorScheme(C.value),onHighlight:C=>{if(C)return e.previewColorScheme(C.value),()=>e.cancelPreview()},variant:"secondary",size:"small",triggerVariant:"settings"})}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.theme.title")},get description(){return[Le(()=>t.t("settings.general.row.theme.description"))," ",y(Hc,{href:"https://opencode.ai/docs/themes/",get children(){return t.t("common.learnMore")}})]},get children(){return y(Ga,{"data-action":"settings-theme",get options(){return l()},get current(){return l().find(C=>C.id===e.themeId())},value:C=>C.id,label:C=>C.name,onSelect:C=>{C&&e.setTheme(C.id)},onHighlight:C=>{if(C)return e.previewTheme(C.id),()=>e.cancelPreview()},variant:"secondary",size:"small",triggerVariant:"settings"})}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.font.title")},get description(){return t.t("settings.general.row.font.description")},get children(){return y(Ga,{"data-action":"settings-font",options:h,get current(){return h.find(C=>C.value===r.appearance.font())},value:C=>C.value,label:C=>t.t(C.label),onSelect:C=>C&&r.appearance.setFont(C.value),variant:"secondary",size:"small",triggerVariant:"settings",get triggerStyle(){return{"font-family":qv(r.appearance.font()),"min-width":"180px"}},children:C=>(()=>{var I=fhe();return P(I,()=>C?t.t(C.label):""),Ne($=>zi(I,"font-family",qv(C?.value))),I})()})}}),null),w})(),v=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.feed")),P(L,y(ir,{get title(){return t.t("settings.general.row.reasoningSummaries.title")},get description(){return t.t("settings.general.row.reasoningSummaries.description")},get children(){var C=hhe();return P(C,y(eo,{get checked(){return r.general.showReasoningSummaries()},onChange:I=>r.general.setShowReasoningSummaries(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.shellToolPartsExpanded.title")},get description(){return t.t("settings.general.row.shellToolPartsExpanded.description")},get children(){var C=mhe();return P(C,y(eo,{get checked(){return r.general.shellToolPartsExpanded()},onChange:I=>r.general.setShellToolPartsExpanded(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.editToolPartsExpanded.title")},get description(){return t.t("settings.general.row.editToolPartsExpanded.description")},get children(){var C=phe();return P(C,y(eo,{get checked(){return r.general.editToolPartsExpanded()},onChange:I=>r.general.setEditToolPartsExpanded(I)})),C}}),null),w})(),g=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.notifications")),P(L,y(ir,{get title(){return t.t("settings.general.notifications.agent.title")},get description(){return t.t("settings.general.notifications.agent.description")},get children(){var C=ghe();return P(C,y(eo,{get checked(){return r.notifications.agent()},onChange:I=>r.notifications.setAgent(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.notifications.permissions.title")},get description(){return t.t("settings.general.notifications.permissions.description")},get children(){var C=vhe();return P(C,y(eo,{get checked(){return r.notifications.permissions()},onChange:I=>r.notifications.setPermissions(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.notifications.errors.title")},get description(){return t.t("settings.general.notifications.errors.description")},get children(){var C=bhe();return P(C,y(eo,{get checked(){return r.notifications.errors()},onChange:I=>r.notifications.setErrors(I)})),C}}),null),w})(),k=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.sounds")),P(L,y(ir,{get title(){return t.t("settings.general.sounds.agent.title")},get description(){return t.t("settings.general.sounds.agent.description")},get children(){return y(Ga,ee({"data-action":"settings-sounds-agent"},()=>p(()=>r.sounds.agentEnabled(),()=>r.sounds.agent(),C=>r.sounds.setAgentEnabled(C),C=>r.sounds.setAgent(C))))}}),null),P(L,y(ir,{get title(){return t.t("settings.general.sounds.permissions.title")},get description(){return t.t("settings.general.sounds.permissions.description")},get children(){return y(Ga,ee({"data-action":"settings-sounds-permissions"},()=>p(()=>r.sounds.permissionsEnabled(),()=>r.sounds.permissions(),C=>r.sounds.setPermissionsEnabled(C),C=>r.sounds.setPermissions(C))))}}),null),P(L,y(ir,{get title(){return t.t("settings.general.sounds.errors.title")},get description(){return t.t("settings.general.sounds.errors.description")},get children(){return y(Ga,ee({"data-action":"settings-sounds-errors"},()=>p(()=>r.sounds.errorsEnabled(),()=>r.sounds.errors(),C=>r.sounds.setErrorsEnabled(C),C=>r.sounds.setErrors(C))))}}),null),w})(),S=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.updates")),P(L,y(ir,{get title(){return t.t("settings.updates.row.startup.title")},get description(){return t.t("settings.updates.row.startup.description")},get children(){var C=yhe();return P(C,y(eo,{get checked(){return r.updates.startup()},get disabled(){return!n.checkUpdate},onChange:I=>r.updates.setStartup(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.releaseNotes.title")},get description(){return t.t("settings.general.row.releaseNotes.description")},get children(){var C=whe();return P(C,y(eo,{get checked(){return r.general.releaseNotes()},onChange:I=>r.general.setReleaseNotes(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.updates.row.check.title")},get description(){return t.t("settings.updates.row.check.description")},get children(){return y(At,{size:"small",variant:"secondary",get disabled(){return i.checking||!n.checkUpdate},onClick:s,get children(){return Le(()=>!!i.checking)()?t.t("settings.updates.action.checking"):t.t("settings.updates.action.checkNow")}})}}),null),w})();return(()=>{var w=khe(),x=w.firstChild,L=x.firstChild,C=L.firstChild,I=x.nextSibling;return P(C,()=>t.t("settings.tab.general")),P(I,y(b,{}),null),P(I,y(v,{}),null),P(I,y(g,{}),null),P(I,y(k,{}),null),P(I,y(S,{}),null),P(I,y(de,{get when(){return a()},children:$=>{const[F,N]=Ss(()=>n.getDisplayBackend?.()),D=()=>F.state==="pending"?void 0:F.latest,T=M=>n.setDisplayBackend?.(M?"wayland":"auto").finally(()=>N.refetch());return(()=>{var M=nl(),R=M.firstChild,G=R.nextSibling;return P(R,()=>t.t("settings.general.section.display")),P(G,y(ir,{get title(){return(()=>{var K=_he(),U=K.firstChild;return P(U,()=>t.t("settings.general.row.wayland.title")),P(K,y(_r,{get value(){return t.t("settings.general.row.wayland.tooltip")},placement:"top",get children(){var q=She();return P(q,y(Dt,{name:"help",size:"small"})),q}}),null),K})()},get description(){return t.t("settings.general.row.wayland.description")},get children(){var K=xhe();return P(K,y(eo,{get checked(){return D()==="wayland"},onChange:T})),K}})),M})()}}),null),w})()},ir=e=>(()=>{var t=Ahe(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,o=n.nextSibling;return P(r,()=>e.title),P(i,()=>e.description),P(o,()=>e.children),t})();var Ehe=Q('<span class="text-14-regular text-text-strong mt-1">"<!>"'),Ihe=Q('<div class="flex flex-col items-center justify-center py-12 text-center"><span class="text-14-regular text-text-weak">'),The=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]"><div class="flex items-center justify-between gap-4"><h2 class="text-16-medium text-text-strong"></h2></div><div class="flex items-center gap-2 px-3 h-9 rounded-lg bg-surface-base"></div></div></div><div class="flex flex-col gap-8 max-w-[720px]">'),Lhe=Q('<div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg">'),Dhe=Q('<div class="flex items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><span class="text-14-regular text-text-strong"></span><button type=button>');const Pg=typeof navigator=="object"&&/(Mac|iPod|iPhone|iPad)/.test(navigator.platform),gl="command.palette",Mhe="mod+shift+p",yd=["General","Session","Navigation","Model and agent","Terminal","Prompt"],Phe={General:"settings.shortcuts.group.general",Session:"settings.shortcuts.group.session",Navigation:"settings.shortcuts.group.navigation","Model and agent":"settings.shortcuts.group.modelAndAgent",Terminal:"settings.shortcuts.group.terminal",Prompt:"settings.shortcuts.group.prompt"};function Og(e){return e===gl?"General":e.startsWith("terminal.")?"Terminal":e.startsWith("model.")||e.startsWith("agent.")||e.startsWith("mcp.")?"Model and agent":e.startsWith("file.")||e.startsWith("fileTree.")?"Navigation":e.startsWith("prompt.")?"Prompt":e.startsWith("session.")||e.startsWith("message.")||e.startsWith("permissions.")||e.startsWith("steps.")||e.startsWith("review.")?"Session":"General"}function Ohe(e){return e==="Shift"||e==="Control"||e==="Alt"||e==="Meta"}function $he(e){return e===","?"comma":e==="+"?"plus":e===" "?"space":e.toLowerCase()}function Rhe(e){if(Ohe(e.key))return;const t=[];(Pg?e.metaKey:e.ctrlKey)&&t.push("mod"),Pg&&e.ctrlKey&&t.push("ctrl"),!Pg&&e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift");const r=$he(e.key);if(r)return t.push(r),t.join("+")}function E1(e){if(!e)return[];const t=[];for(const n of Ah(e)){const r=[];n.ctrl&&r.push("ctrl"),n.alt&&r.push("alt"),n.shift&&r.push("shift"),n.meta&&r.push("meta"),n.key&&r.push(n.key),r.length!==0&&t.push(r.join("+"))}return t}function zhe(e){return!e||typeof e!="object"||Array.isArray(e)?{}:e}function Nhe(e,t,n){const r=new Map;r.set(gl,{title:n,group:"General"});for(const i of e.catalog)i.id.startsWith("suggested.")||r.set(i.id,{title:i.title,group:Og(i.id)});for(const i of e.options)i.id.startsWith("suggested.")||r.set(i.id,{title:i.title,group:Og(i.id)});for(const[i,o]of Object.entries(t))typeof o=="string"&&(r.has(i)||r.set(i,{title:i,group:Og(i)}));return r}function Fhe(e){const t=new Map;for(const n of yd)t.set(n,[]);for(const[n,r]of e){const i=t.get(r.group);i&&i.push(n)}for(const n of yd){const r=t.get(n);r&&r.sort((i,o)=>(e.get(i)?.title??"").localeCompare(e.get(o)?.title??""))}return t}function Vhe(e,t,n,r){const i=e.toLowerCase().trim();if(!i)return n;const o=new Map;for(const l of yd)o.set(l,[]);const a=Array.from(t.entries()).map(([l,c])=>({id:l,title:c.title,group:c.group,keybind:r(l)})),s=qh.go(i,a,{keys:["title","keybind"],threshold:-1e4});for(const l of s){const c=o.get(l.obj.group);c&&c.push(l.obj.id)}return o}function jhe(e){Wt(()=>{const t=n=>{const r=e.active();if(!r)return;if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),n.key==="Escape"){e.stop();return}if((n.key==="Backspace"||n.key==="Delete")&&!n.ctrlKey&&!n.metaKey&&!n.altKey&&!n.shiftKey){e.set(r,"none"),e.stop();return}const o=Rhe(n);if(!o)return;const a=new Map;for(const s of E1(o))for(const l of e.used().get(s)??[])l.id!==r&&a.set(l.id,l.title);if(a.size>0){Ft({title:e.language.t("settings.shortcuts.conflict.title"),description:e.language.t("settings.shortcuts.conflict.description",{keybind:Ef(o),titles:[...a.values()].join(", ")})});return}e.set(r,o),e.stop()};document.addEventListener("keydown",t,!0),he(()=>document.removeEventListener("keydown",t,!0))})}const Bhe=()=>{const e=oy(),t=Kt(),n=Ts(),[r,i]=He({active:null,filter:""}),o=()=>{r.active&&(i("active",null),e.keybinds(!0))},a=v=>{if(r.active===v){o();return}r.active&&o(),i("active",v),e.keybinds(!1)},s=j(()=>zhe(n.current.keybinds)),l=j(()=>Object.values(s()).some(v=>typeof v=="string")),c=()=>{o(),n.keybinds.resetAll(),Ft({title:t.t("settings.shortcuts.reset.toast.title"),description:t.t("settings.shortcuts.reset.toast.description")})},d=j(()=>(t.locale(),Nhe(e,s(),t.t("command.palette")))),u=v=>d().get(v)?.title??"",h=j(()=>Fhe(d())),m=j(()=>Vhe(r.filter,d(),h(),v=>e.keybind(v)||"")),f=j(()=>{for(const v of yd)if((m().get(v)??[]).length>0)return!0;return!1}),p=j(()=>{const v=new Map,g=(w,x)=>{const L=v.get(w);if(!L){v.set(w,[x]);return}L.push(x)},k=n.keybinds.get(gl)??Mhe;for(const w of E1(k))g(w,{id:gl,title:u(gl)});const S=w=>{const x=n.keybinds.get(w);if(typeof x=="string")return x;const L=e.options.find(I=>I.id===w);return L?.keybind?L.keybind:e.catalog.find(I=>I.id===w)?.keybind};for(const w of d().keys())if(w!==gl)for(const x of E1(S(w)))g(x,{id:w,title:u(w)});return v});return jhe({active:()=>r.active,stop:o,set:(v,g)=>n.keybinds.set(v,g),used:p,language:t}),he(()=>{r.active&&e.keybinds(!0)}),(()=>{var v=The(),g=v.firstChild,k=g.firstChild,S=k.firstChild,w=S.firstChild,x=S.nextSibling,L=g.nextSibling;return P(w,()=>t.t("settings.shortcuts.title")),P(S,y(At,{size:"small",variant:"secondary",onClick:c,get disabled(){return!l()},get children(){return t.t("settings.shortcuts.reset.button")}}),null),P(x,y(Dt,{name:"magnifying-glass",class:"text-icon-weak-base flex-shrink-0"}),null),P(x,y(En,{variant:"ghost",type:"text",get value(){return r.filter},onChange:C=>i("filter",C),get placeholder(){return t.t("settings.shortcuts.search.placeholder")},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"flex-1"}),null),P(x,y(de,{get when(){return r.filter},get children(){return y(xn,{icon:"circle-x",variant:"ghost",onClick:()=>i("filter","")})}}),null),P(L,y(on,{each:yd,children:C=>y(de,{get when(){return(m().get(C)??[]).length>0},get children(){var I=Lhe(),$=I.firstChild,F=$.nextSibling;return P($,()=>t.t(Phe[C])),P(F,y(on,{get each(){return m().get(C)??[]},children:N=>(()=>{var D=Dhe(),T=D.firstChild,M=T.nextSibling;return P(T,()=>u(N)),M.$$click=()=>a(N),et(M,"data-keybind-id",N),P(M,y(de,{get when(){return r.active===N},get fallback(){return e.keybind(N)||t.t("settings.shortcuts.unassigned")},get children(){return t.t("settings.shortcuts.pressKeys")}})),Ne(R=>ln(M,{"h-8 px-3 rounded-md text-12-regular":!0,"bg-surface-base text-text-subtle hover:bg-surface-raised-base-hover active:bg-surface-raised-base-active":r.active!==N,"border border-border-weak-base bg-surface-inset-base text-text-weak":r.active===N},R)),D})()})),I}})}),null),P(L,y(de,{get when(){return Le(()=>!!r.filter)()&&!f()},get children(){var C=Ihe(),I=C.firstChild;return P(I,()=>t.t("settings.shortcuts.search.empty")),P(C,y(de,{get when(){return r.filter},get children(){var $=Ehe(),F=$.firstChild,N=F.nextSibling;return N.nextSibling,P($,()=>r.filter,N),$}}),null),C}}),null),v})()};rr(["click"]);var Hhe=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8 max-w-[720px]"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 max-w-[720px]"><div class="flex flex-col gap-1"data-component=connected-providers-section><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg"></div></div><div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg"><div class="flex items-center justify-between gap-4 min-h-16 border-b border-border-weak-base last:border-none flex-wrap py-3"data-component=custom-provider-section><div class="flex flex-col min-w-0"><div class="flex flex-wrap items-center gap-x-3 gap-y-1"><span class="text-14-medium text-text-strong"></span></div><span class="text-12-regular text-text-weak pl-8">'),Uhe=Q('<div class="py-4 text-14-regular text-text-weak">'),qhe=Q('<div class="group flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex items-center gap-3 min-w-0"><span class="text-14-medium text-text-strong truncate">'),Zhe=Q('<span class="text-14-regular text-text-base opacity-0 group-hover:opacity-100 transition-opacity duration-200 pr-3 cursor-default">'),e7=Q('<span class="text-14-regular text-text-weak">'),Whe=Q('<div class="flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex flex-col min-w-0"><div class="flex items-center gap-x-3"><span class="text-14-medium text-text-strong">'),Ghe=Q('<span class="text-12-regular text-text-weak pl-8">');const Khe=[{match:e=>e==="opencode",key:"dialog.provider.opencode.note"},{match:e=>e==="anthropic",key:"dialog.provider.anthropic.note"},{match:e=>e.startsWith("github-copilot"),key:"dialog.provider.copilot.note"},{match:e=>e==="openai",key:"dialog.provider.openai.note"},{match:e=>e==="google",key:"dialog.provider.google.note"},{match:e=>e==="openrouter",key:"dialog.provider.openrouter.note"},{match:e=>e==="vercel",key:"dialog.provider.vercel.note"}],Jhe=()=>{const e=Ui(),t=Kt(),n=qi(),r=ar(),i=fu(),o=j(()=>i.connected().filter(f=>f.id!=="opencode"||Object.values(f.models).find(p=>p.cost?.input))),a=j(()=>{const f=new Set(o().map(b=>b.id)),p=i.popular().filter(b=>!f.has(b.id)).slice();return p.sort((b,v)=>io.indexOf(b.id)-io.indexOf(v.id)),p}),s=f=>{if(!("source"in f))return;const p=f.source;if(p==="env"||p==="api"||p==="config"||p==="custom")return p},l=f=>{const p=s(f);return p==="env"?t.t("settings.providers.tag.environment"):p==="api"?t.t("provider.connect.method.apiKey"):p==="config"?u(f.id)?t.t("settings.providers.tag.custom"):t.t("settings.providers.tag.config"):p==="custom"?t.t("settings.providers.tag.custom"):t.t("settings.providers.tag.other")},c=f=>s(f)!=="env",d=f=>Khe.find(p=>p.match(f))?.key,u=f=>{const p=r.data.config.provider?.[f];return!(!p||p.npm!=="@ai-sdk/openai-compatible"||!p.models||Object.keys(p.models).length===0)},h=async(f,p)=>{const b=r.data.config.disabled_providers??[],v=b.includes(f)?b:[...b,f];r.set("config","disabled_providers",v),await r.updateConfig({disabled_providers:v}).then(()=>{Ft({variant:"success",icon:"circle-check",title:t.t("provider.disconnect.toast.disconnected.title",{provider:p}),description:t.t("provider.disconnect.toast.disconnected.description",{provider:p})})}).catch(g=>{r.set("config","disabled_providers",b);const k=g instanceof Error?g.message:String(g);Ft({title:t.t("common.requestFailed"),description:k})})},m=async(f,p)=>{if(u(f)){await n.client.auth.remove({providerID:f}).catch(()=>{}),await h(f,p);return}await n.client.auth.remove({providerID:f}).then(async()=>{await n.client.global.dispose(),Ft({variant:"success",icon:"circle-check",title:t.t("provider.disconnect.toast.disconnected.title",{provider:p}),description:t.t("provider.disconnect.toast.disconnected.description",{provider:p})})}).catch(b=>{const v=b instanceof Error?b.message:String(b);Ft({title:t.t("common.requestFailed"),description:v})})};return(()=>{var f=Hhe(),p=f.firstChild,b=p.firstChild,v=b.firstChild,g=p.nextSibling,k=g.firstChild,S=k.firstChild,w=S.nextSibling,x=k.nextSibling,L=x.firstChild,C=L.nextSibling,I=C.firstChild,$=I.firstChild,F=$.firstChild,N=F.firstChild,D=F.nextSibling;return P(v,()=>t.t("settings.providers.title")),P(S,()=>t.t("settings.providers.section.connected")),P(w,y(de,{get when(){return o().length>0},get fallback(){return(()=>{var T=Uhe();return P(T,()=>t.t("settings.providers.connected.empty")),T})()},get children(){return y(on,{get each(){return o()},children:T=>(()=>{var M=qhe(),R=M.firstChild,G=R.firstChild;return P(R,y(cs,{get id(){return T.id},class:"size-5 shrink-0 icon-strong-base"}),G),P(G,()=>T.name),P(R,y(os,{get children(){return l(T)}}),null),P(M,y(de,{get when(){return c(T)},get fallback(){return(()=>{var K=Zhe();return P(K,()=>t.t("settings.providers.connected.environmentDescription")),K})()},get children(){return y(At,{size:"large",variant:"ghost",onClick:()=>{m(T.id,T.name)},get children(){return t.t("common.disconnect")}})}}),null),M})()})}})),P(L,()=>t.t("settings.providers.section.popular")),P(C,y(on,{get each(){return a()},children:T=>(()=>{var M=Whe(),R=M.firstChild,G=R.firstChild,K=G.firstChild;return P(G,y(cs,{get id(){return T.id},class:"size-5 shrink-0 icon-strong-base"}),K),P(K,()=>T.name),P(G,y(de,{get when(){return T.id==="opencode"},get children(){var U=e7();return P(U,()=>t.t("dialog.provider.opencode.tagline")),U}}),null),P(G,y(de,{get when(){return T.id==="opencode"},get children(){return y(os,{get children(){return t.t("dialog.provider.tag.recommended")}})}}),null),P(G,y(de,{get when(){return T.id==="opencode-go"},get children(){return[(()=>{var U=e7();return P(U,()=>t.t("dialog.provider.opencodeGo.tagline")),U})(),y(os,{get children(){return t.t("dialog.provider.tag.recommended")}})]}}),null),P(R,y(de,{get when(){return d(T.id)},children:U=>(()=>{var q=Ghe();return P(q,()=>t.t(U())),q})()}),null),P(M,y(At,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>{e.show(()=>y(vP,{get provider(){return T.id}}))},get children(){return t.t("common.connect")}}),null),M})()}),I),P(F,y(cs,{id:"synthetic",class:"size-5 shrink-0 icon-strong-base"}),N),P(N,()=>t.t("provider.custom.title")),P(F,y(os,{get children(){return t.t("settings.providers.tag.custom")}}),null),P(D,()=>t.t("settings.providers.custom.description")),P(I,y(At,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>{e.show(()=>y(bP,{back:"close"}))},get children(){return t.t("common.connect")}}),null),P(x,y(At,{variant:"ghost",class:"px-0 py-0 mt-5 text-14-medium text-text-interactive-base text-left justify-start hover:bg-transparent active:bg-transparent",onClick:()=>{e.show(()=>y(bd,{}))},get children(){return t.t("dialog.provider.viewAll")}}),null),f})()};var WP=Q('<div class="flex flex-col items-center justify-center py-12 text-center"><span class="text-14-regular text-text-weak">'),Qhe=Q('<span class="text-14-regular text-text-strong mt-1">&quot;<!>&quot;'),Xhe=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]"><h2 class="text-16-medium text-text-strong"></h2><div class="flex items-center gap-2 px-3 h-9 rounded-lg bg-surface-base"></div></div></div><div class="flex flex-col gap-8 max-w-[720px]">'),Yhe=Q('<div class="flex flex-col gap-1"><div class="flex items-center gap-2 pb-2"><span class="text-14-medium text-text-strong"></span></div><div class="bg-surface-raised-base px-4 rounded-lg">'),e0e=Q('<div class="flex flex-wrap items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><div class=min-w-0><span class="text-14-regular text-text-strong truncate block"></span></div><div class=flex-shrink-0>');const t0e=e=>(()=>{var t=WP(),n=t.firstChild;return P(n,()=>e.label),t})(),n0e=e=>(()=>{var t=WP(),n=t.firstChild;return P(n,()=>e.message),P(t,y(de,{get when(){return e.filter},get children(){var r=Qhe(),i=r.firstChild,o=i.nextSibling;return o.nextSibling,P(r,()=>e.filter,o),r}}),null),t})(),r0e=()=>{const e=Kt(),t=sM(),n=uP({items:r=>t.list(),key:r=>`${r.provider.id}:${r.id}`,filterKeys:["provider.name","name","id"],sortBy:(r,i)=>r.name.localeCompare(i.name),groupBy:r=>r.provider.id,sortGroupsBy:(r,i)=>{const o=io.indexOf(r.category),a=io.indexOf(i.category),s=o>=0,l=a>=0;if(s&&!l)return-1;if(!s&&l)return 1;if(s&&l)return o-a;const c=r.items[0].provider.name,d=i.items[0].provider.name;return c.localeCompare(d)}});return(()=>{var r=Xhe(),i=r.firstChild,o=i.firstChild,a=o.firstChild,s=a.nextSibling,l=i.nextSibling;return P(a,()=>e.t("settings.models.title")),P(s,y(Dt,{name:"magnifying-glass",class:"text-icon-weak-base flex-shrink-0"}),null),P(s,y(En,{variant:"ghost",type:"text",get value(){return n.filter()},get onChange(){return n.onInput},get placeholder(){return e.t("dialog.model.search.placeholder")},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"flex-1"}),null),P(s,y(de,{get when(){return n.filter()},get children(){return y(xn,{icon:"circle-x",variant:"ghost",get onClick(){return n.clear}})}}),null),P(l,y(de,{get when(){return!n.grouped.loading},get fallback(){return y(t0e,{get label(){return`${e.t("common.loading")}${e.t("common.loading.ellipsis")}`}})},get children(){return y(de,{get when(){return n.flat().length>0},get fallback(){return y(n0e,{get message(){return e.t("dialog.model.empty")},get filter(){return n.filter()}})},get children(){return y(on,{get each(){return n.grouped.latest},children:c=>(()=>{var d=Yhe(),u=d.firstChild,h=u.firstChild,m=u.nextSibling;return P(u,y(cs,{get id(){return c.category},class:"size-5 shrink-0 icon-strong-base"}),h),P(h,()=>c.items[0].provider.name),P(m,y(on,{get each(){return c.items},children:f=>{const p={providerID:f.provider.id,modelID:f.id};return(()=>{var b=e0e(),v=b.firstChild,g=v.firstChild,k=v.nextSibling;return P(g,()=>f.name),P(k,y(eo,{get checked(){return t.visible(p)},onChange:S=>{t.setVisibility(p,S)},hideLabel:!0,get children(){return f.name}})),b})()}})),d})()})}})}})),r})()};var i0e=Q('<div class="flex flex-col justify-between h-full w-full"><div class="flex flex-col gap-3 w-full pt-3"><div class="flex flex-col gap-3"><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div></div></div><div class="flex flex-col gap-1 pl-1 py-1 text-12-medium text-text-weak"><span></span><span class=text-11-regular>v');const o0e=()=>{const e=Kt(),t=Er();return y(mo,{size:"x-large",transition:!0,get children(){return y(ni,{orientation:"vertical",variant:"settings",defaultValue:"general",class:"h-full settings-dialog",get children(){return[y(ni.List,{get children(){var n=i0e(),r=n.firstChild,i=r.firstChild,o=i.firstChild,a=o.firstChild,s=o.nextSibling,l=s.firstChild,c=r.nextSibling,d=c.firstChild,u=d.nextSibling;return u.firstChild,P(o,y(ni.SectionTitle,{get children(){return e.t("settings.section.desktop")}}),a),P(a,y(ni.Trigger,{value:"general",get children(){return[y(Dt,{name:"sliders"}),Le(()=>e.t("settings.tab.general"))]}}),null),P(a,y(ni.Trigger,{value:"shortcuts",get children(){return[y(Dt,{name:"keyboard"}),Le(()=>e.t("settings.tab.shortcuts"))]}}),null),P(s,y(ni.SectionTitle,{get children(){return e.t("settings.section.server")}}),l),P(l,y(ni.Trigger,{value:"providers",get children(){return[y(Dt,{name:"providers"}),Le(()=>e.t("settings.providers.title"))]}}),null),P(l,y(ni.Trigger,{value:"models",get children(){return[y(Dt,{name:"models"}),Le(()=>e.t("settings.models.title"))]}}),null),P(d,()=>e.t("app.name.desktop")),P(u,()=>t.version,null),n}}),y(ni.Content,{value:"general",class:"no-scrollbar",get children(){return y(Che,{})}}),y(ni.Content,{value:"shortcuts",class:"no-scrollbar",get children(){return y(Bhe,{})}}),y(ni.Content,{value:"providers",class:"no-scrollbar",get children(){return y(Jhe,{})}}),y(ni.Content,{value:"models",class:"no-scrollbar",get children(){return y(r0e,{})}})]}})}})},a0e=e=>typeof e!="object"||e===null?!1:"draggable"in e,t7=e=>{if(!a0e(e))return;const t=e.draggable;if(t)return typeof t.id=="string"?t.id:void 0},s0e=(e,t)=>({id:e,order:100,callback:n=>t==="x"?{...n,x:0}:{...n,y:0}}),GP=(e,t)=>()=>{const n=$s();if(!n)return null;const[,{onDragStart:r,onDragEnd:i,addTransformer:o,removeTransformer:a}]=n,s=s0e(t,e),l=Nn(c=>(r(d=>{const u=t7(d);u&&o("draggables",u,s)}),i(d=>{const u=t7(d);u&&a("draggables",u,s.id)}),c));return he(l),null},KP=GP("x","constrain-x-axis"),pve=GP("y","constrain-y-axis"),l0e="/assets/sprite-Fb-TFjRY.svg";var c0e=Q("<svg><defs><filter color-interpolation-filters=sRGB><feFlood flood-color=currentColor result=flood></feFlood><feComposite in=flood in2=SourceAlpha operator=in></svg>",!1,!0,!1),d0e=Q("<svg data-component=file-icon><use>");let u0e=0;const n7=e=>{const[t,n]=ue(e,["node","class","classList","expanded","mono"]),r=j(()=>g0e(t.node.path,t.node.type,t.expanded||!1)),i=`file-icon-mono-${u0e++}`;return(()=>{var o=d0e(),a=o.firstChild;return nr(o,ee(n,{get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}),!0,!0),P(o,y(de,{get when(){return t.mono},get children(){var s=c0e(),l=s.firstChild;return et(l,"id",i),s}}),a),Ne(s=>{var l=`${l0e}#${r()}`,c=t.mono?`url(#${i})`:void 0;return l!==s.e&&et(a,"href",s.e=l),c!==s.t&&et(a,"filter",s.t=c),s},{e:void 0,t:void 0}),o})()},rl={fileNames:{"readme.md":"Readme","changelog.md":"Changelog","contributing.md":"Contributing","conduct.md":"Conduct",license:"Certificate",authors:"Authors",credits:"Credits",install:"Installation","package.json":"Nodejs","package-lock.json":"Nodejs","yarn.lock":"Yarn","pnpm-lock.yaml":"Pnpm","bun.lock":"Bun","bun.lockb":"Bun","bunfig.toml":"Bun",".nvmrc":"Nodejs",".node-version":"Nodejs",dockerfile:"Docker","docker-compose.yml":"Docker","docker-compose.yaml":"Docker",".dockerignore":"Docker","jest.config.js":"Jest","jest.config.ts":"Jest","jest.config.mjs":"Jest","vitest.config.js":"Vitest","vitest.config.ts":"Vitest","tailwind.config.js":"Tailwindcss","tailwind.config.ts":"Tailwindcss","turbo.json":"Turborepo","tsconfig.json":"Tsconfig","jsconfig.json":"Jsconfig",".eslintrc":"Eslint",".eslintrc.js":"Eslint",".eslintrc.json":"Eslint",".prettierrc":"Prettier",".prettierrc.js":"Prettier",".prettierrc.json":"Prettier","vite.config.js":"Vite","vite.config.ts":"Vite","webpack.config.js":"Webpack","rollup.config.js":"Rollup","astro.config.mjs":"AstroConfig","astro.config.js":"AstroConfig","next.config.js":"Next","next.config.mjs":"Next","nuxt.config.js":"Nuxt","nuxt.config.ts":"Nuxt","svelte.config.js":"Svelte","gatsby-config.js":"Gatsby","remix.config.js":"Remix","prisma.schema":"Prisma",".gitignore":"Git",".gitattributes":"Git",makefile:"Makefile",cmake:"Cmake","cargo.toml":"Rust","go.mod":"GoMod","go.sum":"GoMod","requirements.txt":"Python","pyproject.toml":"Python",pipfile:"Python","poetry.lock":"Poetry",gemfile:"Gemfile",rakefile:"Ruby","composer.json":"Php","build.gradle":"Gradle","pom.xml":"Maven","deno.json":"Deno","deno.jsonc":"Deno","vercel.json":"Vercel","netlify.toml":"Netlify",".env":"Tune",".env.local":"Tune",".env.development":"Tune",".env.production":"Tune",".env.example":"Tune",".editorconfig":"Editorconfig","robots.txt":"Robots","favicon.ico":"Favicon",browserlist:"Browserlist",".babelrc":"Babel","babel.config.js":"Babel","gulpfile.js":"Gulp","gruntfile.js":"Grunt","capacitor.config.json":"Capacitor","ionic.config.json":"Ionic","angular.json":"Angular",".storybook":"Storybook","storybook.config.js":"Storybook","cypress.config.js":"Cypress","playwright.config.js":"Playwright","puppeteer.config.js":"Puppeteer","wrangler.toml":"Wrangler","firebase.json":"Firebase",supabase:"Supabase",terraform:"Terraform",kubernetes:"Kubernetes",".gitpod.yml":"Gitpod",".devcontainer":"Vscode","travis.yml":"Travis","appveyor.yml":"Appveyor",".circleci":"Circleci","renovate.json":"Renovate","dependabot.yml":"Dependabot","lerna.json":"Lerna","nx.json":"Nx"},fileExtensions:{"spec.ts":"TestTs","test.ts":"TestTs","spec.tsx":"TestJsx","test.tsx":"TestJsx","spec.js":"TestJs","test.js":"TestJs","spec.jsx":"TestJsx","test.jsx":"TestJsx","js.map":"JavascriptMap","d.ts":"TypescriptDef",ts:"Typescript",tsx:"React_ts",js:"Javascript",jsx:"React",mjs:"Javascript",cjs:"Javascript",html:"Html",htm:"Html",css:"Css",scss:"Sass",sass:"Sass",less:"Less",styl:"Stylus",json:"Json",xml:"Xml",yml:"Yaml",yaml:"Yaml",toml:"Toml",hjson:"Hjson",md:"Markdown",mdx:"Mdx",tex:"Tex",py:"Python",pyx:"Python",pyw:"Python",rs:"Rust",go:"Go",java:"Java",kt:"Kotlin",scala:"Scala",php:"Php",rb:"Ruby",cs:"Csharp",vb:"Visualstudio",cpp:"Cpp",cc:"Cpp",cxx:"Cpp",c:"C",h:"H",hpp:"Hpp",swift:"Swift",m:"ObjectiveC",mm:"ObjectiveCpp",dart:"Dart",lua:"Lua",pl:"Perl",r:"R",jl:"Julia",hs:"Haskell",elm:"Elm",ml:"Ocaml",clj:"Clojure",cljs:"Clojure",erl:"Erlang",ex:"Elixir",exs:"Elixir",nim:"Nim",zig:"Zig",v:"Vlang",odin:"Odin",gleam:"Gleam",grain:"Grain",roc:"Rocket",fs:"Fsharp",sh:"Console",bash:"Console",zsh:"Console",fish:"Console",ps1:"Powershell",cfg:"Settings",ini:"Settings",conf:"Settings",properties:"Settings",svg:"Svg",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",bmp:"Image",ico:"Favicon",mp4:"Video",mov:"Video",avi:"Video",webm:"Video",mp3:"Audio",wav:"Audio",flac:"Audio",zip:"Zip",tar:"Zip",gz:"Zip",rar:"Zip","7z":"Zip",pdf:"Pdf",doc:"Word",docx:"Word",ppt:"Powerpoint",pptx:"Powerpoint",xls:"Document",xlsx:"Document",sql:"Database",db:"Database",sqlite:"Database",env:"Tune",log:"Log",lock:"Lock",key:"Key",pem:"Certificate",crt:"Certificate",proto:"Proto",graphql:"Graphql",gql:"Graphql",wasm:"Webassembly",dockerfile:"Docker"},folderNames:{src:"FolderSrc",source:"FolderSrc",lib:"FolderLib",libs:"FolderLib",test:"FolderTest",tests:"FolderTest",testing:"FolderTest",spec:"FolderTest",specs:"FolderTest",__tests__:"FolderTest",e2e:"FolderTest",integration:"FolderTest",unit:"FolderTest",cypress:"FolderCypress",node_modules:"FolderNode",vendor:"FolderPackages",packages:"FolderPackages",deps:"FolderPackages",build:"FolderBuildkite",dist:"FolderDist",out:"FolderDist",output:"FolderDist",target:"FolderTarget",config:"FolderConfig",configs:"FolderConfig",configuration:"FolderConfig",settings:"FolderConfig",env:"FolderEnvironment",environments:"FolderEnvironment",docker:"FolderDocker",dockerfiles:"FolderDocker",containers:"FolderDocker",docs:"FolderDocs",doc:"FolderDocs",documentation:"FolderDocs",readme:"FolderDocs",public:"FolderPublic",static:"FolderPublic",assets:"FolderImages",images:"FolderImages",img:"FolderImages",icons:"FolderImages",media:"FolderImages",fonts:"FolderFont",styles:"FolderCss",stylesheets:"FolderCss",css:"FolderCss",sass:"FolderSass",scss:"FolderSass",less:"FolderLess",scripts:"FolderScripts",script:"FolderScripts",tools:"FolderTools",utils:"FolderUtils",utilities:"FolderUtils",helpers:"FolderHelper",components:"FolderComponents",component:"FolderComponents",views:"FolderViews",view:"FolderViews",layouts:"FolderLayout",layout:"FolderLayout",templates:"FolderTemplate",template:"FolderTemplate",hooks:"FolderHook",hook:"FolderHook",store:"FolderStore",stores:"FolderStore",state:"FolderNgrxStore",reducers:"FolderReduxReducer",reducer:"FolderReduxReducer",services:"FolderApi",service:"FolderApi",api:"FolderApi",apis:"FolderApi",routes:"FolderRoutes",route:"FolderRoutes",routing:"FolderRoutes",middleware:"FolderMiddleware",middlewares:"FolderMiddleware",controllers:"FolderController",controller:"FolderController",models:"FolderDatabase",model:"FolderDatabase",schemas:"FolderDatabase",schema:"FolderDatabase",migrations:"FolderDatabase",migration:"FolderDatabase",seeders:"FolderSeeders",seeder:"FolderSeeders",types:"FolderTypescript",typing:"FolderTypescript",typings:"FolderTypescript","@types":"FolderTypescript",interfaces:"FolderInterface",interface:"FolderInterface",android:"FolderAndroid",ios:"FolderIos",mobile:"FolderMobile",flutter:"FolderFlutter",kubernetes:"FolderKubernetes",k8s:"FolderKubernetes",terraform:"FolderTerraform",aws:"FolderAws",azure:"FolderAzurePipelines",firebase:"FolderFirebase",supabase:"FolderSupabase",vercel:"FolderVercel",netlify:"FolderNetlify",".github":"FolderGithub",".gitlab":"FolderGitlab",".circleci":"FolderCircleci",ci:"FolderCi",".ci":"FolderCi",workflows:"FolderGhWorkflows",".git":"FolderGit",".vscode":"FolderVscode",".idea":"FolderIntellij",".cursor":"FolderCursor",".devcontainer":"FolderContainer",".storybook":"FolderStorybook",i18n:"FolderI18n",locales:"FolderI18n",locale:"FolderI18n",lang:"FolderI18n",languages:"FolderI18n",temp:"FolderTemp",tmp:"FolderTemp",logs:"FolderLog",log:"FolderLog",backup:"FolderBackup",backups:"FolderBackup",examples:"FolderExamples",example:"FolderExamples",demo:"FolderExamples",demos:"FolderExamples",samples:"FolderExamples",sample:"FolderExamples",fixtures:"FolderTest",mocks:"FolderMock",mock:"FolderMock",data:"FolderDatabase",database:"FolderDatabase",db:"FolderDatabase",sql:"FolderDatabase",prisma:"FolderPrisma",drizzle:"FolderDrizzle",security:"FolderSecure",auth:"FolderSecure",authentication:"FolderSecure",authorization:"FolderSecure",keys:"FolderKeys",certs:"FolderKeys",certificates:"FolderKeys",content:"FolderContent",posts:"FolderContent",articles:"FolderContent",blog:"FolderContent",functions:"FolderFunctions",function:"FolderFunctions",lambda:"FolderFunctions",lambdas:"FolderFunctions",serverless:"FolderServerless",jobs:"FolderJob",job:"FolderJob",tasks:"FolderTasks",task:"FolderTasks",cron:"FolderTasks",queue:"FolderQueue",queues:"FolderQueue",desktop:"FolderDesktop",windows:"FolderWindows",macos:"FolderMacos",linux:"FolderLinux"},defaults:{file:"Document",folder:"Folder",folderOpen:"FolderOpen"}},f0e=e=>e.startsWith("Folder")?e.endsWith("_light")?e.replace("_light","Open_light"):e.endsWith("Open")?e:e+"Open":e,h0e=e=>e.split("\\").join("/").split("/").filter(Boolean).pop()??"",m0e=e=>{const t=e.toLowerCase();return[t,`.${t}`,`_${t}`,`__${t}__`]},p0e=e=>{const t=e.toLowerCase(),n=[];for(let i=0;i<t.length;i++)t[i]==="."&&n.push(i);const r=new Set;r.add(t);for(const i of n)i+1<t.length&&r.add(t.slice(i+1));return Array.from(r).sort((i,o)=>o.length-i.length)};function g0e(e,t,n){const i=h0e(e).toLowerCase();if(t==="directory"){for(const a of m0e(i)){const s=rl.folderNames[a];if(s)return n?f0e(s):s}return n?rl.defaults.folderOpen:rl.defaults.folder}const o=rl.fileNames[i];if(o)return o;for(const a of p0e(i)){const s=rl.fileExtensions[a];if(s)return s}return rl.defaults.file}var v0e=Q('<div class="w-full flex items-center justify-between rounded-md"><div class="flex items-center gap-x-3 grow min-w-0"><div class="flex items-center text-14-regular min-w-0"><span class="text-text-strong whitespace-nowrap">~</span><span class="text-text-weak whitespace-nowrap">/'),b0e=Q('<div class="w-full flex items-center justify-between rounded-md"><div class="flex items-center gap-x-3 grow min-w-0"><div class="flex items-center text-14-regular min-w-0"><span class="text-text-weak whitespace-nowrap overflow-hidden overflow-ellipsis truncate min-w-0"></span><span class="text-text-strong whitespace-nowrap"></span><span class="text-text-weak whitespace-nowrap">/');function JP(e){return((e??"").split(/\r?\n/)[0]??"").replace(/[\u0000-\u001F\u007F]/g,"").trim()}function y0e(e){const t=e.replaceAll("\\","/");return t.startsWith("//")&&!t.startsWith("///")?"//"+t.slice(2).replace(/\/+/g,"/"):t.replace(/\/+/g,"/")}function as(e){const t=y0e(e);return/^[A-Za-z]:$/.test(t)?t+"/":t}function yr(e){const t=as(e);return t==="/"||t==="//"||/^[A-Za-z]:\/$/.test(t)?t:t.replace(/\/+$/,"")}function w0e(e,t){const n=yr(e??""),r=yr(t).replace(/^\/+/,"");return n?r?n.endsWith("/")?n+r:n+"/"+r:n:r}function I1(e){const t=as(e);return t.startsWith("//")?"//":t.startsWith("/")?"/":/^[A-Za-z]:\//.test(t)?t.slice(0,3):""}function k0e(e){const t=yr(e);if(t==="/"||t==="//"||/^[A-Za-z]:\/$/.test(t))return t;const n=t.lastIndexOf("/");return n<=0?"/":n===2&&/^[A-Za-z]:/.test(t)?t.slice(0,3):t.slice(0,n)}function x0e(e){const t=as(e.trim());return t?t.startsWith("~")?"tilde":I1(t)?"absolute":"relative":"relative"}function QP(e,t){const n=yr(e);if(!t)return"";const r=yr(t),i=n.toLowerCase(),o=r.toLowerCase();return i===o?"~":i.startsWith(o+"/")?"~"+n.slice(r.length):""}function r7(e,t,n){const r=yr(e);return x0e(t)==="absolute"?r:QP(r,n)||r}function i7(e,t,n){const r=yr(e),i=QP(r,t),o=s=>s?s.endsWith("/")?s:s+"/":"",a=Array.from(new Set([r,o(r),i,o(i),$n(r)].filter(Boolean))).join(`
2392
+ `)}function xoe(e,t,n){const r=yoe(e);return r?.length?woe({releases:r,current:t,previous:n}):[]}const{provider:Soe}=Sn({name:"Highlights",gate:!1,init:()=>{const e=Er(),t=Ui(),n=Ts(),[r,i,o,a]=tr("highlights.v1",He({version:void 0})),[s,l]=me(void 0),[c,d]=me(void 0),u={started:!1};let h;const m=()=>{h!==void 0&&(clearTimeout(h),h=void 0)},f=()=>{e.version&&i("version",e.version)},p=b=>{if(!n.general.releaseNotes()){f();return}const v=e.fetch??fetch,g=new AbortController;he(()=>{g.abort(),m()}),v(voe,{signal:g.signal,headers:{Accept:"application/json"}}).then(k=>k.ok?k.json():void 0).then(k=>{if(!k)return;const S=xoe(k,e.version,b);if(!g.signal.aborted){if(S.length===0){f();return}h=setTimeout(()=>{h=void 0,f(),t.show(()=>y(goe,{highlights:S}))},500)}}).catch(()=>{})};return se(()=>{if(u.started||!a()||!n.ready()||!e.version)return;u.started=!0;const b=r.version;if(!b){i("version",e.version);return}b!==e.version&&(l(b),d(e.version),p(b))}),{ready:a,from:s,to:c,get last(){return r.version},markSeen:f}}});class Ps extends Error{}class _oe extends Ps{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Aoe extends Ps{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Coe extends Ps{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class ml extends Ps{}class tD extends Ps{constructor(t){super(`Invalid unit ${t}`)}}class ur extends Ps{}class ia extends Ps{constructor(){super("Zone is an abstract class")}}const Pe="numeric",ji="short",Wr="long",Rh={year:Pe,month:Pe,day:Pe},nD={year:Pe,month:ji,day:Pe},Eoe={year:Pe,month:ji,day:Pe,weekday:ji},rD={year:Pe,month:Wr,day:Pe},iD={year:Pe,month:Wr,day:Pe,weekday:Wr},oD={hour:Pe,minute:Pe},aD={hour:Pe,minute:Pe,second:Pe},sD={hour:Pe,minute:Pe,second:Pe,timeZoneName:ji},lD={hour:Pe,minute:Pe,second:Pe,timeZoneName:Wr},cD={hour:Pe,minute:Pe,hourCycle:"h23"},dD={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},uD={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ji},fD={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:Wr},hD={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},mD={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},pD={year:Pe,month:ji,day:Pe,hour:Pe,minute:Pe},gD={year:Pe,month:ji,day:Pe,hour:Pe,minute:Pe,second:Pe},Ioe={year:Pe,month:ji,day:Pe,weekday:ji,hour:Pe,minute:Pe},vD={year:Pe,month:Wr,day:Pe,hour:Pe,minute:Pe,timeZoneName:ji},bD={year:Pe,month:Wr,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:ji},yD={year:Pe,month:Wr,day:Pe,weekday:Wr,hour:Pe,minute:Pe,timeZoneName:Wr},wD={year:Pe,month:Wr,day:Pe,weekday:Wr,hour:Pe,minute:Pe,second:Pe,timeZoneName:Wr};class lu{get type(){throw new ia}get name(){throw new ia}get ianaName(){return this.name}get isUniversal(){throw new ia}offsetName(t,n){throw new ia}formatOffset(t,n){throw new ia}offset(t){throw new ia}equals(t){throw new ia}get isValid(){throw new ia}}let bg=null;class ym extends lu{static get instance(){return bg===null&&(bg=new ym),bg}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return DD(t,n,r)}formatOffset(t,n){return Bc(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const o1=new Map;function Toe(e){let t=o1.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),o1.set(e,t)),t}const Loe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Doe(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,l,c,d]=r;return[a,i,o,s,l,c,d]}function Moe(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:o,value:a}=n[i],s=Loe[o];o==="era"?r[s]=a:Ye(s)||(r[s]=parseInt(a,10))}return r}const yg=new Map;class Jo extends lu{static create(t){let n=yg.get(t);return n===void 0&&yg.set(t,n=new Jo(t)),n}static resetCache(){yg.clear(),o1.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Jo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return DD(t,n,r,this.name)}formatOffset(t,n){return Bc(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=Toe(this.name);let[i,o,a,s,l,c,d]=r.formatToParts?Moe(r,n):Doe(r,n);s==="BC"&&(i=-Math.abs(i)+1);const h=km({year:i,month:o,day:a,hour:l===24?0:l,minute:c,second:d,millisecond:0});let m=+n;const f=m%1e3;return m-=f>=0?f:1e3+f,(h-m)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let H3={};function Poe(e,t={}){const n=JSON.stringify([e,t]);let r=H3[n];return r||(r=new Intl.ListFormat(e,t),H3[n]=r),r}const a1=new Map;function s1(e,t={}){const n=JSON.stringify([e,t]);let r=a1.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),a1.set(n,r)),r}const l1=new Map;function Ooe(e,t={}){const n=JSON.stringify([e,t]);let r=l1.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),l1.set(n,r)),r}const c1=new Map;function $oe(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=c1.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(e,t),c1.set(i,o)),o}let Lc=null;function Roe(){return Lc||(Lc=new Intl.DateTimeFormat().resolvedOptions().locale,Lc)}const d1=new Map;function kD(e){let t=d1.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),d1.set(e,t)),t}const u1=new Map;function zoe(e){let t=u1.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...xD,...t}),u1.set(e,t)}return t}function Noe(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=s1(e).resolvedOptions(),i=e}catch{const l=e.substring(0,n);r=s1(l).resolvedOptions(),i=l}const{numberingSystem:o,calendar:a}=r;return[i,o,a]}}function Foe(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Voe(e){const t=[];for(let n=1;n<=12;n++){const r=Xe.utc(2009,n,1);t.push(e(r))}return t}function joe(e){const t=[];for(let n=1;n<=7;n++){const r=Xe.utc(2016,11,13+n);t.push(e(r))}return t}function of(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function Boe(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||kD(e.locale).numberingSystem==="latn"}class Hoe{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:o,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Ooe(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):u4(t,3);return On(n,this.padTo)}}}class Uoe{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&Jo.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=s1(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class qoe{constructor(t,n,r){this.opts={style:"long",...r},!n&&TD()&&(this.rtf=$oe(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):hae(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const xD={firstDay:1,minimalDays:4,weekend:[6,7]};class Bt{static fromOpts(t){return Bt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,o=!1){const a=t||kn.defaultLocale,s=a||(o?"en-US":Roe()),l=n||kn.defaultNumberingSystem,c=r||kn.defaultOutputCalendar,d=h1(i)||kn.defaultWeekSettings;return new Bt(s,l,c,d,a)}static resetCache(){Lc=null,a1.clear(),l1.clear(),c1.clear(),d1.clear(),u1.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return Bt.create(t,n,r,i)}constructor(t,n,r,i,o){const[a,s,l]=Noe(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=i,this.intl=Foe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Boe(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Bt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,h1(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return of(this,t,OD,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";if(!this.monthsCache[o][t]){const a=r?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[o][t]=Voe(a)}return this.monthsCache[o][t]})}weekdays(t,n=!1){return of(this,t,zD,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=joe(o=>this.extract(o,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return of(this,void 0,()=>ND,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Xe.utc(2016,11,13,9),Xe.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return of(this,t,FD,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Xe.utc(-40,1,1),Xe.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),o=i.formatToParts(),a=o.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new Hoe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Uoe(t,this.intl,n)}relFormatter(t={}){return new qoe(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Poe(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||kD(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:LD()?zoe(this.locale):xD}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let wg=null;class xr extends lu{static get utcInstance(){return wg===null&&(wg=new xr(0)),wg}static instance(t){return t===0?xr.utcInstance:new xr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new xr(xm(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Bc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Bc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Bc(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Zoe extends lu{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ua(e,t){if(Ye(e)||e===null)return t;if(e instanceof lu)return e;if(Xoe(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?ym.instance:n==="utc"||n==="gmt"?xr.utcInstance:xr.parseSpecifier(n)||Jo.create(e)}else return ya(e)?xr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Zoe(e)}const s4={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},U3={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Woe=s4.hanidec.replace(/[\[|\]]/g,"").split("");function Goe(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(s4.hanidec)!==-1)t+=Woe.indexOf(e[n]);else for(const i in U3){const[o,a]=U3[i];r>=o&&r<=a&&(t+=r-o)}}return parseInt(t,10)}else return t}const f1=new Map;function Koe(){f1.clear()}function Ci({numberingSystem:e},t=""){const n=e||"latn";let r=f1.get(n);r===void 0&&(r=new Map,f1.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${s4[n]}${t}`),r.set(t,i)),i}let q3=()=>Date.now(),Z3="system",W3=null,G3=null,K3=null,J3=60,Q3,X3=null;class kn{static get now(){return q3}static set now(t){q3=t}static set defaultZone(t){Z3=t}static get defaultZone(){return ua(Z3,ym.instance)}static get defaultLocale(){return W3}static set defaultLocale(t){W3=t}static get defaultNumberingSystem(){return G3}static set defaultNumberingSystem(t){G3=t}static get defaultOutputCalendar(){return K3}static set defaultOutputCalendar(t){K3=t}static get defaultWeekSettings(){return X3}static set defaultWeekSettings(t){X3=h1(t)}static get twoDigitCutoffYear(){return J3}static set twoDigitCutoffYear(t){J3=t%100}static get throwOnInvalid(){return Q3}static set throwOnInvalid(t){Q3=t}static resetCaches(){Bt.resetCache(),Jo.resetCache(),Xe.resetCache(),Koe()}}class $i{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const SD=[0,31,59,90,120,151,181,212,243,273,304,334],_D=[0,31,60,91,121,152,182,213,244,274,305,335];function ui(e,t){return new $i("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function l4(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function AD(e,t,n){return n+(cu(e)?_D:SD)[t-1]}function CD(e,t){const n=cu(e)?_D:SD,r=n.findIndex(o=>o<t),i=t-n[r];return{month:r+1,day:i}}function c4(e,t){return(e-t+7)%7+1}function zh(e,t=4,n=1){const{year:r,month:i,day:o}=e,a=AD(r,i,o),s=c4(l4(r,i,o),n);let l=Math.floor((a-s+14-t)/7),c;return l<1?(c=r-1,l=md(c,t,n)):l>md(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...Sm(e)}}function Y3(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:o}=e,a=c4(l4(r,1,t),n),s=Sl(r);let l=i*7+o-a-7+t,c;l<1?(c=r-1,l+=Sl(c)):l>s?(c=r+1,l-=Sl(r)):c=r;const{month:d,day:u}=CD(c,l);return{year:c,month:d,day:u,...Sm(e)}}function kg(e){const{year:t,month:n,day:r}=e,i=AD(t,n,r);return{year:t,ordinal:i,...Sm(e)}}function ex(e){const{year:t,ordinal:n}=e,{month:r,day:i}=CD(t,n);return{year:t,month:r,day:i,...Sm(e)}}function tx(e,t){if(!Ye(e.localWeekday)||!Ye(e.localWeekNumber)||!Ye(e.localWeekYear)){if(!Ye(e.weekday)||!Ye(e.weekNumber)||!Ye(e.weekYear))throw new ml("Cannot mix locale-based week fields with ISO-based week fields");return Ye(e.localWeekday)||(e.weekday=e.localWeekday),Ye(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ye(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Joe(e,t=4,n=1){const r=wm(e.weekYear),i=fi(e.weekNumber,1,md(e.weekYear,t,n)),o=fi(e.weekday,1,7);return r?i?o?!1:ui("weekday",e.weekday):ui("week",e.weekNumber):ui("weekYear",e.weekYear)}function Qoe(e){const t=wm(e.year),n=fi(e.ordinal,1,Sl(e.year));return t?n?!1:ui("ordinal",e.ordinal):ui("year",e.year)}function ED(e){const t=wm(e.year),n=fi(e.month,1,12),r=fi(e.day,1,Nh(e.year,e.month));return t?n?r?!1:ui("day",e.day):ui("month",e.month):ui("year",e.year)}function ID(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=fi(t,0,23)||t===24&&n===0&&r===0&&i===0,a=fi(n,0,59),s=fi(r,0,59),l=fi(i,0,999);return o?a?s?l?!1:ui("millisecond",i):ui("second",r):ui("minute",n):ui("hour",t)}function Ye(e){return typeof e>"u"}function ya(e){return typeof e=="number"}function wm(e){return typeof e=="number"&&e%1===0}function Xoe(e){return typeof e=="string"}function Yoe(e){return Object.prototype.toString.call(e)==="[object Date]"}function TD(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function LD(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function eae(e){return Array.isArray(e)?e:[e]}function nx(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const o=[t(i),i];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function tae(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function jl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h1(e){if(e==null)return null;if(typeof e!="object")throw new ur("Week settings must be an object");if(!fi(e.firstDay,1,7)||!fi(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!fi(t,1,7)))throw new ur("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function fi(e,t,n){return wm(e)&&e>=t&&e<=n}function nae(e,t){return e-t*Math.floor(e/t)}function On(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function da(e){if(!(Ye(e)||e===null||e===""))return parseInt(e,10)}function Ua(e){if(!(Ye(e)||e===null||e===""))return parseFloat(e)}function d4(e){if(!(Ye(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function u4(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function cu(e){return e%4===0&&(e%100!==0||e%400===0)}function Sl(e){return cu(e)?366:365}function Nh(e,t){const n=nae(t-1,12)+1,r=e+(t-n)/12;return n===2?cu(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function km(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function rx(e,t,n){return-c4(l4(e,1,t),n)+t-1}function md(e,t=4,n=1){const r=rx(e,t,n),i=rx(e+1,t,n);return(Sl(e)-r+i)/7}function m1(e){return e>99?e:e>kn.twoDigitCutoffYear?1900+e:2e3+e}function DD(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(n,a).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function xm(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function MD(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new ur(`Invalid unit value ${e}`);return t}function Fh(e,t){const n={};for(const r in e)if(jl(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=MD(i)}return n}function Bc(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${On(n,2)}:${On(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${On(n,2)}${On(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sm(e){return tae(e,["hour","minute","second","millisecond"])}const rae=["January","February","March","April","May","June","July","August","September","October","November","December"],PD=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iae=["J","F","M","A","M","J","J","A","S","O","N","D"];function OD(e){switch(e){case"narrow":return[...iae];case"short":return[...PD];case"long":return[...rae];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const $D=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],RD=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],oae=["M","T","W","T","F","S","S"];function zD(e){switch(e){case"narrow":return[...oae];case"short":return[...RD];case"long":return[...$D];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ND=["AM","PM"],aae=["Before Christ","Anno Domini"],sae=["BC","AD"],lae=["B","A"];function FD(e){switch(e){case"narrow":return[...lae];case"short":return[...sae];case"long":return[...aae];default:return null}}function cae(e){return ND[e.hour<12?0:1]}function dae(e,t){return zD(t)[e.weekday-1]}function uae(e,t){return OD(t)[e.month-1]}function fae(e,t){return FD(t)[e.year<0?0:1]}function hae(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const u=e==="days";switch(t){case 1:return u?"tomorrow":`next ${i[e][0]}`;case-1:return u?"yesterday":`last ${i[e][0]}`;case 0:return u?"today":`this ${i[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=i[e],d=r?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return a?`${s} ${d} ago`:`in ${s} ${d}`}function ix(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const mae={D:Rh,DD:nD,DDD:rD,DDDD:iD,t:oD,tt:aD,ttt:sD,tttt:lD,T:cD,TT:dD,TTT:uD,TTTT:fD,f:hD,ff:pD,fff:vD,ffff:yD,F:mD,FF:gD,FFF:bD,FFFF:wD};class fr{static create(t,n={}){return new fr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const o=[];for(let a=0;a<t.length;a++){const s=t.charAt(a);s==="'"?((r.length>0||i)&&o.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&o.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&o.push({literal:i||/^\s+$/.test(r),val:r}),o}static macroTokenToFormatOpts(t){return mae[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return On(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(m,f)=>this.loc.extract(t,m,f),a=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",s=()=>r?cae(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,f)=>r?uae(t,m):o(f?{month:m}:{month:m,day:"numeric"},"month"),c=(m,f)=>r?dae(t,m):o(f?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const f=fr.macroTokenToFormatOpts(m);return f?this.formatWithSystemDefault(t,f):m},u=m=>r?fae(t,m):o({era:m},"era"),h=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(m)}};return ix(fr.parseFormat(n),h)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(d,u)=>h=>{const m=i(h);if(m){const f=u.isNegativeDuration&&m!==u.largestUnit?r:1;let p;return this.opts.signMode==="negativeLargestOnly"&&m!==u.largestUnit?p="never":this.opts.signMode==="all"?p="always":p="auto",this.num(d.get(m)*f,h.length,p)}else return h},a=fr.parseFormat(n),s=a.reduce((d,{literal:u,val:h})=>u?d:d.concat(h),[]),l=t.shiftTo(...s.map(i).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return ix(a,o(l,c))}}const VD=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ec(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function tc(...e){return t=>e.reduce(([n,r,i],o)=>{const[a,s,l]=o(t,i);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function nc(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function jD(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=da(t[n+i]);return[r,null,n+i]}}const BD=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,pae=`(?:${BD.source}?(?:\\[(${VD.source})\\])?)?`,f4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,HD=RegExp(`${f4.source}${pae}`),h4=RegExp(`(?:[Tt]${HD.source})?`),gae=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vae=/(\d{4})-?W(\d\d)(?:-?(\d))?/,bae=/(\d{4})-?(\d{3})/,yae=jD("weekYear","weekNumber","weekDay"),wae=jD("year","ordinal"),kae=/(\d{4})-(\d\d)-(\d\d)/,UD=RegExp(`${f4.source} ?(?:${BD.source}|(${VD.source}))?`),xae=RegExp(`(?: ${UD.source})?`);function _l(e,t,n){const r=e[t];return Ye(r)?n:da(r)}function Sae(e,t){return[{year:_l(e,t),month:_l(e,t+1,1),day:_l(e,t+2,1)},null,t+3]}function rc(e,t){return[{hours:_l(e,t,0),minutes:_l(e,t+1,0),seconds:_l(e,t+2,0),milliseconds:d4(e[t+3])},null,t+4]}function du(e,t){const n=!e[t]&&!e[t+1],r=xm(e[t+1],e[t+2]),i=n?null:xr.instance(r);return[{},i,t+3]}function uu(e,t){const n=e[t]?Jo.create(e[t]):null;return[{},n,t+1]}const _ae=RegExp(`^T?${f4.source}$`),Aae=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Cae(e){const[t,n,r,i,o,a,s,l,c]=e,d=t[0]==="-",u=l&&l[0]==="-",h=(m,f=!1)=>m!==void 0&&(f||m&&d)?-m:m;return[{years:h(Ua(n)),months:h(Ua(r)),weeks:h(Ua(i)),days:h(Ua(o)),hours:h(Ua(a)),minutes:h(Ua(s)),seconds:h(Ua(l),l==="-0"),milliseconds:h(d4(c),u)}]}const Eae={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function m4(e,t,n,r,i,o,a){const s={year:t.length===2?m1(da(t)):da(t),month:PD.indexOf(n)+1,day:da(r),hour:da(i),minute:da(o)};return a&&(s.second=da(a)),e&&(s.weekday=e.length>3?$D.indexOf(e)+1:RD.indexOf(e)+1),s}const Iae=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Tae(e){const[,t,n,r,i,o,a,s,l,c,d,u]=e,h=m4(t,i,r,n,o,a,s);let m;return l?m=Eae[l]:c?m=0:m=xm(d,u),[h,new xr(m)]}function Lae(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Dae=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Mae=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Pae=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ox(e){const[,t,n,r,i,o,a,s]=e;return[m4(t,i,r,n,o,a,s),xr.utcInstance]}function Oae(e){const[,t,n,r,i,o,a,s]=e;return[m4(t,s,n,r,i,o,a),xr.utcInstance]}const $ae=ec(gae,h4),Rae=ec(vae,h4),zae=ec(bae,h4),Nae=ec(HD),qD=tc(Sae,rc,du,uu),Fae=tc(yae,rc,du,uu),Vae=tc(wae,rc,du,uu),jae=tc(rc,du,uu);function Bae(e){return nc(e,[$ae,qD],[Rae,Fae],[zae,Vae],[Nae,jae])}function Hae(e){return nc(Lae(e),[Iae,Tae])}function Uae(e){return nc(e,[Dae,ox],[Mae,ox],[Pae,Oae])}function qae(e){return nc(e,[Aae,Cae])}const Zae=tc(rc);function Wae(e){return nc(e,[_ae,Zae])}const Gae=ec(kae,xae),Kae=ec(UD),Jae=tc(rc,du,uu);function Qae(e){return nc(e,[Gae,qD],[Kae,Jae])}const ax="Invalid Duration",ZD={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Xae={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...ZD},ti=146097/400,Ks=146097/4800,Yae={years:{quarters:4,months:12,weeks:ti/7,days:ti,hours:ti*24,minutes:ti*24*60,seconds:ti*24*60*60,milliseconds:ti*24*60*60*1e3},quarters:{months:3,weeks:ti/28,days:ti/4,hours:ti*24/4,minutes:ti*24*60/4,seconds:ti*24*60*60/4,milliseconds:ti*24*60*60*1e3/4},months:{weeks:Ks/7,days:Ks,hours:Ks*24,minutes:Ks*24*60,seconds:Ks*24*60*60,milliseconds:Ks*24*60*60*1e3},...ZD},is=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ese=is.slice(0).reverse();function Eo(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Lt(r)}function WD(e,t){let n=t.milliseconds??0;for(const r of ese.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function sx(e,t){const n=WD(e,t)<0?-1:1;is.reduceRight((r,i)=>{if(Ye(t[i]))return r;if(r){const o=t[r]*n,a=e[i][r],s=Math.floor(o/a);t[i]+=s*n,t[r]-=s*a*n}return i},null),is.reduce((r,i)=>{if(Ye(t[i]))return r;if(r){const o=t[r]%1;t[r]-=o,t[i]+=o*e[r][i]}return i},null)}function lx(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Lt{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Yae:Xae;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||Bt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Lt.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new ur(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Lt({values:Fh(t,Lt.normalizeUnit),loc:Bt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(ya(t))return Lt.fromMillis(t);if(Lt.isDuration(t))return t;if(typeof t=="object")return Lt.fromObject(t);throw new ur(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=qae(t);return r?Lt.fromObject(r,n):Lt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Wae(t);return r?Lt.fromObject(r,n):Lt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new ur("need to specify a reason the Duration is invalid");const r=t instanceof $i?t:new $i(t,n);if(kn.throwOnInvalid)throw new Coe(r);return new Lt({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new tD(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?fr.create(this.loc,r).formatDurationFromString(this,t):ax}toHuman(t={}){if(!this.isValid)return ax;const n=t.showZeros!==!1,r=is.map(i=>{const o=this.values[i];return Ye(o)||o===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=u4(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Xe.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?WD(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t),r={};for(const i of is)(jl(n.values,i)||jl(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Eo(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=MD(t(this.values[r],r));return Eo(this,{values:n},!0)}get(t){return this[Lt.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Fh(t,Lt.normalizeUnit)};return Eo(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Eo(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return sx(this.matrix,t),Eo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=lx(this.normalize().shiftToAll().toObject());return Eo(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Lt.normalizeUnit(a));const n={},r={},i=this.toObject();let o;for(const a of is)if(t.indexOf(a)>=0){o=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;ya(i[a])&&(s+=i[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else ya(i[a])&&(r[a]=i[a]);for(const a in r)r[a]!==0&&(n[o]+=a===o?r[a]:r[a]/this.matrix[o][a]);return sx(this.matrix,n),Eo(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Eo(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=lx(this.values);return Eo(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of is)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Js="Invalid Interval";function tse(e,t){return!e||!e.isValid?wn.invalid("missing or invalid start"):!t||!t.isValid?wn.invalid("missing or invalid end"):t<e?wn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class wn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new ur("need to specify a reason the Interval is invalid");const r=t instanceof $i?t:new $i(t,n);if(kn.throwOnInvalid)throw new Aoe(r);return new wn({invalid:r})}static fromDateTimes(t,n){const r=yc(t),i=yc(n),o=tse(r,i);return o??new wn({start:r,end:i})}static after(t,n){const r=Lt.fromDurationLike(n),i=yc(t);return wn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=Lt.fromDurationLike(n),i=yc(t);return wn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let o,a;try{o=Xe.fromISO(r,n),a=o.isValid}catch{a=!1}let s,l;try{s=Xe.fromISO(i,n),l=s.isValid}catch{l=!1}if(a&&l)return wn.fromDateTimes(o,s);if(a){const c=Lt.fromISO(i,n);if(c.isValid)return wn.after(o,c)}else if(l){const c=Lt.fromISO(r,n);if(c.isValid)return wn.before(s,c)}}return wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n?.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?wn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(yc).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:i}=this,o=0;for(;i<this.e;){const a=n[o]||this.e,s=+a>+this.e?this.e:a;r.push(wn.fromDateTimes(i,s)),i=s,o+=1}return r}splitBy(t){const n=Lt.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,o;const a=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));o=+s>+this.e?this.e:s,a.push(wn.fromDateTimes(r,o)),r=o,i+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:wn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return wn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[i,o.union(a)]:[i.concat([o]),a]:[i,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(wn.fromDateTimes(n,l.time)),n=null);return wn.merge(i)}difference(...t){return wn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Js}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=Rh,n={}){return this.isValid?fr.create(this.s.loc.clone(n),t).formatInterval(this):Js}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Js}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Js}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Js}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Js}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Lt.invalid(this.invalidReason)}mapEndpoints(t){return wn.fromDateTimes(t(this.s),t(this.e))}}class af{static hasDST(t=kn.defaultZone){const n=Xe.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Jo.isValidZone(t)}static normalizeZone(t){return ua(t,kn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||Bt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||Bt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||Bt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Bt.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Bt.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Bt.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Bt.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Bt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Bt.create(n,null,"gregory").eras(t)}static features(){return{relative:TD(),localeWeek:LD()}}}function cx(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Lt.fromMillis(r).as("days"))}function nse(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=cx(l,c);return(d-d%7)/7}],["days",cx]],i={},o=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,i[l]=c(e,t),s=o.plus(i),s>t?(i[l]--,e=o.plus(i),e>t&&(s=e,i[l]--,e=o.plus(i))):e=s);return[e,i,s,a]}function rse(e,t,n,r){let[i,o,a,s]=nse(e,t,n);const l=t-i,c=n.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);c.length===0&&(a<t&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+l/(a-i)));const d=Lt.fromObject(o,r);return c.length>0?Lt.fromMillis(l,r).shiftTo(...c).plus(d):d}const ise="missing Intl.DateTimeFormat.formatToParts support";function Nt(e,t=n=>n){return{regex:e,deser:([n])=>t(Goe(n))}}const ose=" ",GD=`[ ${ose}]`,KD=new RegExp(GD,"g");function ase(e){return e.replace(/\./g,"\\.?").replace(KD,GD)}function dx(e){return e.replace(/\./g,"").replace(KD," ").toLowerCase()}function Ei(e,t){return e===null?null:{regex:RegExp(e.map(ase).join("|")),deser:([n])=>e.findIndex(r=>dx(n)===dx(r))+t}}function ux(e,t){return{regex:e,deser:([,n,r])=>xm(n,r),groups:t}}function sf(e){return{regex:e,deser:([t])=>t}}function sse(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function lse(e,t){const n=Ci(t),r=Ci(t,"{2}"),i=Ci(t,"{3}"),o=Ci(t,"{4}"),a=Ci(t,"{6}"),s=Ci(t,"{1,2}"),l=Ci(t,"{1,3}"),c=Ci(t,"{1,6}"),d=Ci(t,"{1,9}"),u=Ci(t,"{2,4}"),h=Ci(t,"{4,6}"),m=b=>({regex:RegExp(sse(b.val)),deser:([v])=>v,literal:!0}),p=(b=>{if(e.literal)return m(b);switch(b.val){case"G":return Ei(t.eras("short"),0);case"GG":return Ei(t.eras("long"),0);case"y":return Nt(c);case"yy":return Nt(u,m1);case"yyyy":return Nt(o);case"yyyyy":return Nt(h);case"yyyyyy":return Nt(a);case"M":return Nt(s);case"MM":return Nt(r);case"MMM":return Ei(t.months("short",!0),1);case"MMMM":return Ei(t.months("long",!0),1);case"L":return Nt(s);case"LL":return Nt(r);case"LLL":return Ei(t.months("short",!1),1);case"LLLL":return Ei(t.months("long",!1),1);case"d":return Nt(s);case"dd":return Nt(r);case"o":return Nt(l);case"ooo":return Nt(i);case"HH":return Nt(r);case"H":return Nt(s);case"hh":return Nt(r);case"h":return Nt(s);case"mm":return Nt(r);case"m":return Nt(s);case"q":return Nt(s);case"qq":return Nt(r);case"s":return Nt(s);case"ss":return Nt(r);case"S":return Nt(l);case"SSS":return Nt(i);case"u":return sf(d);case"uu":return sf(s);case"uuu":return Nt(n);case"a":return Ei(t.meridiems(),0);case"kkkk":return Nt(o);case"kk":return Nt(u,m1);case"W":return Nt(s);case"WW":return Nt(r);case"E":case"c":return Nt(n);case"EEE":return Ei(t.weekdays("short",!1),1);case"EEEE":return Ei(t.weekdays("long",!1),1);case"ccc":return Ei(t.weekdays("short",!0),1);case"cccc":return Ei(t.weekdays("long",!0),1);case"Z":case"ZZ":return ux(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return ux(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return sf(/[a-z_+-/]{1,256}?/i);case" ":return sf(/[^\S\n\r]/);default:return m(b)}})(e)||{invalidReason:ise};return p.token=e,p}const cse={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function dse(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const o=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=cse[a];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function use(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function fse(e,t,n){const r=e.match(t);if(r){const i={};let o=1;for(const a in n)if(jl(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+l))),o+=l}return[r,i]}else return[r,{}]}function hse(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Ye(e.z)||(n=Jo.create(e.z)),Ye(e.Z)||(n||(n=new xr(e.Z)),r=e.Z),Ye(e.q)||(e.M=(e.q-1)*3+1),Ye(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ye(e.u)||(e.S=d4(e.u)),[Object.keys(e).reduce((o,a)=>{const s=t(a);return s&&(o[s]=e[a]),o},{}),n,r]}let xg=null;function mse(){return xg||(xg=Xe.fromMillis(1555555555555)),xg}function pse(e,t){if(e.literal)return e;const n=fr.macroTokenToFormatOpts(e.val),r=YD(n,t);return r==null||r.includes(void 0)?e:r}function JD(e,t){return Array.prototype.concat(...e.map(n=>pse(n,t)))}class QD{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=JD(fr.parseFormat(n),t),this.units=this.tokens.map(r=>lse(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=use(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=fse(t,this.regex,this.handlers),[i,o,a]=r?hse(r):[null,null,void 0];if(jl(r,"a")&&jl(r,"H"))throw new ml("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:o,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function XD(e,t,n){return new QD(e,n).explainFromTokens(t)}function gse(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:a}=XD(e,t,n);return[r,i,o,a]}function YD(e,t){if(!e)return null;const r=fr.create(t,e).dtFormatter(mse()),i=r.formatToParts(),o=r.resolvedOptions();return i.map(a=>dse(a,e,o))}const Sg="Invalid DateTime",fx=864e13;function Dc(e){return new $i("unsupported zone",`the zone "${e.name}" is not supported`)}function _g(e){return e.weekData===null&&(e.weekData=zh(e.c)),e.weekData}function Ag(e){return e.localWeekData===null&&(e.localWeekData=zh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function qa(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Xe({...n,...t,old:n})}function eM(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const o=n.offset(r);return i===o?[r,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function lf(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Lf(e,t,n){return eM(km(e),t,n)}function hx(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:r,month:i,day:Math.min(e.c.day,Nh(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Lt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=km(o);let[l,c]=eM(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function Qs(e,t,n,r,i,o){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=Xe.fromObject(e,{...n,zone:l,specificOffset:o});return a?c:c.setZone(s)}else return Xe.invalid(new $i("unparsable",`the input "${i}" can't be parsed as ${r}`))}function cf(e,t,n=!0){return e.isValid?fr.create(Bt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Cg(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=On(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=On(e.c.month),n==="month")return i;i+="-"}else if(i+=On(e.c.month),n==="month")return i;return i+=On(e.c.day),i}function mx(e,t,n,r,i,o,a){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=On(e.c.hour),a==="hour")break;if(t){if(l+=":",l+=On(e.c.minute),a==="minute")break;s&&(l+=":",l+=On(e.c.second))}else{if(l+=On(e.c.minute),a==="minute")break;s&&(l+=On(e.c.second))}if(a==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=On(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!o?l+="Z":e.o<0?(l+="-",l+=On(Math.trunc(-e.o/60)),l+=":",l+=On(Math.trunc(-e.o%60))):(l+="+",l+=On(Math.trunc(e.o/60)),l+=":",l+=On(Math.trunc(e.o%60)))),o&&(l+="["+e.zone.ianaName+"]"),l}const tM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},vse={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},bse={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Df=["year","month","day","hour","minute","second","millisecond"],yse=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],wse=["year","ordinal","hour","minute","second","millisecond"];function Mf(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new tD(e);return t}function px(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mf(e)}}function kse(e){if(Mc===void 0&&(Mc=kn.now()),e.type!=="iana")return e.offset(Mc);const t=e.name;let n=p1.get(t);return n===void 0&&(n=e.offset(Mc),p1.set(t,n)),n}function gx(e,t){const n=ua(t.zone,kn.defaultZone);if(!n.isValid)return Xe.invalid(Dc(n));const r=Bt.fromObject(t);let i,o;if(Ye(e.year))i=kn.now();else{for(const l of Df)Ye(e[l])&&(e[l]=tM[l]);const a=ED(e)||ID(e);if(a)return Xe.invalid(a);const s=kse(n);[i,o]=Lf(e,s,n)}return new Xe({ts:i,zone:n,loc:r,o})}function vx(e,t,n){const r=Ye(n.round)?!0:n.round,i=Ye(n.rounding)?"trunc":n.rounding,o=(s,l)=>(s=u4(s,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(s,l)),a=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return o(a(n.unit),n.unit);for(const s of n.units){const l=a(s);if(Math.abs(l)>=1)return o(l,s)}return o(e>t?-0:0,n.units[n.units.length-1])}function bx(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let Mc;const p1=new Map;class Xe{constructor(t){const n=t.zone||kn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new $i("invalid input"):null)||(n.isValid?null:Dc(n));this.ts=Ye(t.ts)?kn.now():t.ts;let i=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,o]=[t.old.c,t.old.o];else{const s=ya(t.o)&&!t.old?t.o:n.offset(this.ts);i=lf(this.ts,s),r=Number.isNaN(i.year)?new $i("invalid input"):null,i=r?null:i,o=r?null:s}this._zone=n,this.loc=t.loc||Bt.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new Xe({})}static local(){const[t,n]=bx(arguments),[r,i,o,a,s,l,c]=n;return gx({year:r,month:i,day:o,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=bx(arguments),[r,i,o,a,s,l,c]=n;return t.zone=xr.utcInstance,gx({year:r,month:i,day:o,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=Yoe(t)?t.valueOf():NaN;if(Number.isNaN(r))return Xe.invalid("invalid input");const i=ua(n.zone,kn.defaultZone);return i.isValid?new Xe({ts:r,zone:i,loc:Bt.fromObject(n)}):Xe.invalid(Dc(i))}static fromMillis(t,n={}){if(ya(t))return t<-fx||t>fx?Xe.invalid("Timestamp out of range"):new Xe({ts:t,zone:ua(n.zone,kn.defaultZone),loc:Bt.fromObject(n)});throw new ur(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ya(t))return new Xe({ts:t*1e3,zone:ua(n.zone,kn.defaultZone),loc:Bt.fromObject(n)});throw new ur("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=ua(n.zone,kn.defaultZone);if(!r.isValid)return Xe.invalid(Dc(r));const i=Bt.fromObject(n),o=Fh(t,px),{minDaysInFirstWeek:a,startOfWeek:s}=tx(o,i),l=kn.now(),c=Ye(n.specificOffset)?r.offset(l):n.specificOffset,d=!Ye(o.ordinal),u=!Ye(o.year),h=!Ye(o.month)||!Ye(o.day),m=u||h,f=o.weekYear||o.weekNumber;if((m||d)&&f)throw new ml("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&d)throw new ml("Can't mix ordinal dates with month/day");const p=f||o.weekday&&!m;let b,v,g=lf(l,c);p?(b=yse,v=vse,g=zh(g,a,s)):d?(b=wse,v=bse,g=kg(g)):(b=Df,v=tM);let k=!1;for(const $ of b){const F=o[$];Ye(F)?k?o[$]=v[$]:o[$]=g[$]:k=!0}const S=p?Joe(o,a,s):d?Qoe(o):ED(o),w=S||ID(o);if(w)return Xe.invalid(w);const x=p?Y3(o,a,s):d?ex(o):o,[L,C]=Lf(x,c,r),I=new Xe({ts:L,zone:r,o:C,loc:i});return o.weekday&&m&&t.weekday!==I.weekday?Xe.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${I.toISO()}`):I.isValid?I:Xe.invalid(I.invalid)}static fromISO(t,n={}){const[r,i]=Bae(t);return Qs(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=Hae(t);return Qs(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Uae(t);return Qs(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Ye(t)||Ye(n))throw new ur("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:o=null}=r,a=Bt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,l,c,d]=gse(a,t,n);return d?Xe.invalid(d):Qs(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return Xe.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=Qae(t);return Qs(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new ur("need to specify a reason the DateTime is invalid");const r=t instanceof $i?t:new $i(t,n);if(kn.throwOnInvalid)throw new _oe(r);return new Xe({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=YD(t,Bt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return JD(fr.parseFormat(t),Bt.fromObject(n)).map(i=>i.val).join("")}static resetCache(){Mc=void 0,p1.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?_g(this).weekYear:NaN}get weekNumber(){return this.isValid?_g(this).weekNumber:NaN}get weekday(){return this.isValid?_g(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ag(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ag(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ag(this).weekYear:NaN}get ordinal(){return this.isValid?kg(this.c).ordinal:NaN}get monthShort(){return this.isValid?af.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?af.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?af.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?af.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=km(this.c),i=this.zone.offset(r-t),o=this.zone.offset(r+t),a=this.zone.offset(r-i*n),s=this.zone.offset(r-o*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,d=lf(l,a),u=lf(c,s);return d.hour===u.hour&&d.minute===u.minute&&d.second===u.second&&d.millisecond===u.millisecond?[qa(this,{ts:l}),qa(this,{ts:c})]:[this]}get isInLeapYear(){return cu(this.year)}get daysInMonth(){return Nh(this.year,this.month)}get daysInYear(){return this.isValid?Sl(this.year):NaN}get weeksInWeekYear(){return this.isValid?md(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?md(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=fr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(xr.instance(t),n)}toLocal(){return this.setZone(kn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=ua(t,kn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const o=t.offset(this.ts),a=this.toObject();[i]=Lf(a,o,t)}return qa(this,{ts:i,zone:t})}else return Xe.invalid(Dc(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return qa(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Fh(t,px),{minDaysInFirstWeek:r,startOfWeek:i}=tx(n,this.loc),o=!Ye(n.weekYear)||!Ye(n.weekNumber)||!Ye(n.weekday),a=!Ye(n.ordinal),s=!Ye(n.year),l=!Ye(n.month)||!Ye(n.day),c=s||l,d=n.weekYear||n.weekNumber;if((c||a)&&d)throw new ml("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new ml("Can't mix ordinal dates with month/day");let u;o?u=Y3({...zh(this.c,r,i),...n},r,i):Ye(n.ordinal)?(u={...this.toObject(),...n},Ye(n.day)&&(u.day=Math.min(Nh(u.year,u.month),u.day))):u=ex({...kg(this.c),...n});const[h,m]=Lf(u,this.o,this.zone);return qa(this,{ts:h,o:m})}plus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t);return qa(this,hx(this,n))}minus(t){if(!this.isValid)return this;const n=Lt.fromDurationLike(t).negate();return qa(this,hx(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=Lt.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:a}=this;a<o&&(r.weekNumber=this.weekNumber-1),r.weekday=o}else r.weekday=1;if(i==="quarters"){const o=Math.ceil(this.month/3);r.month=(o-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?fr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Sg}toLocaleString(t=Rh,n={}){return this.isValid?fr.create(this.loc.clone(n),t).formatDateTime(this):Sg}toLocaleParts(t={}){return this.isValid?fr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:o=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Mf(a);const s=t==="extended";let l=Cg(this,s,a);return Df.indexOf(a)>=3&&(l+="T"),l+=mx(this,s,n,r,i,o,a),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?Cg(this,t==="extended",Mf(n)):null}toISOWeekDate(){return cf(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:o=!1,format:a="extended",precision:s="milliseconds"}={}){return this.isValid?(s=Mf(s),(i&&Df.indexOf(s)>=3?"T":"")+mx(this,a==="extended",n,t,r,o,s)):null}toRFC2822(){return cf(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return cf(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Cg(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),cf(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Sg}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Lt.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},o=eae(n).map(Lt.normalizeUnit),a=t.valueOf()>this.valueOf(),s=a?this:t,l=a?t:this,c=rse(s,l,o,i);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(Xe.now(),t,n)}until(t){return this.isValid?wn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(n,r)<=i&&i<=o.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Xe.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),vx(n,this.plus(r),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?vx(t.base||Xe.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Xe.isDateTime))throw new ur("min requires all arguments be DateTimes");return nx(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Xe.isDateTime))throw new ur("max requires all arguments be DateTimes");return nx(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:o=null}=r,a=Bt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return XD(a,t,n)}static fromStringExplain(t,n,r={}){return Xe.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,o=Bt.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new QD(o,t)}static fromFormatParser(t,n,r={}){if(Ye(t)||Ye(n))throw new ur("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:o=null}=r,a=Bt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!a.equals(n.locale))throw new ur(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:d}=n.explainFromTokens(t);return d?Xe.invalid(d):Qs(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return Rh}static get DATE_MED(){return nD}static get DATE_MED_WITH_WEEKDAY(){return Eoe}static get DATE_FULL(){return rD}static get DATE_HUGE(){return iD}static get TIME_SIMPLE(){return oD}static get TIME_WITH_SECONDS(){return aD}static get TIME_WITH_SHORT_OFFSET(){return sD}static get TIME_WITH_LONG_OFFSET(){return lD}static get TIME_24_SIMPLE(){return cD}static get TIME_24_WITH_SECONDS(){return dD}static get TIME_24_WITH_SHORT_OFFSET(){return uD}static get TIME_24_WITH_LONG_OFFSET(){return fD}static get DATETIME_SHORT(){return hD}static get DATETIME_SHORT_WITH_SECONDS(){return mD}static get DATETIME_MED(){return pD}static get DATETIME_MED_WITH_SECONDS(){return gD}static get DATETIME_MED_WITH_WEEKDAY(){return Ioe}static get DATETIME_FULL(){return vD}static get DATETIME_FULL_WITH_SECONDS(){return bD}static get DATETIME_HUGE(){return yD}static get DATETIME_HUGE_WITH_SECONDS(){return wD}}function yc(e){if(Xe.isDateTime(e))return e;if(e&&e.valueOf&&ya(e.valueOf()))return Xe.fromJSDate(e);if(e&&typeof e=="object")return Xe.fromObject(e);throw new ur(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function nM(e,t,n){let r=i=>e(i,...t);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:t})}function Na(e,t,n){let r=e.length-t.length;if(r===0)return e(...t);if(r===1)return nM(e,t,n);throw Error("Wrong number of arguments")}const p4={done:!1,hasNext:!1},xse=e=>({hasNext:!0,next:e,done:!1});function ks(e,...t){let n=e,r=t.map(o=>"lazy"in o?Sse(o):void 0),i=0;for(;i<t.length;){if(r[i]===void 0||!_se(n)){let l=t[i];n=l(n),i+=1;continue}let o=[];for(let l=i;l<t.length;l++){let c=r[l];if(c===void 0||(o.push(c),c.isSingle))break}let a=[];for(let l of n)if(rM(l,a,o))break;let{isSingle:s}=o.at(-1);n=s?a[0]:a,i+=o.length}return n}function rM(e,t,n){if(n.length===0)return t.push(e),!1;let r=e,i=p4,o=!1;for(let[a,s]of n.entries()){let{index:l,items:c}=s;if(c.push(r),i=s(r,l,c),s.index+=1,i.hasNext){if(i.hasMany??!1){for(let d of i.next)if(rM(d,t,n.slice(a+1)))return!0;return o}r=i.next}if(!i.hasNext)break;i.done&&(o=!0)}return i.hasNext&&t.push(r),o}function Sse(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??!1,index:0,items:[]})}function _se(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function Ase(e,t){let n=t.length-e.length;if(n===1){let[r,...i]=t;return ks(r,{lazy:e,lazyArgs:i})}if(n===0){let r={lazy:e,lazyArgs:t};return Object.assign(i=>ks(i,r),r)}throw Error("Wrong number of arguments")}function Cse(...e){return Na(Ese,e)}const Ese=(e,t)=>e.length>=t,iM={asc:(e,t)=>e>t,desc:(e,t)=>e<t};function Ise(e,t){let[n,...r]=t;if(!Tse(n))return e(n,g1(...r));let i=g1(n,...r);return o=>e(o,i)}function g1(e,t,...n){let r=typeof e=="function"?e:e[0],i=typeof e=="function"?"asc":e[1],{[i]:o}=iM,a=t===void 0?void 0:g1(t,...n);return(s,l)=>{let c=r(s),d=r(l);return o(c,d)?1:o(d,c)?-1:a?.(s,l)??0}}function Tse(e){if(yx(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[t,n,...r]=e;return yx(t)&&typeof n=="string"&&n in iM&&r.length===0}const yx=e=>typeof e=="function"&&e.length===1;function oM(...e){return Na(Object.entries,e)}function Lse(...e){return Na(Dse,e,Mse)}const Dse=(e,t)=>e.filter(t),Mse=e=>(t,n,r)=>e(t,n,r)?{done:!1,hasNext:!0,next:t}:p4;function Pse(...e){return Ise(Ose,e)}function Ose(e,t){if(!Cse(e,2))return e[0];let[n]=e,[,...r]=e;for(let i of r)t(i,n)<0&&(n=i);return n}function $se(e,t){return typeof e=="object"?wx(e,t):nM(wx,[],Rse)}const wx=(e,t)=>t===void 0?e.flat():e.flat(t),Rse=e=>e===void 0||e===1?zse:e<=0?xse:t=>Array.isArray(t)?{next:t.flat(e-1),hasNext:!0,hasMany:!0,done:!1}:{next:t,hasNext:!0,done:!1},zse=e=>Array.isArray(e)?{next:e,hasNext:!0,hasMany:!0,done:!1}:{next:e,hasNext:!0,done:!1};function Nse(...e){return Na(Fse,e,Vse)}const Fse=(e,t)=>e.flatMap(t),Vse=e=>(t,n,r)=>{let i=e(t,n,r);return Array.isArray(i)?{done:!1,hasNext:!0,hasMany:!0,next:i}:{done:!1,hasNext:!0,next:i}};function Vh(...e){return Na(jse,e)}const jse=(e,t)=>{let n=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r,e);if(o!==void 0){let a=n[o];a===void 0?n[o]=[i]:a.push(i)}}return Object.setPrototypeOf(n,Object.prototype),n};function aM(...e){return Na(Bse,e,Hse)}const Bse=(e,t)=>e.map(t),Hse=e=>(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)});function Use(...e){return Na(qse,e)}function qse(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=t(i,r,e);return n}function Zse(...e){return Ase(Wse,e)}function Wse(e){let t=e,n=new Set;return(r,i,o)=>{let a=t(r,i,o);return n.has(a)?p4:(n.add(a),{done:!1,hasNext:!0,next:r})}}function kx(...e){return Na(Object.values,e)}const io=["opencode","opencode-go","anthropic","github-copilot","openai","google","openrouter","vercel"],Gse=new Set(io);function fu(){const e=ar(),t=Jr(),n=j(()=>Oo(t.dir)??""),r=j(()=>{if(n()){const[l]=e.child(n());return l.provider}return e.data.provider}),i=j(()=>new Set(r().connected)),o=j(()=>r().all.filter(l=>i().has(l.id))),a=j(()=>o().filter(l=>l.id!=="opencode"||Object.values(l.models).find(c=>c.cost?.input))),s=j(()=>r().all.filter(l=>Gse.has(l.id)));return{all:j(()=>r().all),default:j(()=>r().default),popular:s,connected:o,paid:a}}const Kse=5;function df(e){return`${e.providerID}:${e.modelID}`}const{use:sM,provider:Jse}=Sn({name:"Models",init:()=>{const e=fu(),[t,n,r,i]=tr(Ln.global("model",["model.v1"]),He({user:[],recent:[],variant:{}})),o=j(()=>e.connected().flatMap(k=>Object.values(k.models).map(S=>({...S,provider:k})))),a=j(()=>new Map(o().map(k=>{const S=Xe.fromISO(k.release_date);return[df({providerID:k.provider.id,modelID:k.id}),S]}))),s=j(()=>ks(o(),Lse(k=>Math.abs((a().get(df({providerID:k.provider.id,modelID:k.id}))??Xe.invalid("invalid")).diffNow().as("months"))<6),Vh(k=>k.provider.id),Use(k=>ks(k,Vh(S=>S.family),kx(),S=>S.flatMap(w=>{const x=Pse(w,[L=>L.release_date,"desc"]);return x?[{modelID:x.id,providerID:x.provider.id}]:[]}))),kx(),$se())),l=j(()=>new Set(s().map(k=>df(k)))),c=j(()=>{const k=new Map;for(const S of t.user)k.set(`${S.providerID}:${S.modelID}`,S.visibility);return k}),d=j(()=>o().map(k=>({...k,name:k.name.replace("(latest)","").trim(),latest:k.name.includes("(latest)")}))),u=k=>d().find(S=>S.id===k.modelID&&S.provider.id===k.providerID);function h(k,S){const w=t.user.findIndex(x=>x.modelID===k.modelID&&x.providerID===k.providerID);if(w>=0){n("user",w,x=>({...x,visibility:S}));return}n("user",t.user.length,{...k,visibility:S})}const m=k=>{const S=df(k),w=c().get(S);return w==="hide"?!1:!!(w==="show"||l().has(S)||!a().get(S)?.isValid)},f=(k,S)=>{h(k,S?"show":"hide")},p=k=>{const S=Zse([k,...t.recent],w=>`${w.providerID}:${w.modelID}`);S.length>Kse&&S.pop(),n("recent",S)},b=k=>`${k.providerID}/${k.modelID}`,v=k=>t.variant?.[b(k)],g=(k,S)=>{const w=b(k);if(!t.variant){n("variant",{[w]:S});return}n("variant",w,S)};return{ready:i,list:d,find:u,visible:m,setVisibility:f,recent:{list:j(()=>t.recent),push:p},variant:{get:v,set:g}}}}),Qse="/ikanban/assets/alert-01-BuOD_o_q.aac",Xse="/ikanban/assets/alert-02-CS75AsoP.aac",Yse="data:audio/aac;base64,//FQQDH//N4CAExhdmM2MS4xOS4xMDEAAfyvVFpwtuuOeM5649e25vPOsut9UJFTNMURN2gyuPLiHNjECNLASbEBNrxFA6ArcbrGMqdzMBvEqz2OHkBVdB1SwLB2+d5XHm8sj7Omee7/aBhFluSUr+hGMZNL39Rr2dLWzKIPs8ej5ZZXyht8ZO+cMmlgxTbLci5ylGTLDZ1Hnb5f26jGzpnKSKMRHf5W8armzfJlugFzr8s3Z41QYmPf1JCKR5jlsUT/r+9JR3+Xy9TWZlfKn9dLskUosULuqyVSns5f+2IHZ/yTK+Xv/bqUmzlFXyiDslFVg1GIQwQC7/L3+V+47io4GsWsuhiI8PX3FoA1N9hbZaEyFsQALTSqMMeg8m3VzyqDynqspgBFOPIxCFMME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34XSDUN+BVG+yd9O3sN9k203SG+ybT3VG8E1HuQaVMdL3YdkVuDLDUpVfdUaVKllUKUdfs7YNUCmF5HYBe51i6x+/GQXJ3UuKouTPSN7ZSK2ko8qLZU2HlgVSny1S+T9/8tWVRlptYVgZjYRWBZGOLAtCFkgHsqpe3nZCbwZaaUIH//FQQB///AEYN6xUtllcPPHz9fbV3NzgZbnrmIIqCConQI0M6R0mQI0D6Z2LrWVF8p+B8xoGyq1YUySAabFO2rVwybKnbVqNOLFhgPX5vC3u7Rp80xd3aNOMxYYC2LFXgNOMxYYDTjMWDgzITuNOMxYSDTjB7v5s8PxB7v5s8PxB7v5s8PxB7v5s8PxB7vt5y+E6H285fCdD7eeb4d0ZG/eb4d0ZG/eb4TC+bOMydGQ3ufM7DkN7nzOw5De58zsOQ3ufM7DkN7nzOw5De582eH4g9382eH4g93285fCdD7ecvhOh9vOXwnQ+3nL4Tofbzl8J0PmzjMCDfvN8Owgc//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH",ele="/ikanban/assets/alert-04-CaGsIGFP.aac",tle="/ikanban/assets/alert-05-D2gbGoRH.aac",nle="/ikanban/assets/alert-06-GK5Tqy6u.aac",rle="/ikanban/assets/alert-07-0r0kiLGz.aac",ile="/ikanban/assets/alert-08-CZowNquU.aac",ole="data:audio/aac;base64,//FQQDLf/N4CAExhdmM2MS4xOS4xMDEAAdyvR1hwRg0FhQFjN7ZOt9+esGfHMi8XeRRKlVMkwyQP7DuNBs+7x4MNvcYmIxL3cDxW0tNpFy8uPpPY8evQBQITSyKhghydWcCFQ85zgJ1b4EKhEtgyExNs9CoqJkM9sYy0HmzrbG2WhQmMMQtnBDV1ceRiGQmBPQqIlONwLSnV1c84zuptqYYQIcAZ1lgDd7tIhBgKZWRaLTq58iJTby7eAhgU7OlUbf7liMpwKABVMb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BAAd/8AO4gkCATwP/xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH",cle="/ikanban/assets/bip-bop-03-DXp7Zb0f.aac",dle="/ikanban/assets/bip-bop-04-CfVtpI7z.aac",ule="data:audio/aac;base64,//FQQCs//N4CAExhdmM2MS4xOS4xMDEAAcCmV8xheKlTbjPv+eL59vHtzXVay6lZCYt6DCyVzqmULK/Y5PF1u2YhjHuqjt8Bdf13p58rbz6+Q4xlCnFrgQxwps/feYVzqlgUM105pPY9vj14gCJt74/lZqQkIwk9gYYTkZXMoMq0/K+HoHxmvyF03KrlYe8XY25VkfE6sMLIa5B7XlZog84eZZFkRx7AlmW6kLJYBZNewM2efbqzwDkHiwLB27dewJr9j3T9p1TQPb/l+cf/meBZxC+D/8/2+vpDLc23NZxSJ38+v1t4jCDkR1YjgdWNOOApCwOIh26tnPqxzYjScnJx8RHk5+TsZpQwskqTVs3JghEKyQkT3j0ygAA51GQcMp/d/L+g/7OiB2/+fZtsrnVI3/H6XhIXO7HZ7ucSz9S9EtAihgow+Vr2E5KPdz5rgPRLxZ/V9MDg//FQQCe//ADum7KMXTB0wRIKzXRkFZrRAVmu9TniOn13u/Dd/FavcrfP9Pj283O+G//r6ffideVfvfA6hgmeVzZ1Ig9/puRgoy9LHjWNdSriXRywN2RSyJosqmxbR70i46x11WsW9cFoIoGs3I2qRHYd1hLIBnfYt4nlPIboHOmX/X4xtIBgXS3yuUhL85lcYqgwHgtUvM8WZ2rXJy6yhae+QSW94u7rrxooE0wWtGWbDxMbfvnDzilL6JcWjourHtAClC0wCI3cuCx0kK9FBi4JHj1vRqB6CtlRZ6zNeZpOFw/nJ9ofOch7+xyp63c3vq8fXc/jQ6DC7VXfP8z7fGFFpbVW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ByKDqOy4EklvASQDJAEKWHFrTdlXl1USqpqBgCiWQKAhIjWzPCqQNZKKhEyVTYJdjUiAALaFnGU50qFjg/Sp/STfQA8PDuL/I9AnVAC64BpugtHd4//FQQCuf/ADkN5kWtnqNhqZAr558c73zxO33qbcd9Unx3x7/F6rieL8fE5X1vh2KQat3ekwhmqffNql57zj2FnYZJ8clRlTrMI4fB1FmCdmYTwdghlsYTnZIlVgkOa80IaRZOllKmsWvhCbhbCIlLVOi+mcmk7xnkodk1NS8VCgiyaObJd3bS2xhWlQdTNmmYy0114KTFJWOCvBEebit7U3nMzMgo8g0zyAE1J4lcJzA7gIAcdpHlYa4mUhigENYAbMBoAAJHi5AxWIQmE1ZyvYvk0bsODEBkQtAtCCgk4nGJK9teCuTu9MK0PK2jEWYkz9fLnPtUsJTXD4dX0fCXx186EgEnBGZjZGvbKn12GluEgMxgZVGxO5szA0L1+D/x7O+55YkBkZz2ZgrU/DcPXrtxMz2avE4dvxjrj2XhJWbIZvd4wRjHVF/d6u7sie+YqswWD1IJ8zR369w//FQQCT//ADoNgAoW4MJB2FBKJBmcAoF3n164d5x9qz7+avrdudV7czmTWr34z6b59gtBQXpeKwVpdty3L5zxbhMwrHoxIau4shFJQplnSCL5lEwq3KRo3SMcJITyUBdnEmcpEiiKz2aGxQaNfrmubY2jsWxaLOpaLQ07mHFbZtmQXNbUhUb2TxbxbisNaWlpSiisMY2ziOK1YzIAAAFXJT5vAu7ydK7xBX/K/Wl2NVrTXzr43qUFAAZJkwJoM4mefeLc0/FQU1aaFLdwpoUFBTQAvEq7vh90YZgrOYGP1U07wsnRpoKpgtgV8KW4UFHXf8L8U6ViGaP53/leyxADpXSv/K63/9LDLDLBuulCfKzf816b/+lwgDDP8V/+q+dfbQU09gU1//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggBw==",mle="/ikanban/assets/bip-bop-08-DBf7Bwjz.aac",ple="/ikanban/assets/bip-bop-09-CxEgoAHQ.aac",gle="data:audio/aac;base64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SuRSV2ElcikrkUlcikBwHth7AYPyDI8gwHqUpciyMwWBxJZGYpI6hZHULI6hZHULI6hZHULI6hbv/xUEAgP/wA5jKAN2Rzb7/Lj2/T8fFcfN8e/55/0+/+skzhGqXKAGDDIk2YsxJkyZNBoNs6YhhlpEtM9i7FyaEiQ5EQPyPauVQEY0sjLgSqDBV+u5duXsnZvtpEqCKEEY78gEJQm5DFOZpxwRIRCS4RKvUV8Rjyt5RGjcI4bGkbmCI4TBVjX/hamVSTV51kWbGJGRK5cJtntH+hM5SKppGazQcwqS0zOmFgEXLUUxVk0VRVirJqFVoLENyFLOxVjrjcoobUQahRcLVirHaA3Wv2obVoNHaC6pJLVZG1SSWqSS1SSWqSXVsaqmoat4JqkksrKXEklqkqeNjXwqlCKvJe//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAc=",vle="data:audio/aac;base64,//FQQAOf/N4CAExhdmM2MS4xOS4xMDEAAjBADv/xUEABf/wBGEAH//FQQDY//AEEmZg9v2/b7hH2fr9/0v4v9X/9z7/b7/Y+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EABf/wBGCAH//FQQAF//AEYIAc=",Dle="/ikanban/assets/staplebops-03-Aug82oH0.aac",Mle="/ikanban/assets/staplebops-04-olyHi8qQ.aac",Ple="data:audio/aac;base64,//FQQAOf/N4CAExhdmM2MS4xOS4xMDEAAjBADv/xUEABf/wBGEAH//FQQC0//ADamYw9vQil+364rb9fzr3vd9/jet+/4B+n6LV1xbLEgMdtu7MDtda9I55eB+8xsHOAOXbfJaLASnpqwq2/PpAlQDw6ZMKTGy57oLWpSaiefz1TnakF+GIHATE7J4ZWV02TGmUiWIZTQSBaBMqkrJEsD2dVLsfPde6qwIjqcfVnp9KRf1bhDiAFClVyayc/StX/dDn3K8xjW7IHDum9RWfJcJR2McjkxB18wxfE57lceBhh6d/ncvyRRmESuD4utgVKTbaQjBTx+DuLvuhhkBJzoKx4szCt8H8vjDkx+HA3k1K7/JzLZExrOnkwn1Aaf8/0HyfXOY4f6mTarIayUBZAI/g51X/6tKhsm94RDy/dyYhfc94/yclyi2T43FVjSpkkECrJwKQg+S2cIzQooNa2H/nyuYnQDJ4rcf6KRSomyX3XGgmN4UQAFlEFPIQoFiJ4RAABKKH+uTwEghhT7YABwP/xUEBXv/wBBPev64HYn2B98v7AAAAAPv8fH1/uPaZZNOIsfWXNPSvTtMtlig3i2re8Y9vkiEapiT63DePiX2an/We6bpERQ4i88+FJRJNjPIojkY6qieSkR5bOROy7T+3fHWDNn5LP+dQ9GfptxkRk5cJCLLQMmlu0vRRIQfQkXM3WV0mIufMpyQWElk8nIkNYoZhp3SP13+Lpn4b+tVyzor6lPf6Xw2EQf671z39/5bC0T3TZH5azgbzIiPZpJOCSMX3LKoOjP9XF5EyqEISPBJQTyakjAX+oJJP6WREL0wkMNdiIqXLAiQi0MD+704SU7HyrRHYo7SHgRNd8k7+y+RCWsSYMUkkVdlIsXMgCRFUUYiBOPVT8IkUG4/Ya2ASGPk7BQfTZKjZpb1tU0tyLxrSMGnNM192tGfFro0lZR6lfruyYU27Z5B9Stv/T4rJWFJzr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aC7W5kqJfXA0TPmBgMiRa3/6SJWXr1efn/Q/jK6ERpznQzehhgzWpL7yl4T5cMce9liDEe5FJrmIwfJVbc6gAaeIp9AIwAmBALRVSkAdknQz+gNzJlEVK1vAnZa3dP2GITl66uwVggKmqbdt5BG9wrcJi7BwEF0wKpLcgyt1UyowFIHCgq8qjdA6+ccuNsWK0PZZO7vz/8VBAEV/8ANQrLgBYCff7ffnqj7fe2vf/8xHOChIlLgISN3KkdTsSMCCRgHtLMEthmLHNxDIcAji9cR2evl3HksluiW+1BLHZAlrOEEo0C1iESPIwlEIVMlh6JE2GI5jHEKziWGxhK0vBRVwklFhkxEIx5hGpCIlHgI/2KaWkx74ur1ur1ur1urw=",Ole="/ikanban/assets/staplebops-06-Cj_2vOI4.aac",$le="/ikanban/assets/staplebops-07-cqQEvbIf.aac",Rle="/ikanban/assets/yup-01-BtRq6dLN.aac",zle="data:audio/aac;base64,//FQQDHf/N4CAExhdmM2MS4xOS4xMDEAAcyvWGPmIMCQTBQb9q49VxMnmVM3d3JlXaplpsiZaqmaC5/q5dCoDHuGJkuPwKyrT2eegvBiI1ZdNrgazDGxESpkue+CFs64Pk9hmr4e3bGgQmM+RuJkPDt2E33tnb0HqbagIbSIddOe2JgJ3SMTDjz8HyYhh4MREqZZxpmn16gOTLBDHuLTZ166tKo2hL9BGeWnVz0At4JkvHFQ4Gss56ljcNMvYdwz89ewwwjPkVFQQBghOrqywXdvQDV7fbzxi2GJtLSXt44BmHI7i0WNOeNtufpPudnXRfnr8juJvdxpksphhghM5oKghComANTambPXjEQ2ILbbYthrLvdvgAm2LI7juLS7x6vLx6vbx6EwGw9i8XIey9vji4GIAAAGp1aVRtL3Dju34afn1ER6FRURB0+HjttwTIS1AUwQgRDTq2xMMAcACiP28f8PtD/rmwCHgdxGgFUu+cAOyUUW3y9RZhfENgrxrt3cQoxAQorwHu7iEfD/8VBAKj/8AQqbmYj1pFWa5aWX1OCysxqbN89cVUrnh69a/p9v3rROA/+O/PtzqdccaP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YdClBcvXOvn2pQ6C8DnBizRSgGABQMAEK4ZzI2dpA4qeXadKMEcIQHOiySlVJW1T9OScOooWcTyhNRRTBhgFFKLA0UFJ5Nm3GMVag6xbMSVuA//FQQCqf/ADwN5E2WEWKBIGwuFgqGwsJxIJwkJxEKAmF7dzi95l793n2lpOOf0+NXv315zvzX9dfh8/FPHE3AKDCrI0EOgqJMeZrmLSTUf9F9Bt4NFAw3LuXUDUeLJBSnPohU0UjRJSqh0ZoKUZFmpwbZ9lkDQwmKWjNMk/R7kRiuaqvyvtPo3i1L7F0asskwM1wCEsKhCGiyhtig0YsqcKTuZHxobVcVCKAFmoWE5zNxV9J61sLCvlZ6OMFwLxNmSvtXFkrkambd/Cc5SCoYwAxaGbY99G6y7d2SgaloYBSMCEgYnJsZrcBZkdwp8Le0TYAAAynV0fhdtq6ONZAAUNJaqGsnQXW340FFO8NAXjWtpfB7X43CvHEgALyOw/GfR8O82bOADLK+p4PZcL4Pa62lleIALyQaMg0fG7m+GgA5zgmEIUmLstFkxQC9V1xfoubgP/xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggB//xUEABf/wBGCAH//FQQAF//AEYIAf/8VBAAX/8ARggBw==",lM=[{id:"alert-01",label:"sound.option.alert01",src:Qse},{id:"alert-02",label:"sound.option.alert02",src:Xse},{id:"alert-03",label:"sound.option.alert03",src:Yse},{id:"alert-04",label:"sound.option.alert04",src:ele},{id:"alert-05",label:"sound.option.alert05",src:tle},{id:"alert-06",label:"sound.option.alert06",src:nle},{id:"alert-07",label:"sound.option.alert07",src:rle},{id:"alert-08",label:"sound.option.alert08",src:ile},{id:"alert-09",label:"sound.option.alert09",src:ole},{id:"alert-10",label:"sound.option.alert10",src:ale},{id:"bip-bop-01",label:"sound.option.bipbop01",src:sle},{id:"bip-bop-02",label:"sound.option.bipbop02",src:lle},{id:"bip-bop-03",label:"sound.option.bipbop03",src:cle},{id:"bip-bop-04",label:"sound.option.bipbop04",src:dle},{id:"bip-bop-05",label:"sound.option.bipbop05",src:ule},{id:"bip-bop-06",label:"sound.option.bipbop06",src:fle},{id:"bip-bop-07",label:"sound.option.bipbop07",src:hle},{id:"bip-bop-08",label:"sound.option.bipbop08",src:mle},{id:"bip-bop-09",label:"sound.option.bipbop09",src:ple},{id:"bip-bop-10",label:"sound.option.bipbop10",src:gle},{id:"staplebops-01",label:"sound.option.staplebops01",src:Tle},{id:"staplebops-02",label:"sound.option.staplebops02",src:Lle},{id:"staplebops-03",label:"sound.option.staplebops03",src:Dle},{id:"staplebops-04",label:"sound.option.staplebops04",src:Mle},{id:"staplebops-05",label:"sound.option.staplebops05",src:Ple},{id:"staplebops-06",label:"sound.option.staplebops06",src:Ole},{id:"staplebops-07",label:"sound.option.staplebops07",src:$le},{id:"nope-01",label:"sound.option.nope01",src:vle},{id:"nope-02",label:"sound.option.nope02",src:ble},{id:"nope-03",label:"sound.option.nope03",src:yle},{id:"nope-04",label:"sound.option.nope04",src:wle},{id:"nope-05",label:"sound.option.nope05",src:kle},{id:"nope-06",label:"sound.option.nope06",src:xle},{id:"nope-07",label:"sound.option.nope07",src:Sle},{id:"nope-08",label:"sound.option.nope08",src:_le},{id:"nope-09",label:"sound.option.nope09",src:Ale},{id:"nope-10",label:"sound.option.nope10",src:Cle},{id:"nope-11",label:"sound.option.nope11",src:Ele},{id:"nope-12",label:"sound.option.nope12",src:Ile},{id:"yup-01",label:"sound.option.yup01",src:Rle},{id:"yup-02",label:"sound.option.yup02",src:zle},{id:"yup-03",label:"sound.option.yup03",src:Nle},{id:"yup-04",label:"sound.option.yup04",src:Fle},{id:"yup-05",label:"sound.option.yup05",src:Vle},{id:"yup-06",label:"sound.option.yup06",src:jle}],xx=Object.fromEntries(lM.map(e=>[e.id,e.src]));function v1(e){if(e&&e in xx)return xx[e]}function jh(e){if(typeof Audio>"u"||!e)return;const t=new Audio(e);return t.play().catch(()=>{}),()=>{t.pause(),t.currentTime=0}}const Sx=500,Ble=1e3*60*60*24*30;function _x(e){const t=Date.now()-Ble,n=e.filter(r=>r.time>=t);return n.length<=Sx?n:n.slice(n.length-Sx)}function Hle(){return{session:{all:{},unseen:{},unseenCount:{},unseenHasError:{}},project:{all:{},unseen:{},unseenCount:{},unseenHasError:{}}}}function Ax(e){const t=Hle();return e.forEach(n=>{if(n.session){const r=t.session.all[n.session]??[];if(t.session.all[n.session]=[...r,n],!n.viewed){const i=t.session.unseen[n.session]??[];t.session.unseen[n.session]=[...i,n],t.session.unseenCount[n.session]=i.length+1,n.type==="error"&&(t.session.unseenHasError[n.session]=!0)}}if(n.directory){const r=t.project.all[n.directory]??[];if(t.project.all[n.directory]=[...r,n],!n.viewed){const i=t.project.unseen[n.directory]??[];t.project.unseen[n.directory]=[...i,n],t.project.unseenCount[n.directory]=i.length+1,n.type==="error"&&(t.project.unseenHasError[n.directory]=!0)}}}),t}const{use:_m,provider:Ule}=Sn({name:"Notification",init:()=>{const e=Jr(),t=qi(),n=ar(),r=Er(),i=Ts(),o=Kt(),a=[],s=j(()=>Oo(e.dir)),l=j(()=>e.id),[c,d,u,h]=tr(Ln.global("notification",["notification.v1"]),He({list:[]})),[m,f]=He(Ax(c.list)),p={pruned:!1,disposed:!1},b=(I,$,F)=>{f(I,"unseen",$,F),f(I,"unseenCount",$,F.length),f(I,"unseenHasError",$,F.some(N=>N.type==="error"))},v=I=>{I.session&&(f("session","all",I.session,($=[])=>[...$,I]),I.viewed||(f("session","unseen",I.session,($=[])=>[...$,I]),f("session","unseenCount",I.session,($=0)=>$+1),I.type==="error"&&f("session","unseenHasError",I.session,!0))),I.directory&&(f("project","all",I.directory,($=[])=>[...$,I]),I.viewed||(f("project","unseen",I.directory,($=[])=>[...$,I]),f("project","unseenCount",I.directory,($=0)=>$+1),I.type==="error"&&f("project","unseenHasError",I.directory,!0)))},g=I=>{if(I.session&&(f("session","all",I.session,($=[])=>$.filter(F=>F!==I)),!I.viewed)){const $=(m.session.unseen[I.session]??a).filter(F=>F!==I);b("session",I.session,$)}if(I.directory&&(f("project","all",I.directory,($=[])=>$.filter(F=>F!==I)),!I.viewed)){const $=(m.project.unseen[I.directory]??a).filter(F=>F!==I);b("project",I.directory,$)}};se(()=>{if(!h()||p.pruned)return;p.pruned=!0;const I=_x(c.list);_t(()=>{d("list",I),f($t(Ax(I),{merge:!1}))})});const k=I=>{const $=_x([...c.list,I]),F=new Set($),N=c.list.filter(D=>!F.has(D));_t(()=>{F.has(I)&&v(I),N.forEach(D=>g(D)),d("list",$)})},S=async(I,$)=>{if(!$)return;const[F]=n.child(I,{bootstrap:!1}),N=rn.search(F.session,$,D=>D.id);return N.found?F.session[N.index]:t.client.session.get({directory:I,sessionID:$}).then(D=>D.data).catch(()=>{})},w=(I,$)=>{const F=s(),N=l();return!F||!N||!$||I!==F?!1:$===N},x=(I,$,F)=>{const N=$.properties.sessionID;S(I,N).then(D=>{if(p.disposed||!D||D.parentID)return;i.sounds.agentEnabled()&&jh(v1(i.sounds.agent())),k({directory:I,time:F,viewed:w(I,N),type:"turn-complete",session:N});const T=`/${It(I)}/session/${N}`;i.notifications.agent()&&r.notify(o.t("notification.session.responseReady.title"),D.title??N,T)})},L=(I,$,F)=>{const N=$.properties.sessionID;S(I,N).then(D=>{if(p.disposed||D?.parentID)return;i.sounds.errorsEnabled()&&jh(v1(i.sounds.errors()));const T="error"in $.properties?$.properties.error:void 0;k({directory:I,time:F,viewed:w(I,N),type:"error",session:N??"global",error:T});const M=D?.title??(typeof T=="string"?T:o.t("notification.session.error.fallbackDescription")),R=N?`/${It(I)}/session/${N}`:`/${It(I)}`;i.notifications.errors()&&r.notify(o.t("notification.session.error.title"),M,R)})},C=t.event.listen(I=>{const $=I.details;if($.type!=="session.idle"&&$.type!=="session.error")return;const F=I.name,N=Date.now();if($.type==="session.idle"){x(F,$,N);return}L(F,$,N)});return he(()=>{p.disposed=!0,C()}),{ready:h,session:{all(I){return m.session.all[I]??a},unseen(I){return m.session.unseen[I]??a},unseenCount(I){return m.session.unseenCount[I]??0},unseenHasError(I){return m.session.unseenHasError[I]??!1},markViewed(I){const $=m.session.unseen[I]??a;if(!$.length)return;const F=[...new Set($.flatMap(N=>N.directory?[N.directory]:[]))];_t(()=>{d("list",N=>N.session===I&&!N.viewed,"viewed",!0),b("session",I,[]),F.forEach(N=>{const D=(m.project.unseen[N]??a).filter(T=>T.session!==I);b("project",N,D)})})}},project:{all(I){return m.project.all[I]??a},unseen(I){return m.project.unseen[I]??a},unseenCount(I){return m.project.unseenCount[I]??0},unseenHasError(I){return m.project.unseenHasError[I]??!1},markViewed(I){const $=m.project.unseen[I]??a;if(!$.length)return;const F=[...new Set($.flatMap(N=>N.session?[N.session]:[]))];_t(()=>{d("list",N=>N.directory===I&&!N.viewed,"viewed",!0),b("project",I,[]),F.forEach(N=>{const D=(m.session.unseen[N]??a).filter(T=>T.directory!==I);b("session",N,D)})})}}}}});function Pf(e,t){return t?`${It(t)}/${e}`:e}function qle(e,t,n){const r=Pf(t,n);return e[r]??e[t]}function Zle(e,t){const n=e.reduce((o,a)=>(a.parentID&&o.set(a.id,a.parentID),o),new Map),r=new Set([t]),i=[t];for(const o of i){const a=n.get(o);!a||r.has(a)||(r.add(a),i.push(a))}return i}function Cx(e,t,n,r){return Zle(t,n.sessionID).map(o=>qle(e,o,r)).find(o=>o!==void 0)??!1}function Wle(e){if(!e)return!1;if(typeof e=="string")return e!=="allow";if(typeof e!="object"||Array.isArray(e))return!1;for(const t of Object.values(e))if(t!=="allow")return!0;return!1}function Gle(e){return e?typeof e=="string"?e!=="allow":typeof e!="object"||Array.isArray(e)?!1:Object.values(e).some(Wle):!1}const{use:g4,provider:Kle}=Sn({name:"Permission",init:()=>{const e=Jr(),t=qi(),n=ar(),r=j(()=>{const w=Oo(e.dir);if(!w)return!1;const[x]=n.child(w);return Gle(x.config.permission)}),[i,o,a,s]=tr({...Ln.global("permission",["permission.v3"]),migrate(w){if(!w||typeof w!="object"||Array.isArray(w))return w;const x=w;return x.autoAccept?w:{...x,autoAccept:typeof x.autoAcceptEdits=="object"&&x.autoAcceptEdits&&!Array.isArray(x.autoAcceptEdits)?x.autoAcceptEdits:{}}}},He({autoAccept:{}})),l=1e3,c=3600*1e3,d=new Map,u=new Map;function h(w){for(const[x,L]of d){if(w-L<c)break;d.delete(x)}for(const x of d.keys()){if(d.size<=l)break;d.delete(x)}}const m=w=>{t.client.permission.respond(w).catch(()=>{d.delete(w.permissionID)})};function f(w,x){const L=Date.now(),C=d.has(w.id);d.delete(w.id),d.set(w.id,L),h(L),!C&&m({sessionID:w.sessionID,permissionID:w.id,response:"once",directory:x})}function p(w,x){const L=x?n.child(x,{bootstrap:!1})[0].session:[];return Cx(i.autoAccept,L,{sessionID:w},x)}function b(w,x){const L=x?n.child(x,{bootstrap:!1})[0].session:[];return Cx(i.autoAccept,L,w,x)}function v(w,x){const L=Pf(w,x),C=(u.get(L)??0)+1;return u.set(L,C),C}const g=t.event.listen(w=>{const x=w.details;if(x?.type!=="permission.asked")return;const L=x.properties;b(L,w.name)&&f(L,w.name)});he(g);function k(w,x){const L=Pf(w,x),C=v(w,x);o(st(I=>{I.autoAccept[L]=!0,delete I.autoAccept[w]})),t.client.permission.list({directory:x}).then(I=>{if(u.get(L)===C&&p(w,x))for(const $ of I.data??[])$?.id&&b($,x)&&f($,x)}).catch(()=>{})}function S(w,x){v(w,x);const L=x?Pf(w,x):w;o(st(C=>{C.autoAccept[L]=!1,x&&delete C.autoAccept[w]}))}return{ready:s,respond:m,autoResponds(w,x){return b(w,x)},isAutoAccepting:p,toggleAutoAccept(w,x){if(p(w,x)){S(w,x);return}k(w,x)},enableAutoAccept(w,x){p(w,x)||k(w,x)},disableAutoAccept(w,x){S(w,x)},permissionsEnabled:r}}}),b1=[{type:"text",content:"",start:0,end:0}];function Jle(e,t){return!e&&!t?!0:!e||!t?!1:e.startLine===t.startLine&&e.startChar===t.startChar&&e.endLine===t.endLine&&e.endChar===t.endChar}function Qle(e,t){switch(e.type){case"text":return t.type==="text"&&e.content===t.content;case"file":return t.type==="file"&&e.path===t.path&&Jle(e.selection,t.selection);case"agent":return t.type==="agent"&&e.name===t.name;case"image":return t.type==="image"&&e.id===t.id}}function Xle(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Qle(e[n],t[n]))return!1;return!0}function Yle(e){if(e)return{...e}}function ece(e){return e.type==="text"?{...e}:e.type==="image"?{...e}:e.type==="agent"?{...e}:{...e,selection:Yle(e.selection)}}function y1(e){return e.map(ece)}function Eg(e){if(e.type!=="file")return e.type;const t=e.selection?.startLine,n=e.selection?.endLine,r=`${e.type}:${e.path}:${t}:${n}`;if(e.commentID)return`${r}:c=${e.commentID}`;const i=e.comment?.trim();if(!i)return r;const o=Ff(i)??i;return`${r}:c=${o.slice(0,8)}`}function tce(e){return e.type==="file"&&!!e.comment?.trim()}function nce(e){return{set(t,n){const r=y1(t);_t(()=>{e("prompt",r),n!==void 0&&e("cursor",n)})},reset(){_t(()=>{e("prompt",y1(b1)),e("cursor",0)})}}}const rce="__workspace__",ice=20;function oce(e,t){const n=`${e}/prompt${t?"/"+t:""}.v2`,[r,i,o,a]=tr(Ln.scoped(e,t,"prompt",[n]),He({prompt:y1(b1),cursor:void 0,context:{items:[]}})),s=nce(i);return{ready:a,current:j(()=>r.prompt),cursor:j(()=>r.cursor),dirty:j(()=>!Xle(r.prompt,b1)),context:{items:j(()=>r.context.items),add(l){const c=Eg(l);r.context.items.find(d=>d.key===c)||i("context","items",d=>[...d,{key:c,...l}])},remove(l){i("context","items",c=>c.filter(d=>d.key!==l))},removeComment(l,c){i("context","items",d=>d.filter(u=>!(u.type==="file"&&u.path===l&&u.commentID===c)))},updateComment(l,c,d){i("context","items",u=>u.map(h=>{if(h.type!=="file"||h.path!==l||h.commentID!==c)return h;const m={...h,...d};return{...m,key:Eg(m)}}))},replaceComments(l){i("context","items",c=>[...c.filter(d=>!tce(d)),...l.map(d=>({...d,key:Eg(d)}))])}},set:s.set,reset:s.reset}}const{use:uve,provider:ace}=Sn({name:"Prompt",gate:!1,init:()=>{const e=Jr(),t=new Map;he(()=>{for(const a of t.values())a.dispose();t.clear()});const r=()=>{for(;t.size>ice;){const a=t.keys().next().value;if(!a)return;t.get(a)?.dispose(),t.delete(a)}},i=(a,s)=>{const l=`${a}:${s??rce}`,c=t.get(l);if(c)return t.delete(l),t.set(l,c),c.value;const d=Nn(u=>({value:oce(a,s),dispose:u}));return t.set(l,d),r(),d.value},o=j(()=>i(e.dir,e.id));return{ready:()=>o().ready(),current:()=>o().current(),cursor:()=>o().cursor(),dirty:()=>o().dirty(),context:{items:()=>o().context.items(),add:a=>o().context.add(a),remove:a=>o().context.remove(a),removeComment:(a,s)=>o().context.removeComment(a,s),updateComment:(a,s,l)=>o().context.updateComment(a,s,l),replaceComments:a=>o().context.replaceComments(a)},set:(a,s)=>o().set(a,s),reset:()=>o().reset()}}}),sce="__workspace__",lce=20;function cM(e){return`${e}:${sce}`}function w1(e,t){return t?[`${e}/terminal/${t}.v1`,`${e}/terminal.v1`]:[`${e}/terminal.v1`]}const k1=new Set;function cce(e,t,n){const r=cM(e);for(const o of k1)o.get(r)?.value.clear();Sh(Ln.workspace(e,"terminal"),n);const i=new Set(w1(e));for(const o of t??[])for(const a of w1(e,o))i.add(a);for(const o of i)Sh({key:o},n)}function dce(e,t,n){const r=w1(t,n),i=m=>{const f=m.match(/^Terminal (\d+)$/);if(!f)return;const p=Number(f[1]);if(!(!Number.isFinite(p)||p<=0))return p},[o,a,s,l]=tr(Ln.workspace(t,"terminal",r),He({all:[]})),c=()=>{const m=new Set(o.all.flatMap(f=>{const p=Number.isFinite(f.titleNumber)&&f.titleNumber>0?f.titleNumber:void 0;if(p!==void 0)return[p];const b=i(f.title);return b===void 0?[]:[b]}));return Array.from({length:m.size+1},(f,p)=>p+1).find(f=>!m.has(f))??1},d=m=>{const f=o.all,p=f.findIndex(v=>v.id===m);if(p===-1)return;const b=o.active===m?p===0?f[1]?.id:f[0]?.id:o.active;_t(()=>{a("active",b),a("all",st(v=>{v.splice(p,1)}))})},u=e.event.on("pty.exited",m=>{d(m.properties.id)});he(u);const h={migrated:!1};return se(()=>{l()&&(h.migrated||(h.migrated=!0,a("all",m=>{const f=m.map(p=>{if((Number.isFinite(p.titleNumber)&&p.titleNumber>0?p.titleNumber:void 0)!==void 0)return p;const v=i(p.title);return v===void 0?p:{...p,titleNumber:v}});return f.every((p,b)=>p===m[b])?m:f})))}),{ready:l,all:j(()=>o.all),active:j(()=>o.active),clear(){_t(()=>{a("active",void 0),a("all",[])})},new(){const m=c();e.client.pty.create({title:`Terminal ${m}`}).then(f=>{const p=f.data?.id;if(!p)return;const b={id:p,title:f.data?.title??"Terminal",titleNumber:m};a("all",o.all.length,b),a("active",p)}).catch(f=>{console.error("Failed to create terminal",f)})},update(m){const f=o.all.findIndex(b=>b.id===m.id),p=f>=0?o.all[f]:void 0;f>=0&&a("all",f,b=>({...b,...m})),e.client.pty.update({ptyID:m.id,title:m.title,size:m.cols&&m.rows?{rows:m.rows,cols:m.cols}:void 0}).catch(b=>{if(p){const v=o.all.findIndex(g=>g.id===m.id);v>=0&&a("all",v,p)}console.error("Failed to update terminal",b)})},async clone(m){const f=o.all.findIndex(g=>g.id===m),p=o.all[f];if(!p)return;const b=await e.client.pty.create({title:p.title}).catch(g=>{console.error("Failed to clone terminal",g)});if(!b?.data)return;const v=o.active===p.id;_t(()=>{a("all",f,{id:b.data.id,title:b.data.title??p.title,titleNumber:p.titleNumber,buffer:void 0,cursor:void 0,scrollY:void 0,rows:void 0,cols:void 0}),v&&a("active",b.data.id)})},open(m){a("active",m)},next(){const m=o.all.findIndex(p=>p.id===o.active);if(m===-1)return;const f=(m+1)%o.all.length;a("active",o.all[f]?.id)},previous(){const m=o.all.findIndex(p=>p.id===o.active);if(m===-1)return;const f=m===0?o.all.length-1:m-1;a("active",o.all[f]?.id)},async close(m){const f=o.all.findIndex(p=>p.id===m);f!==-1&&_t(()=>{if(o.active===m){const p=f>0?o.all[f-1]?.id:o.all[1]?.id;a("active",p)}a("all",st(p=>{p.splice(f,1)}))}),await e.client.pty.remove({ptyID:m}).catch(p=>{console.error("Failed to close terminal",p)})},move(m,f){const p=o.all.findIndex(b=>b.id===m);p!==-1&&a("all",st(b=>{b.splice(f,0,b.splice(p,1)[0])}))}}}const{use:fve,provider:uce}=Sn({name:"Terminal",gate:!1,init:()=>{const e=bm(),t=Jr(),n=new Map;k1.add(n),he(()=>k1.delete(n)),he(()=>{for(const s of n.values())s.dispose();n.clear()});const i=()=>{for(;n.size>lce;){const s=n.keys().next().value;if(!s)return;n.get(s)?.dispose(),n.delete(s)}},o=(s,l)=>{const c=cM(s),d=n.get(c);if(d)return n.delete(c),n.set(c,d),d.value;const u=Nn(h=>({value:dce(e,s,l),dispose:h}));return n.set(c,u),i(),u.value},a=j(()=>o(t.dir,t.id));return{ready:()=>a().ready(),all:()=>a().all(),active:()=>a().active(),new:()=>a().new(),update:s=>a().update(s),clone:s=>a().clone(s),open:s=>a().open(s),close:s=>a().close(s),move:(s,l)=>a().move(s,l),next:()=>a().next(),previous:()=>a().previous()}}});function fce(e){if(e.agent?.variant&&e.agent.model&&e.model?.variants&&e.agent.model.providerID===e.model.providerID&&e.agent.model.modelID===e.model.modelID&&e.agent.variant in e.model.variants)return e.agent.variant}function hce(e){if(e.selected&&e.variants.includes(e.selected))return e.selected;if(e.configured&&e.variants.includes(e.configured))return e.configured}function mce(e){if(e.variants.length!==0){if(e.selected&&e.variants.includes(e.selected)){const t=e.variants.indexOf(e.selected);return t===e.variants.length-1?void 0:e.variants[t+1]}if(e.configured&&e.variants.includes(e.configured)){const t=e.variants.indexOf(e.configured);return t===e.variants.length-1?e.variants[0]:e.variants[t+1]}return e.variants[0]}}const{use:hve,provider:pce}=Sn({name:"Local",init:()=>{const e=bm(),t=o4(),n=fu(),r=j(()=>new Set(n.connected().map(d=>d.id)));function i(d){return!!n.all().find(h=>h.id===d.providerID)?.models[d.modelID]&&r().has(d.providerID)}function o(...d){for(const u of d){const h=u();if(h&&i(h))return h}}let a=()=>{};const s=(()=>{const d=j(()=>t.data.agent.filter(m=>m.mode!=="subagent"&&!m.hidden)),[u,h]=He({current:d()[0]?.name});return{list:d,current(){const m=d();if(m.length!==0)return m.find(f=>f.name===u.current)??m[0]},set(m){const f=d();if(f.length===0){h("current",void 0);return}if(m&&f.some(p=>p.name===m)){h("current",m);return}h("current",f[0].name)},move(m){const f=d();if(f.length===0){h("current",void 0);return}let p=f.findIndex(v=>v.name===u.current)+m;p<0&&(p=f.length-1),p>=f.length&&(p=0);const b=f[p];b&&(h("current",b.name),b.model&&a({providerID:b.model.providerID,modelID:b.model.modelID}))}}})(),l=(()=>{const d=sM(),[u,h]=He({model:{}}),m=()=>{if(!t.data.config.model)return;const[w,x]=t.data.config.model.split("/"),L={providerID:w,modelID:x};if(i(L))return L},f=()=>{for(const w of d.recent.list())if(i(w))return w},p=()=>{const w=n.default();for(const x of n.connected()){const L=w[x.id];if(L){const $={providerID:x.id,modelID:L};if(i($))return $}const C=Object.values(x.models)[0];if(!C)continue;const I={providerID:x.id,modelID:C.id};if(i(I))return I}},b=j(()=>m()??f()??p()),v=j(()=>{const w=s.current();if(!w)return;const x=o(()=>u.model[w.name],()=>w.model,b);if(x)return d.find(x)}),g=j(()=>d.recent.list().map(d.find).filter(Boolean)),k=w=>{const x=g(),L=v();if(!L)return;const C=x.findIndex(F=>F?.provider.id===L.provider.id&&F?.id===L.id);if(C===-1)return;let I=C+w;I<0&&(I=x.length-1),I>=x.length&&(I=0);const $=x[I];$&&l.set({providerID:$.provider.id,modelID:$.id})},S=(w,x)=>{_t(()=>{const L=s.current(),C=w??b();L&&h("model",L.name,C),w&&d.setVisibility(w,!0),x?.recent&&w&&d.recent.push(w)})};return a=S,{ready:d.ready,current:v,recent:g,list:d.list,cycle:k,set:S,visible(w){return d.visible(w)},setVisibility(w,x){d.setVisibility(w,x)},variant:{configured(){const w=s.current(),x=v();if(!(!w||!x))return fce({agent:{model:w.model,variant:w.variant},model:{providerID:x.provider.id,modelID:x.id,variants:x.variants}})},selected(){const w=v();if(w)return d.variant.get({providerID:w.provider.id,modelID:w.id})},current(){return hce({variants:this.list(),selected:this.selected(),configured:this.configured()})},list(){const w=v();return w?w.variants?Object.keys(w.variants):[]:[]},set(w){const x=v();x&&d.variant.set({providerID:x.provider.id,modelID:x.id},w)},cycle(){const w=this.list();w.length!==0&&this.set(mce({variants:w,selected:this.selected(),configured:this.configured()}))}}}})();return{slug:j(()=>It(e.directory)),model:l,agent:s}}});function gce(e){const t=Jr(),n=Ra(),r=o4();return y(uH,{get data(){return r.data},get directory(){return e.directory},onNavigateToSession:i=>n(`/${t.dir}/session/${i}`),onSessionHref:i=>`/${t.dir}/session/${i}`,get children(){return y(pce,{get children(){return e.children}})}})}function vce(e){const t=Jr(),n=Ra(),r=Kt(),[i,o]=He({invalid:""}),a=j(()=>Oo(t.dir)??"");return se(()=>{t.dir&&(a()||i.invalid!==t.dir&&(o("invalid",t.dir),Ft({variant:"error",title:r.t("common.requestFailed"),description:r.t("directory.error.invalidUrl")}),n("/",{replace:!0})))}),y(de,{get when(){return a()},get children(){return y(cie,{directory:a,get children(){return y(Pie,{get children(){return y(gce,{get directory(){return a()},get children(){return e.children}})}})}})}})}var bce=Q("<div>");function yce(e){const[t,n]=ue(e,["direction","edge","size","min","max","onResize","onCollapse","collapseThreshold","class","classList"]),r=i=>{i.preventDefault();const o=t.edge??(t.direction==="vertical"?"start":"end"),a=t.direction==="horizontal"?i.clientX:i.clientY,s=t.size;let l=s;document.body.style.userSelect="none",document.body.style.overflow="hidden";const c=u=>{const h=t.direction==="horizontal"?u.clientX:u.clientY,m=t.direction==="vertical"?o==="end"?h-a:a-h:o==="start"?a-h:h-a;l=s+m;const f=Math.min(t.max,Math.max(t.min,l));t.onResize(f)},d=()=>{document.body.style.userSelect="",document.body.style.overflow="",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d);const u=t.collapseThreshold??0;t.onCollapse&&u>0&&l<u&&t.onCollapse()};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d)};return(()=>{var i=bce();return nr(i,ee(n,{"data-component":"resize-handle",get"data-direction"(){return t.direction},get"data-edge"(){return t.edge??(t.direction==="vertical"?"start":"end")},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},onMouseDown:r}),!1,!1),i})()}var wce=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),kce=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function xce(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return wce.has(n)}const t=e.split("-")[0];return kce.has(t)}function Sce(e){return xce(e)?"rtl":"ltr"}function dM(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Sce(e)}}var x1=dM(),Pc=new Set;function Ex(){x1=dM();for(const e of Pc)e(x1)}function _ce(){const[e,t]=me(x1),n=j(()=>e());return Wt(()=>{Pc.size===0&&window.addEventListener("languagechange",Ex),Pc.add(t),he(()=>{Pc.delete(t),Pc.size===0&&window.removeEventListener("languagechange",Ex)})}),{locale:()=>n().locale,direction:()=>n().direction}}var Ace=Ct();function Zi(){const e=_ce();return yt(Ace)||e}var Ig=new Map;function uM(e){const{locale:t}=Zi(),n=j(()=>t()+(e?Object.entries(e).sort((r,i)=>r[0]<i[0]?-1:1).join():""));return j(()=>{const r=n();let i;return Ig.has(r)&&(i=Ig.get(r)),i||(i=new Intl.Collator(t(),e),Ig.set(r,i)),i})}const Cce=["top","right","bottom","left"],Ia=Math.min,Br=Math.max,Bh=Math.round,uf=Math.floor,uo=e=>({x:e,y:e}),Ece={left:"right",right:"left",bottom:"top",top:"bottom"};function S1(e,t,n){return Br(e,Ia(t,n))}function Os(e,t){return typeof e=="function"?e(t):e}function Ta(e){return e.split("-")[0]}function ic(e){return e.split("-")[1]}function fM(e){return e==="x"?"y":"x"}function v4(e){return e==="y"?"height":"width"}function $o(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function b4(e){return fM($o(e))}function Ice(e,t,n){n===void 0&&(n=!1);const r=ic(e),i=b4(e),o=v4(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Hh(a)),[a,Hh(a)]}function Tce(e){const t=Hh(e);return[_1(e),t,_1(t)]}function _1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ix=["left","right"],Tx=["right","left"],Lce=["top","bottom"],Dce=["bottom","top"];function Mce(e,t,n){switch(e){case"top":case"bottom":return n?t?Tx:Ix:t?Ix:Tx;case"left":case"right":return t?Lce:Dce;default:return[]}}function Pce(e,t,n,r){const i=ic(e);let o=Mce(Ta(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(_1)))),o}function Hh(e){const t=Ta(e);return Ece[t]+e.slice(t.length)}function Oce(e){return{top:0,right:0,bottom:0,left:0,...e}}function hM(e){return typeof e!="number"?Oce(e):{top:e,right:e,bottom:e,left:e}}function Uh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Lx(e,t,n){let{reference:r,floating:i}=e;const o=$o(t),a=b4(t),s=v4(a),l=Ta(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let m;switch(l){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-i.width,y:u};break;default:m={x:r.x,y:r.y}}switch(ic(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}async function $ce(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=Os(t,e),f=hM(m),b=s[h?u==="floating"?"reference":"floating":u],v=Uh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),g=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),S=await(o.isElement==null?void 0:o.isElement(k))?await(o.getScale==null?void 0:o.getScale(k))||{x:1,y:1}:{x:1,y:1},w=Uh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:k,strategy:l}):g);return{top:(v.top-w.top+f.top)/S.y,bottom:(w.bottom-v.bottom+f.bottom)/S.y,left:(v.left-w.left+f.left)/S.x,right:(w.right-v.right+f.right)/S.x}}const Rce=50,zce=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:$ce},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Lx(c,r,l),h=r,m=0;const f={};for(let p=0;p<o.length;p++){const b=o[p];if(!b)continue;const{name:v,fn:g}=b,{x:k,y:S,data:w,reset:x}=await g({x:d,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});d=k??d,u=S??u,f[v]={...f[v],...w},x&&m<Rce&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(c=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:d,y:u}=Lx(c,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:i,middlewareData:f}},Nce=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Os(e,t)||{};if(c==null)return{};const u=hM(d),h={x:n,y:r},m=b4(i),f=v4(m),p=await a.getDimensions(c),b=m==="y",v=b?"top":"left",g=b?"bottom":"right",k=b?"clientHeight":"clientWidth",S=o.reference[f]+o.reference[m]-h[m]-o.floating[f],w=h[m]-o.reference[m],x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let L=x?x[k]:0;(!L||!await(a.isElement==null?void 0:a.isElement(x)))&&(L=s.floating[k]||o.floating[f]);const C=S/2-w/2,I=L/2-p[f]/2-1,$=Ia(u[v],I),F=Ia(u[g],I),N=$,D=L-p[f]-F,T=L/2-p[f]/2+C,M=S1(N,T,D),R=!l.arrow&&ic(i)!=null&&T!==M&&o.reference[f]/2-(T<N?$:F)-p[f]/2<0,G=R?T<N?T-N:T-D:0;return{[m]:h[m]+G,data:{[m]:M,centerOffset:T-M-G,...R&&{alignmentOffset:G}},reset:R}}}),Fce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...b}=Os(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Ta(i),g=$o(s),k=Ta(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=h||(k||!p?[Hh(s)]:Tce(s)),x=f!=="none";!h&&x&&w.push(...Pce(s,p,f,S));const L=[s,...w],C=await l.detectOverflow(t,b),I=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&I.push(C[v]),u){const T=Ice(i,a,S);I.push(C[T[0]],C[T[1]])}if($=[...$,{placement:i,overflows:I}],!I.every(T=>T<=0)){var F,N;const T=(((F=o.flip)==null?void 0:F.index)||0)+1,M=L[T];if(M&&(!(u==="alignment"?g!==$o(M):!1)||$.every(K=>$o(K.placement)===g?K.overflows[0]>0:!0)))return{data:{index:T,overflows:$},reset:{placement:M}};let R=(N=$.filter(G=>G.overflows[0]<=0).sort((G,K)=>G.overflows[1]-K.overflows[1])[0])==null?void 0:N.placement;if(!R)switch(m){case"bestFit":{var D;const G=(D=$.filter(K=>{if(x){const U=$o(K.placement);return U===g||U==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(U=>U>0).reduce((U,q)=>U+q,0)]).sort((K,U)=>K[1]-U[1])[0])==null?void 0:D[0];G&&(R=G);break}case"initialPlacement":R=s;break}if(i!==R)return{reset:{placement:R}}}return{}}}};function Dx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mx(e){return Cce.some(t=>e[t]>=0)}const Vce=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=Os(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),s=Dx(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mx(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),s=Dx(a,n.floating);return{data:{escapedOffsets:s,escaped:Mx(s)}}}default:return{}}}}},jce=new Set(["left","top"]);async function Bce(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ta(n),s=ic(n),l=$o(n)==="y",c=jce.has(a)?-1:1,d=o&&l?-1:1,u=Os(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof f=="number"&&(m=s==="end"?f*-1:f),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Hce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await Bce(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Uce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:g,y:k}=v;return{x:g,y:k}}},...c}=Os(e,t),d={x:n,y:r},u=await o.detectOverflow(t,c),h=$o(Ta(i)),m=fM(h);let f=d[m],p=d[h];if(a){const v=m==="y"?"top":"left",g=m==="y"?"bottom":"right",k=f+u[v],S=f-u[g];f=S1(k,f,S)}if(s){const v=h==="y"?"top":"left",g=h==="y"?"bottom":"right",k=p+u[v],S=p-u[g];p=S1(k,p,S)}const b=l.fn({...t,[m]:f,[h]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:a,[h]:s}}}}}},qce=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Os(e,t),d=await a.detectOverflow(t,c),u=Ta(i),h=ic(i),m=$o(i)==="y",{width:f,height:p}=o.floating;let b,v;u==="top"||u==="bottom"?(b=u,v=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,b=h==="end"?"top":"bottom");const g=p-d.top-d.bottom,k=f-d.left-d.right,S=Ia(p-d[b],g),w=Ia(f-d[v],k),x=!t.middlewareData.shift;let L=S,C=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=g),x&&!h){const $=Br(d.left,0),F=Br(d.right,0),N=Br(d.top,0),D=Br(d.bottom,0);m?C=f-2*($!==0||F!==0?$+F:Br(d.left,d.right)):L=p-2*(N!==0||D!==0?N+D:Br(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:L});const I=await a.getDimensions(s.floating);return f!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function Am(){return typeof window<"u"}function oc(e){return mM(e)?(e.nodeName||"").toLowerCase():"#document"}function Gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yo(e){var t;return(t=(mM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mM(e){return Am()?e instanceof Node||e instanceof Gr(e).Node:!1}function Bi(e){return Am()?e instanceof Element||e instanceof Gr(e).Element:!1}function Yo(e){return Am()?e instanceof HTMLElement||e instanceof Gr(e).HTMLElement:!1}function Px(e){return!Am()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gr(e).ShadowRoot}function hu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Zce(e){return/^(table|td|th)$/.test(oc(e))}function Cm(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Wce=/transform|translate|scale|rotate|perspective|filter/,Gce=/paint|layout|strict|content/,Za=e=>!!e&&e!=="none";let Tg;function y4(e){const t=Bi(e)?Hi(e):e;return Za(t.transform)||Za(t.translate)||Za(t.scale)||Za(t.rotate)||Za(t.perspective)||!w4()&&(Za(t.backdropFilter)||Za(t.filter))||Wce.test(t.willChange||"")||Gce.test(t.contain||"")}function Kce(e){let t=La(e);for(;Yo(t)&&!Bl(t);){if(y4(t))return t;if(Cm(t))return null;t=La(t)}return null}function w4(){return Tg==null&&(Tg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Tg}function Bl(e){return/^(html|body|#document)$/.test(oc(e))}function Hi(e){return Gr(e).getComputedStyle(e)}function Em(e){return Bi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function La(e){if(oc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Px(e)&&e.host||yo(e);return Px(t)?t.host:t}function pM(e){const t=La(e);return Bl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yo(t)&&hu(t)?t:pM(t)}function pd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=pM(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gr(i);if(o){const s=A1(a);return t.concat(a,a.visualViewport||[],hu(i)?i:[],s&&n?pd(s):[])}else return t.concat(i,pd(i,[],n))}function A1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gM(e){const t=Hi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yo(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Bh(n)!==o||Bh(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function k4(e){return Bi(e)?e:e.contextElement}function Al(e){const t=k4(e);if(!Yo(t))return uo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=gM(t);let a=(o?Bh(n.width):n.width)/r,s=(o?Bh(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Jce=uo(0);function vM(e){const t=Gr(e);return!w4()||!t.visualViewport?Jce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qce(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gr(e)?!1:t}function xs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=k4(e);let a=uo(1);t&&(r?Bi(r)&&(a=Al(r)):a=Al(e));const s=Qce(o,n,r)?vM(o):uo(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(o){const h=Gr(o),m=r&&Bi(r)?Gr(r):r;let f=h,p=A1(f);for(;p&&r&&m!==f;){const b=Al(p),v=p.getBoundingClientRect(),g=Hi(p),k=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,S=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=S,f=Gr(p),p=A1(f)}}return Uh({width:d,height:u,x:l,y:c})}function Im(e,t){const n=Em(e).scrollLeft;return t?t.left+n:xs(yo(e)).left+n}function bM(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Im(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Xce(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=yo(r),s=t?Cm(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=uo(1);const d=uo(0),u=Yo(r);if((u||!u&&!o)&&((oc(r)!=="body"||hu(a))&&(l=Em(r)),u)){const m=xs(r);c=Al(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=a&&!u&&!o?bM(a,l):uo(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Yce(e){return Array.from(e.getClientRects())}function ede(e){const t=yo(e),n=Em(e),r=e.ownerDocument.body,i=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Im(e);const s=-n.scrollTop;return Hi(r).direction==="rtl"&&(a+=Br(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const Ox=25;function tde(e,t){const n=Gr(e),r=yo(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const d=w4();(!d||d&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=Im(r);if(c<=0){const d=r.ownerDocument,u=d.body,h=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-u.clientWidth-m);f<=Ox&&(o-=f)}else c<=Ox&&(o+=c);return{width:o,height:a,x:s,y:l}}function nde(e,t){const n=xs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Yo(e)?Al(e):uo(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function $x(e,t,n){let r;if(t==="viewport")r=tde(e,n);else if(t==="document")r=ede(yo(e));else if(Bi(t))r=nde(t,n);else{const i=vM(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Uh(r)}function yM(e,t){const n=La(e);return n===t||!Bi(n)||Bl(n)?!1:Hi(n).position==="fixed"||yM(n,t)}function rde(e,t){const n=t.get(e);if(n)return n;let r=pd(e,[],!1).filter(s=>Bi(s)&&oc(s)!=="body"),i=null;const o=Hi(e).position==="fixed";let a=o?La(e):e;for(;Bi(a)&&!Bl(a);){const s=Hi(a),l=y4(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||hu(a)&&!l&&yM(e,a))?r=r.filter(d=>d!==a):i=s,a=La(a)}return t.set(e,r),r}function ide(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Cm(t)?[]:rde(t,this._c):[].concat(n),r],s=$x(t,a[0],i);let l=s.top,c=s.right,d=s.bottom,u=s.left;for(let h=1;h<a.length;h++){const m=$x(t,a[h],i);l=Br(m.top,l),c=Ia(m.right,c),d=Ia(m.bottom,d),u=Br(m.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function ode(e){const{width:t,height:n}=gM(e);return{width:t,height:n}}function ade(e,t,n){const r=Yo(t),i=yo(t),o=n==="fixed",a=xs(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=uo(0);function c(){l.x=Im(i)}if(r||!r&&!o)if((oc(t)!=="body"||hu(i))&&(s=Em(t)),r){const m=xs(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!r&&i&&c();const d=i&&!r&&!o?bM(i,s):uo(0),u=a.left+s.scrollLeft-l.x-d.x,h=a.top+s.scrollTop-l.y-d.y;return{x:u,y:h,width:a.width,height:a.height}}function Lg(e){return Hi(e).position==="static"}function Rx(e,t){if(!Yo(e)||Hi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yo(e)===n&&(n=n.ownerDocument.body),n}function wM(e,t){const n=Gr(e);if(Cm(e))return n;if(!Yo(e)){let i=La(e);for(;i&&!Bl(i);){if(Bi(i)&&!Lg(i))return i;i=La(i)}return n}let r=Rx(e,t);for(;r&&Zce(r)&&Lg(r);)r=Rx(r,t);return r&&Bl(r)&&Lg(r)&&!y4(r)?n:r||Kce(e)||n}const sde=async function(e){const t=this.getOffsetParent||wM,n=this.getDimensions,r=await n(e.floating);return{reference:ade(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lde(e){return Hi(e).direction==="rtl"}const kM={convertOffsetParentRelativeRectToViewportRelativeRect:Xce,getDocumentElement:yo,getClippingRect:ide,getOffsetParent:wM,getElementRects:sde,getClientRects:Yce,getDimensions:ode,getScale:Al,isElement:Bi,isRTL:lde};function xM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cde(e,t){let n=null,r;const i=yo(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:m}=c;if(s||t(),!h||!m)return;const f=uf(u),p=uf(i.clientWidth-(d+h)),b=uf(i.clientHeight-(u+m)),v=uf(d),k={rootMargin:-f+"px "+-p+"px "+-b+"px "+-v+"px",threshold:Br(0,Ia(1,l))||1};let S=!0;function w(x){const L=x[0].intersectionRatio;if(L!==l){if(!S)return a();L?a(!1,L):r=setTimeout(()=>{a(!1,1e-7)},1e3)}L===1&&!xM(c,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(w,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,k)}n.observe(e)}return a(!0),o}function dde(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=k4(e),d=i||o?[...c?pd(c):[],...t?pd(t):[]]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const u=c&&s?cde(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let f,p=l?xs(e):null;l&&b();function b(){const v=xs(e);p&&!xM(p,v)&&n(),p=v,f=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),u?.(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const ude=Hce,fde=Uce,hde=Fce,mde=qce,pde=Vce,gde=Nce,vde=(e,t,n)=>{const r=new Map,i={platform:kM,...n},o={...i.platform,_c:r};return zce(e,t,{...i,platform:o})};var bde=Q('<svg display=block viewBox="0 0 30 30"style=transform:scale(1.02)><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>'),x4=Ct();function S4(){const e=yt(x4);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var C1=30,zx=C1/2,yde={top:180,right:-90,bottom:0,left:90};function Wi(e){const t=S4(),n=Be({size:C1},e),[r,i]=ue(n,["ref","style","size"]),o=()=>t.currentPlacement().split("-")[0],a=wde(t.contentRef),s=()=>a()?.getPropertyValue("background-color")||"none",l=()=>a()?.getPropertyValue(`border-${o()}-color`)||"none",c=()=>a()?.getPropertyValue(`border-${o()}-width`)||"0px",d=()=>Number.parseInt(c())*2*(C1/r.size),u=()=>`rotate(${yde[o()]} ${zx} ${zx}) translate(0 2)`;return y(We,ee({as:"div",ref(h){var m=kt(t.setArrowRef,r.ref);typeof m=="function"&&m(h)},"aria-hidden":"true",get style(){return Pr({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:s(),stroke:l(),"stroke-width":d()},r.style)}},i,{get children(){var h=bde(),m=h.firstChild,f=m.firstChild;return f.nextSibling,Ne(()=>et(m,"transform",u())),h}}))}function wde(e){const[t,n]=me();return se(()=>{const r=e();r&&n(tb(r).getComputedStyle(r))}),t}function kde(e){const t=S4(),[n,r]=ue(e,["ref","style"]);return y(We,ee({as:"div",ref(i){var o=kt(t.setPositionerRef,n.ref);typeof o=="function"&&o(i)},"data-popper-positioner":"",get style(){return Pr({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function Nx(e){const{x:t=0,y:n=0,width:r=0,height:i=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,i);const o={x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:n+i,left:t};return{...o,toJSON:()=>o}}function xde(e,t){return{contextElement:e,getBoundingClientRect:()=>{const r=t(e);return r?Nx(r):e?e.getBoundingClientRect():Nx()}}}function Sde(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var _de={top:"bottom",right:"left",bottom:"top",left:"right"};function Ade(e,t){const[n,r]=e.split("-"),i=_de[n];return r?n==="left"||n==="right"?`${i} ${r==="start"?"top":"bottom"}`:r==="start"?`${i} ${t==="rtl"?"right":"left"}`:`${i} ${t==="rtl"?"left":"right"}`:`${i} center`}function Cde(e){const t=Be({getAnchorRect:h=>h?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=me(),[i,o]=me(),[a,s]=me(t.placement),l=()=>xde(t.anchorRef?.(),t.getAnchorRect),{direction:c}=Zi();async function d(){const h=l(),m=n(),f=i();if(!h||!m)return;const p=(f?.clientHeight||0)/2,b=typeof t.gutter=="number"?t.gutter+p:t.gutter??p;m.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),h.getBoundingClientRect();const v=[ude(({placement:x})=>{const L=!!x.split("-")[1];return{mainAxis:b,crossAxis:L?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){const x=typeof t.flip=="string"?t.flip.split(" "):void 0;if(x!==void 0&&!x.every(Sde))throw new Error("`flip` expects a spaced-delimited list of placements");v.push(hde({padding:t.overflowPadding,fallbackPlacements:x}))}(t.slide||t.overlap)&&v.push(fde({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),v.push(mde({padding:t.overflowPadding,apply({availableWidth:x,availableHeight:L,rects:C}){const I=Math.round(C.reference.width);x=Math.floor(x),L=Math.floor(L),m.style.setProperty("--kb-popper-anchor-width",`${I}px`),m.style.setProperty("--kb-popper-content-available-width",`${x}px`),m.style.setProperty("--kb-popper-content-available-height",`${L}px`),t.sameWidth&&(m.style.width=`${I}px`),t.fitViewport&&(m.style.maxWidth=`${x}px`,m.style.maxHeight=`${L}px`)}})),t.hideWhenDetached&&v.push(pde({padding:t.detachedPadding})),f&&v.push(gde({element:f,padding:t.arrowPadding}));const g=await vde(h,m,{placement:t.placement,strategy:"absolute",middleware:v,platform:{...kM,isRTL:()=>c()==="rtl"}});if(s(g.placement),t.onCurrentPlacementChange?.(g.placement),!m)return;m.style.setProperty("--kb-popper-content-transform-origin",Ade(g.placement,c()));const k=Math.round(g.x),S=Math.round(g.y);let w;if(t.hideWhenDetached&&(w=g.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(m.style,{top:"0",left:"0",transform:`translate3d(${k}px, ${S}px, 0)`,visibility:w}),f&&g.middlewareData.arrow){const{x,y:L}=g.middlewareData.arrow,C=g.placement.split("-")[0];Object.assign(f.style,{left:x!=null?`${x}px`:"",top:L!=null?`${L}px`:"",[C]:"100%"})}}se(()=>{const h=l(),m=n();if(!h||!m)return;const f=dde(h,m,d,{elementResize:typeof ResizeObserver=="function"});he(f)}),se(()=>{const h=n(),m=t.contentRef?.();!h||!m||queueMicrotask(()=>{h.style.zIndex=getComputedStyle(m).zIndex})});const u={currentPlacement:a,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:o};return y(x4.Provider,{value:u,get children(){return t.children}})}var Fa=Object.assign(Cde,{Arrow:Wi,Context:x4,usePopperContext:S4,Positioner:kde}),Ede={};Ar(Ede,{Arrow:()=>Wi,Content:()=>_M,Portal:()=>AM,Root:()=>CM,Tooltip:()=>Ro,Trigger:()=>EM,useTooltipContext:()=>Tm});var SM=Ct();function Tm(){const e=yt(SM);if(e===void 0)throw new Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");return e}function _M(e){const t=Tm(),n=Be({id:t.generateId("content")},e),[r,i]=ue(n,["ref","style"]);return se(()=>he(t.registerContentId(i.id))),y(de,{get when(){return t.contentPresent()},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({ref(o){var a=kt(s=>{t.setContentRef(s)},r.ref);typeof a=="function"&&a(o)},role:"tooltip",disableOutsidePointerEvents:!1,get style(){return Pr({"--kb-tooltip-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},r.style)},onFocusOutside:o=>o.preventDefault(),onDismiss:()=>t.hideTooltip(!0)},()=>t.dataset(),i))}})}})}function AM(e){const t=Tm();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}function Ide(e,t,n){const r=e.split("-")[0],i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=[],s=i.left+i.width/2,l=i.top+i.height/2;switch(r){case"top":a.push([i.left,l]),a.push([o.left,o.bottom]),a.push([o.left,o.top]),a.push([o.right,o.top]),a.push([o.right,o.bottom]),a.push([i.right,l]);break;case"right":a.push([s,i.top]),a.push([o.left,o.top]),a.push([o.right,o.top]),a.push([o.right,o.bottom]),a.push([o.left,o.bottom]),a.push([s,i.bottom]);break;case"bottom":a.push([i.left,l]),a.push([o.left,o.top]),a.push([o.left,o.bottom]),a.push([o.right,o.bottom]),a.push([o.right,o.top]),a.push([i.right,l]);break;case"left":a.push([s,i.top]),a.push([o.right,o.top]),a.push([o.left,o.top]),a.push([o.left,o.bottom]),a.push([o.right,o.bottom]),a.push([s,i.bottom]);break}return a}var Wa={},Tde=0,Xs=!1,Io,wc,Ys;function CM(e){const t=`tooltip-${cn()}`,n=`${++Tde}`,r=Be({id:t,openDelay:700,closeDelay:300,skipDelayDuration:300},e),[i,o]=ue(r,["id","open","defaultOpen","onOpenChange","disabled","triggerOnFocusOnly","openDelay","closeDelay","skipDelayDuration","ignoreSafeArea","forceMount"]);let a;const[s,l]=me(),[c,d]=me(),[u,h]=me(),[m,f]=me(o.placement),p=Ma({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:T=>i.onOpenChange?.(T)}),{present:b}=Uo({show:()=>i.forceMount||p.isOpen(),element:()=>u()??null}),v=()=>{Wa[n]=k},g=()=>{for(const T in Wa)T!==n&&(Wa[T](!0),delete Wa[T])},k=(T=!1)=>{T||i.closeDelay&&i.closeDelay<=0?(window.clearTimeout(a),a=void 0,p.close()):a||(a=window.setTimeout(()=>{a=void 0,p.close()},i.closeDelay)),window.clearTimeout(Io),Io=void 0,i.skipDelayDuration&&i.skipDelayDuration>=0&&(Ys=window.setTimeout(()=>{window.clearTimeout(Ys),Ys=void 0},i.skipDelayDuration)),Xs&&(window.clearTimeout(wc),wc=window.setTimeout(()=>{delete Wa[n],wc=void 0,Xs=!1},i.closeDelay))},S=()=>{clearTimeout(a),a=void 0,g(),v(),Xs=!0,p.open(),window.clearTimeout(Io),Io=void 0,window.clearTimeout(wc),wc=void 0,window.clearTimeout(Ys),Ys=void 0},w=()=>{g(),v(),!p.isOpen()&&!Io&&!Xs?Io=window.setTimeout(()=>{Io=void 0,Xs=!0,S()},i.openDelay):p.isOpen()||S()},x=(T=!1)=>{!T&&i.openDelay&&i.openDelay>0&&!a&&!Ys?w():S()},L=()=>{window.clearTimeout(Io),Io=void 0,Xs=!1},C=()=>{window.clearTimeout(a),a=void 0},I=T=>zn(c(),T)||zn(u(),T),$=T=>{const M=c(),R=u();if(!(!M||!R))return Ide(T,M,R)},F=T=>{const M=T.target;if(I(M)){C();return}if(!i.ignoreSafeArea){const R=$(m());if(R&&ab(i9(T),R)){C();return}}a||k()};se(()=>{if(!p.isOpen())return;const T=Sr();T.addEventListener("pointermove",F,!0),he(()=>{T.removeEventListener("pointermove",F,!0)})}),se(()=>{const T=c();if(!T||!p.isOpen())return;const M=G=>{const K=G.target;zn(K,T)&&k(!0)},R=tb();R.addEventListener("scroll",M,{capture:!0}),he(()=>{R.removeEventListener("scroll",M,{capture:!0})})}),he(()=>{clearTimeout(a),Wa[n]&&delete Wa[n]});const D={dataset:j(()=>({"data-expanded":p.isOpen()?"":void 0,"data-closed":p.isOpen()?void 0:""})),isOpen:p.isOpen,isDisabled:()=>i.disabled??!1,triggerOnFocusOnly:()=>i.triggerOnFocusOnly??!1,contentId:s,contentPresent:b,openTooltip:x,hideTooltip:k,cancelOpening:L,generateId:Or(()=>r.id),registerContentId:In(l),isTargetOnTooltip:I,setTriggerRef:d,setContentRef:h};return y(SM.Provider,{value:D,get children(){return y(Fa,ee({anchorRef:c,contentRef:u,onCurrentPlacementChange:f},o))}})}function EM(e){let t;const n=Tm(),[r,i]=ue(e,["ref","onPointerEnter","onPointerLeave","onPointerDown","onClick","onFocus","onBlur"]);let o=!1,a=!1,s=!1;const l=()=>{o=!1},c=()=>{!n.isOpen()&&(a||s)&&n.openTooltip(s)},d=v=>{n.isOpen()&&!a&&!s&&n.hideTooltip(v)},u=v=>{Ve(v,r.onPointerEnter),!(v.pointerType==="touch"||n.triggerOnFocusOnly()||n.isDisabled()||v.defaultPrevented)&&(a=!0,c())},h=v=>{Ve(v,r.onPointerLeave),v.pointerType!=="touch"&&(a=!1,s=!1,n.isOpen()?d():n.cancelOpening())},m=v=>{Ve(v,r.onPointerDown),o=!0,Sr(t).addEventListener("pointerup",l,{once:!0})},f=v=>{Ve(v,r.onClick),a=!1,s=!1,d(!0)},p=v=>{Ve(v,r.onFocus),!(n.isDisabled()||v.defaultPrevented||o)&&(s=!0,c())},b=v=>{Ve(v,r.onBlur);const g=v.relatedTarget;n.isTargetOnTooltip(g)||(a=!1,s=!1,d(!0))};return he(()=>{Sr(t).removeEventListener("pointerup",l)}),y(We,ee({as:"button",ref(v){var g=kt(k=>{n.setTriggerRef(k),t=k},r.ref);typeof g=="function"&&g(v)},get"aria-describedby"(){return Le(()=>!!n.isOpen())()?n.contentId():void 0},onPointerEnter:u,onPointerLeave:h,onPointerDown:m,onClick:f,onFocus:p,onBlur:b},()=>n.dataset(),i))}var Ro=Object.assign(CM,{Arrow:Wi,Content:_M,Portal:AM,Trigger:EM}),Lde=Q("<div data-slot=tooltip-keybind><span></span><span data-slot=tooltip-keybind-key>");function gd(e){const[t,n]=ue(e,["title","keybind"]);return y(_r,ee(n,{get value(){return(()=>{var r=Lde(),i=r.firstChild,o=i.nextSibling;return P(i,()=>t.title),P(o,()=>t.keybind),r})()}}))}function _r(e){const[t,n]=me(!1),[r,i]=ue(e,["children","class","contentClass","contentStyle","inactive","forceOpen","value"]);return y(Ur,{get children(){return[y(Ot,{get when(){return r.inactive},get children(){return r.children}}),y(Ot,{when:!0,get children(){return y(Ro,ee({gutter:4},i,{get open(){return r.forceOpen||t()},onOpenChange:n,get children(){return[y(Ro.Trigger,{as:"div","data-component":"tooltip-trigger",get class(){return r.class},get children(){return r.children}}),y(Ro.Portal,{get children(){return y(Ro.Content,{"data-component":"tooltip",get"data-placement"(){return e.placement},get"data-force-open"(){return r.forceOpen},get class(){return r.contentClass},get style(){return r.contentStyle},get children(){return r.value}})}})]}}))}})]}})}function IM(e){let t=e.startIndex??0;const n=e.startLevel??0,r=[],i=l=>{if(l==null)return"";const c=e.getKey??"key",d=al(c)?l[c]:c(l);return d!=null?String(d):""},o=l=>{if(l==null)return"";const c=e.getTextValue??"textValue",d=al(c)?l[c]:c(l);return d!=null?String(d):""},a=l=>{if(l==null)return!1;const c=e.getDisabled??"disabled";return(al(c)?l[c]:c(l))??!1},s=l=>{if(l!=null)return al(e.getSectionChildren)?l[e.getSectionChildren]:e.getSectionChildren?.(l)};for(const l of e.dataSource){if(al(l)||bH(l)){r.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:a(l),level:n,index:t}),t++;continue}if(s(l)!=null){r.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const c=s(l)??[];if(c.length>0){const d=IM({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...d),t+=d.length}}else r.push({type:"item",rawValue:l,key:i(l),textValue:o(l),disabled:a(l),level:n,index:t}),t++}return r}function Dde(e,t=[]){return j(()=>{const n=IM({dataSource:ce(e.dataSource),getKey:ce(e.getKey),getTextValue:ce(e.getTextValue),getDisabled:ce(e.getDisabled),getSectionChildren:ce(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}var ro=class TM extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof TM?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function Mde(e){const[t,n]=Gl(e);return[()=>t()??new ro,n]}function LM(e){return SH()?e.altKey:e.ctrlKey}function dl(e){return Ed()?e.metaKey:e.ctrlKey}function Fx(e){return new ro(e)}function DM(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Pde(e){const t=Be({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=me(!1),[i,o]=me(),a=j(()=>{const p=ce(t.selectedKeys);return p!=null?Fx(p):p}),s=j(()=>{const p=ce(t.defaultSelectedKeys);return p!=null?Fx(p):new ro}),[l,c]=Mde({value:a,defaultValue:s,onChange:p=>t.onSelectionChange?.(p)}),[d,u]=me(ce(t.selectionBehavior)),h=()=>ce(t.selectionMode),m=()=>ce(t.disallowEmptySelection)??!1,f=p=>{(ce(t.allowDuplicateSelectionEvents)||!DM(p,l()))&&c(p)};return se(()=>{const p=l();ce(t.selectionBehavior)==="replace"&&d()==="toggle"&&typeof p=="object"&&p.size===0&&u("replace")}),se(()=>{u(ce(t.selectionBehavior)??"toggle")}),{selectionMode:h,disallowEmptySelection:m,selectionBehavior:d,setSelectionBehavior:u,isFocused:n,setFocused:r,focusedKey:i,setFocusedKey:o,selectedKeys:l,setSelectedKeys:f}}function MM(e){const[t,n]=me(""),[r,i]=me(-1);return{typeSelectHandlers:{onKeyDown:a=>{if(ce(e.isDisabled))return;const s=ce(e.keyboardDelegate),l=ce(e.selectionManager);if(!s.getKeyForSearch)return;const c=Ode(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===" "&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let d=n(h=>h+c),u=s.getKeyForSearch(d,l.focusedKey())??s.getKeyForSearch(d);u==null&&$de(d)&&(d=d[0],u=s.getKeyForSearch(d,l.focusedKey())??s.getKeyForSearch(d)),u!=null&&(l.setFocusedKey(u),e.onTypeSelect?.(u)),clearTimeout(r()),i(window.setTimeout(()=>n(""),500))}}}}function Ode(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function $de(e){return e.split("").every(t=>t===e[0])}function PM(e,t,n){const i=ee({selectOnFocus:()=>ce(e.selectionManager).selectionBehavior()==="replace"},e),o=()=>n?.()??t(),{direction:a}=Zi();let s={top:0,left:0};Yj(()=>ce(i.isVirtualized)?void 0:o(),"scroll",()=>{const b=o();b&&(s={top:b.scrollTop,left:b.scrollLeft})});const{typeSelectHandlers:l}=MM({isDisabled:()=>ce(i.disallowTypeAhead),keyboardDelegate:()=>ce(i.keyboardDelegate),selectionManager:()=>ce(i.selectionManager)}),c=()=>ce(i.orientation)??"vertical",d=b=>{Ve(b,l.onKeyDown),b.altKey&&b.key==="Tab"&&b.preventDefault();const v=t();if(!v?.contains(b.target))return;const g=ce(i.selectionManager),k=ce(i.selectOnFocus),S=C=>{C!=null&&(g.setFocusedKey(C),b.shiftKey&&g.selectionMode()==="multiple"?g.extendSelection(C):k&&!LM(b)&&g.replaceSelection(C))},w=ce(i.keyboardDelegate),x=ce(i.shouldFocusWrap),L=g.focusedKey();switch(b.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(w.getKeyBelow){b.preventDefault();let C;L!=null?C=w.getKeyBelow(L):C=w.getFirstKey?.(),C==null&&x&&(C=w.getFirstKey?.(L)),S(C)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(w.getKeyAbove){b.preventDefault();let C;L!=null?C=w.getKeyAbove(L):C=w.getLastKey?.(),C==null&&x&&(C=w.getLastKey?.(L)),S(C)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(w.getKeyLeftOf){b.preventDefault();const C=a()==="rtl";let I;L!=null?I=w.getKeyLeftOf(L):I=C?w.getFirstKey?.():w.getLastKey?.(),S(I)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(w.getKeyRightOf){b.preventDefault();const C=a()==="rtl";let I;L!=null?I=w.getKeyRightOf(L):I=C?w.getLastKey?.():w.getFirstKey?.(),S(I)}break}case"Home":if(w.getFirstKey){b.preventDefault();const C=w.getFirstKey(L,dl(b));C!=null&&(g.setFocusedKey(C),dl(b)&&b.shiftKey&&g.selectionMode()==="multiple"?g.extendSelection(C):k&&g.replaceSelection(C))}break;case"End":if(w.getLastKey){b.preventDefault();const C=w.getLastKey(L,dl(b));C!=null&&(g.setFocusedKey(C),dl(b)&&b.shiftKey&&g.selectionMode()==="multiple"?g.extendSelection(C):k&&g.replaceSelection(C))}break;case"PageDown":if(w.getKeyPageBelow&&L!=null){b.preventDefault();const C=w.getKeyPageBelow(L);S(C)}break;case"PageUp":if(w.getKeyPageAbove&&L!=null){b.preventDefault();const C=w.getKeyPageAbove(L);S(C)}break;case"a":dl(b)&&g.selectionMode()==="multiple"&&ce(i.disallowSelectAll)!==!0&&(b.preventDefault(),g.selectAll());break;case"Escape":b.defaultPrevented||(b.preventDefault(),ce(i.disallowEmptySelection)||g.clearSelection());break;case"Tab":if(!ce(i.allowsTabNavigation)){if(b.shiftKey)v.focus();else{const C=r9(v,{tabbable:!0});let I,$;do $=C.lastChild(),$&&(I=$);while($);I&&!I.contains(document.activeElement)&&pn(I)}break}}},u=b=>{const v=ce(i.selectionManager),g=ce(i.keyboardDelegate),k=ce(i.selectOnFocus);if(v.isFocused()){b.currentTarget.contains(b.target)||v.setFocused(!1);return}if(b.currentTarget.contains(b.target)){if(v.setFocused(!0),v.focusedKey()==null){const S=x=>{x!=null&&(v.setFocusedKey(x),k&&v.replaceSelection(x))},w=b.relatedTarget;w&&b.currentTarget.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?S(v.lastSelectedKey()??g.getLastKey?.()):S(v.firstSelectedKey()??g.getFirstKey?.())}else if(!ce(i.isVirtualized)){const S=o();if(S){S.scrollTop=s.top,S.scrollLeft=s.left;const w=S.querySelector(`[data-key="${v.focusedKey()}"]`);w&&(pn(w),Sv(S,w))}}}},h=b=>{const v=ce(i.selectionManager);b.currentTarget.contains(b.relatedTarget)||v.setFocused(!1)},m=b=>{o()===b.target&&b.preventDefault()},f=()=>{const b=ce(i.autoFocus);if(!b)return;const v=ce(i.selectionManager),g=ce(i.keyboardDelegate);let k;b==="first"&&(k=g.getFirstKey?.()),b==="last"&&(k=g.getLastKey?.());const S=v.selectedKeys();S.size&&(k=S.values().next().value),v.setFocused(!0),v.setFocusedKey(k);const w=t();w&&k==null&&!ce(i.shouldUseVirtualFocus)&&pn(w)};return Wt(()=>{i.deferAutoFocus?setTimeout(f,0):f()}),se(Ht([o,()=>ce(i.isVirtualized),()=>ce(i.selectionManager).focusedKey()],b=>{const[v,g,k]=b;if(g)k&&i.scrollToKey?.(k);else if(k&&v){const S=v.querySelector(`[data-key="${k}"]`);S&&Sv(v,S)}})),{tabIndex:j(()=>{if(!ce(i.shouldUseVirtualFocus))return ce(i.selectionManager).focusedKey()==null?0:-1}),onKeyDown:d,onMouseDown:m,onFocusIn:u,onFocusOut:h}}function Lm(e,t){const n=()=>ce(e.selectionManager),r=()=>ce(e.key),i=()=>ce(e.shouldUseVirtualFocus),o=g=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):g?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||dl(g)||"pointerType"in g&&g.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},a=()=>n().isSelected(r()),s=()=>ce(e.disabled)||n().isDisabled(r()),l=()=>!s()&&n().canSelectItem(r());let c=null;const d=g=>{l()&&(c=g.pointerType,g.pointerType==="mouse"&&g.button===0&&!ce(e.shouldSelectOnPressUp)&&o(g))},u=g=>{l()&&g.pointerType==="mouse"&&g.button===0&&ce(e.shouldSelectOnPressUp)&&ce(e.allowsDifferentPressOrigin)&&o(g)},h=g=>{l()&&(ce(e.shouldSelectOnPressUp)&&!ce(e.allowsDifferentPressOrigin)||c!=="mouse")&&o(g)},m=g=>{!l()||!["Enter"," "].includes(g.key)||(LM(g)?n().toggleSelection(r()):o(g))},f=g=>{s()&&g.preventDefault()},p=g=>{const k=t();i()||s()||!k||g.target===k&&n().setFocusedKey(r())},b=j(()=>{if(!(i()||s()))return r()===n().focusedKey()?0:-1}),v=j(()=>ce(e.virtualized)?void 0:r());return se(Ht([t,r,i,()=>n().focusedKey(),()=>n().isFocused()],([g,k,S,w,x])=>{g&&k===w&&x&&!S&&document.activeElement!==g&&(e.focus?e.focus():pn(g))})),{isSelected:a,isDisabled:s,allowsSelection:l,tabIndex:b,dataKey:v,onPointerDown:d,onPointerUp:u,onClick:h,onKeyDown:m,onMouseDown:f,onFocus:p}}var Rde=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=this.state.selectedKeys(),r=n.anchorKey||t,i=new ro(n,r,t);for(const o of this.getKeyRange(r,n.currentKey||t))i.delete(o);for(const o of this.getKeyRange(t,r))this.canSelectItem(o)&&i.add(o);this.state.setSelectedKeys(i)}getKeyRange(e,t){const n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const n=[];let r=e;for(;r!=null;){const i=this.collection().getItem(r);if(i&&i.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=new ro(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const n=this.canSelectItem(t)?new ro([t],t,t):new ro;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new ro;for(const n of e){const r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new ro)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;for(const n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){const r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},Vx=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(const r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(const[r,i]of this.keyMap)t?(t.nextKey=r,i.prevKey=t.key):(this.firstKey=r,i.prevKey=void 0),i.type==="item"&&(i.index=n++),t=i,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function Dm(e){const t=Pde(e),r=Dde({dataSource:()=>ce(e.dataSource),getKey:()=>ce(e.getKey),getTextValue:()=>ce(e.getTextValue),getDisabled:()=>ce(e.getDisabled),getSectionChildren:()=>ce(e.getSectionChildren),factory:o=>e.filter?new Vx(e.filter(o)):new Vx(o)},[()=>e.filter]),i=new Rde(r,t);return Ng(()=>{const o=t.focusedKey();o!=null&&!r().getItem(o)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>i}}var OM=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);let i=e;for(;i&&n&&n.offsetTop>r;)i=this.getKeyAbove(i),n=i!=null?this.getItem(i):null;return i}getKeyPageBelow(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);let i=e;for(;i&&n&&n.offsetTop<r;)i=this.getKeyBelow(i),n=i!=null?this.getItem(i):null;return i}getKeyForSearch(e,t){const n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){const i=this.collection().getItem(r);if(i){const o=i.textValue.slice(0,e.length);if(i.textValue&&n.compare(o,e)===0)return r}r=this.getKeyBelow(r)}}};function $M(e,t,n){const r=uM({usage:"search",sensitivity:"base"}),i=j(()=>{const o=ce(e.keyboardDelegate);return o||new OM(e.collection,t,r)});return PM({selectionManager:()=>ce(e.selectionManager),keyboardDelegate:i,autoFocus:()=>ce(e.autoFocus),deferAutoFocus:()=>ce(e.deferAutoFocus),shouldFocusWrap:()=>ce(e.shouldFocusWrap),disallowEmptySelection:()=>ce(e.disallowEmptySelection),selectOnFocus:()=>ce(e.selectOnFocus),disallowTypeAhead:()=>ce(e.disallowTypeAhead),shouldUseVirtualFocus:()=>ce(e.shouldUseVirtualFocus),allowsTabNavigation:()=>ce(e.allowsTabNavigation),isVirtualized:()=>ce(e.isVirtualized),scrollToKey:o=>ce(e.scrollToKey)?.(o),orientation:()=>ce(e.orientation)},t,n)}var RM=Ct();function zM(){return yt(RM)}function zde(){const e=zM();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function NM(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Nde(e,t){const n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){const i=e[r]?.ref();if(i&&NM(i,n))return r+1}return 0}function Fde(e){const t=e.map((r,i)=>[i,r]);let n=!1;return t.sort(([r,i],[o,a])=>{const s=i.ref(),l=a.ref();return s===l||!s||!l?0:NM(s,l)?(r>o&&(n=!0),-1):(r<o&&(n=!0),1)}),n?t.map(([r,i])=>i):e}function FM(e,t){const n=Fde(e);e!==n&&t(n)}function Vde(e){const t=e[0],n=e[e.length-1]?.ref();let r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return Sr(r).body}function jde(e,t){se(()=>{const n=setTimeout(()=>{FM(e(),t)});he(()=>clearTimeout(n))})}function Bde(e,t){if(typeof IntersectionObserver!="function"){jde(e,t);return}let n=[];se(()=>{const r=()=>{const a=!!n.length;n=e(),a&&FM(e(),t)},i=Vde(e()),o=new IntersectionObserver(r,{root:i});for(const a of e()){const s=a.ref();s&&o.observe(s)}he(()=>o.disconnect())})}function VM(e={}){const[t,n]=JH({value:()=>ce(e.items),onChange:o=>e.onItemsChange?.(o)});Bde(t,n);const r=o=>(n(a=>{const s=Nde(a,o);return vH(a,o,s)}),()=>{n(a=>{const s=a.filter(l=>l.ref()!==o.ref());return a.length===s.length?a:s})});return{DomCollectionProvider:o=>y(RM.Provider,{value:{registerItem:r},get children(){return o.children}})}}function jM(e){const t=zde(),n=Be({shouldRegisterItem:!0},e);se(()=>{if(!n.shouldRegisterItem)return;const r=t.registerItem(n.getItem());he(r)})}function BM(e={}){const[t,n]=c9({value:()=>ce(e.isSelected),defaultValue:()=>!!ce(e.defaultIsSelected),onChange:o=>e.onSelectedChange?.(o)});return{isSelected:t,setIsSelected:o=>{!ce(e.isReadOnly)&&!ce(e.isDisabled)&&n(o)},toggle:()=>{!ce(e.isReadOnly)&&!ce(e.isDisabled)&&n(!t())}}}var Hde=Ct();function Mm(){return yt(Hde)}var Ude=Ct();function HM(){return yt(Ude)}var UM=Ct();function qM(){return yt(UM)}function wo(){const e=qM();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var ZM=Ct();function _4(){const e=yt(ZM);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var WM=Ct();function wi(){const e=yt(WM);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function A4(e){let t;const n=wi(),r=wo(),i=Be({id:n.generateId(`item-${cn()}`)},e),[o,a]=ue(i,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,l]=me(),[c,d]=me(),[u,h]=me(),m=()=>r.listState().selectionManager(),f=()=>a.id,p=()=>m().focusedKey()===f(),b=()=>{o.onSelect?.(),o.closeOnSelect&&setTimeout(()=>{r.close(!0)})};jM({getItem:()=>({ref:()=>t,type:"item",key:f(),textValue:o.textValue??u()?.textContent??t?.textContent??"",disabled:o.disabled??!1})});const v=Lm({key:f,selectionManager:m,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>o.disabled},()=>t),g=I=>{Ve(I,o.onPointerMove),I.pointerType==="mouse"&&(o.disabled?r.onItemLeave(I):(r.onItemEnter(I),I.defaultPrevented||(pn(I.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f()))))},k=I=>{Ve(I,o.onPointerLeave),I.pointerType==="mouse"&&r.onItemLeave(I)},S=I=>{Ve(I,o.onPointerUp),!o.disabled&&I.button===0&&b()},w=I=>{if(Ve(I,o.onKeyDown),!I.repeat&&!o.disabled)switch(I.key){case"Enter":case" ":b();break}},x=j(()=>{if(o.indeterminate)return"mixed";if(o.checked!=null)return o.checked}),L=j(()=>({"data-indeterminate":o.indeterminate?"":void 0,"data-checked":o.checked&&!o.indeterminate?"":void 0,"data-disabled":o.disabled?"":void 0,"data-highlighted":p()?"":void 0})),C={isChecked:()=>o.checked,dataset:L,setLabelRef:h,generateId:Or(()=>a.id),registerLabel:In(l),registerDescription:In(d)};return y(ZM.Provider,{value:C,get children(){return y(We,ee({as:"div",ref(I){var $=kt(F=>t=F,o.ref);typeof $=="function"&&$(I)},get tabIndex(){return v.tabIndex()},get"aria-checked"(){return x()},get"aria-disabled"(){return o.disabled},get"aria-labelledby"(){return s()},get"aria-describedby"(){return c()},get"data-key"(){return v.dataKey()},get onPointerDown(){return gt([o.onPointerDown,v.onPointerDown])},get onPointerUp(){return gt([S,v.onPointerUp])},get onClick(){return gt([o.onClick,v.onClick])},get onKeyDown(){return gt([w,v.onKeyDown])},get onMouseDown(){return gt([o.onMouseDown,v.onMouseDown])},get onFocus(){return gt([o.onFocus,v.onFocus])},onPointerMove:g,onPointerLeave:k},L,a))}})}function Pm(e){const t=Be({closeOnSelect:!1},e),[n,r]=ue(t,["checked","defaultChecked","onChange","onSelect"]),i=BM({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:a=>n.onChange?.(a),isDisabled:()=>r.disabled});return y(A4,ee({role:"menuitemcheckbox",get checked(){return i.isSelected()},onSelect:()=>{n.onSelect?.(),i.toggle()}},r))}var vd={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>vd.next(e==="ltr"?"rtl":"ltr",t)},jx={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};function GM(e){const t=wi(),n=wo(),r=Mm(),{direction:i}=Zi(),o=Be({id:t.generateId("trigger")},e),[a,s]=ue(o,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]);let l=()=>t.value();r!==void 0&&(l=()=>t.value()??a.id,r.lastValue()===void 0&&r.setLastValue(l));const c=Td(()=>n.triggerRef(),()=>"button"),d=j(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);se(Ht(()=>r?.value(),v=>{d()&&v===l()&&n.triggerRef()?.focus()}));const u=()=>{r!==void 0?n.isOpen()?r.value()===l()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},h=v=>{Ve(v,a.onPointerDown),v.currentTarget.dataset.pointerType=v.pointerType,!a.disabled&&v.pointerType!=="touch"&&v.button===0&&u()},m=v=>{Ve(v,a.onClick),a.disabled||v.currentTarget.dataset.pointerType==="touch"&&u()},f=v=>{if(Ve(v,a.onKeyDown),!a.disabled){if(d())switch(v.key){case"Enter":case" ":return}switch(v.key){case"Enter":case" ":case jx.first(t.orientation()):v.stopPropagation(),v.preventDefault(),RH(v.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(l);break;case jx.last(t.orientation()):v.stopPropagation(),v.preventDefault(),n.open("last");break;case vd.next(i(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.nextMenu();break;case vd.previous(i(),t.orientation()):if(r===void 0)break;v.stopPropagation(),v.preventDefault(),r.previousMenu();break}}},p=v=>{Ve(v,a.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!a.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(l)},b=v=>{Ve(v,a.onFocus),r!==void 0&&v.currentTarget.dataset.pointerType!=="touch"&&r.setValue(l)};return se(()=>he(n.registerTriggerId(a.id))),y(Pa,ee({ref(v){var g=kt(n.setTriggerRef,a.ref);typeof g=="function"&&g(v)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return a.id},get disabled(){return a.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Le(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&r?.value()===l()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===l()||r.lastValue()===l()?0:-1:void 0},onPointerDown:h,onMouseOver:p,onClick:m,onKeyDown:f,onFocus:b,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),s))}function KM(e){let t;const n=wi(),r=wo(),i=Mm(),o=HM(),{direction:a}=Zi(),s=Be({id:n.generateId(`content-${cn()}`)},e),[l,c]=ue(s,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let d=0;const u=()=>r.parentMenuContext()==null&&i===void 0&&n.isModal(),h=$M({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);cb({trapFocus:()=>u()&&r.isOpen(),onMountAutoFocus:k=>{i===void 0&&l.onOpenAutoFocus?.(k)},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);const m=k=>{if(zn(k.currentTarget,k.target)&&(k.key==="Tab"&&r.isOpen()&&k.preventDefault(),i!==void 0&&k.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(k.key){case vd.next(a(),n.orientation()):k.stopPropagation(),k.preventDefault(),r.close(!0),i.setAutoFocusMenu(!0),i.nextMenu();break;case vd.previous(a(),n.orientation()):if(k.currentTarget.hasAttribute("data-closed"))break;k.stopPropagation(),k.preventDefault(),r.close(!0),i.setAutoFocusMenu(!0),i.previousMenu();break}},f=k=>{l.onEscapeKeyDown?.(k),i?.setAutoFocusMenu(!1),r.close(!0)},p=k=>{l.onFocusOutside?.(k),n.isModal()&&k.preventDefault()},b=k=>{Ve(k,l.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},v=k=>{if(Ve(k,l.onPointerMove),k.pointerType!=="mouse")return;const S=k.target,w=d!==k.clientX;zn(k.currentTarget,S)&&w&&(r.setPointerDir(k.clientX>d?"right":"left"),d=k.clientX)};se(()=>he(r.registerContentId(l.id))),he(()=>r.setContentRef(void 0));const g={ref:kt(k=>{r.setContentRef(k),t=k},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return h.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:gt([l.onKeyDown,h.onKeyDown,m]),onMouseDown:gt([l.onMouseDown,h.onMouseDown]),onFocusIn:gt([l.onFocusIn,h.onFocusIn]),onFocusOut:gt([l.onFocusOut,h.onFocusOut]),onPointerEnter:b,onPointerMove:v,get"data-orientation"(){return n.orientation()}};return y(de,{get when(){return r.contentPresent()},get children(){return y(de,{get when(){return o===void 0||r.parentMenuContext()!=null},get fallback(){return y(We,ee({as:"div"},()=>r.dataset(),g,c))},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({get disableOutsidePointerEvents(){return Le(()=>!!u())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Pr({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:f,onFocusOutside:p,get onDismiss(){return r.close}},()=>r.dataset(),g,c))}})}})}})}function JM(e){let t;const n=wi(),r=wo(),[i,o]=ue(e,["ref"]);return fb({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),y(KM,ee({ref(a){var s=kt(l=>{t=l},i.ref);typeof s=="function"&&s(a)}},o))}var QM=Ct();function qde(){const e=yt(QM);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function mu(e){const t=wi(),n=Be({id:t.generateId(`group-${cn()}`)},e),[r,i]=me(),o={generateId:Or(()=>n.id),registerLabelId:In(i)};return y(QM.Provider,{value:o,get children(){return y(We,ee({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function Om(e){const t=qde(),n=Be({id:t.generateId("label")},e),[r,i]=ue(n,["id"]);return se(()=>he(t.registerLabelId(r.id))),y(We,ee({as:"span",get id(){return r.id},"aria-hidden":"true"},i))}function $m(e){const t=wo(),n=Be({children:"▼"},e);return y(We,ee({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Rm(e){return y(A4,ee({role:"menuitem",closeOnSelect:!0},e))}function zm(e){const t=_4(),n=Be({id:t.generateId("description")},e),[r,i]=ue(n,["id"]);return se(()=>he(t.registerDescription(r.id))),y(We,ee({as:"div",get id(){return r.id}},()=>t.dataset(),i))}function Nm(e){const t=_4(),n=Be({id:t.generateId("indicator")},e),[r,i]=ue(n,["forceMount"]);return y(de,{get when(){return r.forceMount||t.isChecked()},get children(){return y(We,ee({as:"div"},()=>t.dataset(),i))}})}function Fm(e){const t=_4(),n=Be({id:t.generateId("label")},e),[r,i]=ue(n,["ref","id"]);return se(()=>he(t.registerLabel(r.id))),y(We,ee({as:"div",ref(o){var a=kt(t.setLabelRef,r.ref);typeof a=="function"&&a(o)},get id(){return r.id}},()=>t.dataset(),i))}function Vm(e){const t=wo();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}var XM=Ct();function Zde(){const e=yt(XM);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function jm(e){const n=wi().generateId(`radiogroup-${cn()}`),r=Be({id:n},e),[i,o]=ue(r,["value","defaultValue","onChange","disabled"]),[a,s]=Gl({value:()=>i.value,defaultValue:()=>i.defaultValue,onChange:c=>i.onChange?.(c)}),l={isDisabled:()=>i.disabled,isSelectedValue:c=>c===a(),setSelectedValue:c=>s(c)};return y(XM.Provider,{value:l,get children(){return y(mu,o)}})}function Bm(e){const t=Zde(),n=Be({closeOnSelect:!1},e),[r,i]=ue(n,["value","onSelect"]);return y(A4,ee({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},i))}function Wde(e,t,n){const r=e.split("-")[0],i=n.getBoundingClientRect(),o=[],a=t.clientX,s=t.clientY;switch(r){case"top":o.push([a,s+5]),o.push([i.left,i.bottom]),o.push([i.left,i.top]),o.push([i.right,i.top]),o.push([i.right,i.bottom]);break;case"right":o.push([a-5,s]),o.push([i.left,i.top]),o.push([i.right,i.top]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]);break;case"bottom":o.push([a,s-5]),o.push([i.right,i.top]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]),o.push([i.left,i.top]);break;case"left":o.push([a+5,s]),o.push([i.right,i.bottom]),o.push([i.left,i.bottom]),o.push([i.left,i.top]),o.push([i.right,i.top]);break}return o}function Gde(e,t){return t?ab([e.clientX,e.clientY],t):!1}function YM(e){const t=wi(),n=zM(),r=qM(),i=Mm(),o=HM(),a=Be({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[s,l]=ue(a,["open","defaultOpen","onOpenChange"]);let c=0,d=null,u="right";const[h,m]=me(),[f,p]=me(),[b,v]=me(),[g,k]=me(),[S,w]=me(!0),[x,L]=me(l.placement),[C,I]=me([]),[$,F]=me([]),{DomCollectionProvider:N}=VM({items:$,onItemsChange:F}),D=Ma({open:()=>s.open,defaultOpen:()=>s.defaultOpen,onOpenChange:ie=>s.onOpenChange?.(ie)}),{present:T}=Uo({show:()=>t.forceMount()||D.isOpen(),element:()=>g()??null}),M=Dm({selectionMode:"none",dataSource:$}),R=ie=>{w(ie),D.open()},G=(ie=!1)=>{D.close(),ie&&r&&r.close(!0)},K=ie=>{w(ie),D.toggle()},U=()=>{const ie=g();ie&&(pn(ie),M.selectionManager().setFocused(!0),M.selectionManager().setFocusedKey(void 0))},q=()=>{o!=null?setTimeout(()=>U()):U()},X=ie=>{I(ge=>[...ge,ie]);const be=r?.registerNestedMenu(ie);return()=>{I(ge=>xv(ge,ie)),be?.()}},le=ie=>u===d?.side&&Gde(ie,d?.area),_e=ie=>{le(ie)&&ie.preventDefault()},ne=ie=>{le(ie)||q()},B=ie=>{le(ie)&&ie.preventDefault()};db({isDisabled:()=>!(r==null&&D.isOpen()&&t.isModal()),targets:()=>[g(),...C()].filter(Boolean)}),se(()=>{const ie=g();if(!ie||!r)return;const be=r.registerNestedMenu(ie);he(()=>{be()})}),se(()=>{r===void 0&&i?.registerMenu(t.value(),[g(),...C()])}),se(()=>{r!==void 0||i===void 0||(i.value()===t.value()?(b()?.focus(),i.autoFocusMenu()&&R(!0)):G())}),se(()=>{r!==void 0||i===void 0||D.isOpen()&&i.setValue(t.value())}),he(()=>{r===void 0&&i?.unregisterMenu(t.value())});const Y={dataset:j(()=>({"data-expanded":D.isOpen()?"":void 0,"data-closed":D.isOpen()?void 0:""})),isOpen:D.isOpen,contentPresent:T,nestedMenus:C,currentPlacement:x,pointerGraceTimeoutId:()=>c,autoFocus:S,listState:()=>M,parentMenuContext:()=>r,triggerRef:b,contentRef:g,triggerId:h,contentId:f,setTriggerRef:v,setContentRef:k,open:R,close:G,toggle:K,focusContent:q,onItemEnter:_e,onItemLeave:ne,onTriggerLeave:B,setPointerDir:ie=>u=ie,setPointerGraceTimeoutId:ie=>c=ie,setPointerGraceIntent:ie=>d=ie,registerNestedMenu:X,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:In(m),registerContentId:In(p)};return y(N,{get children(){return y(UM.Provider,{value:Y,get children(){return y(de,{when:o===void 0,get fallback(){return l.children},get children(){return y(Fa,ee({anchorRef:b,contentRef:g,onCurrentPlacementChange:L},l))}})}})}})}function Hm(e){const{direction:t}=Zi();return y(YM,ee({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Kde={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};function Um(e){const t=wo(),n=wi(),[r,i]=ue(e,["onFocusOutside","onKeyDown"]),{direction:o}=Zi();return y(KM,ee({onOpenAutoFocus:d=>{d.preventDefault()},onCloseAutoFocus:d=>{d.preventDefault()},onFocusOutside:d=>{r.onFocusOutside?.(d);const u=d.target;zn(t.triggerRef(),u)||t.close()},onKeyDown:d=>{Ve(d,r.onKeyDown);const u=zn(d.currentTarget,d.target),h=Kde.close(o(),n.orientation()).includes(d.key),m=t.parentMenuContext()!=null;u&&h&&m&&(t.close(),pn(t.triggerRef()))}},i))}var Bx=["Enter"," "],Jde={open:(e,t)=>e==="ltr"?[...Bx,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Bx,t==="horizontal"?"ArrowLeft":"ArrowUp"]};function qm(e){let t;const n=wi(),r=wo(),i=Be({id:n.generateId(`sub-trigger-${cn()}`)},e),[o,a]=ue(i,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let s=null;const l=()=>{s&&window.clearTimeout(s),s=null},{direction:c}=Zi(),d=()=>o.id,u=()=>{const k=r.parentMenuContext();if(k==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return k.listState().selectionManager()},h=()=>r.listState().collection(),m=()=>u().focusedKey()===d(),f=Lm({key:d,selectionManager:u,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>o.disabled},()=>t),p=k=>{Ve(k,o.onClick),!r.isOpen()&&!o.disabled&&r.open(!0)},b=k=>{if(Ve(k,o.onPointerMove),k.pointerType!=="mouse")return;const S=r.parentMenuContext();if(S?.onItemEnter(k),!k.defaultPrevented){if(o.disabled){S?.onItemLeave(k);return}!r.isOpen()&&!s&&(r.parentMenuContext()?.setPointerGraceIntent(null),s=window.setTimeout(()=>{r.open(!1),l()},100)),S?.onItemEnter(k),k.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),pn(k.currentTarget),S?.listState().selectionManager().setFocused(!0),S?.listState().selectionManager().setFocusedKey(d()))}},v=k=>{if(Ve(k,o.onPointerLeave),k.pointerType!=="mouse")return;l();const S=r.parentMenuContext(),w=r.contentRef();if(w){S?.setPointerGraceIntent({area:Wde(r.currentPlacement(),k,w),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(S?.pointerGraceTimeoutId());const x=window.setTimeout(()=>{S?.setPointerGraceIntent(null)},300);S?.setPointerGraceTimeoutId(x)}else{if(S?.onTriggerLeave(k),k.defaultPrevented)return;S?.setPointerGraceIntent(null)}S?.onItemLeave(k)},g=k=>{Ve(k,o.onKeyDown),!k.repeat&&(o.disabled||Jde.open(c(),n.orientation()).includes(k.key)&&(k.stopPropagation(),k.preventDefault(),u().setFocused(!1),u().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(h().getFirstKey())))};return se(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const k=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:d(),textValue:o.textValue??t?.textContent??"",disabled:o.disabled??!1});he(k)}),se(Ht(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),k=>{he(()=>{window.clearTimeout(k),r.parentMenuContext()?.setPointerGraceIntent(null)})})),se(()=>he(r.registerTriggerId(o.id))),he(()=>{l()}),y(We,ee({as:"div",ref(k){var S=kt(w=>{r.setTriggerRef(w),t=w},o.ref);typeof S=="function"&&S(k)},get id(){return o.id},role:"menuitem",get tabIndex(){return f.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return Le(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return o.disabled},get"data-key"(){return f.dataKey()},get"data-highlighted"(){return m()?"":void 0},get"data-disabled"(){return o.disabled?"":void 0},get onPointerDown(){return gt([o.onPointerDown,f.onPointerDown])},get onPointerUp(){return gt([o.onPointerUp,f.onPointerUp])},get onClick(){return gt([p,f.onClick])},get onKeyDown(){return gt([g,f.onKeyDown])},get onMouseDown(){return gt([o.onMouseDown,f.onMouseDown])},get onFocus(){return gt([o.onFocus,f.onFocus])},onPointerMove:b,onPointerLeave:v},()=>r.dataset(),a))}function eP(e){const t=Mm(),n=`menu-${cn()}`,r=Be({id:n,modal:!0},e),[i,o]=ue(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),a=Ma({open:()=>i.open,defaultOpen:()=>i.defaultOpen,onOpenChange:l=>i.onOpenChange?.(l)}),s={isModal:()=>i.modal??!0,preventScroll:()=>i.preventScroll??s.isModal(),forceMount:()=>i.forceMount??!1,generateId:Or(()=>i.id),value:()=>i.value,orientation:()=>i.orientation??t?.orientation()??"horizontal"};return y(WM.Provider,{value:s,get children(){return y(YM,ee({get open(){return a.isOpen()},get onOpenChange(){return a.setIsOpen}},o))}})}var Qde={};Ar(Qde,{Root:()=>ac,Separator:()=>Xde});function ac(e){let t;const n=Be({orientation:"horizontal"},e),[r,i]=ue(n,["ref","orientation"]),o=Td(()=>t,()=>"hr");return y(We,ee({as:"hr",ref(a){var s=kt(l=>t=l,r.ref);typeof s=="function"&&s(a)},get role(){return o()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},i))}var Xde=ac,Yde={};Ar(Yde,{Arrow:()=>Wi,CheckboxItem:()=>Pm,Content:()=>tP,DropdownMenu:()=>Vn,Group:()=>mu,GroupLabel:()=>Om,Icon:()=>$m,Item:()=>Rm,ItemDescription:()=>zm,ItemIndicator:()=>Nm,ItemLabel:()=>Fm,Portal:()=>Vm,RadioGroup:()=>jm,RadioItem:()=>Bm,Root:()=>nP,Separator:()=>ac,Sub:()=>Hm,SubContent:()=>Um,SubTrigger:()=>qm,Trigger:()=>GM});function tP(e){const t=wi(),n=wo(),[r,i]=ue(e,["onCloseAutoFocus","onInteractOutside"]);let o=!1;return y(JM,ee({onCloseAutoFocus:l=>{r.onCloseAutoFocus?.(l),o||pn(n.triggerRef()),o=!1,l.preventDefault()},onInteractOutside:l=>{r.onInteractOutside?.(l),(!t.isModal()||l.detail.isContextMenu)&&(o=!0)}},i))}function nP(e){const t=`dropdownmenu-${cn()}`,n=Be({id:t},e);return y(eP,n)}var Vn=Object.assign(nP,{Arrow:Wi,CheckboxItem:Pm,Content:tP,Group:mu,GroupLabel:Om,Icon:$m,Item:Rm,ItemDescription:zm,ItemIndicator:Nm,ItemLabel:Fm,Portal:Vm,RadioGroup:jm,RadioItem:Bm,Separator:ac,Sub:Hm,SubContent:Um,SubTrigger:qm,Trigger:GM});function eue(e){return y(Vn,ee(e,{"data-component":"dropdown-menu"}))}function tue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Trigger,ee(n,{"data-slot":"dropdown-menu-trigger",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function nue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Icon,ee(n,{"data-slot":"dropdown-menu-icon",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function rue(e){return y(Vn.Portal,e)}function iue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Content,ee(n,{"data-component":"dropdown-menu-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function oue(e){const[t,n]=ue(e,["class","classList"]);return y(Vn.Arrow,ee(n,{"data-slot":"dropdown-menu-arrow",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function aue(e){const[t,n]=ue(e,["class","classList"]);return y(Vn.Separator,ee(n,{"data-slot":"dropdown-menu-separator",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function sue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Group,ee(n,{"data-slot":"dropdown-menu-group",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function lue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.GroupLabel,ee(n,{"data-slot":"dropdown-menu-group-label",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function cue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.Item,ee(n,{"data-slot":"dropdown-menu-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function due(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.ItemLabel,ee(n,{"data-slot":"dropdown-menu-item-label",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function uue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.ItemDescription,ee(n,{"data-slot":"dropdown-menu-item-description",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function fue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.ItemIndicator,ee(n,{"data-slot":"dropdown-menu-item-indicator",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function hue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.RadioGroup,ee(n,{"data-slot":"dropdown-menu-radio-group",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function mue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.RadioItem,ee(n,{"data-slot":"dropdown-menu-radio-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function pue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.CheckboxItem,ee(n,{"data-slot":"dropdown-menu-checkbox-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function gue(e){return y(Vn.Sub,e)}function vue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.SubTrigger,ee(n,{"data-slot":"dropdown-menu-sub-trigger",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function bue(e){const[t,n]=ue(e,["class","classList","children"]);return y(Vn.SubContent,ee(n,{"data-component":"dropdown-menu-sub-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}const St=Object.assign(eue,{Trigger:tue,Icon:nue,Portal:rue,Content:iue,Arrow:oue,Separator:aue,Group:sue,GroupLabel:lue,Item:cue,ItemLabel:due,ItemDescription:uue,ItemIndicator:fue,RadioGroup:hue,RadioItem:mue,CheckboxItem:pue,Sub:gue,SubTrigger:vue,SubContent:bue});var yue=Q("<div>"),Zm=class{x;y;width;height;constructor(t){this.x=Math.floor(t.x),this.y=Math.floor(t.y),this.width=Math.floor(t.width),this.height=Math.floor(t.height)}get rect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}get left(){return this.x}get top(){return this.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get center(){return{x:this.x+this.width*.5,y:this.y+this.height*.5}}get corners(){return{topLeft:{x:this.left,y:this.top},topRight:{x:this.right,y:this.top},bottomRight:{x:this.left,y:this.bottom},bottomLeft:{x:this.right,y:this.bottom}}}},Cl=e=>{let t=new Zm(e.getBoundingClientRect());const{transform:n}=getComputedStyle(e);return n&&(t=wue(t,n)),t},wue=(e,t)=>{let n,r;if(t.startsWith("matrix3d(")){const i=t.slice(9,-1).split(/, /);n=+i[12],r=+i[13]}else if(t.startsWith("matrix(")){const i=t.slice(7,-1).split(/, /);n=+i[4],r=+i[5]}else n=0,r=0;return new Zm({...e,x:e.x-n,y:e.y-r})},Ri=()=>({x:0,y:0}),C4=(e,t)=>e.x===t.x&&e.y===t.y,Dg=(e,t)=>new Zm({...e,x:e.x+t.x,y:e.y+t.y}),kue=(e,t)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),xue=(e,t)=>{const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=i-r,s=o-n;if(r<i&&n<o){const l=e.width*e.height,c=t.width*t.height,d=a*s;return d/(l+c-d)}return 0},Mg=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,rP=(e,t,n)=>{const r=e.transformed.center,i={distance:1/0,droppable:null};for(const o of t){const a=kue(r,o.layout.center);a<i.distance?(i.distance=a,i.droppable=o):a===i.distance&&o.id===n.activeDroppableId&&(i.droppable=o)}return i.droppable},Sue=(e,t,n)=>{const r=e.transformed,i={ratio:0,droppable:null};for(const o of t){const a=xue(r,o.layout);a>i.ratio?(i.ratio=a,i.droppable=o):a>0&&a===i.ratio&&o.id===n.activeDroppableId&&(i.droppable=o)}return i.droppable},iP=Ct(),oP=e=>{const t=ee({collisionDetector:Sue},e),[n,r]=He({draggables:{},droppables:{},sensors:{},active:{draggableId:null,get draggable(){return n.active.draggableId!==null?n.draggables[n.active.draggableId]:null},droppableId:null,get droppable(){return n.active.droppableId!==null?n.droppables[n.active.droppableId]:null},sensorId:null,get sensor(){return n.active.sensorId!==null?n.sensors[n.active.sensorId]:null},overlay:null}}),i=(T,M,R)=>{T.substring(0,T.length-1),nt(()=>n[T][M])&&r(T,M,"transformers",R.id,R)},o=(T,M,R)=>{T.substring(0,T.length-1),nt(()=>n[T][M])&&nt(()=>n[T][M].transformers[R])&&r(T,M,"transformers",R,void 0)},a=({id:T,node:M,layout:R,data:G})=>{const K=n.draggables[T],U={id:T,node:M,layout:R,data:G,_pendingCleanup:!1};let q;if(!K)Object.defineProperties(U,{transformers:{enumerable:!0,configurable:!0,writable:!0,value:{}},transform:{enumerable:!0,configurable:!0,get:()=>{if(n.active.overlay)return Ri();const X=Object.values(n.draggables[T].transformers);return X.sort((le,_e)=>le.order-_e.order),X.reduce((le,_e)=>_e.callback(le),Ri())}},transformed:{enumerable:!0,configurable:!0,get:()=>Dg(n.draggables[T].layout,n.draggables[T].transform)}});else if(n.active.draggableId===T&&!n.active.overlay){const X={x:K.layout.x-R.x,y:K.layout.y-R.y},le="addDraggable-existing-offset",_e=K.transformers[le],ne=_e?_e.callback(X):X;q={id:le,order:100,callback:B=>({x:B.x+ne.x,y:B.y+ne.y})},F(()=>o("draggables",T,le))}_t(()=>{r("draggables",T,U),q&&i("draggables",T,q)}),n.active.draggable&&S()},s=T=>{nt(()=>n.draggables[T])&&(r("draggables",T,"_pendingCleanup",!0),queueMicrotask(()=>l(T)))},l=T=>{if(n.draggables[T]?._pendingCleanup){const M=n.active.draggableId===T;_t(()=>{M&&r("active","draggableId",null),r("draggables",T,void 0)})}},c=({id:T,node:M,layout:R,data:G})=>{const K=n.droppables[T],U={id:T,node:M,layout:R,data:G,_pendingCleanup:!1};K||Object.defineProperties(U,{transformers:{enumerable:!0,configurable:!0,writable:!0,value:{}},transform:{enumerable:!0,configurable:!0,get:()=>{const q=Object.values(n.droppables[T].transformers);return q.sort((X,le)=>X.order-le.order),q.reduce((X,le)=>le.callback(X),Ri())}},transformed:{enumerable:!0,configurable:!0,get:()=>Dg(n.droppables[T].layout,n.droppables[T].transform)}}),r("droppables",T,U),n.active.draggable&&S()},d=T=>{nt(()=>n.droppables[T])&&(r("droppables",T,"_pendingCleanup",!0),queueMicrotask(()=>u(T)))},u=T=>{if(n.droppables[T]?._pendingCleanup){const M=n.active.droppableId===T;_t(()=>{M&&r("active","droppableId",null),r("droppables",T,void 0)})}},h=({id:T,activators:M})=>{r("sensors",T,{id:T,activators:M,coordinates:{origin:{x:0,y:0},current:{x:0,y:0},get delta(){return{x:n.sensors[T].coordinates.current.x-n.sensors[T].coordinates.origin.x,y:n.sensors[T].coordinates.current.y-n.sensors[T].coordinates.origin.y}}}})},m=T=>{if(!nt(()=>n.sensors[T]))return;const M=n.active.sensorId===T;_t(()=>{M&&r("active","sensorId",null),r("sensors",T,void 0)})},f=({node:T,layout:M})=>{const R=n.active.overlay,G={node:T,layout:M};R||Object.defineProperties(G,{id:{enumerable:!0,configurable:!0,get:()=>n.active.draggable?.id},data:{enumerable:!0,configurable:!0,get:()=>n.active.draggable?.data},transformers:{enumerable:!0,configurable:!0,get:()=>Object.fromEntries(Object.entries(n.active.draggable?n.active.draggable.transformers:{}).filter(([K])=>K!=="addDraggable-existing-offset"))},transform:{enumerable:!0,configurable:!0,get:()=>{const K=Object.values(n.active.overlay?n.active.overlay.transformers:[]);return K.sort((U,q)=>U.order-q.order),K.reduce((U,q)=>q.callback(U),Ri())}},transformed:{enumerable:!0,configurable:!0,get:()=>n.active.overlay?Dg(n.active.overlay.layout,n.active.overlay.transform):new Zm({x:0,y:0,width:0,height:0})}}),r("active","overlay",G)},p=()=>r("active","overlay",null),b=(T,M)=>{_t(()=>{r("sensors",T,"coordinates",{origin:{...M},current:{...M}}),r("active","sensorId",T)})},v=T=>{const M=n.active.sensorId;M&&r("sensors",M,"coordinates","current",{...T})},g=()=>r("active","sensorId",null),k=(T,M)=>{const R={};for(const K of Object.values(n.sensors))if(K)for(const[U,q]of Object.entries(K.activators))R[U]??=[],R[U].push({sensor:K,activator:q});const G={};for(const K in R){let U=K;M&&(U=`on${K}`),G[U]=q=>{for(const{activator:X}of R[K]){if(n.active.sensor)break;X(q,T)}}}return G},S=()=>{let T=!1;const M=Object.values(n.draggables),R=Object.values(n.droppables),G=n.active.overlay;return _t(()=>{const K=new WeakMap;for(const U of M)if(U){const q=U.layout;K.has(U.node)||K.set(U.node,Cl(U.node));const X=K.get(U.node);Mg(q,X)||(r("draggables",U.id,"layout",X),T=!0)}for(const U of R)if(U){const q=U.layout;K.has(U.node)||K.set(U.node,Cl(U.node));const X=K.get(U.node);Mg(q,X)||(r("droppables",U.id,"layout",X),T=!0)}if(G){const U=G.layout,q=Cl(G.node);Mg(U,q)||(r("active","overlay","layout",q),T=!0)}}),T},w=()=>{const T=n.active.overlay??n.active.draggable;if(T){const M=t.collisionDetector(T,Object.values(n.droppables),{activeDroppableId:n.active.droppableId}),R=M?M.id:null;n.active.droppableId!==R&&r("active","droppableId",R)}},x=T=>{const M={id:"sensorMove",order:0,callback:R=>n.active.sensor?{x:R.x+n.active.sensor.coordinates.delta.x,y:R.y+n.active.sensor.coordinates.delta.y}:R};S(),_t(()=>{r("active","draggableId",T),i("draggables",T,M)}),w()},L=()=>{const T=nt(()=>n.active.draggableId);_t(()=>{T!==null&&o("draggables",T,"sensorMove"),r("active",["draggableId","droppableId"],null)}),S()},C=T=>{se(()=>{const M=n.active.draggable;M&&nt(()=>T({draggable:M}))})},I=T=>{se(()=>{const M=n.active.draggable;if(M){const R=nt(()=>n.active.overlay);Object.values(R?R.transform:M.transform),nt(()=>T({draggable:M,overlay:R}))}})},$=T=>{se(()=>{const M=n.active.draggable,R=n.active.droppable;M&&nt(()=>T({draggable:M,droppable:R,overlay:n.active.overlay}))})},F=T=>{se(({previousDraggable:M,previousDroppable:R,previousOverlay:G})=>{const K=n.active.draggable,U=K?n.active.droppable:null,q=K?n.active.overlay:null;return!K&&M&&nt(()=>T({draggable:M,droppable:R,overlay:G})),{previousDraggable:K,previousDroppable:U,previousOverlay:q}},{previousDraggable:null,previousDroppable:null,previousOverlay:null})};I(()=>w()),t.onDragStart&&C(t.onDragStart),t.onDragMove&&I(t.onDragMove),t.onDragOver&&$(t.onDragOver),t.onDragEnd&&F(t.onDragEnd);const D=[n,{addTransformer:i,removeTransformer:o,addDraggable:a,removeDraggable:s,addDroppable:c,removeDroppable:d,addSensor:h,removeSensor:m,setOverlay:f,clearOverlay:p,recomputeLayouts:S,detectCollisions:w,draggableActivators:k,sensorStart:b,sensorMove:v,sensorEnd:g,dragStart:x,dragEnd:L,onDragStart:C,onDragMove:I,onDragOver:$,onDragEnd:F}];return y(iP.Provider,{value:D,get children(){return t.children}})},$s=()=>yt(iP)||null,_ue=(e="pointer-sensor")=>{const[t,{addSensor:n,removeSensor:r,sensorStart:i,sensorMove:o,sensorEnd:a,dragStart:s,dragEnd:l}]=$s(),c=250,d=10;Wt(()=>{n({id:e,activators:{pointerdown:p}})}),he(()=>{r(e)});const u=()=>t.active.sensorId===e,h={x:0,y:0};let m=null,f=null;const p=(w,x)=>{w.button===0&&(document.addEventListener("pointermove",g),document.addEventListener("pointerup",k),f=x,h.x=w.clientX,h.y=w.clientY,m=window.setTimeout(v,c))},b=()=>{m&&(clearTimeout(m),m=null),document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",k),document.removeEventListener("selectionchange",S)},v=()=>{t.active.sensor?u()||b():(i(e,h),s(f),S(),document.addEventListener("selectionchange",S))},g=w=>{const x={x:w.clientX,y:w.clientY};if(!t.active.sensor){const L={x:x.x-h.x,y:x.y-h.y};Math.sqrt(L.x**2+L.y**2)>d&&v()}u()&&(w.preventDefault(),o(x))},k=w=>{b(),u()&&(w.preventDefault(),l(),a())},S=()=>{window.getSelection()?.removeAllRanges()}},aP=e=>(_ue(),Le(()=>e.children)),Wm=e=>({transform:`translate3d(${e.x}px, ${e.y}px, 0)`}),Aue=(e,t={})=>{const[n,{addDraggable:r,removeDraggable:i,draggableActivators:o}]=$s(),[a,s]=me(null);Wt(()=>{const u=a();u&&r({id:e,node:u,layout:Cl(u),data:t})}),he(()=>i(e));const l=()=>n.active.draggableId===e,c=()=>n.draggables[e]?.transform||Ri();return Object.defineProperties((u,h)=>{const m=h?h():{};se(()=>{const f=a(),p=o(e);if(f)for(const b in p)f.addEventListener(b,p[b]);he(()=>{if(f)for(const b in p)f.removeEventListener(b,p[b])})}),s(u),m.skipTransform||se(()=>{const f=c();if(C4(f,Ri()))u.style.removeProperty("transform");else{const p=Wm(c());u.style.setProperty("transform",p.transform??null)}})},{ref:{enumerable:!0,value:s},isActiveDraggable:{enumerable:!0,get:l},dragActivators:{enumerable:!0,get:()=>o(e,!0)},transform:{enumerable:!0,get:c}})},Cue=(e,t={})=>{const[n,{addDroppable:r,removeDroppable:i}]=$s(),[o,a]=me(null);Wt(()=>{const d=o();d&&r({id:e,node:d,layout:Cl(d),data:t})}),he(()=>i(e));const s=()=>n.active.droppableId===e,l=()=>n.droppables[e]?.transform||Ri();return Object.defineProperties((d,u)=>{const h=u?u():{};a(d),h.skipTransform||se(()=>{const m=l();if(C4(m,Ri()))d.style.removeProperty("transform");else{const f=Wm(l());d.style.setProperty("transform",f.transform??null)}})},{ref:{enumerable:!0,value:a},isActiveDroppable:{enumerable:!0,get:s},transform:{enumerable:!0,get:l}})},sP=e=>{const[t,{onDragStart:n,onDragEnd:r,setOverlay:i,clearOverlay:o}]=$s();let a;n(({draggable:l})=>{i({node:l.node,layout:l.layout}),queueMicrotask(()=>{if(a){const c=Cl(a),d={x:(l.layout.width-c.width)/2,y:(l.layout.height-c.height)/2};c.x+=d.x,c.y+=d.y,i({node:a,layout:c})}})}),r(()=>queueMicrotask(o));const s=()=>{const l=t.active.overlay,c=t.active.draggable;return!l||!c?{}:{position:"fixed",transition:"transform 0s",top:`${l.layout.top}px`,left:`${l.layout.left}px`,"min-width":`${c.layout.width}px`,"min-height":`${c.layout.height}px`,...Wm(l.transform),...e.style}};return y(Da,{get mount(){return document.body},get children(){return y(de,{get when(){return t.active.draggable},get children(){var l=yue(),c=a;return typeof c=="function"?or(c,l):a=l,P(l,(()=>{var d=Le(()=>typeof e.children=="function");return()=>d()?e.children(t.active.draggable):e.children})()),Ne(d=>{var u=e.class,h=s();return u!==d.e&&zo(l,d.e=u),d.t=Jh(l,h,d.t),d},{e:void 0,t:void 0}),l}})}})},Eue=(e,t,n)=>{const r=e.slice();return r.splice(n,0,...r.splice(t,1)),r},lP=Ct(),cP=e=>{const[t]=$s(),[n,r]=He({initialIds:[],sortedIds:[]}),i=s=>s>=0&&s<n.initialIds.length;se(()=>{r("initialIds",[...e.ids]),r("sortedIds",[...e.ids])}),se(()=>{t.active.draggableId&&t.active.droppableId?nt(()=>{const s=n.sortedIds.indexOf(t.active.draggableId),l=n.initialIds.indexOf(t.active.droppableId);if(!i(s)||!i(l))r("sortedIds",[...e.ids]);else if(s!==l){const c=Eue(n.sortedIds,s,l);r("sortedIds",c)}}):r("sortedIds",[...e.ids])});const a=[n,{}];return y(lP.Provider,{value:a,get children(){return e.children}})},Iue=()=>yt(lP)||null,Tue=(e,t)=>n=>{e(n),t(n)},dP=(e,t={})=>{const[n,{addTransformer:r,removeTransformer:i}]=$s(),[o]=Iue(),a=Aue(e,t),s=Cue(e,t),l=Tue(a.ref,s.ref),c=()=>o.initialIds.indexOf(e),d=()=>o.sortedIds.indexOf(e),u=b=>n.droppables[b]?.layout||null,h=()=>{const b=Ri(),v=c(),g=d();if(g!==v){const k=u(e),S=u(o.initialIds[g]);k&&S&&(b.x=S.x-k.x,b.y=S.y-k.y)}return b},m={id:"sortableOffset",order:100,callback:b=>{const v=h();return{x:b.x+v.x,y:b.y+v.y}}};Wt(()=>r("droppables",e,m)),he(()=>i("droppables",e,m.id));const f=()=>(e===n.active.draggableId&&!n.active.overlay?n.draggables[e]?.transform:n.droppables[e]?.transform)||Ri();return Object.defineProperties(b=>{a(b,()=>({skipTransform:!0})),s(b,()=>({skipTransform:!0})),se(()=>{const v=f();if(C4(v,Ri()))b.style.removeProperty("transform");else{const g=Wm(f());b.style.setProperty("transform",g.transform??null)}})},{ref:{enumerable:!0,value:l},transform:{enumerable:!0,get:f},isActiveDraggable:{enumerable:!0,get:()=>a.isActiveDraggable},dragActivators:{enumerable:!0,get:()=>a.dragActivators},isActiveDroppable:{enumerable:!0,get:()=>s.isActiveDroppable}})};function Lue(e){const t={locs:[],timer:void 0,pending:void 0,over:void 0,last:void 0},n=e.delay??250,r=e.max??4,i=e.tolerance??80,o=e.edge??18,a=()=>{t.timer!==void 0&&clearTimeout(t.timer),t.timer=void 0,t.pending=void 0},s=()=>{a(),t.over=void 0,t.last=void 0,t.locs.length=0},l=f=>{if(!e.enabled())return;const p=e.el();if(!p)return;const b=p.getBoundingClientRect(),v=f.clientX,g=f.clientY;v<b.left||v>b.right||g<b.top||g>b.bottom||(t.locs.push({x:v,y:g}),t.locs.length>r&&t.locs.shift())},c=()=>{if(!e.enabled()||!e.active())return 0;const f=e.el();if(!f||t.locs.length<2)return 0;const p=f.getBoundingClientRect(),b=t.locs[t.locs.length-1];if(!b)return 0;const v=t.locs[0]??b;if(v.x<p.left||v.x>p.right||v.y<p.top||v.y>p.bottom||t.last&&b.x===t.last.x&&b.y===t.last.y)return 0;if(p.right-b.x<=o)return t.last=b,n;const g={x:p.right,y:p.top-i},k={x:p.right,y:p.bottom+i},S=(I,$)=>($.y-I.y)/($.x-I.x),w=S(b,g),x=S(b,k),L=S(v,g),C=S(v,k);return w<L&&x>C?(t.last=b,n):(t.last=void 0,0)},d=f=>{a(),e.onActivate(f)},u=f=>{if(!f||e.active()===f)return;if(!e.active()){d(f);return}const p=c();if(p===0){d(f);return}a(),t.pending=f,t.timer=window.setTimeout(()=>{t.timer=void 0,t.pending===f&&(t.pending=void 0,e.enabled()&&e.active()&&t.over===f&&e.onActivate(f))},p)};return{move:l,enter:(f,p)=>{e.enabled()&&(t.over=f,l(p),u(f))},leave:f=>{t.over===f&&(t.over=void 0),t.pending===f&&a()},activate:d,request:u,cancel:a,reset:s}}const kc=e=>e.replace(/[\\/]+$/,""),el=new Map,tl=new Map;function Due(){const e={resolve:n=>{}};return{promise:new Promise(n=>{e.resolve=n}),resolve:e.resolve}}const ff={get(e){return el.get(kc(e))},pending(e){const t=kc(e),n=el.get(t);n&&n.status!=="pending"||el.set(t,{status:"pending"})},ready(e){const t=kc(e),n={status:"ready"};el.set(t,n);const r=tl.get(t);r&&(tl.delete(t),r.resolve(n))},failed(e,t){const n=kc(e),r={status:"failed",message:t};el.set(n,r);const i=tl.get(n);i&&(tl.delete(n),i.resolve(r))},wait(e){const t=kc(e),n=el.get(t);if(n&&n.status!=="pending")return Promise.resolve(n);const r=tl.get(t);if(r)return r.promise;const i=Due();return tl.set(t,i),i.promise}};var Of={exports:{}},Mue=Of.exports,Hx;function Pue(){return Hx||(Hx=1,(function(e){((t,n)=>{e.exports?e.exports=n():t.fuzzysort=n()})(Mue,t=>{var n=(ne,B)=>{if(!ne||!B)return q;var ae=f(ne);R(B)||(B=m(B));var Y=ae.bitflags;return(Y&B._bitflags)!==Y?q:b(ae,B)},r=(ne,B,ae)=>{if(!ne)return ae?.all?p(B,ae):U;var Y=f(ne),ie=Y.bitflags,be=Y.containsSpace,ge=u(ae?.threshold||0),Re=ae?.limit||G,Oe=0,dt=0,it=B.length;function fn(Yr){Oe<Re?(_e.add(Yr),++Oe):(++dt,Yr._score>_e.peek()._score&&_e.replaceTop(Yr))}if(ae?.key)for(var Et=ae.key,pt=0;pt<it;++pt){var nn=B[pt],tt=M(nn,Et);if(tt&&(R(tt)||(tt=m(tt)),(ie&tt._bitflags)===ie)){var lt=b(Y,tt);lt!==q&&(lt._score<ge||(lt.obj=nn,fn(lt)))}}else if(ae?.keys){var Bn=ae.keys,sr=Bn.length;e:for(var pt=0;pt<it;++pt){var nn=B[pt];{for(var vn=0,Ke=0;Ke<sr;++Ke){var Et=Bn[Ke],tt=M(nn,Et);if(!tt){D[Ke]=X;continue}R(tt)||(tt=m(tt)),D[Ke]=tt,vn|=tt._bitflags}if((ie&vn)!==ie)continue}if(be)for(let zt=0;zt<Y.spaceSearches.length;zt++)F[zt]=K;for(var Ke=0;Ke<sr;++Ke){if(tt=D[Ke],tt===X){T[Ke]=X;continue}if(T[Ke]=b(Y,tt,!1,be),T[Ke]===q){T[Ke]=X;continue}if(be)for(let Ut=0;Ut<Y.spaceSearches.length;Ut++){if(N[Ut]>-1e3&&F[Ut]>K){var _n=(F[Ut]+N[Ut])/4;_n>F[Ut]&&(F[Ut]=_n)}N[Ut]>F[Ut]&&(F[Ut]=N[Ut])}}if(be){for(let zt=0;zt<Y.spaceSearches.length;zt++)if(F[zt]===K)continue e}else{var bt=!1;for(let zt=0;zt<sr;zt++)if(T[zt]._score!==K){bt=!0;break}if(!bt)continue}var lr=new l(sr);for(let zt=0;zt<sr;zt++)lr[zt]=T[zt];if(be){var bn=0;for(let zt=0;zt<Y.spaceSearches.length;zt++)bn+=F[zt]}else{var bn=K;for(let Ut=0;Ut<sr;Ut++){var lt=lr[Ut];if(lt._score>-1e3&&bn>K){var _n=(bn+lt._score)/4;_n>bn&&(bn=_n)}lt._score>bn&&(bn=lt._score)}}if(lr.obj=nn,lr._score=bn,ae?.scoreFn){if(bn=ae.scoreFn(lr),!bn)continue;bn=u(bn),lr._score=bn}bn<ge||fn(lr)}}else for(var pt=0;pt<it;++pt){var tt=B[pt];if(tt&&(R(tt)||(tt=m(tt)),(ie&tt._bitflags)===ie)){var lt=b(Y,tt);lt!==q&&(lt._score<ge||fn(lt))}}if(Oe===0)return U;for(var ki=new Array(Oe),pt=Oe-1;pt>=0;--pt)ki[pt]=_e.poll();return ki.total=Oe+dt,ki},i=(ne,B="<b>",ae="</b>")=>{for(var Y=typeof B=="function"?B:void 0,ie=ne.target,be=ie.length,ge=ne.indexes,Re="",Oe=0,dt=0,it=!1,fn=[],Et=0;Et<be;++Et){var pt=ie[Et];if(ge[dt]===Et){if(++dt,it||(it=!0,Y?(fn.push(Re),Re=""):Re+=B),dt===ge.length){Y?(Re+=pt,fn.push(Y(Re,Oe++)),Re="",fn.push(ie.substr(Et+1))):Re+=pt+ae+ie.substr(Et+1);break}}else it&&(it=!1,Y?(fn.push(Y(Re,Oe++)),Re=""):Re+=ae);Re+=pt}return Y?fn:Re},o=ne=>{typeof ne=="number"?ne=""+ne:typeof ne!="string"&&(ne="");var B=k(ne);return c(ne,{_targetLower:B._lower,_targetLowerCodes:B.lowerCodes,_bitflags:B.bitflags})},a=()=>{x.clear(),L.clear()};class s{get indexes(){return this._indexes.slice(0,this._indexes.len).sort((B,ae)=>B-ae)}set indexes(B){return this._indexes=B}highlight(B,ae){return i(this,B,ae)}get score(){return d(this._score)}set score(B){this._score=u(B)}}class l extends Array{get score(){return d(this._score)}set score(B){this._score=u(B)}}var c=(ne,B)=>{const ae=new s;return ae.target=ne,ae.obj=B.obj??q,ae._score=B._score??K,ae._indexes=B._indexes??[],ae._targetLower=B._targetLower??"",ae._targetLowerCodes=B._targetLowerCodes??q,ae._nextBeginningIndexes=B._nextBeginningIndexes??q,ae._bitflags=B._bitflags??0,ae},d=ne=>ne===K?0:ne>1?ne:Math.E**(((-ne+1)**.04307-1)*-2),u=ne=>ne===0?K:ne>1?ne:1-Math.pow(Math.log(ne)/-2+1,1/.04307),h=ne=>{typeof ne=="number"?ne=""+ne:typeof ne!="string"&&(ne=""),ne=ne.trim();var B=k(ne),ae=[];if(B.containsSpace){var Y=ne.split(/\s+/);Y=[...new Set(Y)];for(var ie=0;ie<Y.length;ie++)if(Y[ie]!==""){var be=k(Y[ie]);ae.push({lowerCodes:be.lowerCodes,_lower:Y[ie].toLowerCase(),containsSpace:!1})}}return{lowerCodes:B.lowerCodes,_lower:B._lower,containsSpace:B.containsSpace,bitflags:B.bitflags,spaceSearches:ae}},m=ne=>{if(ne.length>999)return o(ne);var B=x.get(ne);return B!==void 0||(B=o(ne),x.set(ne,B)),B},f=ne=>{if(ne.length>999)return h(ne);var B=L.get(ne);return B!==void 0||(B=h(ne),L.set(ne,B)),B},p=(ne,B)=>{var ae=[];ae.total=ne.length;var Y=B?.limit||G;if(B?.key)for(var ie=0;ie<ne.length;ie++){var be=ne[ie],ge=M(be,B.key);if(ge!=q){R(ge)||(ge=m(ge));var Re=c(ge.target,{_score:ge._score,obj:be});if(ae.push(Re),ae.length>=Y)return ae}}else if(B?.keys)for(var ie=0;ie<ne.length;ie++){for(var be=ne[ie],Oe=new l(B.keys.length),dt=B.keys.length-1;dt>=0;--dt){var ge=M(be,B.keys[dt]);if(!ge){Oe[dt]=X;continue}R(ge)||(ge=m(ge)),ge._score=K,ge._indexes.len=0,Oe[dt]=ge}if(Oe.obj=be,Oe._score=K,ae.push(Oe),ae.length>=Y)return ae}else for(var ie=0;ie<ne.length;ie++){var ge=ne[ie];if(ge!=q&&(R(ge)||(ge=m(ge)),ge._score=K,ge._indexes.len=0,ae.push(ge),ae.length>=Y))return ae}return ae},b=(ne,B,ae=!1,Y=!1)=>{if(ae===!1&&ne.containsSpace)return v(ne,B,Y);for(var ie=ne._lower,be=ne.lowerCodes,ge=be[0],Re=B._targetLowerCodes,Oe=be.length,dt=Re.length,pt=0,it=0,fn=0;;){var Et=ge===Re[it];if(Et){if(C[fn++]=it,++pt,pt===Oe)break;ge=be[pt]}if(++it,it>=dt)return q}var pt=0,nn=!1,tt=0,lt=B._nextBeginningIndexes;lt===q&&(lt=B._nextBeginningIndexes=w(B.target)),it=C[0]===0?0:lt[C[0]-1];var Bn=0;if(it!==dt)for(;;)if(it>=dt){if(pt<=0||(++Bn,Bn>200))break;--pt;var sr=I[--tt];it=lt[sr]}else{var Et=be[pt]===Re[it];if(Et){if(I[tt++]=it,++pt,pt===Oe){nn=!0;break}++it}else it=lt[it]}var vn=Oe<=1?-1:B._targetLower.indexOf(ie,C[0]),Ke=!!~vn,_n=Ke?vn===0||B._nextBeginningIndexes[vn-1]===vn:!1;if(Ke&&!_n){for(var bt=0;bt<lt.length;bt=lt[bt])if(!(bt<=vn)){for(var lr=0;lr<Oe&&be[lr]===B._targetLowerCodes[bt+lr];lr++);if(lr===Oe){vn=bt,_n=!0;break}}}var bn=zt=>{for(var Ut=0,Ns=0,Rr=1;Rr<Oe;++Rr)zt[Rr]-zt[Rr-1]!==1&&(Ut-=zt[Rr],++Ns);var yu=zt[Oe-1]-zt[0]-(Oe-1);if(Ut-=(12+yu)*Ns,zt[0]!==0&&(Ut-=zt[0]*zt[0]*.2),!nn)Ut*=1e3;else{for(var Fs=1,Rr=lt[0];Rr<dt;Rr=lt[Rr])++Fs;Fs>24&&(Ut*=(Fs-24)*10)}return Ut-=(dt-Oe)/2,Ke&&(Ut/=1+Oe*Oe*1),_n&&(Ut/=1+Oe*Oe*1),Ut-=(dt-Oe)/2,Ut};if(nn)if(_n){for(var bt=0;bt<Oe;++bt)C[bt]=vn+bt;var ki=C,Yr=bn(C)}else var ki=I,Yr=bn(I);else{if(Ke)for(var bt=0;bt<Oe;++bt)C[bt]=vn+bt;var ki=C,Yr=bn(ki)}B._score=Yr;for(var bt=0;bt<Oe;++bt)B._indexes[bt]=ki[bt];B._indexes.len=Oe;const zs=new s;return zs.target=B.target,zs._score=B._score,zs._indexes=B._indexes,zs},v=(ne,B,ae)=>{for(var Y=new Set,ie=0,be=q,ge=0,Re=ne.spaceSearches,Oe=Re.length,dt=0,it=()=>{for(let _n=dt-1;_n>=0;_n--)B._nextBeginningIndexes[$[_n*2+0]]=$[_n*2+1]},fn=!1,Ke=0;Ke<Oe;++Ke){N[Ke]=K;var Et=Re[Ke];if(be=b(Et,B),ae){if(be===q)continue;fn=!0}else if(be===q)return it(),q;var pt=Ke===Oe-1;if(!pt){var nn=be._indexes,tt=!0;for(let bt=0;bt<nn.len-1;bt++)if(nn[bt+1]-nn[bt]!==1){tt=!1;break}if(tt){var lt=nn[nn.len-1]+1,Bn=B._nextBeginningIndexes[lt-1];for(let bt=lt-1;bt>=0&&Bn===B._nextBeginningIndexes[bt];bt--)B._nextBeginningIndexes[bt]=lt,$[dt*2+0]=bt,$[dt*2+1]=Bn,dt++}}ie+=be._score/Oe,N[Ke]=be._score/Oe,be._indexes[0]<ge&&(ie-=(ge-be._indexes[0])*2),ge=be._indexes[0];for(var sr=0;sr<be._indexes.len;++sr)Y.add(be._indexes[sr])}if(ae&&!fn)return q;it();var vn=b(ne,B,!0);if(vn!==q&&vn._score>ie){if(ae)for(var Ke=0;Ke<Oe;++Ke)N[Ke]=vn._score/Oe;return vn}ae&&(be=B),be._score=ie;var Ke=0;for(let _n of Y)be._indexes[Ke++]=_n;return be._indexes.len=Ke,be},g=ne=>ne.replace(/\p{Script=Latin}+/gu,B=>B.normalize("NFD")).replace(/[\u0300-\u036f]/g,""),k=ne=>{ne=g(ne);for(var B=ne.length,ae=ne.toLowerCase(),Y=[],ie=0,be=!1,ge=0;ge<B;++ge){var Re=Y[ge]=ae.charCodeAt(ge);if(Re===32){be=!0;continue}var Oe=Re>=97&&Re<=122?Re-97:Re>=48&&Re<=57?26:Re<=127?30:31;ie|=1<<Oe}return{lowerCodes:Y,bitflags:ie,containsSpace:be,_lower:ae}},S=ne=>{for(var B=ne.length,ae=[],Y=0,ie=!1,be=!1,ge=0;ge<B;++ge){var Re=ne.charCodeAt(ge),Oe=Re>=65&&Re<=90,dt=Oe||Re>=97&&Re<=122||Re>=48&&Re<=57,it=Oe&&!ie||!be||!dt;ie=Oe,be=dt,it&&(ae[Y++]=ge)}return ae},w=ne=>{ne=g(ne);for(var B=ne.length,ae=S(ne),Y=[],ie=ae[0],be=0,ge=0;ge<B;++ge)ie>ge?Y[ge]=ie:(ie=ae[++be],Y[ge]=ie===void 0?B:ie);return Y},x=new Map,L=new Map,C=[],I=[],$=[],F=[],N=[],D=[],T=[],M=(ne,B)=>{var ae=ne[B];if(ae!==void 0)return ae;if(typeof B=="function")return B(ne);var Y=B;Array.isArray(B)||(Y=B.split("."));for(var ie=Y.length,be=-1;ne&&++be<ie;)ne=ne[Y[be]];return ne},R=ne=>typeof ne=="object"&&typeof ne._bitflags=="number",G=1/0,K=-G,U=[];U.total=0;var q=null,X=o(""),le=ne=>{var B=[],ae=0,Y={},ie=be=>{for(var ge=0,Re=B[ge],Oe=1;Oe<ae;){var dt=Oe+1;ge=Oe,dt<ae&&B[dt]._score<B[Oe]._score&&(ge=dt),B[ge-1>>1]=B[ge],Oe=1+(ge<<1)}for(var it=ge-1>>1;ge>0&&Re._score<B[it]._score;it=(ge=it)-1>>1)B[ge]=B[it];B[ge]=Re};return Y.add=(be=>{var ge=ae;B[ae++]=be;for(var Re=ge-1>>1;ge>0&&be._score<B[Re]._score;Re=(ge=Re)-1>>1)B[ge]=B[Re];B[ge]=be}),Y.poll=(be=>{if(ae!==0){var ge=B[0];return B[0]=B[--ae],ie(),ge}}),Y.peek=(be=>{if(ae!==0)return B[0]}),Y.replaceTop=(be=>{B[0]=be,ie()}),Y},_e=le();return{single:n,go:r,prepare:o,cleanup:a}})})(Of)),Of.exports}var Oue=Pue();const qh=z8(Oue);function $ue(e){const[t,n]=me(e.initialValue),r=()=>e.value?.()!==void 0,i=()=>r()?e.value?.():t();return[i,a=>nt(()=>{let s;return typeof a=="function"?s=a(i()):s=a,Object.is(s,i())||(r()||n(s),e.onChange?.(s)),s})]}var Rue=$ue,zue=e=>{const t=ee({initialActive:null,orientation:"vertical",loop:!0,textDirection:"ltr",handleTab:!0,vimMode:!1,vimKeys:{up:"k",down:"j",right:"l",left:"h"}},e),[n,r]=Rue({initialValue:t.initialActive,onChange:t.onActiveChange}),i=()=>{const s=Zt(t.vimKeys);let l,c;return Zt(t.orientation)==="vertical"?(l="arrowdown",c=s.down):Zt(t.textDirection)==="ltr"?(l="arrowright",c=s.right):(l="arrowleft",c=s.left),Zt(t.vimMode)?[l,c]:[l]},o=()=>{const s=Zt(t.vimKeys);let l,c;return Zt(t.orientation)==="vertical"?(l="arrowup",c=s.up):Zt(t.textDirection)==="ltr"?(l="arrowleft",c=s.left):(l="arrowright",c=s.right),Zt(t.vimMode)?[l,c]:[l]};return{active:n,setActive:r,onKeyDown:s=>{const l=s.key.toLowerCase(),c=Zt(t.items);if(c.length===0)return;const d=c.length,u=n(),h=u!==null?c.indexOf(u):null;i().includes(l)?(s.preventDefault(),h===d-1?Zt(t.loop)&&r(()=>c[0]):r(()=>c[h!==null?h+1:0])):o().includes(l)?(s.preventDefault(),h===0?Zt(t.loop)&&r(()=>c[d-1]):r(()=>c[h!==null?h-1:d-1])):l==="home"?(s.preventDefault(),r(()=>c[0])):l==="end"?(s.preventDefault(),r(()=>c[d-1])):Zt(t.handleTab)&&h!==null&&(l==="tab"&&!s.shiftKey&&h<d-1&&(s.preventDefault(),r(()=>c[h+1])),l==="tab"&&s.shiftKey&&h>0&&(s.preventDefault(),r(()=>c[h-1])))}}},Nue=zue;function uP(e){const[t,n]=He({filter:""}),r=[],[i,{refetch:o}]=Ss(()=>({filter:t.filter,items:typeof e.items=="function"?e.items(t.filter):e.items}),async({filter:h,items:m})=>{const p=(h??"").toLowerCase(),b=await Promise.resolve(m)||[];return ks(b,g=>p?!e.filterKeys&&Array.isArray(g)&&g.every(k=>typeof k=="string")?qh.go(p,g).map(k=>k.target):qh.go(p,g,{keys:e.filterKeys}).map(k=>k.obj):g,Vh(g=>e.groupBy?e.groupBy(g):""),oM(),aM(([g,k])=>({category:g,items:e.sortBy?k.sort(e.sortBy):k})),g=>e.sortGroupsBy?g.sort(e.sortGroupsBy):g)},{initialValue:r}),a=j(()=>ks(i.latest||[],Nse(h=>h.items)));function s(){if(e.noInitialSelection)return"";if(e.current)return e.key(e.current);const h=a();return h.length===0?"":e.key(h[0])}const l=Nue({items:()=>a().map(e.key),initialActive:s(),loop:!0}),c=()=>{if(e.noInitialSelection){l.setActive("");return}const h=a();h.length!==0&&l.setActive(e.key(h[0]))},d=h=>{if(h.key==="Enter"&&!h.isComposing){h.preventDefault();const m=a().findIndex(p=>e.key(p)===l.active()),f=a()[m];f&&e.onSelect?.(f,m)}else if(h.ctrlKey&&!h.metaKey&&!h.altKey&&!h.shiftKey){if(h.key==="n"||h.key==="p"){h.preventDefault();const m=new KeyboardEvent("keydown",{key:h.key==="n"?"ArrowDown":"ArrowUp",bubbles:!0});l.onKeyDown(m)}}else{if(h.altKey||h.metaKey)return;l.onKeyDown(h)}};return se(Ht(i,()=>{c()})),{grouped:i,filter:()=>t.filter,flat:a,reset:c,refetch:o,clear:()=>n("filter",""),onKeyDown:d,onInput:h=>{n("filter",h)},active:l.active,setActive:l.setActive}}var E4=["id","name","validationState","required","disabled","readOnly"];function I4(e){const t=`form-control-${cn()}`,n=Be({id:t},e),[r,i]=me(),[o,a]=me(),[s,l]=me(),[c,d]=me(),u=(p,b,v)=>{const g=v!=null||r()!=null;return[v,r(),g&&b!=null?p:void 0].filter(Boolean).join(" ")||void 0},h=p=>[s(),c(),p].filter(Boolean).join(" ")||void 0,m=j(()=>({"data-valid":ce(n.validationState)==="valid"?"":void 0,"data-invalid":ce(n.validationState)==="invalid"?"":void 0,"data-required":ce(n.required)?"":void 0,"data-disabled":ce(n.disabled)?"":void 0,"data-readonly":ce(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>ce(n.name)??ce(n.id),dataset:m,validationState:()=>ce(n.validationState),isRequired:()=>ce(n.required),isDisabled:()=>ce(n.disabled),isReadOnly:()=>ce(n.readOnly),labelId:r,fieldId:o,descriptionId:s,errorMessageId:c,getAriaLabelledBy:u,getAriaDescribedBy:h,generateId:Or(()=>ce(n.id)),registerLabel:In(i),registerField:In(a),registerDescription:In(l),registerErrorMessage:In(d)}}}var Gm=Ct();function Gi(){const e=yt(Gm);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function pu(e){const t=Gi(),n=Be({id:t.generateId("description")},e);return se(()=>he(t.registerDescription(n.id))),y(We,ee({as:"div"},()=>t.dataset(),n))}var T4=["id","aria-label","aria-labelledby","aria-describedby"];function L4(e){const t=Gi(),n=Be({id:t.generateId("field")},e);return se(()=>he(t.registerField(ce(n.id)))),{fieldProps:{id:()=>ce(n.id),ariaLabel:()=>ce(n["aria-label"]),ariaLabelledBy:()=>t.getAriaLabelledBy(ce(n.id),ce(n["aria-label"]),ce(n["aria-labelledby"])),ariaDescribedBy:()=>t.getAriaDescribedBy(ce(n["aria-describedby"]))}}}function Km(e){let t;const n=Gi(),r=Be({id:n.generateId("label")},e),[i,o]=ue(r,["ref"]),a=Td(()=>t,()=>"label");return se(()=>he(n.registerLabel(o.id))),y(We,ee({as:"label",ref(s){var l=kt(c=>t=c,i.ref);typeof l=="function"&&l(s)},get for(){return Le(()=>a()==="label")()?n.fieldId():void 0}},()=>n.dataset(),o))}function D4(e,t){se(Ht(e,n=>{if(n==null)return;const r=Fue(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),he(()=>{r.removeEventListener("reset",t)}))}))}function Fue(e){return Vue(e)?e.form:e.closest("form")}function Vue(e){return e.matches("textarea, input, select, button")}function gu(e){const t=Gi(),n=Be({id:t.generateId("error-message")},e),[r,i]=ue(n,["forceMount"]),o=()=>t.validationState()==="invalid";return se(()=>{o()&&he(t.registerErrorMessage(i.id))}),y(de,{get when(){return r.forceMount||o()},get children(){return y(We,ee({as:"div"},()=>t.dataset(),i))}})}var jue={};Ar(jue,{Description:()=>pu,ErrorMessage:()=>gu,Input:()=>hP,Label:()=>Km,Root:()=>pP,TextArea:()=>gP,TextField:()=>Ja,useTextFieldContext:()=>M4});var fP=Ct();function M4(){const e=yt(fP);if(e===void 0)throw new Error("[kobalte]: `useTextFieldContext` must be used within a `TextField` component");return e}function hP(e){return y(mP,ee({type:"text"},e))}function mP(e){const t=Gi(),n=M4(),r=Be({id:n.generateId("input")},e),[i,o,a]=ue(r,["onInput"],T4),{fieldProps:s}=L4(o);return y(We,ee({as:"input",get id(){return s.id()},get name(){return t.name()},get value(){return n.value()},get required(){return t.isRequired()},get disabled(){return t.isDisabled()},get readonly(){return t.isReadOnly()},get"aria-label"(){return s.ariaLabel()},get"aria-labelledby"(){return s.ariaLabelledBy()},get"aria-describedby"(){return s.ariaDescribedBy()},get"aria-invalid"(){return t.validationState()==="invalid"||void 0},get"aria-required"(){return t.isRequired()||void 0},get"aria-disabled"(){return t.isDisabled()||void 0},get"aria-readonly"(){return t.isReadOnly()||void 0},get onInput(){return gt([i.onInput,n.onInput])}},()=>t.dataset(),a))}function pP(e){let t;const n=`textfield-${cn()}`,r=Be({id:n},e),[i,o,a]=ue(r,["ref","value","defaultValue","onChange"],E4),s=i.value,[l,c]=Gl({value:()=>s===void 0?void 0:i.value??"",defaultValue:()=>i.defaultValue,onChange:m=>i.onChange?.(m)}),{formControlContext:d}=I4(o);D4(()=>t,()=>c(i.defaultValue??""));const u=m=>{if(d.isReadOnly()||d.isDisabled())return;const f=m.target;c(f.value),f.value=l()??""},h={value:l,generateId:Or(()=>ce(o.id)),onInput:u};return y(Gm.Provider,{value:d,get children(){return y(fP.Provider,{value:h,get children(){return y(We,ee({as:"div",ref(m){var f=kt(p=>t=p,i.ref);typeof f=="function"&&f(m)},role:"group",get id(){return ce(o.id)}},()=>d.dataset(),a))}})}})}function gP(e){let t;const n=M4(),r=Be({id:n.generateId("textarea")},e),[i,o]=ue(r,["ref","autoResize","submitOnEnter","onKeyPress"]);se(Ht([()=>t,()=>i.autoResize,()=>n.value()],([s,l])=>{!s||!l||Bue(s)}));const a=s=>{t&&i.submitOnEnter&&s.key==="Enter"&&!s.shiftKey&&t.form&&(t.form.requestSubmit(),s.preventDefault())};return y(mP,ee({as:"textarea",get"aria-multiline"(){return i.submitOnEnter?"false":void 0},get onKeyPress(){return gt([i.onKeyPress,a])},ref(s){var l=kt(c=>t=c,i.ref);typeof l=="function"&&l(s)}},o))}function Bue(e){const t=e.style.alignSelf,n=e.style.overflow;"MozAppearance"in e.style||(e.style.overflow="hidden"),e.style.alignSelf="start",e.style.height="auto",e.style.height=`${e.scrollHeight+(e.offsetHeight-e.clientHeight)}px`,e.style.overflow=n,e.style.alignSelf=t}var Ja=Object.assign(pP,{Description:pu,ErrorMessage:gu,Input:hP,Label:Km,TextArea:gP}),Hue=Q("<div data-slot=input-wrapper>");function En(e){const t=Wl(),[n,r]=ue(e,["name","defaultValue","value","onChange","onKeyDown","validationState","required","disabled","readOnly","class","label","hideLabel","description","error","variant","copyable","copyKind","multiline"]),[i,o]=me(!1),a=()=>i()?t.t("ui.textField.copied"):n.copyKind==="link"?t.t("ui.textField.copyLink"):t.t("ui.textField.copyToClipboard"),s=()=>i()?"check":n.copyKind==="link"?"link":"copy";async function l(){const d=n.value??n.defaultValue??"";await navigator.clipboard.writeText(d),o(!0),setTimeout(()=>o(!1),2e3)}function c(){n.copyable&&l()}return y(Ja,{"data-component":"input",get"data-variant"(){return n.variant||"normal"},get name(){return n.name},get defaultValue(){return n.defaultValue},get value(){return n.value},get onChange(){return n.onChange},get onKeyDown(){return n.onKeyDown},onClick:c,get required(){return n.required},get disabled(){return n.disabled},get readOnly(){return n.readOnly},get validationState(){return n.validationState},get children(){return[y(de,{get when(){return n.label},get children(){return y(Ja.Label,{"data-slot":"input-label",get classList(){return{"sr-only":n.hideLabel}},get children(){return n.label}})}}),(()=>{var d=Hue();return P(d,y(de,{get when(){return n.multiline},get fallback(){return y(Ja.Input,ee(r,{"data-slot":"input-input",get class(){return n.class}}))},get children(){return y(Ja.TextArea,ee(r,{autoResize:!0,"data-slot":"input-input",get class(){return n.class}}))}}),null),P(d,y(de,{get when(){return n.copyable},get children(){return y(_r,{get value(){return a()},placement:"top",gutter:4,get forceOpen(){return i()},skipDelayDuration:0,get children(){return y(xn,{type:"button",get icon(){return s()},variant:"ghost",onClick:l,tabIndex:-1,"data-slot":"input-copy-button",get"aria-label"(){return a()}})}})}}),null),d})(),y(de,{get when(){return n.description},get children(){return y(Ja.Description,{"data-slot":"input-description",get children(){return n.description}})}}),y(Ja.ErrorMessage,{"data-slot":"input-error",get children(){return n.error}})]}})}var Uue=Q("<div data-slot=list-item-add>"),que=Q("<div data-slot=list-header>"),Ux=Q("<span>"),Zue=Q("<span data-slot=list-filter>&quot;<!>&quot;"),Wue=Q("<div data-slot=list-search-wrapper><div data-slot=list-search><div data-slot=list-search-container>"),qx=Q("<div data-slot=list-group><div data-slot=list-items>"),Gue=Q("<div data-component=list><div data-slot=list-scroll>"),Kue=Q("<div data-slot=list-empty-state><div data-slot=list-message>"),Jue=Q("<span data-slot=list-item-selected-icon>"),Que=Q("<button data-slot=list-item type=button>"),Xue=Q("<span data-slot=list-item-active-icon>"),Yue=Q("<span data-slot=list-item-divider>");function Zx(e,t){const n=e.querySelectorAll('[data-slot="list-item"][data-key]');for(const r of n)if(r.getAttribute("data-key")===t)return r}function Jm(e){const t=Wl(),[n,r]=me(void 0),[i,o]=me("");let a;const[s,l]=He({mouseActive:!1}),c=(D,T,M)=>{const R=D.getBoundingClientRect(),G=T.getBoundingClientRect(),K=G.top-R.top+D.scrollTop;K+G.height,D.scrollTop+D.clientHeight;const q=K-D.clientHeight/2+G.height/2,X=Math.max(0,D.scrollHeight-D.clientHeight);D.scrollTop=Math.max(0,Math.min(q,X))},{filter:d,grouped:u,flat:h,active:m,setActive:f,onKeyDown:p,onInput:b,refetch:v}=uP(e),g=()=>typeof e.search=="object"?e.search:{},k=()=>g().action,S=()=>e.add,w=()=>!!S(),x=D=>D.movementX!==0||D.movementY!==0,L=(D,T)=>{const M=d();if(o(D),b(D),e.onFilter?.(D),!!T?.ref){if(M===D){v();return}queueMicrotask(()=>v())}};se(()=>{e.filter!==void 0&&e.filter!==i()&&(o(e.filter),b(e.filter))}),se(Ht(d,()=>{n()?.scrollTo(0,0)},{defer:!0})),se(()=>{const D=n();if(!D||!e.current)return;const T=e.key(e.current);requestAnimationFrame(()=>{const M=Zx(D,T);M&&c(D,M)})}),se(()=>{const D=h();if(s.mouseActive||D.length===0)return;const T=n();if(!T)return;if(m()===e.key(D[0])){T.scrollTo(0,0);return}const M=m();if(!M)return;const R=Zx(T,M);R&&c(T,R)}),se(()=>{const D=h(),T=m(),M=D.find(R=>e.key(R)===T);e.onMove?.(M)});const C=(D,T)=>{e.onSelect?.(D,T)},I=D=>{if(l("mouseActive",!1),D.key==="Escape")return;const T=h(),M=T.find(G=>e.key(G)===m()),R=M?T.indexOf(M):-1;if(e.onKeyEvent?.(D,M),!D.defaultPrevented)if(D.key==="Enter"&&!D.isComposing)D.preventDefault(),M&&C(M,R);else if(e.search){if(D.ctrlKey&&!D.metaKey&&!D.altKey&&!D.shiftKey&&(D.key==="n"||D.key==="p")){p(D);return}(D.key==="ArrowDown"||D.key==="ArrowUp")&&p(D)}else p(D)};e.ref?.({onKeyDown:I,setScrollRef:r,setFilter:D=>L(D,{ref:!0})});const $=()=>{const D=S();return D?(()=>{var T=Uue();return P(T,()=>D.render()),Ne(M=>ln(T,{[D.class??""]:!!D.class},M)),T})():null};function F(D){const[T,M]=me(!1),[R,G]=me(void 0);return se(()=>{const K=n(),U=R();if(!K||!U)return;const q=()=>{const X=U.getBoundingClientRect(),le=K.getBoundingClientRect();M(X.top<=le.top+1&&K.scrollTop>0)};K.addEventListener("scroll",q,{passive:!0}),q(),he(()=>K.removeEventListener("scroll",q))}),(()=>{var K=que();return or(G,K),P(K,()=>e.groupHeader?.(D.group)??D.group.category),Ne(()=>et(K,"data-stuck",T())),K})()}const N=()=>{if(u.loading)return e.loadingMessage??t.t("ui.list.loading");if(e.emptyMessage)return e.emptyMessage;const D=d();if(!D)return t.t("ui.list.empty");const T=t.t("ui.list.emptyWithFilter.suffix");return[(()=>{var M=Ux();return P(M,()=>t.t("ui.list.emptyWithFilter.prefix")),M})(),(()=>{var M=Zue(),R=M.firstChild,G=R.nextSibling;return G.nextSibling,P(M,D,G),M})(),y(de,{when:T,get children(){var M=Ux();return P(M,T),M}})]};return(()=>{var D=Gue(),T=D.firstChild;return P(D,y(de,{get when(){return!!e.search},get children(){var M=Wue(),R=M.firstChild,G=R.firstChild;return R.$$pointerdown=K=>{const U=K.currentTarget;if(!(U instanceof HTMLElement))return;const q=U.querySelector("input, textarea");(q instanceof HTMLInputElement||q instanceof HTMLTextAreaElement?q:a)?.focus(),K.stopPropagation()},P(G,y(de,{get when(){return!g().hideIcon},get children(){return y(Dt,{name:"magnifying-glass"})}}),null),P(G,y(En,{get autofocus(){return g().autofocus},variant:"ghost","data-slot":"list-search-input",type:"text",ref:K=>{a=K},get value(){return i()},onChange:K=>L(K),onKeyDown:I,get placeholder(){return g().placeholder},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off"}),null),P(R,y(de,{get when(){return i()},get children(){return y(xn,{icon:"circle-x",variant:"ghost",onClick:()=>{o(""),queueMicrotask(()=>a?.focus())},get"aria-label"(){return t.t("ui.list.clearFilter")}})}}),null),P(M,k,null),Ne(K=>ln(R,{[g().class??""]:!!g().class},K)),M}}),T),or(r,T),P(T,y(de,{get when(){return h().length>0||w()},get fallback(){return(()=>{var M=Kue(),R=M.firstChild;return P(R,N),M})()},get children(){return[y(on,{get each(){return u.latest},children:(M,R)=>{const G=()=>R()===u.latest.length-1;return(()=>{var K=qx(),U=K.firstChild;return P(K,y(de,{get when(){return M.category},get children(){return y(F,{group:M})}}),U),P(U,y(on,{get each(){return M.items},children:(q,X)=>{const le=(()=>{var _e=Que();return _e.addEventListener("mouseleave",()=>{s.mouseActive&&f(null)}),_e.$$mousemove=ne=>{x(ne)&&(l("mouseActive",!0),f(e.key(q)))},_e.$$keydown=I,_e.$$click=()=>C(q,X()),P(_e,()=>e.children(q),null),P(_e,y(de,{get when(){return q===e.current},get children(){var ne=Jue();return P(ne,y(Dt,{name:"check-small"})),ne}}),null),P(_e,y(de,{get when(){return e.activeIcon},children:ne=>(()=>{var B=Xue();return P(B,y(Dt,{get name(){return ne()}})),B})()}),null),P(_e,(()=>{var ne=Le(()=>!!(e.divider&&(X()!==M.items.length-1||w()&&G())));return()=>ne()&&Yue()})(),null),Ne(ne=>{var B=e.key(q),ae=e.key(q)===m(),Y=q===e.current;return B!==ne.e&&et(_e,"data-key",ne.e=B),ae!==ne.t&&et(_e,"data-active",ne.t=ae),Y!==ne.a&&et(_e,"data-selected",ne.a=Y),ne},{e:void 0,t:void 0,a:void 0}),_e})();return e.itemWrapper?e.itemWrapper(q,le):le}}),null),P(U,y(de,{get when(){return Le(()=>!!w())()&&G()},get children(){return $()}}),null),K})()}}),y(de,{get when(){return Le(()=>u.latest.length===0)()&&w()},get children(){var M=qx(),R=M.firstChild;return P(R,$),M}})]}})),Ne(M=>ln(D,{[e.class??""]:!!e.class},M)),D})()}rr(["pointerdown","click","keydown","mousemove"]);var efe=Q("<span>");function os(e){const[t,n]=ue(e,["size","class","classList","children"]);return(()=>{var r=efe();return nr(r,ee(n,{"data-component":"tag",get"data-size"(){return t.size||"normal"},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}),!1,!0),P(r,()=>t.children),r})()}const tfe="/ikanban/assets/sprite-B0ryth1W.svg",nfe=["zhipuai","zhipuai-coding-plan","zenmux","zai","zai-coding-plan","xiaomi","xai","wandb","vultr","vivgrid","vercel","venice","v0","upstage","togetherai","synthetic","submodel","stepfun","stackit","siliconflow","siliconflow-cn","scaleway","sap-ai-core","requesty","qiniu-ai","qihang-ai","privatemode-ai","poe","perplexity","ovhcloud","openrouter","opencode","opencode-go","openai","ollama-cloud","nvidia","novita-ai","nova","nebius","nano-gpt","morph","moonshotai","moonshotai-cn","modelscope","moark","mistral","minimax","minimax-coding-plan","minimax-cn","minimax-cn-coding-plan","meganova","lucidquery","lmstudio","llama","kuae-cloud-coding-plan","kimi-for-coding","kilo","jiekou","io-net","inference","inception","iflowcn","huggingface","helicone","groq","google","google-vertex","google-vertex-anthropic","gitlab","github-models","github-copilot","friendli","firmware","fireworks-ai","fastrouter","evroc","deepseek","deepinfra","cortecs","cohere","cloudflare-workers-ai","cloudflare-ai-gateway","cloudferro-sherlock","chutes","cerebras","berget","baseten","bailing","azure","azure-cognitive-services","anthropic","amazon-bedrock","alibaba","alibaba-cn","aihubmix","abacus","302ai"];var rfe=Q("<svg data-component=provider-icon><use>");const cs=e=>{const[t,n]=ue(e,["id","class","classList"]),r=j(()=>nfe.includes(t.id)?t.id:"synthetic");return(()=>{var i=rfe(),o=i.firstChild;return nr(i,ee(n,{get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}),!0,!0),Ne(()=>et(o,"href",`${tfe}#${r()}`)),i})()};var ife=Q("<svg>"),ofe=Q("<svg><rect width=3 height=3 rx=1></svg>",!1,!0,!1);const afe=new Set([1,2,4,7,8,11,13,14]),sfe=new Set([0,3,12,15]),lfe=Array.from({length:16},(e,t)=>({id:t,x:t%4*4,y:Math.floor(t/4)*4,delay:Math.random()*1.5,duration:1+Math.random()*1,outer:afe.has(t),corner:sfe.has(t)}));function Zh(e){return(()=>{var t=ife();return nr(t,ee(e,{viewBox:"0 0 15 15","data-component":"spinner",get classList(){return{...e.classList??{},[e.class??""]:!!e.class}},fill:"currentColor"}),!0,!0),P(t,y(on,{each:lfe,children:n=>(()=>{var r=ofe();return Ne(i=>{var o=n.x,a=n.y,s=n.corner?0:void 0,l=n.corner?void 0:`${n.outer?"pulse-opacity-dim":"pulse-opacity"} ${n.duration}s ease-in-out infinite`,c=n.corner?void 0:`${n.delay}s`;return o!==i.e&&et(r,"x",i.e=o),a!==i.t&&et(r,"y",i.t=a),s!==i.a&&zi(r,"opacity",i.a=s),l!==i.o&&zi(r,"animation",i.o=l),c!==i.i&&zi(r,"animation-delay",i.i=c),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),r})()})),t})()}var cfe=Q("<a>");function Hc(e){const t=Er(),[n,r]=ue(e,["href","children","class"]);return(()=>{var i=cfe();return i.$$click=o=>{n.href&&(o.preventDefault(),t.openLink(n.href))},nr(i,ee({get href(){return n.href},get class(){return`text-text-strong underline ${n.class??""}`}},r),!1,!0),P(i,()=>n.children),i})()}rr(["click"]);var Wx=Q('<div class="text-14-regular text-text-base">'),dfe=Q("<div>"),ufe=Q('<div class="w-full flex items-center gap-x-2"><div class="w-4 h-2 rounded-[1px] bg-input-base shadow-xs-border-base flex items-center justify-center"><div class="w-2.5 h-0.5 ml-0 bg-icon-strong-base hidden"data-slot=list-item-extra-icon></div></div><span>'),ffe=Q('<div class="flex flex-col gap-4"><div class="text-14-regular text-text-base"></div><div class="text-14-regular text-text-base"></div><div class="text-14-regular text-text-base">'),hfe=Q('<div class="flex flex-col gap-6"><form class="flex flex-col items-start gap-4">'),mfe=Q('<div class="flex flex-col gap-6"><div class="text-14-regular text-text-base"></div><form class="flex flex-col items-start gap-4">'),pfe=Q('<div class="flex flex-col gap-6"><div class="text-14-regular text-text-base"></div><div class="text-14-regular text-text-base flex items-center gap-4"><span>'),Gx=Q('<div class="text-14-regular text-text-base"><div class="flex items-center gap-x-2"><span>'),gfe=Q('<div class="flex flex-col gap-6 px-2.5 pb-3"><div class="px-2.5 flex gap-4 items-center"><div class="text-16-medium text-text-strong"></div></div><div class="px-2.5 pb-10 flex flex-col gap-6"><div tabindex=0>');function vP(e){const t=Ui(),n=ar(),r=qi(),i=Er(),o=Kt(),a={value:!0},s={current:void 0};he(()=>{a.value=!1,s.current!==void 0&&(clearTimeout(s.current),s.current=void 0)});const l=j(()=>n.data.provider.all.find(I=>I.id===e.provider)),c=j(()=>n.data.provider_auth[e.provider]??[{type:"api",label:o.t("provider.connect.method.apiKey")}]),[d,u]=He({methodIndex:void 0,authorization:void 0,state:"pending",error:void 0});function h(I){u(st($=>{if(I.type==="method.select"){$.methodIndex=I.index,$.authorization=void 0,$.state=void 0,$.error=void 0;return}if(I.type==="method.reset"){$.methodIndex=void 0,$.authorization=void 0,$.state=void 0,$.error=void 0;return}if(I.type==="auth.pending"){$.state="pending",$.error=void 0;return}if(I.type==="auth.complete"){$.state="complete",$.authorization=I.authorization,$.error=void 0;return}$.state="error",$.error=I.error}))}const m=j(()=>d.methodIndex!==void 0?c().at(d.methodIndex):void 0),f=I=>I?I.type==="api"?o.t("provider.connect.method.apiKey"):I.label??"":"";function p(I,$){if(I&&typeof I=="object"&&"data"in I){const F=I.data;if(typeof F?.message=="string"&&F.message)return F.message}if(I&&typeof I=="object"&&"error"in I){const F=p(I.error,"");if(F)return F}if(I&&typeof I=="object"&&"message"in I){const F=I.message;if(typeof F=="string"&&F)return F}return I instanceof Error&&I.message?I.message:typeof I=="string"&&I?I:$}async function b(I){s.current!==void 0&&(clearTimeout(s.current),s.current=void 0);const $=c()[I];if(h({type:"method.select",index:I}),$.type==="oauth"){h({type:"auth.pending"});const F=Date.now();await r.client.provider.oauth.authorize({providerID:e.provider,method:I},{throwOnError:!0}).then(N=>{if(!a.value)return;const T=1e3-(Date.now()-F);if(T>0){s.current!==void 0&&clearTimeout(s.current),s.current=setTimeout(()=>{s.current=void 0,a.value&&h({type:"auth.complete",authorization:N.data})},T);return}h({type:"auth.complete",authorization:N.data})}).catch(N=>{a.value&&h({type:"auth.error",error:p(N,o.t("common.requestFailed"))})})}}let v;function g(I){I.key==="Enter"&&I.target instanceof HTMLInputElement||I.key!=="Escape"&&v?.onKeyDown(I)}Wt(()=>{c().length===1&&b(0)});async function k(){await r.client.global.dispose(),t.close(),Ft({variant:"success",icon:"circle-check",title:o.t("provider.connect.toast.connected.title",{provider:l().name}),description:o.t("provider.connect.toast.connected.description",{provider:l().name})})}function S(){if(c().length===1){t.show(()=>y(bd,{}));return}if(d.authorization){h({type:"method.reset"});return}if(d.methodIndex!==void 0){h({type:"method.reset"});return}t.show(()=>y(bd,{}))}function w(){return[(()=>{var I=Wx();return P(I,()=>o.t("provider.connect.selectMethod",{provider:l().name})),I})(),(()=>{var I=dfe();return P(I,y(Jm,{ref:$=>{v=$},items:c,key:$=>$?.label,onSelect:async($,F)=>{$&&b(F)},children:$=>(()=>{var F=ufe(),N=F.firstChild,D=N.nextSibling;return P(D,()=>f($)),F})()})),I})()]}function x(){const[I,$]=He({value:"",error:void 0});async function F(N){N.preventDefault();const D=N.currentTarget,M=new FormData(D).get("apiKey");if(!M?.trim()){$("error",o.t("provider.connect.apiKey.required"));return}$("error",void 0),await r.client.auth.set({providerID:e.provider,auth:{type:"api",key:M}}),await k()}return(()=>{var N=hfe(),D=N.firstChild;return P(N,y(Ur,{get children(){return[y(Ot,{get when(){return l().id==="opencode"},get children(){var T=ffe(),M=T.firstChild,R=M.nextSibling,G=R.nextSibling;return P(M,()=>o.t("provider.connect.opencodeZen.line1")),P(R,()=>o.t("provider.connect.opencodeZen.line2")),P(G,()=>o.t("provider.connect.opencodeZen.visit.prefix"),null),P(G,y(Hc,{href:"https://opencode.ai/zen",tabIndex:-1,get children(){return o.t("provider.connect.opencodeZen.visit.link")}}),null),P(G,()=>o.t("provider.connect.opencodeZen.visit.suffix"),null),T}}),y(Ot,{when:!0,get children(){var T=Wx();return P(T,()=>o.t("provider.connect.apiKey.description",{provider:l().name})),T}})]}}),D),D.addEventListener("submit",F),P(D,y(En,{autofocus:!0,type:"text",get label(){return o.t("provider.connect.apiKey.label",{provider:l().name})},get placeholder(){return o.t("provider.connect.apiKey.placeholder")},name:"apiKey",get value(){return I.value},onChange:T=>$("value",T),get validationState(){return I.error?"invalid":void 0},get error(){return I.error}}),null),P(D,y(At,{class:"w-auto",type:"submit",size:"large",variant:"primary",get children(){return o.t("common.submit")}}),null),N})()}function L(){const[I,$]=He({value:"",error:void 0});Wt(()=>{d.authorization?.method==="code"&&d.authorization?.url&&i.openLink(d.authorization.url)});async function F(N){N.preventDefault();const D=N.currentTarget,M=new FormData(D).get("code");if(!M?.trim()){$("error",o.t("provider.connect.oauth.code.required"));return}$("error",void 0);const R=await r.client.provider.oauth.callback({providerID:e.provider,method:d.methodIndex,code:M}).then(G=>G.error?{ok:!1,error:G.error}:{ok:!0}).catch(G=>({ok:!1,error:G}));if(R.ok){await k();return}$("error",p(R.error,o.t("provider.connect.oauth.code.invalid")))}return(()=>{var N=mfe(),D=N.firstChild,T=D.nextSibling;return P(D,()=>o.t("provider.connect.oauth.code.visit.prefix"),null),P(D,y(Hc,{get href(){return d.authorization.url},get children(){return o.t("provider.connect.oauth.code.visit.link")}}),null),P(D,()=>o.t("provider.connect.oauth.code.visit.suffix",{provider:l().name}),null),T.addEventListener("submit",F),P(T,y(En,{autofocus:!0,type:"text",get label(){return o.t("provider.connect.oauth.code.label",{method:m()?.label??""})},get placeholder(){return o.t("provider.connect.oauth.code.placeholder")},name:"code",get value(){return I.value},onChange:M=>$("value",M),get validationState(){return I.error?"invalid":void 0},get error(){return I.error}}),null),P(T,y(At,{class:"w-auto",type:"submit",size:"large",variant:"primary",get children(){return o.t("common.submit")}}),null),N})()}function C(){const I=j(()=>{const $=d.authorization?.instructions;return $?.includes(":")?$.split(":")[1]?.trim():$});return Wt(()=>{(async()=>{d.authorization?.url&&i.openLink(d.authorization.url);const $=await r.client.provider.oauth.callback({providerID:e.provider,method:d.methodIndex}).then(F=>F.error?{ok:!1,error:F.error}:{ok:!0}).catch(F=>({ok:!1,error:F}));if(a.value){if(!$.ok){const F=p($.error,o.t("common.requestFailed"));h({type:"auth.error",error:F});return}await k()}})()}),(()=>{var $=pfe(),F=$.firstChild,N=F.nextSibling,D=N.firstChild;return P(F,()=>o.t("provider.connect.oauth.auto.visit.prefix"),null),P(F,y(Hc,{get href(){return d.authorization.url},get children(){return o.t("provider.connect.oauth.auto.visit.link")}}),null),P(F,()=>o.t("provider.connect.oauth.auto.visit.suffix",{provider:l().name}),null),P($,y(En,{get label(){return o.t("provider.connect.oauth.auto.confirmationCode")},class:"font-mono",get value(){return I()},readOnly:!0,copyable:!0}),N),P(N,y(Zh,{}),D),P(D,()=>o.t("provider.connect.status.waiting")),$})()}return y(mo,{get title(){return y(xn,{tabIndex:-1,icon:"arrow-left",variant:"ghost",onClick:S,get"aria-label"(){return o.t("common.goBack")}})},get children(){var I=gfe(),$=I.firstChild,F=$.firstChild,N=$.nextSibling,D=N.firstChild;return P($,y(cs,{get id(){return e.provider},class:"size-5 shrink-0 icon-strong-base"}),F),P(F,y(Ur,{get children(){return[y(Ot,{get when(){return Le(()=>e.provider==="anthropic")()&&m()?.label?.toLowerCase().includes("max")},get children(){return o.t("provider.connect.title.anthropicProMax")}}),y(Ot,{when:!0,get children(){return o.t("provider.connect.title",{provider:l().name})}})]}})),D.$$keydown=g,P(D,y(Ur,{get children(){return[y(Ot,{get when(){return d.methodIndex===void 0},get children(){return y(w,{})}}),y(Ot,{get when(){return d.state==="pending"},get children(){var T=Gx(),M=T.firstChild,R=M.firstChild;return P(M,y(Zh,{}),R),P(R,()=>o.t("provider.connect.status.inProgress")),T}}),y(Ot,{get when(){return d.state==="error"},get children(){var T=Gx(),M=T.firstChild,R=M.firstChild;return P(M,y(Dt,{name:"circle-ban-sign",class:"text-icon-critical-base"}),R),P(R,()=>o.t("provider.connect.status.failed",{error:d.error??""})),T}}),y(Ot,{get when(){return m()?.type==="api"},get children(){return y(x,{})}}),y(Ot,{get when(){return m()?.type==="oauth"},get children(){return y(Ur,{get children(){return[y(Ot,{get when(){return d.authorization?.method==="code"},get children(){return y(L,{})}}),y(Ot,{get when(){return d.authorization?.method==="auto"},get children(){return y(C,{})}})]}})}})]}})),Ne(()=>D.autofocus=d.methodIndex===void 0?!0:void 0),I}})}rr(["keydown"]);var vfe=Q('<div class="flex flex-col gap-6 px-2.5 pb-3 overflow-y-auto max-h-[60vh]"><div class="px-2.5 flex gap-4 items-center"><div class="text-16-medium text-text-strong"></div></div><form class="px-2.5 pb-6 flex flex-col gap-6"><p class="text-14-regular text-text-base"></p><div class="flex flex-col gap-4"></div><div class="flex flex-col gap-3"><label class="text-12-medium text-text-weak"></label></div><div class="flex flex-col gap-3"><label class="text-12-medium text-text-weak">'),Kx=Q('<div class="flex gap-2 items-start"><div class=flex-1></div><div class=flex-1>');const bfe=/^[a-z0-9][a-z0-9-_]*$/,yfe="@ai-sdk/openai-compatible";function wfe(e){const t=e.form.providerID.trim(),n=e.form.name.trim(),r=e.form.baseURL.trim(),i=e.form.apiKey.trim(),o=i.match(/^\{env:([^}]+)\}$/)?.[1]?.trim(),a=i&&!o?i:void 0,s=t?bfe.test(t)?void 0:e.t("provider.custom.error.providerID.format"):e.t("provider.custom.error.providerID.required"),l=n?void 0:e.t("provider.custom.error.name.required"),c=r?/^https?:\/\//.test(r)?void 0:e.t("provider.custom.error.baseURL.format"):e.t("provider.custom.error.baseURL.required"),d=e.disabledProviders.includes(t),u=s?void 0:e.existingProviderIDs.has(t)&&!d?e.t("provider.custom.error.providerID.exists"):void 0,h=new Set,m=e.form.models.map(L=>{const C=L.id.trim(),I=C?h.has(C)?e.t("provider.custom.error.duplicate"):void h.add(C):e.t("provider.custom.error.required"),$=L.name.trim()?void 0:e.t("provider.custom.error.required");return{id:I,name:$}}),f=m.every(L=>!L.id&&!L.name),p=Object.fromEntries(e.form.models.map(L=>[L.id.trim(),{name:L.name.trim()}])),b=new Set,v=e.form.headers.map(L=>{const C=L.key.trim(),I=L.value.trim();if(!C&&!I)return{};const $=C?b.has(C.toLowerCase())?e.t("provider.custom.error.duplicate"):void b.add(C.toLowerCase()):e.t("provider.custom.error.required"),F=I?void 0:e.t("provider.custom.error.required");return{key:$,value:F}}),g=v.every(L=>!L.key&&!L.value),k=Object.fromEntries(e.form.headers.map(L=>({key:L.key.trim(),value:L.value.trim()})).filter(L=>!!L.key&&!!L.value).map(L=>[L.key,L.value])),S={providerID:s??u,name:l,baseURL:c,models:m,headers:v};if(!(!s&&!u&&!l&&!c&&f&&g))return{errors:S};const x={baseURL:r,...Object.keys(k).length?{headers:k}:{}};return{errors:S,result:{providerID:t,name:n,key:a,config:{npm:yfe,name:n,...o?{env:[o]}:{},options:x,models:p}}}}function bP(e){const t=Ui(),n=ar(),r=qi(),i=Kt(),[o,a]=He({providerID:"",name:"",baseURL:"",apiKey:"",models:[{id:"",name:""}],headers:[{key:"",value:""}],saving:!1}),[s,l]=He({providerID:void 0,name:void 0,baseURL:void 0,models:[{}],headers:[{}]}),c=()=>{if(e.back==="close"){t.close();return}t.show(()=>y(bd,{}))},d=()=>{a("models",b=>[...b,{id:"",name:""}]),l("models",b=>[...b,{}])},u=b=>{o.models.length<=1||(a("models",v=>v.filter((g,k)=>k!==b)),l("models",v=>v.filter((g,k)=>k!==b)))},h=()=>{a("headers",b=>[...b,{key:"",value:""}]),l("headers",b=>[...b,{}])},m=b=>{o.headers.length<=1||(a("headers",v=>v.filter((g,k)=>k!==b)),l("headers",v=>v.filter((g,k)=>k!==b)))},f=()=>{const b=wfe({form:o,t:i.t,disabledProviders:n.data.config.disabled_providers??[],existingProviderIDs:new Set(n.data.provider.all.map(v=>v.id))});return l(b.errors),b.result},p=async b=>{if(b.preventDefault(),o.saving)return;const v=f();if(!v)return;a("saving",!0);const k=(n.data.config.disabled_providers??[]).filter(w=>w!==v.providerID);(v.key?r.client.auth.set({providerID:v.providerID,auth:{type:"api",key:v.key}}):Promise.resolve()).then(()=>n.updateConfig({provider:{[v.providerID]:v.config},disabled_providers:k})).then(()=>{t.close(),Ft({variant:"success",icon:"circle-check",title:i.t("provider.connect.toast.connected.title",{provider:v.name}),description:i.t("provider.connect.toast.connected.description",{provider:v.name})})}).catch(w=>{const x=w instanceof Error?w.message:String(w);Ft({title:i.t("common.requestFailed"),description:x})}).finally(()=>{a("saving",!1)})};return y(mo,{get title(){return y(xn,{tabIndex:-1,icon:"arrow-left",variant:"ghost",onClick:c,get"aria-label"(){return i.t("common.goBack")}})},transition:!0,get children(){var b=vfe(),v=b.firstChild,g=v.firstChild,k=v.nextSibling,S=k.firstChild,w=S.nextSibling,x=w.nextSibling,L=x.firstChild,C=x.nextSibling,I=C.firstChild;return P(v,y(cs,{id:"synthetic",class:"size-5 shrink-0 icon-strong-base"}),g),P(g,()=>i.t("provider.custom.title")),k.addEventListener("submit",p),P(S,()=>i.t("provider.custom.description.prefix"),null),P(S,y(Hc,{href:"https://opencode.ai/docs/providers/#custom-provider",tabIndex:-1,get children(){return i.t("provider.custom.description.link")}}),null),P(S,()=>i.t("provider.custom.description.suffix"),null),P(w,y(En,{autofocus:!0,get label(){return i.t("provider.custom.field.providerID.label")},get placeholder(){return i.t("provider.custom.field.providerID.placeholder")},get description(){return i.t("provider.custom.field.providerID.description")},get value(){return o.providerID},onChange:$=>a("providerID",$),get validationState(){return s.providerID?"invalid":void 0},get error(){return s.providerID}}),null),P(w,y(En,{get label(){return i.t("provider.custom.field.name.label")},get placeholder(){return i.t("provider.custom.field.name.placeholder")},get value(){return o.name},onChange:$=>a("name",$),get validationState(){return s.name?"invalid":void 0},get error(){return s.name}}),null),P(w,y(En,{get label(){return i.t("provider.custom.field.baseURL.label")},get placeholder(){return i.t("provider.custom.field.baseURL.placeholder")},get value(){return o.baseURL},onChange:$=>a("baseURL",$),get validationState(){return s.baseURL?"invalid":void 0},get error(){return s.baseURL}}),null),P(w,y(En,{get label(){return i.t("provider.custom.field.apiKey.label")},get placeholder(){return i.t("provider.custom.field.apiKey.placeholder")},get description(){return i.t("provider.custom.field.apiKey.description")},get value(){return o.apiKey},onChange:$=>a("apiKey",$)}),null),P(L,()=>i.t("provider.custom.models.label")),P(x,y(on,{get each(){return o.models},children:($,F)=>(()=>{var N=Kx(),D=N.firstChild,T=D.nextSibling;return P(D,y(En,{get label(){return i.t("provider.custom.models.id.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.models.id.placeholder")},get value(){return $.id},onChange:M=>a("models",F(),"id",M),get validationState(){return s.models[F()]?.id?"invalid":void 0},get error(){return s.models[F()]?.id}})),P(T,y(En,{get label(){return i.t("provider.custom.models.name.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.models.name.placeholder")},get value(){return $.name},onChange:M=>a("models",F(),"name",M),get validationState(){return s.models[F()]?.name?"invalid":void 0},get error(){return s.models[F()]?.name}})),P(N,y(xn,{type:"button",icon:"trash",variant:"ghost",class:"mt-1.5",onClick:()=>u(F()),get disabled(){return o.models.length<=1},get"aria-label"(){return i.t("provider.custom.models.remove")}}),null),N})()}),null),P(x,y(At,{type:"button",size:"small",variant:"ghost",icon:"plus-small",onClick:d,class:"self-start",get children(){return i.t("provider.custom.models.add")}}),null),P(I,()=>i.t("provider.custom.headers.label")),P(C,y(on,{get each(){return o.headers},children:($,F)=>(()=>{var N=Kx(),D=N.firstChild,T=D.nextSibling;return P(D,y(En,{get label(){return i.t("provider.custom.headers.key.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.headers.key.placeholder")},get value(){return $.key},onChange:M=>a("headers",F(),"key",M),get validationState(){return s.headers[F()]?.key?"invalid":void 0},get error(){return s.headers[F()]?.key}})),P(T,y(En,{get label(){return i.t("provider.custom.headers.value.label")},hideLabel:!0,get placeholder(){return i.t("provider.custom.headers.value.placeholder")},get value(){return $.value},onChange:M=>a("headers",F(),"value",M),get validationState(){return s.headers[F()]?.value?"invalid":void 0},get error(){return s.headers[F()]?.value}})),P(N,y(xn,{type:"button",icon:"trash",variant:"ghost",class:"mt-1.5",onClick:()=>m(F()),get disabled(){return o.headers.length<=1},get"aria-label"(){return i.t("provider.custom.headers.remove")}}),null),N})()}),null),P(C,y(At,{type:"button",size:"small",variant:"ghost",icon:"plus-small",onClick:h,class:"self-start",get children(){return i.t("provider.custom.headers.add")}}),null),P(k,y(At,{class:"w-auto self-start",type:"submit",size:"large",variant:"primary",get disabled(){return o.saving},get children(){return Le(()=>!!o.saving)()?i.t("common.saving"):i.t("common.submit")}}),null),b}})}var Jx=Q('<div class="text-14-regular text-text-weak">'),kfe=Q('<div class="px-1.25 w-full flex items-center gap-x-3"><span>');const xc="_custom",bd=()=>{const e=Ui(),t=fu(),n=Kt(),r=()=>n.t("dialog.provider.group.popular"),i=()=>n.t("dialog.provider.group.other"),o=()=>n.t("settings.providers.tag.custom"),a=s=>{if(s==="anthropic")return n.t("dialog.provider.anthropic.note");if(s==="openai")return n.t("dialog.provider.openai.note");if(s.startsWith("github-copilot"))return n.t("dialog.provider.copilot.note");if(s==="opencode-go")return n.t("dialog.provider.opencodeGo.tagline")};return y(mo,{get title(){return n.t("command.provider.connect")},transition:!0,get children(){return y(Jm,{get search(){return{placeholder:n.t("dialog.provider.search.placeholder"),autofocus:!0}},get emptyMessage(){return n.t("dialog.provider.empty")},activeIcon:"plus-small",key:s=>s?.id,items:()=>(n.locale(),[{id:xc,name:o()},...t.all()]),filterKeys:["id","name"],groupBy:s=>io.includes(s.id)?r():i(),sortBy:(s,l)=>s.id===xc?-1:l.id===xc?1:io.includes(s.id)&&io.includes(l.id)?io.indexOf(s.id)-io.indexOf(l.id):s.name.localeCompare(l.name),sortGroupsBy:(s,l)=>{const c=r();return s.category===c&&l.category!==c?-1:l.category===c&&s.category!==c?1:0},onSelect:s=>{if(s){if(s.id===xc){e.show(()=>y(bP,{back:"providers"}));return}e.show(()=>y(vP,{get provider(){return s.id}}))}},children:s=>(()=>{var l=kfe(),c=l.firstChild;return P(l,y(cs,{"data-slot":"list-item-extra-icon",get id(){return s.id}}),c),P(c,()=>s.name),P(l,y(de,{get when(){return s.id==="opencode"},get children(){var d=Jx();return P(d,()=>n.t("dialog.provider.opencode.tagline")),d}}),null),P(l,y(de,{get when(){return s.id===xc},get children(){return y(os,{get children(){return n.t("settings.providers.tag.custom")}})}}),null),P(l,y(de,{get when(){return s.id==="opencode"},get children(){return y(os,{get children(){return n.t("dialog.provider.tag.recommended")}})}}),null),P(l,y(de,{get when(){return a(s.id)},children:d=>(()=>{var u=Jx();return P(u,d),u})()}),null),P(l,y(de,{get when(){return s.id==="opencode-go"},get children(){return y(os,{get children(){return n.t("dialog.provider.tag.recommended")}})}}),null),l})()})}})};var xfe=Q("<span class=text-text-invert-weak>v"),Sfe=Q('<span class="flex items-center gap-2"><span>'),_fe=Q('<div><div class="flex flex-col items-start"><div class="flex flex-row items-center gap-2"><span>'),Afe=Q("<span>v"),Cfe=Q('<div class="flex flex-row gap-3"><span>'),Efe=Q("<span class=text-text-weak>"),Ife=Q("<span class=text-text-weaker>no username"),Tfe=Q("<span class=text-text-weak>••••••••"),Lfe=Q("<div>");function Dfe(e){const[t,n]=me(!1);let r,i;const o=j(()=>e1(e.conn)),a=()=>{const c=r?r.scrollWidth>r.clientWidth:!1,d=i?i.scrollWidth>i.clientWidth:!1;n(c||d)};se(()=>{o(),e.conn.http.url,e.status?.version,queueMicrotask(a)}),Wt(()=>{if(a(),typeof ResizeObserver!="function")return;const c=new ResizeObserver(a);r&&c.observe(r),i&&c.observe(i),he(()=>c.disconnect())});const s=()=>(()=>{var c=Sfe(),d=c.firstChild;return P(d,()=>e1(e.conn,!0)),P(c,y(de,{get when(){return e.status?.version},get children(){var u=xfe();return u.firstChild,P(u,()=>e.status?.version,null),u}}),null),c})(),l=_s(()=>e.badge);return y(_r,{class:"flex-1",get value(){return s()},placement:"top-start",get inactive(){return Le(()=>!t())()&&!e.conn.displayName},get children(){var c=_fe(),d=c.firstChild,u=d.firstChild,h=u.firstChild,m=r;return typeof m=="function"?or(m,h):r=h,P(h,o),P(u,y(de,{get when(){return l()},get fallback(){return y(de,{get when(){return e.status?.version},get children(){var f=Afe();f.firstChild;var p=i;return typeof p=="function"?or(p,f):i=f,P(f,()=>e.status?.version,null),Ne(()=>zo(f,e.versionClass??"text-text-weak text-14-regular truncate")),f}})},children:f=>f()}),null),P(d,y(de,{get when(){return Le(()=>!!(e.showCredentials&&e.conn.type==="http"))()&&e.conn},children:f=>(()=>{var p=Cfe(),b=p.firstChild;return P(b,(()=>{var v=Le(()=>!!f().http.username);return()=>v()?(()=>{var g=Efe();return P(g,()=>f().http.username),g})():Ife()})()),P(p,(()=>{var v=Le(()=>!!f().http.password);return()=>v()&&Tfe()})(),null),p})()}),null),P(c,()=>e.children,null),Ne(f=>{var p=e.class,b=!!e.dimmed,v=e.nameClass??"truncate";return p!==f.e&&zo(c,f.e=p),b!==f.t&&c.classList.toggle("opacity-50",f.t=b),v!==f.a&&zo(h,f.a=v),f},{e:void 0,t:void 0,a:void 0}),c}})}function Mfe(e){return(()=>{var t=Lfe();return Ne(n=>ln(t,{"size-1.5 rounded-full shrink-0":!0,"bg-icon-success-base":e.health?.healthy===!0,"bg-icon-critical-base":e.health?.healthy===!1,"bg-border-weak-base":e.health===void 0},n)),t})()}var Pfe=Q('<div class=px-5><div class="bg-surface-raised-base rounded-md p-5 flex flex-col gap-3"><div class="flex-1 min-w-0 [&amp;_[data-slot=input-wrapper]]:relative"></div><div class="grid grid-cols-2 gap-2 min-w-0">'),Ofe=Q('<div class="flex items-center gap-2 -ml-2"><span>'),$fe=Q('<div class="flex flex-col gap-2"><div class="px-5 pb-5">'),Rfe=Q('<div class="flex items-center gap-3 min-w-0 flex-1 w-full group/item"><div class="flex flex-col h-full items-start w-5"></div><div class="flex items-center justify-center gap-4 pl-4">'),zfe=Q('<span class="text-text-base bg-surface-base text-14-regular px-1.5 rounded-xs">');function Qx(e,t){Ft({variant:"error",title:e.t("common.requestFailed"),description:t instanceof Error?t.message:String(t)})}function Nfe(e,t){const[n,r]=Ss(async()=>{try{const a=await e.getDefaultServerUrl?.();return a?Fl(a)??null:null}catch(a){return Qx(t,a),null}},{initialValue:null}),i=j(()=>!!e.getDefaultServerUrl&&!!e.setDefaultServerUrl);return{defaultUrl:n,canDefault:i,setDefault:async a=>{try{await e.setDefaultServerUrl?.(a),r.mutate(a)}catch(s){Qx(t,s)}}}}function Ffe(e){const t=r=>{const i=Fl(r);if(!i)return!1;const o=i.replace(/^https?:\/\//,"").split("/")[0];return o?o.includes("localhost")||o.startsWith("127.0.0.1")?!0:o.includes(".")||o.includes(":"):!1};return{previewStatus:async(r,i,o,a)=>{if(a(void 0),!t(r))return;const s=Fl(r);if(!s)return;const l={url:s};i&&(l.username=i),o&&(l.password=o);const c=await jc(l,e);a(c.healthy)}}}function Vfe(e){const t=Kt(),n=r=>{if(r.stopPropagation(),r.key==="Escape"){r.preventDefault(),e.onBack();return}r.key!=="Enter"||r.isComposing||(r.preventDefault(),e.onSubmit())};return(()=>{var r=Pfe(),i=r.firstChild,o=i.firstChild,a=o.nextSibling;return P(o,y(En,{type:"text",get label(){return t.t("dialog.server.add.url")},get placeholder(){return e.placeholder},get value(){return e.value},autofocus:!0,get validationState(){return e.error?"invalid":"valid"},get error(){return e.error},get disabled(){return e.busy},get onChange(){return e.onChange},onKeyDown:n})),P(i,y(En,{type:"text",get label(){return t.t("dialog.server.add.name")},get placeholder(){return t.t("dialog.server.add.namePlaceholder")},get value(){return e.name},get disabled(){return e.busy},get onChange(){return e.onNameChange},onKeyDown:n}),a),P(a,y(En,{type:"text",get label(){return t.t("dialog.server.add.username")},placeholder:"username",get value(){return e.username},get disabled(){return e.busy},get onChange(){return e.onUsernameChange},onKeyDown:n}),null),P(a,y(En,{type:"password",get label(){return t.t("dialog.server.add.password")},placeholder:"password",get value(){return e.password},get disabled(){return e.busy},get onChange(){return e.onPasswordChange},onKeyDown:n}),null),r})()}function jfe(){const e=Ra(),t=Ui(),n=su(),r=Er(),i=Kt(),o=r.fetch??globalThis.fetch,{defaultUrl:a,canDefault:s,setDefault:l}=Nfe(r,i),{previewStatus:c}=Ffe(o),[d,u]=He({status:{},addServer:{url:"",name:"",username:"",password:"",adding:!1,error:"",showForm:!1,status:void 0},editServer:{id:void 0,value:"",name:"",username:"",password:"",error:"",busy:!1,status:void 0}}),h=()=>{u("addServer",{url:"",name:"",username:"",password:"",adding:!1,error:"",showForm:!1,status:void 0})},m=()=>{u("editServer",{id:void 0,value:"",name:"",username:"",password:"",error:"",status:void 0,busy:!1})},f=(B,ae)=>{const Y=n.key,ie=n.add(ae);if(!ie)return;const be=Y===Pn.key(B)?Pn.key(ie):Y;be&&n.setActive(be),n.remove(Pn.key(B))},p=j(()=>{const B=n.current,ae=n.list;return B?ae.includes(B)?[B,...ae.filter(Y=>Y!==B)]:[B,...ae]:ae}),b=j(()=>p().find(B=>Pn.key(B)===n.key)??p()[0]),v=j(()=>{const B=p();if(!B.length)return B;const ae=b(),Y=new Map(B.map((be,ge)=>[be,ge])),ie=be=>be?.healthy===!0?0:be?.healthy===!1?2:1;return B.slice().sort((be,ge)=>{if(be===ae)return-1;if(ge===ae)return 1;const Re=ie(d.status[Pn.key(be)])-ie(d.status[Pn.key(ge)]);return Re!==0?Re:(Y.get(be)??0)-(Y.get(ge)??0)})});async function g(){const B={};await Promise.all(p().map(async ae=>{B[Pn.key(ae)]=await jc(ae.http,o)})),u("status",$t(B))}se(()=>{p(),g();const B=setInterval(g,1e4);he(()=>clearInterval(B))});async function k(B,ae){if(!(!ae&&d.status[Pn.key(B)]?.healthy===!1)){if(t.close(),ae&&B.type==="http"){n.add(B),e("/");return}n.setActive(Pn.key(B)),e("/")}}const S=B=>{d.addServer.adding||(u("addServer",{url:B,error:""}),c(B,d.addServer.username,d.addServer.password,ae=>u("addServer",{status:ae})))},w=B=>{d.addServer.adding||u("addServer",{name:B,error:""})},x=B=>{d.addServer.adding||(u("addServer",{username:B,error:""}),c(d.addServer.url,B,d.addServer.password,ae=>u("addServer",{status:ae})))},L=B=>{d.addServer.adding||(u("addServer",{password:B,error:""}),c(d.addServer.url,d.addServer.username,B,ae=>u("addServer",{status:ae})))},C=B=>{d.editServer.busy||(u("editServer",{value:B,error:""}),c(B,d.editServer.username,d.editServer.password,ae=>u("editServer",{status:ae})))},I=B=>{d.editServer.busy||u("editServer",{name:B,error:""})},$=B=>{d.editServer.busy||(u("editServer",{username:B,error:""}),c(d.editServer.value,B,d.editServer.password,ae=>u("editServer",{status:ae})))},F=B=>{d.editServer.busy||(u("editServer",{password:B,error:""}),c(d.editServer.value,d.editServer.username,B,ae=>u("editServer",{status:ae})))};async function N(B){if(d.addServer.adding)return;const ae=Fl(B);if(!ae){h();return}u("addServer",{adding:!0,error:""});const Y={type:"http",http:{url:ae}};d.addServer.name.trim()&&(Y.displayName=d.addServer.name.trim()),d.addServer.username&&(Y.http.username=d.addServer.username),d.addServer.password&&(Y.http.password=d.addServer.password);const ie=await jc(Y.http,o);if(u("addServer",{adding:!1}),!ie.healthy){u("addServer",{error:i.t("dialog.server.add.error")});return}h(),await k(Y,!0)}async function D(B,ae){if(d.editServer.busy||B.type!=="http")return;const Y=Fl(ae);if(!Y){m();return}const ie=d.editServer.name.trim()||void 0,be=d.editServer.username||void 0,ge=d.editServer.password||void 0,Re=B.displayName;if(Y===B.http.url&&ie===Re&&be===B.http.username&&ge===B.http.password){m();return}u("editServer",{busy:!0,error:""});const Oe={type:"http",displayName:ie,http:{url:Y,username:be,password:ge}},dt=await jc(Oe.http,o);if(u("editServer",{busy:!1}),!dt.healthy){u("editServer",{error:i.t("dialog.server.add.error")});return}Y===B.http.url?n.add(Oe):f(B,Oe),m()}const T=j(()=>d.editServer.id?"edit":d.addServer.showForm?"add":"list"),M=j(()=>{if(d.editServer.id)return p().find(B=>B.type==="http"&&B.http.url===d.editServer.id)}),R=()=>{h(),m()},G=()=>{m(),u("addServer",{showForm:!0,url:"",name:"",username:"",password:"",error:"",status:void 0})},K=B=>{h(),u("editServer",{id:B.http.url,value:B.http.url,name:B.displayName??"",username:B.http.username??"",password:B.http.password??"",error:"",status:d.status[Pn.key(B)]?.healthy,busy:!1})},U=()=>{if(T()==="add"){N(d.addServer.url);return}const B=M();B&&D(B,d.editServer.value)},q=j(()=>T()!=="list"),X=j(()=>T()==="add"),le=j(()=>X()?d.addServer.adding:d.editServer.busy),_e=j(()=>q()?(()=>{var B=Ofe(),ae=B.firstChild;return P(B,y(xn,{icon:"arrow-left",variant:"ghost",onClick:R,get"aria-label"(){return i.t("common.goBack")}}),ae),P(ae,(()=>{var Y=Le(()=>!!X());return()=>Y()?i.t("dialog.server.add.title"):i.t("dialog.server.edit.title")})()),B})():i.t("dialog.server.title"));se(()=>{d.editServer.id&&(M()||m())});async function ne(B){n.remove(B),await r.getDefaultServerUrl?.()===B&&r.setDefaultServerUrl?.(null)}return y(mo,{get title(){return _e()},get children(){var B=$fe(),ae=B.firstChild;return P(B,y(de,{get when(){return!q()},get fallback(){return y(Vfe,{get value(){return Le(()=>!!X())()?d.addServer.url:d.editServer.value},get name(){return Le(()=>!!X())()?d.addServer.name:d.editServer.name},get username(){return Le(()=>!!X())()?d.addServer.username:d.editServer.username},get password(){return Le(()=>!!X())()?d.addServer.password:d.editServer.password},get placeholder(){return i.t("dialog.server.add.placeholder")},get busy(){return le()},get error(){return Le(()=>!!X())()?d.addServer.error:d.editServer.error},get status(){return Le(()=>!!X())()?d.addServer.status:d.editServer.status},get onChange(){return X()?S:C},get onNameChange(){return X()?w:I},get onUsernameChange(){return X()?x:$},get onPasswordChange(){return X()?L:F},onSubmit:U,onBack:R})},get children(){return y(Jm,{get search(){return{placeholder:i.t("dialog.server.search.placeholder"),autofocus:!1}},noInitialSelection:!0,get emptyMessage(){return i.t("dialog.server.empty")},items:v,key:Y=>Y.http.url,onSelect:Y=>{Y&&k(Y)},divider:!0,class:"px-5 [&_[data-slot=list-search-wrapper]]:w-full [&_[data-slot=list-scroll]]h-[300px] [&_[data-slot=list-scroll]]:overflow-y-auto [&_[data-slot=list-items]]:bg-surface-raised-base [&_[data-slot=list-items]]:rounded-md [&_[data-slot=list-item]]:min-h-14 [&_[data-slot=list-item]]:p-3 [&_[data-slot=list-item]]:!bg-transparent",children:Y=>{const ie=Pn.key(Y);return(()=>{var be=Rfe(),ge=be.firstChild,Re=ge.nextSibling;return P(ge,y(Mfe,{get health(){return d.status[ie]}})),P(be,y(Dfe,{conn:Y,get dimmed(){return d.status[ie]?.healthy===!1},get status(){return d.status[ie]},class:"flex items-center gap-3 min-w-0 flex-1",get badge(){return y(de,{get when(){return a()===Y.http.url},get children(){var Oe=zfe();return P(Oe,()=>i.t("dialog.server.status.default")),Oe}})},showCredentials:!0}),Re),P(Re,y(de,{get when(){return Pn.key(b())===ie},get children(){return y(Dt,{name:"check",class:"h-6"})}}),null),P(Re,y(de,{get when(){return Y.type==="http"},get children(){return y(St,{get children(){return[y(St.Trigger,{as:xn,icon:"dot-grid",variant:"ghost",class:"shrink-0 size-8 hover:bg-surface-base-hover data-[expanded]:bg-surface-base-active",onClick:Oe=>Oe.stopPropagation(),onPointerDown:Oe=>Oe.stopPropagation()}),y(St.Portal,{get children(){return y(St.Content,{class:"mt-1",get children(){return[y(St.Item,{onSelect:()=>{Y.type==="http"&&K(Y)},get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.edit")}})}}),y(de,{get when(){return Le(()=>!!s())()&&a()!==Y.http.url},get children(){return y(St.Item,{onSelect:()=>l(Y.http.url),get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.default")}})}})}}),y(de,{get when(){return Le(()=>!!s())()&&a()===Y.http.url},get children(){return y(St.Item,{onSelect:()=>l(null),get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.defaultRemove")}})}})}}),y(St.Separator,{}),y(St.Item,{onSelect:()=>ne(Pn.key(Y)),class:"text-text-on-critical-base hover:bg-surface-critical-weak",get children(){return y(St.ItemLabel,{get children(){return i.t("dialog.server.menu.delete")}})}})]}})}})]}})}}),null),be})()}})}}),ae),P(ae,y(de,{get when(){return q()},get fallback(){return y(At,{variant:"secondary",icon:"plus-small",size:"large",onClick:G,class:"py-1.5 pl-1.5 pr-3 flex items-center gap-1.5",get children(){return i.t("dialog.server.add.button")}})},get children(){return y(At,{variant:"primary",size:"large",onClick:U,get disabled(){return le()},class:"px-3 py-1.5",get children(){return Le(()=>!!le())()?i.t("dialog.server.add.checking"):Le(()=>!!X())()?i.t("dialog.server.add.button"):i.t("common.save")}})}})),B}})}var Bfe=class{collection;direction;orientation;constructor(e,t,n){this.collection=e,this.direction=t,this.orientation=n}flipDirection(){return this.direction()==="rtl"&&this.orientation()==="horizontal"}getKeyLeftOf(e){if(this.flipDirection())return this.getNextKey(e);if(this.orientation()==="horizontal")return this.getPreviousKey(e)}getKeyRightOf(e){if(this.flipDirection())return this.getPreviousKey(e);if(this.orientation()==="horizontal")return this.getNextKey(e)}getKeyAbove(e){if(this.orientation()==="vertical")return this.getPreviousKey(e)}getKeyBelow(e){if(this.orientation()==="vertical")return this.getNextKey(e)}getFirstKey(){let e=this.collection().getFirstKey();return e==null?void 0:(this.collection().getItem(e)?.disabled&&(e=this.getNextKey(e)),e)}getLastKey(){let e=this.collection().getLastKey();return e==null?void 0:(this.collection().getItem(e)?.disabled&&(e=this.getPreviousKey(e)),e)}getNextKey(e){let t=e,n;do if(t=this.collection().getKeyAfter(t)??this.collection().getFirstKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}getPreviousKey(e){let t=e,n;do if(t=this.collection().getKeyBefore(t)??this.collection().getLastKey(),t==null||(n=this.collection().getItem(t),n==null))return;while(n.disabled);return t}};function Hfe(e,t){const n=new ResizeObserver(e);return he(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function Ufe(e,t,n){const r=new WeakMap,{observe:i,unobserve:o}=Hfe(a=>{for(const s of a){const{contentRect:l,target:c}=s,d=Math.round(l.width),u=Math.round(l.height),h=r.get(c);(!h||h.width!==d||h.height!==u)&&(t(l,c,s),r.set(c,{width:d,height:u}))}},n);se(a=>{const s=Kj(bv(ce(e)));return Xj(s,a,i,o),s},[])}var qfe={};Ar(qfe,{Content:()=>wP,Indicator:()=>kP,List:()=>xP,Root:()=>SP,Tabs:()=>bu,Trigger:()=>_P,useTabsContext:()=>vu});var yP=Ct();function vu(){const e=yt(yP);if(e===void 0)throw new Error("[kobalte]: `useTabsContext` must be used within a `Tabs` component");return e}function wP(e){const[t,n]=me(),r=vu(),[i,o]=ue(e,["ref","id","value","forceMount"]),[a,s]=me(0),l=()=>i.id??r.generateContentId(i.value),c=()=>r.listState().selectedKey()===i.value,{present:d}=Uo({show:()=>i.forceMount||c(),element:()=>t()??null});return se(Ht([()=>t(),()=>d()],([u,h])=>{if(u==null||!h)return;const m=()=>{const p=r9(u,{tabbable:!0});s(p.nextNode()?void 0:0)};m();const f=new MutationObserver(m);f.observe(u,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabindex","disabled"]}),he(()=>{f.disconnect()})})),se(Ht([()=>i.value,l],([u,h])=>{r.contentIdsMap().set(u,h)})),y(de,{get when(){return d()},get children(){return y(We,ee({as:"div",ref(u){var h=kt(n,i.ref);typeof h=="function"&&h(u)},get id(){return l()},role:"tabpanel",get tabIndex(){return a()},get"aria-labelledby"(){return r.triggerIdsMap().get(i.value)},get"data-orientation"(){return r.orientation()},get"data-selected"(){return c()?"":void 0}},o))}})}function kP(e){const t=vu(),[n,r]=ue(e,["style"]),[i,o]=me({width:void 0,height:void 0}),{direction:a}=Zi(),s=()=>{const h=t.selectedTab();if(h==null)return;const m={transform:void 0,width:void 0,height:void 0},f=a()==="rtl"?-1*(h.offsetParent?.offsetWidth-h.offsetWidth-h.offsetLeft):h.offsetLeft;m.transform=t.orientation()==="vertical"?`translateY(${h.offsetTop}px)`:`translateX(${f}px)`,t.orientation()==="horizontal"?m.width=`${h.offsetWidth}px`:m.height=`${h.offsetHeight}px`,o(m)};Wt(()=>{queueMicrotask(()=>{s()})}),se(Ht([t.selectedTab,t.orientation,a],()=>{s()},{defer:!0}));const[l,c]=me(!1);let d=null,u=null;return Ufe(t.selectedTab,(h,m)=>{if(u!==m){u=m;return}c(!0),d&&clearTimeout(d),d=setTimeout(()=>{d=null,c(!1)},1),s()}),y(We,ee({as:"div",role:"presentation",get style(){return Pr(i(),n.style)},get"data-orientation"(){return t.orientation()},get"data-resizing"(){return l()}},r))}function xP(e){let t;const n=vu(),[r,i]=ue(e,["ref","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),{direction:o}=Zi(),a=new Bfe(()=>n.listState().collection(),o,n.orientation),s=PM({selectionManager:()=>n.listState().selectionManager(),keyboardDelegate:()=>a,selectOnFocus:()=>n.activationMode()==="automatic",shouldFocusWrap:!1,disallowEmptySelection:!0},()=>t);return se(()=>{if(t==null)return;const l=t.querySelector(`[data-key="${n.listState().selectedKey()}"]`);l!=null&&n.setSelectedTab(l)}),y(We,ee({as:"div",ref(l){var c=kt(d=>t=d,r.ref);typeof c=="function"&&c(l)},role:"tablist",get"aria-orientation"(){return n.orientation()},get"data-orientation"(){return n.orientation()},get onKeyDown(){return gt([r.onKeyDown,s.onKeyDown])},get onMouseDown(){return gt([r.onMouseDown,s.onMouseDown])},get onFocusIn(){return gt([r.onFocusIn,s.onFocusIn])},get onFocusOut(){return gt([r.onFocusOut,s.onFocusOut])}},i))}function Zfe(e){const[t,n]=Gl({value:()=>ce(e.selectedKey),defaultValue:()=>ce(e.defaultSelectedKey),onChange:c=>e.onSelectionChange?.(c)}),r=j(()=>{const c=t();return c!=null?[c]:[]}),[,i]=ue(e,["onSelectionChange"]),o=ee(i,{selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:c=>{const d=c.values().next().value;d===t()&&e.onSelectionChange?.(d),n(d)}}),{collection:a,selectionManager:s}=Dm(o),l=j(()=>{const c=t();return c!=null?a().getItem(c):void 0});return{collection:a,selectionManager:s,selectedKey:t,setSelectedKey:n,selectedItem:l}}function SP(e){const t=`tabs-${cn()}`,n=Be({id:t,orientation:"horizontal",activationMode:"automatic"},e),[r,i]=ue(n,["value","defaultValue","onChange","orientation","activationMode","disabled"]),[o,a]=me([]),[s,l]=me(),{DomCollectionProvider:c}=VM({items:o,onItemsChange:a}),d=Zfe({selectedKey:()=>r.value,defaultSelectedKey:()=>r.defaultValue,onSelectionChange:p=>r.onChange?.(String(p)),dataSource:o});let u=d.selectedKey();se(Ht([()=>d.selectionManager(),()=>d.collection(),()=>d.selectedKey()],([p,b,v])=>{let g=v;if(p.isEmpty()||g==null||!b.getItem(g)){g=b.getFirstKey();let k=g!=null?b.getItem(g):void 0;for(;k?.disabled&&k.key!==b.getLastKey();)g=b.getKeyAfter(k.key),k=g!=null?b.getItem(g):void 0;k?.disabled&&g===b.getLastKey()&&(g=b.getFirstKey()),g!=null&&p.setSelectedKeys([g])}(p.focusedKey()==null||!p.isFocused()&&g!==u)&&p.setFocusedKey(g),u=g}));const h=new Map,m=new Map,f={isDisabled:()=>r.disabled??!1,orientation:()=>r.orientation,activationMode:()=>r.activationMode,triggerIdsMap:()=>h,contentIdsMap:()=>m,listState:()=>d,selectedTab:s,setSelectedTab:l,generateTriggerId:p=>`${i.id}-trigger-${p}`,generateContentId:p=>`${i.id}-content-${p}`};return y(c,{get children(){return y(yP.Provider,{value:f,get children(){return y(We,ee({as:"div",get"data-orientation"(){return f.orientation()}},i))}})}})}function _P(e){let t;const n=vu(),r=Be({type:"button"},e),[i,o]=ue(r,["ref","id","value","disabled","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),a=()=>i.id??n.generateTriggerId(i.value),s=()=>n.listState().selectionManager().focusedKey()===i.value,l=()=>i.disabled||n.isDisabled(),c=()=>n.contentIdsMap().get(i.value);jM({getItem:()=>({ref:()=>t,type:"item",key:i.value,textValue:"",disabled:l()})});const d=Lm({key:()=>i.value,selectionManager:()=>n.listState().selectionManager(),disabled:l},()=>t),u=h=>{Y8()&&pn(h.currentTarget)};return se(Ht([()=>i.value,a],([h,m])=>{n.triggerIdsMap().set(h,m)})),y(We,ee({as:"button",ref(h){var m=kt(f=>t=f,i.ref);typeof m=="function"&&m(h)},get id(){return a()},role:"tab",get tabIndex(){return Le(()=>!l())()?d.tabIndex():void 0},get disabled(){return l()},get"aria-selected"(){return d.isSelected()},get"aria-disabled"(){return l()||void 0},get"aria-controls"(){return Le(()=>!!d.isSelected())()?c():void 0},get"data-key"(){return d.dataKey()},get"data-orientation"(){return n.orientation()},get"data-selected"(){return d.isSelected()?"":void 0},get"data-highlighted"(){return s()?"":void 0},get"data-disabled"(){return l()?"":void 0},get onPointerDown(){return gt([i.onPointerDown,d.onPointerDown])},get onPointerUp(){return gt([i.onPointerUp,d.onPointerUp])},get onClick(){return gt([i.onClick,d.onClick,u])},get onKeyDown(){return gt([i.onKeyDown,d.onKeyDown])},get onMouseDown(){return gt([i.onMouseDown,d.onMouseDown])},get onFocus(){return gt([i.onFocus,d.onFocus])}},o))}var bu=Object.assign(SP,{Content:wP,Indicator:kP,List:xP,Trigger:_P}),Wfe=Q("<div data-slot=tabs-trigger-wrapper>"),Gfe=Q("<div data-slot=tabs-trigger-close-button>"),Kfe=Q("<div data-slot=tabs-section-title>");function Jfe(e){const[t,n]=ue(e,["class","classList","variant","orientation"]);return y(bu,ee(n,{get orientation(){return t.orientation},"data-component":"tabs",get"data-variant"(){return t.variant||"normal"},get"data-orientation"(){return t.orientation||"horizontal"},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function Qfe(e){const[t,n]=ue(e,["class","classList"]);return y(bu.List,ee(n,{"data-slot":"tabs-list",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function Xfe(e){const[t,n]=ue(e,["class","classList","classes","children","closeButton","hideCloseButton","onMiddleClick"]);return(()=>{var r=Wfe();return r.addEventListener("auxclick",i=>{i.button===1&&t.onMiddleClick&&(i.preventDefault(),t.onMiddleClick())}),r.$$mousedown=i=>{i.button===1&&t.onMiddleClick&&i.preventDefault()},P(r,y(bu.Trigger,ee(n,{"data-slot":"tabs-trigger",get"data-value"(){return e.value},get classList(){return{[t.classes?.button??""]:t.classes?.button}},get children(){return t.children}})),null),P(r,y(de,{get when(){return t.closeButton},children:i=>(()=>{var o=Gfe();return P(o,i),Ne(()=>et(o,"data-hidden",t.hideCloseButton)),o})()}),null),Ne(i=>{var o=e.value,a={...t.classList??{},[t.class??""]:!!t.class};return o!==i.e&&et(r,"data-value",i.e=o),i.t=ln(r,a,i.t),i},{e:void 0,t:void 0}),r})()}function Yfe(e){const[t,n]=ue(e,["class","classList","children"]);return y(bu.Content,ee(n,{"data-slot":"tabs-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}const ehe=e=>(()=>{var t=Kfe();return P(t,()=>e.children),t})(),ni=Object.assign(Jfe,{List:Qfe,Trigger:Xfe,Content:Yfe,SectionTitle:ehe});rr(["mousedown"]);var the=Q("<option>"),nhe=Q("<div aria-hidden=true><input type=text style=font-size:16px><select tabindex=-1><option>");function rhe(e){let t;const[n,r]=ue(e,["ref","onChange","collection","selectionManager","isOpen","isMultiple","isVirtualized","focusTrigger"]),i=Gi(),[o,a]=me(!1),s=l=>{const c=n.collection.getItem(l);return y(de,{get when(){return c?.type==="item"},get children(){var d=the();return d.value=l,P(d,()=>c?.textValue),Ne(()=>d.selected=n.selectionManager.isSelected(l)),d}})};return se(Ht(()=>n.selectionManager.selectedKeys(),(l,c)=>{c&&DM(l,c)||(a(!0),t?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})))},{defer:!0})),(()=>{var l=nhe(),c=l.firstChild,d=c.nextSibling;d.firstChild,c.addEventListener("focus",()=>n.focusTrigger()),d.addEventListener("change",h=>{Ve(h,n.onChange),o()||n.selectionManager.setSelectedKeys(new Set([h.target.value])),a(!1)});var u=kt(h=>t=h,n.ref);return typeof u=="function"&&or(u,d),nr(d,ee({get multiple(){return n.isMultiple},get name(){return i.name()},get required(){return i.isRequired()},get disabled(){return i.isDisabled()},get size(){return n.collection.getSize()},get value(){return n.selectionManager.firstSelectedKey()??""}},r),!1,!0),P(d,y(de,{get when(){return n.isVirtualized},get fallback(){return y(on,{get each(){return[...n.collection.getKeys()]},children:s})},get children(){return y(on,{get each(){return[...n.selectionManager.selectedKeys()]},children:s})}}),null),Ne(h=>{var m=sb,f=n.selectionManager.isFocused()||n.isOpen?-1:0,p=i.isRequired(),b=i.isDisabled(),v=i.isReadOnly();return h.e=Jh(l,m,h.e),f!==h.t&&et(c,"tabindex",h.t=f),p!==h.a&&(c.required=h.a=p),b!==h.o&&(c.disabled=h.o=b),v!==h.i&&(c.readOnly=h.i=v),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),l})()}var Xx=new WeakMap;function ihe(e){let t=Xx.get(e);if(t!=null)return t;t=0;for(const n of e)n.type==="item"&&t++;return Xx.set(e,t),t}var ohe={};Ar(ohe,{Item:()=>Qm,ItemDescription:()=>Xm,ItemIndicator:()=>Ym,ItemLabel:()=>ep,Listbox:()=>ahe,Root:()=>O4,Section:()=>tp,useListboxContext:()=>CP});var AP=Ct();function CP(){const e=yt(AP);if(e===void 0)throw new Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");return e}var EP=Ct();function P4(){const e=yt(EP);if(e===void 0)throw new Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");return e}function Qm(e){let t;const n=CP(),r=`${n.generateId("item")}-${cn()}`,i=Be({id:r},e),[o,a]=ue(i,["ref","item","aria-label","aria-labelledby","aria-describedby","onPointerMove","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,l]=me(),[c,d]=me(),u=()=>n.listState().selectionManager(),h=()=>u().focusedKey()===o.item.key,m=Lm({key:()=>o.item.key,selectionManager:u,shouldSelectOnPressUp:n.shouldSelectOnPressUp,allowsDifferentPressOrigin:()=>n.shouldSelectOnPressUp()&&n.shouldFocusOnHover(),shouldUseVirtualFocus:n.shouldUseVirtualFocus,disabled:()=>o.item.disabled},()=>t),f=()=>{if(u().selectionMode()!=="none")return m.isSelected()},p=j(()=>!(Ed()&&Y8())),b=()=>p()?o["aria-label"]:void 0,v=()=>p()?s():void 0,g=()=>p()?c():void 0,k=()=>{if(!n.isVirtualized())return;const C=n.listState().collection().getItem(o.item.key)?.index;return C!=null?C+1:void 0},S=()=>{if(n.isVirtualized())return ihe(n.listState().collection())},w=C=>{Ve(C,o.onPointerMove),C.pointerType==="mouse"&&!m.isDisabled()&&n.shouldFocusOnHover()&&(pn(C.currentTarget),u().setFocused(!0),u().setFocusedKey(o.item.key))},x=j(()=>({"data-disabled":m.isDisabled()?"":void 0,"data-selected":m.isSelected()?"":void 0,"data-highlighted":h()?"":void 0})),L={isSelected:m.isSelected,dataset:x,generateId:Or(()=>a.id),registerLabelId:In(l),registerDescriptionId:In(d)};return y(EP.Provider,{value:L,get children(){return y(We,ee({as:"li",ref(C){var I=kt($=>t=$,o.ref);typeof I=="function"&&I(C)},role:"option",get tabIndex(){return m.tabIndex()},get"aria-disabled"(){return m.isDisabled()},get"aria-selected"(){return f()},get"aria-label"(){return b()},get"aria-labelledby"(){return v()},get"aria-describedby"(){return g()},get"aria-posinset"(){return k()},get"aria-setsize"(){return S()},get"data-key"(){return m.dataKey()},get onPointerDown(){return gt([o.onPointerDown,m.onPointerDown])},get onPointerUp(){return gt([o.onPointerUp,m.onPointerUp])},get onClick(){return gt([o.onClick,m.onClick])},get onKeyDown(){return gt([o.onKeyDown,m.onKeyDown])},get onMouseDown(){return gt([o.onMouseDown,m.onMouseDown])},get onFocus(){return gt([o.onFocus,m.onFocus])},onPointerMove:w},x,a))}})}function Xm(e){const t=P4(),n=Be({id:t.generateId("description")},e);return se(()=>he(t.registerDescriptionId(n.id))),y(We,ee({as:"div"},()=>t.dataset(),n))}function Ym(e){const t=P4(),n=Be({id:t.generateId("indicator")},e),[r,i]=ue(n,["forceMount"]);return y(de,{get when(){return r.forceMount||t.isSelected()},get children(){return y(We,ee({as:"div","aria-hidden":"true"},()=>t.dataset(),i))}})}function ep(e){const t=P4(),n=Be({id:t.generateId("label")},e);return se(()=>he(t.registerLabelId(n.id))),y(We,ee({as:"div"},()=>t.dataset(),n))}function O4(e){let t;const n=`listbox-${cn()}`,r=Be({id:n,selectionMode:"single",virtualized:!1},e),[i,o]=ue(r,["ref","children","renderItem","renderSection","value","defaultValue","onChange","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","state","keyboardDelegate","autoFocus","selectionMode","shouldFocusWrap","shouldUseVirtualFocus","shouldSelectOnPressUp","shouldFocusOnHover","allowDuplicateSelectionEvents","disallowEmptySelection","selectionBehavior","selectOnFocus","disallowTypeAhead","allowsTabNavigation","virtualized","scrollToItem","scrollRef","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]),a=j(()=>i.state?i.state:Dm({selectedKeys:()=>i.value,defaultSelectedKeys:()=>i.defaultValue,onSelectionChange:i.onChange,allowDuplicateSelectionEvents:()=>ce(i.allowDuplicateSelectionEvents),disallowEmptySelection:()=>ce(i.disallowEmptySelection),selectionBehavior:()=>ce(i.selectionBehavior),selectionMode:()=>ce(i.selectionMode),dataSource:()=>i.options??[],getKey:()=>i.optionValue,getTextValue:()=>i.optionTextValue,getDisabled:()=>i.optionDisabled,getSectionChildren:()=>i.optionGroupChildren})),s=$M({selectionManager:()=>a().selectionManager(),collection:()=>a().collection(),autoFocus:()=>ce(i.autoFocus),shouldFocusWrap:()=>ce(i.shouldFocusWrap),keyboardDelegate:()=>i.keyboardDelegate,disallowEmptySelection:()=>ce(i.disallowEmptySelection),selectOnFocus:()=>ce(i.selectOnFocus),disallowTypeAhead:()=>ce(i.disallowTypeAhead),shouldUseVirtualFocus:()=>ce(i.shouldUseVirtualFocus),allowsTabNavigation:()=>ce(i.allowsTabNavigation),isVirtualized:()=>i.virtualized,scrollToKey:()=>i.scrollToItem},()=>t,()=>i.scrollRef?.()),l={listState:a,generateId:Or(()=>o.id),shouldUseVirtualFocus:()=>r.shouldUseVirtualFocus,shouldSelectOnPressUp:()=>r.shouldSelectOnPressUp,shouldFocusOnHover:()=>r.shouldFocusOnHover,isVirtualized:()=>i.virtualized};return y(AP.Provider,{value:l,get children(){return y(We,ee({as:"ul",ref(c){var d=kt(u=>t=u,i.ref);typeof d=="function"&&d(c)},role:"listbox",get tabIndex(){return s.tabIndex()},get"aria-multiselectable"(){return a().selectionManager().selectionMode()==="multiple"?!0:void 0},get onKeyDown(){return gt([i.onKeyDown,s.onKeyDown])},get onMouseDown(){return gt([i.onMouseDown,s.onMouseDown])},get onFocusIn(){return gt([i.onFocusIn,s.onFocusIn])},get onFocusOut(){return gt([i.onFocusOut,s.onFocusOut])}},o,{get children(){return y(de,{get when(){return!i.virtualized},get fallback(){return i.children?.(a().collection)},get children(){return y(mH,{get each(){return[...a().collection()]},by:"key",children:c=>y(Ur,{get children(){return[y(Ot,{get when(){return c().type==="section"},get children(){return i.renderSection?.(c())}}),y(Ot,{get when(){return c().type==="item"},get children(){return i.renderItem?.(c())}})]}})})}})}}))}})}function tp(e){return y(We,ee({as:"li",role:"presentation"},e))}var ahe=Object.assign(O4,{Item:Qm,ItemDescription:Xm,ItemIndicator:Ym,ItemLabel:ep,Section:tp}),she={};Ar(she,{Arrow:()=>Wi,Content:()=>TP,Description:()=>pu,ErrorMessage:()=>gu,HiddenSelect:()=>LP,Icon:()=>DP,Item:()=>Qm,ItemDescription:()=>Xm,ItemIndicator:()=>Ym,ItemLabel:()=>ep,Label:()=>MP,Listbox:()=>PP,Portal:()=>OP,Root:()=>$P,Section:()=>tp,Select:()=>ii,Trigger:()=>RP,Value:()=>zP,useSelectContext:()=>ea});var IP=Ct();function ea(){const e=yt(IP);if(e===void 0)throw new Error("[kobalte]: `useSelectContext` must be used within a `Select` component");return e}function TP(e){let t;const n=ea(),[r,i]=ue(e,["ref","style","onCloseAutoFocus","onFocusOutside"]),o=s=>{n.close()},a=s=>{r.onFocusOutside?.(s),n.isOpen()&&n.isModal()&&s.preventDefault()};return db({isDisabled:()=>!(n.isOpen()&&n.isModal()),targets:()=>t?[t]:[]}),fb({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),cb({trapFocus:()=>n.isOpen()&&n.isModal(),onMountAutoFocus:s=>{s.preventDefault()},onUnmountAutoFocus:s=>{r.onCloseAutoFocus?.(s),s.defaultPrevented||(pn(n.triggerRef()),s.preventDefault())}},()=>t),y(de,{get when(){return n.contentPresent()},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({ref(s){var l=kt(c=>{n.setContentRef(c),t=c},r.ref);typeof l=="function"&&l(s)},get disableOutsidePointerEvents(){return Le(()=>!!n.isModal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get style(){return Pr({"--kb-select-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},r.style)},onEscapeKeyDown:o,onFocusOutside:a,get onDismiss(){return n.close}},()=>n.dataset(),i))}})}})}function LP(e){const t=ea();return y(rhe,ee({get collection(){return t.listState().collection()},get selectionManager(){return t.listState().selectionManager()},get isOpen(){return t.isOpen()},get isMultiple(){return t.isMultiple()},get isVirtualized(){return t.isVirtualized()},focusTrigger:()=>t.triggerRef()?.focus()},e))}function DP(e){const t=ea(),n=Be({children:"▼"},e);return y(We,ee({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function MP(e){const t=ea(),[n,r]=ue(e,["onClick"]);return y(Km,ee({as:"span",onClick:o=>{Ve(o,n.onClick),t.isDisabled()||t.triggerRef()?.focus()}},r))}function PP(e){const t=ea(),n=Be({id:t.generateId("listbox")},e),[r,i]=ue(n,["ref","id","onKeyDown"]);return se(()=>he(t.registerListboxId(r.id))),y(O4,ee({ref(a){var s=kt(t.setListboxRef,r.ref);typeof s=="function"&&s(a)},get id(){return r.id},get state(){return t.listState()},get virtualized(){return t.isVirtualized()},get autoFocus(){return t.autoFocus()},shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,get shouldFocusWrap(){return t.shouldFocusWrap()},get disallowTypeAhead(){return t.disallowTypeAhead()},get"aria-labelledby"(){return t.listboxAriaLabelledBy()},get renderItem(){return t.renderItem},get renderSection(){return t.renderSection},onKeyDown:a=>{Ve(a,r.onKeyDown),a.key==="Escape"&&a.preventDefault()}},i))}function OP(e){const t=ea();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}function lhe(e){const t=`select-${cn()}`,n=Be({id:t,selectionMode:"single",disallowEmptySelection:!1,closeOnSelection:e.selectionMode==="single",allowDuplicateSelectionEvents:!0,gutter:8,sameWidth:!0,modal:!1},e),[r,i,o,a]=ue(n,["itemComponent","sectionComponent","open","defaultOpen","onOpenChange","value","defaultValue","onChange","placeholder","options","optionValue","optionTextValue","optionDisabled","optionGroupChildren","keyboardDelegate","allowDuplicateSelectionEvents","disallowEmptySelection","closeOnSelection","disallowTypeAhead","shouldFocusWrap","selectionBehavior","selectionMode","virtualized","modal","preventScroll","forceMount"],["getAnchorRect","placement","gutter","shift","flip","slide","overlap","sameWidth","fitViewport","hideWhenDetached","detachedPadding","arrowPadding","overflowPadding"],E4),[s,l]=me(),[c,d]=me(),[u,h]=me(),[m,f]=me(),[p,b]=me(),[v,g]=me(),[k,S]=me(),[w,x]=me(!0),L=Y=>{const ie=r.optionValue;return ie==null?String(Y):String(Cd(ie)?ie(Y):Y[ie])},C=j(()=>{const Y=r.optionGroupChildren;return Y==null?r.options:r.options.flatMap(ie=>ie[Y]??ie)}),I=j(()=>C().map(Y=>L(Y))),$=Y=>[...Y].map(ie=>C().find(be=>L(be)===ie)).filter(ie=>ie!=null),F=Ma({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:Y=>r.onOpenChange?.(Y)}),N=Dm({selectedKeys:()=>r.value!=null?r.value.map(L):r.value,defaultSelectedKeys:()=>r.defaultValue!=null?r.defaultValue.map(L):r.defaultValue,onSelectionChange:Y=>{r.onChange?.($(Y)),r.closeOnSelection&&K()},allowDuplicateSelectionEvents:()=>ce(r.allowDuplicateSelectionEvents),disallowEmptySelection:()=>ce(r.disallowEmptySelection),selectionBehavior:()=>ce(r.selectionBehavior),selectionMode:()=>r.selectionMode,dataSource:()=>r.options??[],getKey:()=>r.optionValue,getTextValue:()=>r.optionTextValue,getDisabled:()=>r.optionDisabled,getSectionChildren:()=>r.optionGroupChildren}),D=j(()=>$(N.selectionManager().selectedKeys())),T=Y=>{N.selectionManager().toggleSelection(L(Y))},{present:M}=Uo({show:()=>r.forceMount||F.isOpen(),element:()=>p()??null}),R=()=>{const Y=v();Y&&pn(Y)},G=Y=>{if(r.options.length<=0)return;x(Y),F.open();let ie=N.selectionManager().firstSelectedKey();ie==null&&(Y==="first"?ie=N.collection().getFirstKey():Y==="last"&&(ie=N.collection().getLastKey())),R(),N.selectionManager().setFocused(!0),N.selectionManager().setFocusedKey(ie)},K=()=>{F.close(),N.selectionManager().setFocused(!1),N.selectionManager().setFocusedKey(void 0)},U=Y=>{F.isOpen()?K():G(Y)},{formControlContext:q}=I4(o);D4(m,()=>{const Y=r.defaultValue?[...r.defaultValue].map(L):new ro;N.selectionManager().setSelectedKeys(Y)});const X=uM({usage:"search",sensitivity:"base"}),le=j(()=>{const Y=ce(r.keyboardDelegate);return Y||new OM(N.collection,void 0,X)}),_e=Y=>r.itemComponent?.({item:Y}),ne=Y=>r.sectionComponent?.({section:Y});se(Ht([I],([Y])=>{const be=[...N.selectionManager().selectedKeys()].filter(ge=>Y.includes(ge));N.selectionManager().setSelectedKeys(be)},{defer:!0}));const B=j(()=>({"data-expanded":F.isOpen()?"":void 0,"data-closed":F.isOpen()?void 0:""})),ae={dataset:B,isOpen:F.isOpen,isDisabled:()=>q.isDisabled()??!1,isMultiple:()=>ce(r.selectionMode)==="multiple",isVirtualized:()=>r.virtualized??!1,isModal:()=>r.modal??!1,preventScroll:()=>r.preventScroll??ae.isModal(),disallowTypeAhead:()=>r.disallowTypeAhead??!1,shouldFocusWrap:()=>r.shouldFocusWrap??!1,selectedOptions:D,contentPresent:M,autoFocus:w,triggerRef:m,listState:()=>N,keyboardDelegate:le,triggerId:s,valueId:c,listboxId:u,listboxAriaLabelledBy:k,setListboxAriaLabelledBy:S,setTriggerRef:f,setContentRef:b,setListboxRef:g,open:G,close:K,toggle:U,placeholder:()=>r.placeholder,renderItem:_e,renderSection:ne,removeOptionFromSelection:T,generateId:Or(()=>ce(o.id)),registerTriggerId:In(l),registerValueId:In(d),registerListboxId:In(h)};return y(Gm.Provider,{value:q,get children(){return y(IP.Provider,{value:ae,get children(){return y(Fa,ee({anchorRef:m,contentRef:p},i,{get children(){return y(We,ee({as:"div",role:"group",get id(){return ce(o.id)}},()=>q.dataset(),B,a))}}))}})}})}function $P(e){const[t,n]=ue(e,["value","defaultValue","onChange","multiple"]),r=j(()=>t.value!=null?t.multiple?t.value:[t.value]:t.value),i=j(()=>t.defaultValue!=null?t.multiple?t.defaultValue:[t.defaultValue]:t.defaultValue);return y(lhe,ee({get value(){return r()},get defaultValue(){return i()},onChange:a=>{t.multiple?t.onChange?.(a??[]):t.onChange?.(a[0]??null)},get selectionMode(){return t.multiple?"multiple":"single"}},n))}function RP(e){const t=Gi(),n=ea(),r=Be({id:n.generateId("trigger")},e),[i,o,a]=ue(r,["ref","disabled","onPointerDown","onClick","onKeyDown","onFocus","onBlur"],T4),s=()=>n.listState().selectionManager(),l=()=>n.keyboardDelegate(),c=()=>i.disabled||n.isDisabled(),{fieldProps:d}=L4(o),{typeSelectHandlers:u}=MM({keyboardDelegate:l,selectionManager:s,onTypeSelect:g=>s().select(g)}),h=()=>[n.listboxAriaLabelledBy(),n.valueId()].filter(Boolean).join(" ")||void 0,m=g=>{Ve(g,i.onPointerDown),g.currentTarget.dataset.pointerType=g.pointerType,!c()&&g.pointerType!=="touch"&&g.button===0&&(g.preventDefault(),n.toggle(!0))},f=g=>{Ve(g,i.onClick),!c()&&g.currentTarget.dataset.pointerType==="touch"&&n.toggle(!0)},p=g=>{if(Ve(g,i.onKeyDown),!c())switch(Ve(g,u.onKeyDown),g.key){case"Enter":case" ":case"ArrowDown":g.stopPropagation(),g.preventDefault(),n.toggle("first");break;case"ArrowUp":g.stopPropagation(),g.preventDefault(),n.toggle("last");break;case"ArrowLeft":{if(g.preventDefault(),n.isMultiple())return;const k=s().firstSelectedKey(),S=k!=null?l().getKeyAbove?.(k):l().getFirstKey?.();S!=null&&s().select(S);break}case"ArrowRight":{if(g.preventDefault(),n.isMultiple())return;const k=s().firstSelectedKey(),S=k!=null?l().getKeyBelow?.(k):l().getFirstKey?.();S!=null&&s().select(S);break}}},b=g=>{Ve(g,i.onFocus),!s().isFocused()&&s().setFocused(!0)},v=g=>{Ve(g,i.onBlur),!n.isOpen()&&s().setFocused(!1)};return se(()=>he(n.registerTriggerId(d.id()))),se(()=>{n.setListboxAriaLabelledBy([d.ariaLabelledBy(),d.ariaLabel()&&!d.ariaLabelledBy()?d.id():null].filter(Boolean).join(" ")||void 0)}),y(Pa,ee({ref(g){var k=kt(n.setTriggerRef,i.ref);typeof k=="function"&&k(g)},get id(){return d.id()},get disabled(){return c()},"aria-haspopup":"listbox",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Le(()=>!!n.isOpen())()?n.listboxId():void 0},get"aria-label"(){return d.ariaLabel()},get"aria-labelledby"(){return h()},get"aria-describedby"(){return d.ariaDescribedBy()},onPointerDown:m,onClick:f,onKeyDown:p,onFocus:b,onBlur:v},()=>n.dataset(),()=>t.dataset(),a))}function zP(e){const t=Gi(),n=ea(),r=Be({id:n.generateId("value")},e),[i,o]=ue(r,["id","children"]),a=()=>n.listState().selectionManager(),s=()=>{const l=a().selectedKeys();return l.size===1&&l.has("")?!0:a().isEmpty()};return se(()=>he(n.registerValueId(i.id))),y(We,ee({as:"span",get id(){return i.id},get"data-placeholder-shown"(){return s()?"":void 0}},()=>t.dataset(),o,{get children(){return y(de,{get when(){return!s()},get fallback(){return n.placeholder()},get children(){return y(che,{state:{selectedOption:()=>n.selectedOptions()[0],selectedOptions:()=>n.selectedOptions(),remove:l=>n.removeOptionFromSelection(l),clear:()=>a().clearSelection()},get children(){return i.children}})}})}}))}function che(e){const t=_s(()=>{const n=e.children;return Cd(n)?n(e.state):n});return Le(t)}var ii=Object.assign($P,{Arrow:Wi,Content:TP,Description:pu,ErrorMessage:gu,HiddenSelect:LP,Icon:DP,Item:Qm,ItemDescription:Xm,ItemIndicator:Ym,ItemLabel:ep,Label:MP,Listbox:PP,Portal:OP,Section:tp,Trigger:RP,Value:zP});function Ga(e){const[t,n]=ue(e,["class","classList","placeholder","options","current","value","label","groupBy","valueClass","onSelect","onHighlight","onOpenChange","children","triggerStyle","triggerVariant"]),r={key:void 0,cleanup:void 0},i=()=>{r.cleanup?.(),r.cleanup=void 0,r.key=void 0},o=l=>t.value?t.value(l):l,a=l=>{if(!t.onHighlight)return;if(!l){i();return}const c=o(l);r.key!==c&&(r.cleanup?.(),r.cleanup=t.onHighlight(l),r.key=c)};he(i);const s=j(()=>ks(t.options,Vh(c=>t.groupBy?t.groupBy(c):""),oM(),aM(([c,d])=>({category:c,options:d}))));return y(ii,ee(n,{"data-component":"select",get"data-trigger-style"(){return t.triggerVariant},get placement(){return t.triggerVariant==="settings"?"bottom-end":"bottom-start"},gutter:4,get value(){return t.current},get options(){return s()},optionValue:l=>t.value?t.value(l):l,optionTextValue:l=>t.label?t.label(l):l,optionGroupChildren:"options",get placeholder(){return t.placeholder},sectionComponent:l=>y(ii.Section,{"data-slot":"select-section",get children(){return l.section.rawValue.category}}),itemComponent:l=>y(ii.Item,ee(l,{"data-slot":"select-select-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},onPointerEnter:()=>a(l.item.rawValue),onPointerMove:()=>a(l.item.rawValue),onFocus:()=>a(l.item.rawValue),get children(){return[y(ii.ItemLabel,{"data-slot":"select-select-item-label",get children(){return Le(()=>!!t.children)()?t.children(l.item.rawValue):Le(()=>!!t.label)()?t.label(l.item.rawValue):l.item.rawValue}}),y(ii.ItemIndicator,{"data-slot":"select-select-item-indicator",get children(){return y(Dt,{name:"check-small",size:"small"})}})]}})),onChange:l=>{t.onSelect?.(l??void 0),i()},onOpenChange:l=>{t.onOpenChange?.(l),l||i()},get children(){return[y(ii.Trigger,{get disabled(){return e.disabled},"data-slot":"select-select-trigger",as:At,get size(){return e.size},get variant(){return e.variant},get style(){return t.triggerStyle},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return[y(ii.Value,{"data-slot":"select-select-trigger-value",get class(){return t.valueClass},children:l=>{const c=l.selectedOption()??t.current;return c?t.label?t.label(c):c:t.placeholder||""}}),y(ii.Icon,{"data-slot":"select-select-trigger-icon",get children(){return y(Dt,{get name(){return t.triggerVariant==="settings"?"selector":"chevron-down"},size:"small"})}})]}}),y(ii.Portal,{get children(){return y(ii.Content,{get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},"data-component":"select-content",get"data-trigger-style"(){return t.triggerVariant},get children(){return y(ii.Listbox,{"data-slot":"select-select-content-list"})}})}})]}}))}var dhe={};Ar(dhe,{Control:()=>FP,Description:()=>VP,ErrorMessage:()=>jP,Input:()=>BP,Label:()=>HP,Root:()=>UP,Switch:()=>ca,Thumb:()=>qP,useSwitchContext:()=>Rs});var NP=Ct();function Rs(){const e=yt(NP);if(e===void 0)throw new Error("[kobalte]: `useSwitchContext` must be used within a `Switch` component");return e}function FP(e){const t=Gi(),n=Rs(),r=Be({id:n.generateId("control")},e),[i,o]=ue(r,["onClick","onKeyDown"]);return y(We,ee({as:"div",onClick:l=>{Ve(l,i.onClick),n.toggle(),n.inputRef()?.focus()},onKeyDown:l=>{Ve(l,i.onKeyDown),l.key===nb.Space&&(n.toggle(),n.inputRef()?.focus())}},()=>t.dataset(),()=>n.dataset(),o))}function VP(e){const t=Rs();return y(pu,ee(()=>t.dataset(),e))}function jP(e){const t=Rs();return y(gu,ee(()=>t.dataset(),e))}function BP(e){const t=Gi(),n=Rs(),r=Be({id:n.generateId("input")},e),[i,o,a]=ue(r,["ref","style","onChange","onFocus","onBlur"],T4),{fieldProps:s}=L4(o);return y(We,ee({as:"input",ref(u){var h=kt(n.setInputRef,i.ref);typeof h=="function"&&h(u)},type:"checkbox",role:"switch",get id(){return s.id()},get name(){return t.name()},get value(){return n.value()},get checked(){return n.checked()},get required(){return t.isRequired()},get disabled(){return t.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return Pr({...sb},i.style)},get"aria-checked"(){return n.checked()},get"aria-label"(){return s.ariaLabel()},get"aria-labelledby"(){return s.ariaLabelledBy()},get"aria-describedby"(){return s.ariaDescribedBy()},get"aria-invalid"(){return t.validationState()==="invalid"||void 0},get"aria-required"(){return t.isRequired()||void 0},get"aria-disabled"(){return t.isDisabled()||void 0},get"aria-readonly"(){return t.isReadOnly()||void 0},onChange:u=>{Ve(u,i.onChange),u.stopPropagation();const h=u.target;n.setIsChecked(h.checked),h.checked=n.checked()},onFocus:u=>{Ve(u,i.onFocus),n.setIsFocused(!0)},onBlur:u=>{Ve(u,i.onBlur),n.setIsFocused(!1)}},()=>t.dataset(),()=>n.dataset(),a))}function HP(e){const t=Rs();return y(Km,ee(()=>t.dataset(),e))}function UP(e){let t;const n=`switch-${cn()}`,r=Be({value:"on",id:n},e),[i,o,a]=ue(r,["ref","children","value","checked","defaultChecked","onChange","onPointerDown"],E4),[s,l]=me(),[c,d]=me(!1),{formControlContext:u}=I4(o),h=BM({isSelected:()=>i.checked,defaultIsSelected:()=>i.defaultChecked,onSelectedChange:b=>i.onChange?.(b),isDisabled:()=>u.isDisabled(),isReadOnly:()=>u.isReadOnly()});D4(()=>t,()=>h.setIsSelected(i.defaultChecked??!1));const m=b=>{Ve(b,i.onPointerDown),c()&&b.preventDefault()},f=j(()=>({"data-checked":h.isSelected()?"":void 0})),p={value:()=>i.value,dataset:f,checked:()=>h.isSelected(),inputRef:s,generateId:Or(()=>ce(o.id)),toggle:()=>h.toggle(),setIsChecked:b=>h.setIsSelected(b),setIsFocused:d,setInputRef:l};return y(Gm.Provider,{value:u,get children(){return y(NP.Provider,{value:p,get children(){return y(We,ee({as:"div",ref(b){var v=kt(g=>t=g,i.ref);typeof v=="function"&&v(b)},role:"group",get id(){return ce(o.id)},onPointerDown:m},()=>u.dataset(),f,a,{get children(){return y(uhe,{state:p,get children(){return i.children}})}}))}})}})}function uhe(e){const t=_s(()=>{const n=e.children;return Cd(n)?n(e.state):n});return Le(t)}function qP(e){const t=Gi(),n=Rs(),r=Be({id:n.generateId("thumb")},e);return y(We,ee({as:"div"},()=>t.dataset(),()=>n.dataset(),r))}var ca=Object.assign(UP,{Control:FP,Description:VP,ErrorMessage:jP,Input:BP,Label:HP,Thumb:qP});function eo(e){const[t,n]=ue(e,["children","class","hideLabel","description"]);return y(ca,ee(n,{get class(){return t.class},"data-component":"switch",get children(){return[y(ca.Input,{"data-slot":"switch-input"}),y(de,{get when(){return t.children},get children(){return y(ca.Label,{"data-slot":"switch-label",get classList(){return{"sr-only":t.hideLabel}},get children(){return t.children}})}}),y(de,{get when(){return t.description},get children(){return y(ca.Description,{"data-slot":"switch-description",get children(){return t.description}})}}),y(ca.ErrorMessage,{"data-slot":"switch-error"}),y(ca.Control,{"data-slot":"switch-control",get children(){return y(ca.Thumb,{"data-slot":"switch-thumb"})}})]}}))}var nl=Q('<div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg">'),fhe=Q("<span>"),hhe=Q("<div data-action=settings-feed-reasoning-summaries>"),mhe=Q("<div data-action=settings-feed-shell-tool-parts-expanded>"),phe=Q("<div data-action=settings-feed-edit-tool-parts-expanded>"),ghe=Q("<div data-action=settings-notifications-agent>"),vhe=Q("<div data-action=settings-notifications-permissions>"),bhe=Q("<div data-action=settings-notifications-errors>"),yhe=Q("<div data-action=settings-updates-startup>"),whe=Q("<div data-action=settings-release-notes>"),khe=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 w-full">'),xhe=Q("<div data-action=settings-wayland>"),She=Q("<span class=text-text-weak>"),_he=Q('<div class="flex items-center gap-2"><span>'),Ahe=Q('<div class="flex flex-wrap items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><div class="flex flex-col gap-0.5 min-w-0"><span class="text-14-medium text-text-strong"></span><span class="text-12-regular text-text-weak"></span></div><div class=flex-shrink-0>');let pl={cleanup:void 0,timeout:void 0};const ZP=()=>{pl.cleanup&&pl.cleanup(),clearTimeout(pl.timeout),pl.cleanup=void 0},Yx=e=>{ZP(),e&&(pl.timeout=setTimeout(()=>{pl.cleanup=jh(e)},100))},Che=()=>{const e=ty(),t=Kt(),n=Er(),r=Ts(),[i,o]=He({checking:!1}),a=j(()=>n.platform==="desktop"&&n.os==="linux"),s=()=>{n.checkUpdate&&(o("checking",!0),n.checkUpdate().then(w=>{if(!w.updateAvailable){Ft({variant:"success",icon:"circle-check",title:t.t("settings.updates.toast.latest.title"),description:t.t("settings.updates.toast.latest.description",{version:n.version??""})});return}const x=n.update&&n.restart?[{label:t.t("toast.update.action.installRestart"),onClick:async()=>{await n.update(),await n.restart()}},{label:t.t("toast.update.action.notYet"),onClick:"dismiss"}]:[{label:t.t("toast.update.action.notYet"),onClick:"dismiss"}];Ft({persistent:!0,icon:"download",title:t.t("toast.update.title"),description:t.t("toast.update.description",{version:w.version??""}),actions:x})}).catch(w=>{const x=w instanceof Error?w.message:String(w);Ft({title:t.t("common.requestFailed"),description:x})}).finally(()=>o("checking",!1)))},l=j(()=>Object.entries(e.themes()).map(([w,x])=>({id:w,name:x.name??w}))),c=j(()=>[{value:"system",label:t.t("theme.scheme.system")},{value:"light",label:t.t("theme.scheme.light")},{value:"dark",label:t.t("theme.scheme.dark")}]),d=j(()=>t.locales.map(w=>({value:w,label:t.label(w)}))),h=[...[{value:"ibm-plex-mono",label:"font.option.ibmPlexMono"},{value:"cascadia-code",label:"font.option.cascadiaCode"},{value:"fira-code",label:"font.option.firaCode"},{value:"hack",label:"font.option.hack"},{value:"inconsolata",label:"font.option.inconsolata"},{value:"intel-one-mono",label:"font.option.intelOneMono"},{value:"iosevka",label:"font.option.iosevka"},{value:"jetbrains-mono",label:"font.option.jetbrainsMono"},{value:"meslo-lgs",label:"font.option.mesloLgs"},{value:"roboto-mono",label:"font.option.robotoMono"},{value:"source-code-pro",label:"font.option.sourceCodePro"},{value:"ubuntu-mono",label:"font.option.ubuntuMono"},{value:"geist-mono",label:"font.option.geistMono"}]],m={id:"none",label:"sound.option.none",src:void 0},f=[m,...lM],p=(w,x,L,C)=>({options:f,current:w()?f.find(I=>I.id===x())??m:m,value:I=>I.id,label:I=>t.t(I.label),onHighlight:I=>{I&&Yx(I.src)},onSelect:I=>{if(I){if(I.id==="none"){L(!1),ZP();return}L(!0),C(I.id),Yx(I.src)}},variant:"secondary",size:"small",triggerVariant:"settings"}),b=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.appearance")),P(L,y(ir,{get title(){return t.t("settings.general.row.language.title")},get description(){return t.t("settings.general.row.language.description")},get children(){return y(Ga,{"data-action":"settings-language",get options(){return d()},get current(){return d().find(C=>C.value===t.locale())},value:C=>C.value,label:C=>C.label,onSelect:C=>C&&t.setLocale(C.value),variant:"secondary",size:"small",triggerVariant:"settings"})}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.appearance.title")},get description(){return t.t("settings.general.row.appearance.description")},get children(){return y(Ga,{"data-action":"settings-color-scheme",get options(){return c()},get current(){return c().find(C=>C.value===e.colorScheme())},value:C=>C.value,label:C=>C.label,onSelect:C=>C&&e.setColorScheme(C.value),onHighlight:C=>{if(C)return e.previewColorScheme(C.value),()=>e.cancelPreview()},variant:"secondary",size:"small",triggerVariant:"settings"})}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.theme.title")},get description(){return[Le(()=>t.t("settings.general.row.theme.description"))," ",y(Hc,{href:"https://opencode.ai/docs/themes/",get children(){return t.t("common.learnMore")}})]},get children(){return y(Ga,{"data-action":"settings-theme",get options(){return l()},get current(){return l().find(C=>C.id===e.themeId())},value:C=>C.id,label:C=>C.name,onSelect:C=>{C&&e.setTheme(C.id)},onHighlight:C=>{if(C)return e.previewTheme(C.id),()=>e.cancelPreview()},variant:"secondary",size:"small",triggerVariant:"settings"})}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.font.title")},get description(){return t.t("settings.general.row.font.description")},get children(){return y(Ga,{"data-action":"settings-font",options:h,get current(){return h.find(C=>C.value===r.appearance.font())},value:C=>C.value,label:C=>t.t(C.label),onSelect:C=>C&&r.appearance.setFont(C.value),variant:"secondary",size:"small",triggerVariant:"settings",get triggerStyle(){return{"font-family":qv(r.appearance.font()),"min-width":"180px"}},children:C=>(()=>{var I=fhe();return P(I,()=>C?t.t(C.label):""),Ne($=>zi(I,"font-family",qv(C?.value))),I})()})}}),null),w})(),v=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.feed")),P(L,y(ir,{get title(){return t.t("settings.general.row.reasoningSummaries.title")},get description(){return t.t("settings.general.row.reasoningSummaries.description")},get children(){var C=hhe();return P(C,y(eo,{get checked(){return r.general.showReasoningSummaries()},onChange:I=>r.general.setShowReasoningSummaries(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.shellToolPartsExpanded.title")},get description(){return t.t("settings.general.row.shellToolPartsExpanded.description")},get children(){var C=mhe();return P(C,y(eo,{get checked(){return r.general.shellToolPartsExpanded()},onChange:I=>r.general.setShellToolPartsExpanded(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.editToolPartsExpanded.title")},get description(){return t.t("settings.general.row.editToolPartsExpanded.description")},get children(){var C=phe();return P(C,y(eo,{get checked(){return r.general.editToolPartsExpanded()},onChange:I=>r.general.setEditToolPartsExpanded(I)})),C}}),null),w})(),g=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.notifications")),P(L,y(ir,{get title(){return t.t("settings.general.notifications.agent.title")},get description(){return t.t("settings.general.notifications.agent.description")},get children(){var C=ghe();return P(C,y(eo,{get checked(){return r.notifications.agent()},onChange:I=>r.notifications.setAgent(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.notifications.permissions.title")},get description(){return t.t("settings.general.notifications.permissions.description")},get children(){var C=vhe();return P(C,y(eo,{get checked(){return r.notifications.permissions()},onChange:I=>r.notifications.setPermissions(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.notifications.errors.title")},get description(){return t.t("settings.general.notifications.errors.description")},get children(){var C=bhe();return P(C,y(eo,{get checked(){return r.notifications.errors()},onChange:I=>r.notifications.setErrors(I)})),C}}),null),w})(),k=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.sounds")),P(L,y(ir,{get title(){return t.t("settings.general.sounds.agent.title")},get description(){return t.t("settings.general.sounds.agent.description")},get children(){return y(Ga,ee({"data-action":"settings-sounds-agent"},()=>p(()=>r.sounds.agentEnabled(),()=>r.sounds.agent(),C=>r.sounds.setAgentEnabled(C),C=>r.sounds.setAgent(C))))}}),null),P(L,y(ir,{get title(){return t.t("settings.general.sounds.permissions.title")},get description(){return t.t("settings.general.sounds.permissions.description")},get children(){return y(Ga,ee({"data-action":"settings-sounds-permissions"},()=>p(()=>r.sounds.permissionsEnabled(),()=>r.sounds.permissions(),C=>r.sounds.setPermissionsEnabled(C),C=>r.sounds.setPermissions(C))))}}),null),P(L,y(ir,{get title(){return t.t("settings.general.sounds.errors.title")},get description(){return t.t("settings.general.sounds.errors.description")},get children(){return y(Ga,ee({"data-action":"settings-sounds-errors"},()=>p(()=>r.sounds.errorsEnabled(),()=>r.sounds.errors(),C=>r.sounds.setErrorsEnabled(C),C=>r.sounds.setErrors(C))))}}),null),w})(),S=()=>(()=>{var w=nl(),x=w.firstChild,L=x.nextSibling;return P(x,()=>t.t("settings.general.section.updates")),P(L,y(ir,{get title(){return t.t("settings.updates.row.startup.title")},get description(){return t.t("settings.updates.row.startup.description")},get children(){var C=yhe();return P(C,y(eo,{get checked(){return r.updates.startup()},get disabled(){return!n.checkUpdate},onChange:I=>r.updates.setStartup(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.general.row.releaseNotes.title")},get description(){return t.t("settings.general.row.releaseNotes.description")},get children(){var C=whe();return P(C,y(eo,{get checked(){return r.general.releaseNotes()},onChange:I=>r.general.setReleaseNotes(I)})),C}}),null),P(L,y(ir,{get title(){return t.t("settings.updates.row.check.title")},get description(){return t.t("settings.updates.row.check.description")},get children(){return y(At,{size:"small",variant:"secondary",get disabled(){return i.checking||!n.checkUpdate},onClick:s,get children(){return Le(()=>!!i.checking)()?t.t("settings.updates.action.checking"):t.t("settings.updates.action.checkNow")}})}}),null),w})();return(()=>{var w=khe(),x=w.firstChild,L=x.firstChild,C=L.firstChild,I=x.nextSibling;return P(C,()=>t.t("settings.tab.general")),P(I,y(b,{}),null),P(I,y(v,{}),null),P(I,y(g,{}),null),P(I,y(k,{}),null),P(I,y(S,{}),null),P(I,y(de,{get when(){return a()},children:$=>{const[F,N]=Ss(()=>n.getDisplayBackend?.()),D=()=>F.state==="pending"?void 0:F.latest,T=M=>n.setDisplayBackend?.(M?"wayland":"auto").finally(()=>N.refetch());return(()=>{var M=nl(),R=M.firstChild,G=R.nextSibling;return P(R,()=>t.t("settings.general.section.display")),P(G,y(ir,{get title(){return(()=>{var K=_he(),U=K.firstChild;return P(U,()=>t.t("settings.general.row.wayland.title")),P(K,y(_r,{get value(){return t.t("settings.general.row.wayland.tooltip")},placement:"top",get children(){var q=She();return P(q,y(Dt,{name:"help",size:"small"})),q}}),null),K})()},get description(){return t.t("settings.general.row.wayland.description")},get children(){var K=xhe();return P(K,y(eo,{get checked(){return D()==="wayland"},onChange:T})),K}})),M})()}}),null),w})()},ir=e=>(()=>{var t=Ahe(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,o=n.nextSibling;return P(r,()=>e.title),P(i,()=>e.description),P(o,()=>e.children),t})();var Ehe=Q('<span class="text-14-regular text-text-strong mt-1">"<!>"'),Ihe=Q('<div class="flex flex-col items-center justify-center py-12 text-center"><span class="text-14-regular text-text-weak">'),The=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]"><div class="flex items-center justify-between gap-4"><h2 class="text-16-medium text-text-strong"></h2></div><div class="flex items-center gap-2 px-3 h-9 rounded-lg bg-surface-base"></div></div></div><div class="flex flex-col gap-8 max-w-[720px]">'),Lhe=Q('<div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg">'),Dhe=Q('<div class="flex items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><span class="text-14-regular text-text-strong"></span><button type=button>');const Pg=typeof navigator=="object"&&/(Mac|iPod|iPhone|iPad)/.test(navigator.platform),gl="command.palette",Mhe="mod+shift+p",yd=["General","Session","Navigation","Model and agent","Terminal","Prompt"],Phe={General:"settings.shortcuts.group.general",Session:"settings.shortcuts.group.session",Navigation:"settings.shortcuts.group.navigation","Model and agent":"settings.shortcuts.group.modelAndAgent",Terminal:"settings.shortcuts.group.terminal",Prompt:"settings.shortcuts.group.prompt"};function Og(e){return e===gl?"General":e.startsWith("terminal.")?"Terminal":e.startsWith("model.")||e.startsWith("agent.")||e.startsWith("mcp.")?"Model and agent":e.startsWith("file.")||e.startsWith("fileTree.")?"Navigation":e.startsWith("prompt.")?"Prompt":e.startsWith("session.")||e.startsWith("message.")||e.startsWith("permissions.")||e.startsWith("steps.")||e.startsWith("review.")?"Session":"General"}function Ohe(e){return e==="Shift"||e==="Control"||e==="Alt"||e==="Meta"}function $he(e){return e===","?"comma":e==="+"?"plus":e===" "?"space":e.toLowerCase()}function Rhe(e){if(Ohe(e.key))return;const t=[];(Pg?e.metaKey:e.ctrlKey)&&t.push("mod"),Pg&&e.ctrlKey&&t.push("ctrl"),!Pg&&e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift");const r=$he(e.key);if(r)return t.push(r),t.join("+")}function E1(e){if(!e)return[];const t=[];for(const n of Ah(e)){const r=[];n.ctrl&&r.push("ctrl"),n.alt&&r.push("alt"),n.shift&&r.push("shift"),n.meta&&r.push("meta"),n.key&&r.push(n.key),r.length!==0&&t.push(r.join("+"))}return t}function zhe(e){return!e||typeof e!="object"||Array.isArray(e)?{}:e}function Nhe(e,t,n){const r=new Map;r.set(gl,{title:n,group:"General"});for(const i of e.catalog)i.id.startsWith("suggested.")||r.set(i.id,{title:i.title,group:Og(i.id)});for(const i of e.options)i.id.startsWith("suggested.")||r.set(i.id,{title:i.title,group:Og(i.id)});for(const[i,o]of Object.entries(t))typeof o=="string"&&(r.has(i)||r.set(i,{title:i,group:Og(i)}));return r}function Fhe(e){const t=new Map;for(const n of yd)t.set(n,[]);for(const[n,r]of e){const i=t.get(r.group);i&&i.push(n)}for(const n of yd){const r=t.get(n);r&&r.sort((i,o)=>(e.get(i)?.title??"").localeCompare(e.get(o)?.title??""))}return t}function Vhe(e,t,n,r){const i=e.toLowerCase().trim();if(!i)return n;const o=new Map;for(const l of yd)o.set(l,[]);const a=Array.from(t.entries()).map(([l,c])=>({id:l,title:c.title,group:c.group,keybind:r(l)})),s=qh.go(i,a,{keys:["title","keybind"],threshold:-1e4});for(const l of s){const c=o.get(l.obj.group);c&&c.push(l.obj.id)}return o}function jhe(e){Wt(()=>{const t=n=>{const r=e.active();if(!r)return;if(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),n.key==="Escape"){e.stop();return}if((n.key==="Backspace"||n.key==="Delete")&&!n.ctrlKey&&!n.metaKey&&!n.altKey&&!n.shiftKey){e.set(r,"none"),e.stop();return}const o=Rhe(n);if(!o)return;const a=new Map;for(const s of E1(o))for(const l of e.used().get(s)??[])l.id!==r&&a.set(l.id,l.title);if(a.size>0){Ft({title:e.language.t("settings.shortcuts.conflict.title"),description:e.language.t("settings.shortcuts.conflict.description",{keybind:Ef(o),titles:[...a.values()].join(", ")})});return}e.set(r,o),e.stop()};document.addEventListener("keydown",t,!0),he(()=>document.removeEventListener("keydown",t,!0))})}const Bhe=()=>{const e=oy(),t=Kt(),n=Ts(),[r,i]=He({active:null,filter:""}),o=()=>{r.active&&(i("active",null),e.keybinds(!0))},a=v=>{if(r.active===v){o();return}r.active&&o(),i("active",v),e.keybinds(!1)},s=j(()=>zhe(n.current.keybinds)),l=j(()=>Object.values(s()).some(v=>typeof v=="string")),c=()=>{o(),n.keybinds.resetAll(),Ft({title:t.t("settings.shortcuts.reset.toast.title"),description:t.t("settings.shortcuts.reset.toast.description")})},d=j(()=>(t.locale(),Nhe(e,s(),t.t("command.palette")))),u=v=>d().get(v)?.title??"",h=j(()=>Fhe(d())),m=j(()=>Vhe(r.filter,d(),h(),v=>e.keybind(v)||"")),f=j(()=>{for(const v of yd)if((m().get(v)??[]).length>0)return!0;return!1}),p=j(()=>{const v=new Map,g=(w,x)=>{const L=v.get(w);if(!L){v.set(w,[x]);return}L.push(x)},k=n.keybinds.get(gl)??Mhe;for(const w of E1(k))g(w,{id:gl,title:u(gl)});const S=w=>{const x=n.keybinds.get(w);if(typeof x=="string")return x;const L=e.options.find(I=>I.id===w);return L?.keybind?L.keybind:e.catalog.find(I=>I.id===w)?.keybind};for(const w of d().keys())if(w!==gl)for(const x of E1(S(w)))g(x,{id:w,title:u(w)});return v});return jhe({active:()=>r.active,stop:o,set:(v,g)=>n.keybinds.set(v,g),used:p,language:t}),he(()=>{r.active&&e.keybinds(!0)}),(()=>{var v=The(),g=v.firstChild,k=g.firstChild,S=k.firstChild,w=S.firstChild,x=S.nextSibling,L=g.nextSibling;return P(w,()=>t.t("settings.shortcuts.title")),P(S,y(At,{size:"small",variant:"secondary",onClick:c,get disabled(){return!l()},get children(){return t.t("settings.shortcuts.reset.button")}}),null),P(x,y(Dt,{name:"magnifying-glass",class:"text-icon-weak-base flex-shrink-0"}),null),P(x,y(En,{variant:"ghost",type:"text",get value(){return r.filter},onChange:C=>i("filter",C),get placeholder(){return t.t("settings.shortcuts.search.placeholder")},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"flex-1"}),null),P(x,y(de,{get when(){return r.filter},get children(){return y(xn,{icon:"circle-x",variant:"ghost",onClick:()=>i("filter","")})}}),null),P(L,y(on,{each:yd,children:C=>y(de,{get when(){return(m().get(C)??[]).length>0},get children(){var I=Lhe(),$=I.firstChild,F=$.nextSibling;return P($,()=>t.t(Phe[C])),P(F,y(on,{get each(){return m().get(C)??[]},children:N=>(()=>{var D=Dhe(),T=D.firstChild,M=T.nextSibling;return P(T,()=>u(N)),M.$$click=()=>a(N),et(M,"data-keybind-id",N),P(M,y(de,{get when(){return r.active===N},get fallback(){return e.keybind(N)||t.t("settings.shortcuts.unassigned")},get children(){return t.t("settings.shortcuts.pressKeys")}})),Ne(R=>ln(M,{"h-8 px-3 rounded-md text-12-regular":!0,"bg-surface-base text-text-subtle hover:bg-surface-raised-base-hover active:bg-surface-raised-base-active":r.active!==N,"border border-border-weak-base bg-surface-inset-base text-text-weak":r.active===N},R)),D})()})),I}})}),null),P(L,y(de,{get when(){return Le(()=>!!r.filter)()&&!f()},get children(){var C=Ihe(),I=C.firstChild;return P(I,()=>t.t("settings.shortcuts.search.empty")),P(C,y(de,{get when(){return r.filter},get children(){var $=Ehe(),F=$.firstChild,N=F.nextSibling;return N.nextSibling,P($,()=>r.filter,N),$}}),null),C}}),null),v})()};rr(["click"]);var Hhe=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-1 pt-6 pb-8 max-w-[720px]"><h2 class="text-16-medium text-text-strong"></h2></div></div><div class="flex flex-col gap-8 max-w-[720px]"><div class="flex flex-col gap-1"data-component=connected-providers-section><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg"></div></div><div class="flex flex-col gap-1"><h3 class="text-14-medium text-text-strong pb-2"></h3><div class="bg-surface-raised-base px-4 rounded-lg"><div class="flex items-center justify-between gap-4 min-h-16 border-b border-border-weak-base last:border-none flex-wrap py-3"data-component=custom-provider-section><div class="flex flex-col min-w-0"><div class="flex flex-wrap items-center gap-x-3 gap-y-1"><span class="text-14-medium text-text-strong"></span></div><span class="text-12-regular text-text-weak pl-8">'),Uhe=Q('<div class="py-4 text-14-regular text-text-weak">'),qhe=Q('<div class="group flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex items-center gap-3 min-w-0"><span class="text-14-medium text-text-strong truncate">'),Zhe=Q('<span class="text-14-regular text-text-base opacity-0 group-hover:opacity-100 transition-opacity duration-200 pr-3 cursor-default">'),e7=Q('<span class="text-14-regular text-text-weak">'),Whe=Q('<div class="flex flex-wrap items-center justify-between gap-4 min-h-16 py-3 border-b border-border-weak-base last:border-none"><div class="flex flex-col min-w-0"><div class="flex items-center gap-x-3"><span class="text-14-medium text-text-strong">'),Ghe=Q('<span class="text-12-regular text-text-weak pl-8">');const Khe=[{match:e=>e==="opencode",key:"dialog.provider.opencode.note"},{match:e=>e==="anthropic",key:"dialog.provider.anthropic.note"},{match:e=>e.startsWith("github-copilot"),key:"dialog.provider.copilot.note"},{match:e=>e==="openai",key:"dialog.provider.openai.note"},{match:e=>e==="google",key:"dialog.provider.google.note"},{match:e=>e==="openrouter",key:"dialog.provider.openrouter.note"},{match:e=>e==="vercel",key:"dialog.provider.vercel.note"}],Jhe=()=>{const e=Ui(),t=Kt(),n=qi(),r=ar(),i=fu(),o=j(()=>i.connected().filter(f=>f.id!=="opencode"||Object.values(f.models).find(p=>p.cost?.input))),a=j(()=>{const f=new Set(o().map(b=>b.id)),p=i.popular().filter(b=>!f.has(b.id)).slice();return p.sort((b,v)=>io.indexOf(b.id)-io.indexOf(v.id)),p}),s=f=>{if(!("source"in f))return;const p=f.source;if(p==="env"||p==="api"||p==="config"||p==="custom")return p},l=f=>{const p=s(f);return p==="env"?t.t("settings.providers.tag.environment"):p==="api"?t.t("provider.connect.method.apiKey"):p==="config"?u(f.id)?t.t("settings.providers.tag.custom"):t.t("settings.providers.tag.config"):p==="custom"?t.t("settings.providers.tag.custom"):t.t("settings.providers.tag.other")},c=f=>s(f)!=="env",d=f=>Khe.find(p=>p.match(f))?.key,u=f=>{const p=r.data.config.provider?.[f];return!(!p||p.npm!=="@ai-sdk/openai-compatible"||!p.models||Object.keys(p.models).length===0)},h=async(f,p)=>{const b=r.data.config.disabled_providers??[],v=b.includes(f)?b:[...b,f];r.set("config","disabled_providers",v),await r.updateConfig({disabled_providers:v}).then(()=>{Ft({variant:"success",icon:"circle-check",title:t.t("provider.disconnect.toast.disconnected.title",{provider:p}),description:t.t("provider.disconnect.toast.disconnected.description",{provider:p})})}).catch(g=>{r.set("config","disabled_providers",b);const k=g instanceof Error?g.message:String(g);Ft({title:t.t("common.requestFailed"),description:k})})},m=async(f,p)=>{if(u(f)){await n.client.auth.remove({providerID:f}).catch(()=>{}),await h(f,p);return}await n.client.auth.remove({providerID:f}).then(async()=>{await n.client.global.dispose(),Ft({variant:"success",icon:"circle-check",title:t.t("provider.disconnect.toast.disconnected.title",{provider:p}),description:t.t("provider.disconnect.toast.disconnected.description",{provider:p})})}).catch(b=>{const v=b instanceof Error?b.message:String(b);Ft({title:t.t("common.requestFailed"),description:v})})};return(()=>{var f=Hhe(),p=f.firstChild,b=p.firstChild,v=b.firstChild,g=p.nextSibling,k=g.firstChild,S=k.firstChild,w=S.nextSibling,x=k.nextSibling,L=x.firstChild,C=L.nextSibling,I=C.firstChild,$=I.firstChild,F=$.firstChild,N=F.firstChild,D=F.nextSibling;return P(v,()=>t.t("settings.providers.title")),P(S,()=>t.t("settings.providers.section.connected")),P(w,y(de,{get when(){return o().length>0},get fallback(){return(()=>{var T=Uhe();return P(T,()=>t.t("settings.providers.connected.empty")),T})()},get children(){return y(on,{get each(){return o()},children:T=>(()=>{var M=qhe(),R=M.firstChild,G=R.firstChild;return P(R,y(cs,{get id(){return T.id},class:"size-5 shrink-0 icon-strong-base"}),G),P(G,()=>T.name),P(R,y(os,{get children(){return l(T)}}),null),P(M,y(de,{get when(){return c(T)},get fallback(){return(()=>{var K=Zhe();return P(K,()=>t.t("settings.providers.connected.environmentDescription")),K})()},get children(){return y(At,{size:"large",variant:"ghost",onClick:()=>{m(T.id,T.name)},get children(){return t.t("common.disconnect")}})}}),null),M})()})}})),P(L,()=>t.t("settings.providers.section.popular")),P(C,y(on,{get each(){return a()},children:T=>(()=>{var M=Whe(),R=M.firstChild,G=R.firstChild,K=G.firstChild;return P(G,y(cs,{get id(){return T.id},class:"size-5 shrink-0 icon-strong-base"}),K),P(K,()=>T.name),P(G,y(de,{get when(){return T.id==="opencode"},get children(){var U=e7();return P(U,()=>t.t("dialog.provider.opencode.tagline")),U}}),null),P(G,y(de,{get when(){return T.id==="opencode"},get children(){return y(os,{get children(){return t.t("dialog.provider.tag.recommended")}})}}),null),P(G,y(de,{get when(){return T.id==="opencode-go"},get children(){return[(()=>{var U=e7();return P(U,()=>t.t("dialog.provider.opencodeGo.tagline")),U})(),y(os,{get children(){return t.t("dialog.provider.tag.recommended")}})]}}),null),P(R,y(de,{get when(){return d(T.id)},children:U=>(()=>{var q=Ghe();return P(q,()=>t.t(U())),q})()}),null),P(M,y(At,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>{e.show(()=>y(vP,{get provider(){return T.id}}))},get children(){return t.t("common.connect")}}),null),M})()}),I),P(F,y(cs,{id:"synthetic",class:"size-5 shrink-0 icon-strong-base"}),N),P(N,()=>t.t("provider.custom.title")),P(F,y(os,{get children(){return t.t("settings.providers.tag.custom")}}),null),P(D,()=>t.t("settings.providers.custom.description")),P(I,y(At,{size:"large",variant:"secondary",icon:"plus-small",onClick:()=>{e.show(()=>y(bP,{back:"close"}))},get children(){return t.t("common.connect")}}),null),P(x,y(At,{variant:"ghost",class:"px-0 py-0 mt-5 text-14-medium text-text-interactive-base text-left justify-start hover:bg-transparent active:bg-transparent",onClick:()=>{e.show(()=>y(bd,{}))},get children(){return t.t("dialog.provider.viewAll")}}),null),f})()};var WP=Q('<div class="flex flex-col items-center justify-center py-12 text-center"><span class="text-14-regular text-text-weak">'),Qhe=Q('<span class="text-14-regular text-text-strong mt-1">&quot;<!>&quot;'),Xhe=Q('<div class="flex flex-col h-full overflow-y-auto no-scrollbar px-4 pb-10 sm:px-10 sm:pb-10"><div class="sticky top-0 z-10 bg-[linear-gradient(to_bottom,var(--surface-stronger-non-alpha)_calc(100%_-_24px),transparent)]"><div class="flex flex-col gap-4 pt-6 pb-6 max-w-[720px]"><h2 class="text-16-medium text-text-strong"></h2><div class="flex items-center gap-2 px-3 h-9 rounded-lg bg-surface-base"></div></div></div><div class="flex flex-col gap-8 max-w-[720px]">'),Yhe=Q('<div class="flex flex-col gap-1"><div class="flex items-center gap-2 pb-2"><span class="text-14-medium text-text-strong"></span></div><div class="bg-surface-raised-base px-4 rounded-lg">'),e0e=Q('<div class="flex flex-wrap items-center justify-between gap-4 py-3 border-b border-border-weak-base last:border-none"><div class=min-w-0><span class="text-14-regular text-text-strong truncate block"></span></div><div class=flex-shrink-0>');const t0e=e=>(()=>{var t=WP(),n=t.firstChild;return P(n,()=>e.label),t})(),n0e=e=>(()=>{var t=WP(),n=t.firstChild;return P(n,()=>e.message),P(t,y(de,{get when(){return e.filter},get children(){var r=Qhe(),i=r.firstChild,o=i.nextSibling;return o.nextSibling,P(r,()=>e.filter,o),r}}),null),t})(),r0e=()=>{const e=Kt(),t=sM(),n=uP({items:r=>t.list(),key:r=>`${r.provider.id}:${r.id}`,filterKeys:["provider.name","name","id"],sortBy:(r,i)=>r.name.localeCompare(i.name),groupBy:r=>r.provider.id,sortGroupsBy:(r,i)=>{const o=io.indexOf(r.category),a=io.indexOf(i.category),s=o>=0,l=a>=0;if(s&&!l)return-1;if(!s&&l)return 1;if(s&&l)return o-a;const c=r.items[0].provider.name,d=i.items[0].provider.name;return c.localeCompare(d)}});return(()=>{var r=Xhe(),i=r.firstChild,o=i.firstChild,a=o.firstChild,s=a.nextSibling,l=i.nextSibling;return P(a,()=>e.t("settings.models.title")),P(s,y(Dt,{name:"magnifying-glass",class:"text-icon-weak-base flex-shrink-0"}),null),P(s,y(En,{variant:"ghost",type:"text",get value(){return n.filter()},get onChange(){return n.onInput},get placeholder(){return e.t("dialog.model.search.placeholder")},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off",class:"flex-1"}),null),P(s,y(de,{get when(){return n.filter()},get children(){return y(xn,{icon:"circle-x",variant:"ghost",get onClick(){return n.clear}})}}),null),P(l,y(de,{get when(){return!n.grouped.loading},get fallback(){return y(t0e,{get label(){return`${e.t("common.loading")}${e.t("common.loading.ellipsis")}`}})},get children(){return y(de,{get when(){return n.flat().length>0},get fallback(){return y(n0e,{get message(){return e.t("dialog.model.empty")},get filter(){return n.filter()}})},get children(){return y(on,{get each(){return n.grouped.latest},children:c=>(()=>{var d=Yhe(),u=d.firstChild,h=u.firstChild,m=u.nextSibling;return P(u,y(cs,{get id(){return c.category},class:"size-5 shrink-0 icon-strong-base"}),h),P(h,()=>c.items[0].provider.name),P(m,y(on,{get each(){return c.items},children:f=>{const p={providerID:f.provider.id,modelID:f.id};return(()=>{var b=e0e(),v=b.firstChild,g=v.firstChild,k=v.nextSibling;return P(g,()=>f.name),P(k,y(eo,{get checked(){return t.visible(p)},onChange:S=>{t.setVisibility(p,S)},hideLabel:!0,get children(){return f.name}})),b})()}})),d})()})}})}})),r})()};var i0e=Q('<div class="flex flex-col justify-between h-full w-full"><div class="flex flex-col gap-3 w-full pt-3"><div class="flex flex-col gap-3"><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div><div class="flex flex-col gap-1.5"><div class="flex flex-col gap-1.5 w-full"></div></div></div></div><div class="flex flex-col gap-1 pl-1 py-1 text-12-medium text-text-weak"><span></span><span class=text-11-regular>v');const o0e=()=>{const e=Kt(),t=Er();return y(mo,{size:"x-large",transition:!0,get children(){return y(ni,{orientation:"vertical",variant:"settings",defaultValue:"general",class:"h-full settings-dialog",get children(){return[y(ni.List,{get children(){var n=i0e(),r=n.firstChild,i=r.firstChild,o=i.firstChild,a=o.firstChild,s=o.nextSibling,l=s.firstChild,c=r.nextSibling,d=c.firstChild,u=d.nextSibling;return u.firstChild,P(o,y(ni.SectionTitle,{get children(){return e.t("settings.section.desktop")}}),a),P(a,y(ni.Trigger,{value:"general",get children(){return[y(Dt,{name:"sliders"}),Le(()=>e.t("settings.tab.general"))]}}),null),P(a,y(ni.Trigger,{value:"shortcuts",get children(){return[y(Dt,{name:"keyboard"}),Le(()=>e.t("settings.tab.shortcuts"))]}}),null),P(s,y(ni.SectionTitle,{get children(){return e.t("settings.section.server")}}),l),P(l,y(ni.Trigger,{value:"providers",get children(){return[y(Dt,{name:"providers"}),Le(()=>e.t("settings.providers.title"))]}}),null),P(l,y(ni.Trigger,{value:"models",get children(){return[y(Dt,{name:"models"}),Le(()=>e.t("settings.models.title"))]}}),null),P(d,()=>e.t("app.name.desktop")),P(u,()=>t.version,null),n}}),y(ni.Content,{value:"general",class:"no-scrollbar",get children(){return y(Che,{})}}),y(ni.Content,{value:"shortcuts",class:"no-scrollbar",get children(){return y(Bhe,{})}}),y(ni.Content,{value:"providers",class:"no-scrollbar",get children(){return y(Jhe,{})}}),y(ni.Content,{value:"models",class:"no-scrollbar",get children(){return y(r0e,{})}})]}})}})},a0e=e=>typeof e!="object"||e===null?!1:"draggable"in e,t7=e=>{if(!a0e(e))return;const t=e.draggable;if(t)return typeof t.id=="string"?t.id:void 0},s0e=(e,t)=>({id:e,order:100,callback:n=>t==="x"?{...n,x:0}:{...n,y:0}}),GP=(e,t)=>()=>{const n=$s();if(!n)return null;const[,{onDragStart:r,onDragEnd:i,addTransformer:o,removeTransformer:a}]=n,s=s0e(t,e),l=Nn(c=>(r(d=>{const u=t7(d);u&&o("draggables",u,s)}),i(d=>{const u=t7(d);u&&a("draggables",u,s.id)}),c));return he(l),null},KP=GP("x","constrain-x-axis"),pve=GP("y","constrain-y-axis"),l0e="/ikanban/assets/sprite-Fb-TFjRY.svg";var c0e=Q("<svg><defs><filter color-interpolation-filters=sRGB><feFlood flood-color=currentColor result=flood></feFlood><feComposite in=flood in2=SourceAlpha operator=in></svg>",!1,!0,!1),d0e=Q("<svg data-component=file-icon><use>");let u0e=0;const n7=e=>{const[t,n]=ue(e,["node","class","classList","expanded","mono"]),r=j(()=>g0e(t.node.path,t.node.type,t.expanded||!1)),i=`file-icon-mono-${u0e++}`;return(()=>{var o=d0e(),a=o.firstChild;return nr(o,ee(n,{get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}),!0,!0),P(o,y(de,{get when(){return t.mono},get children(){var s=c0e(),l=s.firstChild;return et(l,"id",i),s}}),a),Ne(s=>{var l=`${l0e}#${r()}`,c=t.mono?`url(#${i})`:void 0;return l!==s.e&&et(a,"href",s.e=l),c!==s.t&&et(a,"filter",s.t=c),s},{e:void 0,t:void 0}),o})()},rl={fileNames:{"readme.md":"Readme","changelog.md":"Changelog","contributing.md":"Contributing","conduct.md":"Conduct",license:"Certificate",authors:"Authors",credits:"Credits",install:"Installation","package.json":"Nodejs","package-lock.json":"Nodejs","yarn.lock":"Yarn","pnpm-lock.yaml":"Pnpm","bun.lock":"Bun","bun.lockb":"Bun","bunfig.toml":"Bun",".nvmrc":"Nodejs",".node-version":"Nodejs",dockerfile:"Docker","docker-compose.yml":"Docker","docker-compose.yaml":"Docker",".dockerignore":"Docker","jest.config.js":"Jest","jest.config.ts":"Jest","jest.config.mjs":"Jest","vitest.config.js":"Vitest","vitest.config.ts":"Vitest","tailwind.config.js":"Tailwindcss","tailwind.config.ts":"Tailwindcss","turbo.json":"Turborepo","tsconfig.json":"Tsconfig","jsconfig.json":"Jsconfig",".eslintrc":"Eslint",".eslintrc.js":"Eslint",".eslintrc.json":"Eslint",".prettierrc":"Prettier",".prettierrc.js":"Prettier",".prettierrc.json":"Prettier","vite.config.js":"Vite","vite.config.ts":"Vite","webpack.config.js":"Webpack","rollup.config.js":"Rollup","astro.config.mjs":"AstroConfig","astro.config.js":"AstroConfig","next.config.js":"Next","next.config.mjs":"Next","nuxt.config.js":"Nuxt","nuxt.config.ts":"Nuxt","svelte.config.js":"Svelte","gatsby-config.js":"Gatsby","remix.config.js":"Remix","prisma.schema":"Prisma",".gitignore":"Git",".gitattributes":"Git",makefile:"Makefile",cmake:"Cmake","cargo.toml":"Rust","go.mod":"GoMod","go.sum":"GoMod","requirements.txt":"Python","pyproject.toml":"Python",pipfile:"Python","poetry.lock":"Poetry",gemfile:"Gemfile",rakefile:"Ruby","composer.json":"Php","build.gradle":"Gradle","pom.xml":"Maven","deno.json":"Deno","deno.jsonc":"Deno","vercel.json":"Vercel","netlify.toml":"Netlify",".env":"Tune",".env.local":"Tune",".env.development":"Tune",".env.production":"Tune",".env.example":"Tune",".editorconfig":"Editorconfig","robots.txt":"Robots","favicon.ico":"Favicon",browserlist:"Browserlist",".babelrc":"Babel","babel.config.js":"Babel","gulpfile.js":"Gulp","gruntfile.js":"Grunt","capacitor.config.json":"Capacitor","ionic.config.json":"Ionic","angular.json":"Angular",".storybook":"Storybook","storybook.config.js":"Storybook","cypress.config.js":"Cypress","playwright.config.js":"Playwright","puppeteer.config.js":"Puppeteer","wrangler.toml":"Wrangler","firebase.json":"Firebase",supabase:"Supabase",terraform:"Terraform",kubernetes:"Kubernetes",".gitpod.yml":"Gitpod",".devcontainer":"Vscode","travis.yml":"Travis","appveyor.yml":"Appveyor",".circleci":"Circleci","renovate.json":"Renovate","dependabot.yml":"Dependabot","lerna.json":"Lerna","nx.json":"Nx"},fileExtensions:{"spec.ts":"TestTs","test.ts":"TestTs","spec.tsx":"TestJsx","test.tsx":"TestJsx","spec.js":"TestJs","test.js":"TestJs","spec.jsx":"TestJsx","test.jsx":"TestJsx","js.map":"JavascriptMap","d.ts":"TypescriptDef",ts:"Typescript",tsx:"React_ts",js:"Javascript",jsx:"React",mjs:"Javascript",cjs:"Javascript",html:"Html",htm:"Html",css:"Css",scss:"Sass",sass:"Sass",less:"Less",styl:"Stylus",json:"Json",xml:"Xml",yml:"Yaml",yaml:"Yaml",toml:"Toml",hjson:"Hjson",md:"Markdown",mdx:"Mdx",tex:"Tex",py:"Python",pyx:"Python",pyw:"Python",rs:"Rust",go:"Go",java:"Java",kt:"Kotlin",scala:"Scala",php:"Php",rb:"Ruby",cs:"Csharp",vb:"Visualstudio",cpp:"Cpp",cc:"Cpp",cxx:"Cpp",c:"C",h:"H",hpp:"Hpp",swift:"Swift",m:"ObjectiveC",mm:"ObjectiveCpp",dart:"Dart",lua:"Lua",pl:"Perl",r:"R",jl:"Julia",hs:"Haskell",elm:"Elm",ml:"Ocaml",clj:"Clojure",cljs:"Clojure",erl:"Erlang",ex:"Elixir",exs:"Elixir",nim:"Nim",zig:"Zig",v:"Vlang",odin:"Odin",gleam:"Gleam",grain:"Grain",roc:"Rocket",fs:"Fsharp",sh:"Console",bash:"Console",zsh:"Console",fish:"Console",ps1:"Powershell",cfg:"Settings",ini:"Settings",conf:"Settings",properties:"Settings",svg:"Svg",png:"Image",jpg:"Image",jpeg:"Image",gif:"Image",webp:"Image",bmp:"Image",ico:"Favicon",mp4:"Video",mov:"Video",avi:"Video",webm:"Video",mp3:"Audio",wav:"Audio",flac:"Audio",zip:"Zip",tar:"Zip",gz:"Zip",rar:"Zip","7z":"Zip",pdf:"Pdf",doc:"Word",docx:"Word",ppt:"Powerpoint",pptx:"Powerpoint",xls:"Document",xlsx:"Document",sql:"Database",db:"Database",sqlite:"Database",env:"Tune",log:"Log",lock:"Lock",key:"Key",pem:"Certificate",crt:"Certificate",proto:"Proto",graphql:"Graphql",gql:"Graphql",wasm:"Webassembly",dockerfile:"Docker"},folderNames:{src:"FolderSrc",source:"FolderSrc",lib:"FolderLib",libs:"FolderLib",test:"FolderTest",tests:"FolderTest",testing:"FolderTest",spec:"FolderTest",specs:"FolderTest",__tests__:"FolderTest",e2e:"FolderTest",integration:"FolderTest",unit:"FolderTest",cypress:"FolderCypress",node_modules:"FolderNode",vendor:"FolderPackages",packages:"FolderPackages",deps:"FolderPackages",build:"FolderBuildkite",dist:"FolderDist",out:"FolderDist",output:"FolderDist",target:"FolderTarget",config:"FolderConfig",configs:"FolderConfig",configuration:"FolderConfig",settings:"FolderConfig",env:"FolderEnvironment",environments:"FolderEnvironment",docker:"FolderDocker",dockerfiles:"FolderDocker",containers:"FolderDocker",docs:"FolderDocs",doc:"FolderDocs",documentation:"FolderDocs",readme:"FolderDocs",public:"FolderPublic",static:"FolderPublic",assets:"FolderImages",images:"FolderImages",img:"FolderImages",icons:"FolderImages",media:"FolderImages",fonts:"FolderFont",styles:"FolderCss",stylesheets:"FolderCss",css:"FolderCss",sass:"FolderSass",scss:"FolderSass",less:"FolderLess",scripts:"FolderScripts",script:"FolderScripts",tools:"FolderTools",utils:"FolderUtils",utilities:"FolderUtils",helpers:"FolderHelper",components:"FolderComponents",component:"FolderComponents",views:"FolderViews",view:"FolderViews",layouts:"FolderLayout",layout:"FolderLayout",templates:"FolderTemplate",template:"FolderTemplate",hooks:"FolderHook",hook:"FolderHook",store:"FolderStore",stores:"FolderStore",state:"FolderNgrxStore",reducers:"FolderReduxReducer",reducer:"FolderReduxReducer",services:"FolderApi",service:"FolderApi",api:"FolderApi",apis:"FolderApi",routes:"FolderRoutes",route:"FolderRoutes",routing:"FolderRoutes",middleware:"FolderMiddleware",middlewares:"FolderMiddleware",controllers:"FolderController",controller:"FolderController",models:"FolderDatabase",model:"FolderDatabase",schemas:"FolderDatabase",schema:"FolderDatabase",migrations:"FolderDatabase",migration:"FolderDatabase",seeders:"FolderSeeders",seeder:"FolderSeeders",types:"FolderTypescript",typing:"FolderTypescript",typings:"FolderTypescript","@types":"FolderTypescript",interfaces:"FolderInterface",interface:"FolderInterface",android:"FolderAndroid",ios:"FolderIos",mobile:"FolderMobile",flutter:"FolderFlutter",kubernetes:"FolderKubernetes",k8s:"FolderKubernetes",terraform:"FolderTerraform",aws:"FolderAws",azure:"FolderAzurePipelines",firebase:"FolderFirebase",supabase:"FolderSupabase",vercel:"FolderVercel",netlify:"FolderNetlify",".github":"FolderGithub",".gitlab":"FolderGitlab",".circleci":"FolderCircleci",ci:"FolderCi",".ci":"FolderCi",workflows:"FolderGhWorkflows",".git":"FolderGit",".vscode":"FolderVscode",".idea":"FolderIntellij",".cursor":"FolderCursor",".devcontainer":"FolderContainer",".storybook":"FolderStorybook",i18n:"FolderI18n",locales:"FolderI18n",locale:"FolderI18n",lang:"FolderI18n",languages:"FolderI18n",temp:"FolderTemp",tmp:"FolderTemp",logs:"FolderLog",log:"FolderLog",backup:"FolderBackup",backups:"FolderBackup",examples:"FolderExamples",example:"FolderExamples",demo:"FolderExamples",demos:"FolderExamples",samples:"FolderExamples",sample:"FolderExamples",fixtures:"FolderTest",mocks:"FolderMock",mock:"FolderMock",data:"FolderDatabase",database:"FolderDatabase",db:"FolderDatabase",sql:"FolderDatabase",prisma:"FolderPrisma",drizzle:"FolderDrizzle",security:"FolderSecure",auth:"FolderSecure",authentication:"FolderSecure",authorization:"FolderSecure",keys:"FolderKeys",certs:"FolderKeys",certificates:"FolderKeys",content:"FolderContent",posts:"FolderContent",articles:"FolderContent",blog:"FolderContent",functions:"FolderFunctions",function:"FolderFunctions",lambda:"FolderFunctions",lambdas:"FolderFunctions",serverless:"FolderServerless",jobs:"FolderJob",job:"FolderJob",tasks:"FolderTasks",task:"FolderTasks",cron:"FolderTasks",queue:"FolderQueue",queues:"FolderQueue",desktop:"FolderDesktop",windows:"FolderWindows",macos:"FolderMacos",linux:"FolderLinux"},defaults:{file:"Document",folder:"Folder",folderOpen:"FolderOpen"}},f0e=e=>e.startsWith("Folder")?e.endsWith("_light")?e.replace("_light","Open_light"):e.endsWith("Open")?e:e+"Open":e,h0e=e=>e.split("\\").join("/").split("/").filter(Boolean).pop()??"",m0e=e=>{const t=e.toLowerCase();return[t,`.${t}`,`_${t}`,`__${t}__`]},p0e=e=>{const t=e.toLowerCase(),n=[];for(let i=0;i<t.length;i++)t[i]==="."&&n.push(i);const r=new Set;r.add(t);for(const i of n)i+1<t.length&&r.add(t.slice(i+1));return Array.from(r).sort((i,o)=>o.length-i.length)};function g0e(e,t,n){const i=h0e(e).toLowerCase();if(t==="directory"){for(const a of m0e(i)){const s=rl.folderNames[a];if(s)return n?f0e(s):s}return n?rl.defaults.folderOpen:rl.defaults.folder}const o=rl.fileNames[i];if(o)return o;for(const a of p0e(i)){const s=rl.fileExtensions[a];if(s)return s}return rl.defaults.file}var v0e=Q('<div class="w-full flex items-center justify-between rounded-md"><div class="flex items-center gap-x-3 grow min-w-0"><div class="flex items-center text-14-regular min-w-0"><span class="text-text-strong whitespace-nowrap">~</span><span class="text-text-weak whitespace-nowrap">/'),b0e=Q('<div class="w-full flex items-center justify-between rounded-md"><div class="flex items-center gap-x-3 grow min-w-0"><div class="flex items-center text-14-regular min-w-0"><span class="text-text-weak whitespace-nowrap overflow-hidden overflow-ellipsis truncate min-w-0"></span><span class="text-text-strong whitespace-nowrap"></span><span class="text-text-weak whitespace-nowrap">/');function JP(e){return((e??"").split(/\r?\n/)[0]??"").replace(/[\u0000-\u001F\u007F]/g,"").trim()}function y0e(e){const t=e.replaceAll("\\","/");return t.startsWith("//")&&!t.startsWith("///")?"//"+t.slice(2).replace(/\/+/g,"/"):t.replace(/\/+/g,"/")}function as(e){const t=y0e(e);return/^[A-Za-z]:$/.test(t)?t+"/":t}function yr(e){const t=as(e);return t==="/"||t==="//"||/^[A-Za-z]:\/$/.test(t)?t:t.replace(/\/+$/,"")}function w0e(e,t){const n=yr(e??""),r=yr(t).replace(/^\/+/,"");return n?r?n.endsWith("/")?n+r:n+"/"+r:n:r}function I1(e){const t=as(e);return t.startsWith("//")?"//":t.startsWith("/")?"/":/^[A-Za-z]:\//.test(t)?t.slice(0,3):""}function k0e(e){const t=yr(e);if(t==="/"||t==="//"||/^[A-Za-z]:\/$/.test(t))return t;const n=t.lastIndexOf("/");return n<=0?"/":n===2&&/^[A-Za-z]:/.test(t)?t.slice(0,3):t.slice(0,n)}function x0e(e){const t=as(e.trim());return t?t.startsWith("~")?"tilde":I1(t)?"absolute":"relative":"relative"}function QP(e,t){const n=yr(e);if(!t)return"";const r=yr(t),i=n.toLowerCase(),o=r.toLowerCase();return i===o?"~":i.startsWith(o+"/")?"~"+n.slice(r.length):""}function r7(e,t,n){const r=yr(e);return x0e(t)==="absolute"?r:QP(r,n)||r}function i7(e,t,n){const r=yr(e),i=QP(r,t),o=s=>s?s.endsWith("/")?s:s+"/":"",a=Array.from(new Set([r,o(r),i,o(i),$n(r)].filter(Boolean))).join(`
2393
2393
  `);return{absolute:r,search:a,group:n}}function S0e(e){const t=new Set;return e.filter(n=>t.has(n.absolute)?!1:(t.add(n.absolute),!0))}function _0e(e){const t=new Map;let n=0;const r=a=>{const s=e.start();if(!s)return;const l=as(a);if(!l)return{directory:yr(s),path:""};const c=e.home();if(l==="~")return{directory:yr(c||s),path:""};if(l.startsWith("~/"))return{directory:yr(c||s),path:l.slice(2)};const d=I1(l);return d?{directory:yr(d),path:l.slice(d.length)}:{directory:yr(s),path:l}},i=async a=>{const s=yr(a),l=t.get(s);if(l)return l;const c=e.sdk.client.file.list({directory:s,path:""}).then(d=>d.data??[]).catch(()=>[]).then(d=>d.filter(u=>u.type==="directory").map(u=>({name:u.name,absolute:yr(as(u.absolute))})));return t.set(s,c),c},o=async(a,s,l)=>{const c=await i(a);return s?qh.go(s,c,{key:"name",limit:l}).map(d=>d.obj.absolute):c.slice(0,l).map(d=>d.absolute)};return async a=>{const s=++n,l=()=>s===n,c=JP(a),d=r(c);if(!d)return[];const u=as(c),h=u.startsWith("~")||!!I1(u)||u.includes("/"),m=as(d.path),f=()=>e.sdk.client.find.files({directory:d.directory,query:m,type:"directory",limit:50}).then(T=>T.data??[]).catch(()=>[]);if(!h){const T=await f();return l()?T.map(M=>w0e(d.directory,M)).slice(0,50):[]}const p=m.replace(/^\/+/,"").split("/"),b=p.slice(0,p.length-1).filter(T=>T&&T!=="."),v=p[p.length-1]??"",g=12,k=4;let S=[d.directory];for(const T of b){if(!l())return[];if(T===".."){S=S.map(k0e);continue}const M=(await Promise.all(S.map(R=>o(R,T,k)))).flat();if(!l())return[];if(S=Array.from(new Set(M)).slice(0,g),S.length===0)return[]}const w=(await Promise.all(S.map(T=>o(T,v,50)))).flat();if(!l())return[];const x=Array.from(new Set(w)),L=u.startsWith("~")?yr(d.directory):"";if(!!u.endsWith("/")||!v)return(L?Array.from(new Set([L,...x])):x).slice(0,50);const I=v.toLowerCase(),F=x.filter(T=>$n(T).toLowerCase()===I)[0];if(!F)return x.slice(0,50);const N=await o(F,"",30);if(!l())return[];const D=Array.from(new Set([...x,...N]));return(L?Array.from(new Set([L,...D])):D).slice(0,50)}}function A0e(e){const t=ar(),n=qi(),r=Ms(),i=Ui(),o=Kt(),[a,s]=me("");let l;const c=j(()=>!(t.data.path.home||t.data.path.directory)),[d]=Ss(()=>c()?!0:void 0,async()=>n.client.path.get().then(v=>v.data).catch(()=>{}),{initialValue:void 0}),u=j(()=>t.data.path.home||d()?.home||""),h=j(()=>t.data.path.home||t.data.path.directory||d()?.home||d()?.directory),m=_0e({sdk:n,home:u,start:h}),f=j(()=>{const v=r.projects.list(),g=new Map;for(const k of v){let S=0;const w=[k.worktree,...k.sandboxes??[]];for(const x of w){const L=t.child(x,{bootstrap:!1})[0].session;for(const C of L){if(C.time.archived)continue;const I=C.time.updated??C.time.created;I>S&&(S=I)}}g.set(k.worktree,S)}return v.map((k,S)=>({project:k,at:g.get(k.worktree)??0,index:S})).sort((k,S)=>S.at-k.at||k.index-S.index).slice(0,5).map(({project:k})=>{const S=i7(k.worktree,u(),"recent"),w=k.name||$n(k.worktree);return{...S,search:`${S.search}
2394
2394
  ${w}`}})}),p=async v=>{const k=(await m(v)).map(S=>i7(S,u(),"folders"));return S0e([...f(),...k])};function b(v){e.onSelect(e.multiple?[v]:v),i.close()}return y(mo,{get title(){return e.title??o.t("command.project.open")},get children(){return y(Jm,{get search(){return{placeholder:o.t("dialog.directory.search.placeholder"),autofocus:!0}},get emptyMessage(){return o.t("dialog.directory.empty")},get loadingMessage(){return o.t("common.loading")},items:p,key:v=>v.absolute,filterKeys:["search"],groupBy:v=>v.group,sortGroupsBy:(v,g)=>v.category===g.category?0:v.category==="recent"?-1:1,groupHeader:v=>v.category==="recent"?o.t("home.recentProjects"):o.t("command.project.open"),ref:v=>l=v,onFilter:v=>s(JP(v)),onKeyEvent:(v,g)=>{if(v.key!=="Tab"||v.shiftKey||!g)return;v.preventDefault(),v.stopPropagation();const k=r7(g.absolute,a(),u());l?.setFilter(k.endsWith("/")?k:k+"/")},onSelect:v=>{v&&b(v.absolute)},children:v=>{const g=r7(v.absolute,a(),u());return g==="~"?(()=>{var k=v0e(),S=k.firstChild,w=S.firstChild;return P(S,y(n7,{get node(){return{path:v.absolute,type:"directory"}},class:"shrink-0 size-4"}),w),k})():(()=>{var k=b0e(),S=k.firstChild,w=S.firstChild,x=w.firstChild,L=x.nextSibling;return P(S,y(n7,{get node(){return{path:v.absolute,type:"directory"}},class:"shrink-0 size-4"}),w),P(x,()=>SY(g)),P(L,()=>$n(g)),k})()}})}})}var C0e=Q("<div>"),E0e=Q("<img data-slot=avatar-image>");const o7=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):void 0;function I0e(e){return e?o7?o7.segment(e)[Symbol.iterator]().next().value?.segment??Array.from(e)[0]??"":Array.from(e)[0]??"":""}function T1(e){const[t,n]=ue(e,["fallback","src","background","foreground","size","class","classList","style"]),r=t.src;return(()=>{var i=C0e();return nr(i,ee(n,{"data-component":"avatar",get"data-size"(){return t.size||"normal"},"data-has-image":r?"":void 0,get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get style(){return{...typeof t.style=="object"?t.style:{},...!r&&t.background?{"--avatar-bg":t.background}:{},...!r&&t.foreground?{"--avatar-fg":t.foreground}:{}}}}),!1,!0),P(i,y(de,{when:r,get fallback(){return I0e(t.fallback)},children:o=>(()=>{var a=E0e();return et(a,"draggable",!1),Ne(()=>et(a,"src",o())),a})()})),i})()}var T0e=Q('<img class="size-full object-cover">'),L0e=Q('<div class="flex flex-col gap-2"><label class="text-12-medium text-text-weak"></label><div class="flex gap-1.5">'),D0e=Q('<form class="flex flex-col gap-6 p-6 pt-0"><div class="flex flex-col gap-4"><div class="flex flex-col gap-2"><label class="text-12-medium text-text-weak"></label><div class="flex gap-3 items-start"><div class=relative><div class="relative size-16 rounded-md transition-colors cursor-pointer"></div><div class="absolute inset-0 size-16 bg-surface-raised-stronger-non-alpha/90 rounded-[6px] z-10 pointer-events-none flex items-center justify-center transition-opacity"></div><div class="absolute inset-0 size-16 bg-surface-raised-stronger-non-alpha/90 rounded-[6px] z-10 pointer-events-none flex items-center justify-center transition-opacity"></div></div><input id=icon-upload type=file accept=image/* class=hidden><div class="flex flex-col gap-1.5 text-12-regular text-text-weak self-center"><span></span><span></span></div></div></div></div><div class="flex justify-end gap-2">'),M0e=Q('<div class="size-full flex items-center justify-center">'),P0e=Q("<button type=button>");const O0e=["pink","mint","orange","purple","cyan","lime"];function $0e(e){const t=Ui(),n=qi(),r=ar(),i=Kt(),o=j(()=>$n(e.project.worktree)),a=j(()=>e.project.name||o()),[s,l]=He({name:a(),color:e.project.icon?.color||"pink",iconUrl:e.project.icon?.override||"",startup:e.project.commands?.start??"",saving:!1,dragOver:!1,iconHover:!1});let c;function d(v){if(!v.type.startsWith("image/"))return;const g=new FileReader;g.onload=k=>{l("iconUrl",k.target?.result),l("iconHover",!1)},g.readAsDataURL(v)}function u(v){v.preventDefault(),l("dragOver",!1);const g=v.dataTransfer?.files[0];g&&d(g)}function h(v){v.preventDefault(),l("dragOver",!0)}function m(){l("dragOver",!1)}function f(v){const k=v.target.files?.[0];k&&d(k)}function p(){l("iconUrl","")}async function b(v){v.preventDefault(),await Promise.resolve().then(async()=>{l("saving",!0);const g=s.name.trim()===o()?"":s.name.trim(),k=s.startup.trim();if(e.project.id&&e.project.id!=="global"){await n.client.project.update({projectID:e.project.id,directory:e.project.worktree,name:g,icon:{color:s.color,override:s.iconUrl},commands:{start:k}}),r.project.icon(e.project.worktree,s.iconUrl||void 0),t.close();return}r.project.meta(e.project.worktree,{name:g,icon:{color:s.color,override:s.iconUrl||void 0},commands:{start:k||void 0}}),t.close()}).finally(()=>{l("saving",!1)})}return y(mo,{get title(){return i.t("dialog.project.edit.title")},class:"w-full max-w-[480px] mx-auto",get children(){var v=D0e(),g=v.firstChild,k=g.firstChild,S=k.firstChild,w=S.nextSibling,x=w.firstChild,L=x.firstChild,C=L.nextSibling,I=C.nextSibling,$=x.nextSibling,F=$.nextSibling,N=F.firstChild,D=N.nextSibling,T=g.nextSibling;return v.addEventListener("submit",b),P(g,y(En,{autofocus:!0,type:"text",get label(){return i.t("dialog.project.edit.name")},get placeholder(){return o()},get value(){return s.name},onChange:M=>l("name",M)}),k),P(S,()=>i.t("dialog.project.edit.icon")),x.addEventListener("mouseleave",()=>l("iconHover",!1)),x.addEventListener("mouseenter",()=>l("iconHover",!0)),L.$$click=()=>{s.iconUrl&&s.iconHover?p():c?.click()},L.addEventListener("dragleave",m),L.addEventListener("dragover",h),L.addEventListener("drop",u),P(L,y(de,{get when(){return s.iconUrl},get fallback(){return(()=>{var M=M0e();return P(M,y(T1,ee({get fallback(){return s.name||a()}},()=>r1(s.color),{class:"size-full text-[32px]"}))),M})()},get children(){var M=T0e();return Ne(R=>{var G=s.iconUrl,K=i.t("dialog.project.edit.icon.alt");return G!==R.e&&et(M,"src",R.e=G),K!==R.t&&et(M,"alt",R.t=K),R},{e:void 0,t:void 0}),M}})),P(C,y(Dt,{name:"cloud-upload",size:"large",class:"text-icon-on-interactive-base drop-shadow-sm"})),P(I,y(Dt,{name:"trash",size:"large",class:"text-icon-on-interactive-base drop-shadow-sm"})),$.addEventListener("change",f),or(M=>{c=M},$),P(N,()=>i.t("dialog.project.edit.icon.hint")),P(D,()=>i.t("dialog.project.edit.icon.recommended")),P(g,y(de,{get when(){return!s.iconUrl},get children(){var M=L0e(),R=M.firstChild,G=R.nextSibling;return P(R,()=>i.t("dialog.project.edit.color")),P(G,y(on,{each:O0e,children:K=>(()=>{var U=P0e();return U.$$click=()=>l("color",K),P(U,y(T1,ee({get fallback(){return s.name||a()}},()=>r1(K),{class:"size-full rounded"}))),Ne(q=>{var X=i.t("dialog.project.edit.color.select",{color:K}),le=s.color===K,_e={"flex items-center justify-center size-10 p-0.5 rounded-lg overflow-hidden transition-colors cursor-default":!0,"bg-transparent border-2 border-icon-strong-base hover:bg-surface-base-hover":s.color===K,"bg-transparent border border-transparent hover:bg-surface-base-hover hover:border-border-weak-base":s.color!==K};return X!==q.e&&et(U,"aria-label",q.e=X),le!==q.t&&et(U,"aria-pressed",q.t=le),q.a=ln(U,_e,q.a),q},{e:void 0,t:void 0,a:void 0}),U})()})),M}}),null),P(g,y(En,{multiline:!0,get label(){return i.t("dialog.project.edit.worktree.startup")},get description(){return i.t("dialog.project.edit.worktree.startup.description")},get placeholder(){return i.t("dialog.project.edit.worktree.startup.placeholder")},get value(){return s.startup},onChange:M=>l("startup",M),spellcheck:!1,class:"max-h-14 w-full overflow-y-auto font-mono text-xs"}),null),P(T,y(At,{type:"button",variant:"ghost",size:"large",onClick:()=>t.close(),get children(){return i.t("common.cancel")}}),null),P(T,y(At,{type:"submit",variant:"primary",size:"large",get disabled(){return s.saving},get children(){return Le(()=>!!s.saving)()?i.t("common.saving"):i.t("common.save")}}),null),Ne(M=>{var R={"border-text-interactive-base bg-surface-info-base/20":s.dragOver,"border-border-base hover:border-border-strong":!s.dragOver,"overflow-hidden":!!s.iconUrl},G=!!(s.iconHover&&!s.iconUrl),K=!(s.iconHover&&!s.iconUrl),U=!!(s.iconHover&&s.iconUrl),q=!(s.iconHover&&s.iconUrl);return M.e=ln(L,R,M.e),G!==M.t&&C.classList.toggle("opacity-100",M.t=G),K!==M.a&&C.classList.toggle("opacity-0",M.a=K),U!==M.o&&I.classList.toggle("opacity-100",M.o=U),q!==M.i&&I.classList.toggle("opacity-0",M.i=q),M},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),v}})}rr(["click"]);const $4=100;function R0e(e,t,n=$4){if(!e.stack.length){const i=t==="/"?["/"]:["/",t];return{stack:i,index:i.length-1,action:void 0}}const r=e.stack[e.index];return t===r?e.action?{...e,action:void 0}:e:e.action?{...e,action:void 0}:z0e(e,t,n)}function z0e(e,t,n=$4){const r=e.stack.slice(0,e.index+1).concat(t),i=N0e(r,r.length-1,n);return{...e,...i,action:void 0}}function N0e(e,t,n=$4){if(e.length<=n)return{stack:e,index:t};const r=e.length-n;return{stack:e.slice(r),index:Math.max(0,t-r)}}function F0e(e){if(e.index<=0)return;const t=e.index-1,n=e.stack[t];if(n)return{state:{...e,index:t,action:"back"},to:n}}function V0e(e){if(e.index>=e.stack.length-1)return;const t=e.index+1,n=e.stack[t];if(n)return{state:{...e,index:t,action:"forward"},to:n}}var j0e=Q('<div class="h-full shrink-0">'),B0e=Q('<div class="xl:hidden w-10 shrink-0 flex items-center justify-center">'),H0e=Q('<div class="xl:hidden w-[48px] shrink-0 flex items-center justify-center">'),U0e=Q('<div class="relative flex items-center justify-center size-4 [&amp;>*]:absolute [&amp;>*]:inset-0">'),q0e=Q('<div class="w-6 shrink-0">'),Z0e=Q('<div data-tauri-decorum-tb class="flex flex-row">'),W0e=Q('<header class="h-10 shrink-0 bg-background-base relative grid grid-cols-[auto_minmax(0,1fr)_auto] items-center"><div><div class="flex items-center gap-1 shrink-0"><div class="hidden xl:flex items-center shrink-0"><div class="flex items-center gap-0"></div></div></div><div id=opencode-titlebar-left class="flex items-center gap-3 min-w-0 px-2"></div></div><div class="min-w-0 flex items-center justify-center pointer-events-none"><div id=opencode-titlebar-center class="pointer-events-auto w-full min-w-0 flex justify-center lg:w-fit"></div></div><div><div id=opencode-titlebar-right class="flex items-center gap-1 shrink-0 justify-end">');const XP=()=>window.__TAURI__,G0e=()=>XP()?.window?.getCurrentWindow?.(),K0e=()=>XP()?.webviewWindow?.getCurrentWebviewWindow?.();function J0e(){const e=Ms(),t=Er(),n=oy(),r=Kt(),i=ty(),o=Ra(),a=iy(),s=Jr(),l=j(()=>t.platform==="desktop"&&t.os==="macos"),c=j(()=>t.platform==="desktop"&&t.os==="windows"),d=j(()=>t.platform==="web"),u=()=>t.webviewZoom?.()??1,h=()=>l()?`${40/u()}px`:void 0,[m,f]=He({stack:[],index:0,action:void 0}),p=()=>`${a.pathname}${a.search}${a.hash}`;se(()=>{const C=p();nt(()=>{const I=R0e(m,C);I!==m&&f(I)})});const b=j(()=>m.index>0),v=j(()=>m.index<m.stack.length-1),g=()=>{const C=F0e(m);C&&(f(C.state),o(C.to))},k=()=>{const C=V0e(m);C&&(f(C.state),o(C.to))};n.register(()=>[{id:"common.goBack",title:r.t("common.goBack"),category:r.t("command.category.view"),keybind:"mod+[",onSelect:g},{id:"common.goForward",title:r.t("common.goForward"),category:r.t("command.category.view"),keybind:"mod+]",onSelect:k}]);const S=()=>{if(t.platform==="desktop")return G0e()};se(()=>{if(t.platform!=="desktop")return;const C=i.colorScheme(),I=C==="system"?null:C,$=K0e();$?.setTheme&&$.setTheme(I).catch(()=>{})});const w=C=>C instanceof Element?!!C.closest("button, a, input, textarea, select, option, [role='button'], [role='menuitem'], [contenteditable='true'], [contenteditable='']"):!1,x=C=>{if(t.platform!=="desktop"||C.buttons!==1||w(C.target))return;const I=S();I?.startDragging&&(C.preventDefault(),I.startDragging().catch(()=>{}))},L=C=>{if(t.platform!=="desktop"||w(C.target)||C.target instanceof Element&&C.target.closest("[data-tauri-decorum-tb]"))return;const I=S();I?.toggleMaximize&&(C.preventDefault(),I.toggleMaximize().catch(()=>{}))};return(()=>{var C=W0e(),I=C.firstChild,$=I.firstChild,F=$.firstChild,N=F.firstChild,D=I.nextSibling,T=D.nextSibling;return T.firstChild,C.$$dblclick=L,C.$$mousedown=x,P(I,y(de,{get when(){return l()},get children(){return[(()=>{var M=j0e();return Ne(R=>zi(M,"width",`${72/u()}px`)),M})(),(()=>{var M=B0e();return P(M,y(xn,{icon:"menu",variant:"ghost",class:"titlebar-icon rounded-md",get onClick(){return e.mobileSidebar.toggle},get"aria-label"(){return r.t("sidebar.menu.toggle")},get"aria-expanded"(){return e.mobileSidebar.opened()}})),M})()]}}),$),P(I,y(de,{get when(){return!l()},get children(){var M=H0e();return P(M,y(xn,{icon:"menu",variant:"ghost",class:"titlebar-icon rounded-md",get onClick(){return e.mobileSidebar.toggle},get"aria-label"(){return r.t("sidebar.menu.toggle")},get"aria-expanded"(){return e.mobileSidebar.opened()}})),M}}),$),P($,y(gd,{get class(){return d()?"hidden xl:flex shrink-0 ml-14":"hidden xl:flex shrink-0 ml-2"},placement:"bottom",get title(){return r.t("command.sidebar.toggle")},get keybind(){return n.keybind("sidebar.toggle")},get children(){return y(At,{variant:"ghost",class:"group/sidebar-toggle titlebar-icon w-8 h-6 p-0 box-border",get onClick(){return e.sidebar.toggle},get"aria-label"(){return r.t("command.sidebar.toggle")},get"aria-expanded"(){return e.sidebar.opened()},get children(){var M=U0e();return P(M,y(Dt,{size:"small",get name(){return e.sidebar.opened()?"layout-left-partial":"layout-left"},class:"group-hover/sidebar-toggle:hidden"}),null),P(M,y(Dt,{size:"small",name:"layout-left-partial",class:"hidden group-hover/sidebar-toggle:inline-block"}),null),P(M,y(Dt,{size:"small",get name(){return e.sidebar.opened()?"layout-left":"layout-left-partial"},class:"hidden group-active/sidebar-toggle:inline-block"}),null),M}})}}),F),P(F,y(de,{get when(){return s.dir},get children(){return y(gd,{placement:"bottom",get title(){return r.t("command.session.new")},get keybind(){return n.keybind("session.new")},openDelay:2e3,get children(){return y(At,{variant:"ghost",icon:"new-session",class:"titlebar-icon w-8 h-6 p-0 box-border",onClick:()=>{s.dir&&o(`/${s.dir}/session`)},get"aria-label"(){return r.t("command.session.new")}})}})}}),N),P(N,y(_r,{placement:"bottom",get value(){return r.t("common.goBack")},openDelay:2e3,get children(){return y(At,{variant:"ghost",icon:"chevron-left",class:"titlebar-icon w-6 h-6 p-0 box-border",get disabled(){return!b()},onClick:g,get"aria-label"(){return r.t("common.goBack")}})}}),null),P(N,y(_r,{placement:"bottom",get value(){return r.t("common.goForward")},openDelay:2e3,get children(){return y(At,{variant:"ghost",icon:"chevron-right",class:"titlebar-icon w-6 h-6 p-0 box-border",get disabled(){return!v()},onClick:k,get"aria-label"(){return r.t("common.goForward")}})}}),null),T.$$mousedown=x,P(T,y(de,{get when(){return c()},get children(){return[q0e(),Z0e()]}}),null),Ne(M=>{var R=h(),G={"flex items-center min-w-0":!0,"pl-2":!l()},K=!!s.dir,U={"flex items-center min-w-0 justify-end":!0,"pr-2":!c()};return R!==M.e&&zi(C,"min-height",M.e=R),M.t=ln(I,G,M.t),K!==M.a&&N.classList.toggle("ml-1",M.a=K),M.o=ln(T,U,M.o),M},{e:void 0,t:void 0,a:void 0,o:void 0}),C})()}rr(["mousedown","dblclick"]);const sn=e=>{const t=e.match(/^([A-Za-z]:)[\\/]+$/);return t?`${t[1]}${e.includes("\\")?"\\":"/"}`:/^[\\/]+$/.test(e)?e.includes("\\")?"\\":"/":e.replace(/[\\/]+$/,"")};function YP(e){const t=e-6e4;return(n,r)=>{const i=n.time.updated??n.time.created,o=r.time.updated??r.time.created,a=i>t,s=o>t;return a&&s?n.id<r.id?-1:n.id>r.id?1:0:a&&!s?-1:!a&&s?1:o-i}}const eO=(e,t)=>sn(e.directory)===sn(t)&&!e.parentID&&!e.time?.archived,wd=(e,t)=>e.session.filter(n=>eO(n,e.path.directory)).sort(YP(t)),a7=(e,t)=>e.flatMap(n=>n.session.filter(r=>eO(r,n.path.directory))).sort(YP(t))[0];function Q0e(e,t=()=>!0){return Object.values(e).some(n=>n?.some(t))}const Wh=e=>{const t=new Map;for(const n of e){if(!n.parentID)continue;const r=t.get(n.parentID);if(r){r.push(n.id);continue}t.set(n.parentID,[n.id])}return t};function s7(e){if(typeof e!="object"||e===null||!("draggable"in e))return;const t=e.draggable;if(t)return typeof t.id=="string"?t.id:void 0}const R4=e=>e.name||$n(e.worktree),$g=(e,t)=>{if(e&&typeof e=="object"&&"data"in e){const n=e.data;if(n?.message)return n.message}return e instanceof Error?e.message:t},hf=(e,t,n)=>{const r=sn(e),i=new Map;for(const a of t){const s=sn(a);s!==r&&(i.has(s)||i.set(s,a))}if(!n?.length)return[e,...i.values()];const o=[e];for(const a of n){const s=sn(a);if(s===r)continue;const l=i.get(s);l&&(o.push(l),i.delete(s))}return[...o,...i.values()]},l7="opencode:deep-link",X0e=e=>{if(!e.startsWith("opencode://")||typeof URL.canParse=="function"&&!URL.canParse(e))return;const t=(()=>{try{return new URL(e)}catch{return}})();if(!t||t.hostname!=="open-project")return;const n=t.searchParams.get("directory");if(n)return n},Y0e=e=>e.map(X0e).filter(t=>!!t),eme=e=>{const t=e.__OPENCODE__?.deepLinks??[];return t.length===0?[]:(e.__OPENCODE__&&(e.__OPENCODE__.deepLinks=[]),t)};var tme=Q("<input data-component=inline-input>");function nme(e){const[t,n]=ue(e,["class","width","style"]),r=()=>t.style?typeof t.style=="string"?t.width?`${t.style};width:${t.width}`:t.style:t.width?{...t.style,width:t.width}:t.style:{width:t.width};return(()=>{var i=tme();return nr(i,ee({get class(){return t.class},get style(){return r()}},n),!1,!1),i})()}var rme=Q("<span>");function ime(){const[e,t]=He({active:"",value:""}),n=c=>e.active===c,r=()=>e.value,i=(c,d)=>{c&&t({active:c,value:d})},o=()=>t({active:"",value:""}),a=c=>{const d=e.value.trim();if(!d){o();return}o(),c(d)},s=(c,d)=>{if(c.key==="Enter"){c.preventDefault(),a(d);return}c.key==="Escape"&&(c.preventDefault(),o())};return{editor:e,editorOpen:n,editorValue:r,openEditor:i,closeEditor:o,saveEditor:a,editorKeyDown:s,setEditor:t,InlineEditor:c=>{let d;he(()=>{d!==void 0&&cancelAnimationFrame(d)});const u=()=>c.editing??n(c.id),h=()=>c.stopPropagation??!1,m=()=>c.openOnDblClick??!0,f=b=>{h()&&b.stopPropagation()},p=b=>{m()&&(f(b),i(c.id,c.value()))};return y(de,{get when(){return u()},get fallback(){return(()=>{var b=rme();return b.$$touchstart=f,b.$$click=f,b.$$mousedown=f,b.$$pointerdown=f,b.$$dblclick=p,P(b,()=>c.value()),Ne(()=>zo(b,c.displayClass??c.class)),b})()},get children(){return y(nme,{ref:b=>{d!==void 0&&cancelAnimationFrame(d),d=requestAnimationFrame(()=>{d=void 0,b.isConnected&&b.focus()})},get value(){return r()},get class(){return c.class},onInput:b=>t("value",b.currentTarget.value),onKeyDown:b=>{b.stopPropagation(),s(b,c.onSave)},onBlur:o,onPointerDown:f,onClick:f,onDblClick:f,onMouseDown:f,onMouseUp:f,onTouchStart:f})}})}}}rr(["dblclick","pointerdown","mousedown","click","touchstart"]);var ome={};Ar(ome,{Collapsible:()=>np,Content:()=>nO,Root:()=>rO,Trigger:()=>iO,useCollapsibleContext:()=>z4});var tO=Ct();function z4(){const e=yt(tO);if(e===void 0)throw new Error("[kobalte]: `useCollapsibleContext` must be used within a `Collapsible.Root` component");return e}function nO(e){const[t,n]=me(),r=z4(),i=Be({id:r.generateId("content")},e),[o,a]=ue(i,["ref","id","style"]),{present:s}=Uo({show:r.shouldMount,element:()=>t()??null}),[l,c]=me(0),[d,u]=me(0);let m=r.isOpen()||s();return Wt(()=>{const f=requestAnimationFrame(()=>{m=!1});he(()=>{cancelAnimationFrame(f)})}),se(Ht(s,()=>{if(!t())return;t().style.transitionDuration="0s",t().style.animationName="none";const f=t().getBoundingClientRect();c(f.height),u(f.width),m||(t().style.transitionDuration="",t().style.animationName="")})),se(Ht(r.isOpen,f=>{!f&&t()&&(t().style.transitionDuration="",t().style.animationName="")},{defer:!0})),se(()=>he(r.registerContentId(o.id))),y(de,{get when(){return s()},get children(){return y(We,ee({as:"div",ref(f){var p=kt(n,o.ref);typeof p=="function"&&p(f)},get id(){return o.id},get style(){return Pr({"--kb-collapsible-content-height":l()?`${l()}px`:void 0,"--kb-collapsible-content-width":d()?`${d()}px`:void 0},o.style)}},()=>r.dataset(),a))}})}function rO(e){const t=`collapsible-${cn()}`,n=Be({id:t},e),[r,i]=ue(n,["open","defaultOpen","onOpenChange","disabled","forceMount"]),[o,a]=me(),s=Ma({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:d=>r.onOpenChange?.(d)}),l=j(()=>({"data-expanded":s.isOpen()?"":void 0,"data-closed":s.isOpen()?void 0:"","data-disabled":r.disabled?"":void 0})),c={dataset:l,isOpen:s.isOpen,disabled:()=>r.disabled??!1,shouldMount:()=>r.forceMount||s.isOpen(),contentId:o,toggle:s.toggle,generateId:Or(()=>i.id),registerContentId:In(a)};return y(tO.Provider,{value:c,get children(){return y(We,ee({as:"div"},l,i))}})}function iO(e){const t=z4(),[n,r]=ue(e,["onClick"]);return y(Pa,ee({get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return Le(()=>!!t.isOpen())()?t.contentId():void 0},get disabled(){return t.disabled()},onClick:o=>{Ve(o,n.onClick),t.toggle()}},()=>t.dataset(),r))}var np=Object.assign(rO,{Content:nO,Trigger:iO}),ame=Q("<div data-slot=collapsible-arrow><span data-slot=collapsible-arrow-icon>");function sme(e){const[t,n]=ue(e,["class","classList","variant"]);return y(np,ee({"data-component":"collapsible",get"data-variant"(){return t.variant||"normal"},get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}},n))}function lme(e){return y(np.Trigger,ee({"data-slot":"collapsible-trigger"},e))}function cme(e){return y(np.Content,ee({"data-slot":"collapsible-content"},e))}function dme(e){return(()=>{var t=ame(),n=t.firstChild;return nr(t,e||{},!1,!0),P(n,y(Dt,{name:"chevron-down",size:"small"})),t})()}const Rg=Object.assign(sme,{Arrow:dme,Trigger:lme,Content:cme});var ume=Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 18 14"fill=none><g>'),fme=Q("<span data-slot=diff-changes-additions>"),hme=Q("<span data-slot=diff-changes-deletions>"),mme=Q("<div data-component=diff-changes>"),pme=Q("<svg><rect width=2 height=14 rx=1></svg>",!1,!0,!1);function oO(e){const t=()=>e.variant??"default",n=j(()=>Array.isArray(e.changes)?e.changes.reduce((d,u)=>d+(u.additions??0),0):e.changes.additions),r=j(()=>Array.isArray(e.changes)?e.changes.reduce((d,u)=>d+(u.deletions??0),0):e.changes.deletions),i=j(()=>(n()??0)+(r()??0)),o=j(()=>{const u=n()??0,h=r()??0;if(u===0&&h===0)return{added:0,deleted:0,neutral:5};const m=u+h;if(m<5){const C=u>0?1:0,I=h>0?1:0,$=5-C-I;return{added:C,deleted:I,neutral:$}}const f=u>h?u/h:h/u;let p=5;(m<20||f<4)&&(p=4);const b=u/m,v=h/m,g=b*p,k=v*p;let S=u>0?Math.max(1,Math.round(g)):0,w=h>0?Math.max(1,Math.round(k)):0;u>0&&u<=5&&(S=Math.min(S,1)),u>5&&u<=10&&(S=Math.min(S,2)),h>0&&h<=5&&(w=Math.min(w,1)),h>5&&h<=10&&(w=Math.min(w,2));let x=S+w;x>p&&(g>k?S=p-w:w=p-S,x=S+w);const L=Math.max(0,5-x);return{added:S,deleted:w,neutral:L}}),a="var(--icon-diff-add-base)",s="var(--icon-diff-delete-base)",l="var(--icon-weak-base)",c=j(()=>{const d=o();return[...Array(d.added).fill(a),...Array(d.deleted).fill(s),...Array(d.neutral).fill(l)].slice(0,5)});return y(de,{get when(){return Le(()=>t()==="default")()?i()>0:!0},get children(){var d=mme();return P(d,y(Ur,{get children(){return[y(Ot,{get when(){return t()==="bars"},get children(){var u=ume(),h=u.firstChild;return P(h,y(on,{get each(){return c()},children:(m,f)=>(()=>{var p=pme();return et(p,"fill",m),Ne(()=>et(p,"x",f()*4)),p})()})),u}}),y(Ot,{get when(){return t()==="default"},get children(){return[(()=>{var u=fme();return P(u,()=>`+${n()}`),u})(),(()=>{var u=hme();return P(u,()=>`-${r()}`),u})()]}})]}})),Ne(u=>{var h=t(),m={[e.class??""]:!0};return h!==u.e&&et(d,"data-variant",u.e=h),u.t=ln(d,m,u.t),u},{e:void 0,t:void 0}),d}})}var gme={};Ar(gme,{Link:()=>vme,Root:()=>N4});function N4(e){let t;const[n,r]=ue(e,["ref","href","disabled"]),i=Td(()=>t,()=>"a");return y(We,ee({as:"a",ref(o){var a=kt(s=>t=s,n.ref);typeof a=="function"&&a(o)},get role(){return i()!=="a"||n.disabled?"link":void 0},get tabIndex(){return i()!=="a"&&!n.disabled?0:void 0},get href(){return Le(()=>!n.disabled)()?n.href:void 0},get"aria-disabled"(){return n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?"":void 0}},r))}var vme=N4,bme={};Ar(bme,{Arrow:()=>Wi,Content:()=>sO,HoverCard:()=>Oc,Portal:()=>lO,Root:()=>cO,Trigger:()=>dO,useHoverCardContext:()=>rp});var aO=Ct();function rp(){const e=yt(aO);if(e===void 0)throw new Error("[kobalte]: `useHoverCardContext` must be used within a `HoverCard` component");return e}function sO(e){const t=rp(),[n,r]=ue(e,["ref","style"]);return y(de,{get when(){return t.contentPresent()},get children(){return y(Fa.Positioner,{get children(){return y(Id,ee({ref(i){var o=kt(a=>{t.setContentRef(a)},n.ref);typeof o=="function"&&o(i)},disableOutsidePointerEvents:!1,get style(){return Pr({"--kb-hovercard-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},n.style)},onFocusOutside:i=>i.preventDefault(),get onDismiss(){return t.close}},()=>t.dataset(),r))}})}})}function lO(e){const t=rp();return y(de,{get when(){return t.contentPresent()},get children(){return y(Da,e)}})}function yme(e,t,n){const r=e.split("-")[0],i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=[],s=i.left+i.width/2,l=i.top+i.height/2;switch(r){case"top":a.push([i.left,l]),a.push([o.left,o.bottom]),a.push([o.left,o.top]),a.push([o.right,o.top]),a.push([o.right,o.bottom]),a.push([i.right,l]);break;case"right":a.push([s,i.top]),a.push([o.left,o.top]),a.push([o.right,o.top]),a.push([o.right,o.bottom]),a.push([o.left,o.bottom]),a.push([s,i.bottom]);break;case"bottom":a.push([i.left,l]),a.push([o.left,o.top]),a.push([o.left,o.bottom]),a.push([o.right,o.bottom]),a.push([o.right,o.top]),a.push([i.right,l]);break;case"left":a.push([s,i.top]),a.push([o.right,o.top]),a.push([o.left,o.top]),a.push([o.left,o.bottom]),a.push([o.right,o.bottom]),a.push([s,i.bottom]);break}return a}function cO(e){const t=`hovercard-${cn()}`,n=Be({id:t,openDelay:700,closeDelay:300},e),[r,i]=ue(n,["id","open","defaultOpen","onOpenChange","openDelay","closeDelay","ignoreSafeArea","forceMount"]);let o,a;const[s,l]=me(),[c,d]=me(),[u,h]=me(i.placement),m=Ma({open:()=>r.open,defaultOpen:()=>r.defaultOpen,onOpenChange:$=>r.onOpenChange?.($)}),{present:f}=Uo({show:()=>r.forceMount||m.isOpen(),element:()=>c()??null}),{addGlobalListener:p,removeGlobalListener:b}=yH(),v=()=>{o=window.setTimeout(()=>{o=void 0,m.open()},r.openDelay)},g=()=>{a=window.setTimeout(()=>{a=void 0,m.close()},r.closeDelay)},k=()=>{window.clearTimeout(o),o=void 0},S=()=>{window.clearTimeout(a),a=void 0},w=$=>zn(s(),$)||zn(c(),$),x=$=>{const F=s(),N=c();if(!(!F||!N))return yme($,F,N)},L=$=>{const F=$.target;if(w(F)){S();return}if(!r.ignoreSafeArea){const N=x(u());if(N&&ab(i9($),N)){S();return}}a||g()};se(()=>{m.isOpen()&&(p(document,"pointermove",L,!0),he(()=>{b(document,"pointermove",L,!0)}))}),he(()=>{k(),S()});const I={dataset:j(()=>({"data-expanded":m.isOpen()?"":void 0,"data-closed":m.isOpen()?void 0:""})),isOpen:m.isOpen,contentPresent:f,openWithDelay:v,closeWithDelay:g,cancelOpening:k,cancelClosing:S,close:m.close,isTargetOnHoverCard:w,setTriggerRef:l,setContentRef:d};return y(aO.Provider,{value:I,get children(){return y(Fa,ee({anchorRef:s,contentRef:c,onCurrentPlacementChange:h},i))}})}function dO(e){const t=rp(),[n,r]=ue(e,["ref","onPointerEnter","onPointerLeave","onFocus","onBlur"]),i=l=>{Ve(l,n.onPointerEnter),!(l.pointerType==="touch"||r.disabled||l.defaultPrevented)&&(t.cancelClosing(),t.isOpen()||t.openWithDelay())},o=l=>{Ve(l,n.onPointerLeave),l.pointerType!=="touch"&&t.cancelOpening()},a=l=>{Ve(l,n.onFocus),!(r.disabled||l.defaultPrevented)&&(t.cancelClosing(),t.isOpen()||t.openWithDelay())},s=l=>{Ve(l,n.onBlur),t.cancelOpening();const c=l.relatedTarget;t.isTargetOnHoverCard(c)||t.closeWithDelay()};return he(t.cancelOpening),y(N4,ee({ref(l){var c=kt(t.setTriggerRef,n.ref);typeof c=="function"&&c(l)},onPointerEnter:i,onPointerLeave:o,onFocus:a,onBlur:s},()=>t.dataset(),r))}var Oc=Object.assign(cO,{Arrow:Wi,Content:sO,Portal:lO,Trigger:dO}),wme=Q("<div data-slot=hover-card-body>");function uO(e){const[t,n]=ue(e,["trigger","mount","class","classList","children"]);return y(Oc,ee({gutter:4},n,{get children(){return[y(Oc.Trigger,{as:"div","data-slot":"hover-card-trigger",get children(){return t.trigger}}),y(Oc.Portal,{get mount(){return t.mount},get children(){return y(Oc.Content,{"data-component":"hover-card-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){var r=wme();return P(r,()=>t.children),r}})}})]}}))}var kme=Q("<ul role=list data-component=message-nav>"),xme=Q("<div data-slot=message-nav-tick-button role=button tabindex=0><div data-slot=message-nav-tick-line>"),Sme=Q("<button data-slot=message-nav-message-button><div data-slot=message-nav-title-preview>"),_me=Q("<li data-slot=message-nav-item>"),Ame=Q("<div data-slot=message-nav-tooltip-content>");function fO(e){const t=Wl(),[n,r]=ue(e,["messages","current","size","onMessageSelect","getLabel"]),i=()=>(()=>{var o=kme();return nr(o,ee({get"data-size"(){return n.size}},r),!1,!0),P(o,y(on,{get each(){return n.messages},children:a=>{const s=()=>n.onMessageSelect(a),l=c=>{c.key!=="Enter"&&c.key!==" "||(c.preventDefault(),n.onMessageSelect(a))};return(()=>{var c=_me();return P(c,y(Ur,{get children(){return[y(Ot,{get when(){return n.size==="compact"},get children(){var d=xme();return d.$$keydown=l,d.$$click=s,Ne(()=>et(d,"data-active",a.id===n.current?.id||void 0)),d}}),y(Ot,{get when(){return n.size==="normal"},get children(){var d=Sme(),u=d.firstChild;return d.$$keydown=l,d.$$click=s,P(d,y(oO,{get changes(){return a.summary?.diffs??[]},variant:"bars"}),u),P(u,y(de,{get when(){return n.getLabel?.(a)??a.summary?.title},get fallback(){return t.t("ui.messageNav.newMessage")},get children(){return n.getLabel?.(a)??a.summary?.title}})),Ne(()=>et(u,"data-active",a.id===n.current?.id||void 0)),d}})]}})),c})()}})),o})();return y(Ur,{get children(){return[y(Ot,{get when(){return n.size==="compact"},get children(){return y(Ro,{openDelay:0,closeDelay:300,placement:"right-start",gutter:-40,shift:-10,overlap:!0,get children(){return[y(Ro.Trigger,{as:"div",get children(){return i()}}),y(Ro.Portal,{get children(){return y(Ro.Content,{"data-slot":"message-nav-tooltip",get children(){var o=Ame();return P(o,y(fO,ee(e,{size:"normal",class:""}))),o}})}})]}})}}),y(Ot,{get when(){return n.size==="normal"},get children(){return i()}})]}})}rr(["click","keydown"]);const c7={ask:"var(--icon-agent-ask-base)",build:"var(--icon-agent-build-base)",docs:"var(--icon-agent-docs-base)",plan:"var(--icon-agent-plan-base)"};function Cme(e,t){return t||(c7[e]??c7[e.toLowerCase()])}function hO(e,t,n,r=()=>!0){if(!n)return;const i=e.reduce((l,c)=>{if(!c.parentID)return l;const d=l.get(c.parentID);return d&&d.push(c.id),d||l.set(c.parentID,[c.id]),l},new Map),o=new Set([n]),a=[n];for(const l of a){const c=i.get(l);if(c)for(const d of c)o.has(d)||(o.add(d),a.push(d))}const s=a.find(l=>t[l]?.some(r));if(s)return t[s]?.find(r)}function Eme(e,t,n,r){return hO(e,t,n,r)}function gve(e,t,n,r){return hO(e,t,n,r)}var Ime=Q("<div>"),Tme=Q('<div><div class="size-full rounded overflow-clip">'),Lme=Q('<div class="size-1.5 rounded-full bg-surface-warning-strong">'),Dme=Q('<div class="size-1.5 rounded-full bg-text-diff-delete-base">'),Mme=Q('<div class="size-1.5 rounded-full bg-text-interactive-base">'),mO=Q('<div class="flex items-center gap-1 w-full"><div class="shrink-0 size-6 flex items-center justify-center"></div><span class="text-14-regular text-text-strong grow-1 min-w-0 overflow-hidden text-ellipsis truncate">'),Pme=Q('<div class="group-hover/session:hidden group-active/session:hidden group-focus-within/session:hidden">'),Ome=Q('<div class="overflow-y-auto overflow-x-hidden max-h-72 h-full">'),$me=Q('<div class="text-12-regular text-text-weak">'),Rme=Q('<div class="group/session relative w-full rounded-md cursor-default transition-colors pl-2 pr-3 hover:bg-surface-raised-base-hover [&amp;:has(:focus-visible)]:bg-surface-raised-base-hover has-[[data-expanded]]:bg-surface-raised-base-hover has-[.active]:bg-surface-base-active"><div>'),zme=Q('<div class="group/session relative w-full rounded-md cursor-default transition-colors pl-2 pr-3 hover:bg-surface-raised-base-hover [&amp;:has(:focus-visible)]:bg-surface-raised-base-hover has-[.active]:bg-surface-base-active">'),Nme=Q('<div class="flex flex-col gap-1">'),Fme=Q('<div class="h-8 w-full rounded-md bg-surface-raised-base opacity-60 animate-pulse">');const Vme="4b0ea68d7af9a6031a7ffda7ad66e0cb83315750",pO=e=>{const t=ar(),n=_m(),r=g4(),i=j(()=>[e.project.worktree,...e.project.sandboxes??[]]),o=j(()=>i().reduce((d,u)=>d+n.project.unseenCount(u),0)),a=j(()=>i().some(d=>n.project.unseenHasError(d))),s=j(()=>i().some(d=>{const[u]=t.child(d,{bootstrap:!1});return Q0e(u.permission,h=>!r.autoResponds(h,d))})),l=j(()=>e.notify&&(s()||o()>0)),c=j(()=>e.project.name||$n(e.project.worktree));return(()=>{var d=Tme(),u=d.firstChild;return P(u,y(T1,ee({get fallback(){return c()},get src(){return Le(()=>e.project.id===Vme)()?"https://opencode.ai/favicon.svg":e.project.icon?.override}},()=>r1(e.project.icon?.color),{class:"size-full rounded",get classList(){return{"badge-mask":l()}}}))),P(d,y(de,{get when(){return l()},get children(){var h=Ime();return Ne(m=>ln(h,{"absolute top-px right-px size-1.5 rounded-full z-10":!0,"bg-surface-warning-strong":s(),"bg-icon-critical-base":!s()&&a(),"bg-text-interactive-base":!s()&&!a()},m)),h}}),null),Ne(()=>zo(d,`relative size-8 shrink-0 rounded ${e.class??""}`)),d})()},jme=e=>y(v_,{get href(){return`/${e.slug}/session/${e.session.id}`},get class(){return`flex items-center justify-between gap-3 min-w-0 text-left w-full focus:outline-none transition-[padding] ${e.mobile?"pr-7":""} group-hover/session:pr-7 group-focus-within/session:pr-7 group-active/session:pr-7 ${e.dense?"py-0.5":"py-1"}`},get onPointerEnter(){return e.scheduleHoverPrefetch},get onPointerLeave(){return e.cancelHoverPrefetch},get onMouseEnter(){return e.scheduleHoverPrefetch},get onMouseLeave(){return e.cancelHoverPrefetch},onFocus:()=>e.prefetchSession(e.session,"high"),onClick:()=>{e.setHoverSession(void 0),!e.sidebarOpened()&&e.clearHoverProjectSoon()},get children(){var t=mO(),n=t.firstChild,r=n.nextSibling;return P(n,y(Ur,{get fallback(){return y(Dt,{name:"dash",size:"small",class:"text-icon-weak"})},get children(){return[y(Ot,{get when(){return e.isWorking()},get children(){return y(Zh,{class:"size-[15px]"})}}),y(Ot,{get when(){return e.hasPermissions()},get children(){return Lme()}}),y(Ot,{get when(){return e.hasError()},get children(){return Dme()}}),y(Ot,{get when(){return e.unseenCount()>0},get children(){return Mme()}})]}})),P(r,()=>e.session.title),P(t,y(de,{get when(){return e.session.summary},children:i=>(()=>{var o=Pme();return P(o,y(oO,{get changes(){return i()}})),o})()}),null),Ne(i=>zi(n,"color",e.tint()??"var(--icon-interactive-base)")),t}}),Bme=e=>y(uO,{openDelay:1e3,get closeDelay(){return e.sidebarHovering()?600:0},placement:"right-start",gutter:16,shift:-2,get trigger(){return e.trigger},get mount(){return Le(()=>!e.mobile)()?e.nav():void 0},get open(){return e.hoverSession()===e.session.id},onOpenChange:t=>e.setHoverSession(t?e.session.id:void 0),get children(){return y(de,{get when(){return e.hoverReady()},get fallback(){return(()=>{var t=$me();return P(t,()=>e.language.t("session.messages.loading")),t})()},get children(){var t=Ome();return P(t,y(fO,{get messages(){return e.hoverMessages()??[]},current:void 0,get getLabel(){return e.messageLabel},get onMessageSelect(){return e.onMessageSelect},size:"normal",class:"w-60"})),t}})}}),Gh=e=>{const t=Jr(),n=Ra(),r=Ms(),i=Kt(),o=_m(),a=g4(),s=ar(),l=j(()=>o.session.unseenCount(e.session.id)),c=j(()=>o.session.unseenHasError(e.session.id)),[d]=s.child(e.session.directory),u=j(()=>!!Eme(d.session,d.permission,e.session.id,C=>!a.autoResponds(C,e.session.directory))),h=j(()=>{if(u())return!1;const C=d.session_status[e.session.id];return C?.type==="busy"||C?.type==="retry"}),m=j(()=>{const C=d.message[e.session.id];if(!C)return;let I;for(let F=C.length-1;F>=0;F--){const N=C[F];if(N.role==="user"){I=N;break}}if(!I?.agent)return;const $=d.agent.find(F=>F.name===I.agent);return Cme(I.agent,$?.color)}),f=j(()=>d.message[e.session.id]?.filter(C=>C.role==="user")),p=j(()=>d.message[e.session.id]!==void 0),b=j(()=>!e.mobile&&e.sidebarExpanded()),v=j(()=>(e.popover??!0)&&b()),g=j(()=>e.session.id===t.id),k={current:void 0},S=()=>{k.current!==void 0&&(clearTimeout(k.current),k.current=void 0)},w=()=>{k.current===void 0&&(k.current=setTimeout(()=>{k.current=void 0,e.prefetchSession(e.session)},200))};he(S);const x=C=>(d.part[C.id]??[]).find(F=>F?.type==="text"&&!F.synthetic&&!F.ignored)?.text,L=y(jme,{get session(){return e.session},get slug(){return e.slug},get mobile(){return e.mobile},get dense(){return e.dense},tint:m,isWorking:h,hasPermissions:u,hasError:c,unseenCount:l,get setHoverSession(){return e.setHoverSession},get clearHoverProjectSoon(){return e.clearHoverProjectSoon},get sidebarOpened(){return r.sidebar.opened},get prefetchSession(){return e.prefetchSession},scheduleHoverPrefetch:w,cancelHoverPrefetch:S});return(()=>{var C=Rme(),I=C.firstChild;return P(C,y(de,{get when(){return v()},get fallback(){return y(_r,{get placement(){return e.mobile?"bottom":"right"},get value(){return e.session.title},gutter:10,children:L})},get children(){return y(Bme,{get mobile(){return e.mobile},get nav(){return e.nav},get hoverSession(){return e.hoverSession},get session(){return e.session},get sidebarHovering(){return e.sidebarHovering},hoverReady:p,hoverMessages:f,language:i,isActive:g,get slug(){return e.slug},get setHoverSession(){return e.setHoverSession},messageLabel:x,onMessageSelect:$=>{if(!g()){r.pendingMessage.set(`${It(e.session.directory)}/${e.session.id}`,$.id),n(`${e.slug}/session/${e.session.id}`);return}window.history.replaceState(null,"",`#message-${$.id}`),window.dispatchEvent(new HashChangeEvent("hashchange"))},trigger:L})}}),I),P(I,y(_r,{get value(){return i.t("common.archive")},placement:"top",get children(){return y(xn,{icon:"archive",variant:"ghost",class:"size-6 rounded-md",get"aria-label"(){return i.t("common.archive")},onClick:$=>{$.preventDefault(),$.stopPropagation(),e.archiveSession(e.session)}})}})),Ne($=>{var F=e.session.id,N=`absolute ${e.dense?"top-0.5 right-0.5":"top-1 right-1"} flex items-center gap-0.5 transition-opacity`,D={"opacity-100 pointer-events-auto":!!e.mobile,"opacity-0 pointer-events-none":!e.mobile,"group-hover/session:opacity-100 group-hover/session:pointer-events-auto":!0,"group-focus-within/session:opacity-100 group-focus-within/session:pointer-events-auto":!0};return F!==$.e&&et(C,"data-session-id",$.e=F),N!==$.t&&zo(I,$.t=N),$.a=ln(I,D,$.a),$},{e:void 0,t:void 0,a:void 0}),C})()},Hme=e=>{const t=Ms(),r=Kt().t("command.session.new"),i=()=>e.mobile||!e.sidebarExpanded(),o=y(v_,{get href(){return`/${e.slug}/session`},end:!0,get class(){return`flex items-center justify-between gap-3 min-w-0 text-left w-full focus:outline-none ${e.dense?"py-0.5":"py-1"}`},onClick:()=>{e.setHoverSession(void 0),!t.sidebar.opened()&&e.clearHoverProjectSoon()},get children(){var a=mO(),s=a.firstChild,l=s.nextSibling;return P(s,y(Dt,{name:"plus-small",size:"small",class:"text-icon-weak"})),P(l,r),a}});return(()=>{var a=zme();return P(a,y(de,{get when(){return!i()},get fallback(){return y(_r,{get placement(){return e.mobile?"bottom":"right"},value:r,gutter:10,children:o})},children:o})),a})()},gO=e=>{const t=Array.from({length:e.count??4},(n,r)=>r);return(()=>{var n=Nme();return P(n,y(on,{each:t,children:()=>Fme()})),n})()};var Ume=Q('<div class="bg-background-base rounded-md px-2 py-1 text-14-medium text-text-strong">'),qme=Q('<div class="flex items-center gap-1 min-w-0 flex-1"><div class="flex items-center justify-center shrink-0 size-6"></div><span class="text-14-medium text-text-base shrink-0"> :</span><div class="flex items-center justify-center shrink-0 overflow-hidden w-0 opacity-0 transition-all duration-200 group-hover/workspace:w-3.5 group-hover/workspace:opacity-100 group-focus-within/workspace:w-3.5 group-focus-within/workspace:opacity-100">'),Zme=Q('<span class="text-14-medium text-text-base min-w-0 truncate">'),Wme=Q('<div class="absolute right-1 top-1/2 -translate-y-1/2 flex items-center gap-0.5 transition-opacity">'),vO=Q('<div class="relative w-full py-1">'),Gme=Q('<nav class="flex flex-col gap-1 px-2">'),d7=Q("<div>"),Kme=Q('<div class="px-2 py-1"><div class="group/workspace relative"data-component=workspace-item><div class="flex items-center gap-1">'),Jme=Q('<div class="size-full flex flex-col py-2 overflow-y-auto no-scrollbar [overflow-anchor:none]"><nav class="flex flex-col gap-1 px-2">');const Qme=e=>{const t=ar(),n=Kt(),r=j(()=>{const i=e.sidebarProject();if(!i)return;const o=e.activeWorkspace();if(!o)return;const[a]=t.child(o,{bootstrap:!1}),s=o===i.worktree?n.t("workspace.type.local"):n.t("workspace.type.sandbox"),l=e.workspaceLabel(o,a.vcs?.branch,i.id);return`${s} : ${l}`});return y(de,{get when(){return r()},children:i=>(()=>{var o=Ume();return P(o,i),o})()})},u7=e=>(()=>{var t=qme(),n=t.firstChild,r=n.nextSibling,i=r.firstChild,o=r.nextSibling;return P(n,y(de,{get when(){return e.busy()},get fallback(){return y(Dt,{name:"branch",size:"small"})},get children(){return y(Zh,{class:"size-[15px]"})}})),P(r,(()=>{var a=Le(()=>!!e.local());return()=>a()?e.language.t("workspace.type.local"):e.language.t("workspace.type.sandbox")})(),i),P(t,y(de,{get when(){return!e.local()},get fallback(){return(()=>{var a=Zme();return P(a,()=>e.branch()??$n(e.directory)),a})()},get children(){return y(e.InlineEditor,{get id(){return`workspace:${e.directory}`},get value(){return e.workspaceValue},onSave:a=>{const s=a.trim();s&&(e.renameWorkspace(e.directory,s,e.projectId,e.branch()),e.setEditor("value",e.workspaceValue()))},class:"text-14-medium text-text-base min-w-0 truncate",displayClass:"text-14-medium text-text-base min-w-0 truncate",get editing(){return e.workspaceEditActive()},stopPropagation:!1,openOnDblClick:!1})}}),o),P(o,y(Dt,{get name(){return e.open()?"chevron-down":"chevron-right"},size:"small",class:"text-icon-base"})),t})(),Xme=e=>(()=>{var t=Wme();return P(t,y(St,{get modal(){return!e.sidebarHovering()},get open(){return e.menuOpen()},onOpenChange:n=>e.setMenuOpen(n),get children(){return[y(_r,{get value(){return e.language.t("common.moreOptions")},placement:"top",get children(){return y(St.Trigger,{as:xn,icon:"dot-grid",variant:"ghost",class:"size-6 rounded-md","data-action":"workspace-menu",get"data-workspace"(){return It(e.directory)},get"aria-label"(){return e.language.t("common.moreOptions")}})}}),y(St.Portal,{get mount(){return Le(()=>!e.mobile)()?e.nav():void 0},get children(){return y(St.Content,{onCloseAutoFocus:n=>{e.pendingRename()&&(n.preventDefault(),e.setPendingRename(!1),e.openEditor(`workspace:${e.directory}`,e.workspaceValue()))},get children(){return[y(St.Item,{get disabled(){return e.local()},onSelect:()=>{e.setPendingRename(!0),e.setMenuOpen(!1)},get children(){return y(St.ItemLabel,{get children(){return e.language.t("common.rename")}})}}),y(St.Item,{get disabled(){return e.local()||e.busy()},onSelect:()=>e.showResetWorkspaceDialog(e.root,e.directory),get children(){return y(St.ItemLabel,{get children(){return e.language.t("common.reset")}})}}),y(St.Item,{get disabled(){return e.local()||e.busy()},onSelect:()=>e.showDeleteWorkspaceDialog(e.root,e.directory),get children(){return y(St.ItemLabel,{get children(){return e.language.t("common.delete")}})}})]}})}})]}}),null),P(t,y(de,{get when(){return!e.touch()},get children(){return y(_r,{get value(){return e.language.t("command.session.new")},placement:"top",get children(){return y(xn,{icon:"plus-small",variant:"ghost",class:"size-6 rounded-md opacity-0 pointer-events-none group-hover/workspace:opacity-100 group-hover/workspace:pointer-events-auto group-focus-within/workspace:opacity-100 group-focus-within/workspace:pointer-events-auto","data-action":"workspace-new-session",get"data-workspace"(){return It(e.directory)},get"aria-label"(){return e.language.t("command.session.new")},onClick:n=>{n.preventDefault(),n.stopPropagation(),e.setHoverSession(void 0),e.clearHoverProjectSoon(),e.navigateToNewSession()}})}})}}),null),Ne(n=>ln(t,{"opacity-100 pointer-events-auto":e.menuOpen(),"opacity-0 pointer-events-none":!e.menuOpen(),"group-hover/workspace:opacity-100 group-hover/workspace:pointer-events-auto":!0,"group-focus-within/workspace:opacity-100 group-focus-within/workspace:pointer-events-auto":!0},n)),t})(),Yme=e=>(()=>{var t=Gme();return P(t,y(de,{get when(){return e.showNew()},get children(){return y(Hme,{get slug(){return e.slug()},get mobile(){return e.mobile},get sidebarExpanded(){return e.ctx.sidebarExpanded},get clearHoverProjectSoon(){return e.ctx.clearHoverProjectSoon},get setHoverSession(){return e.ctx.setHoverSession}})}}),null),P(t,y(de,{get when(){return e.loading()},get children(){return y(gO,{})}}),null),P(t,y(on,{get each(){return e.sessions()},children:n=>y(Gh,{session:n,get slug(){return e.slug()},get mobile(){return e.mobile},get children(){return e.children()},get sidebarExpanded(){return e.ctx.sidebarExpanded},get sidebarHovering(){return e.ctx.sidebarHovering},get nav(){return e.ctx.nav},get hoverSession(){return e.ctx.hoverSession},get setHoverSession(){return e.ctx.setHoverSession},get clearHoverProjectSoon(){return e.ctx.clearHoverProjectSoon},get prefetchSession(){return e.ctx.prefetchSession},get archiveSession(){return e.ctx.archiveSession}})}),null),P(t,y(de,{get when(){return e.hasMore()},get children(){var n=vO();return P(n,y(At,{variant:"ghost",class:"flex w-full text-left justify-start text-14-regular text-text-weak pl-9 pr-10",size:"large",onClick:r=>{e.loadMore(),r.currentTarget.blur()},get children(){return e.language.t("common.loadMore")}})),n}}),null),t})(),epe=e=>{const t=Ra(),n=Jr(),r=ar(),i=Kt(),o=dP(e.directory),[a,s]=r.child(e.directory,{bootstrap:!1}),[l,c]=He({open:!1,pendingRename:!1}),d=j(()=>It(e.directory)),u=j(()=>wd(a,e.sortNow())),h=j(()=>Wh(a.session)),m=j(()=>e.directory===e.project.worktree),f=j(()=>e.ctx.currentDir()===e.directory),p=j(()=>{const N=a.vcs?.branch,D=N??$n(e.directory);return e.ctx.workspaceName(e.directory,e.project.id,N)??D}),b=j(()=>e.ctx.workspaceExpanded(e.directory,m())),v=j(()=>b()||f()),g=j(N=>N||a.status==="complete",!1),k=j(()=>a.sessionTotal>u().length),S=j(()=>e.ctx.isBusy(e.directory)),w=j(N=>N||S(),!1),x=j(()=>b()&&!g()&&u().length===0&&!w()),L=J8("(hover: none)"),C=j(()=>!x()&&(L()||u().length===0||f()&&!n.id)),I=async()=>{s("limit",N=>(N??0)+5),await r.project.loadSessions(e.directory)},$=j(()=>e.ctx.editorOpen(`workspace:${e.directory}`)),F=N=>{e.ctx.setWorkspaceExpanded(e.directory,N),!N&&e.ctx.editorOpen(`workspace:${e.directory}`)&&e.ctx.closeEditor()};return se(()=>{v()&&r.child(e.directory,{bootstrap:!0})}),(()=>{var N=d7();return or(o,N,()=>!0),P(N,y(Rg,{variant:"ghost",get open(){return b()},class:"shrink-0",onOpenChange:F,get children(){return[(()=>{var D=Kme(),T=D.firstChild,M=T.firstChild;return P(M,y(de,{get when(){return $()},get fallback(){return y(Rg.Trigger,{get class(){return`flex items-center justify-between w-full pl-2 py-1.5 rounded-md hover:bg-surface-raised-base-hover transition-[padding] duration-200 ${l.open?"pr-16":"pr-2"} group-hover/workspace:pr-16 group-focus-within/workspace:pr-16`},"data-action":"workspace-toggle",get"data-workspace"(){return It(e.directory)},get children(){return y(u7,{local:m,busy:S,open:b,get directory(){return e.directory},language:i,branch:()=>a.vcs?.branch,workspaceValue:p,workspaceEditActive:$,get InlineEditor(){return e.ctx.InlineEditor},get renameWorkspace(){return e.ctx.renameWorkspace},get setEditor(){return e.ctx.setEditor},get projectId(){return e.project.id}})}})},get children(){var R=d7();return P(R,y(u7,{local:m,busy:S,open:b,get directory(){return e.directory},language:i,branch:()=>a.vcs?.branch,workspaceValue:p,workspaceEditActive:$,get InlineEditor(){return e.ctx.InlineEditor},get renameWorkspace(){return e.ctx.renameWorkspace},get setEditor(){return e.ctx.setEditor},get projectId(){return e.project.id}})),Ne(()=>zo(R,`flex items-center justify-between w-full pl-2 py-1.5 rounded-md transition-[padding] duration-200 ${l.open?"pr-16":"pr-2"} group-hover/workspace:pr-16 group-focus-within/workspace:pr-16`)),R}}),null),P(M,y(Xme,{get directory(){return e.directory},local:m,busy:S,menuOpen:()=>l.open,pendingRename:()=>l.pendingRename,setMenuOpen:R=>c("open",R),setPendingRename:R=>c("pendingRename",R),get sidebarHovering(){return e.ctx.sidebarHovering},get mobile(){return e.mobile},get nav(){return e.ctx.nav},touch:L,language:i,workspaceValue:p,get openEditor(){return e.ctx.openEditor},get showResetWorkspaceDialog(){return e.ctx.showResetWorkspaceDialog},get showDeleteWorkspaceDialog(){return e.ctx.showDeleteWorkspaceDialog},get root(){return e.project.worktree},get setHoverSession(){return e.ctx.setHoverSession},get clearHoverProjectSoon(){return e.ctx.clearHoverProjectSoon},navigateToNewSession:()=>t(`/${d()}/session`)}),null),Ne(()=>et(T,"data-workspace",It(e.directory))),D})(),y(Rg.Content,{get children(){return y(Yme,{slug:d,get mobile(){return e.mobile},get ctx(){return e.ctx},showNew:C,loading:x,sessions:u,children:h,hasMore:k,loadMore:I,language:i})}})]}})),Ne(D=>ln(N,{"opacity-30":o.isActiveDraggable,"opacity-50 pointer-events-none":S()},D)),N})()},tpe=e=>{const t=ar(),n=Kt(),r=j(()=>{const[u,h]=t.child(e.project.worktree);return{store:u,setStore:h}}),i=j(()=>It(e.project.worktree)),o=j(()=>wd(r().store,e.sortNow())),a=j(()=>Wh(r().store.session)),s=j(u=>u||r().store.status==="complete",!1),l=j(()=>!s()&&o().length===0),c=j(()=>r().store.sessionTotal>o().length),d=async()=>{r().setStore("limit",u=>(u??0)+5),await t.project.loadSessions(e.project.worktree)};return(()=>{var u=Jme(),h=u.firstChild;return or(m=>e.ctx.setScrollContainerRef(m,e.mobile),u),P(h,y(de,{get when(){return l()},get children(){return y(gO,{})}}),null),P(h,y(on,{get each(){return o()},children:m=>y(Gh,{session:m,get slug(){return i()},get mobile(){return e.mobile},get children(){return a()},get sidebarExpanded(){return e.ctx.sidebarExpanded},get sidebarHovering(){return e.ctx.sidebarHovering},get nav(){return e.ctx.nav},get hoverSession(){return e.ctx.hoverSession},get setHoverSession(){return e.ctx.setHoverSession},get clearHoverProjectSoon(){return e.ctx.clearHoverProjectSoon},get prefetchSession(){return e.ctx.prefetchSession},get archiveSession(){return e.ctx.archiveSession}})}),null),P(h,y(de,{get when(){return c()},get children(){var m=vO();return P(m,y(At,{variant:"ghost",class:"flex w-full text-left justify-start text-14-regular text-text-weak pl-9 pr-10",size:"large",onClick:f=>{d(),f.currentTarget.blur()},get children(){return n.t("common.loadMore")}})),m}}),null),u})()},npe=(e,t,n)=>e[t]??n;var rpe={};Ar(rpe,{Arrow:()=>Wi,CheckboxItem:()=>Pm,Content:()=>bO,ContextMenu:()=>jn,Group:()=>mu,GroupLabel:()=>Om,Icon:()=>$m,Item:()=>Rm,ItemDescription:()=>zm,ItemIndicator:()=>Nm,ItemLabel:()=>Fm,Portal:()=>Vm,RadioGroup:()=>jm,RadioItem:()=>Bm,Root:()=>kO,Separator:()=>ac,Sub:()=>Hm,SubContent:()=>Um,SubTrigger:()=>qm,Trigger:()=>xO,useContextMenuContext:()=>wO});function bO(e){const t=wi(),[n,r]=ue(e,["onCloseAutoFocus","onInteractOutside"]);let i=!1;return y(JM,ee({onCloseAutoFocus:s=>{n.onCloseAutoFocus?.(s),!s.defaultPrevented&&i&&s.preventDefault(),i=!1},onInteractOutside:s=>{n.onInteractOutside?.(s),!s.defaultPrevented&&!t.isModal()&&(i=!0)}},r))}var yO=Ct();function ipe(){return yt(yO)}function wO(){const e=ipe();if(e===void 0)throw new Error("[kobalte]: `useContextMenuContext` must be used within a `ContextMenu` component");return e}function kO(e){const t=`contextmenu-${cn()}`,{direction:n}=Zi(),r=Be({id:t,placement:n()==="rtl"?"left-start":"right-start",gutter:2,shift:2},e),[i,o]=ue(r,["onOpenChange"]),[a,s]=me({x:0,y:0}),l=Ma({defaultOpen:!1,onOpenChange:d=>i.onOpenChange?.(d)}),c={setAnchorRect:s};return y(yO.Provider,{value:c,get children(){return y(eP,ee({get open(){return l.isOpen()},get onOpenChange(){return l.setIsOpen},getAnchorRect:a},o))}})}function xO(e){const t=wi(),n=wo(),r=wO(),i=Be({id:t.generateId("trigger")},e),[o,a]=ue(i,["ref","style","disabled","onContextMenu","onPointerDown","onPointerMove","onPointerCancel","onPointerUp"]);let s=0;const l=()=>{window.clearTimeout(s)};he(()=>{l()});const c=p=>{if(o.disabled){Ve(p,o.onContextMenu);return}l(),p.preventDefault(),p.stopPropagation(),r.setAnchorRect({x:p.clientX,y:p.clientY}),n.isOpen()?n.focusContent():n.open(!0)},d=p=>p.pointerType==="touch"||p.pointerType==="pen";return y(We,ee({as:"div",ref(p){var b=kt(n.setTriggerRef,o.ref);typeof b=="function"&&b(p)},get style(){return Pr({"-webkit-touch-callout":"none"},o.style)},get"data-disabled"(){return o.disabled?"":void 0},onContextMenu:c,onPointerDown:p=>{Ve(p,o.onPointerDown),!o.disabled&&d(p)&&(l(),r.setAnchorRect({x:p.clientX,y:p.clientY}),s=window.setTimeout(()=>n.open(!1),700))},onPointerMove:p=>{Ve(p,o.onPointerMove),!o.disabled&&d(p)&&l()},onPointerCancel:p=>{Ve(p,o.onPointerCancel),!o.disabled&&d(p)&&l()},onPointerUp:p=>{Ve(p,o.onPointerUp),!o.disabled&&d(p)&&l()}},()=>n.dataset(),a))}var jn=Object.assign(kO,{Arrow:Wi,CheckboxItem:Pm,Content:bO,Group:mu,GroupLabel:Om,Icon:$m,Item:Rm,ItemDescription:zm,ItemIndicator:Nm,ItemLabel:Fm,Portal:Vm,RadioGroup:jm,RadioItem:Bm,Separator:ac,Sub:Hm,SubContent:Um,SubTrigger:qm,Trigger:xO});function ope(e){return y(jn,ee(e,{"data-component":"context-menu"}))}function ape(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.Trigger,ee(n,{"data-slot":"context-menu-trigger",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function spe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.Icon,ee(n,{"data-slot":"context-menu-icon",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function lpe(e){return y(jn.Portal,e)}function cpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.Content,ee(n,{"data-component":"context-menu-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function dpe(e){const[t,n]=ue(e,["class","classList"]);return y(jn.Arrow,ee(n,{"data-slot":"context-menu-arrow",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function upe(e){const[t,n]=ue(e,["class","classList"]);return y(jn.Separator,ee(n,{"data-slot":"context-menu-separator",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}}}))}function fpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.Group,ee(n,{"data-slot":"context-menu-group",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function hpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.GroupLabel,ee(n,{"data-slot":"context-menu-group-label",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function mpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.Item,ee(n,{"data-slot":"context-menu-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function ppe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.ItemLabel,ee(n,{"data-slot":"context-menu-item-label",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function gpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.ItemDescription,ee(n,{"data-slot":"context-menu-item-description",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function vpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.ItemIndicator,ee(n,{"data-slot":"context-menu-item-indicator",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function bpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.RadioGroup,ee(n,{"data-slot":"context-menu-radio-group",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function ype(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.RadioItem,ee(n,{"data-slot":"context-menu-radio-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function wpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.CheckboxItem,ee(n,{"data-slot":"context-menu-checkbox-item",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function kpe(e){return y(jn.Sub,e)}function xpe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.SubTrigger,ee(n,{"data-slot":"context-menu-sub-trigger",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}function Spe(e){const[t,n]=ue(e,["class","classList","children"]);return y(jn.SubContent,ee(n,{"data-component":"context-menu-sub-content",get classList(){return{...t.classList??{},[t.class??""]:!!t.class}},get children(){return t.children}}))}const Fr=Object.assign(ope,{Trigger:ape,Icon:spe,Portal:lpe,Content:cpe,Arrow:dpe,Separator:upe,Group:fpe,GroupLabel:hpe,Item:mpe,ItemLabel:ppe,ItemDescription:gpe,ItemIndicator:vpe,RadioGroup:bpe,RadioItem:ype,CheckboxItem:wpe,Sub:kpe,SubTrigger:xpe,SubContent:Spe}),_pe=(e,t,n)=>t===e||n?.includes(e)===!0,Ape=e=>e.menu||(e.preview?e.open:e.overlay&&e.hoverProject===e.worktree);var Cpe=Q('<div class="bg-background-base rounded-xl p-1">'),Epe=Q('<div class="-m-3 p-2 flex flex-col w-72"><div class="px-4 pt-2 pb-1 flex items-center gap-2"><div class="text-14-medium text-text-strong truncate grow"></div></div><div class="px-4 pb-2 text-12-medium text-text-weak"></div><div class="px-2 pb-2 flex flex-col gap-2"></div><div class="px-2 py-2 border-t border-border-weak-base">'),Ipe=Q('<div class="flex flex-col gap-1"><div class="px-2 py-0.5 flex items-center gap-1 min-w-0"><div class="shrink-0 size-6 flex items-center justify-center"></div><span class="truncate text-14-medium text-text-base">'),Tpe=Q("<div>");const f7=e=>{const t=j(()=>e.projects().find(n=>n.worktree===e.activeProject()));return y(de,{get when(){return t()},children:n=>(()=>{var r=Cpe();return P(r,y(pO,{get project(){return n()}})),r})()})},Lpe=e=>{const t=_m(),n=Ms(),r=j(()=>e.dirs().reduce((o,a)=>o+t.project.unseenCount(a),0)),i=()=>e.dirs().filter(o=>t.project.unseenCount(o)>0).forEach(o=>t.project.markViewed(o));return y(Fr,{get modal(){return!e.sidebarHovering()},onOpenChange:o=>{e.setMenu(o),o&&e.setOpen(!1)},get children(){return[y(Fr.Trigger,{as:"button",type:"button",get"aria-label"(){return R4(e.project)},"data-action":"project-switch",get"data-project"(){return It(e.project.worktree)},get classList(){return{"flex items-center justify-center size-10 p-1 rounded-lg overflow-hidden transition-colors cursor-default":!0,"bg-transparent border-2 border-icon-strong-base hover:bg-surface-base-hover":e.selected(),"bg-transparent border border-transparent hover:bg-surface-base-hover hover:border-border-weak-base":!e.selected()&&!e.active(),"bg-surface-base-hover border border-border-weak-base":!e.selected()&&e.active()}},onMouseEnter:o=>{e.overlay()&&(e.suppressHover()||e.onProjectMouseEnter(e.project.worktree,o))},onMouseLeave:()=>{e.suppressHover()&&e.setSuppressHover(!1),e.overlay()&&e.onProjectMouseLeave(e.project.worktree)},onFocus:()=>{e.overlay()&&(e.suppressHover()||e.onProjectFocus(e.project.worktree))},onClick:()=>{if(e.selected()){e.setSuppressHover(!0),n.sidebar.toggle();return}e.setSuppressHover(!1),e.navigateToProject(e.project.worktree)},onBlur:()=>e.setOpen(!1),get children(){return y(pO,{get project(){return e.project},notify:!0})}}),y(Fr.Portal,{get mount(){return Le(()=>!e.mobile)()?e.nav():void 0},get children(){return y(Fr.Content,{get children(){return[y(Fr.Item,{onSelect:()=>e.showEditProjectDialog(e.project),get children(){return y(Fr.ItemLabel,{get children(){return e.language.t("common.edit")}})}}),y(Fr.Item,{"data-action":"project-workspaces-toggle",get"data-project"(){return It(e.project.worktree)},get disabled(){return Le(()=>e.project.vcs!=="git")()&&!e.workspacesEnabled(e.project)},onSelect:()=>e.toggleProjectWorkspaces(e.project),get children(){return y(Fr.ItemLabel,{get children(){return Le(()=>!!e.workspacesEnabled(e.project))()?e.language.t("sidebar.workspaces.disable"):e.language.t("sidebar.workspaces.enable")}})}}),y(Fr.Item,{"data-action":"project-clear-notifications",get"data-project"(){return It(e.project.worktree)},get disabled(){return r()===0},onSelect:i,get children(){return y(Fr.ItemLabel,{get children(){return e.language.t("sidebar.project.clearNotifications")}})}}),y(Fr.Separator,{}),y(Fr.Item,{"data-action":"project-close-menu",get"data-project"(){return It(e.project.worktree)},onSelect:()=>e.closeProject(e.project.worktree),get children(){return y(Fr.ItemLabel,{get children(){return e.language.t("common.close")}})}})]}})}})]}})},Dpe=e=>(()=>{var t=Epe(),n=t.firstChild,r=n.firstChild,i=n.nextSibling,o=i.nextSibling,a=o.nextSibling;return P(r,()=>R4(e.project)),P(n,y(_r,{get value(){return e.language.t("common.close")},placement:"top",gutter:6,get children(){return y(xn,{icon:"circle-x",variant:"ghost",class:"shrink-0","data-action":"project-close-hover",get"data-project"(){return It(e.project.worktree)},get"aria-label"(){return e.language.t("common.close")},onClick:s=>{s.stopPropagation(),e.setOpen(!1),e.ctx.closeProject(e.project.worktree)}})}}),null),P(i,()=>e.language.t("sidebar.project.recentSessions")),P(o,y(de,{get when(){return e.workspaceEnabled()},get fallback(){return y(on,{get each(){return e.projectSessions()},children:s=>y(Gh,ee(()=>e.ctx.sessionProps,{session:s,get slug(){return It(e.project.worktree)},dense:!0,get mobile(){return e.mobile},popover:!1,get children(){return e.projectChildren()}}))})},get children(){return y(on,{get each(){return e.workspaces()},children:s=>{const l=j(()=>e.workspaceSessions(s)),c=j(()=>e.workspaceChildren(s));return(()=>{var d=Ipe(),u=d.firstChild,h=u.firstChild,m=h.nextSibling;return P(h,y(Dt,{name:"branch",size:"small",class:"text-icon-base"})),P(m,()=>e.label(s)),P(d,y(on,{get each(){return l()},children:f=>y(Gh,ee(()=>e.ctx.sessionProps,{session:f,get slug(){return It(s)},dense:!0,get mobile(){return e.mobile},popover:!1,get children(){return c()}}))}),null),d})()}})}})),P(a,y(At,{variant:"ghost",class:"flex w-full text-left justify-start text-text-base px-2 hover:bg-transparent active:bg-transparent",onClick:()=>{e.ctx.openSidebar(),e.setOpen(!1),!e.selected()&&e.ctx.navigateToProject(e.project.worktree)},get children(){return e.language.t("sidebar.project.viewAllSessions")}})),t})(),h7=e=>{const t=ar(),n=Kt(),r=dP(e.project.worktree),i=j(()=>_pe(e.ctx.currentDir(),e.project.worktree,e.project.sandboxes)),o=j(()=>e.ctx.workspaceIds(e.project).slice(0,2)),a=j(()=>e.ctx.workspacesEnabled(e.project)),s=j(()=>e.ctx.workspaceIds(e.project)),[l,c]=He({open:!1,menu:!1,suppressHover:!1}),d=j(()=>!e.mobile&&e.ctx.sidebarOpened()),u=j(()=>!e.mobile&&!e.ctx.sidebarOpened()),h=j(()=>Ape({menu:l.menu,preview:d(),open:l.open,overlay:u(),hoverProject:e.ctx.hoverProject(),worktree:e.project.worktree}));se(()=>{d()||l.open&&c("open",!1)}),se(()=>{i()&&l.open&&c("open",!1)});const m=S=>{const[w]=t.child(S,{bootstrap:!1}),x=S===e.project.worktree?n.t("workspace.type.local"):n.t("workspace.type.sandbox"),L=e.ctx.workspaceLabel(S,w.vcs?.branch,e.project.id);return`${x} : ${L}`},f=j(()=>t.child(e.project.worktree,{bootstrap:!1})[0]),p=j(()=>wd(f(),e.sortNow()).slice(0,2)),b=j(()=>Wh(f().session)),v=S=>{const[w]=t.child(S,{bootstrap:!1});return wd(w,e.sortNow()).slice(0,2)},g=S=>{const[w]=t.child(S,{bootstrap:!1});return Wh(w.session)},k=()=>y(Lpe,{get project(){return e.project},get mobile(){return e.mobile},get nav(){return e.ctx.nav},get sidebarHovering(){return e.ctx.sidebarHovering},selected:i,active:h,overlay:u,suppressHover:()=>l.suppressHover,dirs:s,get onProjectMouseEnter(){return e.ctx.onProjectMouseEnter},get onProjectMouseLeave(){return e.ctx.onProjectMouseLeave},get onProjectFocus(){return e.ctx.onProjectFocus},get navigateToProject(){return e.ctx.navigateToProject},get showEditProjectDialog(){return e.ctx.showEditProjectDialog},get toggleProjectWorkspaces(){return e.ctx.toggleProjectWorkspaces},get workspacesEnabled(){return e.ctx.workspacesEnabled},get closeProject(){return e.ctx.closeProject},setMenu:S=>c("menu",S),setOpen:S=>c("open",S),setSuppressHover:S=>c("suppressHover",S),language:n});return(()=>{var S=Tpe();return or(r,S,()=>!0),P(S,y(de,{get when(){return Le(()=>!!d())()&&!i()},get fallback(){return k()},get children(){return y(uO,{get open(){return Le(()=>!!(!l.suppressHover&&l.open))()&&!l.menu},openDelay:0,closeDelay:0,placement:"right-start",gutter:6,get trigger(){return k()},onOpenChange:w=>{l.menu||w&&l.suppressHover||(c("open",w),w&&e.ctx.setHoverSession(void 0))},get children(){return y(Dpe,{get project(){return e.project},get mobile(){return e.mobile},selected:i,workspaceEnabled:a,workspaces:o,label:m,projectSessions:p,projectChildren:b,workspaceSessions:v,workspaceChildren:g,setOpen:w=>c("open",w),get ctx(){return e.ctx},language:n})}})}})),Ne(()=>S.classList.toggle("opacity-30",!!r.isActiveDraggable)),S})()},Mpe=(e,t)=>!!e||t;var Ppe=Q('<div class="h-full w-full flex flex-col items-center gap-3 px-3 py-3 overflow-y-auto no-scrollbar">'),Ope=Q('<div class="flex h-full w-full overflow-hidden"><div class="w-16 shrink-0 bg-background-base flex flex-col items-center overflow-hidden"><div class="flex-1 min-h-0 w-full"></div><div class="shrink-0 w-full pt-3 pb-6 flex flex-col items-center gap-2">'),$pe=Q('<span class="text-icon-base text-12-medium">'),Rpe=Q('<div class="flex items-center gap-2"><span>');const m7=e=>{const t=j(()=>Mpe(e.mobile,e.opened())),n=()=>e.mobile?"bottom":"right";return(()=>{var r=Ope(),i=r.firstChild,o=i.firstChild,a=o.nextSibling;return ga(i,"mousemove",e.aimMove,!0),P(o,y(oP,{get onDragStart(){return e.handleDragStart},get onDragEnd(){return e.handleDragEnd},get onDragOver(){return e.handleDragOver},collisionDetector:rP,get children(){return[y(aP,{}),y(KP,{}),(()=>{var s=Ppe();return P(s,y(cP,{get ids(){return e.projects().map(l=>l.worktree)},get children(){return y(on,{get each(){return e.projects()},children:l=>e.renderProject(l)})}}),null),P(s,y(_r,{get placement(){return n()},get value(){return(()=>{var l=Rpe(),c=l.firstChild;return P(c,()=>e.openProjectLabel),P(l,y(de,{get when(){return Le(()=>!e.mobile)()&&!!e.openProjectKeybind()},get children(){var d=$pe();return P(d,()=>e.openProjectKeybind()),d}}),null),l})()},get children(){return y(xn,{icon:"plus",variant:"ghost",size:"large",get onClick(){return e.onOpenProject},get"aria-label"(){return Le(()=>typeof e.openProjectLabel=="string")()?e.openProjectLabel:void 0}})}}),null),s})(),y(sP,{get children(){return e.renderProjectOverlay()}})]}})),P(a,y(gd,{get placement(){return n()},get title(){return e.settingsLabel()},get keybind(){return e.settingsKeybind()??""},get children(){return y(xn,{icon:"settings-gear",variant:"ghost",size:"large",get onClick(){return e.onOpenSettings},get"aria-label"(){return e.settingsLabel()}})}}),null),P(a,y(_r,{get placement(){return n()},get value(){return e.helpLabel()},get children(){return y(xn,{icon:"help",variant:"ghost",size:"large",get onClick(){return e.onOpenHelp},get"aria-label"(){return e.helpLabel()}})}}),null),P(r,y(de,{get when(){return t()},get children(){return e.renderPanel()}}),null),r})()};rr(["mousemove"]);var zpe=Q('<div class="flex flex-col gap-4 pl-6 pr-2.5 pb-3"><div class="flex flex-col gap-1"><span class="text-14-regular text-text-strong"></span><span class="text-12-regular text-text-weak"></span></div><div class="flex justify-end gap-2">'),Npe=Q('<div class="flex flex-col gap-4 pl-6 pr-2.5 pb-3"><div class="flex flex-col gap-1"><span class="text-14-regular text-text-strong"></span><span class="text-12-regular text-text-weak"> <!> </span></div><div class="flex justify-end gap-2">'),Fpe=Q('<div><div class="shrink-0 px-2 py-3 border-t border-border-weak-base"><div class="rounded-md bg-background-base shadow-xs-border-base"><div class="p-3 flex flex-col gap-2"><div class="text-12-medium text-text-strong"></div><div class=text-text-base></div><div class=text-text-base>'),Vpe=Q('<span class="text-12-regular text-text-base truncate select-text">'),jpe=Q('<div class="shrink-0 px-2 py-1"><div class="group/project flex items-start justify-between gap-2 p-2 pr-1"><div class="flex flex-col min-w-0">'),p7=Q('<div class="shrink-0 py-4 px-3">'),Bpe=Q('<div class="size-full flex flex-col py-2 gap-4 overflow-y-auto no-scrollbar [overflow-anchor:none]">'),Hpe=Q('<div class="relative flex-1 min-h-0">'),Upe=Q('<div class="flex-1 min-h-0 flex flex-col">'),qpe=Q('<div class="flex-1 min-h-0">'),Zpe=Q('<div class="relative bg-background-base flex-1 min-h-0 flex flex-col select-none [&amp;_input]:select-text [&amp;_textarea]:select-text [&amp;_[contenteditable]]:select-text"><div class="flex-1 min-h-0 flex"><nav data-component=sidebar-nav-desktop><div class="@container w-full h-full contain-strict"></div></nav><div class=xl:hidden><div></div><nav data-component=sidebar-nav-mobile></nav></div><main>'),Wpe=Q('<div class="absolute inset-y-0 left-16 z-50 flex">'),Gpe=Q("<div class=size-full>");function Kpe(e){const[t,n,,r]=tr(Ln.global("layout.page",["layout.page.v1"]),He({lastProjectSession:{},activeProject:void 0,activeWorkspace:void 0,workspaceOrder:{},workspaceName:{},workspaceBranchName:{},workspaceExpanded:{}})),i=j(()=>r());let o;const a=Jr(),s=qi(),l=ar(),c=Ms(),d=j(()=>c.ready()),u=Er(),h=Ts(),m=su(),f=_m(),p=g4(),b=Ra(),v=fu(),g=Ui(),k=oy(),S=ty(),w=Kt(),x=Oo(a.dir),L=j(()=>Object.entries(S.themes())),C=["system","light","dark"],I={system:"theme.scheme.system",light:"theme.scheme.light",dark:"theme.scheme.dark"},$=V=>w.t(I[V]),F=j(()=>Oo(a.dir)??""),[N,D]=He({autoselect:!x,busyWorkspaces:{},hoverSession:void 0,hoverProject:void 0,scrollSessionKey:void 0,nav:void 0}),T=ime(),M=(V,H)=>{const re=sn(V);if(H){D("busyWorkspaces",re,!0);return}D("busyWorkspaces",st(fe=>{delete fe[re]}))},R=V=>!!N.busyWorkspaces[sn(V)],G={current:void 0},[K,U]=me(Date.now());let q;const X=setTimeout(()=>{U(Date.now()),q=setInterval(()=>U(Date.now()),6e4)},6e4-Date.now()%6e4),le=Lue({enabled:()=>!c.sidebar.opened(),active:()=>N.hoverProject,el:()=>N.nav,onActivate:V=>{l.child(V),D("hoverProject",V),D("hoverSession",void 0)}});he(()=>{G.current!==void 0&&clearTimeout(G.current),clearTimeout(X),q&&clearInterval(q),le.reset()});const _e=j(()=>!c.sidebar.opened()&&N.hoverProject!==void 0),ne=j(()=>c.sidebar.opened()||_e()),B=V=>{D("hoverProject",V),le.reset()},ae=()=>queueMicrotask(()=>B(void 0)),Y=V=>D("hoverSession",V),ie=j(()=>{const V=N.hoverProject;if(V)return c.projects.list().find(H=>H.worktree===V)});se(()=>{c.sidebar.opened()&&B(void 0)});const be=j(()=>a.dir||!N.autoselect?!1:!i()||!d()||c.projects.list().length>0?!0:!!m.projects.last());se(()=>{if(!N.autoselect)return;const V=a.dir;!V||!Oo(V)||D("autoselect",!1)});const ge=T.editorOpen,Re=T.openEditor,Oe=T.closeEditor,dt=T.setEditor,it=T.InlineEditor,fn=()=>{c.sidebar.opened()||(D("hoverSession",void 0),B(void 0))},Et=V=>{fn(),b(V),c.mobileSidebar.hide()};function pt(V=1){const H=L().map(([Te])=>Te);if(H.length===0)return;const re=H.indexOf(S.themeId()),fe=re===-1?0:(re+V+H.length)%H.length,xe=H[fe];S.setTheme(xe);const ve=S.themes()[xe];Ft({title:w.t("toast.theme.title"),description:ve?.name??xe})}function nn(V=1){const H=S.colorScheme(),re=C.indexOf(H),fe=re===-1?0:(re+V+C.length)%C.length,xe=C[fe];S.setColorScheme(xe),Ft({title:w.t("toast.scheme.title"),description:$(xe)})}function tt(V){V!==w.locale()&&(w.setLocale(V),Ft({title:w.t("toast.language.title"),description:w.t("toast.language.description",{language:w.label(V)})}))}function lt(V=1){const H=w.locales,re=H.indexOf(w.locale()),fe=re===-1?0:(re+V+H.length)%H.length,xe=H[fe];xe&&tt(xe)}const Bn=()=>Wt(()=>{if(!u.checkUpdate||!u.update||!u.restart)return;let V,H;const re=()=>u.checkUpdate().then(({updateAvailable:fe,version:xe})=>{fe&&V===void 0&&(V=Ft({persistent:!0,icon:"download",title:w.t("toast.update.title"),description:w.t("toast.update.description",{version:xe??""}),actions:[{label:w.t("toast.update.action.installRestart"),onClick:async()=>{await u.update(),await u.restart()}},{label:w.t("toast.update.action.notYet"),onClick:"dismiss"}]}))});se(()=>{if(h.ready()){if(!h.updates.startup()){if(H===void 0)return;clearInterval(H),H=void 0;return}H===void 0&&(re(),H=setInterval(re,600*1e3))}}),he(()=>{H!==void 0&&clearInterval(H)})}),sr=()=>Wt(()=>{const V=new Map,H=new Map,re=5e3,fe=ve=>{const Te=V.get(ve);Te!==void 0&&(Ll.dismiss(Te),V.delete(ve),H.delete(ve))},xe=s.event.listen(ve=>{if(ve.details?.type==="worktree.ready"){M(ve.name,!1),ff.ready(ve.name);return}if(ve.details?.type==="worktree.failed"){M(ve.name,!1),ff.failed(ve.name,ve.details.properties?.message??w.t("common.requestFailed"));return}if(ve.details?.type!=="permission.asked"&&ve.details?.type!=="question.asked")return;const Te=ve.details.type==="permission.asked"?w.t("notification.permission.title"):w.t("notification.question.title"),Fe=ve.details.type==="permission.asked"?"checklist":"bubble-5",ke=ve.name,Ue=ve.details.properties;if(ve.details.type==="permission.asked"&&p.autoResponds(ve.details.properties,ke))return;const[ut]=l.child(ke,{bootstrap:!1}),ft=ut.session.find(BO=>BO.id===Ue.sessionID),hn=`${ke}:${Ue.sessionID}`,an=ft?.title??w.t("command.session.new"),Hn=$n(ke),xt=ve.details.type==="permission.asked"?w.t("notification.permission.description",{sessionTitle:an,projectName:Hn}):w.t("notification.question.description",{sessionTitle:an,projectName:Hn}),xi=`/${It(ke)}/session/${Ue.sessionID}`,Dn=Date.now(),Si=H.get(hn)??0;if(Dn-Si<re)return;H.set(hn,Dn),ve.details.type==="permission.asked"&&(h.sounds.permissionsEnabled()&&jh(v1(h.sounds.permissions())),h.notifications.permissions()&&u.notify(Te,xt,xi)),ve.details.type==="question.asked"&&h.notifications.agent()&&u.notify(Te,xt,xi);const _i=a.id;if(ke===F()&&Ue.sessionID===_i||ke===F()&&ft?.parentID===_i)return;fe(hn);const jO=Ft({persistent:!0,icon:Fe,title:Te,description:xt,actions:[{label:w.t("notification.action.goToSession"),onClick:()=>b(xi)},{label:w.t("common.dismiss"),onClick:"dismiss"}]});V.set(hn,jO)});he(xe),se(()=>{const ve=a.id;if(!F()||!ve)return;const Te=`${F()}:${ve}`;fe(Te);const[Fe]=l.child(F(),{bootstrap:!1}),ke=Fe.session.filter(Ue=>Ue.parentID===ve);for(const Ue of ke)fe(`${F()}:${Ue.id}`)})});Bn(),sr();function vn(V,H){if(!o||N.scrollSessionKey===H)return;const re=o.querySelector(`[data-session-id="${V}"]`);if(!re)return;const fe=o.getBoundingClientRect(),xe=re.getBoundingClientRect();if(xe.top>=fe.top&&xe.bottom<=fe.bottom){D("scrollSessionKey",H);return}D("scrollSessionKey",H),re.scrollIntoView({block:"nearest",behavior:"smooth"})}const Ke=j(()=>{const V=F();if(!V)return;const H=c.projects.list(),re=H.find(ke=>ke.sandboxes?.includes(V));if(re)return re;const fe=H.find(ke=>ke.worktree===V);if(fe)return fe;const[xe]=l.child(V,{bootstrap:!1}),ve=xe.project;if(!ve)return;const Fe=l.data.project.find(ke=>ke.id===ve)?.worktree;if(Fe)return H.find(ke=>ke.worktree===Fe)});se(Ht(()=>({ready:i(),layoutReady:d(),dir:a.dir,list:c.projects.list()}),V=>{if(!V.ready||!V.layoutReady||!N.autoselect||V.dir)return;const H=m.projects.last();if(V.list.length===0){if(!H)return;D("autoselect",!1),sc(H,!1),Vs(H);return}const re=V.list.find(fe=>fe.worktree===H)??V.list[0];re&&(D("autoselect",!1),sc(re.worktree,!1),Vs(re.worktree))}));const _n=(V,H,re)=>{const fe=sn(V),xe=t.workspaceName[fe]??t.workspaceName[V];if(xe)return xe;if(H&&re)return t.workspaceBranchName[H]?.[re]},bt=(V,H,re,fe)=>{const xe=sn(V);n("workspaceName",xe,H),re&&fe&&(t.workspaceBranchName[re]||n("workspaceBranchName",re,{}),n("workspaceBranchName",re,fe,H))},lr=(V,H,re)=>_n(V,re,H)??H??$n(V),bn=j(()=>{const V=Ke();return!V||V.vcs!=="git"?!1:c.sidebar.workspaces(V.worktree)()}),ki=j(()=>{const V=Ke();if(!V)return[];if(!bn())return[V.worktree];const H=F();return ku(V).filter(re=>(t.workspaceExpanded[re]??re===V.worktree)||re===H)});se(()=>{if(!i()||!d())return;const V=c.projects.list();for(const[H,re]of Object.entries(t.workspaceExpanded)){if(!re)continue;const fe=V.find(xe=>xe.worktree===H||xe.sandboxes?.includes(H));fe&&(fe.vcs==="git"&&c.sidebar.workspaces(fe.worktree)()||n("workspaceExpanded",H,!1))}});const Yr=j(()=>{const V=Date.now(),H=ki();if(H.length===0)return[];const re=[];for(const fe of H){const[xe]=l.child(fe,{bootstrap:!0}),ve=wd(xe,V);re.push(...ve)}return re}),zs=200,zt=1,Ut=6,Ns={value:0},Rr=new Map,yu=10,Fs=new Map,F4=V=>{const H=Fs.get(V);if(H)return H;const re=new Map;return Fs.set(V,re),re},EO=(V,H)=>{const re=F4(V);for(re.has(H)&&re.delete(H),re.set(H,!0);re.size>yu;){const fe=re.keys().next().value;if(!fe)return;re.delete(fe)}};se(()=>{a.dir,s.url,Ns.value+=1;for(const V of Rr.values())V.pending.length=0,V.pendingSet.clear()});const V4=V=>{const H=Rr.get(V);if(H)return H;const re={inflight:new Set,pending:[],pendingSet:new Set,running:0};return Rr.set(V,re),re},ip=(V,H)=>{if(V.length===0)return H.slice().sort((fe,xe)=>fe.id<xe.id?-1:fe.id>xe.id?1:0);const re=new Map;for(const fe of V)re.set(fe.id,fe);for(const fe of H)re.set(fe.id,fe);return[...re.values()].sort((fe,xe)=>fe.id<xe.id?-1:fe.id>xe.id?1:0)};async function IO(V,H,re){const[fe,xe]=l.child(V,{bootstrap:!1});return Pi(()=>s.client.session.messages({directory:V,sessionID:H,limit:zs})).then(ve=>{if(Ns.value!==re)return;const Te=(ve.data??[]).filter(ft=>!!ft?.info?.id),Fe=Te.map(ft=>ft.info).filter(ft=>!!ft?.id),ke=ip([],Fe),Ue=fe.message[H]??[],ut=ip(Ue.filter(ft=>!!ft?.id),ke);_t(()=>{xe("message",H,$t(ut,{key:"id"}));for(const ft of Te){const hn=fe.part[ft.info.id]??[],an=ip(hn.filter(Hn=>!!Hn?.id),ft.parts.filter(Hn=>!!Hn?.id));xe("part",ft.info.id,$t(an,{key:"id"}))}})}).catch(()=>{})}const j4=V=>{const H=V4(V);if(H.running>=zt)return;const re=H.pending.shift();if(!re)return;H.pendingSet.delete(re),H.inflight.add(re),H.running+=1;const fe=Ns.value;IO(V,re,fe).finally(()=>{H.running-=1,H.inflight.delete(re),j4(V)})},gr=(V,H="low")=>{const re=V.directory;if(!re)return;const[fe]=l.child(re,{bootstrap:!1});if(nt(()=>fe.message[V.id]!==void 0))return;const ve=V4(re);if(ve.inflight.has(V.id)||ve.pendingSet.has(V.id))return;const Te=F4(re);if(!(!Te.has(V.id)&&Te.size>=yu&&H!=="high")){for(EO(re,V.id),H==="high"&&ve.pending.unshift(V.id),H!=="high"&&ve.pending.push(V.id),ve.pendingSet.add(V.id);ve.pending.length>Ut;){const ke=ve.pending.pop();ke&&ve.pendingSet.delete(ke)}j4(re)}};se(()=>{const V=Yr(),H=a.id;if(!H){const ve=V[0];ve&&gr(ve);const Te=V[1];Te&&gr(Te);return}const re=V.findIndex(ve=>ve.id===H);if(re===-1)return;const fe=V[re+1];fe&&gr(fe);const xe=V[re-1];xe&&gr(xe)});function B4(V){const H=Yr();if(H.length===0)return;const re=a.id?H.findIndex(Fe=>Fe.id===a.id):-1;let fe;re===-1?fe=V>0?0:H.length-1:fe=(re+V+H.length)%H.length;const xe=H[fe];if(!xe)return;const ve=H[(fe+1)%H.length],Te=H[(fe-1+H.length)%H.length];V>0&&(ve&&gr(ve,"high"),Te&&gr(Te)),V<0&&(Te&&gr(Te,"high"),ve&&gr(ve)),W4(xe)}function H4(V){const H=Yr();if(H.length===0||!H.some(ve=>f.session.unseenCount(ve.id)>0))return;const fe=a.id?H.findIndex(ve=>ve.id===a.id):-1,xe=fe===-1?V>0?-1:0:fe;for(let ve=1;ve<=H.length;ve++){const Te=V>0?(xe+ve)%H.length:(xe-ve+H.length)%H.length,Fe=H[Te];if(!Fe||f.session.unseenCount(Fe.id)===0)continue;gr(Fe,"high");const ke=H[(Te+1)%H.length],Ue=H[(Te-1+H.length)%H.length];V>0&&(ke&&gr(ke,"high"),Ue&&gr(Ue)),V<0&&(Ue&&gr(Ue,"high"),ke&&gr(ke)),W4(Fe);return}}async function op(V){const[H,re]=l.child(V.directory),fe=H.session??[],xe=fe.findIndex(Te=>Te.id===V.id),ve=fe[xe+1]??fe[xe-1];await s.client.session.update({directory:V.directory,sessionID:V.id,time:{archived:Date.now()}}),re(st(Te=>{const Fe=rn.search(Te.session,V.id,ke=>ke.id);Fe.found&&Te.session.splice(Fe.index,1)})),V.id===a.id&&b(ve?`/${a.dir}/session/${ve.id}`:`/${a.dir}/session`)}k.register("layout",()=>{const V=[{id:"sidebar.toggle",title:w.t("command.sidebar.toggle"),category:w.t("command.category.view"),keybind:"mod+b",onSelect:()=>c.sidebar.toggle()},{id:"project.open",title:w.t("command.project.open"),category:w.t("command.category.project"),keybind:"mod+o",onSelect:()=>cp()},{id:"provider.connect",title:w.t("command.provider.connect"),category:w.t("command.category.provider"),onSelect:()=>U4()},{id:"server.switch",title:w.t("command.server.switch"),category:w.t("command.category.server"),onSelect:()=>TO()},{id:"settings.open",title:w.t("command.settings.open"),category:w.t("command.category.settings"),keybind:"mod+comma",onSelect:()=>ap()},{id:"session.previous",title:w.t("command.session.previous"),category:w.t("command.category.session"),keybind:"alt+arrowup",onSelect:()=>B4(-1)},{id:"session.next",title:w.t("command.session.next"),category:w.t("command.category.session"),keybind:"alt+arrowdown",onSelect:()=>B4(1)},{id:"session.previous.unseen",title:w.t("command.session.previous.unseen"),category:w.t("command.category.session"),keybind:"shift+alt+arrowup",onSelect:()=>H4(-1)},{id:"session.next.unseen",title:w.t("command.session.next.unseen"),category:w.t("command.category.session"),keybind:"shift+alt+arrowdown",onSelect:()=>H4(1)},{id:"session.archive",title:w.t("command.session.archive"),category:w.t("command.category.session"),keybind:"mod+shift+backspace",disabled:!a.dir||!a.id,onSelect:()=>{const H=Yr().find(re=>re.id===a.id);H&&op(H)}},{id:"workspace.new",title:w.t("workspace.new"),category:w.t("command.category.workspace"),keybind:"mod+shift+w",disabled:!bn(),onSelect:()=>{const H=Ke();if(H)return nw(H)}},{id:"workspace.toggle",title:w.t("command.workspace.toggle"),description:w.t("command.workspace.toggle.description"),category:w.t("command.category.workspace"),slash:"workspace",disabled:!Ke()||Ke()?.vcs!=="git",onSelect:()=>{const H=Ke();if(!H||H.vcs!=="git")return;const re=c.sidebar.workspaces(H.worktree)();c.sidebar.toggleWorkspaces(H.worktree),Ft({title:re?w.t("toast.workspace.disabled.title"):w.t("toast.workspace.enabled.title"),description:re?w.t("toast.workspace.disabled.description"):w.t("toast.workspace.enabled.description")})}},{id:"theme.cycle",title:w.t("command.theme.cycle"),category:w.t("command.category.theme"),keybind:"mod+shift+t",onSelect:()=>pt(1)}];for(const[H,re]of L())V.push({id:`theme.set.${H}`,title:w.t("command.theme.set",{theme:re.name??H}),category:w.t("command.category.theme"),onSelect:()=>S.commitPreview(),onHighlight:()=>(S.previewTheme(H),()=>S.cancelPreview())});V.push({id:"theme.scheme.cycle",title:w.t("command.theme.scheme.cycle"),category:w.t("command.category.theme"),keybind:"mod+shift+s",onSelect:()=>nn(1)});for(const H of C)V.push({id:`theme.scheme.${H}`,title:w.t("command.theme.scheme.set",{scheme:$(H)}),category:w.t("command.category.theme"),onSelect:()=>S.commitPreview(),onHighlight:()=>(S.previewColorScheme(H),()=>S.cancelPreview())});V.push({id:"language.cycle",title:w.t("command.language.cycle"),category:w.t("command.category.language"),onSelect:()=>lt(1)});for(const H of w.locales)V.push({id:`language.set.${H}`,title:w.t("command.language.set",{language:w.label(H)}),category:w.t("command.category.language"),onSelect:()=>tt(H)});return V});function U4(){g.show(()=>y(bd,{}))}function TO(){g.show(()=>y(jfe,{}))}function ap(){g.show(()=>y(o0e,{}))}function sp(V){const H=c.projects.list().find(Te=>Te.worktree===V||Te.sandboxes?.includes(V));if(H)return H.worktree;const re=Object.entries(t.workspaceOrder).find(([Te,Fe])=>Te===V||Fe.includes(V));if(re)return re[0];const[fe]=l.child(V,{bootstrap:!1}),xe=fe.project;return xe?l.data.project.find(Te=>Te.id===xe)?.worktree??V:V}function lp(V){return Ke()?.worktree??sp(V)}function LO(){const V=Ke()?.worktree;if(V)return m.projects.last()!==V&&m.projects.touch(V),V}function q4(V,H,re=lp(V)){return n("lastProjectSession",re,{directory:V,id:H,at:Date.now()}),re}function Z4(V){t.lastProjectSession[V]&&n("lastProjectSession",st(H=>{delete H[V]}))}function DO(V,H,re=lp(V)){return q4(V,H,re),f.session.markViewed(H),nt(()=>t.workspaceExpanded[V])===!1&&n("workspaceExpanded",V,!0),requestAnimationFrame(()=>vn(H,`${V}:${H}`)),re}async function Vs(V){if(!V)return;const H=sp(V);m.projects.touch(H);const re=c.projects.list().find(ut=>ut.worktree===H);let fe=re?hf(H,[H,...re.sandboxes??[]],t.workspaceOrder[H]):[H];const xe=ut=>ut?fe.some(ft=>sn(ft)===sn(ut)):!1,ve=async ut=>{if(!ut||ut===H||xe(ut))return xe(ut);const ft=await s.client.worktree.list({directory:H}).then(hn=>hn.data??[]).catch(()=>[]);return fe=hf(H,[H,...ft],t.workspaceOrder[H]),xe(ut)},Te=async ut=>{if(!xe(ut.directory))return!1;const ft=await s.client.session.get({sessionID:ut.id}).then(hn=>hn.data).catch(()=>{});return!ft?.directory||!xe(ft.directory)?!1:(n("lastProjectSession",H,{directory:ft.directory,id:ft.id,at:Date.now()}),Et(`/${It(ft.directory)}/session/${ft.id}`),!0)},Fe=t.lastProjectSession[H];if(Fe?.id){if(await ve(Fe.directory),await Te(Fe))return;Z4(H)}const ke=a7(fe.map(ut=>l.child(ut,{bootstrap:!1})[0]),Date.now());if(ke&&await Te(ke))return;const Ue=a7(await Promise.all(fe.map(async ut=>({path:{directory:ut},session:await s.client.session.list({directory:ut}).then(ft=>ft.data??[]).catch(()=>[])}))),Date.now());Ue&&await Te(Ue)||Et(`/${It(H)}/session`)}function W4(V){V&&Et(`/${It(V.directory)}/session/${V.id}`)}function sc(V,H=!0){c.projects.open(V),H&&Vs(V)}const G4=V=>{if(m.isLocal())for(const H of Y0e(V))sc(H)};Wt(()=>{const V=H=>{const fe=H.detail?.urls??[];fe.length!==0&&G4(fe)};G4(eme(window)),window.addEventListener(l7,V),he(()=>window.removeEventListener(l7,V))});async function MO(V,H){const re=R4(V);if(H===re)return;const fe=H===$n(V.worktree)?"":H;if(V.id&&V.id!=="global"){await s.client.project.update({projectID:V.id,directory:V.worktree,name:fe});return}l.project.meta(V.worktree,{name:fe})}const PO=(V,H,re,fe)=>{(_n(V,re,fe)??fe??$n(V))!==H&&bt(V,H,re,fe)};function K4(V){const H=c.projects.list(),re=H.findIndex(ve=>ve.worktree===V),fe=Ke()?.worktree===V;if(re===-1)return;const xe=H[re+1];if(!fe){c.projects.close(V);return}if(!xe){c.projects.close(V),b("/");return}Et(`/${It(xe.worktree)}/session`),c.projects.close(V),queueMicrotask(()=>{Vs(xe.worktree)})}function J4(V){if(c.sidebar.workspaces(V.worktree)()){c.sidebar.toggleWorkspaces(V.worktree);return}V.vcs==="git"&&c.sidebar.toggleWorkspaces(V.worktree)}const Q4=V=>g.show(()=>y($0e,{project:V}));async function cp(){function V(H){if(Array.isArray(H)){for(const re of H)sc(re,!1);Vs(H[0])}else H&&sc(H)}if(u.openDirectoryPickerDialog&&m.isLocal()){const H=await u.openDirectoryPickerDialog?.({title:w.t("command.project.open"),multiple:!0});V(H)}else g.show(()=>y(A0e,{multiple:!0,onSelect:V}),()=>V(null))}const OO=async(V,H,re=!1)=>{if(H===V)return;const fe=F(),xe=sn(fe),ve=sn(H),Te=re||!!a.dir&&xe===ve;!re&&Te&&Et(`/${It(V)}/session`),M(H,!0);const Fe=await s.client.worktree.remove({directory:V,worktreeRemoveInput:{directory:H}}).then(an=>an.data).catch(an=>(Ft({title:w.t("workspace.delete.failed.title"),description:$g(an,w.t("common.requestFailed"))}),!1));if(M(H,!1),!Fe||(sn(t.lastProjectSession[V]?.directory??"")===sn(H)&&Z4(V),l.set("project",st(an=>{const Hn=an.find(xt=>xt.worktree===V);Hn&&(Hn.sandboxes=(Hn.sandboxes??[]).filter(xt=>xt!==H))})),n("workspaceOrder",V,an=>(an??[]).filter(Hn=>Hn!==H)),c.projects.close(H),c.projects.open(V),Te))return;const ke=F(),Ue=sn(ke),ut=c.projects.list().find(an=>an.worktree===V),hn=(ut?hf(V,[V,...ut.sandboxes??[]],t.workspaceOrder[V]):[V]).some(an=>sn(an)===Ue);a.dir&&sp(ke)===V&&!hn&&Et(`/${It(V)}/session`)},$O=async(V,H)=>{if(H===V)return;M(H,!0);const re=Ft({persistent:!0,title:w.t("workspace.resetting.title"),description:w.t("workspace.resetting.description")}),fe=()=>Ll.dismiss(re),xe=await s.client.session.list({directory:H}).then(Fe=>Fe.data??[]).catch(()=>[]);if(cce(H,xe.map(Fe=>Fe.id),u),await s.client.instance.dispose({directory:H}).catch(()=>{}),!await s.client.worktree.reset({directory:V,worktreeResetInput:{directory:H}}).then(Fe=>Fe.data).catch(Fe=>(Ft({title:w.t("workspace.reset.failed.title"),description:$g(Fe,w.t("common.requestFailed"))}),!1))){M(H,!1),fe();return}const Te=Date.now();await Promise.all(xe.filter(Fe=>Fe.time.archived===void 0).map(Fe=>s.client.session.update({sessionID:Fe.id,directory:Fe.directory,time:{archived:Te}}).catch(()=>{}))),M(H,!1),fe(),Ft({title:w.t("workspace.reset.success.title"),description:w.t("workspace.reset.success.description"),actions:[{label:w.t("command.session.new"),onClick:()=>{const Fe=`/${It(H)}/session`;b(Fe),c.mobileSidebar.hide()}},{label:w.t("common.dismiss"),onClick:"dismiss"}]})};function RO(V){const H=j(()=>$n(V.directory)),[re,fe]=He({status:"loading",dirty:!1});Wt(()=>{s.client.file.status({directory:V.directory}).then(Te=>{const ke=(Te.data??[]).length>0;fe({status:"ready",dirty:ke})}).catch(()=>{fe({status:"error",dirty:!1})})});const xe=()=>{const Te=!!a.dir&&sn(F())===sn(V.directory);Te&&Et(`/${It(V.root)}/session`),g.close(),OO(V.root,V.directory,Te)},ve=()=>re.status==="loading"?w.t("workspace.status.checking"):re.status==="error"?w.t("workspace.status.error"):re.dirty?w.t("workspace.status.dirty"):w.t("workspace.status.clean");return y(mo,{get title(){return w.t("workspace.delete.title")},fit:!0,get children(){var Te=zpe(),Fe=Te.firstChild,ke=Fe.firstChild,Ue=ke.nextSibling,ut=Fe.nextSibling;return P(ke,()=>w.t("workspace.delete.confirm",{name:H()})),P(Ue,ve),P(ut,y(At,{variant:"ghost",size:"large",onClick:()=>g.close(),get children(){return w.t("common.cancel")}}),null),P(ut,y(At,{variant:"primary",size:"large",get disabled(){return re.status==="loading"},onClick:xe,get children(){return w.t("workspace.delete.button")}}),null),Te}})}function zO(V){const H=j(()=>$n(V.directory)),[re,fe]=He({status:"loading",dirty:!1,sessions:[]}),xe=async()=>{const ut=(await s.client.session.list({directory:V.directory}).then(ft=>ft.data??[]).catch(()=>[])).filter(ft=>ft.time.archived===void 0);fe({sessions:ut})};Wt(()=>{s.client.file.status({directory:V.directory}).then(Ue=>{const ft=(Ue.data??[]).length>0;fe({status:"ready",dirty:ft}),xe()}).catch(()=>{fe({status:"error",dirty:!1})})});const ve=()=>{g.close(),$O(V.root,V.directory)},Te=()=>re.sessions.length,Fe=()=>re.status==="loading"?w.t("workspace.status.checking"):re.status==="error"?w.t("workspace.status.error"):re.dirty?w.t("workspace.status.dirty"):w.t("workspace.status.clean"),ke=()=>{const Ue=Te();return Ue===0?w.t("workspace.reset.archived.none"):Ue===1?w.t("workspace.reset.archived.one"):w.t("workspace.reset.archived.many",{count:Ue})};return y(mo,{get title(){return w.t("workspace.reset.title")},fit:!0,get children(){var Ue=Npe(),ut=Ue.firstChild,ft=ut.firstChild,hn=ft.nextSibling,an=hn.firstChild,Hn=an.nextSibling;Hn.nextSibling;var xt=ut.nextSibling;return P(ft,()=>w.t("workspace.reset.confirm",{name:H()})),P(hn,Fe,an),P(hn,ke,Hn),P(hn,()=>w.t("workspace.reset.note"),null),P(xt,y(At,{variant:"ghost",size:"large",onClick:()=>g.close(),get children(){return w.t("common.cancel")}}),null),P(xt,y(At,{variant:"primary",size:"large",get disabled(){return re.status==="loading"},onClick:ve,get children(){return w.t("workspace.reset.button")}}),null),Ue}})}const ko={session:"",sessionProject:""};se(Ht(()=>[i(),a.dir,a.id,Ke()?.worktree],([V,H,re])=>{if(!V||!H){ko.session="",ko.sessionProject="";return}const fe=Oo(H);if(!fe)return;const xe=LO()??lp(fe);if(!re){ko.session="",ko.sessionProject="";return}const ve=`${H}/${re}`;if(ve!==ko.session){ko.session=ve,ko.sessionProject=DO(fe,re,xe);return}xe!==ko.sessionProject&&(ko.sessionProject=q4(fe,re,xe))})),se(()=>{const V=c.sidebar.opened()?c.sidebar.width():48;document.documentElement.style.setProperty("--dialog-left-margin",`${V}px`)});const wu=new Set;se(Ht(ki,V=>{if(V.length===0){wu.clear();return}const H=new Set(V);for(const re of H)wu.has(re)||l.project.loadSessions(re);wu.clear();for(const re of H)wu.add(re)},{defer:!0}));function X4(V){const H=s7(V);H&&(B(void 0),n("activeProject",H))}function Y4(V){const{draggable:H,droppable:re}=V;if(H&&re){const fe=c.projects.list(),xe=fe.findIndex(Te=>Te.worktree===H.id.toString()),ve=fe.findIndex(Te=>Te.worktree===re.id.toString());xe!==ve&&ve!==-1&&c.projects.move(H.id.toString(),ve)}}function ew(){n("activeProject",void 0)}function ku(V){if(!V)return[];const H=V.worktree,re=[H,...V.sandboxes??[]],xe=Ke()?.worktree===V.worktree?F():void 0,ve=xe&&xe!==H&&!re.includes(xe)?xe:void 0,Te=ve?ff.get(ve)?.status==="pending":!1,Fe=hf(H,re,t.workspaceOrder[V.worktree]);return Te&&ve?[H,ve,...Fe.filter(ke=>ke!==H)]:!ve||Te?Fe:[...Fe,ve]}const tw=j(()=>{if(c.sidebar.opened())return Ke();const V=ie();return V||Ke()});function NO(V){const H=s7(V);H&&n("activeWorkspace",H)}function FO(V){const{draggable:H,droppable:re}=V;if(!H||!re)return;const fe=tw();if(!fe)return;const xe=ku(fe),ve=xe.findIndex(Ue=>Ue===H.id.toString()),Te=xe.findIndex(Ue=>Ue===re.id.toString());if(ve===-1||Te===-1||ve===Te)return;const Fe=xe.slice(),[ke]=Fe.splice(ve,1);ke&&(Fe.splice(Te,0,ke),n("workspaceOrder",fe.worktree,Fe.filter(Ue=>sn(Ue)!==sn(fe.worktree))))}function VO(){n("activeWorkspace",void 0)}const nw=async V=>{fn();const H=await s.client.worktree.create({directory:V.worktree}).then(ve=>ve.data).catch(ve=>{Ft({title:w.t("workspace.create.failed.title"),description:$g(ve,w.t("common.requestFailed"))})});if(!H?.directory)return;bt(H.directory,H.branch,V.id,H.branch);const re=V.worktree,fe=sn(H.directory),xe=sn(re);M(H.directory,!0),ff.pending(H.directory),n("workspaceExpanded",fe,!0),fe!==H.directory&&n("workspaceExpanded",H.directory,!0),n("workspaceOrder",V.worktree,ve=>{const Fe=(ve??[]).filter(ke=>{const Ue=sn(ke);return Ue!==xe&&Ue!==fe});return[H.directory,...Fe]}),l.child(H.directory),Et(`/${It(H.directory)}/session`)},rw={currentDir:F,sidebarExpanded:ne,sidebarHovering:_e,nav:()=>N.nav,hoverSession:()=>N.hoverSession,setHoverSession:Y,clearHoverProjectSoon:ae,prefetchSession:gr,archiveSession:op,workspaceName:_n,renameWorkspace:PO,editorOpen:ge,openEditor:Re,closeEditor:Oe,setEditor:dt,InlineEditor:it,isBusy:R,workspaceExpanded:(V,H)=>npe(t.workspaceExpanded,V,H),setWorkspaceExpanded:(V,H)=>n("workspaceExpanded",V,H),showResetWorkspaceDialog:(V,H)=>g.show(()=>y(zO,{root:V,directory:H})),showDeleteWorkspaceDialog:(V,H)=>g.show(()=>y(RO,{root:V,directory:H})),setScrollContainerRef:(V,H)=>{H||(o=V)}},iw={currentDir:F,sidebarOpened:()=>c.sidebar.opened(),sidebarHovering:_e,hoverProject:()=>N.hoverProject,nav:()=>N.nav,onProjectMouseEnter:(V,H)=>le.enter(V,H),onProjectMouseLeave:V=>le.leave(V),onProjectFocus:V=>le.activate(V),navigateToProject:Vs,openSidebar:()=>c.sidebar.open(),closeProject:K4,showEditProjectDialog:Q4,toggleProjectWorkspaces:J4,workspacesEnabled:V=>V.vcs==="git"&&c.sidebar.workspaces(V.worktree)(),workspaceIds:ku,workspaceLabel:lr,sessionProps:{sidebarExpanded:ne,sidebarHovering:_e,nav:()=>N.nav,hoverSession:()=>N.hoverSession,setHoverSession:Y,clearHoverProjectSoon:ae,prefetchSession:gr,archiveSession:op},setHoverSession:Y},dp=V=>{const H=j(()=>{const ke=V.project;return ke?ke.name||$n(ke.worktree):""}),re=j(()=>V.project?.id??""),fe=j(()=>ku(V.project)),xe=j(()=>fe().reduce((ke,Ue)=>ke+f.project.unseenCount(Ue),0)),ve=()=>fe().filter(ke=>f.project.unseenCount(ke)>0).forEach(ke=>f.project.markViewed(ke)),Te=j(()=>{const ke=V.project;return!ke||ke.vcs!=="git"?!1:c.sidebar.workspaces(ke.worktree)()}),Fe=j(()=>l.data.path.home);return(()=>{var ke=Fpe(),Ue=ke.firstChild,ut=Ue.firstChild,ft=ut.firstChild,hn=ft.firstChild,an=hn.nextSibling,Hn=an.nextSibling;return P(ke,y(de,{get when(){return V.project},children:xt=>[(()=>{var xi=jpe(),Dn=xi.firstChild,Si=Dn.firstChild;return P(Si,y(it,{get id(){return`project:${re()}`},value:H,onSave:_i=>MO(xt(),_i),class:"text-14-medium text-text-strong truncate",displayClass:"text-14-medium text-text-strong truncate",stopPropagation:!0}),null),P(Si,y(_r,{placement:"bottom",gutter:2,get value(){return xt().worktree},class:"shrink-0",contentStyle:{"max-width":"640px",transform:"translate3d(52px, 0, 0)"},get children(){var _i=Vpe();return P(_i,()=>xt().worktree.replace(Fe(),"~")),_i}}),null),P(Dn,y(St,{get modal(){return!_e()},get children(){return[y(St.Trigger,{as:xn,icon:"dot-grid",variant:"ghost","data-action":"project-menu",get"data-project"(){return It(xt().worktree)},class:"shrink-0 size-6 rounded-md data-[expanded]:bg-surface-base-active",get classList(){return{"opacity-0 group-hover/project:opacity-100 data-[expanded]:opacity-100":!V.mobile}},get"aria-label"(){return w.t("common.moreOptions")}}),y(St.Portal,{get mount(){return Le(()=>!V.mobile)()?N.nav:void 0},get children(){return y(St.Content,{class:"mt-1",get children(){return[y(St.Item,{onSelect:()=>Q4(xt()),get children(){return y(St.ItemLabel,{get children(){return w.t("common.edit")}})}}),y(St.Item,{"data-action":"project-workspaces-toggle",get"data-project"(){return It(xt().worktree)},get disabled(){return Le(()=>xt().vcs!=="git")()&&!c.sidebar.workspaces(xt().worktree)()},onSelect:()=>J4(xt()),get children(){return y(St.ItemLabel,{get children(){return Le(()=>!!c.sidebar.workspaces(xt().worktree)())()?w.t("sidebar.workspaces.disable"):w.t("sidebar.workspaces.enable")}})}}),y(St.Item,{"data-action":"project-clear-notifications",get"data-project"(){return It(xt().worktree)},get disabled(){return xe()===0},onSelect:ve,get children(){return y(St.ItemLabel,{get children(){return w.t("sidebar.project.clearNotifications")}})}}),y(St.Separator,{}),y(St.Item,{"data-action":"project-close-menu",get"data-project"(){return It(xt().worktree)},onSelect:()=>K4(xt().worktree),get children(){return y(St.ItemLabel,{get children(){return w.t("common.close")}})}})]}})}})]}}),null),xi})(),(()=>{var xi=Upe();return P(xi,y(de,{get when(){return Te()},get fallback(){return[(()=>{var Dn=p7();return P(Dn,y(gd,{get title(){return w.t("command.session.new")},get keybind(){return k.keybind("session.new")},placement:"top",get children(){return y(At,{size:"large",icon:"plus-small",class:"w-full",onClick:()=>Et(`/${It(xt().worktree)}/session`),get children(){return w.t("command.session.new")}})}})),Dn})(),(()=>{var Dn=qpe();return P(Dn,y(tpe,{ctx:rw,get project(){return xt()},sortNow:K,get mobile(){return V.mobile}})),Dn})()]},get children(){return[(()=>{var Dn=p7();return P(Dn,y(gd,{get title(){return w.t("workspace.new")},get keybind(){return k.keybind("workspace.new")},placement:"top",get children(){return y(At,{size:"large",icon:"plus-small",class:"w-full",onClick:()=>nw(xt()),get children(){return w.t("workspace.new")}})}})),Dn})(),(()=>{var Dn=Hpe();return P(Dn,y(oP,{onDragStart:NO,onDragEnd:VO,onDragOver:FO,collisionDetector:rP,get children(){return[y(aP,{}),y(KP,{}),(()=>{var Si=Bpe();return or(_i=>{V.mobile||(o=_i)},Si),P(Si,y(cP,{get ids(){return fe()},get children(){return y(on,{get each(){return fe()},children:_i=>y(epe,{ctx:rw,directory:_i,get project(){return xt()},sortNow:K,get mobile(){return V.mobile}})})}})),Si})(),y(sP,{get children(){return y(Qme,{sidebarProject:tw,activeWorkspace:()=>t.activeWorkspace,workspaceLabel:lr})}})]}})),Dn})()]}})),xi})()]}),Ue),P(hn,()=>w.t("sidebar.gettingStarted.title")),P(an,()=>w.t("sidebar.gettingStarted.line1")),P(Hn,()=>w.t("sidebar.gettingStarted.line2")),P(ut,y(At,{class:"flex w-full text-left justify-start text-12-medium text-text-strong stroke-[1.5px] rounded-md rounded-t-none shadow-none border-t border-border-weak-base px-3",size:"large",icon:"plus",onClick:U4,get children(){return w.t("command.provider.connect")}}),null),Ne(xt=>{var xi={"flex flex-col min-h-0 bg-background-stronger border border-b-0 border-border-weak-base rounded-tl-[12px]":!0,"flex-1 min-w-0":V.mobile},Dn=V.mobile?void 0:`${Math.max(c.sidebar.width()-64,0)}px`,Si=!(v.all().length>0&&v.paid().length===0);return xt.e=ln(ke,xi,xt.e),Dn!==xt.t&&zi(ke,"width",xt.t=Dn),Si!==xt.a&&Ue.classList.toggle("hidden",xt.a=Si),xt},{e:void 0,t:void 0,a:void 0}),ke})()};return(()=>{var V=Zpe(),H=V.firstChild,re=H.firstChild,fe=re.firstChild,xe=re.nextSibling,ve=xe.firstChild,Te=ve.nextSibling,Fe=xe.nextSibling;return P(V,y(J0e,{}),H),re.addEventListener("mouseleave",()=>{le.reset(),_e()&&(G.current!==void 0&&clearTimeout(G.current),G.current=window.setTimeout(()=>{G.current=void 0,B(void 0),D("hoverSession",void 0)},300))}),re.addEventListener("mouseenter",()=>{G.current!==void 0&&(clearTimeout(G.current),G.current=void 0)}),or(ke=>{D("nav",ke)},re),ln(re,{"hidden xl:block":!0,"relative shrink-0":!0}),P(fe,y(m7,{opened:()=>c.sidebar.opened(),get aimMove(){return le.move},projects:()=>c.projects.list(),renderProject:ke=>y(h7,{ctx:iw,project:ke,sortNow:K}),handleDragStart:X4,handleDragEnd:ew,handleDragOver:Y4,get openProjectLabel(){return w.t("command.project.open")},openProjectKeybind:()=>k.keybind("project.open"),onOpenProject:cp,renderProjectOverlay:()=>y(f7,{projects:()=>c.projects.list(),activeProject:()=>t.activeProject}),settingsLabel:()=>w.t("sidebar.settings"),settingsKeybind:()=>k.keybind("settings.open"),onOpenSettings:ap,helpLabel:()=>w.t("sidebar.help"),onOpenHelp:()=>u.openLink("https://opencode.ai/desktop-feedback"),renderPanel:()=>y(de,{get when(){return Ke()},keyed:!0,children:ke=>y(dp,{project:ke})})})),P(re,y(de,{get when(){return Le(()=>!c.sidebar.opened())()?ie()?.worktree:void 0},keyed:!0,children:ke=>(()=>{var Ue=Wpe();return ga(Ue,"mouseenter",le.reset),P(Ue,y(dp,{get project(){return ie()}})),Ue})()}),null),P(re,y(de,{get when(){return c.sidebar.opened()},get children(){return y(yce,{direction:"horizontal",get size(){return c.sidebar.width()},min:244,get max(){return typeof window>"u"?1e3:window.innerWidth*.3+64},collapseThreshold:244,get onResize(){return c.sidebar.resize},get onCollapse(){return c.sidebar.close}})}}),null),ve.$$click=ke=>{ke.target===ke.currentTarget&&c.mobileSidebar.hide()},Te.$$click=ke=>ke.stopPropagation(),P(Te,y(m7,{mobile:!0,opened:()=>c.sidebar.opened(),get aimMove(){return le.move},projects:()=>c.projects.list(),renderProject:ke=>y(h7,{ctx:iw,project:ke,sortNow:K,mobile:!0}),handleDragStart:X4,handleDragEnd:ew,handleDragOver:Y4,get openProjectLabel(){return w.t("command.project.open")},openProjectKeybind:()=>k.keybind("project.open"),onOpenProject:cp,renderProjectOverlay:()=>y(f7,{projects:()=>c.projects.list(),activeProject:()=>t.activeProject}),settingsLabel:()=>w.t("sidebar.settings"),settingsKeybind:()=>k.keybind("settings.open"),onOpenSettings:ap,helpLabel:()=>w.t("sidebar.help"),onOpenHelp:()=>u.openLink("https://opencode.ai/desktop-feedback"),renderPanel:()=>y(dp,{get project(){return Ke()},mobile:!0})})),P(Fe,y(de,{get when(){return!be()},get fallback(){return Gpe()},get children(){return e.children}})),P(V,y(la.Region,{}),null),Ne(ke=>{var Ue=w.t("sidebar.nav.projectsAndSessions"),ut=c.sidebar.opened()?`${Math.max(c.sidebar.width(),244)}px`:"64px",ft={"fixed inset-x-0 top-10 bottom-0 z-40 transition-opacity duration-200":!0,"opacity-100 pointer-events-auto":c.mobileSidebar.opened(),"opacity-0 pointer-events-none":!c.mobileSidebar.opened()},hn=w.t("sidebar.nav.projectsAndSessions"),an={"@container fixed top-10 bottom-0 left-0 z-50 w-72 bg-background-base transition-transform duration-200 ease-out":!0,"translate-x-0":c.mobileSidebar.opened(),"-translate-x-full":!c.mobileSidebar.opened()},Hn={"size-full overflow-x-hidden flex flex-col items-start contain-strict border-t border-border-weak-base":!0,"xl:border-l xl:rounded-tl-[12px]":!c.sidebar.opened()};return Ue!==ke.e&&et(re,"aria-label",ke.e=Ue),ut!==ke.t&&zi(re,"width",ke.t=ut),ke.a=ln(ve,ft,ke.a),hn!==ke.o&&et(Te,"aria-label",ke.o=hn),ke.i=ln(Te,an,ke.i),ke.n=ln(Fe,Hn,ke.n),ke},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),V})()}rr(["click"]);var Jpe=Q('<svg data-component=logo-mark viewBox="0 0 16 20"fill=none xmlns=http://www.w3.org/2000/svg><path data-slot=logo-logo-mark-shadow d="M12 16H4V8H12V16Z"fill=var(--icon-weak-base)></path><path data-slot=logo-logo-mark-o d="M12 4H4V16H12V4ZM16 20H0V0H16V20Z"fill=var(--icon-strong-base)>'),Qpe=Q('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 234 42"fill=none><g><path d="M18 30H6V18H18V30Z"fill=var(--icon-weak-base)></path><path d="M18 12H6V30H18V12ZM24 36H0V6H24V36Z"fill=var(--icon-base)></path><path d="M48 30H36V18H48V30Z"fill=var(--icon-weak-base)></path><path d="M36 30H48V12H36V30ZM54 36H36V42H30V6H54V36Z"fill=var(--icon-base)></path><path d="M84 24V30H66V24H84Z"fill=var(--icon-weak-base)></path><path d="M84 24H66V30H84V36H60V6H84V24ZM66 18H78V12H66V18Z"fill=var(--icon-base)></path><path d="M108 36H96V18H108V36Z"fill=var(--icon-weak-base)></path><path d="M108 12H96V36H90V6H108V12ZM114 36H108V12H114V36Z"fill=var(--icon-base)></path><path d="M144 30H126V18H144V30Z"fill=var(--icon-weak-base)></path><path d="M144 12H126V30H144V36H120V6H144V12Z"fill=var(--icon-strong-base)></path><path d="M168 30H156V18H168V30Z"fill=var(--icon-weak-base)></path><path d="M168 12H156V30H168V12ZM174 36H150V6H174V36Z"fill=var(--icon-strong-base)></path><path d="M198 30H186V18H198V30Z"fill=var(--icon-weak-base)></path><path d="M198 12H186V30H198V12ZM204 36H180V6H198V0H204V36Z"fill=var(--icon-strong-base)></path><path d="M234 24V30H216V24H234Z"fill=var(--icon-weak-base)></path><path d="M216 12V18H228V12H216ZM234 24H216V30H234V36H210V6H234V24Z"fill=var(--icon-strong-base)>');const vve=e=>(()=>{var t=Jpe();return Ne(n=>ln(t,{[e.class??""]:!!e.class},n)),t})(),Xpe=e=>(()=>{var t=Qpe();return Ne(n=>ln(t,{[e.class??""]:!!e.class},n)),t})();var Ype=Q('<div class="relative flex-1 h-screen w-screen min-h-0 flex flex-col items-center justify-center bg-background-base font-sans"><div class="w-2/3 max-w-3xl flex flex-col items-center justify-center gap-8"><div class="flex flex-col items-center gap-2 text-center"><h1 class="text-lg font-medium text-text-strong"></h1><p class="text-sm text-text-weak"></p></div><div class="flex items-center gap-3"></div><div class="flex flex-col items-center gap-2"><div class="flex items-center justify-center gap-1"><button type=button class="flex items-center text-text-interactive-base gap-1"><div>'),ege=Q('<p class="text-xs text-text-danger-base text-center max-w-2xl">'),tge=Q('<p class="text-xs text-text-weak">');const mf=`
2395
2395
  `+"─".repeat(40)+`
@@ -2410,4 +2410,4 @@ ${c}`)}if(!c&&!o&&a.push(s+l),e.cause){const d=SO(e.cause,t,n+1,e.message);d&&a.
2410
2410
  ${mf}${t("error.chain.causedBy")}
2411
2411
  `:"")+e:(n>0?`
2412
2412
  ${mf}${t("error.chain.causedBy")}
2413
- `:"")+Ii(e)}function zg(e,t){return SO(e,t,0)}const oge=e=>{const t=Er(),n=Kt(),[r,i]=He({checking:!1,version:void 0,actionError:void 0});async function o(){t.checkUpdate&&(i("checking",!0),await t.checkUpdate().then(s=>{i("actionError",void 0),s.updateAvailable&&s.version&&i("version",s.version)}).catch(s=>{i("actionError",zg(s,n.t))}).finally(()=>{i("checking",!1)}))}async function a(){!t.update||!t.restart||await t.update().then(()=>t.restart()).then(()=>i("actionError",void 0)).catch(s=>{i("actionError",zg(s,n.t))})}return(()=>{var s=Ype(),l=s.firstChild,c=l.firstChild,d=c.firstChild,u=d.nextSibling,h=c.nextSibling,m=h.nextSibling,f=m.firstChild,p=f.firstChild,b=p.firstChild;return P(l,y(Xpe,{class:"w-58.5 opacity-12 shrink-0"}),c),P(d,()=>n.t("error.page.title")),P(u,()=>n.t("error.page.description")),P(l,y(En,{get value(){return zg(e.error,n.t)},readOnly:!0,copyable:!0,multiline:!0,class:"max-h-96 w-full font-mono text-xs no-scrollbar",get label(){return n.t("error.page.details.label")},hideLabel:!0}),h),P(h,y(At,{size:"large",get onClick(){return t.restart},get children(){return n.t("error.page.action.restart")}}),null),P(h,y(de,{get when(){return t.checkUpdate},get children(){return y(de,{get when(){return r.version},get fallback(){return y(At,{size:"large",variant:"ghost",onClick:o,get disabled(){return r.checking},get children(){return Le(()=>!!r.checking)()?n.t("error.page.action.checking"):n.t("error.page.action.checkUpdates")}})},get children(){return y(At,{size:"large",onClick:a,get children(){return n.t("error.page.action.updateTo",{version:r.version??""})}})}})}}),null),P(l,y(de,{get when(){return r.actionError},children:v=>(()=>{var g=ege();return P(g,v),g})()}),m),P(f,()=>n.t("error.page.report.prefix"),p),p.$$click=()=>t.openLink("https://opencode.ai/desktop-feedback"),P(b,()=>n.t("error.page.report.discord")),P(p,y(Dt,{name:"discord",class:"text-text-interactive-base"}),null),P(m,y(de,{get when(){return t.version},children:v=>(()=>{var g=tge();return P(g,()=>n.t("error.page.version",{version:v()})),g})()}),null),s})()};rr(["click"]);var age=Q("<div class=size-full>");const sge=C7(()=>A(()=>import("./home-CvPou5Jd.js"),[])),lge=C7(()=>A(()=>import("./session-DXwXMH7X.js"),[])),_O=()=>age(),cge=()=>y(I7,{get fallback(){return y(_O,{})},get children(){return y(sge,{})}}),dge=()=>y(pge,{get children(){return y(I7,{get fallback(){return y(_O,{})},get children(){return y(lge,{})}})}}),uge=()=>y(aX,{href:"session"});function fge(e){const t=Kt();return y(LB,{get value(){return{locale:t.locale,t:t.t}},get children(){return e.children}})}function hge(e){const t=Er();return y(EG,{get nativeParser(){return t.parseMarkdown},get children(){return e.children}})}function mge(e){return y(TX,{get children(){return y(Kle,{get children(){return y(Uie,{get children(){return y(Ule,{get children(){return y(Jse,{get children(){return y($X,{get children(){return y(Soe,{get children(){return y(Kpe,{get children(){return e.children}})}})}})}})}})}})}})}})}function pge(e){return y(uce,{get children(){return y(aoe,{get children(){return y(ace,{get children(){return y(qX,{get children(){return e.children}})}})}})}})}function gge(e){return y(mge,{get children(){return[Le(()=>e.appChildren),Le(()=>e.children)]}})}function vge(e){return y(LG,{get children(){return[y(sK,{}),y(LQ,{get children(){return y(IX,{get children(){return y(fge,{get children(){return y(i$,{fallback:t=>y(oge,{error:t}),get children(){return y(mU,{get children(){return y(hge,{get children(){return y(fH,{component:dH,get children(){return e.children}})}})}})}})}})}})}})]}})}function bge(e){const t=su();return y(de,{get when(){return t.key},keyed:!0,get children(){return e.children}})}function yge(e){return y(aie,{get defaultServer(){return e.defaultServer},get servers(){return e.servers},get children(){return y(bge,{get children(){return y(lie,{get children(){return y(Die,{get children(){return y(iX,{root:t=>y(gge,{get appChildren(){return e.children},get children(){return t.children}}),get children(){return[y(Ju,{path:"/",component:cge}),y(Ju,{path:"/:dir",component:vce,get children(){return[y(Ju,{path:"/",component:uge}),y(Ju,{path:"/session/:id?",component:dge})]}})]}})}})}})}})}})}const wge=(e,t=window)=>{t.focus(),e&&t.location.assign(e)},kge="0.2.4",xge={version:kge},AO="opencode.settings.dat:defaultServerUrl",Sge=e=>{if(typeof localStorage>"u")return null;try{return localStorage.getItem(e)}catch{return null}},_ge=(e,t)=>{if(!(typeof localStorage>"u"))try{if(t!==null){localStorage.setItem(e,t);return}localStorage.removeItem(e)}catch{return}},CO=()=>Sge(AO),Age=e=>_ge(AO,e),Cge=async(e,t,n)=>{if(!("Notification"in window)||(Notification.permission==="default"?await Notification.requestPermission().catch(()=>"denied"):Notification.permission)!=="granted"||document.visibilityState==="visible"&&document.hasFocus())return;const o=new Notification(e,{body:t??"",icon:"https://opencode.ai/favicon-96x96-v3.png"});o.onclick=()=>{wge(n),o.close()}},Ege=e=>{window.open(e,"_blank")},Ige=()=>{window.history.back()},Tge=()=>{window.history.forward()},Lge=async()=>{window.location.reload()},g7=document.getElementById("root"),Dge={platform:"web",version:xge.version,openLink:Ege,back:Ige,forward:Tge,restart:Lge,notify:Cge,getDefaultServerUrl:async()=>CO(),setDefaultServerUrl:Age},Mge=I$(()=>{const e=CO();return e||(location.hostname.includes("opencode.ai")?"http://localhost:4096":location.origin)});if(g7 instanceof HTMLElement){const e={type:"http",http:{url:Mge}};g$(()=>y(dX,{value:Dge,get children(){return y(vge,{get children(){return y(yge,{get defaultServer(){return Pn.key(e)},servers:[e]})}})}}),g7)}export{In as $,me as A,At as B,Wt as C,jfe as D,nr as E,on as F,ee as G,cn as H,Dt as I,Be as J,Ma as K,Xpe as L,Ot as M,Uo as N,Fa as O,Wi as P,kt as Q,Pa as R,Ur as S,We as T,Da as U,de as V,db as W,fb as X,cb as Y,Id as Z,Pr as _,Ms as a,Gl as a$,Or as a0,Ct as a1,yt as a2,Ve as a3,pn as a4,zn as a5,Ar as a6,Wl as a7,xn as a8,o4 as a9,$M as aA,gt as aB,z4 as aC,jM as aD,Lm as aE,iO as aF,rO as aG,nO as aH,tve as aI,Ss as aJ,Ff as aK,or as aL,ga as aM,zi as aN,$3 as aO,dH as aP,dve as aQ,dP as aR,n7 as aS,fve as aT,SY as aU,_t as aV,Km as aW,gu as aX,pu as aY,nb as aZ,E4 as a_,bm as aa,Pn as ab,ni as ac,Mfe as ad,Dfe as ae,et as af,eo as ag,jc as ah,$t as ai,Fl as aj,Ft as ak,rr as al,qi as am,Jr as an,oy as ao,Oo as ap,$n as aq,tr as ar,Ln as as,Zh as at,St as au,En as av,_r as aw,gd as ax,VM as ay,Dm as az,Er as b,vP as b$,I4 as b0,D4 as b1,Gm as b2,Gi as b3,sb as b4,Ufe as b5,Jh as b6,qge as b7,Gge as b8,Zge as b9,t7 as bA,Rg as bB,BM as bC,T4 as bD,L4 as bE,_s as bF,Cd as bG,fa as bH,Oge as bI,Jge as bJ,rn as bK,nme as bL,WO as bM,st as bN,mo as bO,Jm as bP,Ef as bQ,hve as bR,io as bS,bd as bT,os as bU,uve as bV,g4 as bW,C8 as bX,Yj as bY,fu as bZ,cs as b_,g$ as ba,Kge as bb,Qge as bc,OB as bd,nt as be,GB as bf,oO as bg,E$ as bh,zo as bi,Wge as bj,Ts as bk,ty as bl,qv as bm,Ah as bn,nve as bo,n_ as bp,Kn as bq,A as br,J8 as bs,yce as bt,oP as bu,rP as bv,aP as bw,pve as bx,cP as by,sP as bz,Ui as c,RX as c0,E3 as c1,Fie as c2,ff as c3,ive as c4,rve as c5,uP as c6,Xle as c7,b1 as c8,Ga as c9,gve as ca,Eme as cb,mw as cc,vve as cd,Ng as ce,Ra as d,su as e,Kt as f,j as g,y as h,P as i,Ne as j,ln as k,Xe as l,Le as m,It as n,A0e as o,se as p,Kj as q,bv as r,ce as s,Q as t,ar as u,Xj as v,he as w,He as x,Ht as y,ue as z};
2413
+ `:"")+Ii(e)}function zg(e,t){return SO(e,t,0)}const oge=e=>{const t=Er(),n=Kt(),[r,i]=He({checking:!1,version:void 0,actionError:void 0});async function o(){t.checkUpdate&&(i("checking",!0),await t.checkUpdate().then(s=>{i("actionError",void 0),s.updateAvailable&&s.version&&i("version",s.version)}).catch(s=>{i("actionError",zg(s,n.t))}).finally(()=>{i("checking",!1)}))}async function a(){!t.update||!t.restart||await t.update().then(()=>t.restart()).then(()=>i("actionError",void 0)).catch(s=>{i("actionError",zg(s,n.t))})}return(()=>{var s=Ype(),l=s.firstChild,c=l.firstChild,d=c.firstChild,u=d.nextSibling,h=c.nextSibling,m=h.nextSibling,f=m.firstChild,p=f.firstChild,b=p.firstChild;return P(l,y(Xpe,{class:"w-58.5 opacity-12 shrink-0"}),c),P(d,()=>n.t("error.page.title")),P(u,()=>n.t("error.page.description")),P(l,y(En,{get value(){return zg(e.error,n.t)},readOnly:!0,copyable:!0,multiline:!0,class:"max-h-96 w-full font-mono text-xs no-scrollbar",get label(){return n.t("error.page.details.label")},hideLabel:!0}),h),P(h,y(At,{size:"large",get onClick(){return t.restart},get children(){return n.t("error.page.action.restart")}}),null),P(h,y(de,{get when(){return t.checkUpdate},get children(){return y(de,{get when(){return r.version},get fallback(){return y(At,{size:"large",variant:"ghost",onClick:o,get disabled(){return r.checking},get children(){return Le(()=>!!r.checking)()?n.t("error.page.action.checking"):n.t("error.page.action.checkUpdates")}})},get children(){return y(At,{size:"large",onClick:a,get children(){return n.t("error.page.action.updateTo",{version:r.version??""})}})}})}}),null),P(l,y(de,{get when(){return r.actionError},children:v=>(()=>{var g=ege();return P(g,v),g})()}),m),P(f,()=>n.t("error.page.report.prefix"),p),p.$$click=()=>t.openLink("https://opencode.ai/desktop-feedback"),P(b,()=>n.t("error.page.report.discord")),P(p,y(Dt,{name:"discord",class:"text-text-interactive-base"}),null),P(m,y(de,{get when(){return t.version},children:v=>(()=>{var g=tge();return P(g,()=>n.t("error.page.version",{version:v()})),g})()}),null),s})()};rr(["click"]);var age=Q("<div class=size-full>");const sge=C7(()=>A(()=>import("./home-BVcfU4oW.js"),[])),lge=C7(()=>A(()=>import("./session-CZ-wC_3g.js"),[])),_O=()=>age(),cge=()=>y(I7,{get fallback(){return y(_O,{})},get children(){return y(sge,{})}}),dge=()=>y(pge,{get children(){return y(I7,{get fallback(){return y(_O,{})},get children(){return y(lge,{})}})}}),uge=()=>y(aX,{href:"session"});function fge(e){const t=Kt();return y(LB,{get value(){return{locale:t.locale,t:t.t}},get children(){return e.children}})}function hge(e){const t=Er();return y(EG,{get nativeParser(){return t.parseMarkdown},get children(){return e.children}})}function mge(e){return y(TX,{get children(){return y(Kle,{get children(){return y(Uie,{get children(){return y(Ule,{get children(){return y(Jse,{get children(){return y($X,{get children(){return y(Soe,{get children(){return y(Kpe,{get children(){return e.children}})}})}})}})}})}})}})}})}function pge(e){return y(uce,{get children(){return y(aoe,{get children(){return y(ace,{get children(){return y(qX,{get children(){return e.children}})}})}})}})}function gge(e){return y(mge,{get children(){return[Le(()=>e.appChildren),Le(()=>e.children)]}})}function vge(e){return y(LG,{get children(){return[y(sK,{}),y(LQ,{get children(){return y(IX,{get children(){return y(fge,{get children(){return y(i$,{fallback:t=>y(oge,{error:t}),get children(){return y(mU,{get children(){return y(hge,{get children(){return y(fH,{component:dH,get children(){return e.children}})}})}})}})}})}})}})]}})}function bge(e){const t=su();return y(de,{get when(){return t.key},keyed:!0,get children(){return e.children}})}function yge(e){return y(aie,{get defaultServer(){return e.defaultServer},get servers(){return e.servers},get children(){return y(bge,{get children(){return y(lie,{get children(){return y(Die,{get children(){return y(iX,{get base(){return"/ikanban/".replace(/\/+$/,"")},root:t=>y(gge,{get appChildren(){return e.children},get children(){return t.children}}),get children(){return[y(Ju,{path:"/",component:cge}),y(Ju,{path:"/:dir",component:vce,get children(){return[y(Ju,{path:"/",component:uge}),y(Ju,{path:"/session/:id?",component:dge})]}})]}})}})}})}})}})}const wge=(e,t=window)=>{t.focus(),e&&t.location.assign(e)},kge="0.2.6",xge={version:kge},AO="opencode.settings.dat:defaultServerUrl",Sge=e=>{if(typeof localStorage>"u")return null;try{return localStorage.getItem(e)}catch{return null}},_ge=(e,t)=>{if(!(typeof localStorage>"u"))try{if(t!==null){localStorage.setItem(e,t);return}localStorage.removeItem(e)}catch{return}},CO=()=>Sge(AO),Age=e=>_ge(AO,e),Cge=async(e,t,n)=>{if(!("Notification"in window)||(Notification.permission==="default"?await Notification.requestPermission().catch(()=>"denied"):Notification.permission)!=="granted"||document.visibilityState==="visible"&&document.hasFocus())return;const o=new Notification(e,{body:t??"",icon:"https://opencode.ai/favicon-96x96-v3.png"});o.onclick=()=>{wge(n),o.close()}},Ege=e=>{window.open(e,"_blank")},Ige=()=>{window.history.back()},Tge=()=>{window.history.forward()},Lge=async()=>{window.location.reload()},g7=document.getElementById("root"),Dge={platform:"web",version:xge.version,openLink:Ege,back:Ige,forward:Tge,restart:Lge,notify:Cge,getDefaultServerUrl:async()=>CO(),setDefaultServerUrl:Age},Mge=I$(()=>{const e=CO();if(e)return e;if(location.hostname.includes("opencode.ai"))return"http://localhost:4096";const t="/ikanban/".replace(/\/+$/,"");return location.origin+t});if(g7 instanceof HTMLElement){const e={type:"http",http:{url:Mge}};g$(()=>y(dX,{value:Dge,get children(){return y(vge,{get children(){return y(yge,{get defaultServer(){return Pn.key(e)},servers:[e]})}})}}),g7)}export{In as $,me as A,At as B,Wt as C,jfe as D,nr as E,on as F,ee as G,cn as H,Dt as I,Be as J,Ma as K,Xpe as L,Ot as M,Uo as N,Fa as O,Wi as P,kt as Q,Pa as R,Ur as S,We as T,Da as U,de as V,db as W,fb as X,cb as Y,Id as Z,Pr as _,Ms as a,Gl as a$,Or as a0,Ct as a1,yt as a2,Ve as a3,pn as a4,zn as a5,Ar as a6,Wl as a7,xn as a8,o4 as a9,$M as aA,gt as aB,z4 as aC,jM as aD,Lm as aE,iO as aF,rO as aG,nO as aH,tve as aI,Ss as aJ,Ff as aK,or as aL,ga as aM,zi as aN,$3 as aO,dH as aP,dve as aQ,dP as aR,n7 as aS,fve as aT,SY as aU,_t as aV,Km as aW,gu as aX,pu as aY,nb as aZ,E4 as a_,bm as aa,Pn as ab,ni as ac,Mfe as ad,Dfe as ae,et as af,eo as ag,jc as ah,$t as ai,Fl as aj,Ft as ak,rr as al,qi as am,Jr as an,oy as ao,Oo as ap,$n as aq,tr as ar,Ln as as,Zh as at,St as au,En as av,_r as aw,gd as ax,VM as ay,Dm as az,Er as b,vP as b$,I4 as b0,D4 as b1,Gm as b2,Gi as b3,sb as b4,Ufe as b5,Jh as b6,qge as b7,Gge as b8,Zge as b9,t7 as bA,Rg as bB,BM as bC,T4 as bD,L4 as bE,_s as bF,Cd as bG,fa as bH,Oge as bI,Jge as bJ,rn as bK,nme as bL,WO as bM,st as bN,mo as bO,Jm as bP,Ef as bQ,hve as bR,io as bS,bd as bT,os as bU,uve as bV,g4 as bW,C8 as bX,Yj as bY,fu as bZ,cs as b_,g$ as ba,Kge as bb,Qge as bc,OB as bd,nt as be,GB as bf,oO as bg,E$ as bh,zo as bi,Wge as bj,Ts as bk,ty as bl,qv as bm,Ah as bn,nve as bo,n_ as bp,Kn as bq,A as br,J8 as bs,yce as bt,oP as bu,rP as bv,aP as bw,pve as bx,cP as by,sP as bz,Ui as c,RX as c0,E3 as c1,Fie as c2,ff as c3,ive as c4,rve as c5,uP as c6,Xle as c7,b1 as c8,Ga as c9,gve as ca,Eme as cb,mw as cc,vve as cd,Ng as ce,Ra as d,su as e,Kt as f,j as g,y as h,P as i,Ne as j,ln as k,Xe as l,Le as m,It as n,A0e as o,se as p,Kj as q,bv as r,ce as s,Q as t,ar as u,Xj as v,he as w,He as x,Ht as y,ue as z};