laplus 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/ui/dist/assets/{DiffPanel-CmLwL5Y4.js → DiffPanel-DRLb5V2O.js} +2 -2
- package/ui/dist/assets/{DiffPanel-CmLwL5Y4.js.map → DiffPanel-DRLb5V2O.js.map} +1 -1
- package/ui/dist/assets/{FilePreviewPanel-7UYO5Mra.js → FilePreviewPanel-CNxX4J5k.js} +2 -2
- package/ui/dist/assets/{FilePreviewPanel-7UYO5Mra.js.map → FilePreviewPanel-CNxX4J5k.js.map} +1 -1
- package/ui/dist/assets/{PreviewPanel-VFr5-jjQ.js → PreviewPanel-D1RgBgdC.js} +2 -2
- package/ui/dist/assets/{PreviewPanel-VFr5-jjQ.js.map → PreviewPanel-D1RgBgdC.js.map} +1 -1
- package/ui/dist/assets/{fileCommentAnnotations-3602doIr.js → fileCommentAnnotations-CLPA7umr.js} +2 -2
- package/ui/dist/assets/{fileCommentAnnotations-3602doIr.js.map → fileCommentAnnotations-CLPA7umr.js.map} +1 -1
- package/ui/dist/assets/{index-BIRnPNNR.js → index-c0OLJn1C.js} +4 -4
- package/ui/dist/assets/{index-BIRnPNNR.js.map → index-c0OLJn1C.js.map} +1 -1
- package/ui/dist/index.html +1 -1
- package/ui/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BWxByP32.js","assets/textarea-Zwf6kD06.js","assets/html-DJCPdKUp.js","assets/javascript-D37e4Ebm.js","assets/css-BqQF2EU3.js","assets/angular-ts-B2_IksKr.js","assets/scss-BdcXrNg6.js","assets/apl-ecw607oY.js","assets/xml-dM0rHWsA.js","assets/java-ClnfZOUM.js","assets/json-TRK1aIe4.js","assets/astro-BYMVCdcN.js","assets/typescript-CQ9qY0Sc.js","assets/postcss-BXeXVLqQ.js","assets/tsx-CHY8zRYv.js","assets/blade-q0R4q9Zq.js","assets/html-derivative-C_JNBSk0.js","assets/sql-CWmFJ2ju.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-CQ_AHwvO.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-BKc6YUsr.js","assets/coffee-BLGRuec7.js","assets/cpp-CLPqrgHd.js","assets/regexp-Bq5IdD0F.js","assets/glsl-CkjSNxNP.js","assets/crystal-D-uxvbaH.js","assets/shellscript-BgmXdX_V.js","assets/edge-GRO0ZpOW.js","assets/elixir-BlfpVKHa.js","assets/elm-Cpa49omK.js","assets/erb-BFDP230N.js","assets/ruby-BnMMlydo.js","assets/haml-D2n9hqPI.js","assets/graphql-eex55usL.js","assets/jsx-7pX_kc5Y.js","assets/lua-V1Qfvayw.js","assets/yaml-dHXDXwl2.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-C0sCabJj.js","assets/gdshader-CBce3t8t.js","assets/gdscript-Cp2uCuqX.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-0evBO-M8.js","assets/glimmer-js-BAx5vUUE.js","assets/glimmer-ts-D2Ug4-Sy.js","assets/hack-B738L03x.js","assets/handlebars-__U5hkhT.js","assets/http-DAac9V6H.js","assets/hurl-BgFsg-TN.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-JzBasKKC.js","assets/jison-DiVNxkLf.js","assets/julia-Bxx8rVxT.js","assets/r-C8IHvvjJ.js","assets/just-Dq5zHk-K.js","assets/perl-PAiuHsKr.js","assets/latex-D_Matgxu.js","assets/tex-DIYrOAid.js","assets/liquid-B5OpDHPX.js","assets/marko-BA_WDsbC.js","assets/less-DVTAwKKz.js","assets/mdc-CKsgYIYb.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-C6AJxnqB.js","assets/nim-CGw0GEac.js","assets/php-CwA8Ewwm.js","assets/pug-26Tvw61z.js","assets/qml-B6A1mR1j.js","assets/razor-9LIndxxx.js","assets/csharp-oqKa8noW.js","assets/rst-CI41XoEZ.js","assets/cmake-Bj61d0ZC.js","assets/sas-C87GDyDq.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-DcFlpQUC.js","assets/soy-HBJvz-6c.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-SuJQtoXO.js","assets/surrealql-B1lytfeo.js","assets/svelte-BdSLyBkK.js","assets/templ-r3WMvb_b.js","assets/go-rLFTqkRN.js","assets/ts-tags-CWtYyhwa.js","assets/twig-DDPvfGun.js","assets/vue-Cwr6RLe0.js","assets/vue-html-CNSJD5Z5.js","assets/vue-vine-B7p0G_k2.js","assets/stylus-B6D30XZt.js","assets/xsl-CPZGOeNk.js","assets/PreviewPanel-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BWxByP32.js","assets/textarea-Zwf6kD06.js","assets/html-DJCPdKUp.js","assets/javascript-D37e4Ebm.js","assets/css-BqQF2EU3.js","assets/angular-ts-B2_IksKr.js","assets/scss-BdcXrNg6.js","assets/apl-ecw607oY.js","assets/xml-dM0rHWsA.js","assets/java-ClnfZOUM.js","assets/json-TRK1aIe4.js","assets/astro-BYMVCdcN.js","assets/typescript-CQ9qY0Sc.js","assets/postcss-BXeXVLqQ.js","assets/tsx-CHY8zRYv.js","assets/blade-q0R4q9Zq.js","assets/html-derivative-C_JNBSk0.js","assets/sql-CWmFJ2ju.js","assets/bsl-BkkzgIyY.js","assets/sdbl-bTVj8UrX.js","assets/c-CQ_AHwvO.js","assets/cairo-DLTphjLi.js","assets/python-gzcpVVnB.js","assets/cobol-BKc6YUsr.js","assets/coffee-BLGRuec7.js","assets/cpp-CLPqrgHd.js","assets/regexp-Bq5IdD0F.js","assets/glsl-CkjSNxNP.js","assets/crystal-D-uxvbaH.js","assets/shellscript-BgmXdX_V.js","assets/edge-GRO0ZpOW.js","assets/elixir-BlfpVKHa.js","assets/elm-Cpa49omK.js","assets/erb-BFDP230N.js","assets/ruby-BnMMlydo.js","assets/haml-D2n9hqPI.js","assets/graphql-eex55usL.js","assets/jsx-7pX_kc5Y.js","assets/lua-V1Qfvayw.js","assets/yaml-dHXDXwl2.js","assets/erlang-Cphh6RMH.js","assets/markdown-BYOwaDjH.js","assets/fortran-fixed-form-DEKoE2YW.js","assets/fortran-free-form-CYNrtFtB.js","assets/fsharp-D13ZGOAj.js","assets/gdresource-C0sCabJj.js","assets/gdshader-CBce3t8t.js","assets/gdscript-Cp2uCuqX.js","assets/git-commit-BSykSTBG.js","assets/diff-woXpYk--.js","assets/git-rebase-0evBO-M8.js","assets/glimmer-js-BAx5vUUE.js","assets/glimmer-ts-D2Ug4-Sy.js","assets/hack-B738L03x.js","assets/handlebars-__U5hkhT.js","assets/http-DAac9V6H.js","assets/hurl-BgFsg-TN.js","assets/csv-Dx-8-gkx.js","assets/hxml-B0Qn7Nwc.js","assets/haxe-OTjmBuCE.js","assets/jinja-JzBasKKC.js","assets/jison-DiVNxkLf.js","assets/julia-Bxx8rVxT.js","assets/r-C8IHvvjJ.js","assets/just-Dq5zHk-K.js","assets/perl-PAiuHsKr.js","assets/latex-D_Matgxu.js","assets/tex-DIYrOAid.js","assets/liquid-B5OpDHPX.js","assets/marko-BA_WDsbC.js","assets/less-DVTAwKKz.js","assets/mdc-CKsgYIYb.js","assets/nextflow-BJtWHP5T.js","assets/nextflow-groovy-DJMQeKeT.js","assets/nginx-C6AJxnqB.js","assets/nim-CGw0GEac.js","assets/php-CwA8Ewwm.js","assets/pug-26Tvw61z.js","assets/qml-B6A1mR1j.js","assets/razor-9LIndxxx.js","assets/csharp-oqKa8noW.js","assets/rst-CI41XoEZ.js","assets/cmake-Bj61d0ZC.js","assets/sas-C87GDyDq.js","assets/shaderlab-TOUzSsQk.js","assets/hlsl-Cvrh5tZx.js","assets/shellsession-DcFlpQUC.js","assets/soy-HBJvz-6c.js","assets/sparql-D_iOobhT.js","assets/turtle-ByJddavk.js","assets/stata-SuJQtoXO.js","assets/surrealql-B1lytfeo.js","assets/svelte-BdSLyBkK.js","assets/templ-r3WMvb_b.js","assets/go-rLFTqkRN.js","assets/ts-tags-CWtYyhwa.js","assets/twig-DDPvfGun.js","assets/vue-Cwr6RLe0.js","assets/vue-html-CNSJD5Z5.js","assets/vue-vine-B7p0G_k2.js","assets/stylus-B6D30XZt.js","assets/xsl-CPZGOeNk.js","assets/PreviewPanel-D1RgBgdC.js","assets/arrow-right-2FD-xj4K.js","assets/DiffPanel-DRLb5V2O.js","assets/fileCommentAnnotations-CLPA7umr.js","assets/FilePreviewPanel-CNxX4J5k.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{$ as e,$a as t,$c as n,$d as r,$i as i,$l as a,$n as o,$o as s,$r as c,$s as l,$t as u,$u as d,A as f,Aa as p,Ac as m,Ad as h,Ai as g,Al as _,An as v,Ao as y,Ar as b,As as x,At as S,Au as C,B as w,Ba as T,Bc as E,Bd as D,Bi as O,Bl as k,Bn as A,Bo as j,Bs as M,Bt as N,Bu as P,C as F,Ca as I,Cc as L,Cd as R,Ci as z,Cl as B,Cn as V,Co as H,Cr as U,Cs as W,Ct as ee,Cu as G,D as te,Da as ne,Dc as re,Dd as ie,Di as ae,Dl as oe,Dn as se,Do as ce,Dr as le,Ds as ue,Dt as de,Du as fe,E as pe,Ea as me,Ec as he,Ed as ge,Ei as _e,El as ve,En as ye,Eo as be,Er as xe,Es as Se,Et as Ce,Eu as we,F as K,Fa as Te,Fc as Ee,Fd as De,Fi as Oe,Fl as ke,Fn as Ae,Fo as je,Fr as Me,Fs as Ne,Ft as q,Fu as Pe,G as Fe,Gc as Ie,Gd as Le,Gi as Re,Gl as ze,Gn as Be,Go as Ve,Gr as He,Gs as Ue,Gt as We,Gu as Ge,H as Ke,Ha as qe,Hc as Je,Hd as Ye,Hi as Xe,Hl as Ze,Hn as Qe,Ho as $e,Hr as et,Hs as tt,Ht as nt,Hu as rt,I as it,Ia as at,Ic as ot,Id as st,Ii as ct,Il as lt,In as ut,Io as dt,Ir as ft,Is as pt,It as mt,Iu as ht,J as gt,Ja as _t,Jc as vt,Jd as yt,Ji as bt,Jl as xt,Jn as St,Jo as Ct,Jr as wt,Js as Tt,Jt as Et,Ju as Dt,K as Ot,Kc as kt,Kd as At,Ki as jt,Kl as Mt,Kn as Nt,Ko as Pt,Kr as Ft,Ks as It,Kt as Lt,Ku as Rt,L as zt,La as Bt,Lc as Vt,Ld as Ht,Li as Ut,Ll as Wt,Ln as Gt,Lo as Kt,Lr as qt,Ls as Jt,Lt as Yt,Lu as Xt,M as Zt,Ma as Qt,Mc as $t,Md as en,Mi as tn,Ml as nn,Mn as rn,Mo as an,Mr as on,Ms as sn,Mt as cn,Mu as ln,N as un,Nc as dn,Nd as fn,Ni as pn,Nl as mn,Nn as hn,No as gn,Nr as _n,Ns as vn,Nt as yn,Nu as bn,Oa as xn,Oc as Sn,Od as Cn,Oi as wn,Ol as Tn,Oo as En,Or as Dn,Os as On,Ot as kn,Ou as An,P as jn,Pa as Mn,Pc as Nn,Pd as Pn,Pi as Fn,Pl as In,Pn as Ln,Po as Rn,Pr as zn,Ps as Bn,Pt as Vn,Pu as Hn,Q as Un,Qa as Wn,Qc as Gn,Qd as Kn,Qi as qn,Ql as Jn,Qn as Yn,Qo as Xn,Qr as Zn,Qs as Qn,Qt as $n,Qu as er,R as tr,Ra as nr,Rc as rr,Rd as ir,Ri as ar,Rl as or,Rn as sr,Ro as cr,Rr as lr,Rs as ur,Rt as dr,Ru as fr,S as pr,Sa as mr,Sc as hr,Sd as gr,Si as _r,Sl as vr,Sn as yr,So as br,Sr as xr,Ss as Sr,St as Cr,Su as wr,T as Tr,Ta as Er,Tc as Dr,Td as Or,Ti as kr,Tl as Ar,Tn as jr,To as Mr,Tr as Nr,Ts as Pr,Tt as Fr,Tu as Ir,U as Lr,Ua as Rr,Uc as zr,Ud as Br,Ui as Vr,Ul as Hr,Un as Ur,Uo as Wr,Ur as Gr,Us as Kr,Ut as qr,Uu as Jr,V as Yr,Va as Xr,Vc as Zr,Vd as Qr,Vi as $r,Vl as ei,Vn as ti,Vo as ni,Vr as ri,Vs as ii,Vt as ai,Vu as oi,W as si,Wa as ci,Wc as li,Wd as ui,Wi as di,Wl as fi,Wn as pi,Wo as mi,Wr as hi,Ws as gi,Wt as _i,Wu as vi,X as yi,Xa as bi,Xc as xi,Xd as Si,Xi as Ci,Xl as wi,Xn as Ti,Xo as Ei,Xr as Di,Xs as Oi,Xt as ki,Xu as Ai,Y as ji,Ya as Mi,Yc as Ni,Yd as Pi,Yi as Fi,Yl as Ii,Yn as Li,Yo as Ri,Yr as zi,Ys as Bi,Yt as Vi,Yu as Hi,Z as Ui,Za as Wi,Zc as Gi,Zd as Ki,Zi as qi,Zl as Ji,Zn as Yi,Zo as Xi,Zr as Zi,Zs as Qi,Zt as $i,Zu as ea,_ as ta,_a as na,_c as ra,_d as ia,_i as aa,_l as oa,_n as sa,_o as ca,_r as la,_s as ua,_t as da,_u as fa,a as pa,aa as ma,ac as ha,ad as ga,af as _a,ai as va,al as ya,ao as ba,ar as xa,as as Sa,at as Ca,au as wa,b as Ta,ba as Ea,bc as Da,bd as Oa,bi as ka,bl as Aa,bn as ja,bo as Ma,br as Na,bs as Pa,bt as Fa,bu as Ia,c as La,ca as Ra,cc as za,cd as Ba,cf as Va,ci as Ha,cl as Ua,cn as Wa,co as Ga,cr as Ka,cs as qa,ct as Ja,cu as Ya,d as Xa,da as Za,dc as Qa,dd as $a,df as eo,di as to,dl as no,dn as ro,do as io,ds as ao,dt as oo,du as so,ea as co,ec as lo,ed as uo,ef as fo,ei as po,el as mo,eo as ho,er as go,es as _o,et as vo,eu as yo,f as bo,fa as xo,fc as So,fd as Co,fi as wo,fl as To,fn as Eo,fo as Do,fr as Oo,fs as ko,ft as Ao,fu as jo,g as Mo,ga as No,gc as Po,gd as Fo,gi as Io,gl as Lo,gn as Ro,go as zo,gr as Bo,gs as Vo,gt as Ho,gu as Uo,h as Wo,ha as Go,hc as Ko,hd as qo,hi as Jo,hl as Yo,hn as Xo,ho as Zo,hr as Qo,hs as $o,ht as es,hu as ts,i as ns,ia as rs,ic as is,id as as,if as os,ii as ss,il as cs,in as ls,io as us,ir as ds,is as fs,it as ps,iu as ms,j as hs,ja as gs,jc as _s,jd as vs,ji as ys,jl as bs,jn as xs,jo as Ss,jr as Cs,js as ws,jt as Ts,ju as Es,k as Ds,ka as Os,kc as ks,kd as As,ki as js,kl as Ms,ko as Ns,kr as Ps,ks as Fs,kt as Is,ku as Ls,l as Rs,la as zs,lc as Bs,ld as Vs,lf as Hs,li as Us,ll as Ws,ln as Gs,lo as Ks,ls as qs,lt as Js,lu as Ys,m as Xs,ma as Zs,mc as Qs,md as $s,mi as ec,ml as tc,mn as nc,mo as rc,mr as ic,ms as ac,mt as oc,mu as sc,n as cc,na as lc,nd as uc,nf as dc,ni as fc,nl as pc,nn as mc,no as hc,nr as gc,ns as _c,nt as vc,nu as yc,o as bc,oa as xc,od as Sc,of as Cc,oi as wc,ol as Tc,on as eee,oo as Ec,or as Dc,os as Oc,ot as kc,ou as Ac,p as jc,pa as Mc,pc as Nc,pd as Pc,pi as Fc,pl as Ic,pn as Lc,po as Rc,pr as zc,ps as Bc,pt as Vc,pu as Hc,q as Uc,qa as Wc,qc as Gc,qd as Kc,qi as qc,ql as Jc,qn as Yc,qo as Xc,qr as Zc,qs as Qc,qt as $c,qu as el,r as tl,ra as nl,rc as rl,rd as il,rf as al,ri as ol,rl as sl,rn as cl,ro as ll,rr as ul,rs as dl,rt as fl,ru as pl,s as ml,sa as hl,sc as gl,sd as _l,sf as tee,si as vl,sl as yl,sn as bl,so as xl,sr as Sl,ss as Cl,st as wl,su as Tl,t as El,ta as Dl,tc as Ol,td as kl,tf as Al,ti as jl,tl as Ml,to as Nl,tr as Pl,ts as Fl,tt as Il,tu as Ll,u as Rl,ua as zl,uc as Bl,ud as Vl,uf as Hl,ui as Ul,ul as Wl,un as Gl,uo as Kl,us as ql,ut as Jl,uu as Yl,v as Xl,va as Zl,vc as Ql,vd as $l,vi as eu,vl as tu,vn as nu,vo as ru,vr as iu,vs as au,vt as ou,vu as su,w as cu,wa as lu,wc as uu,wd as du,wi as fu,wl as pu,wn as mu,wo as hu,wr as gu,ws as _u,wt as vu,wu as yu,x as bu,xa as xu,xc as Su,xd as Cu,xi as wu,xl as Tu,xn as Eu,xo as Du,xr as Ou,xs as ku,xt as Au,xu as ju,y as Mu,ya as Nu,yc as Pu,yd as Fu,yi as Iu,yl as Lu,yn as Ru,yo as zu,yr as Bu,ys as Vu,yt as Hu,yu as Uu,z as Wu,za as Gu,zc as Ku,zd as qu,zi as Ju,zl as Yu,zn as Xu,zo as Zu,zr as Qu,zs as $u,zt as ed,zu as td}from"./textarea-Zwf6kD06.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var nd=Hs((e=>{var t=tee(),n=Va(),r=Cc();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function k(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function j(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var M=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},I=[],L=-1;function R(e){return{current:e}}function z(e){0>L||(e.current=I[L],I[L]=null,L--)}function B(e,t){L++,I[L]=e.current,e.current=t}var V=R(null),H=R(null),U=R(null),W=R(null);function ee(e,t){switch(B(U,t),B(H,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(V),B(V,e)}function G(){z(V),z(H),z(U)}function te(e){e.memoizedState!==null&&B(W,e);var t=V.current,n=Wd(t,e.type);t!==n&&(B(H,e),B(V,n))}function ne(e){H.current===e&&(z(V),z(H)),W.current===e&&(z(W),$f._currentValue=F)}var re,ie;function ae(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``,ie=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+re+e+ie}var oe=!1;function se(e,t){if(!e||oe)return``;oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -7,7 +7,7 @@ import{$ as e,$a as t,$c as n,$d as r,$i as i,$l as a,$n as o,$o as s,$r as c,$s
|
|
|
7
7
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ae(n):``}function ce(e,t){switch(e.tag){case 26:case 27:case 5:return ae(e.type);case 16:return ae(`Lazy`);case 13:return e.child!==t&&t!==null?ae(`Suspense Fallback`):ae(`Suspense`);case 19:return ae(`SuspenseList`);case 0:case 15:return se(e.type,!1);case 11:return se(e.type.render,!1);case 1:return se(e.type,!0);case 31:return ae(`Activity`);default:return``}}function le(e){try{var t=``,n=null;do t+=ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
8
|
Error generating stack: `+e.message+`
|
|
9
9
|
`+e.stack}}var ue=Object.prototype.hasOwnProperty,de=t.unstable_scheduleCallback,fe=t.unstable_cancelCallback,pe=t.unstable_shouldYield,me=t.unstable_requestPaint,he=t.unstable_now,ge=t.unstable_getCurrentPriorityLevel,_e=t.unstable_ImmediatePriority,ve=t.unstable_UserBlockingPriority,ye=t.unstable_NormalPriority,be=t.unstable_LowPriority,xe=t.unstable_IdlePriority,Se=t.log,Ce=t.unstable_setDisableYieldValue,we=null,K=null;function Te(e){if(typeof Se==`function`&&Ce(e),K&&typeof K.setStrictMode==`function`)try{K.setStrictMode(we,e)}catch{}}var Ee=Math.clz32?Math.clz32:ke,De=Math.log,Oe=Math.LN2;function ke(e){return e>>>=0,e===0?32:31-(De(e)/Oe|0)|0}var Ae=256,je=262144,Me=4194304;function Ne(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function q(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ne(n))):i=Ne(o):i=Ne(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ne(n))):i=Ne(o)):i=Ne(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ie(){var e=Me;return Me<<=1,!(Me&62914560)&&(Me=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ee(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Be(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Be(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ee(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ve(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ee(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function He(e,t){var n=t&-t;return n=n&42?1:Ue(n),(n&(e.suspendedLanes|t))===0?n:0}function Ue(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ge(){var e=P.p;return e===0?(e=window.event,e===void 0?32:pp(e.type)):e}function Ke(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var qe=Math.random().toString(36).slice(2),Je=`__reactFiber$`+qe,Ye=`__reactProps$`+qe,Xe=`__reactContainer$`+qe,Ze=`__reactEvents$`+qe,Qe=`__reactListeners$`+qe,$e=`__reactHandles$`+qe,et=`__reactResources$`+qe,tt=`__reactMarker$`+qe;function nt(e){delete e[Je],delete e[Ye],delete e[Ze],delete e[Qe],delete e[$e]}function rt(e){var t=e[Je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xe]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pf(e);e!==null;){if(n=e[Je])return n;e=pf(e)}return t}e=n,n=e.parentNode}return null}function it(e){if(e=e[Je]||e[Xe]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function at(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ot(e){var t=e[et];return t||=e[et]={hoistableStyles:new Map,hoistableScripts:new Map},t}function st(e){e[tt]=!0}var ct=new Set,lt={};function ut(e,t){dt(e,t),dt(e+`Capture`,t)}function dt(e,t){for(lt[e]=t,e=0;e<t.length;e++)ct.add(t[e])}var ft=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),pt={},mt={};function ht(e){return ue.call(mt,e)?!0:ue.call(pt,e)?!1:ft.test(e)?mt[e]=!0:(pt[e]=!0,!1)}function gt(e,t,n){if(ht(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function _t(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function vt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function yt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function bt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function St(e){if(!e._valueTracker){var t=bt(e)?`checked`:`value`;e._valueTracker=xt(e,t,``+e[t])}}function Ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=bt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Tt=/[\n"\\]/g;function Et(e){return e.replace(Tt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Dt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+yt(t)):e.value!==``+yt(t)&&(e.value=``+yt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):kt(e,o,yt(n)):kt(e,o,yt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+yt(s):e.removeAttribute(`name`)}function Ot(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){St(e);return}n=n==null?``:``+yt(n),t=t==null?n:``+yt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),St(e)}function kt(e,t,n){t===`number`&&wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function At(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+yt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jt(e,t,n){if(t!=null&&(t=``+yt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+yt(n)}function Mt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(M(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=yt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),St(e)}function Nt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Ft(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Pt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function It(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Ft(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Ft(e,o,t[o])}function Lt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Rt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bt(e){return zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Vt(){}var Ht=null;function Ut(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wt=null,Gt=null;function Kt(e){var t=it(e);if(t&&(e=t.stateNode)){var n=e[Ye]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Dt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Et(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ye]||null;if(!a)throw Error(i(90));Dt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ct(r)}break a;case`textarea`:jt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&At(e,!!n.multiple,t,!1)}}}var qt=!1;function Jt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(Wt!==null||Gt!==null)&&(xu(),Wt&&(t=Wt,e=Gt,Gt=Wt=null,Kt(t),e)))for(t=0;t<e.length;t++)Kt(e[t])}}function Yt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ye]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Xt=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,"passive",{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch{Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tn=i.slice(e,1<r?1-r:void 0)}function rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?an:on,this.isPropagationStopped=on,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=sn(cn),un=f({},cn,{view:0,detail:0}),dn=sn(un),fn,pn,mn,hn=f({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==mn&&(mn&&e.type===`mousemove`?(fn=e.screenX-mn.screenX,pn=e.screenY-mn.screenY):pn=fn=0,mn=e),fn)},movementY:function(e){return`movementY`in e?e.movementY:pn}}),gn=sn(hn),_n=sn(f({},hn,{dataTransfer:0})),vn=sn(f({},un,{relatedTarget:0})),yn=sn(f({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(f({},cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),xn=sn(f({},cn,{data:0})),Sn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Cn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wn[e])?!!t[e]:!1}function En(){return Tn}var Dn=sn(f({},un,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Cn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return e.type===`keypress`?rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),On=sn(f({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=sn(f({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),An=sn(f({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=sn(f({},hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Mn=sn(f({},cn,{newState:0,oldState:0})),Nn=[9,13,27,32],Pn=Xt&&`CompositionEvent`in window,Fn=null;Xt&&`documentMode`in document&&(Fn=document.documentMode);var In=Xt&&`TextEvent`in window&&!Fn,Ln=Xt&&(!Pn||Fn&&8<Fn&&11>=Fn),Rn=` `,zn=!1;function Bn(e,t){switch(e){case`keyup`:return Nn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Vn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Hn=!1;function Un(e,t){switch(e){case`compositionend`:return Vn(t);case`keypress`:return t.which===32?(zn=!0,Rn):null;case`textInput`:return e=t.data,e===Rn&&zn?null:e;default:return null}}function Wn(e,t){if(Hn)return e===`compositionend`||!Pn&&Bn(e,t)?(e=nn(),tn=en=$t=null,Hn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Ln&&t.locale!==`ko`?null:t.data;default:return null}}var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Gn[e.type]:t===`textarea`}function qn(e,t,n,r){Wt?Gt?Gt.push(r):Gt=[r]:Wt=r,t=Od(t,`onChange`),0<t.length&&(n=new ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Jn=null,Yn=null;function Xn(e){bd(e,0)}function Zn(e){if(Ct(at(e)))return e}function Qn(e,t){if(e===`change`)return t}var $n=!1;if(Xt){var er;if(Xt){var tr=`oninput`in document;if(!tr){var nr=document.createElement(`div`);nr.setAttribute(`oninput`,`return;`),tr=typeof nr.oninput==`function`}er=tr}else er=!1;$n=er&&(!document.documentMode||9<document.documentMode)}function rr(){Jn&&(Jn.detachEvent(`onpropertychange`,ir),Yn=Jn=null)}function ir(e){if(e.propertyName===`value`&&Zn(Yn)){var t=[];qn(t,Yn,e,Ut(e)),Jt(Xn,t)}}function ar(e,t,n){e===`focusin`?(rr(),Jn=t,Yn=n,Jn.attachEvent(`onpropertychange`,ir)):e===`focusout`&&rr()}function or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Zn(Yn)}function sr(e,t){if(e===`click`)return Zn(t)}function cr(e,t){if(e===`input`||e===`change`)return Zn(t)}function lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ur=typeof Object.is==`function`?Object.is:lr;function dr(e,t){if(ur(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ue.call(t,i)||!ur(e[i],t[i]))return!1}return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n=fr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=fr(n)}}function mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=wt(e.document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var _r=Xt&&`documentMode`in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function Sr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xr||vr==null||vr!==wt(r)||(r=vr,`selectionStart`in r&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&dr(br,r)||(br=r,r=Od(yr,`onSelect`),0<r.length&&(t=new ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var wr={animationend:Cr(`Animation`,`AnimationEnd`),animationiteration:Cr(`Animation`,`AnimationIteration`),animationstart:Cr(`Animation`,`AnimationStart`),transitionrun:Cr(`Transition`,`TransitionRun`),transitionstart:Cr(`Transition`,`TransitionStart`),transitioncancel:Cr(`Transition`,`TransitionCancel`),transitionend:Cr(`Transition`,`TransitionEnd`)},Tr={},Er={};Xt&&(Er=document.createElement(`div`).style,`AnimationEvent`in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),`TransitionEvent`in window||delete wr.transitionend.transition);function Dr(e){if(Tr[e])return Tr[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Er)return Tr[e]=t[n];return e}var Or=Dr(`animationend`),kr=Dr(`animationiteration`),Ar=Dr(`animationstart`),jr=Dr(`transitionrun`),Mr=Dr(`transitionstart`),Nr=Dr(`transitioncancel`),Pr=Dr(`transitionend`),Fr=new Map,Ir=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Ir.push(`scrollEnd`);function Lr(e,t){Fr.set(e,t),ut(t,[e])}var Rr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},zr=[],Br=0,Vr=0;function Hr(){for(var e=Br,t=Vr=Br=0;t<e;){var n=zr[t];zr[t++]=null;var r=zr[t];zr[t++]=null;var i=zr[t];zr[t++]=null;var a=zr[t];if(zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Kr(n,i,a)}}function Ur(e,t,n,r){zr[Br++]=e,zr[Br++]=t,zr[Br++]=n,zr[Br++]=r,Vr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Wr(e,t,n,r){return Ur(e,t,n,r),qr(e)}function Gr(e,t){return Ur(e,null,null,t),qr(e)}function Kr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ee(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function qr(e){if(50<fu)throw fu=0,pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jr={};function Yr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(e,t,n,r){return new Yr(e,t,n,r)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qr(e,t){var n=e.alternate;return n===null?(n=Xr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function $r(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ei(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Zr(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,V.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=Xr(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return ti(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=Xr(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=Xr(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=Xr(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Xr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ti(e,t,n,r){return e=Xr(7,e,r,t),e.lanes=n,e}function ni(e,t,n){return e=Xr(6,e,null,t),e.lanes=n,e}function ri(e){var t=Xr(18,null,null,0);return t.stateNode=e,t}function ii(e,t,n){return t=Xr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ai=new WeakMap;function oi(e,t){if(typeof e==`object`&&e){var n=ai.get(e);return n===void 0?(t={value:e,source:t,stack:le(t)},ai.set(e,t),t):n}return{value:e,source:t,stack:le(t)}}var si=[],ci=0,li=null,ui=0,di=[],fi=0,pi=null,mi=1,hi=``;function gi(e,t){si[ci++]=ui,si[ci++]=li,li=e,ui=t}function _i(e,t,n){di[fi++]=mi,di[fi++]=hi,di[fi++]=pi,pi=e;var r=mi;e=hi;var i=32-Ee(r)-1;r&=~(1<<i),n+=1;var a=32-Ee(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,mi=1<<32-Ee(t)+i|n<<i|r,hi=a+e}else mi=1<<a|n<<i|r,hi=e}function vi(e){e.return!==null&&(gi(e,1),_i(e,1,0))}function yi(e){for(;e===li;)li=si[--ci],si[ci]=null,ui=si[--ci],si[ci]=null;for(;e===pi;)pi=di[--fi],di[fi]=null,hi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null}function bi(e,t){di[fi++]=mi,di[fi++]=hi,di[fi++]=pi,mi=t.id,hi=t.overflow,pi=e}var xi=null,Si=null,Ci=!1,wi=null,Ti=!1,Ei=Error(i(519));function Di(e){throw Ni(oi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ei}function Oi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Je]=e,t[Ye]=r,n){case`dialog`:xd(`cancel`,t),xd(`close`,t);break;case`iframe`:case`object`:case`embed`:xd(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)xd(vd[n],t);break;case`source`:xd(`error`,t);break;case`img`:case`image`:case`link`:xd(`error`,t),xd(`load`,t);break;case`details`:xd(`toggle`,t);break;case`input`:xd(`invalid`,t),Ot(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:xd(`invalid`,t);break;case`textarea`:xd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Pd(t.textContent,n)?(r.popover!=null&&(xd(`beforetoggle`,t),xd(`toggle`,t)),r.onScroll!=null&&xd(`scroll`,t),r.onScrollEnd!=null&&xd(`scrollend`,t),r.onClick!=null&&(t.onclick=Vt),t=!0):t=!1,t||Di(e,!0)}function ki(e){for(xi=e.return;xi;)switch(xi.tag){case 5:case 31:case 13:Ti=!1;return;case 27:case 3:Ti=!0;return;default:xi=xi.return}}function Ai(e){if(e!==xi)return!1;if(!Ci)return ki(e),Ci=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gd(e.type,e.memoizedProps)),n=!n),n&&Si&&Di(e),ki(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=ff(e)}else t===27?(t=Si,$d(e.type)?(e=df,df=null,Si=e):Si=t):Si=xi?uf(e.stateNode.nextSibling):null;return!0}function ji(){Si=xi=null,Ci=!1}function Mi(){var e=wi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),wi=null),e}function Ni(e){wi===null?wi=[e]:wi.push(e)}var Pi=R(null),Fi=null,Ii=null;function Li(e,t,n){B(Pi,t._currentValue),t._currentValue=n}function Ri(e){e._currentValue=Pi.current,z(Pi)}function zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Bi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Vi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;ur(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===W.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}a=a.return}e!==null&&Bi(t,e,n,r),t.flags|=262144}function Hi(e){for(e=e.firstContext;e!==null;){if(!ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ui(e){Fi=e,Ii=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Wi(e){return Ki(Fi,e)}function Gi(e,t){return Fi===null&&Ui(e),Ki(e,t)}function Ki(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ii===null){if(e===null)throw Error(i(308));Ii=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ii=Ii.next=t;return n}var qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ji=t.unstable_scheduleCallback,Yi=t.unstable_NormalPriority,Xi={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zi(){return{controller:new qi,data:new Map,refCount:0}}function Qi(e){e.refCount--,e.refCount===0&&Ji(Yi,function(){e.controller.abort()})}var $i=null,ea=0,ta=0,na=null;function ra(e,t){if($i===null){var n=$i=[];ea=0,ta=fd(),na={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ea++,t.then(ia,ia),t}function ia(){if(--ea===0&&$i!==null){na!==null&&(na.status=`fulfilled`);var e=$i;$i=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function aa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var oa=N.S;N.S=function(e,t){tu=he(),typeof t==`object`&&t&&typeof t.then==`function`&&ra(e,t),oa!==null&&oa(e,t)};var sa=R(null);function ca(){var e=sa.current;return e===null?Il.pooledCache:e}function la(e,t){t===null?B(sa,sa.current):B(sa,t.pool)}function ua(){var e=ca();return e===null?null:{parent:Xi._currentValue,pool:e}}var da=Error(i(460)),fa=Error(i(474)),pa=Error(i(542)),ma={then:function(){}};function ha(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ga(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vt,Vt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ba(e),e;default:if(typeof t.status==`string`)t.then(Vt,Vt);else{if(e=Il,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ba(e),e}throw va=t,da}}function _a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(va=e,da):e}}var va=null;function ya(){if(va===null)throw Error(i(459));var e=va;return va=null,e}function ba(e){if(e===da||e===pa)throw Error(i(483))}var xa=null,Sa=0;function Ca(e){var t=Sa;return Sa+=1,xa===null&&(xa=[]),ga(xa,e,t)}function wa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ta(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ea(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Qr(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ni(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&_a(i)===t.type)?(t=a(t,n.props),wa(t,n),t.return=e,t):(t=ei(n.type,n.key,n.props,null,e.mode,r),wa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ii(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ti(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ni(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=ei(t.type,t.key,t.props,null,e.mode,n),wa(n,t),n.return=e,n;case h:return t=ii(t,e.mode,n),t.return=e,t;case T:return t=_a(t),f(e,t,n)}if(M(t)||k(t))return t=ti(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ca(t),n);if(t.$$typeof===b)return f(e,Gi(e,t),n);Ta(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=_a(n),p(e,t,n,r)}if(M(n)||k(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ca(n),r);if(n.$$typeof===b)return p(e,t,Gi(e,n),r);Ta(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=_a(r),_(e,t,n,r,i)}if(M(r)||k(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Ca(r),i);if(r.$$typeof===b)return _(e,t,n,Gi(t,r),i);Ta(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Ci&&gi(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Ci&&gi(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Ci&&gi(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Ci&&gi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Ci&&gi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Ci&&gi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&_a(l)===r.type){n(e,r.sibling),c=a(r,o.props),wa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=ti(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ei(o.type,o.key,o.props,null,e.mode,c),wa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ii(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=_a(o),x(e,r,o,c)}if(M(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ca(o),c);if(o.$$typeof===b)return x(e,r,Gi(e,o),c);Ta(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Sa=0;var i=x(e,t,n,r);return xa=null,i}catch(t){if(t===da||t===pa)throw t;var a=Xr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Da=Ea(!0),Oa=Ea(!1),ka=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=qr(e),Kr(e,null,n),t}return Ur(e,r,t,n),qr(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}function Fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ia=!1;function La(){if(Ia){var e=na;if(e!==null)throw e}}function Ra(e,t,n,r){Ia=!1;var i=e.updateQueue;ka=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Rl&p)===p:(r&p)===p){p!==0&&p===ta&&(Ia=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:ka=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ba(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)za(n[e],t)}var Ha=R(null),Ua=R(0);function Wa(e,t){e=Wl,B(Ua,e),B(Ha,t),Wl=e|t.baseLanes}function Ga(){B(Ua,Wl),B(Ha,Ha.current)}function Ka(){Wl=Ua.current,z(Ha),z(Ua)}var qa=R(null),Ja=null;function Ya(e){var t=e.alternate;B(eo,eo.current&1),B(qa,e),Ja===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(Ja=e)}function Xa(e){B(eo,eo.current),B(qa,e),Ja===null&&(Ja=e)}function Za(e){e.tag===22?(B(eo,eo.current),B(qa,e),Ja===null&&(Ja=e)):Qa(e)}function Qa(){B(eo,eo.current),B(qa,qa.current)}function $a(e){z(qa),Ja===e&&(Ja=null),z(eo)}var eo=R(0);function to(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=0,ro=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(i(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return no=a,ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){N.H=Ms;var t=io!==null&&io.next!==null;if(no=0,ao=io=ro=null,oo=!1,uo=0,fo=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&Hi(e)&&(Zs=!0))}function vo(e,t,n,r){ro=e;var a=0;do{if(so&&(fo=null),uo=0,so=!1,25<=a)throw Error(i(301));if(a+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=Fs,o=t(n,r)}while(so);return o}function yo(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(ro.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}no=0,ao=io=ro=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?ro.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=ro.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?ro.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw ro.alternate===null?Error(i(467)):Error(i(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?ro.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=ga(fo,e,t),t=ro,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===b)return Wi(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=To(),ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=D;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(no&f)===f:(Rl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ta&&(d=!0);else if((no&p)===p){u=u.next,p===ta&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,ro.lanes|=p,Kl|=p;f=u.action,co&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,ro.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!ur(o,e.memoizedState)&&(Zs=!0,d&&(n=na,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);ur(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=ro,a=wo(),o=Ci;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!ur((io||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Il===null)throw Error(i(349));o||no&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ro.updateQueue,t===null?(t=To(),ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch{return!0}}function Ro(e){var t=Gr(e,2);t!==null&&gu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){Te(!0);try{n()}finally{Te(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};N.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(Ci){var n=Il.formState;if(n!==null){a:{var r=ro;if(Ci){if(Si){b:{for(var i=Si,a=Ti;i.nodeType!==8;){if(!a){i=null;break b}if(i=uf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Si=uf(i.nextSibling),r=i.data===`F!`;break a}}Di(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,ro,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,ro,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===da?pa:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ro.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ro.updateQueue,t===null&&(t=To(),ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();ro.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(ro.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){ro.flags|=4;var t=ro.updateQueue;if(t===null)t=To(),ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){Te(!0);try{e()}finally{Te(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||no&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),ro.lanes|=e,Kl|=e,n)}function hs(e,t,n,r){return ur(n,t)?n:Ha.current===null?!(no&42)||no&1073741824&&!(Rl&261930)?(Zs=!0,e.memoizedState=n):(e=hu(),ro.lanes|=e,Kl|=e,t):(e=ms(e,n,r),ur(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};N.T=s,Os(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,aa(c,r),mu(e)):Ds(e,t,r,mu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,F,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:F},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},mu())}function xs(){return Wi($f)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ma(n);var r=Na(t,e,n);r!==null&&(gu(r,t,n),Pa(r,t,n)),t={cache:Zi()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Wr(e,t,n,r),n!==null&&(gu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,mu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ur(s,o))return Ur(e,t,i,0),Il===null&&Hr(),!1}catch{}if(n=Wr(e,t,i,r),n!==null)return gu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=Wr(e,n,r,2),t!==null&&gu(t,e,2)}function ks(e){var t=e.alternate;return e===ro||t!==null&&t===ro}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ve(e,n)}}var Ms={readContext:Wi,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:Wi,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){Te(!0);try{e()}finally{Te(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){Te(!0);try{n(t)}finally{Te(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,ro,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,ro,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ro,a=Co();if(Ci){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Il===null)throw Error(i(349));Rl&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Il.identifierPrefix;if(Ci){var n=hi,r=mi;n=(r&~(1<<32-Ee(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,ro)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Wi,use:Do,useCallback:fs,useContext:Wi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Wi,use:Do,useCallback:fs,useContext:Wi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ma(r);i.payload=t,n!=null&&(i.callback=n),t=Na(e,i,r),t!==null&&(gu(t,e,r),Pa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ma(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Na(e,i,r),t!==null&&(gu(t,e,r),Pa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ma(n);r.tag=2,t!=null&&(r.callback=t),t=Na(e,r,n),t!==null&&(gu(t,e,n),Pa(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!dr(n,r)||!dr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Rr(e)}function Hs(e){console.error(e)}function Us(e){Rr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Ma(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Ma(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Vi(t,n,a,!0),n=qa.current,n!==null){switch(n.tag){case 31:case 13:return Ja===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ma?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===ma?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),Ou(),!1}if(Ci)return t=qa.current,t===null?(r!==Ei&&(t=Error(i(423),{cause:r}),Ni(oi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=oi(r,n),a=Ks(e.stateNode,r,a),Fa(e,a),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ei&&(e=Error(i(422),{cause:r}),Ni(oi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=oi(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=oi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Fa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Fa(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?Oa(t,null,n,r):Da(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ui(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),wc(e,t,i)):(Ci&&s&&vi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Zr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ei(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Tc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?dr:n,n(o,r)&&e.ref===t.ref)return wc(e,t,i)}return t.flags|=1,e=Qr(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(dr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,Tc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,wc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&la(t,a===null?null:a.cachePool),a===null?Ga():Wa(t,a),Za(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&la(t,null),Ga(),Qa(t)):(la(t,a.cachePool),Wa(t,a),Qa(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=ca();return a=a===null?null:{parent:Xi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&la(t,null),Ga(),Za(t),e!==null&&Vi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Da(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,$a(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ci){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Xa(t),(e=Si)?(e=of(e,Ti),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi===null?null:{id:mi,overflow:hi},retryLane:536870912,hydrationErrors:null},n=ri(e),n.return=t,t.child=n,xi=t,Si=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Xa(t),a)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||Vi(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Il,r!==null&&(s=He(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Gr(e,s),gu(r,e,s),Xs;Ou(),t=oc(e,t,n)}else e=o.treeContext,Si=uf(s.nextSibling),xi=t,Ci=!0,wi=null,Ti=!1,e!==null&&bi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=Qr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Ui(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),wc(e,t,i)):(Ci&&r&&vi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Ui(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),wc(e,t,a)):(Ci&&r&&vi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Ui(t),t.stateNode===null){var a=Jr,o=n.contextType;typeof o==`object`&&o&&(a=Wi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Aa(t),o=n.contextType,a.context=typeof o==`object`&&o?Wi(o):Jr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ra(t,r,a,i),La(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Jr,typeof u==`object`&&u&&(o=Wi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),ka=!1;var f=t.memoizedState;a.state=f,Ra(t,r,a,i),La(),l=t.memoizedState,s||f!==l||ka?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=ka||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ja(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Jr,typeof l==`object`&&l&&(c=Wi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),ka=!1,f=t.memoizedState,a.state=f,Ra(t,r,a,i),La();var p=t.memoizedState;o!==d||f!==p||ka||e!==null&&e.dependencies!==null&&Hi(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=ka||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Hi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Da(t,e.child,null,i),t.child=Da(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=wc(e,t,i),e}function fc(e,t,n,r){return ji(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:ua()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(eo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ci){if(a?Ya(t):Qa(t),(e=Si)?(e=of(e,Ti),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi===null?null:{id:mi,overflow:hi},retryLane:536870912,hydrationErrors:null},n=ri(e),n.return=t,t.child=n,xi=t,Si=null)):e=null,e===null)throw Di(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Qa(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=ti(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Ya(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ya(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(Qa(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=ti(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Da(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(Qa(t),t.child=e.child,t.flags|=128,t=null);else if(Ya(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ni({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Vi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Il,s!==null&&(r=He(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Gr(e,r),gu(s,e,r),Xs;sf(c)||Ou(),t=yc(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Si=uf(c.nextSibling),xi=t,Ci=!0,wi=null,Ti=!1,e!==null&&bi(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(Qa(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=Qr(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ti(c,a,n,null),c.flags|=2):c=Qr(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=ua():(l=Xi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Ya(t),n=e.child,e=n.sibling,n=Qr(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=Xr(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Da(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=eo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,B(eo,o),Qs(e,t,r,n),r=Ci?ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&to(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function wc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Vi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Qr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Hi(e))):!0}function eee(e,t,n){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),Li(t,Xi,e.memoizedState.cache),ji();break;case 27:case 5:te(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:Li(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ya(t),e=wc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Ya(t),t.flags|=128,null);Ya(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Vi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(eo,eo.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Li(t,Xi,e.memoizedState.cache)}return wc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!Tc(e,n)&&!(t.flags&128))return Zs=!1,eee(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Ci&&t.flags&1048576&&_i(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=_a(t.elementType),t.type=e,typeof e==`function`)Zr(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=$s(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=j(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,ja(e,t),Ra(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Li(t,Xi,r),r!==o.cache&&Bi(t,[Xi],n,!0),La(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==a){a=oi(Error(i(424)),t),Ni(a),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Si=uf(e.firstChild),xi=t,Ci=!0,wi=null,Ti=!0,n=Oa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ji(),r===a){t=wc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ci||(n=t.type,e=t.pendingProps,r=Hd(U.current).createElement(n),r[Je]=t,r[Ye]=e,Ld(r,n,e),st(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),e===null&&Ci&&(r=t.stateNode=mf(t.type,t.pendingProps,U.current),xi=t,Ti=!0,a=Si,$d(t.type)?(df=a,Si=uf(r.firstChild)):Si=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ci&&((a=r=Si)&&(r=rf(r,t.type,t.pendingProps,Ti),r===null?a=!1:(t.stateNode=r,xi=t,Si=uf(r.firstChild),Ti=!1,a=!0)),a||Di(t)),te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Gd(a,o)?r=null:s!==null&&Gd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),$f._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Ci&&((e=n=Si)&&(n=af(n,t.pendingProps,Ti),n===null?e=!1:(t.stateNode=n,xi=t,Si=null,e=!0)),e||Di(t)),null;case 13:return gc(e,t,n);case 4:return ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Li(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ui(t),a=Wi(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Ui(t),r=Wi(Xi),e===null?(a=ca(),a===null&&(a=Il,o=Zi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Aa(t),Li(t,Xi,a)):((e.lanes&n)!==0&&(ja(e,t),Ra(t,null,null,n),La()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Li(t,Xi,r),r!==a.cache&&Bi(t,[Xi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Li(t,Xi,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw va=ma,fa}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Tu())e.flags|=8192;else throw va=ma,fa}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ie(),e.lanes|=t,Xl|=t)}function jc(e,t){if(!Ci)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nc(e,t,n){var r=t.pendingProps;switch(yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ri(Xi),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mi())),Mc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(Mc(t),Oc(t,a,null,r,n)):(Mc(t),kc(t,o))):o?o===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,a,e,r,n)),null;case 27:if(ne(t),n=U.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}e=V.current,Ai(t)?Oi(t,e):(e=mf(a,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(ne(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}if(o=V.current,Ai(t))Oi(t,o);else{var s=Hd(U.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Je]=t,o[Ye]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ld(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=U.current,Ai(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Je]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Di(t,!0)}else e=Hd(e).createTextNode(r),e[Je]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ai(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Je]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($a(t),t):($a(t),null);if(t.flags&128)throw Error(i(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Je]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),a=!1}else a=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?($a(t),t):($a(t),null)}return $a(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),Mc(t),null);case 4:return G(),e===null&&wd(t.stateNode.containerInfo),Mc(t),null;case 10:return Ri(t.type),Mc(t),null;case 19:if(z(eo),r=t.memoizedState,r===null)return Mc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)jc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=to(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)$r(n,e),n=n.sibling;return B(eo,eo.current&1|2),Ci&&gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&he()>nu&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304)}else{if(!a)if(e=to(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ci)return Mc(t),null}else 2*he()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=he(),e.sibling=null,n=eo.current,B(eo,a?n&1|2:n&1),Ci&&gi(t,r.treeForkCount),e);case 22:case 23:return $a(t),Ka(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&z(sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ri(Xi),Mc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Pc(e,t){switch(yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(Xi),G(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ne(t),null;case 31:if(t.memoizedState!==null){if($a(t),t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(eo),null;case 4:return G(),null;case 10:return Ri(t.type),null;case 22:case 23:return $a(t),Ka(),e!==null&&z(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ri(Xi),null;case 25:return null;default:return null}}function Fc(e,t){switch(yi(t),t.tag){case 3:Ri(Xi),G();break;case 26:case 27:case 5:ne(t);break;case 4:G();break;case 31:t.memoizedState!==null&&$a(t);break;case 13:$a(t);break;case 19:z(eo);break;case 10:Ri(t.type);break;case 22:case 23:$a(t),Ka(),e!==null&&z(sa);break;case 24:Ri(Xi)}}function Ic(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Lc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ba(t,n)}catch(t){Ku(e,e.return,t)}}}function zc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[Ye]=t}catch(t){Ku(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ld(t,r,n),t[Je]=e,t[Ye]=n}catch(t){Ku(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Bd=cp,e=hr(e),gr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},cp=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,$c=e;break}$c=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Ic(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(gl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ba(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),lf(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?vl(e,n,(n.subtreeFlags&8772)!=0):gl(e,n),Yc=i,Xc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(K&&typeof K.onCommitFiberUnmount==`function`)try{K.onCommitFiberUnmount(we,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=rl,i=il;$d(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),hf(n.stateNode),rl=r,il=i;break;case 5:Xc||Vc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Mp(e)):ef(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),al(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,al(e,t,n),Xc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Mp(e)}catch(e){Ku(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mp(e)}catch(e){Ku(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(i(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(i(160));ol(o,s,a),rl=null,il=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=fl;if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[tt]||o[Je]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Ld(o,r,n),o[Je]=e,st(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Je]=e,st(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode);else e.stateNode=Lf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){a=e.stateNode;try{Nt(a,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Uc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Vf=null,a=fl,fl=vf(t.containerInfo),dl(t,e),fl=a,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Mp(t.containerInfo)}catch(t){Ku(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=vf(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=he()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||a,Xc=d||l,dl(t,e),Xc=d,Yc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Yc||Xc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?tf(m,!0):tf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;qc(e,Gc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Nt(o,``),n.flags&=-33),qc(e,Gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(i(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),_l(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),_l(t);break;case 27:hf(t.stateNode);case 26:case 5:Vc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:vl(i,a,n),Ic(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)za(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Bc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Qi(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e)));break;case 12:if(i&2048){xl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Kf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=vf(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;$c!==null;){var n=$c;switch(n.tag){case 0:case 11:case 15:Lc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Qi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$c=r;else a:for(n=e;$c!==null;){r=$c;var i=r.sibling,a=r.return;if(nl(r),r===n){$c=null;break a}if(i!==null){i.return=a,$c=i;break a}$c=a}}}var Nl={getCacheForType:function(e){var t=Wi(Xi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Wi(Xi).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Fl&2&&Rl!==0?Rl&-Rl:N.T===null?Ge():fd()}function hu(){if(Yl===0)if(!(Rl&536870912)||Ci){var e=je;je<<=1,!(je&3932160)&&(je=262144),Yl=e}else Yl=536870912;return e=qa.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Rl,Yl,!1)),Re(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&bu(e,Rl,Yl,!1)),id(e))}function _u(e,t,n){if(Fl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Pe(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Hl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){a=ku(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-he(),10<a)){if(bu(r,t,Yl,!Vl),q(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Jd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),a);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}}break}while(1);id(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vt},Dl(t,a,d);var m=(a&62914560)===a?eu-he():(a&4194048)===a?tu-he():0;if(m=Jf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ur(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ee(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Be(e,n,t)}function xu(){return Fl&6?!0:(ad(0,!1),!1)}function Su(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,Ii=Fi=null,So(e),xa=null,Sa=0,e=Ll;for(;e!==null;)Fc(e.alternate,e),e=e.return;Ll=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Il=e,Ll=n=Qr(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Pe(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ee(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Hr(),n}function wu(e,t){ro=null,N.H=Ms,t===da||t===pa?(t=ya(),zl=3):t===fa?(t=ya(),zl=4):zl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Ws(e,oi(t,e.current)))}function Tu(){var e=qa.current;return e===null?!0:(Rl&4194048)===Rl?Ja===null:(Rl&62914560)===Rl||Rl&536870912?e===Ja:!1}function Eu(){var e=N.H;return N.H=Ms,e===null?Ms:e}function Du(){var e=N.A;return N.A=Nl,e}function Ou(){Gl=4,Vl||(Rl&4194048)!==Rl&&qa.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||bu(Il,Rl,Yl,!1)}function ku(e,t,n){var r=Fl;Fl|=2;var i=Eu(),a=Du();(Il!==e||Rl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:qa.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ii=Fi=null,Fl=r,N.H=i,N.A=a,Ll===null&&(Il=null,Rl=0,Hr()),o}function Au(){for(;Ll!==null;)Nu(Ll)}function ju(e,t){var n=Fl;Fl|=2;var r=Eu(),a=Du();Il!==e||Rl!==t?(ru=null,nu=he()+500,Cu(e,t)):Hl=Pe(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Fu(e,t,o,1);break;case 2:case 9:if(ha(o)){zl=0,Bl=null,Pu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),id(e)},o.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:ha(o)?(zl=0,Bl=null,Pu(t)):(zl=0,Bl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?Gf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Iu(u))}break b}}zl=0,Bl=null,Fu(e,t,o,5);break;case 6:zl=0,Bl=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Ii=Fi=null,N.H=r,N.A=a,Fl=n,Ll===null?(Il=null,Rl=0,Hr(),Gl):0}function Mu(){for(;Ll!==null&&!pe();)Nu(Ll)}function Nu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:So(t);default:Fc(n,t),t=Ll=$r(t,Wl),t=Ec(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Fu(e,t,n,r){Ii=Fi=null,So(t),xa=null,Sa=0;var i=t.return;try{if(Ys(e,i,t,n,Rl)){Gl=1,Ws(e,oi(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Ws(e,oi(n,e.current)),Ll=null;return}t.flags&32768?(Ci||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Nc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Fl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Vr,ze(e,n,o,s,c,l),e===Il&&(Ll=Il=null,Rl=0),su=t,ou=e,cu=n,lu=o,uu=a,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(ye,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=N.T,N.T=null,a=P.p,P.p=2,s=Fl,Fl|=4;try{el(e,t,n)}finally{Fl=s,P.p=a,N.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Fl;Fl|=4;try{pl(t,e);var a=Vd,o=hr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&mr(s.ownerDocument.documentElement,s)){if(c!==null&&gr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=pr(s,h),v=pr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!Bd,Vd=Bd=null}finally{Fl=i,P.p=r,N.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Fl;Fl|=4;try{tl(e,t.alternate,t)}finally{Fl=i,P.p=r,N.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,me();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),We(n),t=t.stateNode,K&&typeof K.onCommitFiberRoot==`function`)try{K.onCommitFiberRoot(we,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=N.T,i=P.p,P.p=2,N.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{N.T=t,P.p=i}}cu&3&&Uu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qi(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=We(cu),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Fl&6)throw Error(i(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,ad(0,!1),K&&typeof K.onPostCommitFiberRoot==`function`)try{K.onPostCommitFiberRoot(we,o)}catch{}return!0}finally{P.p=a,N.T=r,Hu(e,t)}}function Gu(e,t,n){t=oi(n,t),t=Ks(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(Re(e,2),id(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=oi(n,e),n=qs(2),r=Na(t,n,2),r!==null&&(Js(n,r,t,e),Re(r,2),id(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>he()-eu?!(Fl&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),id(e)}function Yu(e,t){t===0&&(t=Ie()),e=Gr(e,t),e!==null&&(Re(e,t),id(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return de(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,J=0;function id(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,dd())}function ad(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ee(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Rl,a=q(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Pe(r,a)||(n=!0,ud(r,a));r=r.next}while(n);rd=!1}}function od(){sd()}function sd(){nd=td=!1;var e=0;J!==0&&qd()&&(e=J);for(var t=he(),n=null,r=$u;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||ad(e,!1),J!==0&&(J=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ee(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Fe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=q(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Pe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&fe(r),We(n)){case 2:case 8:n=ve;break;case 32:n=ye;break;case 268435456:n=xe;break;default:n=ye}return r=ld.bind(null,e),n=de(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&fe(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Rl;return r=q(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,he()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Zd(function(){Fl&6?de(_e,od):sd()})}function fd(){if(J===0){var e=ta;e===0&&(e=Ae,Ae<<=1,!(Ae&261888)&&(Ae=256)),J=e}return J}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Bt(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[Ye]||null).action),o=r.submitter;o&&(t=(t=o[Ye]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(J!==0){var e=o?md(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Ir.length;gd++){var _d=Ir[gd];Lr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Lr(Or,`onAnimationEnd`),Lr(kr,`onAnimationIteration`),Lr(Ar,`onAnimationStart`),Lr(`dblclick`,`onDoubleClick`),Lr(`focusin`,`onFocus`),Lr(`focusout`,`onBlur`),Lr(jr,`onTransitionRun`),Lr(Mr,`onTransitionStart`),Lr(Nr,`onTransitionCancel`),Lr(Pr,`onTransitionEnd`),dt(`onMouseEnter`,[`mouseout`,`mouseover`]),dt(`onMouseLeave`,[`mouseout`,`mouseover`]),dt(`onPointerEnter`,[`pointerout`,`pointerover`]),dt(`onPointerLeave`,[`pointerout`,`pointerover`]),ut(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ut(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ut(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ut(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ut(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ut(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Rr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Rr(e)}i.currentTarget=null,a=c}}}}function xd(e,t){var n=t[Ze];n===void 0&&(n=t[Ze]=new Set);var r=e+`__bubble`;n.has(r)||(Td(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),Td(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function wd(e){if(!e[Cd]){e[Cd]=!0,ct.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function Td(e,t,n,r){switch(pp(t)){case 2:var i=lp;break;case 8:i=iee;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!Zt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ed(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=rt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Jt(function(){var r=a,i=Ut(n),s=[];a:{var c=Fr.get(e);if(c!==void 0){var l=ln,u=e;switch(e){case`keypress`:if(rn(n)===0)break a;case`keydown`:case`keyup`:l=Dn;break;case`focusin`:u=`focus`,l=vn;break;case`focusout`:u=`blur`,l=vn;break;case`beforeblur`:case`afterblur`:l=vn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=_n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=kn;break;case Or:case kr:case Ar:l=yn;break;case Pr:l=An;break;case`scroll`:case`scrollend`:l=dn;break;case`wheel`:l=jn;break;case`copy`:case`cut`:case`paste`:l=bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=On;break;case`toggle`:case`beforetoggle`:l=Mn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Yt(m,p),g!=null&&d.push(Dd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Ht&&(u=n.relatedTarget||n.fromElement)&&(rt(u)||u[Xe]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?rt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=On,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:at(l),h=u==null?c:at(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,rt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=kd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ad(s,c,l,d,!1),u!==null&&f!==null&&Ad(s,f,u,d,!0)}}a:{if(c=r?at(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=Qn;else if(Kn(c))if($n)v=cr;else{v=or;var y=ar}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Lt(r.elementType)&&(v=Qn):v=sr;if(v&&=v(e,r)){qn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&kt(c,`number`,c.value)}switch(y=r?at(r):window,e){case`focusin`:(Kn(y)||y.contentEditable===`true`)&&(vr=y,yr=r,br=null);break;case`focusout`:br=yr=vr=null;break;case`mousedown`:xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:xr=!1,Sr(s,n,i);break;case`selectionchange`:if(_r)break;case`keydown`:case`keyup`:Sr(s,n,i)}var b;if(Pn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Hn?Bn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Ln&&n.locale!==`ko`&&(Hn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Hn&&(b=nn()):($t=i,en=`value`in $t?$t.value:$t.textContent,Hn=!0)),y=Od(r,x),0<y.length&&(x=new xn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Vn(n),b!==null&&(x.data=b)))),(b=In?Un(e,n):Wn(e,n))&&(x=Od(r,`onBeforeInput`),0<x.length&&(y=new xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),hd(s,e,r,n,i)}bd(s,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Od(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Yt(e,n),i!=null&&r.unshift(Dd(e,i,a)),i=Yt(e,t),i!=null&&r.push(Dd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ad(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Yt(n,a),l!=null&&o.unshift(Dd(n,l,c))):i||(l=Yt(n,a),l!=null&&o.push(Dd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jd=/\r\n?/g,Md=/\u0000|\uFFFD/g;function Nd(e){return(typeof e==`string`?e:``+e).replace(jd,`
|
|
10
|
-
`).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Fd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Nt(e,``+r);break;case`className`:_t(e,`class`,r);break;case`tabIndex`:_t(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_t(e,n,r);break;case`style`:It(e,r,o);break;case`data`:if(t!==`object`){_t(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Fd(e,t,`name`,a.name,a,null),Fd(e,t,`formEncType`,a.formEncType,a,null),Fd(e,t,`formMethod`,a.formMethod,a,null),Fd(e,t,`formTarget`,a.formTarget,a,null)):(Fd(e,t,`encType`,a.encType,a,null),Fd(e,t,`method`,a.method,a,null),Fd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Bt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:xd(`beforetoggle`,e),xd(`toggle`,e),gt(e,`popover`,r);break;case`xlinkActuate`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:gt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Rt.get(n)||n,gt(e,n,r))}}function Id(e,t,n,r,a,o){switch(n){case`style`:It(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Nt(e,``+r);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[Ye]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):gt(e,n,r)}}}function Ld(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:xd(`error`,e),xd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,o,s,n,null)}}a&&Fd(e,t,`srcSet`,n.srcSet,n,null),r&&Fd(e,t,`src`,n.src,n,null);return;case`input`:xd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Fd(e,t,r,d,n,null)}}Ot(e,o,c,l,u,s,a,!1);return;case`select`:for(a in xd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Fd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&At(e,!!r,n,!0):At(e,!!r,t,!1);return;case`textarea`:for(s in xd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Fd(e,t,s,c,n,null)}Mt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Fd(e,t,l,r,n,null)}return;case`dialog`:xd(`beforetoggle`,e),xd(`toggle`,e),xd(`cancel`,e),xd(`close`,e);break;case`iframe`:case`object`:xd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)xd(vd[r],e);break;case`image`:xd(`error`,e),xd(`load`,e);break;case`details`:xd(`toggle`,e);break;case`embed`:case`source`:case`link`:xd(`error`,e),xd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,u,r,n,null)}return;default:if(Lt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Id(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Fd(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Fd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Fd(e,t,p,m,r,f)}}Dt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Fd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Fd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?At(e,!!n,n?[]:``,!1):At(e,!!n,t,!0)):At(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Fd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Fd(e,t,s,a,r,o)}jt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Fd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Fd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Fd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Fd(e,t,u,p,r,m)}return;default:if(Lt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Id(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Id(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Fd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Fd(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function nee(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Mp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[tt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Mp(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),nt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[tt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nt(e)}var gf=new Map,_f=new Set;function vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yf=P.d;P.d={f:bf,r:xf,D:ree,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function bf(){var e=yf.f(),t=xu();return e||t}function xf(e){var t=it(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):yf.r(e)}var Sf=typeof document>`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),st(t),r.head.appendChild(t)))}}function ree(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function wf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Tf(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Et(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Et(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Et(n.imageSizes)+`"]`)):i+=`[href="`+Et(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}gf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Ld(t,`link`,e),st(t),r.head.appendChild(t)))}}function Ef(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Et(r)+`"][href="`+Et(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!gf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),st(r),n.head.appendChild(r)}}}function Df(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=ot(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);st(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0},t),(t=gf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=U.current)?vf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Et(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),st(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Et(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Et(n.href)+`"]`);if(r)return t.instance=r,st(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),st(r),Ld(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,st(o),o;r=Nf(n),(a=gf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),st(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,st(a),a):(r=n,(a=gf.get(o))&&(r=f({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),st(a),Ld(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[tt]||a[Je]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,st(a);return}a=t.ownerDocument||t,r=Nf(r),(i=gf.get(i))&&zf(r,i),a=a.createElement(`link`),st(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*nee());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Xr(3,null,null,t),e.current=a,a.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Aa(a),e}function np(e){return e?(e=Jr,e):Jr}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ma(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Na(e,r,t),n!==null&&(gu(n,e,t),Pa(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Gr(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=Ue(t);var n=Gr(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,up(e,t,n,r)}finally{P.p=a,N.T=i}}function iee(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,up(e,t,n,r)}finally{P.p=a,N.T=i}}function up(e,t,n,r){if(cp){var i=dp(r);if(i===null)Ed(e,t,r,fp,n),Sp(e,r);else if(wp(i,e,t,n,r))r.stopPropagation();else if(Sp(e,r),t&4&&-1<xp.indexOf(e)){for(;i!==null;){var a=it(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ne(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ee(o);s.entanglements[1]|=c,o&=~c}id(a),!(Fl&6)&&(nu=he()+500,ad(0,!1))}}break;case 31:case 13:s=Gr(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=dp(r),a===null&&Ed(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function dp(e){return e=Ut(e),Y(e)}var fp=null;function Y(e){if(fp=null,e=rt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function pp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ge()){case _e:return 2;case ve:return 8;case ye:case be:return 32;case xe:return 268435456;default:return 32}default:return 32}}var mp=!1,hp=null,gp=null,_p=null,vp=new Map,yp=new Map,bp=[],xp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Sp(e,t){switch(e){case`focusin`:case`focusout`:hp=null;break;case`dragenter`:case`dragleave`:gp=null;break;case`mouseover`:case`mouseout`:_p=null;break;case`pointerover`:case`pointerout`:vp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:yp.delete(t.pointerId)}}function Cp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=it(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function wp(e,t,n,r,i){switch(t){case`focusin`:return hp=Cp(hp,e,t,n,r,i),!0;case`dragenter`:return gp=Cp(gp,e,t,n,r,i),!0;case`mouseover`:return _p=Cp(_p,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return vp.set(a,Cp(vp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,yp.set(a,Cp(yp.get(a)||null,e,t,n,r,i)),!0}return!1}function Tp(e){var t=rt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){sp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ep(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ht=r,n.target.dispatchEvent(r),Ht=null}else return t=it(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function Dp(e,t,n){Ep(e)&&n.delete(t)}function Op(){mp=!1,hp!==null&&Ep(hp)&&(hp=null),gp!==null&&Ep(gp)&&(gp=null),_p!==null&&Ep(_p)&&(_p=null),vp.forEach(Dp),yp.forEach(Dp)}function kp(e,n){e.blockedOn===n&&(e.blockedOn=null,mp||(mp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Op)))}var Ap=null;function jp(e){Ap!==e&&(Ap=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ap===e&&(Ap=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Y(r||n)===null)continue;break}var a=it(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Mp(e){function t(t){return kp(t,e)}hp!==null&&kp(hp,e),gp!==null&&kp(gp,e),_p!==null&&kp(_p,e),vp.forEach(t),yp.forEach(t);for(var n=0;n<bp.length;n++){var r=bp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<bp.length&&(n=bp[0],n.blockedOn===null);)Tp(n),n.blockedOn===null&&bp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ye]||null;if(typeof a==`function`)o||jp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ye]||null)s=o.formAction;else if(Y(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),jp(n)}}}function Np(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Pp(e){this._internalRoot=e}Fp.prototype.render=Pp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,mu(),e,t,null,null)},Fp.prototype.unmount=Pp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[Xe]=null}};function Fp(e){this._internalRoot=e}Fp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ge();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bp.length&&t!==0&&t<bp[n].priority;n++);bp.splice(n,0,e),n===0&&Tp(e)}};var Ip=n.version;if(Ip!==`19.2.6`)throw Error(i(527,Ip,`19.2.6`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Lp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Rp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rp.isDisabled&&Rp.supportsFiber)try{we=Rp.inject(Lp),K=Rp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,o,s,c,Np),e[Xe]=t.current,wd(e),new Pp(t)}})),rd=Hs(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=nd()})),J=eo(Va(),1),id=typeof window<`u`?J.useLayoutEffect:J.useEffect;function ad(e){let t=J.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function od(e,t,n={},r={}){J.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function sd(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}function cd(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var ld=4,ud=5;function dd(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function fd(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=dd(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function pd(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=fd(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=gd(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=gd(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=_d(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=_d(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=_d(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=gd(n.fullPath??n.from);e.kind=ud,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=gd(n.fullPath??n.from);e.kind=ld,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)pd(e,t,r,s,i,a,o)}function md(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function hd(e){if(e.pathless)for(let t of e.pathless)hd(t);if(e.static)for(let t of e.static.values())hd(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())hd(t);if(e.dynamic?.length){e.dynamic.sort(md);for(let t of e.dynamic)hd(t)}if(e.optional?.length){e.optional.sort(md);for(let t of e.optional)hd(t)}if(e.wildcard?.length){e.wildcard.sort(md);for(let t of e.wildcard)hd(t)}}function gd(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function _d(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function vd(e,t){let n=gd(`/`),r=new Uint16Array(6);for(let t of e)pd(!1,r,t,1,n,0);hd(n),t.masksTree=n,t.flatCache=cd(1e3)}function yd(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=wd(e,t.masksTree);return t.flatCache.set(e,r),r}function bd(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=gd(`/`),pd(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),wd(r,o,n)}function xd(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=wd(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ed(a.route)),t.matchCache.set(r,a),a}function Sd(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Cd(e,t=!1,n){let r=gd(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return pd(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&At(),a[e.id]=e,s!==0&&e.path){let t=Sd(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),hd(r),{processedTree:{segmentTree:r,singleCache:cd(1e3),matchCache:cd(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function wd(e,t,n=!1){let r=e.split(`/`),i=Od(e,r,t,n);if(!i)return null;let[a]=Td(e,r,i);return{route:i.node.route,rawParams:a}}function Td(e,t,n){let r=Dd(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===ld)break;if(u.kind===ud){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ed(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Dd(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Od(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!al(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!Md(l,n))continue;if(i.parse){if(!jd(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==ld&&Md(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===ld||i.kind===2)&&Md(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(jd(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Ad(p,o))return n;Md(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+kd(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+kd(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+kd(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+kd(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function kd(e,t){return 2**(e-t-1)}function Ad(e,t){return e===2**(t-1)-1}function jd(e,t,n){let r,i;try{[r,i]=Td(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Md(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===ld)>(e.node.kind===ld)||t.node.kind===ld==(e.node.kind===ld)&&t.depth>e.depth))):!0}function Nd(e){return Pd(e.filter(e=>e!==void 0).join(`/`))}function Pd(e){return e.replace(/\/{2,}/g,`/`)}function Fd(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Id(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Ld(e){return Id(Fd(e))}function Rd(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function zd(e,t,n){return Rd(e,n)===Rd(t,n)}function nee({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&al(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(al(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Pd(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Bd(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Vd(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Ud(e,n)).join(`/`):Ud(r,n):r}function Hd({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=fd(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Vd(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Vd(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Vd(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Ud(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Wd(e){return e?.isNotFound===!0}function Gd(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Kd(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function qd(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Kd(r):Array.isArray(t)?t.push(Kd(r)):n[e]=[t,Kd(r)]}return n}var Jd=Xd(JSON.parse),Yd=Zd(JSON.stringify,JSON.parse);function Xd(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=qd(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Zd(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Gd(e,r);return t?`?${t}`:``}}var Qd=`__root__`;function $d(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ef(e){return e instanceof Response&&!!e.options}var tf=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},nf=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),rf=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),af=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},of=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},sf=(e,t,n)=>{if(!(!ef(n)&&!Wd(n)))throw ef(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:ef(n)?`redirected`:Wd(n)?`notFound`:r.status===`pending`?`success`:r.status,context:af(e,t.index),isFetching:!1,error:n})),Wd(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),ef(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},cf=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},lf=(e,t,n)=>{let r=af(e,n);e.updateMatch(t,e=>({...e,context:r}))},uf=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,sf(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,sf(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!ef(n)&&!Wd(n)&&(e.serialError??=n)},df=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!rf(e,t)&&(n.options.loader||n.options.beforeLoad||Sf(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{tf(e)},i);r._nonReactive.pendingTimeout=t}},ff=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;df(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&sf(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},pf=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Pi(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&uf(e,n,o),s&&uf(e,n,s),df(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=Pi();let f={...af(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=rf(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(ef(r)||Wd(r))&&(u(),uf(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),dc(y))return u(),y.catch(t=>{uf(e,n,t)}).then(v)}catch(t){u(),uf(e,n,t)}v(y)},mf=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>pf(e,n,t,i),s=()=>{if(cf(e,n))return;let t=ff(e,n,i);return dc(t)?t.then(o):o()};return a()},hf=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},gf=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=af(e,r),d=rf(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},_f=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{xf(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(gf(e,t,n,r,i)),l=!!s&&dc(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;sf(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:af(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:af(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Wd(t)&&await i.options.notFoundComponent?.preload?.(),sf(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,sf(e,e.router.getMatch(n),t)}!ef(o)&&!Wd(o)&&await xf(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:af(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),sf(e,r,t)}},vf=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(gf(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await _f(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){ef(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await _f(e,t,i,n,d):lf(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(cf(e,i)){if(!e.router.getMatch(i))return e.matches[n];lf(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=rf(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&sf(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=Pi(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function yf(e){let t=e,n=[];nf(t.router)&&tf(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=mf(t,e);dc(n)&&await n}catch(e){if(ef(e))throw e;if(Wd(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?of(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(vf(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(ef(e))throw e;Wd(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=of(t,l);e===void 0&&At();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await xf(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await xf(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=hf(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=tf(t);if(dc(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function bf(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function xf(e,t=Cf){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Cf?(()=>{if(e._componentsPromise===void 0){let t=bf(e,Cf);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():bf(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Sf(e){for(let t of Cf)if(e.options[t]?.preload)return!0;return!1}var Cf=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ree(e){return{input:({url:t})=>{for(let n of e)t=Tf(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Ef(e[n],t);return t}}}function wf(e){let t=Ld(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Nd([`/`,t,e.pathname]),e)}}function Tf(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ef(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Df(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Of(o,_.get())),x=r(()=>Of(s,v.get())),S=r(()=>Of(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=cd(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){kf(e,o,_,n,i)}function j(e){kf(e,s,v,n,i)}function M(e){kf(e,c,y,n,i)}return k}function Of(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function kf(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}yt(n.get(),a)||n.set(a)})}var Af=`__TSR_index`,jf=`popstate`,Mf=`beforeunload`;function Nf(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Lf(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Af];i=Pf(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Af];i=Pf(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Af]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Pf(e,t){t||={};let n=Rf();return{...t,key:n,__TSR_key:n,[Af]:e}}function Ff(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Lf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Rf();t.history.replaceState({[Af]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Lf(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Af]-l.state[Af],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Nf({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Mf,S,{capture:!0}),t.removeEventListener(jf,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Mf,S,{capture:!0}),t.addEventListener(jf,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function If(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Lf(e,t){let n=If(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Rf();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Af]:0,key:a,__TSR_key:a}}}function Rf(){return(Math.random()+1).toString(36).substring(7)}function zf(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Bf=new WeakMap,Vf=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Bd(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ff()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=cd(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Df(Wf(this.latestLocation),e),iee(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Ld(o);t&&t!==`/`&&e.push(wf({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ree(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Cd(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&vd(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Si(e).path,external:!1,searchStr:o,search:os(t?.search,i),hash:Si(r.slice(1)).path,state:_a(t?.state,a)}}let o=new URL(i,this.origin),s=Tf(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Si(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:os(t?.search,c),hash:Si(s.hash.slice(1)).path,state:_a(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>nee({base:e,to:t.includes(`//`)?Pd(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Kf({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,i=this.matchRoutesLightweight(n);t.from;let a=t.unsafeRelative===`path`?n.pathname:t.from??i.fullPath,o=t.to?`${t.to}`:void 0,s=i.search,c=Object.assign(Object.create(null),i.params),l=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(a,`.`),u=o?this.resolvePathWithBase(l,o):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,r(t.params,c)),f=this.routesByPath[Id(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&fo(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:Si(Hd({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Gf(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=qf({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=os(s,h);let g=this.options.stringifySearch(h),_=t.hash===!0?n.hash:t.hash?r(t.hash,n.hash):void 0,v=_?`#${_}`:``,y=t.state===!0?n.state:t.state?r(t.state,n.state):{};y=_a(n.state,y);let b=`${m}${g}${v}`,x,S,C=!1;if(this.rewrite){let e=new URL(b,this.origin),t=Ef(this.rewrite,e);x=e.href.replace(e.origin,``),t.origin===this.origin?S=t.pathname+t.search+t.hash:(S=t.href,C=!0)}else x=Kn(b),S=x;return{publicHref:S,href:x,pathname:m,search:h,searchStr:g,state:y,hash:_??``,external:C,unmaskOnReload:t.unmaskOnReload}},n=(n={},i)=>{let a=t(n),o=i?t(i):void 0;if(!o){let n=Object.create(null);if(this.options.routeMasks){let s=yd(a.pathname,this.processedTree);if(s){Object.assign(n,s.rawParams);let{from:a,params:c,...l}=s.route,u=c===!1||c===null?Object.create(null):(c??!0)===!0?n:Object.assign(n,r(c,n));i={from:e.from,...l,params:u},o=t(i)}}}return o&&(a.maskedLocation=o),a};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=Ki(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=Id(this.latestLocation.href)===Id(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=Pi(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Lf(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Tf(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(Al(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Bf.set(this.latestLocation,t):Bf.delete(this.latestLocation);let n=this.latestLocation,r=zf(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await yf({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){ef(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Wd(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(zf(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&Al(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=xf,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await yf({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(ef(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Wd(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=bd(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!Ki(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?Ki(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Yd,parseSearch:e.parseSearch??Jd,protocolAllowlist:e.protocolAllowlist??Kc}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ed(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:Id(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Yf(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Gf(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof Hf||(r=new Hf(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=Hd({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),b=v?._strictParams??g,x;if(!v)try{Xf(r,b)}catch(e){if(x=Wd(e)||ef(e)?e:new Uf(e.message,{cause:e}),t?.throwOnError)throw x}Object.assign(i,b);let S=y?`stay`:`enter`,C;if(v)C={...v,cause:S,params:y?.params??i,_strictParams:b,search:os(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Sf(r)?`pending`:`success`;C={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:b,pathname:h,updatedAt:Date.now(),search:y?os(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:Pi()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?_a(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(C.globalNotFound=s===r.id),C.searchError=f;let w=this.getParentContext(o);C.context={...w,...C.__routeContext,...C.__beforeLoadContext},c[n]=C}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?os(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=al(t),i={...e.search};for(let e of t)try{Object.assign(i,Gf(e.options.validateSearch,i))}catch{}let a=al(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Xf(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Hf=class extends Error{},Uf=class extends Error{};function Wf(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Gf(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Hf(`Async validation not supported`);if(n.issues)throw new Hf(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Kf({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Id(e),a,o=xd(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function qf({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Jf(n)(e,t,r??!1)}function Jf(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...Gf(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:r(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function Yf(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Qd}function Xf(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Zf(){try{return sessionStorage}catch{return}}var Qf=`tsr-scroll-restoration-v1_3`,$f=Zf();function ep(){try{return JSON.parse($f?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function tp(){try{$f?.setItem(Qf,JSON.stringify(np))}catch{}}var np=ep(),rp=`data-scroll-restoration-id`,ip=e=>e.state.__TSR_key||e.href;function ap(e){let t=e.getAttribute(rp);if(t)return`[${rp}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var op=!1,sp=`window`;function cp(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function lp(e){let t=[];for(let n of e){if(n===sp)continue;let e=cp(n);e&&t.push(e)}return t}function iee(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,op=!1;let n=e.options.getScrollRestorationKey||ip,r=new Map,i=(e,t,n)=>{let i=r.get(e)||{};i.scrollX=t,i.scrollY=n,r.set(e,i)};history.scrollRestoration=`manual`;let a=t=>{if(!(op||!e.isScrollRestoring))if(t.target===document)i(sp,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=np[t]||={};for(let[e,t]of r)e===sp?n[sp]=t:e.isConnected&&(n[ap(e)]=t)};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(n(e.fromLocation)),r.clear()}),addEventListener(`pagehide`,()=>{o(n(e.stores.resolvedLocation.get()??e.stores.location.get())),tp()}),e.subscribe(`onRendered`,t=>{let i=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,o=e.resetNextScroll,s;if(r.clear(),o||(e.resetNextScroll=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let c=n(t.toLocation),l=t.fromLocation&&n(t.fromLocation);if(e.isScrollRestoring&&l&&l!==c){let e=np[l];if(e){let t=np[c];for(let n in e){if(n===sp){if(o)continue}else{let e=cp(n);if(!e||o&&a&&(s??=lp(a),s.includes(e)))continue}t||=np[c]={},t[n]??=e[n]}}}op=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=Bf.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?np[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===sp){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=cp(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=lp(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{op=!1}})}var up=`Error preloading route! ☝️`,dp=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Qd:this.parentRoute||At();let r=n?Qd:t?.path;r&&r!==`/`&&(r=Fd(r));let i=t?.id||r,a=n?Qd:Nd([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Nd([`/`,a]));let o=a===`__root__`?`/`:Nd([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Id(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>$d({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},fp=class extends dp{constructor(e){super(e)}},Y=Le();function pp(e){let t=e.errorComponent??hp;return(0,Y.jsx)(mp,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var mp=class extends J.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function hp({error:e}){let[t,n]=J.useState(!1);return(0,Y.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Y.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Y.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Y.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Y.jsx)(`div`,{children:(0,Y.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Y.jsx)(`code`,{children:e.message}):null})}):null]})}function gp({children:e,fallback:t=null}){return _p()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function _p(){return J.useSyncExternalStore(vp,()=>!0,()=>!1)}function vp(){return()=>{}}var yp=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(yp||{});function bp({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function xp(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Sp=[],Cp=0,{link:wp,unlink:Tp,propagate:Ep,checkDirty:Dp,shallowPropagate:Op}=bp({update(e){return e._update()},notify(e){Sp[Ap++]=e,e.flags&=~yp.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=yp.Mutable|yp.Dirty,Pp(e))}}),kp=0,Ap=0,jp,Mp=0;function Np(e){try{++Mp,e()}finally{--Mp||Fp()}}function Pp(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Tp(n,e)}function Fp(){if(!(Mp>0)){for(;kp<Ap;){let e=Sp[kp];Sp[kp++]=void 0,e.notify()}kp=0,Ap=0}}function Ip(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?yp.None:yp.Mutable,get(){return jp!==void 0&&wp(i,jp,Cp),i._snapshot},subscribe(e){let t=xp(e),n={current:!1},r=Lp(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=jp,o=t?.compare??Object.is;if(n)jp=i,++Cp,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=yp.Mutable|yp.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{jp=a,n&&(i.flags&=~yp.RecursedCheck),Pp(i)}}};return n?(i.flags=yp.Mutable|yp.Dirty,i.get=function(){let e=i.flags;if(e&yp.Dirty||e&yp.Pending&&Dp(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Op(e)}}else e&yp.Pending&&(i.flags=e&~yp.Pending);return jp!==void 0&&wp(i,jp,Cp),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Ep(e),Op(e),Fp())}},i}function Lp(e){let t=()=>{let t=jp;jp=n,++Cp,n.depsTail=void 0,n.flags=yp.Watching|yp.RecursedCheck;try{return e()}finally{jp=t,n.flags&=~yp.RecursedCheck,Pp(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:yp.Watching|yp.RecursedCheck,notify(){let e=this.flags;e&yp.Dirty||e&yp.Pending&&Dp(this.deps,this)?t():this.flags=yp.Watching},stop(){this.flags=yp.None,this.depsTail=void 0,Pp(this)}};return t(),n}function Rp(e){return qu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function zp(e){let{select:t,...n}=e;return qu({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Bp(e){return qu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Vp(e){let t=Br();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Hp(e){return qu({...e,select:t=>e.select?e.select(t.context):t.context})}var Up=eo(Cc(),1);function aee(e,t){let n=Br(),i=sd(t),{activeProps:a,inactiveProps:o,activeOptions:s,to:c,preload:l,preloadDelay:u,preloadIntentProximity:d,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:h,viewTransition:g,children:_,target:v,disabled:y,style:b,className:x,onClick:S,onBlur:C,onFocus:w,onMouseEnter:T,onMouseLeave:E,onTouchStart:O,ignoreBlocker:k,params:A,search:j,hash:M,state:N,mask:P,reloadDocument:F,unsafeRelative:I,from:L,_fromLocation:R,...z}=e,B=_p(),V=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),H=D(n.stores.location,e=>e,(e,t)=>e.href===t.href),U=J.useMemo(()=>{let e={_fromLocation:H,...V};return n.buildLocation(e)},[n,H,V]),W=U.maskedLocation?U.maskedLocation.publicHref:U.publicHref,ee=U.maskedLocation?U.maskedLocation.external:U.external,G=J.useMemo(()=>dee(W,ee,n.history,y),[y,ee,W,n.history]),te=J.useMemo(()=>{if(G?.external)return Al(G.href,n.protocolAllowlist)?void 0:G.href;if(!fee(c)&&!(typeof c!=`string`||c.indexOf(`:`)===-1))try{return new URL(c),Al(c,n.protocolAllowlist)?void 0:c}catch{}},[c,G,n.protocolAllowlist]),ne=J.useMemo(()=>{if(te)return!1;if(s?.exact){if(!zd(H.pathname,U.pathname,n.basepath))return!1}else{let e=Rd(H.pathname,n.basepath),t=Rd(U.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(s?.includeSearch??!0)&&!Ki(H.search,U.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:s?.includeHash?B&&H.hash===U.hash:!0},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,H,te,B,U.hash,U.pathname,U.search,n.basepath]),re=ne?r(a,{})??oee:Wp,ie=ne?Wp:r(o,{})??Wp,ae=[x,re.className,ie.className].filter(Boolean).join(` `),oe=(b||re.style||ie.style)&&{...b,...re.style,...ie.style},[se,ce]=J.useState(!1),le=J.useRef(!1),ue=e.reloadDocument||te?!1:l??n.options.defaultPreload,de=u??n.options.defaultPreloadDelay??0,fe=J.useCallback(()=>{n.preloadRoute({...V,_builtLocation:U}).catch(e=>{console.warn(e),console.warn(up)})},[n,V,U]);od(i,J.useCallback(e=>{e?.isIntersecting&&fe()},[fe]),uee,{disabled:!!y||ue!==`viewport`}),J.useEffect(()=>{le.current||!y&&ue===`render`&&(fe(),le.current=!0)},[y,fe,ue]);let pe=e=>{let t=e.currentTarget.getAttribute(`target`),r=v===void 0?t:v;if(!y&&!pee(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Up.flushSync)(()=>{ce(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ce(!1)});n.navigate({...V,replace:p,resetScroll:h,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:k})}};if(te)return{...z,ref:i,href:te,..._&&{children:_},...v&&{target:v},...y&&{disabled:y},...b&&{style:b},...x&&{className:x},...S&&{onClick:S},...C&&{onBlur:C},...w&&{onFocus:w},...T&&{onMouseEnter:T},...E&&{onMouseLeave:E},...O&&{onTouchStart:O}};let me=e=>{if(y||ue!==`intent`)return;if(!de){fe();return}let t=e.currentTarget;if(Gp.has(t))return;let n=setTimeout(()=>{Gp.delete(t),fe()},de);Gp.set(t,n)},he=e=>{y||ue!==`intent`||fe()},ge=e=>{if(y||!ue||!de)return;let t=e.currentTarget,n=Gp.get(t);n&&(clearTimeout(n),Gp.delete(t))};return{...z,...re,...ie,href:G?.href,ref:i,onClick:Kp([S,pe]),onBlur:Kp([C,ge]),onFocus:Kp([w,me]),onMouseEnter:Kp([T,me]),onMouseLeave:Kp([E,ge]),onTouchStart:Kp([O,he]),disabled:!!y,target:v,...oe&&{style:oe},...ae&&{className:ae},...y&&see,...ne&&cee,...B&&se&&lee}}var Wp={},oee={className:`active`},see={role:`link`,"aria-disabled":!0},cee={"data-status":`active`,"aria-current":`page`},lee={"data-transitioning":`transitioning`},Gp=new WeakMap,uee={rootMargin:`100px`},Kp=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function dee(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function fee(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var qp=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=aee(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return J.createElement(`a`,t,o)}return J.createElement(n,a,o)});function pee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var mee=class extends dp{constructor(e){super(e),this.useMatch=e=>qu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Hp({...e,from:this.id}),this.useSearch=e=>Bp({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ir({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>zp({...e,from:this.id}),this.useLoaderData=e=>Rp({...e,from:this.id}),this.useNavigate=()=>Vp({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(qp,{ref:t,from:this.fullPath,...e}))}};function hee(e){return new mee(e)}var gee=class extends fp{constructor(e){super(e),this.useMatch=e=>qu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Hp({...e,from:this.id}),this.useSearch=e=>Bp({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ir({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>zp({...e,from:this.id}),this.useLoaderData=e=>Rp({...e,from:this.id}),this.useNavigate=()=>Vp({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(qp,{ref:t,from:this.fullPath,...e}))}};function _ee(e){return new gee(e)}function Jp(e){return new vee(e,{silent:!0}).createRoute}var vee=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=hee(e);return t.isRoot=!1,t},this.silent=t?.silent}};function yee(e){let t=Br(),n=`not-found-${D(t.stores.location,e=>e.pathname)}-${D(t.stores.status,e=>e)}`;return(0,Y.jsx)(pp,{getResetKey:()=>n,onCatch:(t,n)=>{if(Wd(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Wd(t))return e.fallback?.(t);throw t},children:e.children})}function bee(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function Yp(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function Xp(e,t,n){return t.options.notFoundComponent?(0,Y.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Y.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Y.jsx)(bee,{})}var Zp=J.memo(function({matchId:e}){let t=Br(),n=t.stores.matchStores.get(e);n||At();let r=D(t.stores.loadedAt,e=>e),i=D(n,e=>e);return(0,Y.jsx)(xee,{router:t,matchId:e,resetKey:r,matchState:J.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function xee({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Y.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?J.Suspense:Yp,f=s?pp:Yp,p=l?yee:Yp;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??Yp:Yp,{children:[(0,Y.jsx)(Ye.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||hp,onCatch:(e,t)=>{if(Wd(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Y.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return J.createElement(l,e)},children:u||r._displayPending?(0,Y.jsx)(gp,{fallback:o,children:(0,Y.jsx)(Qp,{matchId:t})}):(0,Y.jsx)(Qp,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(See,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function See({resetKey:e}){let t=Br(),n=J.useRef(void 0);return id(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...zf(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Qp=J.memo(function({matchId:e}){let t=Br(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||At();let i=D(r,e=>e),a=i.routeId,o=t.routesById[a],s=J.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=J.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,Y.jsx)(e,{},s):(0,Y.jsx)($p,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=Pi();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Wd(i.error)||At(),Xp(t,o,i.error);if(i.status===`redirected`)throw ef(i.error)||At(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),$p=J.memo(function(){let e=Br(),t=J.useContext(Ye),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=D(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=D(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,Y.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||At(),Xp(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(Zp,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function Cee(){let e=Br(),t=J.useRef({router:e,mounted:!1}),[n,r]=J.useState(!1),i=D(e.stores.isLoading,e=>e),a=D(e.stores.hasPending,e=>e),o=ad(i),s=i||n||a,c=ad(s),l=i||a,u=ad(l);return e.startTransition=e=>{r(!0),J.startTransition(()=>{e(),r(!1)})},J.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Id(e.latestLocation.publicHref)!==Id(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),id(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),id(()=>{o&&!i&&e.emit({type:`onLoad`,...zf(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),id(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...zf(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),id(()=>{if(c&&!s){let t=zf(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Np(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function wee(){let e=Br(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,Y.jsx)(t,{}):null,r=(0,Y.jsxs)(typeof document<`u`&&e.ssr?Yp:J.Suspense,{fallback:n,children:[(0,Y.jsx)(Cee,{}),(0,Y.jsx)(Tee,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function Tee(){let e=Br(),t=D(e.stores.firstId,e=>e),n=D(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(Zp,{matchId:t}):null;return(0,Y.jsx)(Ye.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(pp,{getResetKey:()=>n,errorComponent:hp,onCatch:void 0,children:r})})}var Eee=e=>({createMutableStore:Ip,createReadonlyStore:Ip,batch:Np}),Dee=e=>new Oee(e),Oee=class extends Vf{constructor(e){super(e,Eee)}};function kee({router:e,children:t,...n}){fo(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Y.jsx)(ui.Provider,{value:e,children:t});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:r}):r}function Aee({router:e,...t}){return(0,Y.jsx)(kee,{router:e,...t,children:(0,Y.jsx)(wee,{})})}function em(e){let t=Br(),n=(0,J.useRef)(void 0);return D(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=_a(n.current,i);return n.current=e,e}return i})}function tm(){return D(Br().stores.location,e=>e.state.__TSR_index!==0)}var jee=eo(rd(),1);function nm(){return typeof window>`u`?null:window.__TAURI_INTERNALS__??null}var rm=typeof window<`u`&&window.isTauri===!0&&typeof nm()?.invoke==`function`;async function im(e,t){let n=nm();if(!n)throw Error(`laplus: ${e} needs the desktop shell, and this page has no IPC.`);return await n.invoke(e,t)}async function am(e){let t=nm();if(t)try{return await t.invoke(`plugin:window|${e}`)}catch(t){console.error(`laplus: the desktop shell refused plugin:window|${e}. If this is "not allowed", the capability granting it to ${window.location.origin} is missing or names another origin.`,t);return}}async function Mee(){return await am(`is_maximized`)===!0}function Nee(e){return{_tag:`Value`,value:e}}function Pee(e,t){return{_tag:`Record`,keys:e,value:t}}function Fee(e,t){return{_tag:`Array`,length:e,value:t}}ht(`SourceError`);var Iee=Co(`effect/ConfigProvider`,{defaultValue:()=>Uee()}),Lee={...en,toJSON(){return{_id:`ConfigProvider`}}},Ree=e=>e;function zee(e,t){let n=Object.create(Lee);return n.state=e,n.load=t,n}function Bee(e,t){let n={_tag:`Source`,get:e,transform:t};return zee(n,e=>n.get(n.transform(e)))}function Vee(e){return Bee(e,Ree)}function Hee(e,t){return e===``&&!t?void 0:e}function Uee(e){let t=e?.env??{APP_VERSION:`0.1.5`,BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_INLINE_CSS_ENABLED:`false`,VITE_HTTP_URL:``,VITE_WS_URL:``},n=e?.preserveEmptyStrings===!0,r=Wee(t);return Vee(e=>yu(Kee(r,t,e,n)))}function Wee(e){let t={};for(let[n,r]of Object.entries(e)){if(r===void 0)continue;let e=n.split(`_`),i=t;for(let t of e){let e=i.children??=Object.create(null);i=e[t]??={}}}return t}var Gee=/^(0|[1-9][0-9]*)$/;function Kee(e,t,n,r){let i=n.map(String).join(`_`),a=Hee(Object.hasOwn(t,i)?t[i]:void 0,r),o=qee(e,n),s=o?.children?Object.keys(o.children):[];return s.length===0?a===void 0?void 0:Nee(a):s.every(e=>Gee.test(e))?Fee(Math.max(...s.map(e=>parseInt(e,10)))+1,a):Pee(new Set(s),a)}function qee(e,t){if(t.length===0)return e;let n=e;for(let e of t)if(n=n?.children?.[String(e)],!n)return;return n}var om=`~effect/Config`,Jee=class{_tag=`ConfigError`;name=`ConfigError`;cause;constructor(e){this.cause=e}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}},Yee={...vs({label:`Config`,evaluate(e){return this.parse(e.getRef(Iee))}}),[om]:om,toJSON(){return{_id:`Config`}}};function Xee(e){let t=Object.create(Yee);return t.parse=(t,n=[])=>e(t,n),t}var sm=wa(function*(e,t){let n=yield*e.load(t);if(n!==void 0)switch(n._tag){case`Value`:return n.value;case`Record`:{if(n.value!==void 0)return n.value;let r={};for(let i of n.keys){let n=yield*sm(e,[...t,i]);n!==void 0&&fn(r,i,n)}return r}case`Array`:{if(n.value!==void 0)return n.value;let r=[];for(let i=0;i<n.length;i++)r.push(yield*sm(e,[...t,i]));return r}}}),cm=wa(function*(e,t,n){switch(e._tag){case`Objects`:{let r=yield*t.load(n);if(r===void 0&&n.length>0)return;let i={};for(let r of e.propertySignatures){let e=r.name;if(typeof e==`string`){let a=yield*cm(r.type,t,[...n,e]);a!==void 0&&fn(i,e,a)}}if(e.indexSignatures.length>0&&r&&r._tag===`Record`)for(let a of e.indexSignatures){let e=In(a.parameter);for(let o of r.keys)if(!Object.hasOwn(i,o)&&e(o)){let e=yield*cm(a.type,t,[...n,o]);e!==void 0&&fn(i,o,e)}}return i}case`Arrays`:{let r=yield*t.load(n);if(r===void 0)return;if(r&&r._tag===`Value`||r&&r._tag===`Array`&&r.value!==void 0)return r.value===``?[]:r.value.split(`,`);let i=[],a=r&&r._tag===`Array`?r.length:e.elements.length;for(let r=0;r<a;r++){let a=e.elements[r]??e.rest[0];a!==void 0&&i.push(yield*cm(a,t,[...n,r]))}return i}case`Union`:return yield*sm(t,n);case`Suspend`:return yield*cm(e.thunk(),t,n);default:{let e=yield*t.load(n);return e===void 0?void 0:e._tag===`Value`||e._tag===`Record`&&e.value!==void 0||e._tag===`Array`&&e.value!==void 0?e.value:void 0}}});function lm(e,t){let n=nn(e),r=ke(n),i=Wt(n.ast),a=typeof t==`string`?[t]:t??[];return Xee((e,t)=>{let n=[...t,...a];return cm(i,e,n).pipe(pl(e=>r(e).pipe(fa(e=>new lt(n.length>0?new Hr(n,e):e)))),fa(e=>new Jee(e)))})}var Zee=(e,t,n)=>{let r=Ic(e,t);return Lu([r,tc.pipe(B(Ic(tc,tc),Yu(n)),B(r))])};function Qee(e){return lm(tc,e)}var X=Ht(),$ee=/-nightly\.\d{8}\.\d+$/;function um(e){return e.stageLabel.trim().toLowerCase()===`latest`?e.baseName:`${e.baseName} (${e.stageLabel})`}function dm(e){return e.primaryServerVersion&&$ee.test(e.primaryServerVersion)?`Nightly`:e.fallbackStageLabel}function ete(e){let t=dm({primaryServerVersion:e.primaryServerVersion,fallbackStageLabel:e.fallbackStageLabel});return t===e.fallbackStageLabel?e.fallbackDisplayName:um({baseName:e.baseName,stageLabel:t})}function tte(){return typeof window>`u`?null:window.desktopBridge?.getAppBranding?.()??null}var fm=tte(),pm=fm?.baseName??`laplus`,mm=fm?.stageLabel??`Alpha`,hm=fm?.displayName??um({baseName:pm,stageLabel:mm}),gm=`0.1.5`,nte=zu(`alarm-clock-off`,[[`path`,{d:`M6.87 6.87a8 8 0 1 0 11.26 11.26`,key:`3on8tj`}],[`path`,{d:`M19.9 14.25a8 8 0 0 0-9.15-9.15`,key:`15ghsc`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.26 18.67 4 21`,key:`yzmioq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4 4 2 6`,key:`1ycko6`}]]),_m=zu(`alarm-clock`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M12 9v4l2 2`,key:`1c63tq`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}]]),rte=zu(`archive-x`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`m9.5 17 5-5`,key:`nakeu6`}],[`path`,{d:`m9.5 12 5 5`,key:`1hccrj`}]]),vm=zu(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),ym=zu(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),bm=zu(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ite=zu(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),xm=zu(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),Sm=zu(`bookmark`,[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),Cm=zu(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),ate=zu(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),ote=zu(`chart-no-axes-column`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]]),wm=zu(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Tm=zu(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Em=zu(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Dm=zu(`chevrons-left-right-ellipsis`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`m17 7 5 5-5 5`,key:`1xlxn0`}],[`path`,{d:`m7 7-5 5 5 5`,key:`19njba`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),Om=zu(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),km=zu(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ste=zu(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),Am=zu(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),cte=zu(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),lte=zu(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ute=zu(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),dte=zu(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),jm=zu(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),fte=zu(`container`,[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]),Mm=zu(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),pte=zu(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),Nm=zu(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Pm=zu(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Fm=zu(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),mte=zu(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Im=zu(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),hte=zu(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),Lm=zu(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),gte=zu(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Rm=zu(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),_te=zu(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),vte=zu(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),zm=zu(`folder-git-2`,[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),Bm=zu(`folder-git`,[[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M14 13h3`,key:`1dgedf`}],[`path`,{d:`M7 13h3`,key:`1pygq7`}]]),yte=zu(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Vm=zu(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Hm=zu(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),bte=zu(`frame`,[[`line`,{x1:`22`,x2:`2`,y1:`6`,y2:`6`,key:`15w7dq`}],[`line`,{x1:`22`,x2:`2`,y1:`18`,y2:`18`,key:`1ip48p`}],[`line`,{x1:`6`,x2:`6`,y1:`2`,y2:`22`,key:`a2lnyx`}],[`line`,{x1:`18`,x2:`18`,y1:`2`,y2:`22`,key:`8vb6jd`}]]),Um=zu(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Wm=zu(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),xte=zu(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),Ste=zu(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),Gm=zu(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Cte=zu(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),wte=zu(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Tte=zu(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Ete=zu(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),Km=zu(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),qm=zu(`loader`,[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]),Dte=zu(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),Ote=zu(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),kte=zu(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Jm=zu(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),Ate=zu(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),jte=zu(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Ym=zu(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Xm=zu(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Zm=zu(`mouse-pointer-click`,[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]),Mte=zu(`paintbrush`,[[`path`,{d:`m14.622 17.897-10.68-2.913`,key:`vj2p1u`}],[`path`,{d:`M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z`,key:`18tc5c`}],[`path`,{d:`M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15`,key:`ytzfxy`}]]),Nte=zu(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),Pte=zu(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),Fte=zu(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ite=zu(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Qm=zu(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Lte=zu(`pencil-ruler`,[[`path`,{d:`M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13`,key:`orapub`}],[`path`,{d:`m8 6 2-2`,key:`115y1s`}],[`path`,{d:`m18 16 2-2`,key:`ee94s4`}],[`path`,{d:`m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17`,key:`cfq27r`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Rte=zu(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),$m=zu(`picture-in-picture-2`,[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`,key:`daa4of`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`,key:`1nb8gs`}]]),eh=zu(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),th=zu(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),zte=zu(`pipette`,[[`path`,{d:`m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12`,key:`1y3wsu`}],[`path`,{d:`m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z`,key:`110lr1`}],[`path`,{d:`m2 22 .414-.414`,key:`jhxm08`}]]),Bte=zu(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),nh=zu(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Vte=zu(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),rh=zu(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),ih=zu(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ah=zu(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),oh=zu(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),sh=zu(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Hte=zu(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ch=zu(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),lh=zu(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),uh=zu(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),dh=zu(`square-split-horizontal`,[[`path`,{d:`M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3`,key:`lubmu8`}],[`path`,{d:`M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3`,key:`1ag34g`}],[`line`,{x1:`12`,x2:`12`,y1:`4`,y2:`20`,key:`1tx1rr`}]]),fh=zu(`square-split-vertical`,[[`path`,{d:`M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3`,key:`1pi83i`}],[`path`,{d:`M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3`,key:`ido5k7`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),ph=zu(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),mh=zu(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),hh=zu(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),gh=zu(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),_h=zu(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),vh=zu(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),yh=zu(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Ute=zu(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),bh=zu(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]);function Wte(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}var Gte=`\x1Bb`,Kte=`\x1Bf`,qte=``,Jte=``,Yte=``,Xte={BracketLeft:[`[`],BracketRight:[`]`],Digit0:[`0`],Digit1:[`1`],Digit2:[`2`],Digit3:[`3`],Digit4:[`4`],Digit5:[`5`],Digit6:[`6`],Digit7:[`7`],Digit8:[`8`],Digit9:[`9`]};function xh(e){let t=e.toLowerCase();return t===`esc`?`escape`:t}function Zte(e){let t=new Set([xh(e.key)]),n=e.code?.match(/^Key([A-Z])$/)?.[1];n&&t.add(n.toLowerCase());let r=e.code?Xte[e.code]:void 0;if(!r)return t;for(let e of r)t.add(e);return t}function Sh(e,t,n=navigator.platform){let r=mt(n),i=t.metaKey||t.modKey&&r,a=t.ctrlKey||t.modKey&&!r;return e.metaKey===i&&e.ctrlKey===a&&e.shiftKey===t.shiftKey&&e.altKey===t.altKey}function Qte(e,t,n=navigator.platform){return Sh(e,t,n)?Zte(e).has(t.key):!1}function Ch(e){return e?.platform??navigator.platform}function wh(e){return{terminalFocus:!1,terminalOpen:!1,previewFocus:!1,previewOpen:!1,...e?.context}}function Th(e,t){switch(e.type){case`identifier`:return e.name===`true`?!0:e.name===`false`?!1:!!t[e.name];case`not`:return!Th(e.node,t);case`and`:return Th(e.left,t)&&Th(e.right,t);case`or`:return Th(e.left,t)||Th(e.right,t)}}function Eh(e,t){return e?Th(e,t):!0}function $te(e,t=navigator.platform){let n=mt(t),r=e.metaKey||e.modKey&&n,i=e.ctrlKey||e.modKey&&!n;return[e.key,r?`meta`:``,i?`ctrl`:``,e.shiftKey?`shift`:``,e.altKey?`alt`:``].join(`|`)}function Dh(e,t,n){let r=Ch(n),i=wh(n),a=new Set;for(let n=e.length-1;n>=0;--n){let o=e[n];if(!o||!Eh(o.whenAst,i))continue;let s=$te(o.shortcut,r);if(!a.has(s)&&(a.add(s),o.command===t))return o.shortcut}return null}function Oh(e,t,n,r){return kh(e,t,r)===n}function kh(e,t,n){let r=Ch(n),i=wh(n);for(let n=t.length-1;n>=0;--n){let a=t[n];if(a&&Eh(a.whenAst,i)&&Qte(e,a.shortcut,r))return a.command}return null}function ene(e){return e===` `?`Space`:e.length===1?e.toUpperCase():e===`escape`?`Esc`:e===`arrowup`?`Up`:e===`arrowdown`?`Down`:e===`arrowleft`?`Left`:e===`arrowright`?`Right`:e.slice(0,1).toUpperCase()+e.slice(1)}function Ah(e,t=navigator.platform){let n=ene(e.key),r=mt(t),i=e.metaKey||e.modKey&&r,a=e.ctrlKey||e.modKey&&!r,o=e.altKey,s=e.shiftKey;if(r)return`${a?`⌃`:``}${o?`⌥`:``}${s?`⇧`:``}${i?`⌘`:``}${n}`;let c=[];return a&&c.push(`Ctrl`),o&&c.push(`Alt`),s&&c.push(`Shift`),i&&c.push(`Meta`),c.push(n),c.join(`+`)}function jh(e,t,n){let r=typeof n==`string`?{platform:n}:n,i=Ch(r),a=Dh(e,t,r);return a?Ah(a,i):null}function Mh(e){return $u[e]??null}function Nh(e){let t=$u.indexOf(e);return t===-1?null:t}function Ph(e){return e===`thread.previous`?`previous`:e===`thread.next`?`next`:null}function Fh(e,t,n){let r=Ch(n);for(let i of $u){let a=Dh(t,i,n);if(a&&Sh(e,a,r))return!0}return!1}function tne(e){return Jt[e]??null}function nne(e){let t=Jt.indexOf(e);return t===-1?null:t}function rne(e,t,n){return Oh(e,t,`terminal.toggle`,n)}function ine(e,t,n){return Oh(e,t,`terminal.split`,n)}function ane(e,t,n){return Oh(e,t,`terminal.splitVertical`,n)}function one(e,t,n){return Oh(e,t,`terminal.new`,n)}function sne(e,t,n){return Oh(e,t,`terminal.close`,n)}function cne(e,t,n){return Oh(e,t,`diff.toggle`,n)}function lne(e,t,n){return Oh(e,t,`editor.openFavorite`,n)}function une(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`)return!1;let n=e.key.toLowerCase();return n===`l`&&e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey?!0:mt(t)&&n===`k`&&e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function dne(e,t=navigator.platform){return e.type!==void 0&&e.type!==`keydown`||!mt(t)||xh(e.key)!==`backspace`?null:e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey?Yte:null}function fne(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`||e.shiftKey)return null;let n=xh(e.key);if(n!==`arrowleft`&&n!==`arrowright`)return null;let r=n===`arrowleft`?Gte:Kte,i=n===`arrowleft`?qte:Jte;return mt(t)?e.altKey&&!e.metaKey&&!e.ctrlKey?r:e.metaKey&&!e.altKey&&!e.ctrlKey?i:null:e.ctrlKey&&!e.metaKey&&!e.altKey||e.altKey&&!e.metaKey&&!e.ctrlKey?r:null}var pne=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,/\bis not connected\.$/i,/\bdisconnected\.$/i,/\bcould not establish a WebSocket connection\.$/i,/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function mne(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length===0?!1:pne.some(e=>e.test(t))}function hne(e){return mne(e)?null:e??null}var Ih=`[CLIENT_SETTINGS]`,Lh=new Set,gne=new Set,Rh=x,zh=!1,Bh=null,Vh=0;function _ne(){for(let e of Lh)e()}function vne(){for(let e of gne)e()}function Hh(){return Rh}function Uh(e){Rh=e,_ne()}function yne(e){zh!==e&&(zh=e,vne())}function bne(e){return Lh.add(e),xne(),()=>{Lh.delete(e)}}async function xne(){if(zh)return;if(Bh)return Bh;let e=Vh,t=(async()=>{try{let t=await un().persistence.getClientSettings();if(e!==Vh)return;t&&Uh({...x,...t})}catch(e){console.error(`${Ih} hydrate failed`,{operation:`hydrate`,..._c(e)})}finally{e===Vh&&yne(!0)}})().finally(()=>{Bh===t&&(Bh=null)});return Bh=t,Bh}function Wh(e){Uh(e),un().persistence.setClientSettings(e).catch(e=>{console.error(`${Ih} persist failed`,{operation:`persist`,..._c(e)})})}var Sne=new Set(mn(Ne.fields));function Cne(e){let t={},n={};for(let[r,i]of Object.entries(e))Sne.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function wne(){return Hh()}function Gh(){return(0,J.useSyncExternalStore)(bne,Hh,Tne)}function Tne(){return x}function Ene(e,t){return{...e,...t}}function Kh(e,t){let n=(0,X.c)(6),r=Gh(),i;n[0]!==r||n[1]!==e?(i=Ene(e,r),n[0]=r,n[1]=e,n[2]=i):i=n[2];let a=i,o;return n[3]!==a||n[4]!==t?(o=t?t(a):a,n[3]=a,n[4]=t,n[5]=o):o=n[5],o}function qh(e){let t=(0,X.c)(3),n=Gh(),r;return t[0]!==e||t[1]!==n?(r=e?e(n):n,t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Dne(e,t){let n=(0,X.c)(2),r;return n[0]===e?r=n[1]:(r=Ot.settingsValueAtom(e),n[0]=e,n[1]=r),Kh(Kt(r)??ws,t)}function Jh(e){return Kh(Kt(si),e)}function One(e){let t=(0,X.c)(3),n=pe(Ot.updateSettings,`server settings update`),r;return t[0]!==e||t[1]!==n?(r=t=>{let{serverPatch:r,clientPatch:i}=Cne(t);Object.keys(r).length>0&&e&&n({environmentId:e,input:{patch:r}}),Object.keys(i).length>0&&Wh({...Hh(),...i})},t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Yh(){return One(f()?.environmentId??null)}function Xh(){return kne}function kne(e){Wh({...Hh(),...e})}function Ane(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var Zh=Object.freeze({buffer:``,status:`closed`,error:null,updatedAt:null,version:0}),jne=Object.freeze({summary:null,buffer:``,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0}),Mne=512*1024,Nne=new TextEncoder,Pne=new TextDecoder;function Qh(e,t){if(t<=0)return``;let n=Nne.encode(e);if(n.byteLength<=t)return e;let r=n.byteLength-t;for(;r<n.length;){let e=n[r];if(e===void 0||(e&192)!=128)break;r+=1}return Pne.decode(n.subarray(r))}function Fne(e,t){return{buffer:Qh(e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:1}}function Ine(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function $h(e,t){return{summary:e,buffer:t.buffer,status:t.version>0?t.status:e?.status??t.status,error:t.error,hasRunningSubprocess:e?.hasRunningSubprocess??!1,updatedAt:Ine(e?.updatedAt??null,t.updatedAt),version:t.version}}function Lne(e,t,n=Mne){switch(t.type){case`snapshot`:case`restarted`:return Fne(t.snapshot,n);case`output`:return{...e,buffer:Qh(`${e.buffer}${t.data}`,n),status:e.status===`closed`?`running`:e.status,error:null,version:e.version+1};case`cleared`:return{...e,buffer:``,error:null,version:e.version+1};case`exited`:return{...e,status:`exited`,error:null,version:e.version+1};case`closed`:return{...e,status:`closed`,error:null,version:e.version+1};case`error`:return{...e,status:`error`,error:t.message,version:e.version+1};case`activity`:return e}}function Rne(e,t){return t.type===`snapshot`?t.terminals:t.type===`remove`?e.filter(e=>e.threadId!==t.threadId||e.terminalId!==t.terminalId):[...e.filter(e=>e.threadId!==t.terminal.threadId||e.terminalId!==t.terminal.terminalId),t.terminal]}function zne(e){let t=Zu(),n=Zu(),r=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId]),i=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.terminalId??null]),a={mode:`serial`,key:r};return{attach:mi(e,{label:`environment-data:terminal:attach`,subscribe:e=>_o(W.terminalAttach,e).pipe(vt(Zh,Lne))}),events:Wr(e,{label:`environment-data:terminal:events`,tag:W.subscribeTerminalEvents}),metadata:mi(e,{label:`environment-data:terminal:metadata`,subscribe:e=>_o(W.subscribeTerminalMetadata,{}).pipe(vt([],Rne))}),open:ni(e,{label:`environment-data:terminal:open`,tag:W.terminalOpen,scheduler:t,concurrency:a}),write:ni(e,{label:`environment-data:terminal:write`,tag:W.terminalWrite}),resize:ni(e,{label:`environment-data:terminal:resize`,tag:W.terminalResize,scheduler:n,concurrency:{mode:`latest`,key:i}}),clear:ni(e,{label:`environment-data:terminal:clear`,tag:W.terminalClear,scheduler:t,concurrency:a}),restart:ni(e,{label:`environment-data:terminal:restart`,tag:W.terminalRestart,scheduler:t,concurrency:a}),close:ni(e,{label:`environment-data:terminal:close`,tag:W.terminalClose,scheduler:t,concurrency:a})}}var eg=zne(yi);function Bne(e){let t=(0,X.c)(13),n;t[0]!==e.environmentId||t[1]!==e.terminal?(n=e.environmentId!==null&&e.terminal!==null?eg.attach({environmentId:e.environmentId,input:e.terminal}):null,t[0]=e.environmentId,t[1]=e.terminal,t[2]=n):n=t[2];let r=Zt(n),i;t[3]===e.environmentId?i=t[4]:(i=e.environmentId===null?null:eg.metadata({environmentId:e.environmentId,input:null}),t[3]=e.environmentId,t[4]=i);let a=Zt(i),o;bb0:{if(e.environmentId===null||e.terminal===null){o=jne;break bb0}let n;t[5]!==r.data||t[6]!==e.terminal?.terminalId||t[7]!==e.terminal?.threadId||t[8]!==a.data?(n=$h(a.data?.find(t=>t.threadId===e.terminal?.threadId&&t.terminalId===e.terminal?.terminalId)??null,r.data??Zh),t[5]=r.data,t[6]=e.terminal?.terminalId,t[7]=e.terminal?.threadId,t[8]=a.data,t[9]=n):n=t[9];let i=n,s;t[10]!==r.error||t[11]!==i?(s=r.error===null?i:{...i,error:r.error,status:`error`},t[10]=r.error,t[11]=i,t[12]=s):s=t[12],o=s}return o}function tg(e){let t=(0,X.c)(11),n;t[0]===e.environmentId?n=t[1]:(n=e.environmentId===null?null:eg.metadata({environmentId:e.environmentId,input:null}),t[0]=e.environmentId,t[1]=n);let r=Zt(n),i;bb0:{if(e.environmentId===null){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[2]=e):e=t[2],i=e;break bb0}let n;if(t[3]!==e.environmentId||t[4]!==e.threadId||t[5]!==r.data){let i;t[7]===e.threadId?i=t[8]:(i=t=>e.threadId===null||t.threadId===e.threadId,t[7]=e.threadId,t[8]=i);let a;t[9]===e.environmentId?a=t[10]:(a=t=>({target:{environmentId:e.environmentId,threadId:sl.make(t.threadId),terminalId:t.terminalId},state:$h(t,Zh)}),t[9]=e.environmentId,t[10]=a),n=(r.data??[]).filter(i).map(a).sort(Vne),t[3]=e.environmentId,t[4]=e.threadId,t[5]=r.data,t[6]=n}else n=t[6];i=n}return i}function Vne(e,t){return e.target.terminalId.localeCompare(t.target.terminalId,void 0,{numeric:!0})}function ng(e){let t=(0,X.c)(2),n=tg(e),r;return t[0]===n?r=t[1]:(r=Ane(n),t[0]=n,t[1]=r),r}function rg(e){return/^[a-zA-Z]:([/\\]|$)/.test(e)}function ig(e){return e.startsWith(`\\\\`)}function ag(e){return ig(e)||rg(e)}function og(e){return e===`.`||e===`..`||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)}function Hne(e){return e===`/`||e===`\\`||/^[a-zA-Z]:[/\\]?$/.test(e)}function Une(e){if(e.length===0||Hne(e))return e;let t=e.startsWith(`/`)?e.replace(/\/+$/g,``):e.replace(/[\\/]+$/g,``);return t.length===0?e:/^[a-zA-Z]:$/.test(t)?`${t}\\`:t}function sg(e){return Une(e.trim())}function cg(e){let t=sg(e);return rg(t)||ig(t)?t.replaceAll(`/`,`\\`).toLowerCase():t}function Wne(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function Gne(e){let t=Zu(),n=Zu(),r=Oc(e=>qa(null).pipe(ao(`environment-data:projects:optimistic-file:${e}`))),i={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{searchEntries:$e(e,{label:`environment-data:projects:search-entries`,tag:W.projectsSearchEntries,staleTimeMs:15e3}),listEntries:$e(e,{label:`environment-data:projects:list-entries`,tag:W.projectsListEntries,staleTimeMs:3e4,idleTtlMs:5*6e4}),readFile:$e(e,{label:`environment-data:projects:read-file`,tag:W.projectsReadFile,staleTimeMs:3e4,idleTtlMs:5*6e4}),optimisticFile:e=>r(Wne(e)),create:j(e,{label:`environment-data:commands:project:create`,execute:e=>Ao(e),scheduler:t,concurrency:i}),update:j(e,{label:`environment-data:commands:project:update`,execute:e=>oc(e),scheduler:t,concurrency:i}),delete:j(e,{label:`environment-data:commands:project:delete`,execute:e=>Vc(e),scheduler:t,concurrency:i}),writeFile:ni(e,{label:`environment-data:projects:write-file`,tag:W.projectsWriteFile,scheduler:n,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])}})}}var Kne=Object.freeze([]),qne=new Map;function Jne(e){let t=Oc(t=>qa(n=>n(e.snapshotAtom(t))?.projects??Kne).pipe(ao(`environment-projects:${t}`))),n=Oc(e=>qa(n=>{let r=n(t(e));return r.length===0?qne:new Map(r.map(e=>[e.id,e]))}).pipe(ao(`environment-project-index:${e}`))),r=Oc(e=>{let n=[];return qa(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return Au(n,i)?n:(n=i,i)}).pipe(ao(`environment-project-refs:${e}`))}),i=Oc(e=>{let t=Hu(e),r=null,i=null;return qa(e=>{let a=e(n(t.environmentId)).get(t.projectId)??null;return a===r?i:(r=a,i=a===null?null:Vn(t.environmentId,a),i)}).pipe(ao(`environment-project:${e}`))}),a=[],o=qa(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys())n.push(...t(r(i)));return Au(a,n)?a:(a=n,n)}).pipe(ao(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:qa(e=>{let t=e(o).flatMap(t=>{let n=e(i(Fa(t)));return n===null?[]:[n]});return ou(s,t)||(s=t),s}).pipe(ao(`environment-project-list`)),projectAtom:e=>i(Fa(e))}}var lg=e=>/^win(dows)?/i.test(e);function ug(e){return rg(e)||ig(e)?`windows`:e.startsWith(`/`)?`unix`:null}function dg(e){let t=ug(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function fg(e){return(ug(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function pg(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function mg(e){return ug(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function hg(e){if(rg(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:pg(e.slice(t.length),`\\`)}}if(ig(e)){let[t,n,...r]=pg(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:pg(e.slice(1),`/`)}:null}function Yne(e,t=``){let n=lg(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&ag(e)}function Xne(e,t){return ag(e)&&!lg(t)}function gg(e,t){let n=e.trim();if(!og(n)||!t)return sg(n);let r=hg(sg(t));if(!r)return sg(n);let i=[...r.segments];for(let e of n.split(/[\\/]+/))if(!(e.length===0||e===`.`)){if(e===`..`){i.pop();continue}i.push(e)}let a=i.join(r.separator);return sg(a.length===0?r.root:`${r.root}${a}`)}function Zne(e,t){let n=cg(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?cg(t)===n:!1})}function Qne(e){let t=sg(e),n=hg(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function $ne(e,t){let n=dg(e);return`${_g(e)}${t}${n}`}function ere(e){let t=mg(e);return e.slice(t+1)}function _g(e){if(fg(e))return e;let t=mg(e);return t<0?e:e.slice(0,t+1)}function tre(e){let t=e.trim();return t.length===0||fg(t)?t:`${t}${dg(t)}`}function vg(e){let t=sg(e),n=hg(t);if(n){if(n.segments.length===0)return null;if(n.segments.length===1)return n.root;let e=n.segments.slice(0,-1).join(n.separator);return`${n.root}${e}${n.separator}`}let r=dg(e),i=mg(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function nre(e){return fg(e)&&vg(e)!==null}var yg=`t3code:ui-state:v1`,bg=1,xg=[`t3code:renderer-state:v8`,`t3code:renderer-state:v7`,`t3code:renderer-state:v6`,`t3code:renderer-state:v5`,`t3code:renderer-state:v4`,`t3code:renderer-state:v3`,`codething:renderer-state:v4`,`codething:renderer-state:v3`,`codething:renderer-state:v2`,`codething:renderer-state:v1`],Sg={projectExpandedById:{},projectOrder:[],threadLastVisitedAtById:{},threadChangedFilesExpandedById:{},defaultAdvertisedEndpointKey:null},rre=`legacy-project-cwd:`,Cg=`legacy-project-expansion-default`,wg=!1;function Tg(e){return`${rre}${cg(e)}`}function Eg(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:[]}function ire(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`boolean`))}function are(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`string`&&e[1].length>0&&Number.isFinite(Date.parse(e[1]))))}function Dg(e){return{projectExpandedById:e.projectExpandedById===void 0?(()=>{let t={},n=Eg(e.collapsedProjectCwds),r=Eg(e.expandedProjectCwds);for(let e of n)t[Tg(e)]=!1;for(let e of r)t[Tg(e)]=!0;return!Array.isArray(e.collapsedProjectCwds)&&r.length>0&&(t[Cg]=!1),t})():ire(e.projectExpandedById),projectOrder:e.projectOrder===void 0?Eg(e.projectOrderCwds).map(Tg):Eg(e.projectOrder),threadLastVisitedAtById:are(e.threadLastVisitedAtById),threadChangedFilesExpandedById:e.threadChangedFilesExpansionVersion===bg?sre(e.threadChangedFilesExpandedById):{},defaultAdvertisedEndpointKey:typeof e.defaultAdvertisedEndpointKey==`string`&&e.defaultAdvertisedEndpointKey.length>0?e.defaultAdvertisedEndpointKey:null}}function ore(){if(typeof window>`u`)return Sg;try{let e=window.localStorage.getItem(yg);if(!e){for(let e of xg){let t=window.localStorage.getItem(e);if(t)return Dg(JSON.parse(t))}return Sg}return Dg(JSON.parse(e))}catch{return Sg}}function sre(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e)){if(!n||!r||typeof r!=`object`)continue;let e={};for(let[t,n]of Object.entries(r))t&&typeof n==`boolean`&&(e[t]=n);Object.keys(e).length>0&&(t[n]=e)}return t}function cre(e){if(!(typeof window>`u`))try{let t=Object.fromEntries(Object.entries(e.projectExpandedById).filter(([e])=>e!==Cg));if(window.localStorage.setItem(yg,JSON.stringify({projectExpandedById:t,projectOrder:e.projectOrder,threadLastVisitedAtById:e.threadLastVisitedAtById,defaultAdvertisedEndpointKey:e.defaultAdvertisedEndpointKey,threadChangedFilesExpansionVersion:bg,threadChangedFilesExpandedById:e.threadChangedFilesExpandedById})),!wg){wg=!0;for(let e of xg)window.localStorage.removeItem(e)}}catch{}}var Og=new Wa(cre,{wait:500});function lre(e,t,n){let r=Date.parse(n);if(!Number.isFinite(r))return e;let i=e.threadLastVisitedAtById[t],a=i?Date.parse(i):NaN;return Number.isFinite(a)&&Number.isFinite(r)&&a>=r?e:{...e,threadLastVisitedAtById:{...e.threadLastVisitedAtById,[t]:n}}}function ure(e,t,n){if(!n)return e;let r=Date.parse(n);if(Number.isNaN(r))return e;let i=new Date(r-1).toISOString();return e.threadLastVisitedAtById[t]===i?e:{...e,threadLastVisitedAtById:{...e.threadLastVisitedAtById,[t]:i}}}function dre(e,t,n,r){let i=e.threadChangedFilesExpandedById[t]??{};return i[n]===r?e:{...e,threadChangedFilesExpandedById:{...e.threadChangedFilesExpandedById,[t]:{...i,[n]:r}}}}function fre(e,t){let n=t&&t.length>0?t:null;return e.defaultAdvertisedEndpointKey===n?e:{...e,defaultAdvertisedEndpointKey:n}}function kg(e,t){for(let n of t){let t=e[n];if(t!==void 0)return t}return e[Cg]??!0}function pre(e,t,n){let r=(typeof t==`string`?[t]:t).filter(t=>e.projectExpandedById[t]!==n);if(r.length===0)return e;let i={...e.projectExpandedById};for(let e of r)i[e]=n;return{...e,projectExpandedById:i}}function mre(e,t,n,r){if(n.length===0)return e;let i=new Set(n),a=new Set(r);if(n.every(e=>a.has(e)))return e;let o=t.findIndex(e=>a.has(e));if(o<0)return e;let s=[...t],c=[],l=0;for(let e=s.length-1;e>=0;e--)i.has(s[e])&&(c.unshift(s.splice(e,1)[0]),e<o&&l++);if(c.length===0)return e;let u=o-Math.max(0,l-1);return s.splice(u,0,...c),{...e,projectOrder:s}}var Ag=Eo(e=>({...ore(),markThreadVisited:(t,n)=>e(e=>lre(e,t,n)),markThreadUnread:(t,n)=>e(e=>ure(e,t,n)),setThreadChangedFilesExpanded:(t,n,r)=>e(e=>dre(e,t,n,r)),setDefaultAdvertisedEndpointKey:t=>e(e=>fre(e,t)),setProjectExpanded:(t,n)=>e(e=>pre(e,t,n)),reorderProjects:(t,n,r)=>e(e=>mre(e,t,n,r))}));Ag.subscribe(e=>Og.maybeExecute(e)),typeof window<`u`&&typeof window.addEventListener==`function`&&window.addEventListener(`beforeunload`,()=>{Og.flush()});function jg(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Mg(...e){for(let t of e){let e=jg(t??void 0);if(e!==null)return e}return null}function hre(e){if(e.latestUserMessageAt){let t=jg(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=jg(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?Mg(e.updatedAt,e.createdAt)??-1/0:t}function Ng(e,t){return t===`created_at`?Mg(e.createdAt,e.updatedAt)??-1/0:hre(e)}function Pg(e,t){return as(e,h(Cn({timestamp:As(ge),id:As(ie)}),e=>({timestamp:Ng(e,t),id:e.id})))}function Fg(e,t,n){return Pg(e.filter(e=>e.projectId===t&&e.archivedAt===null),n)[0]??null}var gre=[{value:za.make(`codex`),label:`Codex`,available:!0},{value:za.make(`claudeAgent`),label:`Claude`,available:!0},{value:za.make(`opencode`),label:`OpenCode`,available:!0,pickerSidebarBadge:`new`},{value:za.make(`cursor`),label:`Cursor`,available:!0,pickerSidebarBadge:`new`},{value:za.make(`grok`),label:`Grok`,available:!0,pickerSidebarBadge:`new`}];function Ig(e){return e.tone===`tool`||e.tone===`thinking`||e.tone===`error`||e.command!==void 0&&e.command.trim().length>0||e.requestKind!==void 0?!0:e.itemType!==void 0&&M(e.itemType)}function _re(e){let t=e.toLowerCase();return!!(t.includes(`file not found`)||t.includes(`no files found`)||t.includes(`enoent`)||t.includes(`no such file or directory`)||t.includes(`no such file`)||t.includes(`cannot find path`)&&t.includes(`because it does not exist`)||t.includes(`commandnotfoundexception`)||t.includes(`is not recognized as the name of a cmdlet`)||t.includes(`is not recognized`)&&t.includes(`the term '`)||t.includes(`a parameter cannot be found that matches parameter name`)||t.includes(`command not found`)||/<exited with exit code\s+[1-9]\d*\s*>/i.test(e)||/exit(?:ed)? with exit code\s+[1-9]\d*/i.test(e)||/exit code\s*[:\s]\s*[1-9]\d*\b/i.test(e))}function Lg(e){if(e.tone===`error`)return!0;let t=e.toolLifecycleStatus;if(t===`failed`||t===`declined`)return!0;if(!Ig(e))return!1;let n=[];e.detail&&n.push(e.detail),e.command&&n.push(e.command);let r=n.join(`
|
|
10
|
+
`).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Fd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Nt(e,``+r);break;case`className`:_t(e,`class`,r);break;case`tabIndex`:_t(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:_t(e,n,r);break;case`style`:It(e,r,o);break;case`data`:if(t!==`object`){_t(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Fd(e,t,`name`,a.name,a,null),Fd(e,t,`formEncType`,a.formEncType,a,null),Fd(e,t,`formMethod`,a.formMethod,a,null),Fd(e,t,`formTarget`,a.formTarget,a,null)):(Fd(e,t,`encType`,a.encType,a,null),Fd(e,t,`method`,a.method,a,null),Fd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Bt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:xd(`beforetoggle`,e),xd(`toggle`,e),gt(e,`popover`,r);break;case`xlinkActuate`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:vt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:vt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:gt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Rt.get(n)||n,gt(e,n,r))}}function Id(e,t,n,r,a,o){switch(n){case`style`:It(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Nt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Nt(e,``+r);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!lt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[Ye]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):gt(e,n,r)}}}function Ld(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:xd(`error`,e),xd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,o,s,n,null)}}a&&Fd(e,t,`srcSet`,n.srcSet,n,null),r&&Fd(e,t,`src`,n.src,n,null);return;case`input`:xd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Fd(e,t,r,d,n,null)}}Ot(e,o,c,l,u,s,a,!1);return;case`select`:for(a in xd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Fd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&At(e,!!r,n,!0):At(e,!!r,t,!1);return;case`textarea`:for(s in xd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Fd(e,t,s,c,n,null)}Mt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Fd(e,t,l,r,n,null)}return;case`dialog`:xd(`beforetoggle`,e),xd(`toggle`,e),xd(`cancel`,e),xd(`close`,e);break;case`iframe`:case`object`:xd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)xd(vd[r],e);break;case`image`:xd(`error`,e),xd(`load`,e);break;case`details`:xd(`toggle`,e);break;case`embed`:case`source`:case`link`:xd(`error`,e),xd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,u,r,n,null)}return;default:if(Lt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Id(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Fd(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Fd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Fd(e,t,p,m,r,f)}}Dt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Fd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Fd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?At(e,!!n,n?[]:``,!1):At(e,!!n,t,!0)):At(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Fd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Fd(e,t,s,a,r,o)}jt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Fd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Fd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Fd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Fd(e,t,u,p,r,m)}return;default:if(Lt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Id(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Id(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Fd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Fd(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function nee(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Mp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[tt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Mp(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),nt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[tt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nt(e)}var gf=new Map,_f=new Set;function vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yf=P.d;P.d={f:bf,r:xf,D:ree,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function bf(){var e=yf.f(),t=xu();return e||t}function xf(e){var t=it(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):yf.r(e)}var Sf=typeof document>`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Et(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),st(t),r.head.appendChild(t)))}}function ree(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function wf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Tf(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Et(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Et(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Et(n.imageSizes)+`"]`)):i+=`[href="`+Et(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}gf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Ld(t,`link`,e),st(t),r.head.appendChild(t)))}}function Ef(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Et(r)+`"][href="`+Et(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!gf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),st(r),n.head.appendChild(r)}}}function Df(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=ot(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);st(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0},t),(t=gf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=ot(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Bf(e,t),a=n.createElement(`script`),st(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=U.current)?vf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Et(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),st(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Et(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Et(n.href)+`"]`);if(r)return t.instance=r,st(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),st(r),Ld(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,st(o),o;r=Nf(n),(a=gf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),st(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,st(a),a):(r=n,(a=gf.get(o))&&(r=f({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),st(a),Ld(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[tt]||a[Je]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,st(a);return}a=t.ownerDocument||t,r=Nf(r),(i=gf.get(i))&&zf(r,i),a=a.createElement(`link`),st(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*nee());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:b,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Xr(3,null,null,t),e.current=a,a.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Aa(a),e}function np(e){return e?(e=Jr,e):Jr}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ma(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Na(e,r,t),n!==null&&(gu(n,e,t),Pa(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Gr(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=Ue(t);var n=Gr(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,up(e,t,n,r)}finally{P.p=a,N.T=i}}function iee(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,up(e,t,n,r)}finally{P.p=a,N.T=i}}function up(e,t,n,r){if(cp){var i=dp(r);if(i===null)Ed(e,t,r,fp,n),Sp(e,r);else if(wp(i,e,t,n,r))r.stopPropagation();else if(Sp(e,r),t&4&&-1<xp.indexOf(e)){for(;i!==null;){var a=it(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ne(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ee(o);s.entanglements[1]|=c,o&=~c}id(a),!(Fl&6)&&(nu=he()+500,ad(0,!1))}}break;case 31:case 13:s=Gr(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=dp(r),a===null&&Ed(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function dp(e){return e=Ut(e),Y(e)}var fp=null;function Y(e){if(fp=null,e=rt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function pp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ge()){case _e:return 2;case ve:return 8;case ye:case be:return 32;case xe:return 268435456;default:return 32}default:return 32}}var mp=!1,hp=null,gp=null,_p=null,vp=new Map,yp=new Map,bp=[],xp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Sp(e,t){switch(e){case`focusin`:case`focusout`:hp=null;break;case`dragenter`:case`dragleave`:gp=null;break;case`mouseover`:case`mouseout`:_p=null;break;case`pointerover`:case`pointerout`:vp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:yp.delete(t.pointerId)}}function Cp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=it(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function wp(e,t,n,r,i){switch(t){case`focusin`:return hp=Cp(hp,e,t,n,r,i),!0;case`dragenter`:return gp=Cp(gp,e,t,n,r,i),!0;case`mouseover`:return _p=Cp(_p,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return vp.set(a,Cp(vp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,yp.set(a,Cp(yp.get(a)||null,e,t,n,r,i)),!0}return!1}function Tp(e){var t=rt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){sp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ke(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ep(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ht=r,n.target.dispatchEvent(r),Ht=null}else return t=it(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function Dp(e,t,n){Ep(e)&&n.delete(t)}function Op(){mp=!1,hp!==null&&Ep(hp)&&(hp=null),gp!==null&&Ep(gp)&&(gp=null),_p!==null&&Ep(_p)&&(_p=null),vp.forEach(Dp),yp.forEach(Dp)}function kp(e,n){e.blockedOn===n&&(e.blockedOn=null,mp||(mp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Op)))}var Ap=null;function jp(e){Ap!==e&&(Ap=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ap===e&&(Ap=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Y(r||n)===null)continue;break}var a=it(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Mp(e){function t(t){return kp(t,e)}hp!==null&&kp(hp,e),gp!==null&&kp(gp,e),_p!==null&&kp(_p,e),vp.forEach(t),yp.forEach(t);for(var n=0;n<bp.length;n++){var r=bp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<bp.length&&(n=bp[0],n.blockedOn===null);)Tp(n),n.blockedOn===null&&bp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ye]||null;if(typeof a==`function`)o||jp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ye]||null)s=o.formAction;else if(Y(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),jp(n)}}}function Np(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Pp(e){this._internalRoot=e}Fp.prototype.render=Pp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,mu(),e,t,null,null)},Fp.prototype.unmount=Pp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[Xe]=null}};function Fp(e){this._internalRoot=e}Fp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ge();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bp.length&&t!==0&&t<bp[n].priority;n++);bp.splice(n,0,e),n===0&&Tp(e)}};var Ip=n.version;if(Ip!==`19.2.6`)throw Error(i(527,Ip,`19.2.6`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Lp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Rp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rp.isDisabled&&Rp.supportsFiber)try{we=Rp.inject(Lp),K=Rp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,o,s,c,Np),e[Xe]=t.current,wd(e),new Pp(t)}})),rd=Hs(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=nd()})),J=eo(Va(),1),id=typeof window<`u`?J.useLayoutEffect:J.useEffect;function ad(e){let t=J.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function od(e,t,n={},r={}){J.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function sd(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}function cd(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var ld=4,ud=5;function dd(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function fd(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=dd(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function pd(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=fd(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=gd(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=gd(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=_d(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=_d(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=_d(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=gd(n.fullPath??n.from);e.kind=ud,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=gd(n.fullPath??n.from);e.kind=ld,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)pd(e,t,r,s,i,a,o)}function md(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function hd(e){if(e.pathless)for(let t of e.pathless)hd(t);if(e.static)for(let t of e.static.values())hd(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())hd(t);if(e.dynamic?.length){e.dynamic.sort(md);for(let t of e.dynamic)hd(t)}if(e.optional?.length){e.optional.sort(md);for(let t of e.optional)hd(t)}if(e.wildcard?.length){e.wildcard.sort(md);for(let t of e.wildcard)hd(t)}}function gd(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function _d(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function vd(e,t){let n=gd(`/`),r=new Uint16Array(6);for(let t of e)pd(!1,r,t,1,n,0);hd(n),t.masksTree=n,t.flatCache=cd(1e3)}function yd(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=wd(e,t.masksTree);return t.flatCache.set(e,r),r}function bd(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=gd(`/`),pd(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),wd(r,o,n)}function xd(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=wd(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ed(a.route)),t.matchCache.set(r,a),a}function Sd(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Cd(e,t=!1,n){let r=gd(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return pd(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&At(),a[e.id]=e,s!==0&&e.path){let t=Sd(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),hd(r),{processedTree:{segmentTree:r,singleCache:cd(1e3),matchCache:cd(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function wd(e,t,n=!1){let r=e.split(`/`),i=Od(e,r,t,n);if(!i)return null;let[a]=Td(e,r,i);return{route:i.node.route,rawParams:a}}function Td(e,t,n){let r=Dd(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===ld)break;if(u.kind===ud){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ed(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Dd(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Od(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!al(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!Md(l,n))continue;if(i.parse){if(!jd(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==ld&&Md(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===ld||i.kind===2)&&Md(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(jd(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Ad(p,o))return n;Md(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+kd(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+kd(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+kd(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+kd(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function kd(e,t){return 2**(e-t-1)}function Ad(e,t){return e===2**(t-1)-1}function jd(e,t,n){let r,i;try{[r,i]=Td(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Md(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===ld)>(e.node.kind===ld)||t.node.kind===ld==(e.node.kind===ld)&&t.depth>e.depth))):!0}function Nd(e){return Pd(e.filter(e=>e!==void 0).join(`/`))}function Pd(e){return e.replace(/\/{2,}/g,`/`)}function Fd(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Id(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Ld(e){return Id(Fd(e))}function Rd(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function zd(e,t,n){return Rd(e,n)===Rd(t,n)}function nee({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&al(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(al(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Pd(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Bd(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Vd(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Ud(e,n)).join(`/`):Ud(r,n):r}function Hd({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=fd(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Vd(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Vd(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Vd(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Ud(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function Wd(e){return e?.isNotFound===!0}function Gd(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Kd(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function qd(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Kd(r):Array.isArray(t)?t.push(Kd(r)):n[e]=[t,Kd(r)]}return n}var Jd=Xd(JSON.parse),Yd=Zd(JSON.stringify,JSON.parse);function Xd(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=qd(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Zd(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Gd(e,r);return t?`?${t}`:``}}var Qd=`__root__`;function $d(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function ef(e){return e instanceof Response&&!!e.options}var tf=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},nf=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),rf=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),af=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},of=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},sf=(e,t,n)=>{if(!(!ef(n)&&!Wd(n)))throw ef(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:ef(n)?`redirected`:Wd(n)?`notFound`:r.status===`pending`?`success`:r.status,context:af(e,t.index),isFetching:!1,error:n})),Wd(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),ef(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},cf=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},lf=(e,t,n)=>{let r=af(e,n);e.updateMatch(t,e=>({...e,context:r}))},uf=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,sf(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,sf(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!ef(n)&&!Wd(n)&&(e.serialError??=n)},df=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!rf(e,t)&&(n.options.loader||n.options.beforeLoad||Sf(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{tf(e)},i);r._nonReactive.pendingTimeout=t}},ff=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;df(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&sf(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},pf=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=Pi(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&uf(e,n,o),s&&uf(e,n,s),df(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=Pi();let f={...af(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=rf(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(ef(r)||Wd(r))&&(u(),uf(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),dc(y))return u(),y.catch(t=>{uf(e,n,t)}).then(v)}catch(t){u(),uf(e,n,t)}v(y)},mf=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>pf(e,n,t,i),s=()=>{if(cf(e,n))return;let t=ff(e,n,i);return dc(t)?t.then(o):o()};return a()},hf=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},gf=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=af(e,r),d=rf(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},_f=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{xf(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(gf(e,t,n,r,i)),l=!!s&&dc(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;sf(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:af(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:af(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Wd(t)&&await i.options.notFoundComponent?.preload?.(),sf(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,sf(e,e.router.getMatch(n),t)}!ef(o)&&!Wd(o)&&await xf(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:af(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),sf(e,r,t)}},vf=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(gf(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await _f(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){ef(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await _f(e,t,i,n,d):lf(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(cf(e,i)){if(!e.router.getMatch(i))return e.matches[n];lf(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=rf(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&sf(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=Pi(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function yf(e){let t=e,n=[];nf(t.router)&&tf(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=mf(t,e);dc(n)&&await n}catch(e){if(ef(e))throw e;if(Wd(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?of(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(vf(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(ef(e))throw e;Wd(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=of(t,l);e===void 0&&At();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await xf(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await xf(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=hf(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=tf(t);if(dc(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function bf(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function xf(e,t=Cf){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Cf?(()=>{if(e._componentsPromise===void 0){let t=bf(e,Cf);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():bf(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Sf(e){for(let t of Cf)if(e.options[t]?.preload)return!0;return!1}var Cf=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ree(e){return{input:({url:t})=>{for(let n of e)t=Tf(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Ef(e[n],t);return t}}}function wf(e){let t=Ld(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Nd([`/`,t,e.pathname]),e)}}function Tf(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ef(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Df(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Of(o,_.get())),x=r(()=>Of(s,v.get())),S=r(()=>Of(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=cd(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:j,setCached:M};A(e.matches),a?.(k);function A(e){kf(e,o,_,n,i)}function j(e){kf(e,s,v,n,i)}function M(e){kf(e,c,y,n,i)}return k}function Of(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function kf(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}yt(n.get(),a)||n.set(a)})}var Af=`__TSR_index`,jf=`popstate`,Mf=`beforeunload`;function Nf(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Lf(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Af];i=Pf(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Af];i=Pf(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Af]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Pf(e,t){t||={};let n=Rf();return{...t,key:n,__TSR_key:n,[Af]:e}}function Ff(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Lf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Rf();t.history.replaceState({[Af]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Lf(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Af]-l.state[Af],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Nf({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Mf,S,{capture:!0}),t.removeEventListener(jf,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Mf,S,{capture:!0}),t.addEventListener(jf,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function If(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Lf(e,t){let n=If(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Rf();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Af]:0,key:a,__TSR_key:a}}}function Rf(){return(Math.random()+1).toString(36).substring(7)}function zf(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Bf=new WeakMap,Vf=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Bd(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ff()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=cd(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Df(Wf(this.latestLocation),e),iee(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Ld(o);t&&t!==`/`&&e.push(wf({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ree(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Cd(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&vd(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Si(e).path,external:!1,searchStr:o,search:os(t?.search,i),hash:Si(r.slice(1)).path,state:_a(t?.state,a)}}let o=new URL(i,this.origin),s=Tf(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Si(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:os(t?.search,c),hash:Si(s.hash.slice(1)).path,state:_a(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>nee({base:e,to:t.includes(`//`)?Pd(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Kf({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,i=this.matchRoutesLightweight(n);t.from;let a=t.unsafeRelative===`path`?n.pathname:t.from??i.fullPath,o=t.to?`${t.to}`:void 0,s=i.search,c=Object.assign(Object.create(null),i.params),l=o?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(a,`.`),u=o?this.resolvePathWithBase(l,o):l,d=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?c:Object.assign(c,r(t.params,c)),f=this.routesByPath[Id(u)],p;if(f)p=this.getRouteBranch(f);else if(u.includes(`$`))p=[];else{let e=this.getMatchedRoutes(u);p=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(p=[...p,this.options.notFoundRoute])}if(p.length&&fo(d))for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(d,t(d))}catch{}}let m=e.leaveParams?u:Si(Hd({path:u,params:d,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,h=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Gf(t.options.validateSearch,{...e,...h}))}catch{}}),h=e}h=qf({search:h,dest:t,destRoutes:p,_includeValidateSearch:e._includeValidateSearch}),h=os(s,h);let g=this.options.stringifySearch(h),_=t.hash===!0?n.hash:t.hash?r(t.hash,n.hash):void 0,v=_?`#${_}`:``,y=t.state===!0?n.state:t.state?r(t.state,n.state):{};y=_a(n.state,y);let b=`${m}${g}${v}`,x,S,C=!1;if(this.rewrite){let e=new URL(b,this.origin),t=Ef(this.rewrite,e);x=e.href.replace(e.origin,``),t.origin===this.origin?S=t.pathname+t.search+t.hash:(S=t.href,C=!0)}else x=Kn(b),S=x;return{publicHref:S,href:x,pathname:m,search:h,searchStr:g,state:y,hash:_??``,external:C,unmaskOnReload:t.unmaskOnReload}},n=(n={},i)=>{let a=t(n),o=i?t(i):void 0;if(!o){let n=Object.create(null);if(this.options.routeMasks){let s=yd(a.pathname,this.processedTree);if(s){Object.assign(n,s.rawParams);let{from:a,params:c,...l}=s.route,u=c===!1||c===null?Object.create(null):(c??!0)===!0?n:Object.assign(n,r(c,n));i={from:e.from,...l,params:u},o=t(i)}}}return o&&(a.maskedLocation=o),a};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=Ki(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=Id(this.latestLocation.href)===Id(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=Pi(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Lf(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=Tf(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(Al(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Bf.set(this.latestLocation,t):Bf.delete(this.latestLocation);let n=this.latestLocation,r=zf(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await yf({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){ef(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Wd(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(zf(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&Al(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=xf,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await yf({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(ef(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Wd(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=bd(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!Ki(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?Ki(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Yd,parseSearch:e.parseSearch??Jd,protocolAllowlist:e.protocolAllowlist??Kc}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ed(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:Id(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Yf(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Gf(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof Hf||(r=new Hf(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=Hd({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),b=v?._strictParams??g,x;if(!v)try{Xf(r,b)}catch(e){if(x=Wd(e)||ef(e)?e:new Uf(e.message,{cause:e}),t?.throwOnError)throw x}Object.assign(i,b);let S=y?`stay`:`enter`,C;if(v)C={...v,cause:S,params:y?.params??i,_strictParams:b,search:os(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Sf(r)?`pending`:`success`;C={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:b,pathname:h,updatedAt:Date.now(),search:y?os(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:Pi()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?_a(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(C.globalNotFound=s===r.id),C.searchError=f;let w=this.getParentContext(o);C.context={...w,...C.__routeContext,...C.__beforeLoadContext},c[n]=C}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?os(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=al(t),i={...e.search};for(let e of t)try{Object.assign(i,Gf(e.options.validateSearch,i))}catch{}let a=al(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Xf(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Hf=class extends Error{},Uf=class extends Error{};function Wf(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Gf(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Hf(`Async validation not supported`);if(n.issues)throw new Hf(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Kf({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Id(e),a,o=xd(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function qf({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Jf(n)(e,t,r??!1)}function Jf(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...Gf(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:r(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function Yf(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Qd}function Xf(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Zf(){try{return sessionStorage}catch{return}}var Qf=`tsr-scroll-restoration-v1_3`,$f=Zf();function ep(){try{return JSON.parse($f?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function tp(){try{$f?.setItem(Qf,JSON.stringify(np))}catch{}}var np=ep(),rp=`data-scroll-restoration-id`,ip=e=>e.state.__TSR_key||e.href;function ap(e){let t=e.getAttribute(rp);if(t)return`[${rp}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var op=!1,sp=`window`;function cp(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function lp(e){let t=[];for(let n of e){if(n===sp)continue;let e=cp(n);e&&t.push(e)}return t}function iee(e,t){if((t??e.options.scrollRestoration)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup)return;e.isScrollRestorationSetup=!0,op=!1;let n=e.options.getScrollRestorationKey||ip,r=new Map,i=(e,t,n)=>{let i=r.get(e)||{};i.scrollX=t,i.scrollY=n,r.set(e,i)};history.scrollRestoration=`manual`;let a=t=>{if(!(op||!e.isScrollRestoring))if(t.target===document)i(sp,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},o=t=>{if(!e.isScrollRestoring)return;let n=np[t]||={};for(let[e,t]of r)e===sp?n[sp]=t:e.isConnected&&(n[ap(e)]=t)};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(n(e.fromLocation)),r.clear()}),addEventListener(`pagehide`,()=>{o(n(e.stores.resolvedLocation.get()??e.stores.location.get())),tp()}),e.subscribe(`onRendered`,t=>{let i=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,o=e.resetNextScroll,s;if(r.clear(),o||(e.resetNextScroll=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let c=n(t.toLocation),l=t.fromLocation&&n(t.fromLocation);if(e.isScrollRestoring&&l&&l!==c){let e=np[l];if(e){let t=np[c];for(let n in e){if(n===sp){if(o)continue}else{let e=cp(n);if(!e||o&&a&&(s??=lp(a),s.includes(e)))continue}t||=np[c]={},t[n]??=e[n]}}}op=!0;try{let n=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,l=!1;if(o){let o=Bf.get(t.toLocation),u=n&&r&&(o===`PUSH`||o===`REPLACE`),d=e.isScrollRestoring?np[c]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:n}=d[e];if(e===sp){if(u)continue;scrollTo({top:n,left:t,behavior:i}),l=!0}else{let r=cp(e);r&&(r.scrollLeft=t,r.scrollTop=n)}}if(!l&&!n){let e={top:0,left:0,behavior:i};if(scrollTo(e),a){s??=lp(a);for(let t of s)t.scrollTo(e)}}}!l&&n&&r&&document.getElementById(n)?.scrollIntoView(r)}finally{op=!1}})}var up=`Error preloading route! ☝️`,dp=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Qd:this.parentRoute||At();let r=n?Qd:t?.path;r&&r!==`/`&&(r=Fd(r));let i=t?.id||r,a=n?Qd:Nd([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Nd([`/`,a]));let o=a===`__root__`?`/`:Nd([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Id(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>$d({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},fp=class extends dp{constructor(e){super(e)}},Y=Le();function pp(e){let t=e.errorComponent??hp;return(0,Y.jsx)(mp,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?J.createElement(t,{error:n,reset:r}):e.children})}var mp=class extends J.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function hp({error:e}){let[t,n]=J.useState(!1);return(0,Y.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Y.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Y.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Y.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Y.jsx)(`div`,{children:(0,Y.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Y.jsx)(`code`,{children:e.message}):null})}):null]})}function gp({children:e,fallback:t=null}){return _p()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function _p(){return J.useSyncExternalStore(vp,()=>!0,()=>!1)}function vp(){return()=>{}}var yp=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(yp||{});function bp({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function xp(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Sp=[],Cp=0,{link:wp,unlink:Tp,propagate:Ep,checkDirty:Dp,shallowPropagate:Op}=bp({update(e){return e._update()},notify(e){Sp[Ap++]=e,e.flags&=~yp.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=yp.Mutable|yp.Dirty,Pp(e))}}),kp=0,Ap=0,jp,Mp=0;function Np(e){try{++Mp,e()}finally{--Mp||Fp()}}function Pp(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Tp(n,e)}function Fp(){if(!(Mp>0)){for(;kp<Ap;){let e=Sp[kp];Sp[kp++]=void 0,e.notify()}kp=0,Ap=0}}function Ip(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?yp.None:yp.Mutable,get(){return jp!==void 0&&wp(i,jp,Cp),i._snapshot},subscribe(e){let t=xp(e),n={current:!1},r=Lp(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=jp,o=t?.compare??Object.is;if(n)jp=i,++Cp,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=yp.Mutable|yp.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{jp=a,n&&(i.flags&=~yp.RecursedCheck),Pp(i)}}};return n?(i.flags=yp.Mutable|yp.Dirty,i.get=function(){let e=i.flags;if(e&yp.Dirty||e&yp.Pending&&Dp(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Op(e)}}else e&yp.Pending&&(i.flags=e&~yp.Pending);return jp!==void 0&&wp(i,jp,Cp),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Ep(e),Op(e),Fp())}},i}function Lp(e){let t=()=>{let t=jp;jp=n,++Cp,n.depsTail=void 0,n.flags=yp.Watching|yp.RecursedCheck;try{return e()}finally{jp=t,n.flags&=~yp.RecursedCheck,Pp(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:yp.Watching|yp.RecursedCheck,notify(){let e=this.flags;e&yp.Dirty||e&yp.Pending&&Dp(this.deps,this)?t():this.flags=yp.Watching},stop(){this.flags=yp.None,this.depsTail=void 0,Pp(this)}};return t(),n}function Rp(e){return qu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function zp(e){let{select:t,...n}=e;return qu({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Bp(e){return qu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Vp(e){let t=Br();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Hp(e){return qu({...e,select:t=>e.select?e.select(t.context):t.context})}var Up=eo(Cc(),1);function aee(e,t){let n=Br(),i=sd(t),{activeProps:a,inactiveProps:o,activeOptions:s,to:c,preload:l,preloadDelay:u,preloadIntentProximity:d,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:h,viewTransition:g,children:_,target:v,disabled:y,style:b,className:x,onClick:S,onBlur:C,onFocus:w,onMouseEnter:T,onMouseLeave:E,onTouchStart:O,ignoreBlocker:k,params:A,search:j,hash:M,state:N,mask:P,reloadDocument:F,unsafeRelative:I,from:L,_fromLocation:R,...z}=e,B=_p(),V=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),H=D(n.stores.location,e=>e,(e,t)=>e.href===t.href),U=J.useMemo(()=>{let e={_fromLocation:H,...V};return n.buildLocation(e)},[n,H,V]),W=U.maskedLocation?U.maskedLocation.publicHref:U.publicHref,ee=U.maskedLocation?U.maskedLocation.external:U.external,G=J.useMemo(()=>dee(W,ee,n.history,y),[y,ee,W,n.history]),te=J.useMemo(()=>{if(G?.external)return Al(G.href,n.protocolAllowlist)?void 0:G.href;if(!fee(c)&&!(typeof c!=`string`||c.indexOf(`:`)===-1))try{return new URL(c),Al(c,n.protocolAllowlist)?void 0:c}catch{}},[c,G,n.protocolAllowlist]),ne=J.useMemo(()=>{if(te)return!1;if(s?.exact){if(!zd(H.pathname,U.pathname,n.basepath))return!1}else{let e=Rd(H.pathname,n.basepath),t=Rd(U.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(s?.includeSearch??!0)&&!Ki(H.search,U.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:s?.includeHash?B&&H.hash===U.hash:!0},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,H,te,B,U.hash,U.pathname,U.search,n.basepath]),re=ne?r(a,{})??oee:Wp,ie=ne?Wp:r(o,{})??Wp,ae=[x,re.className,ie.className].filter(Boolean).join(` `),oe=(b||re.style||ie.style)&&{...b,...re.style,...ie.style},[se,ce]=J.useState(!1),le=J.useRef(!1),ue=e.reloadDocument||te?!1:l??n.options.defaultPreload,de=u??n.options.defaultPreloadDelay??0,fe=J.useCallback(()=>{n.preloadRoute({...V,_builtLocation:U}).catch(e=>{console.warn(e),console.warn(up)})},[n,V,U]);od(i,J.useCallback(e=>{e?.isIntersecting&&fe()},[fe]),uee,{disabled:!!y||ue!==`viewport`}),J.useEffect(()=>{le.current||!y&&ue===`render`&&(fe(),le.current=!0)},[y,fe,ue]);let pe=e=>{let t=e.currentTarget.getAttribute(`target`),r=v===void 0?t:v;if(!y&&!pee(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Up.flushSync)(()=>{ce(!0)});let t=n.subscribe(`onResolved`,()=>{t(),ce(!1)});n.navigate({...V,replace:p,resetScroll:h,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:k})}};if(te)return{...z,ref:i,href:te,..._&&{children:_},...v&&{target:v},...y&&{disabled:y},...b&&{style:b},...x&&{className:x},...S&&{onClick:S},...C&&{onBlur:C},...w&&{onFocus:w},...T&&{onMouseEnter:T},...E&&{onMouseLeave:E},...O&&{onTouchStart:O}};let me=e=>{if(y||ue!==`intent`)return;if(!de){fe();return}let t=e.currentTarget;if(Gp.has(t))return;let n=setTimeout(()=>{Gp.delete(t),fe()},de);Gp.set(t,n)},he=e=>{y||ue!==`intent`||fe()},ge=e=>{if(y||!ue||!de)return;let t=e.currentTarget,n=Gp.get(t);n&&(clearTimeout(n),Gp.delete(t))};return{...z,...re,...ie,href:G?.href,ref:i,onClick:Kp([S,pe]),onBlur:Kp([C,ge]),onFocus:Kp([w,me]),onMouseEnter:Kp([T,me]),onMouseLeave:Kp([E,ge]),onTouchStart:Kp([O,he]),disabled:!!y,target:v,...oe&&{style:oe},...ae&&{className:ae},...y&&see,...ne&&cee,...B&&se&&lee}}var Wp={},oee={className:`active`},see={role:`link`,"aria-disabled":!0},cee={"data-status":`active`,"aria-current":`page`},lee={"data-transitioning":`transitioning`},Gp=new WeakMap,uee={rootMargin:`100px`},Kp=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function dee(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function fee(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var qp=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=aee(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return J.createElement(`a`,t,o)}return J.createElement(n,a,o)});function pee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var mee=class extends dp{constructor(e){super(e),this.useMatch=e=>qu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Hp({...e,from:this.id}),this.useSearch=e=>Bp({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ir({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>zp({...e,from:this.id}),this.useLoaderData=e=>Rp({...e,from:this.id}),this.useNavigate=()=>Vp({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(qp,{ref:t,from:this.fullPath,...e}))}};function hee(e){return new mee(e)}var gee=class extends fp{constructor(e){super(e),this.useMatch=e=>qu({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Hp({...e,from:this.id}),this.useSearch=e=>Bp({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ir({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>zp({...e,from:this.id}),this.useLoaderData=e=>Rp({...e,from:this.id}),this.useNavigate=()=>Vp({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(qp,{ref:t,from:this.fullPath,...e}))}};function _ee(e){return new gee(e)}function Jp(e){return new vee(e,{silent:!0}).createRoute}var vee=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=hee(e);return t.isRoot=!1,t},this.silent=t?.silent}};function yee(e){let t=Br(),n=`not-found-${D(t.stores.location,e=>e.pathname)}-${D(t.stores.status,e=>e)}`;return(0,Y.jsx)(pp,{getResetKey:()=>n,onCatch:(t,n)=>{if(Wd(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Wd(t))return e.fallback?.(t);throw t},children:e.children})}function bee(){return(0,Y.jsx)(`p`,{children:`Not Found`})}function Yp(e){return(0,Y.jsx)(Y.Fragment,{children:e.children})}function Xp(e,t,n){return t.options.notFoundComponent?(0,Y.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Y.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Y.jsx)(bee,{})}var Zp=J.memo(function({matchId:e}){let t=Br(),n=t.stores.matchStores.get(e);n||At();let r=D(t.stores.loadedAt,e=>e),i=D(n,e=>e);return(0,Y.jsx)(xee,{router:t,matchId:e,resetKey:r,matchState:J.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function xee({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Y.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?J.Suspense:Yp,f=s?pp:Yp,p=l?yee:Yp;return(0,Y.jsxs)(i.isRoot?i.options.shellComponent??Yp:Yp,{children:[(0,Y.jsx)(Ye.Provider,{value:t,children:(0,Y.jsx)(d,{fallback:o,children:(0,Y.jsx)(f,{getResetKey:()=>n,errorComponent:s||hp,onCatch:(e,t)=>{if(Wd(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Y.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return J.createElement(l,e)},children:u||r._displayPending?(0,Y.jsx)(gp,{fallback:o,children:(0,Y.jsx)(Qp,{matchId:t})}):(0,Y.jsx)(Qp,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(See,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function See({resetKey:e}){let t=Br(),n=J.useRef(void 0);return id(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...zf(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Qp=J.memo(function({matchId:e}){let t=Br(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||At();let i=D(r,e=>e),a=i.routeId,o=t.routesById[a],s=J.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=J.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,Y.jsx)(e,{},s):(0,Y.jsx)($p,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=Pi();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Wd(i.error)||At(),Xp(t,o,i.error);if(i.status===`redirected`)throw ef(i.error)||At(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),$p=J.memo(function(){let e=Br(),t=J.useContext(Ye),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=D(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=D(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,Y.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||At(),Xp(e,a,void 0);if(!i)return null;let s=(0,Y.jsx)(Zp,{matchId:i});return n===`__root__`?(0,Y.jsx)(J.Suspense,{fallback:o,children:s}):s});function Cee(){let e=Br(),t=J.useRef({router:e,mounted:!1}),[n,r]=J.useState(!1),i=D(e.stores.isLoading,e=>e),a=D(e.stores.hasPending,e=>e),o=ad(i),s=i||n||a,c=ad(s),l=i||a,u=ad(l);return e.startTransition=e=>{r(!0),J.startTransition(()=>{e(),r(!1)})},J.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Id(e.latestLocation.publicHref)!==Id(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),id(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),id(()=>{o&&!i&&e.emit({type:`onLoad`,...zf(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),id(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...zf(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),id(()=>{if(c&&!s){let t=zf(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Np(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function wee(){let e=Br(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,Y.jsx)(t,{}):null,r=(0,Y.jsxs)(typeof document<`u`&&e.ssr?Yp:J.Suspense,{fallback:n,children:[(0,Y.jsx)(Cee,{}),(0,Y.jsx)(Tee,{})]});return e.options.InnerWrap?(0,Y.jsx)(e.options.InnerWrap,{children:r}):r}function Tee(){let e=Br(),t=D(e.stores.firstId,e=>e),n=D(e.stores.loadedAt,e=>e),r=t?(0,Y.jsx)(Zp,{matchId:t}):null;return(0,Y.jsx)(Ye.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,Y.jsx)(pp,{getResetKey:()=>n,errorComponent:hp,onCatch:void 0,children:r})})}var Eee=e=>({createMutableStore:Ip,createReadonlyStore:Ip,batch:Np}),Dee=e=>new Oee(e),Oee=class extends Vf{constructor(e){super(e,Eee)}};function kee({router:e,children:t,...n}){fo(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,Y.jsx)(ui.Provider,{value:e,children:t});return e.options.Wrap?(0,Y.jsx)(e.options.Wrap,{children:r}):r}function Aee({router:e,...t}){return(0,Y.jsx)(kee,{router:e,...t,children:(0,Y.jsx)(wee,{})})}function em(e){let t=Br(),n=(0,J.useRef)(void 0);return D(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=_a(n.current,i);return n.current=e,e}return i})}function tm(){return D(Br().stores.location,e=>e.state.__TSR_index!==0)}var jee=eo(rd(),1);function nm(){return typeof window>`u`?null:window.__TAURI_INTERNALS__??null}var rm=typeof window<`u`&&window.isTauri===!0&&typeof nm()?.invoke==`function`;async function im(e,t){let n=nm();if(!n)throw Error(`laplus: ${e} needs the desktop shell, and this page has no IPC.`);return await n.invoke(e,t)}async function am(e){let t=nm();if(t)try{return await t.invoke(`plugin:window|${e}`)}catch(t){console.error(`laplus: the desktop shell refused plugin:window|${e}. If this is "not allowed", the capability granting it to ${window.location.origin} is missing or names another origin.`,t);return}}async function Mee(){return await am(`is_maximized`)===!0}function Nee(e){return{_tag:`Value`,value:e}}function Pee(e,t){return{_tag:`Record`,keys:e,value:t}}function Fee(e,t){return{_tag:`Array`,length:e,value:t}}ht(`SourceError`);var Iee=Co(`effect/ConfigProvider`,{defaultValue:()=>Uee()}),Lee={...en,toJSON(){return{_id:`ConfigProvider`}}},Ree=e=>e;function zee(e,t){let n=Object.create(Lee);return n.state=e,n.load=t,n}function Bee(e,t){let n={_tag:`Source`,get:e,transform:t};return zee(n,e=>n.get(n.transform(e)))}function Vee(e){return Bee(e,Ree)}function Hee(e,t){return e===``&&!t?void 0:e}function Uee(e){let t=e?.env??{APP_VERSION:`0.1.7`,BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,TSS_INLINE_CSS_ENABLED:`false`,VITE_HTTP_URL:``,VITE_WS_URL:``},n=e?.preserveEmptyStrings===!0,r=Wee(t);return Vee(e=>yu(Kee(r,t,e,n)))}function Wee(e){let t={};for(let[n,r]of Object.entries(e)){if(r===void 0)continue;let e=n.split(`_`),i=t;for(let t of e){let e=i.children??=Object.create(null);i=e[t]??={}}}return t}var Gee=/^(0|[1-9][0-9]*)$/;function Kee(e,t,n,r){let i=n.map(String).join(`_`),a=Hee(Object.hasOwn(t,i)?t[i]:void 0,r),o=qee(e,n),s=o?.children?Object.keys(o.children):[];return s.length===0?a===void 0?void 0:Nee(a):s.every(e=>Gee.test(e))?Fee(Math.max(...s.map(e=>parseInt(e,10)))+1,a):Pee(new Set(s),a)}function qee(e,t){if(t.length===0)return e;let n=e;for(let e of t)if(n=n?.children?.[String(e)],!n)return;return n}var om=`~effect/Config`,Jee=class{_tag=`ConfigError`;name=`ConfigError`;cause;constructor(e){this.cause=e}get message(){return this.cause.toString()}toString(){return`ConfigError(${this.message})`}},Yee={...vs({label:`Config`,evaluate(e){return this.parse(e.getRef(Iee))}}),[om]:om,toJSON(){return{_id:`Config`}}};function Xee(e){let t=Object.create(Yee);return t.parse=(t,n=[])=>e(t,n),t}var sm=wa(function*(e,t){let n=yield*e.load(t);if(n!==void 0)switch(n._tag){case`Value`:return n.value;case`Record`:{if(n.value!==void 0)return n.value;let r={};for(let i of n.keys){let n=yield*sm(e,[...t,i]);n!==void 0&&fn(r,i,n)}return r}case`Array`:{if(n.value!==void 0)return n.value;let r=[];for(let i=0;i<n.length;i++)r.push(yield*sm(e,[...t,i]));return r}}}),cm=wa(function*(e,t,n){switch(e._tag){case`Objects`:{let r=yield*t.load(n);if(r===void 0&&n.length>0)return;let i={};for(let r of e.propertySignatures){let e=r.name;if(typeof e==`string`){let a=yield*cm(r.type,t,[...n,e]);a!==void 0&&fn(i,e,a)}}if(e.indexSignatures.length>0&&r&&r._tag===`Record`)for(let a of e.indexSignatures){let e=In(a.parameter);for(let o of r.keys)if(!Object.hasOwn(i,o)&&e(o)){let e=yield*cm(a.type,t,[...n,o]);e!==void 0&&fn(i,o,e)}}return i}case`Arrays`:{let r=yield*t.load(n);if(r===void 0)return;if(r&&r._tag===`Value`||r&&r._tag===`Array`&&r.value!==void 0)return r.value===``?[]:r.value.split(`,`);let i=[],a=r&&r._tag===`Array`?r.length:e.elements.length;for(let r=0;r<a;r++){let a=e.elements[r]??e.rest[0];a!==void 0&&i.push(yield*cm(a,t,[...n,r]))}return i}case`Union`:return yield*sm(t,n);case`Suspend`:return yield*cm(e.thunk(),t,n);default:{let e=yield*t.load(n);return e===void 0?void 0:e._tag===`Value`||e._tag===`Record`&&e.value!==void 0||e._tag===`Array`&&e.value!==void 0?e.value:void 0}}});function lm(e,t){let n=nn(e),r=ke(n),i=Wt(n.ast),a=typeof t==`string`?[t]:t??[];return Xee((e,t)=>{let n=[...t,...a];return cm(i,e,n).pipe(pl(e=>r(e).pipe(fa(e=>new lt(n.length>0?new Hr(n,e):e)))),fa(e=>new Jee(e)))})}var Zee=(e,t,n)=>{let r=Ic(e,t);return Lu([r,tc.pipe(B(Ic(tc,tc),Yu(n)),B(r))])};function Qee(e){return lm(tc,e)}var X=Ht(),$ee=/-nightly\.\d{8}\.\d+$/;function um(e){return e.stageLabel.trim().toLowerCase()===`latest`?e.baseName:`${e.baseName} (${e.stageLabel})`}function dm(e){return e.primaryServerVersion&&$ee.test(e.primaryServerVersion)?`Nightly`:e.fallbackStageLabel}function ete(e){let t=dm({primaryServerVersion:e.primaryServerVersion,fallbackStageLabel:e.fallbackStageLabel});return t===e.fallbackStageLabel?e.fallbackDisplayName:um({baseName:e.baseName,stageLabel:t})}function tte(){return typeof window>`u`?null:window.desktopBridge?.getAppBranding?.()??null}var fm=tte(),pm=fm?.baseName??`laplus`,mm=fm?.stageLabel??`Alpha`,hm=fm?.displayName??um({baseName:pm,stageLabel:mm}),gm=`0.1.7`,nte=zu(`alarm-clock-off`,[[`path`,{d:`M6.87 6.87a8 8 0 1 0 11.26 11.26`,key:`3on8tj`}],[`path`,{d:`M19.9 14.25a8 8 0 0 0-9.15-9.15`,key:`15ghsc`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.26 18.67 4 21`,key:`yzmioq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M4 4 2 6`,key:`1ycko6`}]]),_m=zu(`alarm-clock`,[[`circle`,{cx:`12`,cy:`13`,r:`8`,key:`3y4lt7`}],[`path`,{d:`M12 9v4l2 2`,key:`1c63tq`}],[`path`,{d:`M5 3 2 6`,key:`18tl5t`}],[`path`,{d:`m22 6-3-3`,key:`1opdir`}],[`path`,{d:`M6.38 18.7 4 21`,key:`17xu3x`}],[`path`,{d:`M17.64 18.67 20 21`,key:`kv2oe2`}]]),rte=zu(`archive-x`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`m9.5 17 5-5`,key:`nakeu6`}],[`path`,{d:`m9.5 12 5 5`,key:`1hccrj`}]]),vm=zu(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),ym=zu(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),bm=zu(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ite=zu(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),xm=zu(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),Sm=zu(`bookmark`,[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]),Cm=zu(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),ate=zu(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),ote=zu(`chart-no-axes-column`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]]),wm=zu(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Tm=zu(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Em=zu(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Dm=zu(`chevrons-left-right-ellipsis`,[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`m17 7 5 5-5 5`,key:`1xlxn0`}],[`path`,{d:`m7 7-5 5 5 5`,key:`19njba`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}]]),Om=zu(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),km=zu(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ste=zu(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),Am=zu(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),cte=zu(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),lte=zu(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ute=zu(`clipboard-list`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),dte=zu(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),jm=zu(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),fte=zu(`container`,[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]),Mm=zu(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),pte=zu(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),Nm=zu(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Pm=zu(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Fm=zu(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),mte=zu(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),Im=zu(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),hte=zu(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),Lm=zu(`file-diff`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]),gte=zu(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Rm=zu(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),_te=zu(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),vte=zu(`folder-closed`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M2 10h20`,key:`1ir3d8`}]]),zm=zu(`folder-git-2`,[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),Bm=zu(`folder-git`,[[`circle`,{cx:`12`,cy:`13`,r:`2`,key:`1c1ljs`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}],[`path`,{d:`M14 13h3`,key:`1dgedf`}],[`path`,{d:`M7 13h3`,key:`1pygq7`}]]),yte=zu(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Vm=zu(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Hm=zu(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),bte=zu(`frame`,[[`line`,{x1:`22`,x2:`2`,y1:`6`,y2:`6`,key:`15w7dq`}],[`line`,{x1:`22`,x2:`2`,y1:`18`,y2:`18`,key:`1ip48p`}],[`line`,{x1:`6`,x2:`6`,y1:`2`,y2:`22`,key:`a2lnyx`}],[`line`,{x1:`18`,x2:`18`,y1:`2`,y2:`22`,key:`8vb6jd`}]]),Um=zu(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Wm=zu(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),xte=zu(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),Ste=zu(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),Gm=zu(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Cte=zu(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),wte=zu(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Tte=zu(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Ete=zu(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),Km=zu(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),qm=zu(`loader`,[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]),Dte=zu(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),Ote=zu(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),kte=zu(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Jm=zu(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),Ate=zu(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),jte=zu(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Ym=zu(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Xm=zu(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Zm=zu(`mouse-pointer-click`,[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]),Mte=zu(`paintbrush`,[[`path`,{d:`m14.622 17.897-10.68-2.913`,key:`vj2p1u`}],[`path`,{d:`M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z`,key:`18tc5c`}],[`path`,{d:`M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15`,key:`ytzfxy`}]]),Nte=zu(`panel-bottom`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),Pte=zu(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),Fte=zu(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Ite=zu(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Qm=zu(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Lte=zu(`pencil-ruler`,[[`path`,{d:`M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13`,key:`orapub`}],[`path`,{d:`m8 6 2-2`,key:`115y1s`}],[`path`,{d:`m18 16 2-2`,key:`ee94s4`}],[`path`,{d:`m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17`,key:`cfq27r`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Rte=zu(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),$m=zu(`picture-in-picture-2`,[[`path`,{d:`M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4`,key:`daa4of`}],[`rect`,{width:`10`,height:`7`,x:`12`,y:`13`,rx:`2`,key:`1nb8gs`}]]),eh=zu(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),th=zu(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),zte=zu(`pipette`,[[`path`,{d:`m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12`,key:`1y3wsu`}],[`path`,{d:`m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z`,key:`110lr1`}],[`path`,{d:`m2 22 .414-.414`,key:`jhxm08`}]]),Bte=zu(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),nh=zu(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Vte=zu(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),rh=zu(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),ih=zu(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),ah=zu(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),oh=zu(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),sh=zu(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Hte=zu(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ch=zu(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),lh=zu(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),uh=zu(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),dh=zu(`square-split-horizontal`,[[`path`,{d:`M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3`,key:`lubmu8`}],[`path`,{d:`M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3`,key:`1ag34g`}],[`line`,{x1:`12`,x2:`12`,y1:`4`,y2:`20`,key:`1tx1rr`}]]),fh=zu(`square-split-vertical`,[[`path`,{d:`M5 8V5c0-1 1-2 2-2h10c1 0 2 1 2 2v3`,key:`1pi83i`}],[`path`,{d:`M19 16v3c0 1-1 2-2 2H7c-1 0-2-1-2-2v-3`,key:`ido5k7`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),ph=zu(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),mh=zu(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),hh=zu(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),gh=zu(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),_h=zu(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),vh=zu(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),yh=zu(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Ute=zu(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),bh=zu(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]);function Wte(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}var Gte=`\x1Bb`,Kte=`\x1Bf`,qte=``,Jte=``,Yte=``,Xte={BracketLeft:[`[`],BracketRight:[`]`],Digit0:[`0`],Digit1:[`1`],Digit2:[`2`],Digit3:[`3`],Digit4:[`4`],Digit5:[`5`],Digit6:[`6`],Digit7:[`7`],Digit8:[`8`],Digit9:[`9`]};function xh(e){let t=e.toLowerCase();return t===`esc`?`escape`:t}function Zte(e){let t=new Set([xh(e.key)]),n=e.code?.match(/^Key([A-Z])$/)?.[1];n&&t.add(n.toLowerCase());let r=e.code?Xte[e.code]:void 0;if(!r)return t;for(let e of r)t.add(e);return t}function Sh(e,t,n=navigator.platform){let r=mt(n),i=t.metaKey||t.modKey&&r,a=t.ctrlKey||t.modKey&&!r;return e.metaKey===i&&e.ctrlKey===a&&e.shiftKey===t.shiftKey&&e.altKey===t.altKey}function Qte(e,t,n=navigator.platform){return Sh(e,t,n)?Zte(e).has(t.key):!1}function Ch(e){return e?.platform??navigator.platform}function wh(e){return{terminalFocus:!1,terminalOpen:!1,previewFocus:!1,previewOpen:!1,...e?.context}}function Th(e,t){switch(e.type){case`identifier`:return e.name===`true`?!0:e.name===`false`?!1:!!t[e.name];case`not`:return!Th(e.node,t);case`and`:return Th(e.left,t)&&Th(e.right,t);case`or`:return Th(e.left,t)||Th(e.right,t)}}function Eh(e,t){return e?Th(e,t):!0}function $te(e,t=navigator.platform){let n=mt(t),r=e.metaKey||e.modKey&&n,i=e.ctrlKey||e.modKey&&!n;return[e.key,r?`meta`:``,i?`ctrl`:``,e.shiftKey?`shift`:``,e.altKey?`alt`:``].join(`|`)}function Dh(e,t,n){let r=Ch(n),i=wh(n),a=new Set;for(let n=e.length-1;n>=0;--n){let o=e[n];if(!o||!Eh(o.whenAst,i))continue;let s=$te(o.shortcut,r);if(!a.has(s)&&(a.add(s),o.command===t))return o.shortcut}return null}function Oh(e,t,n,r){return kh(e,t,r)===n}function kh(e,t,n){let r=Ch(n),i=wh(n);for(let n=t.length-1;n>=0;--n){let a=t[n];if(a&&Eh(a.whenAst,i)&&Qte(e,a.shortcut,r))return a.command}return null}function ene(e){return e===` `?`Space`:e.length===1?e.toUpperCase():e===`escape`?`Esc`:e===`arrowup`?`Up`:e===`arrowdown`?`Down`:e===`arrowleft`?`Left`:e===`arrowright`?`Right`:e.slice(0,1).toUpperCase()+e.slice(1)}function Ah(e,t=navigator.platform){let n=ene(e.key),r=mt(t),i=e.metaKey||e.modKey&&r,a=e.ctrlKey||e.modKey&&!r,o=e.altKey,s=e.shiftKey;if(r)return`${a?`⌃`:``}${o?`⌥`:``}${s?`⇧`:``}${i?`⌘`:``}${n}`;let c=[];return a&&c.push(`Ctrl`),o&&c.push(`Alt`),s&&c.push(`Shift`),i&&c.push(`Meta`),c.push(n),c.join(`+`)}function jh(e,t,n){let r=typeof n==`string`?{platform:n}:n,i=Ch(r),a=Dh(e,t,r);return a?Ah(a,i):null}function Mh(e){return $u[e]??null}function Nh(e){let t=$u.indexOf(e);return t===-1?null:t}function Ph(e){return e===`thread.previous`?`previous`:e===`thread.next`?`next`:null}function Fh(e,t,n){let r=Ch(n);for(let i of $u){let a=Dh(t,i,n);if(a&&Sh(e,a,r))return!0}return!1}function tne(e){return Jt[e]??null}function nne(e){let t=Jt.indexOf(e);return t===-1?null:t}function rne(e,t,n){return Oh(e,t,`terminal.toggle`,n)}function ine(e,t,n){return Oh(e,t,`terminal.split`,n)}function ane(e,t,n){return Oh(e,t,`terminal.splitVertical`,n)}function one(e,t,n){return Oh(e,t,`terminal.new`,n)}function sne(e,t,n){return Oh(e,t,`terminal.close`,n)}function cne(e,t,n){return Oh(e,t,`diff.toggle`,n)}function lne(e,t,n){return Oh(e,t,`editor.openFavorite`,n)}function une(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`)return!1;let n=e.key.toLowerCase();return n===`l`&&e.ctrlKey&&!e.metaKey&&!e.altKey&&!e.shiftKey?!0:mt(t)&&n===`k`&&e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function dne(e,t=navigator.platform){return e.type!==void 0&&e.type!==`keydown`||!mt(t)||xh(e.key)!==`backspace`?null:e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey?Yte:null}function fne(e,t=navigator.platform){if(e.type!==void 0&&e.type!==`keydown`||e.shiftKey)return null;let n=xh(e.key);if(n!==`arrowleft`&&n!==`arrowright`)return null;let r=n===`arrowleft`?Gte:Kte,i=n===`arrowleft`?qte:Jte;return mt(t)?e.altKey&&!e.metaKey&&!e.ctrlKey?r:e.metaKey&&!e.altKey&&!e.ctrlKey?i:null:e.ctrlKey&&!e.metaKey&&!e.altKey||e.altKey&&!e.metaKey&&!e.ctrlKey?r:null}var pne=[/\bSocketCloseError\b/i,/\bSocketOpenError\b/i,/\bSocket is not connected\b/i,/Unable to connect to the T3 server WebSocket\./i,/\bis not connected\.$/i,/\bdisconnected\.$/i,/\bcould not establish a WebSocket connection\.$/i,/\bClientProtocolError\b/i,/\bRpcClientError\b/i,/\bping timeout\b/i];function mne(e){if(typeof e!=`string`)return!1;let t=e.trim();return t.length===0?!1:pne.some(e=>e.test(t))}function hne(e){return mne(e)?null:e??null}var Ih=`[CLIENT_SETTINGS]`,Lh=new Set,gne=new Set,Rh=x,zh=!1,Bh=null,Vh=0;function _ne(){for(let e of Lh)e()}function vne(){for(let e of gne)e()}function Hh(){return Rh}function Uh(e){Rh=e,_ne()}function yne(e){zh!==e&&(zh=e,vne())}function bne(e){return Lh.add(e),xne(),()=>{Lh.delete(e)}}async function xne(){if(zh)return;if(Bh)return Bh;let e=Vh,t=(async()=>{try{let t=await un().persistence.getClientSettings();if(e!==Vh)return;t&&Uh({...x,...t})}catch(e){console.error(`${Ih} hydrate failed`,{operation:`hydrate`,..._c(e)})}finally{e===Vh&&yne(!0)}})().finally(()=>{Bh===t&&(Bh=null)});return Bh=t,Bh}function Wh(e){Uh(e),un().persistence.setClientSettings(e).catch(e=>{console.error(`${Ih} persist failed`,{operation:`persist`,..._c(e)})})}var Sne=new Set(mn(Ne.fields));function Cne(e){let t={},n={};for(let[r,i]of Object.entries(e))Sne.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function wne(){return Hh()}function Gh(){return(0,J.useSyncExternalStore)(bne,Hh,Tne)}function Tne(){return x}function Ene(e,t){return{...e,...t}}function Kh(e,t){let n=(0,X.c)(6),r=Gh(),i;n[0]!==r||n[1]!==e?(i=Ene(e,r),n[0]=r,n[1]=e,n[2]=i):i=n[2];let a=i,o;return n[3]!==a||n[4]!==t?(o=t?t(a):a,n[3]=a,n[4]=t,n[5]=o):o=n[5],o}function qh(e){let t=(0,X.c)(3),n=Gh(),r;return t[0]!==e||t[1]!==n?(r=e?e(n):n,t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Dne(e,t){let n=(0,X.c)(2),r;return n[0]===e?r=n[1]:(r=Ot.settingsValueAtom(e),n[0]=e,n[1]=r),Kh(Kt(r)??ws,t)}function Jh(e){return Kh(Kt(si),e)}function One(e){let t=(0,X.c)(3),n=pe(Ot.updateSettings,`server settings update`),r;return t[0]!==e||t[1]!==n?(r=t=>{let{serverPatch:r,clientPatch:i}=Cne(t);Object.keys(r).length>0&&e&&n({environmentId:e,input:{patch:r}}),Object.keys(i).length>0&&Wh({...Hh(),...i})},t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Yh(){return One(f()?.environmentId??null)}function Xh(){return kne}function kne(e){Wh({...Hh(),...e})}function Ane(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var Zh=Object.freeze({buffer:``,status:`closed`,error:null,updatedAt:null,version:0}),jne=Object.freeze({summary:null,buffer:``,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0}),Mne=512*1024,Nne=new TextEncoder,Pne=new TextDecoder;function Qh(e,t){if(t<=0)return``;let n=Nne.encode(e);if(n.byteLength<=t)return e;let r=n.byteLength-t;for(;r<n.length;){let e=n[r];if(e===void 0||(e&192)!=128)break;r+=1}return Pne.decode(n.subarray(r))}function Fne(e,t){return{buffer:Qh(e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:1}}function Ine(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function $h(e,t){return{summary:e,buffer:t.buffer,status:t.version>0?t.status:e?.status??t.status,error:t.error,hasRunningSubprocess:e?.hasRunningSubprocess??!1,updatedAt:Ine(e?.updatedAt??null,t.updatedAt),version:t.version}}function Lne(e,t,n=Mne){switch(t.type){case`snapshot`:case`restarted`:return Fne(t.snapshot,n);case`output`:return{...e,buffer:Qh(`${e.buffer}${t.data}`,n),status:e.status===`closed`?`running`:e.status,error:null,version:e.version+1};case`cleared`:return{...e,buffer:``,error:null,version:e.version+1};case`exited`:return{...e,status:`exited`,error:null,version:e.version+1};case`closed`:return{...e,status:`closed`,error:null,version:e.version+1};case`error`:return{...e,status:`error`,error:t.message,version:e.version+1};case`activity`:return e}}function Rne(e,t){return t.type===`snapshot`?t.terminals:t.type===`remove`?e.filter(e=>e.threadId!==t.threadId||e.terminalId!==t.terminalId):[...e.filter(e=>e.threadId!==t.terminal.threadId||e.terminalId!==t.terminal.terminalId),t.terminal]}function zne(e){let t=Zu(),n=Zu(),r=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId]),i=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.terminalId??null]),a={mode:`serial`,key:r};return{attach:mi(e,{label:`environment-data:terminal:attach`,subscribe:e=>_o(W.terminalAttach,e).pipe(vt(Zh,Lne))}),events:Wr(e,{label:`environment-data:terminal:events`,tag:W.subscribeTerminalEvents}),metadata:mi(e,{label:`environment-data:terminal:metadata`,subscribe:e=>_o(W.subscribeTerminalMetadata,{}).pipe(vt([],Rne))}),open:ni(e,{label:`environment-data:terminal:open`,tag:W.terminalOpen,scheduler:t,concurrency:a}),write:ni(e,{label:`environment-data:terminal:write`,tag:W.terminalWrite}),resize:ni(e,{label:`environment-data:terminal:resize`,tag:W.terminalResize,scheduler:n,concurrency:{mode:`latest`,key:i}}),clear:ni(e,{label:`environment-data:terminal:clear`,tag:W.terminalClear,scheduler:t,concurrency:a}),restart:ni(e,{label:`environment-data:terminal:restart`,tag:W.terminalRestart,scheduler:t,concurrency:a}),close:ni(e,{label:`environment-data:terminal:close`,tag:W.terminalClose,scheduler:t,concurrency:a})}}var eg=zne(yi);function Bne(e){let t=(0,X.c)(13),n;t[0]!==e.environmentId||t[1]!==e.terminal?(n=e.environmentId!==null&&e.terminal!==null?eg.attach({environmentId:e.environmentId,input:e.terminal}):null,t[0]=e.environmentId,t[1]=e.terminal,t[2]=n):n=t[2];let r=Zt(n),i;t[3]===e.environmentId?i=t[4]:(i=e.environmentId===null?null:eg.metadata({environmentId:e.environmentId,input:null}),t[3]=e.environmentId,t[4]=i);let a=Zt(i),o;bb0:{if(e.environmentId===null||e.terminal===null){o=jne;break bb0}let n;t[5]!==r.data||t[6]!==e.terminal?.terminalId||t[7]!==e.terminal?.threadId||t[8]!==a.data?(n=$h(a.data?.find(t=>t.threadId===e.terminal?.threadId&&t.terminalId===e.terminal?.terminalId)??null,r.data??Zh),t[5]=r.data,t[6]=e.terminal?.terminalId,t[7]=e.terminal?.threadId,t[8]=a.data,t[9]=n):n=t[9];let i=n,s;t[10]!==r.error||t[11]!==i?(s=r.error===null?i:{...i,error:r.error,status:`error`},t[10]=r.error,t[11]=i,t[12]=s):s=t[12],o=s}return o}function tg(e){let t=(0,X.c)(11),n;t[0]===e.environmentId?n=t[1]:(n=e.environmentId===null?null:eg.metadata({environmentId:e.environmentId,input:null}),t[0]=e.environmentId,t[1]=n);let r=Zt(n),i;bb0:{if(e.environmentId===null){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[2]=e):e=t[2],i=e;break bb0}let n;if(t[3]!==e.environmentId||t[4]!==e.threadId||t[5]!==r.data){let i;t[7]===e.threadId?i=t[8]:(i=t=>e.threadId===null||t.threadId===e.threadId,t[7]=e.threadId,t[8]=i);let a;t[9]===e.environmentId?a=t[10]:(a=t=>({target:{environmentId:e.environmentId,threadId:sl.make(t.threadId),terminalId:t.terminalId},state:$h(t,Zh)}),t[9]=e.environmentId,t[10]=a),n=(r.data??[]).filter(i).map(a).sort(Vne),t[3]=e.environmentId,t[4]=e.threadId,t[5]=r.data,t[6]=n}else n=t[6];i=n}return i}function Vne(e,t){return e.target.terminalId.localeCompare(t.target.terminalId,void 0,{numeric:!0})}function ng(e){let t=(0,X.c)(2),n=tg(e),r;return t[0]===n?r=t[1]:(r=Ane(n),t[0]=n,t[1]=r),r}function rg(e){return/^[a-zA-Z]:([/\\]|$)/.test(e)}function ig(e){return e.startsWith(`\\\\`)}function ag(e){return ig(e)||rg(e)}function og(e){return e===`.`||e===`..`||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)}function Hne(e){return e===`/`||e===`\\`||/^[a-zA-Z]:[/\\]?$/.test(e)}function Une(e){if(e.length===0||Hne(e))return e;let t=e.startsWith(`/`)?e.replace(/\/+$/g,``):e.replace(/[\\/]+$/g,``);return t.length===0?e:/^[a-zA-Z]:$/.test(t)?`${t}\\`:t}function sg(e){return Une(e.trim())}function cg(e){let t=sg(e);return rg(t)||ig(t)?t.replaceAll(`/`,`\\`).toLowerCase():t}function Wne(e){return JSON.stringify([e.environmentId,e.cwd,e.relativePath])}function Gne(e){let t=Zu(),n=Zu(),r=Oc(e=>qa(null).pipe(ao(`environment-data:projects:optimistic-file:${e}`))),i={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.projectId])};return{searchEntries:$e(e,{label:`environment-data:projects:search-entries`,tag:W.projectsSearchEntries,staleTimeMs:15e3}),listEntries:$e(e,{label:`environment-data:projects:list-entries`,tag:W.projectsListEntries,staleTimeMs:3e4,idleTtlMs:5*6e4}),readFile:$e(e,{label:`environment-data:projects:read-file`,tag:W.projectsReadFile,staleTimeMs:3e4,idleTtlMs:5*6e4}),optimisticFile:e=>r(Wne(e)),create:j(e,{label:`environment-data:commands:project:create`,execute:e=>Ao(e),scheduler:t,concurrency:i}),update:j(e,{label:`environment-data:commands:project:update`,execute:e=>oc(e),scheduler:t,concurrency:i}),delete:j(e,{label:`environment-data:commands:project:delete`,execute:e=>Vc(e),scheduler:t,concurrency:i}),writeFile:ni(e,{label:`environment-data:projects:write-file`,tag:W.projectsWriteFile,scheduler:n,concurrency:{mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd,t.relativePath])}})}}var Kne=Object.freeze([]),qne=new Map;function Jne(e){let t=Oc(t=>qa(n=>n(e.snapshotAtom(t))?.projects??Kne).pipe(ao(`environment-projects:${t}`))),n=Oc(e=>qa(n=>{let r=n(t(e));return r.length===0?qne:new Map(r.map(e=>[e.id,e]))}).pipe(ao(`environment-project-index:${e}`))),r=Oc(e=>{let n=[];return qa(r=>{let i=r(t(e)).map(t=>({environmentId:e,projectId:t.id}));return Au(n,i)?n:(n=i,i)}).pipe(ao(`environment-project-refs:${e}`))}),i=Oc(e=>{let t=Hu(e),r=null,i=null;return qa(e=>{let a=e(n(t.environmentId)).get(t.projectId)??null;return a===r?i:(r=a,i=a===null?null:Vn(t.environmentId,a),i)}).pipe(ao(`environment-project:${e}`))}),a=[],o=qa(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys())n.push(...t(r(i)));return Au(a,n)?a:(a=n,n)}).pipe(ao(`environment-project-refs`)),s=[];return{environmentProjectsAtom:t,environmentProjectIndexAtom:n,environmentProjectRefsAtom:r,projectRefsAtom:o,projectsAtom:qa(e=>{let t=e(o).flatMap(t=>{let n=e(i(Fa(t)));return n===null?[]:[n]});return ou(s,t)||(s=t),s}).pipe(ao(`environment-project-list`)),projectAtom:e=>i(Fa(e))}}var lg=e=>/^win(dows)?/i.test(e);function ug(e){return rg(e)||ig(e)?`windows`:e.startsWith(`/`)?`unix`:null}function dg(e){let t=ug(e);return t===`windows`?`\\`:t===`unix`?`/`:e.includes(`\\`)?`\\`:`/`}function fg(e){return(ug(e)===`unix`?/\/$/:/[\\/]$/).test(e)}function pg(e,t){return e.split(t===`/`?/\/+/:/[\\/]+/).filter(Boolean)}function mg(e){return ug(e)===`unix`?e.lastIndexOf(`/`):Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))}function hg(e){if(rg(e)){let t=`${e.slice(0,2)}\\`;return{root:t,separator:`\\`,segments:pg(e.slice(t.length),`\\`)}}if(ig(e)){let[t,n,...r]=pg(e,`\\`);return!t||!n?null:{root:`\\\\${t}\\${n}\\`,separator:`\\`,segments:r}}return e.startsWith(`/`)?{root:`/`,separator:`/`,segments:pg(e.slice(1),`/`)}:null}function Yne(e,t=``){let n=lg(t);return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`.\\`)||e.startsWith(`..\\`)||e.startsWith(`/`)||e.startsWith(`~/`)||n&&ag(e)}function Xne(e,t){return ag(e)&&!lg(t)}function gg(e,t){let n=e.trim();if(!og(n)||!t)return sg(n);let r=hg(sg(t));if(!r)return sg(n);let i=[...r.segments];for(let e of n.split(/[\\/]+/))if(!(e.length===0||e===`.`)){if(e===`..`){i.pop();continue}i.push(e)}let a=i.join(r.separator);return sg(a.length===0?r.root:`${r.root}${a}`)}function Zne(e,t){let n=cg(t);if(n.length!==0)return e.find(e=>{let t=e.workspaceRoot??e.cwd;return t?cg(t)===n:!1})}function Qne(e){let t=sg(e),n=hg(t);return n?n.segments.findLast(Boolean)??t:t.split(/[/\\]/).findLast(Boolean)??t}function $ne(e,t){let n=dg(e);return`${_g(e)}${t}${n}`}function ere(e){let t=mg(e);return e.slice(t+1)}function _g(e){if(fg(e))return e;let t=mg(e);return t<0?e:e.slice(0,t+1)}function tre(e){let t=e.trim();return t.length===0||fg(t)?t:`${t}${dg(t)}`}function vg(e){let t=sg(e),n=hg(t);if(n){if(n.segments.length===0)return null;if(n.segments.length===1)return n.root;let e=n.segments.slice(0,-1).join(n.separator);return`${n.root}${e}${n.separator}`}let r=dg(e),i=mg(t);return i<0?null:i===2&&/^[a-zA-Z]:/.test(t)?`${t.slice(0,2)}${r}`:t.slice(0,i+1)}function nre(e){return fg(e)&&vg(e)!==null}var yg=`t3code:ui-state:v1`,bg=1,xg=[`t3code:renderer-state:v8`,`t3code:renderer-state:v7`,`t3code:renderer-state:v6`,`t3code:renderer-state:v5`,`t3code:renderer-state:v4`,`t3code:renderer-state:v3`,`codething:renderer-state:v4`,`codething:renderer-state:v3`,`codething:renderer-state:v2`,`codething:renderer-state:v1`],Sg={projectExpandedById:{},projectOrder:[],threadLastVisitedAtById:{},threadChangedFilesExpandedById:{},defaultAdvertisedEndpointKey:null},rre=`legacy-project-cwd:`,Cg=`legacy-project-expansion-default`,wg=!1;function Tg(e){return`${rre}${cg(e)}`}function Eg(e){return Array.isArray(e)?[...new Set(e.filter(e=>typeof e==`string`&&e.length>0))]:[]}function ire(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`boolean`))}function are(e){return!e||typeof e!=`object`?{}:Object.fromEntries(Object.entries(e).filter(e=>e[0].length>0&&typeof e[1]==`string`&&e[1].length>0&&Number.isFinite(Date.parse(e[1]))))}function Dg(e){return{projectExpandedById:e.projectExpandedById===void 0?(()=>{let t={},n=Eg(e.collapsedProjectCwds),r=Eg(e.expandedProjectCwds);for(let e of n)t[Tg(e)]=!1;for(let e of r)t[Tg(e)]=!0;return!Array.isArray(e.collapsedProjectCwds)&&r.length>0&&(t[Cg]=!1),t})():ire(e.projectExpandedById),projectOrder:e.projectOrder===void 0?Eg(e.projectOrderCwds).map(Tg):Eg(e.projectOrder),threadLastVisitedAtById:are(e.threadLastVisitedAtById),threadChangedFilesExpandedById:e.threadChangedFilesExpansionVersion===bg?sre(e.threadChangedFilesExpandedById):{},defaultAdvertisedEndpointKey:typeof e.defaultAdvertisedEndpointKey==`string`&&e.defaultAdvertisedEndpointKey.length>0?e.defaultAdvertisedEndpointKey:null}}function ore(){if(typeof window>`u`)return Sg;try{let e=window.localStorage.getItem(yg);if(!e){for(let e of xg){let t=window.localStorage.getItem(e);if(t)return Dg(JSON.parse(t))}return Sg}return Dg(JSON.parse(e))}catch{return Sg}}function sre(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e)){if(!n||!r||typeof r!=`object`)continue;let e={};for(let[t,n]of Object.entries(r))t&&typeof n==`boolean`&&(e[t]=n);Object.keys(e).length>0&&(t[n]=e)}return t}function cre(e){if(!(typeof window>`u`))try{let t=Object.fromEntries(Object.entries(e.projectExpandedById).filter(([e])=>e!==Cg));if(window.localStorage.setItem(yg,JSON.stringify({projectExpandedById:t,projectOrder:e.projectOrder,threadLastVisitedAtById:e.threadLastVisitedAtById,defaultAdvertisedEndpointKey:e.defaultAdvertisedEndpointKey,threadChangedFilesExpansionVersion:bg,threadChangedFilesExpandedById:e.threadChangedFilesExpandedById})),!wg){wg=!0;for(let e of xg)window.localStorage.removeItem(e)}}catch{}}var Og=new Wa(cre,{wait:500});function lre(e,t,n){let r=Date.parse(n);if(!Number.isFinite(r))return e;let i=e.threadLastVisitedAtById[t],a=i?Date.parse(i):NaN;return Number.isFinite(a)&&Number.isFinite(r)&&a>=r?e:{...e,threadLastVisitedAtById:{...e.threadLastVisitedAtById,[t]:n}}}function ure(e,t,n){if(!n)return e;let r=Date.parse(n);if(Number.isNaN(r))return e;let i=new Date(r-1).toISOString();return e.threadLastVisitedAtById[t]===i?e:{...e,threadLastVisitedAtById:{...e.threadLastVisitedAtById,[t]:i}}}function dre(e,t,n,r){let i=e.threadChangedFilesExpandedById[t]??{};return i[n]===r?e:{...e,threadChangedFilesExpandedById:{...e.threadChangedFilesExpandedById,[t]:{...i,[n]:r}}}}function fre(e,t){let n=t&&t.length>0?t:null;return e.defaultAdvertisedEndpointKey===n?e:{...e,defaultAdvertisedEndpointKey:n}}function kg(e,t){for(let n of t){let t=e[n];if(t!==void 0)return t}return e[Cg]??!0}function pre(e,t,n){let r=(typeof t==`string`?[t]:t).filter(t=>e.projectExpandedById[t]!==n);if(r.length===0)return e;let i={...e.projectExpandedById};for(let e of r)i[e]=n;return{...e,projectExpandedById:i}}function mre(e,t,n,r){if(n.length===0)return e;let i=new Set(n),a=new Set(r);if(n.every(e=>a.has(e)))return e;let o=t.findIndex(e=>a.has(e));if(o<0)return e;let s=[...t],c=[],l=0;for(let e=s.length-1;e>=0;e--)i.has(s[e])&&(c.unshift(s.splice(e,1)[0]),e<o&&l++);if(c.length===0)return e;let u=o-Math.max(0,l-1);return s.splice(u,0,...c),{...e,projectOrder:s}}var Ag=Eo(e=>({...ore(),markThreadVisited:(t,n)=>e(e=>lre(e,t,n)),markThreadUnread:(t,n)=>e(e=>ure(e,t,n)),setThreadChangedFilesExpanded:(t,n,r)=>e(e=>dre(e,t,n,r)),setDefaultAdvertisedEndpointKey:t=>e(e=>fre(e,t)),setProjectExpanded:(t,n)=>e(e=>pre(e,t,n)),reorderProjects:(t,n,r)=>e(e=>mre(e,t,n,r))}));Ag.subscribe(e=>Og.maybeExecute(e)),typeof window<`u`&&typeof window.addEventListener==`function`&&window.addEventListener(`beforeunload`,()=>{Og.flush()});function jg(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Mg(...e){for(let t of e){let e=jg(t??void 0);if(e!==null)return e}return null}function hre(e){if(e.latestUserMessageAt){let t=jg(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=jg(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?Mg(e.updatedAt,e.createdAt)??-1/0:t}function Ng(e,t){return t===`created_at`?Mg(e.createdAt,e.updatedAt)??-1/0:hre(e)}function Pg(e,t){return as(e,h(Cn({timestamp:As(ge),id:As(ie)}),e=>({timestamp:Ng(e,t),id:e.id})))}function Fg(e,t,n){return Pg(e.filter(e=>e.projectId===t&&e.archivedAt===null),n)[0]??null}var gre=[{value:za.make(`codex`),label:`Codex`,available:!0},{value:za.make(`claudeAgent`),label:`Claude`,available:!0},{value:za.make(`opencode`),label:`OpenCode`,available:!0,pickerSidebarBadge:`new`},{value:za.make(`cursor`),label:`Cursor`,available:!0,pickerSidebarBadge:`new`},{value:za.make(`grok`),label:`Grok`,available:!0,pickerSidebarBadge:`new`}];function Ig(e){return e.tone===`tool`||e.tone===`thinking`||e.tone===`error`||e.command!==void 0&&e.command.trim().length>0||e.requestKind!==void 0?!0:e.itemType!==void 0&&M(e.itemType)}function _re(e){let t=e.toLowerCase();return!!(t.includes(`file not found`)||t.includes(`no files found`)||t.includes(`enoent`)||t.includes(`no such file or directory`)||t.includes(`no such file`)||t.includes(`cannot find path`)&&t.includes(`because it does not exist`)||t.includes(`commandnotfoundexception`)||t.includes(`is not recognized as the name of a cmdlet`)||t.includes(`is not recognized`)&&t.includes(`the term '`)||t.includes(`a parameter cannot be found that matches parameter name`)||t.includes(`command not found`)||/<exited with exit code\s+[1-9]\d*\s*>/i.test(e)||/exit(?:ed)? with exit code\s+[1-9]\d*/i.test(e)||/exit code\s*[:\s]\s*[1-9]\d*\b/i.test(e))}function Lg(e){if(e.tone===`error`)return!0;let t=e.toolLifecycleStatus;if(t===`failed`||t===`declined`)return!0;if(!Ig(e))return!1;let n=[];e.detail&&n.push(e.detail),e.command&&n.push(e.command);let r=n.join(`
|
|
11
11
|
`);return r.length===0?!1:_re(r)}function Rg(e){if(!Ig(e)||Lg(e)||e.tone===`thinking`)return!1;let t=e.toolLifecycleStatus;return!(t===`failed`||t===`declined`||t===`inProgress`||t===`stopped`)}function zg(e){return!(!Ig(e)||Lg(e)||Rg(e))}function vre(e){if(!Number.isFinite(e)||e<0)return`0ms`;if(e<1e3)return`${Math.max(1,Math.round(e))}ms`;if(e<1e4){let t=Math.round(e/100)/10;return t>=10?`10s`:`${t.toFixed(1)}s`}if(e<6e4)return`${Math.round(e/1e3)}s`;let t=Math.floor(e/6e4),n=Math.round(e%6e4/1e3);return n===0?`${t}m`:n===60?`${t+1}m`:`${t}m ${n}s`}function Bg(e,t){return!e?.startedAt||!e.completedAt?!1:t?t.status!==`running`:!0}function yre(e,t,n){let r=t?.status===`running`?t.activeTurnId:null;return r===null?Bg(e,t)?n:e?.startedAt??n:e?.turnId===r?e.startedAt??n:n}function Vg(e){switch(e){case`command_execution_approval`:case`exec_command_approval`:case`dynamic_tool_call`:return`command`;case`file_read_approval`:return`file-read`;case`file_change_approval`:case`apply_patch_approval`:return`file-change`;default:return null}}function Hg(e){let t=e?.toLowerCase();return t?t.includes(`stale pending approval request`)||t.includes(`stale pending user-input request`)||t.includes(`unknown pending approval request`)||t.includes(`unknown pending permission request`)||t.includes(`unknown pending user-input request`)||t.includes(`unknown pending user input request`)||t.includes(`unknown pending codex user input request`):!1}function bre(e){if(!Array.isArray(e))return;let t=e.filter(e=>e===`accept`||e===`acceptForSession`||e===`decline`||e===`cancel`);return[...new Set(t)]}function xre(e){let t=new Map,n=[...e].toSorted(i_);for(let e of n){let n=e.payload&&typeof e.payload==`object`?e.payload:null,r=n&&typeof n.requestId==`string`?mo.make(n.requestId):null,i=n&&(n.requestKind===`command`||n.requestKind===`file-read`||n.requestKind===`file-change`)?n.requestKind:n?Vg(n.requestType):null,a=n&&typeof n.detail==`string`?n.detail:void 0,o=bre(n?.availableDecisions);if(e.kind===`approval.requested`&&r&&i){t.set(r,{requestId:r,requestKind:i,createdAt:e.createdAt,...a?{detail:a}:{},...o?{availableDecisions:o}:{}});continue}if(e.kind===`approval.resolved`&&r){t.delete(r);continue}if(e.kind===`provider.approval.respond.failed`&&r&&Hg(a)){t.delete(r);continue}}return[...t.values()].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function Sre(e){let t=e?.questions;if(!Array.isArray(t))return null;let n=t.map(e=>{if(!e||typeof e!=`object`)return null;let t=e;if(typeof t.id!=`string`||typeof t.header!=`string`||typeof t.question!=`string`||!Array.isArray(t.options))return null;let n=t.options.map(e=>{if(!e||typeof e!=`object`)return null;let t=e;return typeof t.label!=`string`||typeof t.description!=`string`?null:{label:t.label,description:t.description}}).filter(e=>e!==null);return n.length===0?null:{id:t.id,header:t.header,question:t.question,options:n,multiSelect:t.multiSelect===!0}}).filter(e=>e!==null);return n.length>0?n:null}function Cre(e){let t=new Map,n=[...e].toSorted(i_);for(let e of n){let n=e.payload&&typeof e.payload==`object`?e.payload:null,r=n&&typeof n.requestId==`string`?mo.make(n.requestId):null,i=n&&typeof n.detail==`string`?n.detail:void 0;if(e.kind===`user-input.requested`&&r){let i=Sre(n);if(!i)continue;t.set(r,{requestId:r,createdAt:e.createdAt,questions:i});continue}if(e.kind===`user-input.resolved`&&r){t.delete(r);continue}e.kind===`provider.user-input.respond.failed`&&r&&Hg(i)&&t.delete(r)}return[...t.values()].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function wre(e,t){let n=[...e].toSorted(i_).filter(e=>e.kind===`turn.plan.updated`),r=qo([...t?uc(n,e=>e.turnId===t):du(),il(n)]).pipe(Fu);if(!r)return null;let i=r.payload&&typeof r.payload==`object`?r.payload:null,a=i?.plan;if(!Array.isArray(a))return null;let o=[];for(let e of a){if(!e||typeof e!=`object`)continue;let t=e;if(typeof t.step!=`string`)continue;let n=t.status===`completed`||t.status===`inProgress`?t.status:`pending`;o.push({step:t.step,status:n})}return o.length===0?null:{createdAt:r.createdAt,turnId:r.turnId,...i&&`explanation`in i?{explanation:i.explanation}:{},steps:o}}function Ug(e,t){if(t){let n=[...e].filter(e=>e.turnId===t).toSorted((e,t)=>e.updatedAt.localeCompare(t.updatedAt)||e.id.localeCompare(t.id)).at(-1);if(n)return Gg(n)}let n=[...e].toSorted((e,t)=>e.updatedAt.localeCompare(t.updatedAt)||e.id.localeCompare(t.id)).at(-1);return n?Gg(n):null}function Tre(e){let t=e.threads.find(t=>t.id===e.threadId)?.proposedPlans??[];if(!e.latestTurnSettled){let t=e.latestTurn?.sourceProposedPlan;if(t){let n=e.threads.find(e=>e.id===t.threadId)?.proposedPlans.find(e=>e.id===t.planId);if(n)return Gg(n)}}return Ug(t,e.latestTurn?.turnId??null)}function Ere(e){return e!==null&&e.implementedAt===null}function Dre(e){let t=[...e].toSorted(i_),n=[];for(let e of t)e.kind!==`tool.started`&&e.kind!==`task.started`&&e.kind!==`context-window.updated`&&e.summary!==`Checkpoint captured`&&(Ore(e)||n.push(Are(e)));return jre(n).map(e=>{let{activityKind:t,collapseKey:n,...r}=e;return Object.assign(r,{sourceActivityKind:t})})}function Ore(e){if(e.kind!==`tool.updated`&&e.kind!==`tool.completed`)return!1;let t=e.payload&&typeof e.payload==`object`?e.payload:null;return typeof t?.detail==`string`&&t.detail.startsWith(`ExitPlanMode:`)}function kre(e){if(!e)return;let t=e.status;if(t===`inProgress`||t===`completed`||t===`failed`||t===`declined`||t===`stopped`)return t}function Are(e){let t=e.payload&&typeof e.payload==`object`?e.payload:null,n=Gre(t),r=Jre(t),i=eie(t),a=Kre(t),o=e.kind===`task.progress`||e.kind===`task.completed`,s=o&&typeof t?.summary==`string`&&t.summary.length>0?t.summary:null,c=o&&!s&&typeof t?.detail==`string`&&t.detail.length>0?t.detail:null,l=s||c,u=o?!c&&t&&typeof t.detail==`string`&&t.detail.length>0?e_(t.detail).output:null:Qre(t,a??e.summary),d=o?null:qre(t),f={id:e.id,createdAt:e.createdAt,turnId:e.turnId,label:l||e.summary,tone:e.kind===`task.progress`?`thinking`:e.tone===`approval`?`info`:e.tone,activityKind:e.kind},p=t_(t),m=$re(t);if(u&&(f.detail=u),n.command&&(f.command=n.command),n.rawCommand&&(f.rawCommand=n.rawCommand),r!==null&&(f.exitCode=r),i.length>0&&(f.changedFiles=i),a&&(f.toolTitle=a),p===`mcp_tool_call`){let e=Kg(t?.data);e?.item!==void 0&&(f.toolData=e.item)}p&&(f.itemType=p),m&&(f.requestKind=m),d&&(f.toolCallId=d);let h=kre(t);!h&&e.kind===`tool.completed`&&(h=`completed`),h&&(f.toolLifecycleStatus=h);let g=Fre(f);return g&&(f.collapseKey=g),f}function jre(e){let t=[];for(let n of e){let e=t.at(-1);if(e&&Mre(e,n)){t[t.length-1]=Nre(e,n);continue}t.push(n)}return t}function Mre(e,t){return e.activityKind!==`tool.updated`&&e.activityKind!==`tool.completed`||t.activityKind!==`tool.updated`&&t.activityKind!==`tool.completed`||e.activityKind===`tool.completed`?!1:e.collapseKey!==void 0&&e.collapseKey===t.collapseKey?!0:e.toolCallId!==void 0&&t.toolCallId===void 0&&e.itemType===t.itemType&&Wg(e.toolTitle??e.label)===Wg(t.toolTitle??t.label)}function Nre(e,t){let n=Pre(e.changedFiles,t.changedFiles),r=t.detail??e.detail,i=t.command??e.command,a=t.rawCommand??e.rawCommand,o=t.exitCode??e.exitCode,s=t.toolTitle??e.toolTitle,c=t.itemType??e.itemType,l=t.requestKind??e.requestKind,u=t.collapseKey??e.collapseKey,d=t.toolCallId??e.toolCallId,f=t.toolLifecycleStatus??e.toolLifecycleStatus,p=t.toolData??e.toolData;return{...e,...t,...r?{detail:r}:{},...i?{command:i}:{},...a?{rawCommand:a}:{},...o===void 0?{}:{exitCode:o},...n.length>0?{changedFiles:n}:{},...s?{toolTitle:s}:{},...c?{itemType:c}:{},...l?{requestKind:l}:{},...u?{collapseKey:u}:{},...d?{toolCallId:d}:{},...f===void 0?{}:{toolLifecycleStatus:f},...p===void 0?{}:{toolData:p}}}function Pre(e,t){let n=[...e??[],...t??[]];return n.length===0?[]:[...new Set(n)]}function Fre(e){if(e.activityKind!==`tool.updated`&&e.activityKind!==`tool.completed`)return;if(e.toolCallId)return`tool:${e.toolCallId}`;let t=Wg(e.toolTitle??e.label),n=e.detail?.trim()??``,r=e.itemType??``;if(!(t.length===0&&n.length===0&&r.length===0))return[r,t,n].join(``)}function Wg(e){return e.replace(/\s+(?:complete|completed)\s*$/i,``).trim()}function Gg(e){return{id:e.id,createdAt:e.createdAt,updatedAt:e.updatedAt,turnId:e.turnId,planMarkdown:e.planMarkdown,implementedAt:e.implementedAt,implementationThreadId:e.implementationThreadId}}function Kg(e){return e&&typeof e==`object`?e:null}function qg(e){if(typeof e!=`string`)return null;let t=e.trim();return t.length>0?t:null}function Jg(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Yg(e){let t=e.trim();if(t.startsWith(`'`)&&t.endsWith(`'`)||t.startsWith(`"`)&&t.endsWith(`"`)){let e=t.slice(1,-1).trim();return e.length>0?e:t}return t}function Ire(e){let t=Yg(e);if(t.length===0)return null;let n=t.replace(/\\/g,`/`).split(`/`).at(-1)?.trim()??``;return n.length>0?n.toLowerCase():null}function Lre(e){let t=e.trim();if(t.length===0)return null;if(t.startsWith(`"`)||t.startsWith(`'`)){let e=t.charAt(0),n=t.indexOf(e,1);return n<=0?null:{executable:t.slice(0,n+1),rest:t.slice(n+1).trim()}}let n=t.search(/\s/);return n<0?{executable:t,rest:``}:{executable:t.slice(0,n),rest:t.slice(n).trim()}}var Rre=[{executables:[`pwsh`,`pwsh.exe`,`powershell`,`powershell.exe`],wrapperFlagPattern:/(?:^|\s)-command\s+/i},{executables:[`cmd`,`cmd.exe`],wrapperFlagPattern:/(?:^|\s)\/c\s+/i},{executables:[`bash`,`sh`,`zsh`],wrapperFlagPattern:/(?:^|\s)-(?:l)?c\s+/i}];function zre(e){return Rre.find(t=>t.executables.includes(e))}function Bre(e,t){let n=t.exec(e);if(!n)return null;let r=e.slice(n.index+n[0].length).trim();if(r.length===0)return null;let i=Yg(r);return i.length>0?i:null}function Vre(e){let t=Lre(e);if(!t||t.rest.length===0)return e;let n=Ire(t.executable);if(!n)return e;let r=zre(n);return r?Bre(t.rest,r.wrapperFlagPattern)??e:e}function Hre(e){return/[\s"'`]/.test(e)?`"${e.replace(/"/g,`\\"`)}"`:e}function Xg(e){let t=qg(e);if(t)return t;if(!Array.isArray(e))return null;let n=[];for(let t of e){let e=qg(t);e!==null&&n.push(e)}return n.length===0?null:n.map(e=>Hre(e)).join(` `)}function Ure(e){let t=Xg(e);return t?Vre(t):null}function Wre(e,t){let n=Xg(e);return!n||t===null||n===t?null:n}function Gre(e){let t=Kg(e?.data),n=Kg(t?.item),r=Kg(n?.result),i=Kg(n?.input),a=qg(e?.itemType),o=qg(e?.detail),s=[n?.command,i?.command,r?.command,t?.command,a===`command_execution`&&o?e_(o).output:null];for(let e of s){let t=Ure(e);if(t)return{command:t,rawCommand:Wre(e,t)}}return{command:null,rawCommand:null}}function Kre(e){return qg(e?.title)}function qre(e){return qg(Kg(e?.data)?.toolCallId)}function Jre(e){let t=Kg(e?.data),n=Kg(t?.item),r=Kg(t?.result)??Kg(n?.result);for(let i of[r?.exitCode,n?.exitCode,t?.exitCode,e?.exitCode]){let e=Jg(i);if(e!==null&&Number.isInteger(e))return e}let i=qg(e?.detail);return i?e_(i).exitCode??null:null}function Zg(e){return e.replace(/\s+/g,` `).trim()}function Yre(e,t=84){return e.length<=t?e:`${e.slice(0,t-1).trimEnd()}…`}function Qg(e){let t=qg(e);return t?Wg(Zg(t)).toLowerCase():null}function $g(e){let t=[];for(let n of e.split(/\r?\n/u)){let e=Zg(n);e.length>0&&t.push(e)}let n=t.find(e=>e!=="```");return n?Yre(n):t.length>1?`${t.length.toLocaleString()} lines`:null}function Xre(e){let t=Kg(Kg(e?.data)?.rawOutput);if(!t)return null;let n=Jg(t.totalFiles);if(n!==null){let e=t.truncated===!0?`+`:``;return`${n.toLocaleString()} file${n===1?``:`s`}${e}`}let r=qg(t.content);if(r)return $g(r);let i=qg(t.stdout);return i?$g(i):null}function Zre(e,t){let n=qg(Kg(e?.data)?.kind)?.toLowerCase(),r=qg(e?.title??t)?.toLowerCase();return t_(e)===`command_execution`||n===`execute`||r===`terminal`||r===`ran command`}function Qre(e,t){let n=qg(e?.detail),r=n?e_(n).output:null,i=Qg(t),a=Qg(r);if(r&&i!==a)return r;if(Zre(e,t))return null;let o=Xre(e);return o&&Qg(o)!==i?o:null}function e_(e){let t=e.trim(),n=/^(?<output>[\s\S]*?)(?:\s*<exited with exit code (?<code>\d+)>)\s*$/i.exec(t);if(!n?.groups)return{output:t.length>0?t:null};let r=Number.parseInt(n.groups.code??``,10),i=n.groups.output?.trim()??``;return{output:i.length>0?i:null,...Number.isInteger(r)?{exitCode:r}:{}}}function t_(e){if(typeof e?.itemType==`string`&&M(e.itemType))return e.itemType}function $re(e){return e?.requestKind===`command`||e?.requestKind===`file-read`||e?.requestKind===`file-change`?e.requestKind:Vg(e?.requestType)??void 0}function n_(e,t,n){let r=qg(n);!r||t.has(r)||(t.add(r),e.push(r))}function r_(e,t,n,r){if(r>4||t.length>=12)return;if(Array.isArray(e)){for(let i of e)if(r_(i,t,n,r+1),t.length>=12)return;return}let i=Kg(e);if(i){n_(t,n,i.path),n_(t,n,i.filePath),n_(t,n,i.relativePath),n_(t,n,i.filename),n_(t,n,i.newPath),n_(t,n,i.oldPath);for(let e of[`item`,`result`,`input`,`data`,`changes`,`files`,`edits`,`patch`,`patches`,`operations`])if(e in i&&(r_(i[e],t,n,r+1),t.length>=12))return}}function eie(e){let t=[],n=new Set;return r_(Kg(e?.data),t,n,0),t}function i_(e,t){if(e.sequence!==void 0&&t.sequence!==void 0){if(e.sequence!==t.sequence)return e.sequence-t.sequence}else if(e.sequence!==void 0)return 1;else if(t.sequence!==void 0)return-1;let n=e.createdAt.localeCompare(t.createdAt);if(n!==0)return n;let r=a_(e.kind)-a_(t.kind);return r===0?e.id.localeCompare(t.id):r}function a_(e){return e.endsWith(`.started`)||e===`tool.started`?0:e.endsWith(`.progress`)||e.endsWith(`.updated`)?1:e.endsWith(`.completed`)||e.endsWith(`.resolved`)?2:1}function tie(e,t,n){let r=e.map(e=>({id:e.id,kind:`message`,createdAt:e.createdAt,message:e})),i=t.map(e=>({id:e.id,kind:`proposed-plan`,createdAt:e.createdAt,proposedPlan:e})),a=n.map(e=>({id:e.id,kind:`work`,createdAt:e.createdAt,entry:e}));return[...r,...i,...a].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function nie(e){let t=[...e].toSorted((e,t)=>e.completedAt.localeCompare(t.completedAt)),n={};for(let e=0;e<t.length;e+=1){let r=t[e];r&&(n[r.turnId]=e+1)}return n}function rie(e){return!e||e.status===`stopped`||e.status===`interrupted`||e.status===`error`?`disconnected`:e.status===`starting`?`connecting`:e.status===`running`?`running`:`ready`}var iie=`[data-thread-item], [data-thread-selection-safe]`;async function aie(e){let t=[],n=[];for(let r of e.entries){let i=!1,a=await e.archive(r,()=>{i=!0});if((i||a._tag===`Success`)&&t.push(r.threadKey),a._tag===`Success`)continue;let o=a;if(i){n.push(o);continue}return{archivedThreadKeys:t,mutationFailure:o,followupFailures:n}}return{archivedThreadKeys:t,mutationFailure:null,followupFailures:n}}function oie(e){return[{id:`mark-unread`,label:`Mark unread (${e.count})`},{id:`archive`,label:`Archive (${e.count})`,disabled:e.hasRunningThread},{id:`delete`,label:`Delete (${e.count})`,destructive:!0}]}var o_={"Pending Approval":5,"Awaiting Input":4,Working:3,Connecting:3,"Plan Ready":2,Completed:1};function sie(e){let t=e.setTimeoutFn??globalThis.setTimeout,n=e.clearTimeoutFn??globalThis.clearTimeout,r=!1,i=null,a=()=>{i!==null&&(n(i),i=null)};return{sync:n=>{if(!n){a(),r&&(r=!1,e.onVisibilityChange(!1));return}r||i!==null||(i=t(()=>{i=null,r=!0,e.onVisibilityChange(!0)},e.delayMs))},dispose:()=>{a()}}}function cie(){let e=(0,X.c)(5),[t,n]=J.useState(!1),r=J.useRef(null),i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{let e=sie({delayMs:100,onVisibilityChange:e=>{n(e)},setTimeoutFn:window.setTimeout.bind(window),clearTimeoutFn:window.clearTimeout.bind(window)});return r.current=e,()=>{e.dispose(),r.current=null}},a=[],e[0]=i,e[1]=a):(i=e[0],a=e[1]),J.useEffect(i,a);let o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{r.current?.sync(e)},e[2]=o):o=e[2];let s=o,c;return e[3]===t?c=e[4]:(c={showThreadJumpHints:t,updateThreadJumpHintsVisibility:s},e[3]=t,e[4]=c),c}function s_(e){if(!e.latestTurn?.completedAt)return!1;let t=Date.parse(e.latestTurn.completedAt);if(Number.isNaN(t)||!e.lastVisitedAt)return!1;let n=Date.parse(e.lastVisitedAt);return Number.isNaN(n)?!0:t>n}function lie(e){return e===null?!0:!e.closest(iie)}function c_(e){return e>1}function l_(e){let{getId:t,getPreferenceIds:n,items:r,preferredIds:i}=e;if(i.length===0)return[...r];let a=new Map;for(let[e,i]of r.entries()){let r=n?.(i)??[t(i)];for(let t of new Set(r)){let n=a.get(t);n?n.push(e):a.set(t,[e])}}let o=new Set,s=i.flatMap(e=>{let t=a.get(e)?.find(e=>!o.has(e));return t===void 0?[]:(o.add(t),[r[t]])}),c=r.filter((e,t)=>!o.has(t));return[...s,...c]}function uie(e,t=10){return e.slice(0,Math.max(0,t))}function u_(e){let{currentThreadId:t,direction:n,threadIds:r}=e;if(r.length===0)return null;if(t===null)return n===`previous`?r.at(-1)??null:r[0]??null;let i=r.indexOf(t);return i===-1?null:n===`previous`?i>0?r[i-1]??null:null:i<r.length-1?r[i+1]??null:null}function die(e){let{projectDraftId:t,projectThreads:n,routeTarget:r}=e;return r?.kind===`draft`?t===r.draftId:r?.kind===`server`?n.some(e=>e.environmentId===r.threadRef.environmentId&&e.id===r.threadRef.threadId):!1}function fie(e){return e.button===2?!0:e.isMac&&e.button===0&&e.ctrlKey}function pie(e){let t=`h-8 w-full translate-x-0 cursor-pointer justify-start rounded-md px-2 text-left text-sm select-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring`;return e.isSelected&&e.isActive?q(t,`bg-sidebar-row-active text-sidebar-foreground font-medium hover:bg-sidebar-row-active hover:text-sidebar-foreground`):e.isSelected?q(t,`bg-sidebar-row-selected text-sidebar-foreground hover:bg-sidebar-row-active hover:text-sidebar-foreground`):e.isActive?q(t,`bg-sidebar-row-active text-sidebar-foreground font-medium hover:bg-sidebar-row-active hover:text-sidebar-foreground`):q(t,`text-sidebar-muted-foreground/80 hover:bg-sidebar-row-hover hover:text-sidebar-foreground`)}function mie(e){return e.hasPendingApprovals?`approval`:e.hasPendingUserInput?`input`:e.session?.status===`running`||e.session?.status===`starting`?`working`:e.session?.status===`error`?`failed`:`ready`}function d_(e){let t=Date.parse(e);return Number.isNaN(t)?0:t}function f_(...e){for(let t of e){if(t==null)continue;let e=Date.parse(t);if(!Number.isNaN(e))return e}return 0}function p_(...e){for(let t of e)if(t!=null&&!Number.isNaN(Date.parse(t)))return t;return null}function hie(e){return[...e].toSorted((e,t)=>d_(t.createdAt)-d_(e.createdAt)||e.id.localeCompare(t.id))}function m_(e){let t=p_(e.settledAt);if(t!==null)return t;let n=null,r=-1/0;for(let t of[e.latestUserMessageAt,e.latestTurn?.requestedAt,e.latestTurn?.startedAt,e.latestTurn?.completedAt]){if(t==null)continue;let e=Date.parse(t);!Number.isNaN(e)&&e>r&&(n=t,r=e)}return n??p_(e.updatedAt)}function gie(e){let t=e=>{let t=m_(e);return t===null?0:Date.parse(t)};return[...e].toSorted((e,n)=>t(n)-t(e)||e.id.localeCompare(n.id))}function _ie(e){let t=e.latestTurn;return t&&t.completedAt===null?p_(t.startedAt,t.requestedAt,e.session?.updatedAt):p_(e.session?.updatedAt)}function vie(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e/1e3)):0;if(t<60)return`${t}s`;let n=Math.floor(t/60);return n<60?`${n}m`:`${Math.floor(n/60)}h ${n%60}m`}function h_(e){let{thread:t}=e;return t.hasPendingApprovals?{label:`Pending Approval`,colorClass:`text-amber-600 dark:text-amber-300/90`,dotClass:`bg-amber-500 dark:bg-amber-300/90`,pulse:!1}:t.hasPendingUserInput?{label:`Awaiting Input`,colorClass:`text-indigo-600 dark:text-indigo-300/90`,dotClass:`bg-indigo-500 dark:bg-indigo-300/90`,pulse:!1}:t.session?.status===`running`?{label:`Working`,colorClass:`text-sky-600 dark:text-sky-300/80`,dotClass:`bg-sky-500 dark:bg-sky-300/80`,pulse:!0}:t.session?.status===`starting`?{label:`Connecting`,colorClass:`text-sky-600 dark:text-sky-300/80`,dotClass:`bg-sky-500 dark:bg-sky-300/80`,pulse:!0}:!t.hasPendingUserInput&&t.interactionMode===`plan`&&Bg(t.latestTurn,t.session)&&t.hasActionableProposedPlan?{label:`Plan Ready`,colorClass:`text-violet-600 dark:text-violet-300/90`,dotClass:`bg-violet-500 dark:bg-violet-300/90`,pulse:!1}:s_(t)?{label:`Completed`,colorClass:`text-emerald-600 dark:text-emerald-300/90`,dotClass:`bg-emerald-500 dark:bg-emerald-300/90`,pulse:!1}:null}function g_(e){let t=null;for(let n of e)n!==null&&(t===null||o_[n.label]>o_[t.label])&&(t=n);return t}function yie(e){let{deletedThreadId:t,deletedThreadIds:n,sortOrder:r,threads:i}=e,a=i.find(e=>e.id===t);return a?Pg(i.filter(e=>e.projectId===a.projectId&&e.id!==t&&!n?.has(e.id)),r)[0]?.id??null:null}function __(e,t,n){return t.length>0?t.reduce((e,t)=>Math.max(e,Ng(t,n)),-1/0):n===`created_at`?jg(e.createdAt)??-1/0:jg(e.updatedAt??e.createdAt)??-1/0}function v_(e,t,n,r){return t===`manual`?[...e]:[...e].toSorted((e,i)=>{let a=__(i,n(i),t),o=__(e,n(e),t);return(a===o?0:a>o?1:-1)||r(e,i)})}function bie(e,t,n){let r=new Map;for(let e of t){let t=r.get(e.projectId)??[];t.push(e),r.set(e.projectId,t)}return v_(e,n,e=>r.get(e.id)??[],(e,t)=>e.title.localeCompare(t.title)||e.id.localeCompare(t.id))}function y_(e,t,n){let r=new Map(e.flatMap(e=>e.memberProjectRefs.map(t=>[`${t.environmentId}\0${t.projectId}`,e.projectKey]))),i=new Map;for(let e of t){if(e.archivedAt!==null)continue;let t=r.get(`${e.environmentId}\0${e.projectId}`);if(!t)continue;let n=i.get(t);n?n.push(e):i.set(t,[e])}return v_(e,n,e=>i.get(e.projectKey)??[],(e,t)=>e.title.localeCompare(t.title)||e.projectKey.localeCompare(t.projectKey))}function xie(e,t,n){let r=(e,t)=>`${e}\u0000${t}`,i=new Map;for(let e of t){if(e.archivedAt!==null)continue;let t=r(e.environmentId,e.projectId),n=i.get(t)??[];n.push(e),i.set(t,n)}return v_(e,n,e=>i.get(r(e.environmentId,e.id))??[],(e,t)=>e.title.localeCompare(t.title)||e.environmentId.localeCompare(t.environmentId)||e.id.localeCompare(t.id))}function b_(e){return e?.trim()||null}function Sie(e,t){let n=e.find(e=>e.id===t);if(!n)return null;let r=b_(n.worktreePath);return r?e.some(e=>e.id===t?!1:b_(e.worktreePath)===r)?null:r:null}function x_(e){let t=e.trim();if(!t)return e;let n=t.replace(/\\/g,`/`).replace(/\/+$/,``).split(`/`),r=n[n.length-1]?.trim()??``;return r.length>0?r:t}function S_(e){let{threadBranch:t,gitStatus:n}=e;return n===null||t===null||n.refName!==t?null:n.pr??null}function C_(e){return e.length===0?null:{label:`Terminal process running`,colorClass:`text-teal-600 dark:text-teal-300/90`,pulse:!0}}function Cie(e){let t=(0,X.c)(14),{thread:n}=e,r,i;if(t[0]!==n.worktreePath){i=Symbol.for(`react.early_return_sentinel`);bb0:{let e=n.worktreePath?.trim();if(!e){i=null;break bb0}r=x_(e)}t[0]=n.worktreePath,t[1]=r,t[2]=i}else r=t[1],i=t[2];if(i!==Symbol.for(`react.early_return_sentinel`))return i;let a=r,o=n.branch?`Worktree: ${a} (${n.branch})`:`Worktree: ${a}`,s=`thread-worktree-${n.id}`,c;t[3]!==s||t[4]!==o?(c=(0,Y.jsx)(`span`,{role:`img`,"aria-label":o,"data-testid":s,className:`inline-flex items-center justify-center`}),t[3]=s,t[4]=o,t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Y.jsx)(zm,{className:`size-3 text-muted-foreground/40`}),t[6]=l):l=t[6];let u;t[7]===c?u=t[8]:(u=(0,Y.jsx)(cu,{render:c,children:l}),t[7]=c,t[8]=u);let d;t[9]===o?d=t[10]:(d=(0,Y.jsx)(pr,{side:`top`,children:o}),t[9]=o,t[10]=d);let f;return t[11]!==u||t[12]!==d?(f=(0,Y.jsxs)(bu,{children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13],f}function w_(e){let t=(0,X.c)(29),{status:n,compact:r}=e;if(r!==void 0&&r){let e=`inline-flex size-3.5 shrink-0 items-center justify-center ${n.colorClass}`,r;t[0]!==n.label||t[1]!==e?(r=(0,Y.jsx)(`span`,{"aria-label":n.label,className:e}),t[0]=n.label,t[1]=e,t[2]=r):r=t[2];let i=`size-[9px] rounded-full ${n.dotClass} ${n.pulse?`animate-status-pulse`:``}`,a;t[3]===i?a=t[4]:(a=(0,Y.jsx)(`span`,{className:i}),t[3]=i,t[4]=a);let o;t[5]!==r||t[6]!==a?(o=(0,Y.jsx)(cu,{render:r,children:a}),t[5]=r,t[6]=a,t[7]=o):o=t[7];let s;t[8]===n.label?s=t[9]:(s=(0,Y.jsx)(pr,{side:`top`,children:n.label}),t[8]=n.label,t[9]=s);let c;return t[10]!==o||t[11]!==s?(c=(0,Y.jsxs)(bu,{children:[o,s]}),t[10]=o,t[11]=s,t[12]=c):c=t[12],c}let i=`inline-flex items-center gap-1 text-[10px] ${n.colorClass}`,a;t[13]!==n.label||t[14]!==i?(a=(0,Y.jsx)(`span`,{"aria-label":n.label,className:i}),t[13]=n.label,t[14]=i,t[15]=a):a=t[15];let o=`h-1.5 w-1.5 rounded-full ${n.dotClass} ${n.pulse?`animate-status-pulse`:``}`,s;t[16]===o?s=t[17]:(s=(0,Y.jsx)(`span`,{className:o}),t[16]=o,t[17]=s);let c;t[18]===n.label?c=t[19]:(c=(0,Y.jsx)(`span`,{className:`hidden md:inline`,children:n.label}),t[18]=n.label,t[19]=c);let l;t[20]!==a||t[21]!==s||t[22]!==c?(l=(0,Y.jsxs)(cu,{render:a,children:[s,c]}),t[20]=a,t[21]=s,t[22]=c,t[23]=l):l=t[23];let u;t[24]===n.label?u=t[25]:(u=(0,Y.jsx)(pr,{side:`top`,children:n.label}),t[24]=n.label,t[25]=u);let d;return t[26]!==l||t[27]!==u?(d=(0,Y.jsxs)(bu,{children:[l,u]}),t[26]=l,t[27]=u,t[28]=d):d=t[28],d}function wie(e){let t=(0,X.c)(10),{thread:n}=e,r;t[0]!==n.environmentId||t[1]!==n.id?(r=Pa(n.environmentId,n.id),t[0]=n.environmentId,t[1]=n.id,t[2]=r):r=t[2];let i=r,a;t[3]===i?a=t[4]:(a=e=>e.threadLastVisitedAtById[Sr(i)],t[3]=i,t[4]=a);let o=Ag(a),s;t[5]!==o||t[6]!==n?(s=h_({thread:{...n,lastVisitedAt:o}}),t[5]=o,t[6]=n,t[7]=s):s=t[7];let c=s;if(!c)return null;let l;return t[8]===c?l=t[9]:(l=(0,Y.jsx)(`span`,{className:`inline-flex shrink-0 items-center gap-1.5`,children:(0,Y.jsx)(w_,{status:c})}),t[8]=c,t[9]=l),l}function Tie(e){let t=(0,X.c)(13),{thread:n}=e,r;t[0]!==n.environmentId||t[1]!==n.id?(r={environmentId:n.environmentId,threadId:n.id},t[0]=n.environmentId,t[1]=n.id,t[2]=r):r=t[2];let i=ng(r),a=te(n.environmentId),o=hs(),s=o!==null&&n.environmentId!==o,c=a?.label??null,l=s?c??`Remote`:null,u;t[3]===i?u=t[4]:(u=C_(i),t[3]=i,t[4]=u);let d=u;if(!d&&!s)return null;let f;t[5]===d?f=t[6]:(f=d?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{role:`img`,"aria-label":d.label,className:`inline-flex items-center justify-center ${d.colorClass}`}),children:(0,Y.jsx)(hh,{className:`size-3 ${d.pulse?`animate-status-pulse`:``}`})}),(0,Y.jsx)(pr,{side:`top`,children:d.label})]}):null,t[5]=d,t[6]=f);let p;t[7]!==s||t[8]!==l?(p=s?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{"aria-label":l??`Remote`,className:`inline-flex items-center justify-center`}),children:(0,Y.jsx)(jm,{className:`size-3 text-muted-foreground/60`})}),(0,Y.jsx)(pr,{side:`top`,children:l})]}):null,t[7]=s,t[8]=l,t[9]=p):p=t[9];let m;return t[10]!==f||t[11]!==p?(m=(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1.5`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}var Eie=`project-favicon-missing`;function Die(e){if(!e)return!1;try{let t=new URL(e,`https://t3.invalid`).pathname;return t.slice(t.lastIndexOf(`/`)+1)===Eie}catch{return!1}}var Oie=30*6e4,kie=5*6e4,T_=60*6e4,Aie=class extends Lo()(`InvalidAssetCollectionKeyError`,{key:tc,cause:yl()}){get message(){return`Invalid asset collection atom key: ${JSON.stringify(this.key)}.`}},jie=Ar(oa([Ml,ya(_u)]));function Mie(e){try{return jie(JSON.parse(e))}catch(t){throw new Aie({key:e,cause:t})}}function E_(e,t){try{return new URL(t,e).toString()}catch{return null}}function Nie(e){let t=$e(e,{label:`environment-data:assets:create-url`,tag:W.assetsCreateUrl,staleTimeMs:kie,idleTtlMs:T_,refreshIntervalMs:Oie}),n=Oc(e=>{let[n,r]=Mie(e);return qa(e=>r.map(r=>e(t({environmentId:n,input:{resource:r}})))).pipe(qs(T_),ao(`environment-data:assets:create-urls:${e}`))});return{createUrl:t,createUrls:e=>n(JSON.stringify([e.environmentId,e.resources]))}}var D_=Nie(yi);function O_(e,t){let n=(0,X.c)(10),r=gt(e),i;n[0]!==e||n[1]!==t?(i=D_.createUrl({environmentId:e,input:{resource:t}}),n[0]=e,n[1]=t,n[2]=i):i=n[2];let a=Kt(i);if(a._tag===`Failure`){let e;return n[3]===Symbol.for(`react.memo_cache_sentinel`)?(e={_tag:`Failure`},n[3]=e):e=n[3],e}if(r._tag===`None`||a._tag!==`Success`){let e;return n[4]===Symbol.for(`react.memo_cache_sentinel`)?(e={_tag:`Loading`},n[4]=e):e=n[4],e}let o;n[5]!==r.value.httpBaseUrl||n[6]!==a.value.relativeUrl?(o=E_(r.value.httpBaseUrl,a.value.relativeUrl),n[5]=r.value.httpBaseUrl,n[6]=a.value.relativeUrl,n[7]=o):o=n[7];let s=o,c;return n[8]===s?c=n[9]:(c=s===null?{_tag:`Failure`}:{_tag:`Success`,url:s},n[8]=s,n[9]=c),c}function Pie(e,t){let n=O_(e,t);return n._tag===`Success`?n.url:null}function Fie(e,t){let n=(0,X.c)(8),r=gt(e),i;n[0]!==e||n[1]!==t?(i=D_.createUrls({environmentId:e,resources:t}),n[0]=e,n[1]=t,n[2]=i):i=n[2];let a=Kt(i),o;return n[3]!==r._tag||n[4]!==r.value||n[5]!==t||n[6]!==a?(o=r._tag===`None`?t.map(Iie):a.map(e=>$o(e)?E_(r.value.httpBaseUrl,e.value.relativeUrl):null),n[3]=r._tag,n[4]=r.value,n[5]=t,n[6]=a,n[7]=o):o=n[7],o}function Iie(){return null}var k_=new Set;function A_(e){let t=(0,X.c)(9),n;t[0]===e.cwd?n=t[1]:(n={_tag:`project-favicon`,cwd:e.cwd},t[0]=e.cwd,t[1]=n);let r=Pie(e.environmentId,n),i=e.fallbackIcon??Hm;if(!r||Die(r)){let n;return t[2]!==i||t[3]!==e.className?(n=(0,Y.jsx)(j_,{className:e.className,icon:i}),t[2]=i,t[3]=e.className,t[4]=n):n=t[4],n}let a;return t[5]!==i||t[6]!==e.className||t[7]!==r?(a=(0,Y.jsx)(Lie,{src:r,className:e.className,fallbackIcon:i},r),t[5]=i,t[6]=e.className,t[7]=r,t[8]=a):a=t[8],a}function j_(e){let t=(0,X.c)(3),{className:n,icon:r}=e,i=`size-3.5 shrink-0 text-muted-foreground/50 ${n??``}`,a;return t[0]!==r||t[1]!==i?(a=(0,Y.jsx)(r,{className:i}),t[0]=r,t[1]=i,t[2]=a):a=t[2],a}function Lie(e){let t=(0,X.c)(16),{src:n,className:r,fallbackIcon:i}=e,a;t[0]===n?a=t[1]:(a=()=>k_.has(n)?`loaded`:`loading`,t[0]=n,t[1]=a);let[o,s]=(0,J.useState)(a),c;t[2]!==i||t[3]!==r||t[4]!==o?(c=o===`loaded`?null:(0,Y.jsx)(j_,{className:r,icon:i}),t[2]=i,t[3]=r,t[4]=o,t[5]=c):c=t[5];let l=`size-3.5 shrink-0 rounded-sm object-contain ${o===`loaded`?``:`hidden`} ${r??``}`,u;t[6]===n?u=t[7]:(u=()=>{k_.add(n),s(`loaded`)},t[6]=n,t[7]=u);let d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>s(`error`),t[8]=d):d=t[8];let f;t[9]!==n||t[10]!==l||t[11]!==u?(f=(0,Y.jsx)(`img`,{src:n,alt:``,className:l,onLoad:u,onError:d}),t[9]=n,t[10]=l,t[11]=u,t[12]=f):f=t[12];let p;return t[13]!==c||t[14]!==f?(p=(0,Y.jsxs)(Y.Fragment,{children:[c,f]}),t[13]=c,t[14]=f,t[15]=p):p=t[15],p}var M_=new Set,N_=new WeakMap,P_=new WeakMap,F_=new WeakMap,I_=new WeakMap,L_=new WeakMap,R_=new WeakMap,z_=new WeakMap,B_=new WeakMap,V_=new WeakSet,H_,U_=0,W_=0,G_=`__aa_tgt`,K_=`__aa_del`,q_=`__aa_new`,J_=e=>{let t=Vie(e);t&&t.forEach(e=>Hie(e))},Rie=e=>{e.forEach(e=>{e.target===H_&&zie(),N_.has(e.target)&&Z_(e.target)})};function Y_(e){let t=e.getBoundingClientRect(),n=H_?.clientWidth||0,r=H_?.clientHeight||0;return t.bottom<0||t.top>r||t.right<0||t.left>n}function X_(e){I_.get(e)?.disconnect();let t=N_.get(e),n=0;t||(t=rv(e),N_.set(e,t));let{offsetWidth:r,offsetHeight:i}=H_,a=[t.top-5,r-(t.left+5+t.width),i-(t.top+5+t.height),t.left-5].map(e=>`${-1*Math.floor(e)}px`).join(` `),o=new IntersectionObserver(()=>{++n>1&&Z_(e)},{root:H_,threshold:1,rootMargin:a});o.observe(e),I_.set(e,o)}function Z_(e,t=!0){clearTimeout(B_.get(e));let n=av(e),r=t?uv(n)?500:n.duration:0;B_.set(e,setTimeout(async()=>{let t=F_.get(e);try{await t?.finished,N_.set(e,rv(e)),X_(e)}catch{}},r))}function zie(){clearTimeout(B_.get(H_)),B_.set(H_,setTimeout(()=>{M_.forEach(e=>cv(e,e=>Q_(()=>Z_(e))))},100))}function Bie(e){setTimeout(()=>{R_.set(e,setInterval(()=>Q_(Z_.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function Q_(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}var $_,ev=typeof window<`u`&&`ResizeObserver`in window;ev&&(H_=document.documentElement,new MutationObserver(J_),$_=new ResizeObserver(Rie),window.addEventListener(`scroll`,()=>{W_=window.scrollY,U_=window.scrollX}),$_.observe(H_));function Vie(e){return e.reduce((e,t)=>[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]).every(e=>e.nodeName===`#comment`)?!1:e.reduce((e,t)=>{if(e===!1)return!1;if(t.target instanceof Element){if(tv(t.target),!e.has(t.target)){e.add(t.target);for(let n=0;n<t.target.children.length;n++){let r=t.target.children.item(n);if(r){if(K_ in r)return!1;tv(t.target,r),e.add(r)}}}if(t.removedNodes.length)for(let n=0;n<t.removedNodes.length;n++){let r=t.removedNodes[n];if(K_ in r)return!1;r instanceof Element&&(e.add(r),tv(t.target,r),P_.set(r,[t.previousSibling,t.nextSibling]))}}return e},new Set)}function tv(e,t){!t&&!(G_ in e)?Object.defineProperty(e,G_,{value:e}):t&&!(G_ in t)&&Object.defineProperty(t,G_,{value:e})}function Hie(e){var t;let n=e.isConnected,r=N_.has(e);n&&P_.has(e)&&P_.delete(e),F_.get(e)?.playState!==`finished`&&((t=F_.get(e))==null||t.cancel()),q_ in e?dv(e):r&&n?Wie(e):r&&!n?Gie(e):dv(e)}function nv(e){return Number(e.replace(/[^0-9.\-]/g,``))}function Uie(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}function rv(e){let t=e.getBoundingClientRect(),{x:n,y:r}=Uie(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function iv(e,t,n){let r=t.width,i=t.height,a=n.width,o=n.height,s=getComputedStyle(e);if(s.getPropertyValue(`box-sizing`)===`content-box`){let e=nv(s.paddingTop)+nv(s.paddingBottom)+nv(s.borderTopWidth)+nv(s.borderBottomWidth),t=nv(s.paddingLeft)+nv(s.paddingRight)+nv(s.borderRightWidth)+nv(s.borderLeftWidth);r-=t,a-=t,i-=e,o-=e}return[r,a,i,o].map(Math.round)}function av(e){return G_ in e&&z_.has(e[G_])?z_.get(e[G_]):{duration:250,easing:`ease-in-out`}}function ov(e){if(G_ in e)return e[G_]}function sv(e){let t=ov(e);return t?V_.has(t):!1}function cv(e,...t){t.forEach(t=>t(e,z_.has(e)));for(let n=0;n<e.children.length;n++){let r=e.children.item(n);r&&t.forEach(e=>e(r,z_.has(r)))}}function lv(e){return Array.isArray(e)?e:[e]}function uv(e){return typeof e==`function`}function Wie(e){let t=N_.get(e),n=rv(e);if(!sv(e))return N_.set(e,n);if(Y_(e)){N_.set(e,n),X_(e);return}let r;if(!t)return;let i=av(e);if(typeof i!=`function`){let a=t.left-n.left,o=t.top-n.top,s=t.left+t.width-(n.left+n.width);t.top+t.height-(n.top+n.height)==0&&(o=0),s==0&&(a=0);let[c,l,u,d]=iv(e,t,n),f={transform:`translate(${a}px, ${o}px)`},p={transform:`translate(0, 0)`};c!==l&&(f.width=`${c}px`,p.width=`${l}px`),u!==d&&(f.height=`${u}px`,p.height=`${d}px`),r=e.animate([f,p],{duration:i.duration,easing:i.easing})}else{let[a]=lv(i(e,`remain`,t,n));r=new Animation(a),r.play()}F_.set(e,r),N_.set(e,n),r.addEventListener(`finish`,Z_.bind(null,e,!1),{once:!0})}function dv(e){q_ in e&&delete e[q_];let t=rv(e);N_.set(e,t);let n=av(e);if(!sv(e))return;if(Y_(e)){X_(e);return}let r;if(typeof n!=`function`)r=e.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:n.duration*1.5,easing:`ease-in`});else{let[i]=lv(n(e,`add`,t));r=new Animation(i),r.play()}F_.set(e,r),r.addEventListener(`finish`,Z_.bind(null,e,!1),{once:!0})}function fv(e,t){var n;e.remove(),N_.delete(e),P_.delete(e),F_.delete(e),(n=I_.get(e))==null||n.disconnect(),setTimeout(()=>{if(K_ in e&&delete e[K_],Object.defineProperty(e,q_,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function Gie(e){var t;if(!P_.has(e)||!N_.has(e))return;let[n,r]=P_.get(e);Object.defineProperty(e,K_,{value:!0,configurable:!0});let i=window.scrollX,a=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=ov(e))==null||t.appendChild(e),!sv(e))return fv(e);let[o,s,c,l]=qie(e),u=av(e),d=N_.get(e);(i!==U_||a!==W_)&&Kie(e,i,a,u);let f,p={position:`absolute`,top:`${o}px`,left:`${s}px`,width:`${c}px`,height:`${l}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!uv(u))Object.assign(e.style,p),f=e.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:u.duration,easing:`ease-out`});else{let[t,n]=lv(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}F_.set(e,f),f.addEventListener(`finish`,()=>fv(e,p),{once:!0})}function Kie(e,t,n,r){let i=U_-t,a=W_-n,o=document.documentElement.style.scrollBehavior;if(getComputedStyle(H_).scrollBehavior===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+i,window.scrollY+a),!e.parentElement)return;let s=e.parentElement,c=s.clientHeight,l=s.clientWidth,u=performance.now();function d(){requestAnimationFrame(()=>{if(!uv(r)){let e=c-s.clientHeight,t=l-s.clientWidth;u+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-t,top:window.scrollY-e}),c=s.clientHeight,l=s.clientWidth,d()):document.documentElement.style.scrollBehavior=o}})}d()}function qie(e){let t=N_.get(e),[n,,r]=iv(e,t,rv(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=!F_.has(e)||F_.get(e)?.playState===`finished`?rv(i):N_.get(i);return[Math.round(t.top-o.top)-nv(a.borderTopWidth),Math.round(t.left-o.left)-nv(a.borderLeftWidth),n,r]}function pv(e,t={}){if(ev&&$_&&!(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&!uv(t)&&!t.disrespectUserMotionPreference)){V_.add(e),getComputedStyle(e).position===`static`&&Object.assign(e.style,{position:`relative`}),cv(e,Z_,Bie,e=>$_?.observe(e)),uv(t)?z_.set(e,t):z_.set(e,{duration:250,easing:`ease-in-out`,...t});let n=new MutationObserver(J_);n.observe(e,{childList:!0}),L_.set(e,n),M_.add(e)}return Object.freeze({parent:e,enable:()=>{V_.add(e)},disable:()=>{V_.delete(e),cv(e,e=>{let t=F_.get(e);try{t?.cancel()}catch{}F_.delete(e);let n=B_.get(e);n&&clearTimeout(n),B_.delete(e);let r=R_.get(e);r&&clearInterval(r),R_.delete(e)})},isEnabled:()=>V_.has(e),destroy:()=>{V_.delete(e),M_.delete(e),z_.delete(e),L_.get(e)?.disconnect(),L_.delete(e),cv(e,e=>{$_?.unobserve(e);let t=F_.get(e);try{t?.cancel()}catch{}F_.delete(e),I_.get(e)?.disconnect(),I_.delete(e);let n=R_.get(e);n&&clearInterval(n),R_.delete(e);let r=B_.get(e);r&&clearTimeout(r),B_.delete(e),N_.delete(e),P_.delete(e)})}})}function Jie(){var e=[...arguments];return(0,J.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var mv=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function hv(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function gv(e){return`nodeType`in e}function _v(e){return e?hv(e)?e:gv(e)?e.ownerDocument?.defaultView??window:window:window}function vv(e){let{Document:t}=_v(e);return e instanceof t}function yv(e){return hv(e)?!1:e instanceof _v(e).HTMLElement}function bv(e){return e instanceof _v(e).SVGElement}function xv(e){return e?hv(e)?e.document:gv(e)?vv(e)?e:yv(e)||bv(e)?e.ownerDocument:document:document:document}var Sv=mv?J.useLayoutEffect:J.useEffect;function Cv(e){let t=(0,J.useRef)(e);return Sv(()=>{t.current=e}),(0,J.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Yie(){let e=(0,J.useRef)(null);return[(0,J.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,J.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function wv(e,t){t===void 0&&(t=[e]);let n=(0,J.useRef)(e);return Sv(()=>{n.current!==e&&(n.current=e)},t),n}function Tv(e,t){let n=(0,J.useRef)();return(0,J.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function Ev(e){let t=Cv(e),n=(0,J.useRef)(null);return[n,(0,J.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function Dv(e){let t=(0,J.useRef)();return(0,J.useEffect)(()=>{t.current=e},[e]),t.current}var Ov={};function kv(e,t){return(0,J.useMemo)(()=>{if(t)return t;let n=Ov[e]==null?0:Ov[e]+1;return Ov[e]=n,e+`-`+n},[e,t])}function Av(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var jv=Av(1),Mv=Av(-1);function Xie(e){return`clientX`in e&&`clientY`in e}function Nv(e){if(!e)return!1;let{KeyboardEvent:t}=_v(e.target);return t&&e instanceof t}function Zie(e){if(!e)return!1;let{TouchEvent:t}=_v(e.target);return t&&e instanceof t}function Pv(e){if(Zie(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Xie(e)?{x:e.clientX,y:e.clientY}:null}var Fv=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[Fv.Translate.toString(e),Fv.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),Iv=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Qie(e){return e.matches(Iv)?e:e.querySelector(Iv)}var $ie={display:`none`};function eae(e){let{id:t,value:n}=e;return J.createElement(`div`,{id:t,style:$ie},n)}function tae(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return J.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function nae(){let[e,t]=(0,J.useState)(``);return{announce:(0,J.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var Lv=(0,J.createContext)(null);function rae(e){let t=(0,J.useContext)(Lv);(0,J.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function iae(){let[e]=(0,J.useState)(()=>new Set),t=(0,J.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,J.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var aae={draggable:`
|
|
12
12
|
To pick up a draggable item, press the space bar.
|
|
13
13
|
While dragging, use the arrow keys to move the item.
|
|
@@ -576,8 +576,8 @@ ${s.join(`
|
|
|
576
576
|
`).length>frt}var grt=(0,J.memo)(function(e){let t=(0,X.c)(18),[n,r]=(0,J.useState)(!1),i;t[0]!==e.terminalContexts||t[1]!==e.text?(i=e.text.trim().length>0||e.terminalContexts.length>0,t[0]=e.terminalContexts,t[1]=e.text,t[2]=i):i=t[2];let a=i,o,s;if(t[3]!==n||t[4]!==a||t[5]!==e.markdownCwd||t[6]!==e.skills||t[7]!==e.terminalContexts||t[8]!==e.text){o=a&&hrt(e.text);let r=o&&!n;s=a?(0,Y.jsx)(`div`,{className:q(`relative`,r&&`max-h-44 overflow-hidden`),"data-user-message-body":`true`,"data-user-message-collapsed":r?`true`:`false`,"data-user-message-collapsible":o?`true`:`false`,"data-user-message-fade":r?`true`:`false`,style:r?{WebkitMaskImage:mrt,maskImage:mrt}:void 0,children:(0,Y.jsx)(_rt,{text:e.text,terminalContexts:e.terminalContexts,skills:e.skills,markdownCwd:e.markdownCwd})}):null,t[3]=n,t[4]=a,t[5]=e.markdownCwd,t[6]=e.skills,t[7]=e.terminalContexts,t[8]=e.text,t[9]=o,t[10]=s}else o=t[9],s=t[10];let c;t[11]!==o||t[12]!==n||t[13]!==e.footer?(c=o||e.footer?(0,Y.jsxs)(`div`,{className:q(`mt-1.5 flex items-center gap-2`,o&&e.footer?`justify-between`:`justify-end`),"data-user-message-footer":`true`,children:[o?(0,Y.jsx)(hc,{type:`button`,size:`xs`,variant:`ghost`,"aria-expanded":n,"data-scroll-anchor-ignore":!0,onClick:()=>r(zrt),className:`-ml-1 h-6 rounded-md px-1.5 text-xs text-muted-foreground/72 hover:bg-muted/55 hover:text-foreground/85`,children:n?`Show less`:`Show full message`}):null,e.footer?(0,Y.jsx)(`div`,{className:`ml-auto flex items-center gap-2`,children:e.footer}):null]}):null,t[11]=o,t[12]=n,t[13]=e.footer,t[14]=c):c=t[14];let l;return t[15]!==s||t[16]!==c?(l=(0,Y.jsxs)(`div`,{children:[s,c]}),t[15]=s,t[16]=c,t[17]=l):l=t[17],l}),_rt=(0,J.memo)(function(e){let t=(0,X.c)(42),n=(0,J.use)(d9),r;t[0]!==n||t[1]!==e.markdownCwd||t[2]!==e.skills?(r=(t,r)=>{let i=/^\s+/.exec(t)?.[0]??``,a=t.slice(i.length),o=/\s+$/.exec(a)?.[0]??``,s=a.slice(0,a.length-o.length);return(0,Y.jsxs)(J.Fragment,{children:[i?(0,Y.jsx)(`span`,{"aria-hidden":`true`,children:i}):null,s?(0,Y.jsx)(qX,{text:s,cwd:e.markdownCwd,threadRef:n.threadRef??void 0,skills:e.skills,className:`text-foreground`,lineBreaks:!0}):null,o?(0,Y.jsx)(`span`,{"aria-hidden":`true`,children:o}):null]},r)},t[0]=n,t[1]=e.markdownCwd,t[2]=e.skills,t[3]=r):r=t[3];let i=r,a;if(t[4]!==n||t[5]!==e.markdownCwd||t[6]!==e.skills||t[7]!==e.text){a=Symbol.for(`react.early_return_sentinel`);bb0:{let r=ls(e.text);if(r.some(Brt)){let i;t[9]!==n||t[10]!==e.markdownCwd||t[11]!==e.skills?(i=t=>t.kind===`text`?t.text.trim().length>0?(0,Y.jsx)(`div`,{className:`wrap-break-word`,children:(0,Y.jsx)(qX,{text:t.text.trim(),cwd:e.markdownCwd,threadRef:n.threadRef??void 0,skills:e.skills,className:`text-foreground`,lineBreaks:!0})},t.id):null:(0,Y.jsx)(vrt,{comment:t.comment},t.comment.id),t[9]=n,t[10]=e.markdownCwd,t[11]=e.skills,t[12]=i):i=t[12],a=(0,Y.jsx)(`div`,{className:`space-y-3 text-sm leading-relaxed text-foreground`,children:r.map(i)});break bb0}}t[4]=n,t[5]=e.markdownCwd,t[6]=e.skills,t[7]=e.text,t[8]=a}else a=t[8];if(a!==Symbol.for(`react.early_return_sentinel`))return a;if(e.terminalContexts.length>0){let r;t[13]!==e.terminalContexts||t[14]!==e.text?(r=Dnt(e.text,e.terminalContexts),t[13]=e.terminalContexts,t[14]=e.text,t[15]=r):r=t[15];let a=r,o;t[16]===e.terminalContexts?o=t[17]:(o=Ent(e.terminalContexts),t[16]=e.terminalContexts,t[17]=o);let s=o,c,l;if(t[18]!==n||t[19]!==a||t[20]!==s||t[21]!==e.markdownCwd||t[22]!==e.skills||t[23]!==e.terminalContexts||t[24]!==e.text||t[25]!==i){l=Symbol.for(`react.early_return_sentinel`);bb1:{let r=[];if(a){let n=0;for(let t of e.terminalContexts){let a=u9(t.header),o=e.text.indexOf(a,n);if(o===-1){r.length=0;break}o>n&&r.push(i(e.text.slice(n,o),`user-terminal-context-inline-before:${t.header}:${n}`)),r.push((0,Y.jsx)(lrt,{context:t},`user-terminal-context-inline:${t.header}`)),n=o+a.length}if(r.length>0){if(n<e.text.length){let a;t[28]!==n||t[29]!==e.text||t[30]!==i?(a=i(e.text.slice(n),`user-message-terminal-context-inline-rest:${n}`),t[28]=n,t[29]=e.text,t[30]=i,t[31]=a):a=t[31],r.push(a)}l=(0,Y.jsx)(`div`,{className:`whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground`,children:r});break bb1}}for(let t of e.terminalContexts)r.push((0,Y.jsx)(lrt,{context:t},`user-terminal-context-inline:${t.header}`)),r.push((0,Y.jsx)(`span`,{"aria-hidden":`true`,children:` `},`user-terminal-context-inline-space:${t.header}`));if(e.text.length>0){let i=n.threadRef??void 0,a;t[32]!==e.markdownCwd||t[33]!==e.skills||t[34]!==e.text||t[35]!==i?(a=(0,Y.jsx)(qX,{text:e.text,cwd:e.markdownCwd,threadRef:i,skills:e.skills,className:`text-foreground`,lineBreaks:!0},`user-message-terminal-context-inline-text`),t[32]=e.markdownCwd,t[33]=e.skills,t[34]=e.text,t[35]=i,t[36]=a):a=t[36],r.push(a)}else if(s.length===0){l=null;break bb1}c=(0,Y.jsx)(`div`,{className:`whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground`,children:r})}t[18]=n,t[19]=a,t[20]=s,t[21]=e.markdownCwd,t[22]=e.skills,t[23]=e.terminalContexts,t[24]=e.text,t[25]=i,t[26]=c,t[27]=l}else c=t[26],l=t[27];return l===Symbol.for(`react.early_return_sentinel`)?c:l}if(e.text.length===0)return null;let o=n.threadRef??void 0,s;return t[37]!==e.markdownCwd||t[38]!==e.skills||t[39]!==e.text||t[40]!==o?(s=(0,Y.jsx)(qX,{text:e.text,cwd:e.markdownCwd,threadRef:o,skills:e.skills,className:`text-foreground`,lineBreaks:!0}),t[37]=e.markdownCwd,t[38]=e.skills,t[39]=e.text,t[40]=o,t[41]=s):s=t[41],s});function vrt(e){let t=(0,X.c)(42),{comment:n}=e,r=(0,J.use)(d9),i=n.fenceLanguage??`diff`,a,o,s,c,l,u;if(t[0]!==n||t[1]!==r.markdownCwd||t[2]!==r.resolvedTheme||t[3]!==r.skills||t[4]!==r.threadRef||t[5]!==r.workspaceRoot||t[6]!==i){a=TW(mc(n),`review-comment:${n.id}`),o=`space-y-2 rounded-lg border border-border/70 bg-background/70 p-3`;let e;t[13]!==n.filePath||t[14]!==r.workspaceRoot?(e=_X(n.filePath,r.workspaceRoot),t[13]=n.filePath,t[14]=r.workspaceRoot,t[15]=e):e=t[15];let d;t[16]===e?d=t[17]:(d=(0,Y.jsx)(`div`,{className:`text-xs font-medium text-foreground`,children:e}),t[16]=e,t[17]=d);let f;t[18]!==n.rangeLabel||t[19]!==n.sectionTitle?(f=(0,Y.jsxs)(`div`,{className:`text-[11px] text-muted-foreground`,children:[n.sectionTitle,` · `,n.rangeLabel]}),t[18]=n.rangeLabel,t[19]=n.sectionTitle,t[20]=f):f=t[20],t[21]!==d||t[22]!==f?(s=(0,Y.jsxs)(`div`,{className:`space-y-1`,children:[d,f]}),t[21]=d,t[22]=f,t[23]=s):s=t[23],t[24]!==n.text||t[25]!==r.skills?(c=n.text.length>0&&(0,Y.jsx)(`div`,{className:`whitespace-pre-wrap wrap-break-word text-sm`,children:(0,Y.jsx)(QY,{text:n.text,skills:r.skills})}),t[24]=n.text,t[25]=r.skills,t[26]=c):c=t[26],t[27]!==n.diff||t[28]!==r.markdownCwd||t[29]!==r.skills||t[30]!==r.threadRef||t[31]!==i?(l=i!==`diff`&&n.diff.trim().length>0&&(0,Y.jsx)(qX,{text:cl(i,n.diff),cwd:r.markdownCwd,threadRef:r.threadRef??void 0,skills:r.skills,className:`text-foreground`}),t[27]=n.diff,t[28]=r.markdownCwd,t[29]=r.skills,t[30]=r.threadRef,t[31]=i,t[32]=l):l=t[32],u=a?.kind===`files`&&a.files.map(e=>(0,Y.jsx)(VHe,{fileDiff:e,options:{collapsed:!1,diffStyle:`unified`,theme:xW(r.resolvedTheme)}},EW(e))),t[0]=n,t[1]=r.markdownCwd,t[2]=r.resolvedTheme,t[3]=r.skills,t[4]=r.threadRef,t[5]=r.workspaceRoot,t[6]=i,t[7]=a,t[8]=o,t[9]=s,t[10]=c,t[11]=l,t[12]=u}else a=t[7],o=t[8],s=t[9],c=t[10],l=t[11],u=t[12];let d;t[33]===a?d=t[34]:(d=a?.kind===`raw`&&(0,Y.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted/40 p-2 text-xs`,children:a.text}),t[33]=a,t[34]=d);let f;return t[35]!==o||t[36]!==s||t[37]!==c||t[38]!==l||t[39]!==u||t[40]!==d?(f=(0,Y.jsxs)(`div`,{className:o,children:[s,c,l,u,d]}),t[35]=o,t[36]=s,t[37]=c,t[38]=l,t[39]=u,t[40]=d,t[41]=f):f=t[41],f}function yrt(e){let t=(0,J.useRef)({byId:new Map,result:[]});return(0,J.useMemo)(()=>{let n=Cnt(e,t.current);return t.current=n,n.result},[e])}function brt(e,t){let n=Date.parse(e),r=Date.parse(t);if(!Number.isFinite(n)||!Number.isFinite(r))return null;let i=Math.max(0,Math.floor((r-n)/1e3));if(i<60)return`${i}s`;let a=Math.floor(i/3600),o=Math.floor(i%3600/60),s=i%60;return a>0?o>0?`${a}h ${o}m`:`${a}h`:s>0?`${o}m ${s}s`:`${o}m`}function xrt(e){return brt(e,new Date().toISOString())??`0s`}function Srt(e){let t=(0,X.c)(24),{name:n,className:r}=e;switch(n){case`bot`:{let e;return t[0]===r?e=t[1]:(e=(0,Y.jsx)(Cm,{className:r,"aria-hidden":!0}),t[0]=r,t[1]=e),e}case`check`:{let e;return t[2]===r?e=t[3]:(e=(0,Y.jsx)(ru,{className:r,"aria-hidden":!0}),t[2]=r,t[3]=e),e}case`circle-alert`:{let e;return t[4]===r?e=t[5]:(e=(0,Y.jsx)(km,{className:r,"aria-hidden":!0}),t[4]=r,t[5]=e),e}case`eye`:{let e;return t[6]===r?e=t[7]:(e=(0,Y.jsx)(Im,{className:r,"aria-hidden":!0}),t[6]=r,t[7]=e),e}case`globe`:{let e;return t[8]===r?e=t[9]:(e=(0,Y.jsx)(Wm,{className:r,"aria-hidden":!0}),t[8]=r,t[9]=e),e}case`hammer`:{let e;return t[10]===r?e=t[11]:(e=(0,Y.jsx)(xte,{className:r,"aria-hidden":!0}),t[10]=r,t[11]=e),e}case`message-circle`:{let e;return t[12]===r?e=t[13]:(e=(0,Y.jsx)(Jm,{className:r,"aria-hidden":!0}),t[12]=r,t[13]=e),e}case`square-pen`:{let e;return t[14]===r?e=t[15]:(e=(0,Y.jsx)(uh,{className:r,"aria-hidden":!0}),t[14]=r,t[15]=e),e}case`terminal`:{let e;return t[16]===r?e=t[17]:(e=(0,Y.jsx)(hh,{className:r,"aria-hidden":!0}),t[16]=r,t[17]=e),e}case`wrench`:{let e;return t[18]===r?e=t[19]:(e=(0,Y.jsx)(bh,{className:r,"aria-hidden":!0}),t[18]=r,t[19]=e),e}case`x`:{let e;return t[20]===r?e=t[21]:(e=(0,Y.jsx)(Zo,{className:r,"aria-hidden":!0}),t[20]=r,t[21]=e),e}case`zap`:{let e;return t[22]===r?e=t[23]:(e=(0,Y.jsx)(rc,{className:r,"aria-hidden":!0}),t[22]=r,t[23]=e),e}}}function Crt(e){return e===`error`?{iconName:`circle-alert`,className:`text-foreground/92`}:e===`thinking`?{iconName:`bot`,className:`text-foreground/92`}:e===`info`?{iconName:`check`,className:`text-muted-foreground`}:{iconName:`zap`,className:`text-foreground/92`}}function wrt(e,t){if(e.command)return e.command;if(e.detail)return e.detail;if((e.changedFiles?.length??0)===0)return null;let[n]=e.changedFiles??[];if(!n)return null;let r=_X(n,t);return e.changedFiles.length===1?r:`${r} +${e.changedFiles.length-1} more`}function Trt(e){let t=e.rawCommand?.trim();return!t||!e.command||t===e.command.trim()?null:t}function Ert(e,t){let n=[];e.itemType===`mcp_tool_call`&&e.toolData!==void 0&&n.push(`MCP call\n${JSON.stringify(e.toolData,null,2)}`);let r=Trt(e);r?.trim()?n.push(r.trim()):e.command?.trim()&&n.push(e.command.trim()),e.detail?.trim()&&n.push(e.detail.trim());let i=e.changedFiles??[];return i.length>0&&n.push(i.map(e=>_X(e,t)).join(`
|
|
577
577
|
`)),n.length>0?n.join(`
|
|
578
578
|
|
|
579
|
-
`):null}function Drt(e){if(e.sourceActivityKind===`user-input.requested`||e.sourceActivityKind===`user-input.resolved`)return`message-circle`;if(e.requestKind===`command`)return`terminal`;if(e.requestKind===`file-read`)return`eye`;if(e.requestKind===`file-change`)return`square-pen`;if(e.itemType===`command_execution`||e.command)return`terminal`;if(e.itemType===`file_change`||(e.changedFiles?.length??0)>0)return`square-pen`;if(e.itemType===`web_search`)return`globe`;if(e.itemType===`image_view`)return`eye`;switch(e.itemType){case`mcp_tool_call`:return`wrench`;case`dynamic_tool_call`:case`collab_agent_tool_call`:return`hammer`}return Crt(e.tone).iconName}function Ort(e){let t=e.trim();return t.length===0?e:`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function krt(e){return e.toolTitle?Ort(l9(e.toolTitle)):Ort(l9(e.label))}var Art=e=>e.stopPropagation(),jrt=(0,J.memo)(function(e){let t=(0,X.c)(83),{workEntry:n,workspaceRoot:r}=e,i=(0,J.use)(f9),[a,o]=(0,J.useState)(!1),s,c,l,u,d,f,p,m,h,g,_;if(t[0]!==n||t[1]!==r){let e=Crt(n.tone);g=n.sourceActivityKind===`runtime.warning`;let i;t[13]!==g||t[14]!==n?(i=g?`x`:Drt(n),t[13]=g,t[14]=n,t[15]=i):i=t[15],l=i,f=krt(n);let a=wrt(n,r);p=a&&l9(a).toLowerCase()===l9(f).toLowerCase()?null:a;let o;t[16]===n.exitCode?o=t[17]:(o=n.exitCode===void 0?null:`exit ${n.exitCode.toLocaleString()}`,t[16]=n.exitCode,t[17]=o),u=o;let v=p?`${f} - ${p}`:f,y;t[18]!==u||t[19]!==v?(y=[v,u].filter(Boolean),t[18]=u,t[19]=v,t[20]=y):y=t[20],c=y.join(`, `),d=Ert(n,r),s=d!==null;let b;t[21]===n?b=t[22]:(b=Lg(n),t[21]=n,t[22]=b),h=b,m=h&&(n.sourceActivityKind===`runtime.error`||!Ig(n)),_=q(`flex size-5 shrink-0 items-center justify-center`,g||m?`text-destructive`:n.tone===`tool`||h?`text-muted-foreground/65`:e.className),t[0]=n,t[1]=r,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_}else s=t[2],c=t[3],l=t[4],u=t[5],d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12];let v=_,y=g?`font-medium text-warning`:m?`font-medium text-destructive`:`font-medium text-foreground/82`,b=!i.activeTurnInProgress,x;t[23]!==b||t[24]!==n?(x=!b&&zg(n),t[23]=b,t[24]=n,t[25]=x):x=t[25];let S=x,C;t[26]!==b||t[27]!==n?(C=Rg(n)||b&&zg(n),t[26]=b,t[27]=n,t[28]=C):C=t[28];let w=C,T;t[29]!==s||t[30]!==c?(T=s?{role:`button`,tabIndex:0,"aria-label":c,onClick:()=>o(Vrt),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(Hrt))}}:{},t[29]=s,t[30]=c,t[31]=T):T=t[31];let E=T,D=s&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,O;t[32]===D?O=t[33]:(O=q(`flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,D),t[32]=D,t[33]=O);let k;t[34]===l?k=t[35]:(k=(0,Y.jsx)(Srt,{name:l,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[34]=l,t[35]=k);let A;t[36]!==v||t[37]!==k?(A=(0,Y.jsx)(`span`,{className:v,children:k}),t[36]=v,t[37]=k,t[38]=A):A=t[38];let j;t[39]===y?j=t[40]:(j=q(`min-w-0 shrink truncate`,y),t[39]=y,t[40]=j);let M;t[41]!==f||t[42]!==j?(M=(0,Y.jsx)(`span`,{className:j,children:f}),t[41]=f,t[42]=j,t[43]=M):M=t[43];let N;t[44]===p?N=t[45]:(N=p&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:p}),t[44]=p,t[45]=N);let P;t[46]!==N||t[47]!==M?(P=(0,Y.jsx)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:(0,Y.jsxs)(`p`,{className:`flex min-w-0 w-full items-baseline gap-1.5 text-[12px] leading-5`,children:[M,N]})}),t[46]=N,t[47]=M,t[48]=P):P=t[48];let F;t[49]!==u||t[50]!==n.exitCode?(F=u&&(0,Y.jsx)(`span`,{className:`mr-1 font-mono text-[10px] tabular-nums`,"aria-label":`Process exit status ${n.exitCode}`,children:u}),t[49]=u,t[50]=n.exitCode,t[51]=F):F=t[51];let I=!s,L;t[52]!==s||t[53]!==a?(L=s?(0,Y.jsx)(ca,{className:q(`size-3 shrink-0 opacity-70 transition-transform duration-200`,a&&`rotate-180`),"aria-hidden":!0}):null,t[52]=s,t[53]=a,t[54]=L):L=t[54];let R;t[55]!==I||t[56]!==L?(R=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":I,children:L}),t[55]=I,t[56]=L,t[57]=R):R=t[57];let z;t[58]!==h||t[59]!==S||t[60]!==w?(z=h?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Tool call failed`}),children:(0,Y.jsx)(Zo,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(pr,{children:`Failed`})]}):w?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(`span`,{className:`inline-flex size-4 items-center justify-center`,children:(0,Y.jsx)(ru,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(pr,{children:`Completed`})]}):S?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Ym,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(pr,{children:`Empty`})]}):null,t[58]=h,t[59]=S,t[60]=w,t[61]=z):z=t[61];let B;t[62]===z?B=t[63]:(B=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:z}),t[62]=z,t[63]=B);let V;t[64]!==F||t[65]!==R||t[66]!==B?(V=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[F,R,B]}),t[64]=F,t[65]=R,t[66]=B,t[67]=V):V=t[67];let H;t[68]!==P||t[69]!==V?(H=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[P,V]}),t[68]=P,t[69]=V,t[70]=H):H=t[70];let U;t[71]!==H||t[72]!==A?(U=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,children:[A,H]}),t[71]=H,t[72]=A,t[73]=U):U=t[73];let W;t[74]!==s||t[75]!==a||t[76]!==d?(W=a&&s&&d?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:Art,onPointerDown:Art,children:(0,Y.jsx)(`pre`,{className:`max-h-64 cursor-text overflow-auto whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed text-muted-foreground select-text`,children:d})}):null,t[74]=s,t[75]=a,t[76]=d,t[77]=W):W=t[77];let ee;return t[78]!==E||t[79]!==U||t[80]!==W||t[81]!==O?(ee=(0,Y.jsxs)(`div`,{className:O,...E,children:[U,W]}),t[78]=E,t[79]=U,t[80]=W,t[81]=O,t[82]=ee):ee=t[82],ee});function Mrt(){}function Nrt(){return new Map}function Prt(e){return e.kind===`message`&&e.message.deliveryState===`retryable`}function Frt(e){return e.kind===`message`?e.message.id:null}function Irt(e){let{item:t}=e;return(0,Y.jsx)(`div`,{className:`mx-auto w-full min-w-0 max-w-3xl overflow-x-clip`,"data-timeline-root":`true`,children:(0,Y.jsx)(Gnt,{row:t})})}function Lrt(e){return!zg(e)}function Rrt(e){return Ig(e)}function zrt(e){return!e}function Brt(e){return e.kind===`review-comment`}function Vrt(e){return!e}function Hrt(e){return!e}var Urt=`Invalid keybinding.`,Wrt=pu(pt);function Grt(e){let t=e?.trim()??``;return t.length>0?t:null}function Krt(e){let t=Grt(e.keybinding);if(!t)return null;let n=Wrt({key:t,command:e.command});if(n._tag===`None`)throw Error(Urt);return n.value}function qrt(e,t){for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r||r.command!==t)continue;let i=[];r.shortcut.modKey&&i.push(`mod`),r.shortcut.ctrlKey&&i.push(`ctrl`),r.shortcut.metaKey&&i.push(`meta`),r.shortcut.altKey&&i.push(`alt`),r.shortcut.shiftKey&&i.push(`shift`);let a=r.shortcut.key===` `?`space`:r.shortcut.key===`escape`?`esc`:r.shortcut.key;return i.push(a),i.join(`+`)}return null}var Jrt=[{id:`play`,label:`Play`},{id:`test`,label:`Test`},{id:`lint`,label:`Lint`},{id:`configure`,label:`Configure`},{id:`build`,label:`Build`},{id:`debug`,label:`Debug`}];function p9(e){let t=(0,X.c)(12),{icon:n,className:r}=e,i=r===void 0?`size-3.5`:r;if(n===`test`){let e;return t[0]===i?e=t[1]:(e=(0,Y.jsx)(_te,{className:i}),t[0]=i,t[1]=e),e}if(n===`lint`){let e;return t[2]===i?e=t[3]:(e=(0,Y.jsx)(Tte,{className:i}),t[2]=i,t[3]=e),e}if(n===`configure`){let e;return t[4]===i?e=t[5]:(e=(0,Y.jsx)(bh,{className:i}),t[4]=i,t[5]=e),e}if(n===`build`){let e;return t[6]===i?e=t[7]:(e=(0,Y.jsx)(xte,{className:i}),t[6]=i,t[7]=e),e}if(n===`debug`){let e;return t[8]===i?e=t[9]:(e=(0,Y.jsx)(ate,{className:i}),t[8]=i,t[9]=e),e}let a;return t[10]===i?a=t[11]:(a=(0,Y.jsx)(Bte,{className:i}),t[10]=i,t[11]=a),a}var Yrt=[];function Xrt({scripts:e,fileScripts:t=Yrt,keybindings:n,preferredScriptId:r=null,onRunScript:i,onAddScript:a,onUpdateScript:o,onDeleteScript:s}){let c=J.useId(),[l,u]=(0,J.useState)(null),[d,f]=(0,J.useState)({scripts:!1,imports:!1}),[p,m]=(0,J.useState)(!1),[h,g]=(0,J.useState)(``),[_,v]=(0,J.useState)(``),[y,b]=(0,J.useState)(`play`),[x,S]=(0,J.useState)(!1),[C,w]=(0,J.useState)(!1),[T,E]=(0,J.useState)(``),[D,O]=(0,J.useState)(``),[k,A]=(0,J.useState)(!1),[j,M]=(0,J.useState)(null),[N,P]=(0,J.useState)(!1),F=(0,J.useMemo)(()=>{if(r){let t=e.find(e=>e.id===r);if(t)return t}return Y3e(e)},[r,e]),I=(0,J.useMemo)(()=>t.filter(t=>!e.some(e=>e.command===t.command||e.name.toLowerCase()===t.name.toLowerCase())),[t,e]),L=l!==null,R=`data-highlighted:bg-transparent data-highlighted:text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-highlighted:hover:bg-accent data-highlighted:hover:text-accent-foreground data-highlighted:focus-visible:bg-accent data-highlighted:focus-visible:text-accent-foreground`,z=e=>{if(e.key===`Tab`)return;if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){E(``);return}let t=UN(e,navigator.platform);t&&E(t)},B=async t=>{t.preventDefault();let n=h.trim(),r=_.trim();if(n.length===0){M(`Name is required.`);return}if(r.length===0){M(`Command is required.`);return}M(null);let i;try{let t=l??J0(n,e.map(e=>e.id)),a=Krt({keybinding:T,command:q0(t)}),o=D.trim();i={name:n,command:r,icon:y,runOnWorktreeCreate:C,keybinding:a?.key??null,previewUrl:o.length>0?o:null,autoOpenPreview:o.length>0?k:!1}}catch(e){M(e instanceof Error?e.message:`Failed to save action.`);return}let s=l?await o(l,i):await a(i);if(s._tag===`Failure`){if(!Ct(s)){let e=Xn(s);M(e instanceof Error?e.message:`Failed to save action.`)}return}m(!1),S(!1)},V=()=>{u(null),g(``),v(``),b(`play`),S(!1),w(!1),E(``),O(``),A(!1),M(null),m(!0)},H=e=>{f({scripts:!1,imports:!1}),u(e.id),g(e.name),v(e.command),b(e.icon),S(!1),w(e.runOnWorktreeCreate),E(qrt(n,q0(e.id))??``),O(e.previewUrl??``),A(e.autoOpenPreview??!1),M(null),m(!0)},U=(0,J.useCallback)(()=>{l&&(P(!1),m(!1),s(l))},[l,s]),W=async e=>{let t={name:e.name,command:e.command,icon:e.icon??`play`,runOnWorktreeCreate:e.runOnWorktreeCreate??!1,keybinding:null,previewUrl:e.previewUrl??null,autoOpenPreview:e.previewUrl?e.autoOpenPreview??!1:!1},n=await a(t);if(n._tag===`Failure`&&!Ct(n)){let e=Xn(n);u(null),g(t.name),v(t.command),b(t.icon),S(!1),w(t.runOnWorktreeCreate),E(``),O(t.previewUrl??``),A(t.autoOpenPreview),M(e instanceof Error?e.message:`Failed to import action.`),m(!0)}},ee=I.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[F&&(0,Y.jsx)(Sl,{}),(0,Y.jsxs)(Pl,{children:[(0,Y.jsx)(gc,{children:`From t3.json`}),I.map(e=>(0,Y.jsxs)(ul,{className:R,onClick:()=>void W(e),children:[(0,Y.jsx)(p9,{icon:e.icon??`play`,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.name}),(0,Y.jsx)(Ka,{className:`ms-auto`,children:(0,Y.jsx)(Nm,{className:`size-3.5`,"aria-label":`Import`})})]},`${e.name} ${e.command}`))]})]});return(0,Y.jsxs)(Y.Fragment,{children:[F?(0,Y.jsxs)(FP,{"aria-label":`Project scripts`,children:[(0,Y.jsxs)(bu,{children:[(0,Y.jsxs)(cu,{render:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,"aria-label":`Run ${F.name}`,onClick:()=>i(F)}),children:[(0,Y.jsx)(p9,{icon:F.icon}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:F.name})]}),(0,Y.jsxs)(pr,{side:`top`,children:[`Run `,F.name]})]}),(0,Y.jsx)(IP,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(go,{highlightItemOnHover:!1,open:d.scripts,onOpenChange:e=>f({scripts:e,imports:!1}),children:[(0,Y.jsx)(Oo,{render:(0,Y.jsx)(hc,{size:`icon-xs`,variant:`outline`,"aria-label":`Script actions`}),children:(0,Y.jsx)(ca,{className:`size-4`})}),(0,Y.jsxs)(ds,{align:`end`,children:[e.map(e=>{let t=jh(n,q0(e.id));return(0,Y.jsxs)(ul,{className:`group ${R}`,onClick:()=>i(e),children:[(0,Y.jsx)(p9,{icon:e.icon,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.runOnWorktreeCreate?`${e.name} (setup)`:e.name}),(0,Y.jsxs)(`span`,{className:`relative ms-auto flex h-6 min-w-6 items-center justify-end`,children:[t&&(0,Y.jsx)(Ka,{className:`ms-0 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0`,children:t}),(0,Y.jsx)(hc,{type:`button`,variant:`ghost`,size:`icon-xs`,className:`absolute right-0 top-1/2 size-6 -translate-y-1/2 opacity-0 pointer-events-none transition-opacity group-hover:opacity-100 group-hover:pointer-events-auto group-focus-visible:opacity-100 group-focus-visible:pointer-events-auto`,"aria-label":`Edit ${e.name}`,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e)},children:(0,Y.jsx)(ch,{className:`size-3.5`})})]})]},e.id)}),ee,(0,Y.jsxs)(ul,{className:R,onClick:V,children:[(0,Y.jsx)(nh,{className:`size-4`}),`Add action`]})]})]})]}):I.length>0?(0,Y.jsxs)(go,{highlightItemOnHover:!1,open:d.imports,onOpenChange:e=>f({scripts:!1,imports:e}),children:[(0,Y.jsxs)(Oo,{render:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,"aria-label":`Project actions`}),children:[(0,Y.jsx)(nh,{className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:`Add action`}),(0,Y.jsx)(ca,{className:`size-3.5`})]}),(0,Y.jsxs)(ds,{align:`end`,children:[ee,(0,Y.jsxs)(ul,{className:R,onClick:V,children:[(0,Y.jsx)(nh,{className:`size-4`}),`Add action`]})]})]}):(0,Y.jsxs)(bu,{children:[(0,Y.jsxs)(cu,{render:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,"aria-label":`Add action`,onClick:V}),children:[(0,Y.jsx)(nh,{className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:`Add action`})]}),(0,Y.jsx)(pr,{side:`top`,children:`Add action`})]}),(0,Y.jsx)(VC,{onOpenChange:e=>{m(e),e||S(!1)},onOpenChangeComplete:e=>{e||(u(null),g(``),v(``),b(`play`),w(!1),E(``),O(``),A(!1),M(null))},open:p,children:(0,Y.jsxs)(UC,{children:[(0,Y.jsxs)(WC,{children:[(0,Y.jsx)(KC,{children:L?`Edit Action`:`Add Action`}),(0,Y.jsx)(qC,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,Y.jsx)(JC,{children:(0,Y.jsxs)(`form`,{id:c,className:`space-y-4`,onSubmit:B,children:[(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-name`,children:`Name`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(oD,{onOpenChange:S,open:x,children:[(0,Y.jsx)(sD,{render:(0,Y.jsx)(hc,{type:`button`,variant:`outline`,className:`size-9 shrink-0 hover:bg-popover active:bg-popover data-pressed:bg-popover data-pressed:shadow-xs/5 data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:border-transparent dark:bg-white/[0.035] dark:data-pressed:before:shadow-none`,"aria-label":`Choose icon`}),children:(0,Y.jsx)(p9,{icon:y,className:`size-4.5`})}),(0,Y.jsx)(cD,{align:`start`,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:Jrt.map(e=>(0,Y.jsxs)(`button`,{type:`button`,className:`relative flex flex-col items-center gap-2 rounded-md border px-2 py-2 text-xs dark:border-transparent ${e.id===y?`border-primary/70 bg-primary/10 dark:ring-1 dark:ring-primary/30`:`border-border/70 hover:bg-accent/60 dark:bg-white/[0.035]`}`,onClick:()=>{b(e.id),S(!1)},children:[(0,Y.jsx)(p9,{icon:e.id,className:`size-4`}),(0,Y.jsx)(`span`,{children:e.label})]},e.id))})})]}),(0,Y.jsx)(xS,{id:`script-name`,autoFocus:!0,placeholder:`Test`,value:h,onChange:e=>g(e.target.value)})]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,Y.jsx)(xS,{id:`script-keybinding`,placeholder:`Press shortcut`,value:T,readOnly:!0,onKeyDown:z}),(0,Y.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Press a shortcut. Use `,(0,Y.jsx)(`code`,{children:`Backspace`}),` to clear.`]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-command`,children:`Command`}),(0,Y.jsx)(El,{id:`script-command`,placeholder:`bun test`,value:_,onChange:e=>v(e.target.value)})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,Y.jsx)(xS,{id:`script-preview-url`,placeholder:`http://localhost:5173`,value:D,onChange:e=>O(e.target.value)}),(0,Y.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Open this URL in the in-app preview when this action runs.`})]}),(0,Y.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(`span`,{children:`Run automatically on worktree creation`}),(0,Y.jsx)(mM,{checked:C,onCheckedChange:e=>w(!!e)})]}),(0,Y.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035] ${D.trim().length===0?`opacity-60`:``}`,children:[(0,Y.jsx)(`span`,{children:`Open preview automatically when this action runs`}),(0,Y.jsx)(mM,{checked:k,disabled:D.trim().length===0,onCheckedChange:e=>A(!!e)})]}),j&&(0,Y.jsx)(`p`,{className:`text-sm text-destructive`,children:j})]})}),(0,Y.jsxs)(GC,{className:`dark:border-transparent dark:bg-transparent`,children:[L&&(0,Y.jsx)(hc,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,onClick:()=>P(!0),children:`Delete`}),(0,Y.jsx)(hc,{type:`button`,variant:`outline`,onClick:()=>{m(!1)},children:`Cancel`}),(0,Y.jsx)(hc,{form:c,type:`submit`,children:L?`Save changes`:`Save action`})]})]})}),(0,Y.jsx)(SP,{open:N,onOpenChange:P,children:(0,Y.jsxs)(CP,{children:[(0,Y.jsxs)(wP,{children:[(0,Y.jsxs)(EP,{children:[`Delete action "`,h,`"?`]}),(0,Y.jsx)(DP,{children:`This action cannot be undone.`})]}),(0,Y.jsxs)(TP,{children:[(0,Y.jsx)(OP,{render:(0,Y.jsx)(hc,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(hc,{variant:`destructive`,onClick:U,children:`Delete action`})]})]})})]})}var m9=(e,t)=>{let n=(0,X.c)(7),r=(0,J.useId)(),i;if(n[0]!==t||n[1]!==r||n[2]!==e){let a;n[4]!==r||n[5]!==e?(a=(t,n)=>`${r}-${e}-${String.fromCharCode(97+n)}`,n[4]=r,n[5]=e,n[6]=a):a=n[6],i=Array.from({length:t},a),n[0]=t,n[1]=r,n[2]=e,n[3]=i}else i=n[3];return i},Zrt=e=>{let t=(0,X.c)(23),[n,r]=m9(`aqua`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.25`,stopColor:`#7256FF`}),a=(0,Y.jsx)(`stop`,{offset:`.73`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#00D886`}),c=(0,Y.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`7.671`,x2:`61.125`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124L21 64c1.181-.019 2.531-.786 3.3-1.683l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.746 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.003-3.961c0-2.187.334-2.778 1.003-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.917-1.014c1.443 0 2.739.338 3.907 1.013a7.3 7.3 0 0 1 2.75 2.787q.996 1.774.996 3.961c0 2.187-.332 2.778-.997 3.96a7.3 7.3 0 0 1-2.749 2.788q-1.752 1.013-3.907 1.013c-1.436 0-2.75-.338-3.917-1.013m6.308-2.23q1.06-.67 1.661-1.854.6-1.185.6-2.664t-.6-2.664a4.6 4.6 0 0 0-1.661-1.854q-1.061-.67-2.39-.67t-2.396.67a4.6 4.6 0 0 0-1.672 1.854q-.605 1.185-.605 2.664t.605 2.664 1.672 1.854q1.067.67 2.396.67 1.33 0 2.39-.67m-2.16 6.034a2.67 2.67 0 0 1-1.126-1.077q-.391-.696-.391-1.64l-.01-1.94h2.743v1.811q0 .332.129.573.128.242.37.365.24.123.574.123h1.833v2.165h-2.412q-.975 0-1.71-.38M38.233 16.992h3.173l5.563 15.006h-2.947l-1.212-3.483h-5.842l-1.136 3.483H32.82zm3.805 9.261-2.025-5.723-.225-.954-.215.954-1.908 5.723z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},Qrt=e=>{let t=(0,X.c)(23),[n,r]=m9(`clion`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.29`,stopColor:`#009AE5`}),a=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),c=(0,Y.jsx)(`stop`,{offset:`.54`,stopColor:`#009AE5`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.393`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#FF2D90`,d:`M58 16.453V4.194A4.125 4.125 0 0 0 53.81.07L43.003.008c-1.18.019-2.535.781-3.304 1.678L6.993 39.844c-.64.748-.993 1.7-.993 2.684v11.35a4.125 4.125 0 0 0 4.125 4.125h11.003c1.19 0 2.321-.514 3.105-1.409L56.979 19.17A4.12 4.12 0 0 0 58 16.453`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.747 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96a7.3 7.3 0 0 1 2.744-2.787q1.747-1.013 3.901-1.014 1.823 0 3.345.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.355 2.793h-3.065a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.431-.95 4.9 4.9 0 0 0-1.822-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664a4.9 4.9 0 0 0 1.822-.332 4.02 4.02 0 0 0 2.326-2.38h3.065a6.44 6.44 0 0 1-1.355 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.345.675-2.154 0-3.901-1.013zM37.33 16.992v12.37h7.117v2.636H34.414V16.992z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},$rt=e=>{let t=(0,X.c)(23),[n,r]=m9(`datagrip`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.28`,stopColor:`#7256FF`}),a=(0,Y.jsx)(`stop`,{offset:`.66`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#FF43F2`}),c=(0,Y.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.125 4.125 0 0 0 53.9 0H36.234c-.806 0-1.593.236-2.267.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#FF43F2`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19L64 43c-.018-1.181-.785-2.531-1.682-3.3L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M35.426 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.333-2.778.997-3.96s1.58-2.112 2.744-2.787q1.747-1.013 3.902-1.014 1.746 0 3.221.622a6.9 6.9 0 0 1 2.487 1.747 6.36 6.36 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.927-1.228q-.585-.52-1.367-.803c-.782-.283-1.082-.284-1.683-.284q-1.329 0-2.401.664a4.6 4.6 0 0 0-1.678 1.828q-.605 1.163-.605 2.62c0 1.457.202 1.846.605 2.621a4.6 4.6 0 0 0 1.678 1.828q1.072.664 2.401.664 1.233 0 2.235-.461t1.592-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.356v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.625 2.525q-1.668.921-3.736.921c-1.38 0-2.737-.337-3.902-1.013z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},eit=e=>{let t=(0,X.c)(23),[n,r]=m9(`dataspell`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.28`,stopColor:`#007DFE`}),a=(0,Y.jsx)(`stop`,{offset:`.73`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.32`,stopColor:`#F0EB18`}),c=(0,Y.jsx)(`stop`,{offset:`.55`,stopColor:`#007DFE`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.875`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#F0EB18`,d:`M58 16.45V4.191A4.125 4.125 0 0 0 53.81.067L43 0c-1.181.019-2.531.786-3.3 1.683L6.993 39.84c-.64.748-.993 1.7-.993 2.685v11.349A4.125 4.125 0 0 0 10.125 58h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.45`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M34.713 31.664q-1.26-.59-1.973-1.65t-.734-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.334-.251q.574-.252.89-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.511 0 1.933.186 2.733.558s1.424.888 1.871 1.549q.67.99.68 2.277h-2.926q0-.546-.289-.98c-.289-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.29.96 0 .621.403 1.028.402.407 1.098.579l2.552.557q1.103.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.481.917.482 1.999 0 1.329-.702 2.385-.702 1.054-1.967 1.656-1.265.6-2.894.6t-2.889-.59`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},tit=e=>{let t=(0,X.c)(23),[n,r]=m9(`goland`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.24`,stopColor:`#00D886`}),a=(0,Y.jsx)(`stop`,{offset:`.51`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.27`,stopColor:`#007DFE`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#D249FC`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.13 4.13 0 0 0-1.44-3.066L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.124 4.124 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M19.748 31.243a7.3 7.3 0 0 1-2.743-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96s1.58-2.112 2.743-2.787q1.747-1.013 3.902-1.014 1.747 0 3.222.622a6.9 6.9 0 0 1 2.486 1.747 6.4 6.4 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.926-1.228q-.584-.52-1.367-.803c-.783-.283-1.083-.284-1.683-.284q-1.33 0-2.402.664a4.6 4.6 0 0 0-1.677 1.828q-.606 1.163-.606 2.62c0 1.457.202 1.846.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664 1.232 0 2.235-.461t1.591-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.357v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.626 2.525q-1.666.921-3.736.921c-2.07 0-2.737-.337-3.902-1.013zM36.271 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.002-3.961c0-2.187.333-2.778 1.002-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.918-1.014c1.443 0 2.738.338 3.907 1.013a7.3 7.3 0 0 1 2.749 2.787q.996 1.774.997 3.961c0 2.187-.333 2.778-.997 3.96s-1.581 2.113-2.75 2.788q-1.752 1.013-3.906 1.013c-1.437 0-2.75-.338-3.918-1.013m6.308-2.23q1.062-.67 1.662-1.854t.6-2.664-.6-2.664-1.662-1.854-2.39-.67-2.395.67a4.6 4.6 0 0 0-1.672 1.854q-.606 1.185-.606 2.664t.606 2.664 1.672 1.854 2.395.67q1.33 0 2.39-.67M33 44H17v3h16z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},nit=e=>{let t=(0,X.c)(23),[n,r]=m9(`intellij-idea`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.1`,stopColor:`#FC801D`}),a=(0,Y.jsx)(`stop`,{offset:`.59`,stopColor:`#FE2857`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`-.391`,x2:`24.392`,y1:`7.671`,y2:`61.126`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.21`,stopColor:`#FE2857`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#007EFF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.336`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.191a4.125 4.125 0 0 0-4.124 4.19l.176 11.044a4.13 4.13 0 0 0 1.44 3.066l38.159 32.707c.747.64 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.19-.514-2.321-1.41-3.105L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M14.988 6H4.125A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.185A4.125 4.125 0 0 0 9.573 64h15.398a4.125 4.125 0 0 0 4.125-4.127L29.09 41.37c0-.426-.066-.849-.195-1.254l-9.98-31.245A4.13 4.13 0 0 0 14.988 6z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M59.876 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.943a4.1 4.1 0 0 0-.325 1.638l.15 18.329A4.125 4.125 0 0 0 10.101 64h17.666c.806 0 1.593-.236 2.266-.678l32.11-21.109A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.876 0`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17 29.383h2.98v-9.775H17v-2.616h8.843v2.616h-2.98v9.775h2.98V32H17zM27.643 29.298h2.154a2.4 2.4 0 0 0 1.163-.279q.51-.279.788-.788.279-.51.279-1.163V16.992h2.926v10.28q0 1.35-.622 2.427a4.45 4.45 0 0 1-1.715 1.688q-1.092.612-2.454.611h-2.519z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},rit=e=>{let t=(0,X.c)(23),[n,r]=m9(`phpstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.16`,stopColor:`#D249FC`}),a=(0,Y.jsx)(`stop`,{offset:`.55`,stopColor:`#FF2D90`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`4.067`,x2:`62.664`,y1:`4.326`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#D249FC`,d:`M58 16.446V4.187A4.125 4.125 0 0 0 53.81.063L42.765.239A4.13 4.13 0 0 0 39.7 1.68L6.993 39.837c-.64.748-.993 1.7-.993 2.685v11.35a4.125 4.125 0 0 0 4.125 4.124h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.446`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.323v4.47h3.323q.74 0 1.291-.273M32.572 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.611.278 1.404.278c.53 0 .952-.083 1.335-.251q.572-.252.89-.702c.317-.45.315-.643.315-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.647-.59q-1.073-.234-1.866-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.665-1.023 1.854-1.597 1.19-.573 2.702-.573c1.512 0 1.933.186 2.733.558q1.2.558 1.87 1.549t.681 2.277h-2.926q0-.546-.29-.98a1.9 1.9 0 0 0-.82-.676 2.9 2.9 0 0 0-1.216-.24q-.687 0-1.206.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.551.557q1.104.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.482.917.482 1.999 0 1.329-.701 2.385-.703 1.054-1.967 1.656-1.264.6-2.895.6-1.63 0-2.888-.59`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},iit=e=>{let t=(0,X.c)(23),[n,r]=m9(`pycharm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.1`,stopColor:`#00D886`}),a=(0,Y.jsx)(`stop`,{offset:`.59`,stopColor:`#F0EB18`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#F0EB18`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#00C4F4`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.933`,x2:`1.337`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.13 4.13 0 0 0 3.066-1.44l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.324v4.47h3.324q.74 0 1.291-.273M33.713 31.243a7.3 7.3 0 0 1-2.744-2.787q-.996-1.774-.996-3.961c0-2.187.332-2.778.996-3.96a7.3 7.3 0 0 1 2.744-2.787q1.748-1.013 3.902-1.014 1.823 0 3.344.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.356 2.793h-3.066a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.43-.95 4.9 4.9 0 0 0-1.823-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664.986 0 1.822-.332a4.02 4.02 0 0 0 2.326-2.38h3.066a6.44 6.44 0 0 1-1.356 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.344.675-2.154 0-3.902-1.013z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},ait=e=>{let t=(0,X.c)(23),[n,r]=m9(`rider`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.21`,stopColor:`#007DFE`}),a=(0,Y.jsx)(`stop`,{offset:`.55`,stopColor:`#FFB700`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.23`,stopColor:`#FFB700`}),c=(0,Y.jsx)(`stop`,{offset:`.73`,stopColor:`#FF0A67`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#007DFE`,d:`M47.55 58h12.258a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.12 4.12 0 0 0-1.44-3.066L24.158 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h5.713q2.133 0 3.822.965a6.9 6.9 0 0 1 2.641 2.674q.954 1.71.954 3.864t-.953 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.822.964h-5.713zm8.028 11.876q1.008-.6 1.555-1.72t.547-2.653q0-1.534-.547-2.653-.547-1.12-1.555-1.721-1.008-.6-2.347-.6h-2.755v9.947h2.755q1.34 0 2.347-.6`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},oit=e=>{let t=(0,X.c)(23),[n,r]=m9(`rubymine`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.29`,stopColor:`#FF2358`}),a=(0,Y.jsx)(`stop`,{offset:`.75`,stopColor:`#7256FF`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.337`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.29`,stopColor:`#FF8100`}),c=(0,Y.jsx)(`stop`,{offset:`.56`,stopColor:`#FF2358`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`-.391`,x2:`24.393`,y1:`7.671`,y2:`61.125`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M59.875 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.942a4.1 4.1 0 0 0-.325 1.639l.15 18.328A4.125 4.125 0 0 0 10.101 64h17.666c.805 0 1.593-.235 2.266-.678l32.109-21.108A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.875 0`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M14.987 6H4.126A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.184A4.125 4.125 0 0 0 9.572 64H24.97a4.125 4.125 0 0 0 4.125-4.126l-.004-18.504c0-.426-.067-.85-.196-1.254L18.917 8.87A4.13 4.13 0 0 0 14.987 6z`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.19a4.125 4.125 0 0 0-4.124 4.19L0 21c.019 1.181.786 2.531 1.683 3.3l38.158 32.706c.748.641 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.189-.514-2.32-1.41-3.104L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h6.442q1.575 0 2.776.579t1.849 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.658 1.068-1.875 1.651-1.216.584-2.824.584h-3.43v5.67h-2.926zm7.54 6.63q.552-.274.852-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.631 1.763h3.194L29.05 32h-3.355zM31.633 16.992h4.073l3.087 9.85.257 1.287.225-1.286 2.98-9.85h4.138v15.005h-2.894V21.29l.043-.782-3.494 11.49h-2.123l-3.451-11.415.043.707v10.708h-2.883V16.992z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},sit=e=>{let t=(0,X.c)(23),[n,r]=m9(`rustrover`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.08`,stopColor:`#00D886`}),a=(0,Y.jsx)(`stop`,{offset:`.46`,stopColor:`#FFAB00`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.125`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.19`,stopColor:`#FFAB00`}),c=(0,Y.jsx)(`stop`,{offset:`.83`,stopColor:`#FF004C`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h6.442q1.575 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.659 1.068-1.875 1.651-1.217.584-2.824.584h-3.43v5.67h-2.927zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L43.651 32h-3.355z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},cit=e=>{let t=(0,X.c)(23),[n,r]=m9(`webstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.22`,stopColor:`#F0EB18`}),a=(0,Y.jsx)(`stop`,{offset:`.59`,stopColor:`#00C4F4`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.19`,stopColor:`#00C4F4`}),c=(0,Y.jsx)(`stop`,{offset:`.83`,stopColor:`#007DFE`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.337`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#F0EB18`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM19.051 16.992l2.423 10.955 2.583-10.955h2.958l2.701 10.955 2.348-10.955h2.97l-3.645 15.006h-3.334l-2.53-10.9-2.561 10.9H19.64l-3.623-15.006zM38.662 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.335-.251q.573-.252.889-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.008 0 1.934.186 2.734.558q1.2.558 1.87 1.549t.68 2.277h-2.925q0-.546-.29-.98c-.29-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.55.557q1.105.226 1.968.852a4.45 4.45 0 0 1 1.345 1.544 4.2 4.2 0 0 1 .482 1.999q0 1.329-.702 2.385-.702 1.054-1.966 1.656-1.266.6-2.894.6-1.63 0-2.889-.59`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},lit=(e,t)=>{let n=[{label:`Cursor`,Icon:UE,value:`cursor`,kind:`brand`},{label:`Trae`,Icon:Che,value:`trae`,kind:`brand`},{label:`Kiro`,Icon:whe,value:`kiro`,kind:`brand`},{label:`VS Code`,Icon:The,value:`vscode`,kind:`brand`},{label:`VS Code Insiders`,Icon:Ehe,value:`vscode-insiders`,kind:`brand`},{label:`VSCodium`,Icon:Dhe,value:`vscodium`,kind:`brand`},{label:`Zed`,Icon:Ohe,value:`zed`,kind:`brand`},{label:`Antigravity`,Icon:jhe,value:`antigravity`,kind:`brand`},{label:`IntelliJ IDEA`,Icon:nit,value:`idea`,kind:`brand`},{label:`Aqua`,Icon:Zrt,value:`aqua`,kind:`brand`},{label:`CLion`,Icon:Qrt,value:`clion`,kind:`brand`},{label:`DataGrip`,Icon:$rt,value:`datagrip`,kind:`brand`},{label:`DataSpell`,Icon:eit,value:`dataspell`,kind:`brand`},{label:`GoLand`,Icon:tit,value:`goland`,kind:`brand`},{label:`PhpStorm`,Icon:rit,value:`phpstorm`,kind:`brand`},{label:`PyCharm`,Icon:iit,value:`pycharm`,kind:`brand`},{label:`Rider`,Icon:ait,value:`rider`,kind:`brand`},{label:`RubyMine`,Icon:oit,value:`rubymine`,kind:`brand`},{label:`RustRover`,Icon:sit,value:`rustrover`,kind:`brand`},{label:`WebStorm`,Icon:cit,value:`webstorm`,kind:`brand`},{label:mt(e)?`Finder`:Yt(e)?`Explorer`:`Files`,Icon:vte,value:`file-manager`,kind:`generic`}],r=new Set(t);return n.filter(e=>r.has(e.value))};function uit(e){return q(e===`brand`?`text-foreground opacity-100`:`text-muted-foreground`)}var dit=(0,J.memo)(function(e){let t=(0,X.c)(59),{environmentId:n,keybindings:r,availableEditors:i,openInCwd:a,compact:o,enableShortcut:s}=e,c=o===void 0?!1:o,l=s===void 0?!0:s,u=pe(My.openInEditor,`open in editor`),[d,f]=E_e(i),p;t[0]===i?p=t[1]:(p=lit(navigator.platform,i),t[0]=i,t[1]=p);let m=p,h=m.find(e=>{let{value:t}=e;return t===d})??null,g;t[2]!==n||t[3]!==a||t[4]!==u||t[5]!==d||t[6]!==f?(g=e=>{if(!a)return;let t=e??d;if(!t)return;let r=u({environmentId:n,input:{cwd:a,editor:t}});return f(t),r},t[2]=n,t[3]=a,t[4]=u,t[5]=d,t[6]=f,t[7]=g):g=t[7];let _=g,v;t[8]===r?v=t[9]:(v=jh(r,`editor.openFavorite`),t[8]=r,t[9]=v);let y=v,b,x;t[10]!==l||t[11]!==n||t[12]!==r||t[13]!==a||t[14]!==u||t[15]!==d?(b=()=>{if(!l)return;let e=e=>{lne(e,r)&&a&&d&&(e.preventDefault(),u({environmentId:n,input:{cwd:a,editor:d}}))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[l,n,r,a,u,d],t[10]=l,t[11]=n,t[12]=r,t[13]=a,t[14]=u,t[15]=d,t[16]=b,t[17]=x):(b=t[16],x=t[17]),(0,J.useEffect)(b,x);let S=FP,C=hc,w=c?`Open file in preferred editor`:void 0,T=!d||!a,E;t[18]!==_||t[19]!==d?(E=()=>_(d),t[18]=_,t[19]=d,t[20]=E):E=t[20];let D=h?.Icon&&(0,Y.jsx)(h.Icon,{"aria-hidden":`true`,className:q(`size-3.5`,uit(h.kind))}),O=c?`sr-only`:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,k;t[21]===O?k=t[22]:(k=(0,Y.jsx)(`span`,{className:O,children:`Open`}),t[21]=O,t[22]=k);let A;t[23]!==C||t[24]!==w||t[25]!==T||t[26]!==E||t[27]!==D||t[28]!==k?(A=(0,Y.jsxs)(C,{"aria-label":w,size:`xs`,variant:`outline`,disabled:T,onClick:E,children:[D,k]}),t[23]=C,t[24]=w,t[25]=T,t[26]=E,t[27]=D,t[28]=k,t[29]=A):A=t[29];let j;t[30]===c?j=t[31]:(j=(0,Y.jsx)(IP,{...c?{}:{className:`hidden @3xl/header-actions:block`}}),t[30]=c,t[31]=j);let M=c?`Choose editor`:`Copy options`,N;t[32]===M?N=t[33]:(N=(0,Y.jsx)(hc,{"aria-label":M,size:`icon-xs`,variant:`outline`}),t[32]=M,t[33]=N);let P;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Y.jsx)(ca,{"aria-hidden":`true`,className:`size-4`}),t[34]=P):P=t[34];let F;t[35]===N?F=t[36]:(F=(0,Y.jsx)(Oo,{render:N,children:P}),t[35]=N,t[36]=F);let I;t[37]===m.length?I=t[38]:(I=m.length===0&&(0,Y.jsx)(ul,{disabled:!0,children:`No installed editors found`}),t[37]=m.length,t[38]=I);let L;if(t[39]!==y||t[40]!==_||t[41]!==m||t[42]!==d){let e;t[44]!==y||t[45]!==_||t[46]!==d?(e=e=>{let{label:t,Icon:n,value:r,kind:i}=e;return(0,Y.jsxs)(ul,{onClick:()=>_(r),children:[(0,Y.jsx)(n,{"aria-hidden":`true`,className:uit(i)}),t,r===d&&y&&(0,Y.jsx)(Ka,{children:y})]},r)},t[44]=y,t[45]=_,t[46]=d,t[47]=e):e=t[47],L=m.map(e),t[39]=y,t[40]=_,t[41]=m,t[42]=d,t[43]=L}else L=t[43];let R;t[48]!==I||t[49]!==L?(R=(0,Y.jsxs)(ds,{align:`end`,children:[I,L]}),t[48]=I,t[49]=L,t[50]=R):R=t[50];let z;t[51]!==F||t[52]!==R?(z=(0,Y.jsxs)(go,{children:[F,R]}),t[51]=F,t[52]=R,t[53]=z):z=t[53];let B;return t[54]!==S||t[55]!==A||t[56]!==j||t[57]!==z?(B=(0,Y.jsxs)(S,{"aria-label":`Open in editor`,children:[A,j,z]}),t[54]=S,t[55]=A,t[56]=j,t[57]=z,t[58]=B):B=t[58],B}),fit=Tu(Aa),pit=new or(k(e=>{let t=e.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g,(e,t)=>t?e:``);return t=t.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g,(e,t)=>t?e:``),t=t.replace(/,(\s*[}\]])/g,`$1`),fit(t).pipe(ts(Or),Uo(e=>e.issue))}),Ze());ei().compose(Ze({space:2}));var mit=(e=>tc.pipe(B(e,pit)))(Pr),hit=``,git=qa(ac(!1)).pipe(ao(`project-file-query:empty`));function h9(e,t,n){return Fy.optimisticFile({environmentId:e,cwd:t,relativePath:n})}function _it(e,t){return Fy.listEntries({environmentId:e,input:{cwd:t}})}function vit(e,t,n){return Fy.readFile({environmentId:e,input:{cwd:t,relativePath:n??hit}})}function yit(e,t,n,r){Il.set(h9(e,t,n),{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function bit(e,t,n){return Il.get(h9(e,t,n))?.data??null}function xit(e,t,n,r){let i=h9(e,t,n),a=Il.get(i);if(a?.data.contents!==r)return!1;let o=vit(e,t,n),s={...a,confirmedAgainst:Il.get(o)};return Il.set(i,s),Il.refresh(o),Pt(Il,o,{reportDefect:!1,reportFailure:!1}).then(e=>{e._tag===`Success`&&Il.get(i)===s&&Il.set(i,null)}),!0}function Sit(e){if(e._tag!==`Failure`)return null;let t=oi(e.cause);return t instanceof Error?t.message:`Workspace query failed.`}function Cit(e,t){let n=(0,X.c)(14),r;n[0]!==t||n[1]!==e?(r=_it(e,t),n[0]=t,n[1]=e,n[2]=r):r=n[2];let i=r,a=Kt(i),o=je(i),s;n[3]===o?s=n[4]:(s=()=>o(),n[3]=o,n[4]=s);let c=s,l;n[5]===a?l=n[6]:(l=Fu(ua(a)),n[5]=a,n[6]=l);let u;n[7]===a?u=n[8]:(u=Sit(a),n[7]=a,n[8]=u);let d;return n[9]!==c||n[10]!==a.waiting||n[11]!==l||n[12]!==u?(d={data:l,error:u,isPending:a.waiting,refresh:c},n[9]=c,n[10]=a.waiting,n[11]=l,n[12]=u,n[13]=d):d=n[13],d}function wit(e,t,n,r){let i=(0,X.c)(20),a=r===void 0?!0:r,o;i[0]!==t||i[1]!==a||i[2]!==e||i[3]!==n?(o=a?vit(e,t,n):git,i[0]=t,i[1]=a,i[2]=e,i[3]=n,i[4]=o):o=i[4];let s=o,c=Kt(s),l=je(s),u;i[5]===l?u=i[6]:(u=()=>l(),i[5]=l,i[6]=u);let d=u,f;i[7]===c?f=i[8]:(f=Fu(ua(c)),i[7]=c,i[8]=f);let p=f,m=n??hit,h;i[9]!==t||i[10]!==e||i[11]!==m?(h=h9(e,t,m),i[9]=t,i[10]=e,i[11]=m,i[12]=h):h=i[12];let g=Kt(h),_=(n===null?null:g)?.data??p,v;i[13]===c?v=i[14]:(v=Sit(c),i[13]=c,i[14]=v);let y;return i[15]!==d||i[16]!==c.waiting||i[17]!==_||i[18]!==v?(y={data:_,error:v,isPending:c.waiting,refresh:d},i[15]=d,i[16]=c.waiting,i[17]=_,i[18]=v,i[19]=y):y=i[19],y}var Tit=vr(mit),g9=[];function Eit(e,t){let n=(0,X.c)(3),r=wit(e,t??``,Se,t!==null),i=r.data&&!r.data.truncated?r.data.contents:null,a;bb0:{if(i===null){a=g9;break bb0}let e,t;if(n[0]===i?(e=n[1],t=n[2]):(e=Tit(i),t=Ai(e),n[0]=i,n[1]=e,n[2]=t),t){a=g9;break bb0}a=e.value.scripts??g9}return a}var Dit=e=>`${e} actions`;function Oit(e){return!!e.activeProjectName&&e.primaryEnvironmentId!==null&&e.activeThreadEnvironmentId===e.primaryEnvironmentId}var kit=(0,J.memo)(function(e){let t=(0,X.c)(101),{activeThreadEnvironmentId:n,activeThreadTitle:r,activeProjectName:i,activeProjectCwd:a,openInCwd:o,activeProjectScripts:s,preferredScriptId:c,keybindings:l,availableEditors:u,rightPanelOpen:d,pinningSupported:f,pinned:p,settled:m,snoozed:h,settlementSupported:g,snoozeSupported:_,titleRegenerationSupported:v,titleRegenerationPending:y,onTogglePin:b,onThreadAction:x,onNewThreadInProject:S,onRunProjectScript:C,onAddProjectScript:w,onUpdateProjectScript:T,onDeleteProjectScript:E}=e,D=hs(),O=Eit(n,s?a:null),k;t[0]!==i||t[1]!==n||t[2]!==D?(k=Oit({activeProjectName:i,activeThreadEnvironmentId:n,primaryEnvironmentId:D}),t[0]=i,t[1]=n,t[2]=D,t[3]=k):k=t[3];let A=k,j,M,N,P,F,I,L,R,z,B,V,H,U;if(t[4]!==a||t[5]!==i||t[6]!==n||t[7]!==r||t[8]!==S||t[9]!==x||t[10]!==b||t[11]!==p||t[12]!==f||t[13]!==m||t[14]!==g||t[15]!==_||t[16]!==h||t[17]!==y||t[18]!==v){N=gD({pinningSupported:f,pinned:p,settled:m,snoozed:h,settlementSupported:g,snoozeSupported:_,titleRegenerationSupported:v,titleRegenerationPending:y}),F=`@container/header-actions flex min-w-0 flex-1 items-center gap-2 sm:gap-3`,U=`flex min-w-0 flex-1 items-center gap-2 overflow-hidden sm:gap-3`,t[32]!==a||t[33]!==i||t[34]!==n||t[35]!==S?(P=i?(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-2`,children:[(0,Y.jsxs)(bu,{children:[(0,Y.jsxs)(cu,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":`New thread in ${i}`,onClick:S,className:`inline-flex min-w-0 cursor-pointer items-center gap-1.5 rounded-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring`}),children:[(0,Y.jsx)(A_,{environmentId:n,cwd:a??``,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`max-w-40 truncate text-sm font-medium`,children:i})]}),(0,Y.jsxs)(pr,{side:`top`,children:[`New thread in `,i]})]}),(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground/40`,children:`/`})]}):null,t[32]=a,t[33]=i,t[34]=n,t[35]=S,t[36]=P):P=t[36],M=go;let e;t[37]===r?e=t[38]:(e=Dit(r),t[37]=r,t[38]=e);let o;t[39]===e?o=t[40]:(o=(0,Y.jsx)(Oo,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":e,className:`min-w-0 flex-1 cursor-pointer truncate rounded-sm text-left text-sm font-medium text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring`})}),t[39]=e,t[40]=o);let s;t[41]!==r||t[42]!==o?(s=(0,Y.jsx)(cu,{render:o,children:r}),t[41]=r,t[42]=o,t[43]=s):s=t[43];let c;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(pr,{side:`top`,children:`Thread actions`}),t[44]=c):c=t[44],t[45]===s?H=t[46]:(H=(0,Y.jsxs)(bu,{children:[s,c]}),t[45]=s,t[46]=H),j=ds,I=`start`,L=N.rename?(0,Y.jsxs)(ul,{onClick:()=>x(`rename`),children:[(0,Y.jsx)(Rte,{}),`Rename thread`]}):null,R=N.regenerateTitle?(0,Y.jsx)(ul,{disabled:N.regenerateTitle.disabled,onClick:()=>x(`regenerate-title`),children:N.regenerateTitle.label}):null,z=N.copy?(0,Y.jsxs)(ul,{onClick:()=>x(`copy`),children:[(0,Y.jsx)(Mm,{}),`Copy thread link`]}):null,B=N.pinAction?(0,Y.jsxs)(ul,{onClick:b,children:[p?(0,Y.jsx)(eh,{}):(0,Y.jsx)(th,{}),p?`Unpin thread`:`Pin thread`]}):null;let l;t[47]===x?l=t[48]:(l=e=>(0,Y.jsx)(ul,{onClick:()=>x(e.id),children:e.label},e.id),t[47]=x,t[48]=l),V=N.lifecycleActions.map(l),t[4]=a,t[5]=i,t[6]=n,t[7]=r,t[8]=S,t[9]=x,t[10]=b,t[11]=p,t[12]=f,t[13]=m,t[14]=g,t[15]=_,t[16]=h,t[17]=y,t[18]=v,t[19]=j,t[20]=M,t[21]=N,t[22]=P,t[23]=F,t[24]=I,t[25]=L,t[26]=R,t[27]=z,t[28]=B,t[29]=V,t[30]=H,t[31]=U}else j=t[19],M=t[20],N=t[21],P=t[22],F=t[23],I=t[24],L=t[25],R=t[26],z=t[27],B=t[28],V=t[29],H=t[30],U=t[31];let W;t[49]!==N.destructiveAction.id||t[50]!==x?(W=()=>x(N.destructiveAction.id),t[49]=N.destructiveAction.id,t[50]=x,t[51]=W):W=t[51];let ee=N.destructiveAction.id===`delete`?`destructive`:`default`,G;t[52]===N.destructiveAction.id?G=t[53]:(G=N.destructiveAction.id===`delete`?(0,Y.jsx)(_h,{}):(0,Y.jsx)(vm,{}),t[52]=N.destructiveAction.id,t[53]=G);let te;t[54]!==N.destructiveAction.label||t[55]!==W||t[56]!==ee||t[57]!==G?(te=(0,Y.jsxs)(ul,{onClick:W,variant:ee,children:[G,N.destructiveAction.label]}),t[54]=N.destructiveAction.label,t[55]=W,t[56]=ee,t[57]=G,t[58]=te):te=t[58];let ne;t[59]!==j||t[60]!==te||t[61]!==I||t[62]!==L||t[63]!==R||t[64]!==z||t[65]!==B||t[66]!==V?(ne=(0,Y.jsxs)(j,{align:I,children:[L,R,z,B,V,te]}),t[59]=j,t[60]=te,t[61]=I,t[62]=L,t[63]=R,t[64]=z,t[65]=B,t[66]=V,t[67]=ne):ne=t[67];let re;t[68]!==M||t[69]!==ne||t[70]!==H?(re=(0,Y.jsxs)(M,{children:[H,ne]}),t[68]=M,t[69]=ne,t[70]=H,t[71]=re):re=t[71];let ie;t[72]!==P||t[73]!==re||t[74]!==U?(ie=(0,Y.jsxs)(`div`,{className:U,children:[P,re]}),t[72]=P,t[73]=re,t[74]=U,t[75]=ie):ie=t[75];let ae=d?`pr-0`:`pr-16`,oe;t[76]===ae?oe=t[77]:(oe=q(`flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3`,ae),t[76]=ae,t[77]=oe);let se;t[78]!==s||t[79]!==O||t[80]!==l||t[81]!==w||t[82]!==E||t[83]!==C||t[84]!==T||t[85]!==c?(se=s&&(0,Y.jsx)(Xrt,{scripts:s,fileScripts:O,keybindings:l,preferredScriptId:c,onRunScript:C,onAddScript:w,onUpdateScript:T,onDeleteScript:E}),t[78]=s,t[79]=O,t[80]=l,t[81]=w,t[82]=E,t[83]=C,t[84]=T,t[85]=c,t[86]=se):se=t[86];let ce;t[87]!==n||t[88]!==u||t[89]!==l||t[90]!==o||t[91]!==A?(ce=A&&(0,Y.jsx)(dit,{environmentId:n,keybindings:l,availableEditors:u,openInCwd:o}),t[87]=n,t[88]=u,t[89]=l,t[90]=o,t[91]=A,t[92]=ce):ce=t[92];let le;t[93]!==oe||t[94]!==se||t[95]!==ce?(le=(0,Y.jsxs)(`div`,{"data-chat-header-actions":!0,className:oe,children:[se,ce]}),t[93]=oe,t[94]=se,t[95]=ce,t[96]=le):le=t[96];let ue;return t[97]!==F||t[98]!==ie||t[99]!==le?(ue=(0,Y.jsxs)(`div`,{className:F,children:[ie,le]}),t[97]=F,t[98]=ie,t[99]=le,t[100]=ue):ue=t[100],ue}),Ait=(0,J.memo)(function(e){let t=(0,X.c)(23),{terminalAvailable:n,terminalOpen:r,terminalShortcutLabel:i,rightPanelAvailable:a,rightPanelOpen:o,rightPanelShortcutLabel:s,onToggleTerminal:c,onToggleRightPanel:l}=e,u=!n,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(Nte,{className:`size-3.5`}),t[0]=d):d=t[0];let f;t[1]!==c||t[2]!==u||t[3]!==r?(f=(0,Y.jsx)(cu,{render:(0,Y.jsx)(AN,{className:`shrink-0 [-webkit-app-region:no-drag]`,pressed:r,onPressedChange:c,"aria-label":`Toggle terminal drawer`,variant:`ghost`,size:`sm`,disabled:u,children:d})}),t[1]=c,t[2]=u,t[3]=r,t[4]=f):f=t[4];let p=n?`Toggle terminal drawer${i?` (${i})`:``}`:`Terminal drawer is unavailable`,m;t[5]===p?m=t[6]:(m=(0,Y.jsx)(pr,{side:`bottom`,children:p}),t[5]=p,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,Y.jsxs)(bu,{children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g=!a,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Y.jsx)(Ite,{className:`size-3.5`}),t[10]=_):_=t[10];let v;t[11]!==l||t[12]!==o||t[13]!==g?(v=(0,Y.jsx)(cu,{render:(0,Y.jsx)(AN,{className:`shrink-0 [-webkit-app-region:no-drag]`,pressed:o,onPressedChange:l,"aria-label":`Toggle right panel`,variant:`ghost`,size:`sm`,disabled:g,children:_})}),t[11]=l,t[12]=o,t[13]=g,t[14]=v):v=t[14];let y=a?`Toggle right panel${s?` (${s})`:``}`:`Right panel is unavailable`,b;t[15]===y?b=t[16]:(b=(0,Y.jsx)(pr,{side:`bottom`,children:y}),t[15]=y,t[16]=b);let x;t[17]!==b||t[18]!==v?(x=(0,Y.jsxs)(bu,{children:[v,b]}),t[17]=b,t[18]=v,t[19]=x):x=t[19];let S;return t[20]!==x||t[21]!==h?(S=(0,Y.jsxs)(`div`,{className:`flex h-full shrink-0 items-center gap-1 [-webkit-app-region:no-drag]`,"data-panel-layout-controls":!0,children:[h,x]}),t[20]=x,t[21]=h,t[22]=S):S=t[22],S}),jit=(0,J.memo)(function(e){let t=(0,X.c)(12),{maximized:n,onToggle:r}=e,i=n?`Restore panel size`:`Maximize panel`,a;t[0]===n?a=t[1]:(a=n?(0,Y.jsx)(jte,{className:`size-3.5`}):(0,Y.jsx)(kte,{className:`size-3.5`}),t[0]=n,t[1]=a);let o;t[2]!==i||t[3]!==n||t[4]!==r||t[5]!==a?(o=(0,Y.jsx)(cu,{render:(0,Y.jsx)(AN,{className:`shrink-0 [-webkit-app-region:no-drag]`,pressed:n,onPressedChange:r,"aria-label":i,variant:`ghost`,size:`sm`,children:a})}),t[2]=i,t[3]=n,t[4]=r,t[5]=a,t[6]=o):o=t[6];let s;t[7]===i?s=t[8]:(s=(0,Y.jsx)(pr,{side:`bottom`,children:i}),t[7]=i,t[8]=s);let c;return t[9]!==o||t[10]!==s?(c=(0,Y.jsxs)(bu,{children:[o,s]}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c});function Mit(){let e=(0,X.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=q(`border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5`,`workspace-topbar`,vN),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`header`,{"data-tauri-drag-region":`deep`,className:t,children:(0,Y.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,Y.jsx)(`span`,{className:`text-sm font-medium text-foreground md:text-muted-foreground/60`,children:`No active thread`})})}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(_C,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground`,children:(0,Y.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background`,children:[n,(0,Y.jsx)(CN,{className:`flex-1`,children:(0,Y.jsx)(`div`,{className:`w-full max-w-lg px-8 py-12`,children:(0,Y.jsxs)(wN,{className:`max-w-none`,children:[(0,Y.jsx)(DN,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,Y.jsx)(ON,{className:`mt-2 text-sm text-muted-foreground/78`,children:`Select an existing thread or create a new one to get started.`})]})})})]})}),e[2]=r):r=e[2],r}function Nit(e){return!e||e.catalogueState===`checking`||e.status===`ready`||e.status===`disabled`?null:[e.instanceId,e.status,e.auth.status,e.message??``].join(`\0`)}function Pit(e,t){let n=Nit(e);return n!==null&&n!==t}var Fit=(0,J.memo)(function(e){let t=(0,X.c)(21),{onDismiss:n,status:r}=e;if(!r||r.catalogueState===`checking`||r.status===`ready`||r.status===`disabled`)return null;let i;t[0]!==r.displayName||t[1]!==r.driver?(i=r.displayName?.trim()||Ma(r.driver),t[0]=r.displayName,t[1]=r.driver,t[2]=i):i=t[2];let a=i,o=r.status===`error`&&r.auth.status===`unauthenticated`,s=o?`${a} is unauthenticated`:`${a} provider status`,c=o?`Sign in via the CLI to authenticate again.`:r.message??(r.status===`error`?`${a} provider is unavailable.`:`${a} provider has limited availability.`),l=r.status===`warning`?`border-warning/32 bg-warning/4 [&_svg]:text-warning`:`border-destructive/32 bg-destructive/4 text-destructive-foreground [&_svg]:text-destructive`,u;t[3]===l?u=t[4]:(u=q(`relative inline-flex items-center gap-3 rounded-xl border py-3 ps-3.5 pe-10 text-card-foreground text-sm`,l),t[3]=l,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(Gm,{className:`size-4 shrink-0`,"aria-hidden":!0}),t[5]=d):d=t[5];let f;t[6]===s?f=t[7]:(f=(0,Y.jsx)(`div`,{className:`font-medium`,children:s}),t[6]=s,t[7]=f);let p;t[8]===c?p=t[9]:(p=(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`div`,{className:`line-clamp-3 text-muted-foreground`,children:c})}),(0,Y.jsx)(pr,{side:`top`,className:`max-w-96 whitespace-pre-wrap`,children:c})]}),t[8]=c,t[9]=p);let m;t[10]!==f||t[11]!==p?(m=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12];let h=`Dismiss ${a} provider ${r.status}`,g;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(Zo,{"aria-hidden":!0,className:`size-3.5`}),t[13]=g):g=t[13];let _;t[14]!==n||t[15]!==h?(_=(0,Y.jsx)(`button`,{type:`button`,"aria-label":h,className:`absolute top-2 right-2 inline-flex size-6 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-foreground/8 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,onClick:n,children:g}),t[14]=n,t[15]=h,t[16]=_):_=t[16];let v;return t[17]!==_||t[18]!==u||t[19]!==m?(v=(0,Y.jsx)(`div`,{className:`pointer-events-auto mx-auto w-fit max-w-[calc(100%-2rem)] pt-3`,children:(0,Y.jsxs)(`div`,{className:u,role:`alert`,children:[d,m,_]})}),t[17]=_,t[18]=u,t[19]=m,t[20]=v):v=t[20],v}),Iit=(0,J.memo)(function(e){let t=(0,X.c)(9),{error:n,onDismiss:r}=e;if(!n)return null;let i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(km,{}),t[0]=i):i=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`div`,{className:`line-clamp-3`}),t[1]=a):a=t[1];let o;t[2]===n?o=t[3]:(o=(0,Y.jsx)(LC,{children:(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:a,children:n}),(0,Y.jsx)(pr,{side:`top`,className:`max-w-96 whitespace-pre-wrap`,children:n})]})}),t[2]=n,t[3]=o);let s;t[4]===r?s=t[5]:(s=r&&(0,Y.jsx)(RC,{children:(0,Y.jsx)(hc,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss error`,onClick:r,children:(0,Y.jsx)(Zo,{className:`text-destructive`})})}),t[4]=r,t[5]=s);let c;return t[6]!==o||t[7]!==s?(c=(0,Y.jsx)(`div`,{className:`mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3`,children:(0,Y.jsxs)(FC,{variant:`error`,children:[i,o,s]})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}),_9=220,Lit={opacity:0,transform:`translate3d(0, 4rem, 0)`},Rit={opacity:0,transform:`translate3d(0, 7rem, 0)`},zit={opacity:1,transform:`none`},Bit={transition:`transform ${_9}ms ease-in, opacity ${_9}ms ease-in`};function Vit(e){let t=(0,X.c)(45),{className:n,items:r}=e,[i,a]=(0,J.useState)(null),o=(0,J.useRef)(null),s;t[0]!==r||t[1]!==i?(s=i!==null&&r.some(e=>e.id===i)?i:null,t[0]=r,t[1]=i,t[2]=s):s=t[2];let c=s,l,u;if(t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>()=>{o.current&&clearTimeout(o.current)},u=[],t[3]=l,t[4]=u):(l=t[3],u=t[4]),(0,J.useEffect)(l,u),r.length===0)return null;let d=r[0];if(!d)return null;let f,p,m,h,g;if(t[5]!==n||t[6]!==c||t[7]!==d||t[8]!==r){let e=r.slice(1),i=e.length>0,s=i&&c!==d.id,l;t[14]===c?l=t[15]:(l=e=>{!e.onDismiss||c||(a(e.id),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,e.onDismiss?.()},_9))},t[14]=c,t[15]=l);let u=l;t[16]===n?g=t[17]:(g=q(`group/banner-stack mx-auto mb-2 max-w-3xl`,n),t[16]=n,t[17]=g);let _=i?`group-hover/banner-stack:z-50 group-focus-within/banner-stack:z-50`:null;t[18]===_?f=t[19]:(f=q(`relative flex flex-col-reverse`,_),t[18]=_,t[19]=f),t[20]===s?p=t[21]:(p=s?(0,Y.jsx)(`div`,{className:q(`pointer-events-none absolute inset-x-0 -top-3 z-0 mx-auto h-3 rounded-t-xl`,`border border-b-0 border-warning/24 bg-background/96 shadow-[0_6px_18px_rgba(0,0,0,0.06)]`,`transition-opacity duration-150 ease-out`,`group-hover/banner-stack:opacity-0 group-focus-within/banner-stack:opacity-0`),style:{width:`96%`},"aria-hidden":`true`}):null,t[20]=s,t[21]=p);let v=c===d.id?`pointer-events-none`:null,y;t[22]===v?y=t[23]:(y=q(`relative z-10`,v),t[22]=v,t[23]=y);let b=c===d.id?Lit:zit,x;t[24]===b?x=t[25]:(x={...Bit,...b},t[24]=b,t[25]=x);let S=c===d.id,C;t[26]!==d||t[27]!==u?(C=()=>u(d),t[26]=d,t[27]=u,t[28]=C):C=t[28];let w;t[29]!==d||t[30]!==S||t[31]!==C?(w=(0,Y.jsx)(Hit,{item:d,exiting:S,onDismissRequest:C}),t[29]=d,t[30]=S,t[31]=C,t[32]=w):w=t[32],t[33]!==y||t[34]!==x||t[35]!==w?(m=(0,Y.jsx)(`div`,{className:y,style:x,children:w}),t[33]=y,t[34]=x,t[35]=w,t[36]=m):m=t[36],h=i?(0,Y.jsx)(`div`,{"data-composer-banner-stack-expanded-items":`true`,className:q(`relative z-20 grid grid-rows-[0fr] transition-[grid-template-rows] duration-150 ease-out`,`group-hover/banner-stack:grid-rows-[1fr] group-focus-within/banner-stack:grid-rows-[1fr]`),children:(0,Y.jsx)(`div`,{className:`min-h-0 overflow-hidden`,children:(0,Y.jsx)(`div`,{className:q(`invisible pointer-events-none space-y-2 pb-2 opacity-0`,`translate-y-1 transform-gpu transition-[opacity,transform] duration-150 ease-out will-change-[opacity,transform]`,`group-hover/banner-stack:visible group-hover/banner-stack:pointer-events-auto group-hover/banner-stack:translate-y-0 group-hover/banner-stack:opacity-100`,`group-focus-within/banner-stack:visible group-focus-within/banner-stack:pointer-events-auto group-focus-within/banner-stack:translate-y-0 group-focus-within/banner-stack:opacity-100`),children:e.map(e=>(0,Y.jsx)(`div`,{className:q(c===e.id?`pointer-events-none`:null),style:{...Bit,...c===e.id?Rit:zit},children:(0,Y.jsx)(Hit,{item:e,exiting:c===e.id,onDismissRequest:()=>u(e)})},e.id))})})}):null,t[5]=n,t[6]=c,t[7]=d,t[8]=r,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g}else f=t[9],p=t[10],m=t[11],h=t[12],g=t[13];let _;t[37]!==f||t[38]!==p||t[39]!==m||t[40]!==h?(_=(0,Y.jsxs)(`div`,{className:f,children:[p,m,h]}),t[37]=f,t[38]=p,t[39]=m,t[40]=h,t[41]=_):_=t[41];let v;return t[42]!==g||t[43]!==_?(v=(0,Y.jsx)(`div`,{className:g,children:_}),t[42]=g,t[43]=_,t[44]=v):v=t[44],v}function Hit(e){let t=(0,X.c)(21),{item:n,exiting:r,onDismissRequest:i}=e,a=n.onDismiss&&!n.actions,o=n.variant,s;t[0]===n.className?s=t[1]:(s=q(`alert-glass`,n.className),t[0]=n.className,t[1]=s);let c;t[2]===n.title?c=t[3]:(c=(0,Y.jsx)(IC,{children:n.title}),t[2]=n.title,t[3]=c);let l;t[4]===n.description?l=t[5]:(l=n.description?(0,Y.jsx)(LC,{children:n.description}):null,t[4]=n.description,t[5]=l);let u;t[6]!==a||t[7]!==r||t[8]!==n.actionClassName||t[9]!==n.actions||t[10]!==n.dismissLabel||t[11]!==n.onDismiss||t[12]!==i?(u=n.actions||n.onDismiss?(0,Y.jsxs)(RC,{className:q(n.actionClassName,a?`max-sm:col-start-3 max-sm:row-start-1 max-sm:mt-0 max-sm:self-start`:void 0),children:[n.actions,n.onDismiss?(0,Y.jsx)(hc,{size:`icon-xs`,variant:`ghost`,"aria-label":n.dismissLabel??`Dismiss warning`,disabled:r,onClick:i,children:(0,Y.jsx)(Zo,{className:`size-3.5`})}):null]}):null,t[6]=a,t[7]=r,t[8]=n.actionClassName,t[9]=n.actions,t[10]=n.dismissLabel,t[11]=n.onDismiss,t[12]=i,t[13]=u):u=t[13];let d;return t[14]!==n.icon||t[15]!==n.variant||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(d=(0,Y.jsxs)(FC,{variant:o,className:s,"data-variant":n.variant,children:[n.icon,c,l,u]}),t[14]=n.icon,t[15]=n.variant,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=d):d=t[20],d}var Uit=`t3-draft-hero-transition`,Wit=`cubic-bezier(0.4, 0, 0.2, 1)`,Git=`t3-mobile-composer`,Kit=`t3-mobile-draft-headline`,v9=null;async function qit(){let e=v9;if(typeof document>`u`||typeof document.getAnimations!=`function`){await e;return}let t=document.getAnimations().filter(e=>e.id===Uit);await Promise.all([e,...t.map(async e=>{try{await e.finished}catch{}})])}async function Jit(e){if(typeof document>`u`||typeof window>`u`){await e();return}let t=document,n=window.matchMedia?.(`(max-width: 639px)`).matches??!1,r=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1;if(!n||r||!t.startViewTransition){await e();return}let i=!1,a=async()=>{i||(i=!0,await e())},o=null;t.documentElement.dataset.mobileComposerRouteTransition=`true`;try{let e=t.startViewTransition(a);o=e.finished.catch(()=>void 0),v9=o;try{await e.finished}catch{await a()}}catch{await a()}finally{v9===o&&(v9=null),delete t.documentElement.dataset.mobileComposerRouteTransition}}function Yit(e){let t=(0,X.c)(8),n;t[0]===e?n=t[1]:(n=t=>{t||e.onClose()},t[0]=e,t[1]=n);let r;t[2]===e.children?r=t[3]:(r=(0,Y.jsx)(iC,{side:`right`,showCloseButton:!1,keepMounted:!0,className:sje,children:e.children}),t[2]=e.children,t[3]=r);let i;return t[4]!==e.open||t[5]!==n||t[6]!==r?(i=(0,Y.jsx)(rC,{open:e.open,onOpenChange:n,children:r}),t[4]=e.open,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}var Xit=`[User attached one or more images without additional text. Respond using the conversation context and the attached image(s).]`,Zit=[],Qit=[],$it=[],eat={};function tat(e){let t=(0,X.c)(7),n=(0,J.useRef)(null),r=(0,J.useRef)(null),i=(0,J.useRef)(e),a=(0,J.useRef)(null),o=(0,J.useRef)(null),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=e=>{n.current=e},t[0]=s):s=t[0];let c=s,l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{r.current=e},t[1]=l):l=t[1];let u=l,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{a.current=r.current?.getBoundingClientRect()??null},t[2]=d):d=t[2];let f=d,p,m;t[3]===e?(p=t[4],m=t[5]):(p=()=>{let t=n.current,s=r.current?.getBoundingClientRect()??null,c=i.current!==e,l=typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,u=typeof document<`u`&&document.documentElement.dataset.mobileComposerRouteTransition===`true`;o.current?.cancel(),o.current=null;let d=a.current;if(c&&!l&&!u&&t&&d&&s&&typeof t.animate==`function`){let e=d.left-s.left,n=d.top-s.top;if(Math.abs(e)>=.5||Math.abs(n)>=.5){let r=t.animate([{transform:`translate3d(${e}px, ${n}px, 0)`},{transform:`translate3d(0, 0, 0)`}],{duration:180,easing:Wit});r.id=Uit,o.current=r,r.finished.catch(nat).then(()=>{o.current===r&&(o.current=null)})}}i.current=e,a.current=s},m=[e],t[3]=e,t[4]=p,t[5]=m),(0,J.useLayoutEffect)(p,m);let h;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=[c,u,f],t[6]=h):h=t[6],h}function nat(){}var rat=(0,J.lazy)(()=>K(()=>import(`./PreviewPanel-VFr5-jjQ.js`).then(e=>({default:e.PreviewPanel})),__vite__mapDeps([102,1,103]))),iat=(0,J.lazy)(()=>K(()=>import(`./DiffPanel-CmLwL5Y4.js`),__vite__mapDeps([104,1,103,105]))),aat=(0,J.lazy)(()=>K(()=>import(`./FilePreviewPanel-7UYO5Mra.js`),__vite__mapDeps([106,1,105]))),y9=new Set,oat=[`input`,`textarea`,`select`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[role="textbox"]`].join(`,`),sat=[`button`,`a[href]`,`summary`,`[role="button"]`,`[role="checkbox"]`,`[role="menuitem"]`,`[role="option"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`].join(`,`),cat=[`[data-slot="dialog"]`,`[data-slot="menu-popup"]`,`[data-slot="select-popup"]`,`[data-slot="popover-popup"]`,`[data-slot="combobox-popup"]`,`[data-slot="autocomplete-popup"]`].join(`,`);function lat(e,t){let n=e.composedPath();return n.length===0&&e.target&&n.push(e.target),n.some(e=>e instanceof Element&&e.closest(t))}function uat(e){return!(e.defaultPrevented||e.isComposing||e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||lat(e,oat)||lat(e,sat)||document.querySelector(cat))}function b9(e){let t=Ns(H(e.models,e.model,e.provider),e.effort);return Mr(e.text,t)}var dat=120,fat=30;function pat(e){let t=(0,X.c)(20),[n,r]=(0,J.useState)(null),i;t[0]===e.activeThread?.messages?i=t[1]:(i=e.activeThread?.messages.findLast(mat)?.id??null,t[0]=e.activeThread?.messages,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{r(null)},t[2]=o):o=t[2];let s=o;e.activeThread?.session;let c=e.activeThread?.session??null,l=e.activePendingApproval!==null,u=e.activePendingUserInput!==null,d;t[3]!==e.activeLatestTurn||t[4]!==e.phase||t[5]!==e.threadError||t[6]!==a||t[7]!==n||t[8]!==c||t[9]!==l||t[10]!==u?(d=S6e({localDispatch:n,phase:e.phase,latestTurn:e.activeLatestTurn,latestUserMessageId:a,session:c,hasPendingApproval:l,hasPendingUserInput:u,threadError:e.threadError}),t[3]=e.activeLatestTurn,t[4]=e.phase,t[5]=e.threadError,t[6]=a,t[7]=n,t[8]=c,t[9]=l,t[10]=u,t[11]=d):d=t[11];let f=d,p=f?null:n,m;t[12]!==e.activeThread||t[13]!==f?(m=t=>{let n=!!t?.preparingWorktree;r(r=>{let i=f?null:r;return i?i.preparingWorktree===n?i:{...i,preparingWorktree:n}:x6e(e.activeThread,t)})},t[12]=e.activeThread,t[13]=f,t[14]=m):m=t[14];let h=m,g=p?.startedAt??null,_=p?.preparingWorktree??!1,v=p!==null,y;return t[15]!==h||t[16]!==g||t[17]!==_||t[18]!==v?(y={beginLocalDispatch:h,resetLocalDispatch:s,localDispatchStartedAt:g,isPreparingWorktree:_,isSendBusy:v},t[15]=h,t[16]=g,t[17]=_,t[18]=v,t[19]=y):y=t[19],y}function mat(e){return e.role===`user`}function hat(e,t){if(e.length!==t.length)return!1;if(e.length===0)return!0;let n=e.toSorted((e,t)=>e.localeCompare(t)),r=t.toSorted((e,t)=>e.localeCompare(t));for(let e=0;e<n.length;e+=1)if(n[e]!==r[e])return!1;return!0}function gat(e,t){if(e.length>=t.length||t.length===0)return!1;let n=new Set(t);for(let t of e)if(!n.has(t))return!1;return!0}var _at=(0,J.memo)(function(e){let t=(0,X.c)(121),{threadRef:n,threadId:r,visible:i,launchContext:a,focusRequestId:o,splitShortcutLabel:s,splitVerticalShortcutLabel:c,newShortcutLabel:l,closeShortcutLabel:u,keybindings:d,onAddTerminalContext:f}=e,p=pe(eg.open,`terminal open`),m=pe(eg.write,`terminal write`),h=pe(eg.close,`terminal close`),g=Xy(n),_;t[0]===n?_=t[1]:(_=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=_);let v=ki(_),y;t[2]!==v||t[3]!==g?(y=g?Vu(g.environmentId,g.projectId):v?Vu(v.environmentId,v.projectId):null,t[2]=v,t[3]=g,t[4]=y):y=t[4];let b=qy(y),x;t[5]===n?x=t[6]:(x=e=>vb(e.terminalUiStateByThreadKey,n),t[5]=n,t[6]=x);let S=xb(x),C;t[7]!==r||t[8]!==n.environmentId?(C={environmentId:n.environmentId,threadId:r},t[7]=r,t[8]=n.environmentId,t[9]=C):C=t[9];let w=tg(C),T;t[10]===n?T=t[11]:(T=e=>Mu(e.byThreadKey,n).surfaces,t[10]=n,t[11]=T);let E=Ta(T),D;t[12]===E?D=t[13]:(D=new Set(E.flatMap(Sat)),t[12]=E,t[13]=D);let O=D,k;if(t[14]!==w||t[15]!==O){let e;t[17]===O?e=t[18]:(e=e=>!O.has(e.target.terminalId),t[17]=O,t[18]=e),k=w.filter(e),t[14]=w,t[15]=O,t[16]=k}else k=t[16];let A=k,j;if(t[19]!==A){j=new Map;for(let e of A)j.set(e.target.terminalId,wF(e.target.terminalId,e.state.summary));t[19]=A,t[20]=j}else j=t[20];let M=j,N;if(t[21]!==A||t[22]!==a||t[23]!==b){bb0:{let e=new Map;if(!b){N=e;break bb0}for(let t of A){let n=t.state.summary;if(!n)continue;let r=a===null?n.worktreePath:a.worktreePath;e.set(t.target.terminalId,{cwd:a?.cwd??n.cwd,worktreePath:r,runtimeEnv:xF({project:{cwd:b.workspaceRoot},worktreePath:r})})}N=e}t[21]=A,t[22]=a,t[23]=b,t[24]=N}else N=t[24];let P=N,F;t[25]===A?F=t[26]:(F=A.map(Cat),t[25]=A,t[26]=F);let I=F,L=xb(wat),R=xb(Tat),z=xb(Eat),B=xb(Dat),V=xb(Oat),H=xb(kat),U=xb(Aat),W,ee;t[27]!==U||t[28]!==I||t[29]!==S.terminalIds||t[30]!==n?(W=()=>{hat(I,S.terminalIds)||gat(I,S.terminalIds)||U(n,I)},ee=[U,I,S.terminalIds,n],t[27]=U,t[28]=I,t[29]=S.terminalIds,t[30]=n,t[31]=W,t[32]=ee):(W=t[31],ee=t[32]),(0,J.useEffect)(W,ee);let[G,te]=(0,J.useState)(0),ne=g?.worktreePath??v?.worktreePath??null,re;bb1:{if(a!==null){re=a.worktreePath;break bb1}re=ne}let ie=re,ae;t[33]!==ie||t[34]!==a?.cwd||t[35]!==b?(ae=()=>a?.cwd??(b?bF({project:{cwd:b.workspaceRoot},worktreePath:ie}):null),t[33]=ie,t[34]=a?.cwd,t[35]=b,t[36]=ae):ae=t[36],a?.cwd;let oe;t[37]===ae?oe=t[38]:(oe=ae(),t[37]=ae,t[38]=oe);let se=oe,ce;t[39]!==ie||t[40]!==b?(ce=b?xF({project:{cwd:b.workspaceRoot},worktreePath:ie}):{},t[39]=ie,t[40]=b,t[41]=ce):ce=t[41];let le=ce,ue;t[42]===i?ue=t[43]:(ue=()=>{i&&te(jat)},t[42]=i,t[43]=ue);let de=ue,fe;t[44]!==L||t[45]!==n?(fe=e=>{L(n,e)},t[44]=L,t[45]=n,t[46]=fe):fe=t[46];let me=fe,he;t[47]!==de||t[48]!==se||t[49]!==ie||t[50]!==p||t[51]!==le||t[52]!==I||t[53]!==R||t[54]!==r||t[55]!==n?(he=()=>{if(!se)return;let e=TF(I);R(n,e),de(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:se,...ie==null?{}:{worktreePath:ie},env:le}})},t[47]=de,t[48]=se,t[49]=ie,t[50]=p,t[51]=le,t[52]=I,t[53]=R,t[54]=r,t[55]=n,t[56]=he):he=t[56];let ge=he,_e;t[57]!==de||t[58]!==se||t[59]!==ie||t[60]!==p||t[61]!==le||t[62]!==I||t[63]!==z||t[64]!==r||t[65]!==n?(_e=()=>{if(!se)return;let e=TF(I);z(n,e),de(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:se,...ie==null?{}:{worktreePath:ie},env:le}})},t[57]=de,t[58]=se,t[59]=ie,t[60]=p,t[61]=le,t[62]=I,t[63]=z,t[64]=r,t[65]=n,t[66]=_e):_e=t[66];let ve=_e,ye;t[67]!==de||t[68]!==se||t[69]!==ie||t[70]!==p||t[71]!==le||t[72]!==I||t[73]!==B||t[74]!==r||t[75]!==n?(ye=()=>{if(!se)return;let e=TF(I);B(n,e),de(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:se,...ie==null?{}:{worktreePath:ie},env:le}})},t[67]=de,t[68]=se,t[69]=ie,t[70]=p,t[71]=le,t[72]=I,t[73]=B,t[74]=r,t[75]=n,t[76]=ye):ye=t[76];let be=ye,xe;t[77]!==de||t[78]!==V||t[79]!==n?(xe=e=>{V(n,e),de()},t[77]=de,t[78]=V,t[79]=n,t[80]=xe):xe=t[80];let Se=xe,Ce;t[81]!==de||t[82]!==h||t[83]!==H||t[84]!==r||t[85]!==n||t[86]!==m?(Ce=e=>{let t=()=>m({environmentId:n.environmentId,input:{threadId:r,terminalId:e,data:`exit
|
|
579
|
+
`):null}function Drt(e){if(e.sourceActivityKind===`user-input.requested`||e.sourceActivityKind===`user-input.resolved`)return`message-circle`;if(e.requestKind===`command`)return`terminal`;if(e.requestKind===`file-read`)return`eye`;if(e.requestKind===`file-change`)return`square-pen`;if(e.itemType===`command_execution`||e.command)return`terminal`;if(e.itemType===`file_change`||(e.changedFiles?.length??0)>0)return`square-pen`;if(e.itemType===`web_search`)return`globe`;if(e.itemType===`image_view`)return`eye`;switch(e.itemType){case`mcp_tool_call`:return`wrench`;case`dynamic_tool_call`:case`collab_agent_tool_call`:return`hammer`}return Crt(e.tone).iconName}function Ort(e){let t=e.trim();return t.length===0?e:`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function krt(e){return e.toolTitle?Ort(l9(e.toolTitle)):Ort(l9(e.label))}var Art=e=>e.stopPropagation(),jrt=(0,J.memo)(function(e){let t=(0,X.c)(83),{workEntry:n,workspaceRoot:r}=e,i=(0,J.use)(f9),[a,o]=(0,J.useState)(!1),s,c,l,u,d,f,p,m,h,g,_;if(t[0]!==n||t[1]!==r){let e=Crt(n.tone);g=n.sourceActivityKind===`runtime.warning`;let i;t[13]!==g||t[14]!==n?(i=g?`x`:Drt(n),t[13]=g,t[14]=n,t[15]=i):i=t[15],l=i,f=krt(n);let a=wrt(n,r);p=a&&l9(a).toLowerCase()===l9(f).toLowerCase()?null:a;let o;t[16]===n.exitCode?o=t[17]:(o=n.exitCode===void 0?null:`exit ${n.exitCode.toLocaleString()}`,t[16]=n.exitCode,t[17]=o),u=o;let v=p?`${f} - ${p}`:f,y;t[18]!==u||t[19]!==v?(y=[v,u].filter(Boolean),t[18]=u,t[19]=v,t[20]=y):y=t[20],c=y.join(`, `),d=Ert(n,r),s=d!==null;let b;t[21]===n?b=t[22]:(b=Lg(n),t[21]=n,t[22]=b),h=b,m=h&&(n.sourceActivityKind===`runtime.error`||!Ig(n)),_=q(`flex size-5 shrink-0 items-center justify-center`,g||m?`text-destructive`:n.tone===`tool`||h?`text-muted-foreground/65`:e.className),t[0]=n,t[1]=r,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=d,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g,t[12]=_}else s=t[2],c=t[3],l=t[4],u=t[5],d=t[6],f=t[7],p=t[8],m=t[9],h=t[10],g=t[11],_=t[12];let v=_,y=g?`font-medium text-warning`:m?`font-medium text-destructive`:`font-medium text-foreground/82`,b=!i.activeTurnInProgress,x;t[23]!==b||t[24]!==n?(x=!b&&zg(n),t[23]=b,t[24]=n,t[25]=x):x=t[25];let S=x,C;t[26]!==b||t[27]!==n?(C=Rg(n)||b&&zg(n),t[26]=b,t[27]=n,t[28]=C):C=t[28];let w=C,T;t[29]!==s||t[30]!==c?(T=s?{role:`button`,tabIndex:0,"aria-label":c,onClick:()=>o(Vrt),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o(Hrt))}}:{},t[29]=s,t[30]=c,t[31]=T):T=t[31];let E=T,D=s&&`cursor-pointer hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70`,O;t[32]===D?O=t[33]:(O=q(`flex flex-col rounded-md px-0.5 py-0.5 transition-colors`,D),t[32]=D,t[33]=O);let k;t[34]===l?k=t[35]:(k=(0,Y.jsx)(Srt,{name:l,className:`block size-3.5 shrink-0 stroke-[1.8] opacity-80`}),t[34]=l,t[35]=k);let A;t[36]!==v||t[37]!==k?(A=(0,Y.jsx)(`span`,{className:v,children:k}),t[36]=v,t[37]=k,t[38]=A):A=t[38];let j;t[39]===y?j=t[40]:(j=q(`min-w-0 shrink truncate`,y),t[39]=y,t[40]=j);let M;t[41]!==f||t[42]!==j?(M=(0,Y.jsx)(`span`,{className:j,children:f}),t[41]=f,t[42]=j,t[43]=M):M=t[43];let N;t[44]===p?N=t[45]:(N=p&&(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-muted-foreground/55`,children:p}),t[44]=p,t[45]=N);let P;t[46]!==N||t[47]!==M?(P=(0,Y.jsx)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:(0,Y.jsxs)(`p`,{className:`flex min-w-0 w-full items-baseline gap-1.5 text-[12px] leading-5`,children:[M,N]})}),t[46]=N,t[47]=M,t[48]=P):P=t[48];let F;t[49]!==u||t[50]!==n.exitCode?(F=u&&(0,Y.jsx)(`span`,{className:`mr-1 font-mono text-[10px] tabular-nums`,"aria-label":`Process exit status ${n.exitCode}`,children:u}),t[49]=u,t[50]=n.exitCode,t[51]=F):F=t[51];let I=!s,L;t[52]!==s||t[53]!==a?(L=s?(0,Y.jsx)(ca,{className:q(`size-3 shrink-0 opacity-70 transition-transform duration-200`,a&&`rotate-180`),"aria-hidden":!0}):null,t[52]=s,t[53]=a,t[54]=L):L=t[54];let R;t[55]!==I||t[56]!==L?(R=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,"aria-hidden":I,children:L}),t[55]=I,t[56]=L,t[57]=R):R=t[57];let z;t[58]!==h||t[59]!==S||t[60]!==w?(z=h?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`,"aria-label":`Tool call failed`}),children:(0,Y.jsx)(Zo,{className:`block size-3 shrink-0 text-destructive`,"aria-hidden":!0})}),(0,Y.jsx)(pr,{children:`Failed`})]}):w?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(`span`,{className:`inline-flex size-4 items-center justify-center`,children:(0,Y.jsx)(ru,{className:`block size-3 shrink-0 stroke-current`,stroke:`currentColor`,"aria-hidden":!0})})}),(0,Y.jsx)(pr,{children:`Completed`})]}):S?(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`span`,{className:`flex size-4 items-center justify-center`}),children:(0,Y.jsx)(Ym,{className:`block size-3 shrink-0 opacity-70`,"aria-hidden":!0})}),(0,Y.jsx)(pr,{children:`Empty`})]}):null,t[58]=h,t[59]=S,t[60]=w,t[61]=z):z=t[61];let B;t[62]===z?B=t[63]:(B=(0,Y.jsx)(`span`,{className:`flex size-4 shrink-0 items-center justify-center`,children:z}),t[62]=z,t[63]=B);let V;t[64]!==F||t[65]!==R||t[66]!==B?(V=(0,Y.jsxs)(`div`,{className:`flex shrink-0 items-center gap-px text-muted-foreground/55`,children:[F,R,B]}),t[64]=F,t[65]=R,t[66]=B,t[67]=V):V=t[67];let H;t[68]!==P||t[69]!==V?(H=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:[P,V]}),t[68]=P,t[69]=V,t[70]=H):H=t[70];let U;t[71]!==H||t[72]!==A?(U=(0,Y.jsxs)(`div`,{className:`flex select-none items-center gap-1.5 transition-[opacity,translate] duration-200`,children:[A,H]}),t[71]=H,t[72]=A,t[73]=U):U=t[73];let W;t[74]!==s||t[75]!==a||t[76]!==d?(W=a&&s&&d?(0,Y.jsx)(`div`,{className:`mt-1 ms-7 cursor-default border-s border-border/45 ps-3 pt-0.5`,onClick:Art,onPointerDown:Art,children:(0,Y.jsx)(`pre`,{className:`max-h-64 cursor-text overflow-auto whitespace-pre-wrap break-words font-mono text-[11px] leading-relaxed text-muted-foreground select-text`,children:d})}):null,t[74]=s,t[75]=a,t[76]=d,t[77]=W):W=t[77];let ee;return t[78]!==E||t[79]!==U||t[80]!==W||t[81]!==O?(ee=(0,Y.jsxs)(`div`,{className:O,...E,children:[U,W]}),t[78]=E,t[79]=U,t[80]=W,t[81]=O,t[82]=ee):ee=t[82],ee});function Mrt(){}function Nrt(){return new Map}function Prt(e){return e.kind===`message`&&e.message.deliveryState===`retryable`}function Frt(e){return e.kind===`message`?e.message.id:null}function Irt(e){let{item:t}=e;return(0,Y.jsx)(`div`,{className:`mx-auto w-full min-w-0 max-w-3xl overflow-x-clip`,"data-timeline-root":`true`,children:(0,Y.jsx)(Gnt,{row:t})})}function Lrt(e){return!zg(e)}function Rrt(e){return Ig(e)}function zrt(e){return!e}function Brt(e){return e.kind===`review-comment`}function Vrt(e){return!e}function Hrt(e){return!e}var Urt=`Invalid keybinding.`,Wrt=pu(pt);function Grt(e){let t=e?.trim()??``;return t.length>0?t:null}function Krt(e){let t=Grt(e.keybinding);if(!t)return null;let n=Wrt({key:t,command:e.command});if(n._tag===`None`)throw Error(Urt);return n.value}function qrt(e,t){for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r||r.command!==t)continue;let i=[];r.shortcut.modKey&&i.push(`mod`),r.shortcut.ctrlKey&&i.push(`ctrl`),r.shortcut.metaKey&&i.push(`meta`),r.shortcut.altKey&&i.push(`alt`),r.shortcut.shiftKey&&i.push(`shift`);let a=r.shortcut.key===` `?`space`:r.shortcut.key===`escape`?`esc`:r.shortcut.key;return i.push(a),i.join(`+`)}return null}var Jrt=[{id:`play`,label:`Play`},{id:`test`,label:`Test`},{id:`lint`,label:`Lint`},{id:`configure`,label:`Configure`},{id:`build`,label:`Build`},{id:`debug`,label:`Debug`}];function p9(e){let t=(0,X.c)(12),{icon:n,className:r}=e,i=r===void 0?`size-3.5`:r;if(n===`test`){let e;return t[0]===i?e=t[1]:(e=(0,Y.jsx)(_te,{className:i}),t[0]=i,t[1]=e),e}if(n===`lint`){let e;return t[2]===i?e=t[3]:(e=(0,Y.jsx)(Tte,{className:i}),t[2]=i,t[3]=e),e}if(n===`configure`){let e;return t[4]===i?e=t[5]:(e=(0,Y.jsx)(bh,{className:i}),t[4]=i,t[5]=e),e}if(n===`build`){let e;return t[6]===i?e=t[7]:(e=(0,Y.jsx)(xte,{className:i}),t[6]=i,t[7]=e),e}if(n===`debug`){let e;return t[8]===i?e=t[9]:(e=(0,Y.jsx)(ate,{className:i}),t[8]=i,t[9]=e),e}let a;return t[10]===i?a=t[11]:(a=(0,Y.jsx)(Bte,{className:i}),t[10]=i,t[11]=a),a}var Yrt=[];function Xrt({scripts:e,fileScripts:t=Yrt,keybindings:n,preferredScriptId:r=null,onRunScript:i,onAddScript:a,onUpdateScript:o,onDeleteScript:s}){let c=J.useId(),[l,u]=(0,J.useState)(null),[d,f]=(0,J.useState)({scripts:!1,imports:!1}),[p,m]=(0,J.useState)(!1),[h,g]=(0,J.useState)(``),[_,v]=(0,J.useState)(``),[y,b]=(0,J.useState)(`play`),[x,S]=(0,J.useState)(!1),[C,w]=(0,J.useState)(!1),[T,E]=(0,J.useState)(``),[D,O]=(0,J.useState)(``),[k,A]=(0,J.useState)(!1),[j,M]=(0,J.useState)(null),[N,P]=(0,J.useState)(!1),F=(0,J.useMemo)(()=>{if(r){let t=e.find(e=>e.id===r);if(t)return t}return Y3e(e)},[r,e]),I=(0,J.useMemo)(()=>t.filter(t=>!e.some(e=>e.command===t.command||e.name.toLowerCase()===t.name.toLowerCase())),[t,e]),L=l!==null,R=`data-highlighted:bg-transparent data-highlighted:text-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-highlighted:hover:bg-accent data-highlighted:hover:text-accent-foreground data-highlighted:focus-visible:bg-accent data-highlighted:focus-visible:text-accent-foreground`,z=e=>{if(e.key===`Tab`)return;if(e.preventDefault(),e.key===`Backspace`||e.key===`Delete`){E(``);return}let t=UN(e,navigator.platform);t&&E(t)},B=async t=>{t.preventDefault();let n=h.trim(),r=_.trim();if(n.length===0){M(`Name is required.`);return}if(r.length===0){M(`Command is required.`);return}M(null);let i;try{let t=l??J0(n,e.map(e=>e.id)),a=Krt({keybinding:T,command:q0(t)}),o=D.trim();i={name:n,command:r,icon:y,runOnWorktreeCreate:C,keybinding:a?.key??null,previewUrl:o.length>0?o:null,autoOpenPreview:o.length>0?k:!1}}catch(e){M(e instanceof Error?e.message:`Failed to save action.`);return}let s=l?await o(l,i):await a(i);if(s._tag===`Failure`){if(!Ct(s)){let e=Xn(s);M(e instanceof Error?e.message:`Failed to save action.`)}return}m(!1),S(!1)},V=()=>{u(null),g(``),v(``),b(`play`),S(!1),w(!1),E(``),O(``),A(!1),M(null),m(!0)},H=e=>{f({scripts:!1,imports:!1}),u(e.id),g(e.name),v(e.command),b(e.icon),S(!1),w(e.runOnWorktreeCreate),E(qrt(n,q0(e.id))??``),O(e.previewUrl??``),A(e.autoOpenPreview??!1),M(null),m(!0)},U=(0,J.useCallback)(()=>{l&&(P(!1),m(!1),s(l))},[l,s]),W=async e=>{let t={name:e.name,command:e.command,icon:e.icon??`play`,runOnWorktreeCreate:e.runOnWorktreeCreate??!1,keybinding:null,previewUrl:e.previewUrl??null,autoOpenPreview:e.previewUrl?e.autoOpenPreview??!1:!1},n=await a(t);if(n._tag===`Failure`&&!Ct(n)){let e=Xn(n);u(null),g(t.name),v(t.command),b(t.icon),S(!1),w(t.runOnWorktreeCreate),E(``),O(t.previewUrl??``),A(t.autoOpenPreview),M(e instanceof Error?e.message:`Failed to import action.`),m(!0)}},ee=I.length>0&&(0,Y.jsxs)(Y.Fragment,{children:[F&&(0,Y.jsx)(Sl,{}),(0,Y.jsxs)(Pl,{children:[(0,Y.jsx)(gc,{children:`From t3.json`}),I.map(e=>(0,Y.jsxs)(ul,{className:R,onClick:()=>void W(e),children:[(0,Y.jsx)(p9,{icon:e.icon??`play`,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.name}),(0,Y.jsx)(Ka,{className:`ms-auto`,children:(0,Y.jsx)(Nm,{className:`size-3.5`,"aria-label":`Import`})})]},`${e.name} ${e.command}`))]})]});return(0,Y.jsxs)(Y.Fragment,{children:[F?(0,Y.jsxs)(FP,{"aria-label":`Project scripts`,children:[(0,Y.jsxs)(bu,{children:[(0,Y.jsxs)(cu,{render:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,"aria-label":`Run ${F.name}`,onClick:()=>i(F)}),children:[(0,Y.jsx)(p9,{icon:F.icon}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:F.name})]}),(0,Y.jsxs)(pr,{side:`top`,children:[`Run `,F.name]})]}),(0,Y.jsx)(IP,{className:`hidden @3xl/header-actions:block`}),(0,Y.jsxs)(go,{highlightItemOnHover:!1,open:d.scripts,onOpenChange:e=>f({scripts:e,imports:!1}),children:[(0,Y.jsx)(Oo,{render:(0,Y.jsx)(hc,{size:`icon-xs`,variant:`outline`,"aria-label":`Script actions`}),children:(0,Y.jsx)(ca,{className:`size-4`})}),(0,Y.jsxs)(ds,{align:`end`,children:[e.map(e=>{let t=jh(n,q0(e.id));return(0,Y.jsxs)(ul,{className:`group ${R}`,onClick:()=>i(e),children:[(0,Y.jsx)(p9,{icon:e.icon,className:`size-4`}),(0,Y.jsx)(`span`,{className:`truncate`,children:e.runOnWorktreeCreate?`${e.name} (setup)`:e.name}),(0,Y.jsxs)(`span`,{className:`relative ms-auto flex h-6 min-w-6 items-center justify-end`,children:[t&&(0,Y.jsx)(Ka,{className:`ms-0 transition-opacity group-hover:opacity-0 group-focus-visible:opacity-0`,children:t}),(0,Y.jsx)(hc,{type:`button`,variant:`ghost`,size:`icon-xs`,className:`absolute right-0 top-1/2 size-6 -translate-y-1/2 opacity-0 pointer-events-none transition-opacity group-hover:opacity-100 group-hover:pointer-events-auto group-focus-visible:opacity-100 group-focus-visible:pointer-events-auto`,"aria-label":`Edit ${e.name}`,onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>{t.preventDefault(),t.stopPropagation(),H(e)},children:(0,Y.jsx)(ch,{className:`size-3.5`})})]})]},e.id)}),ee,(0,Y.jsxs)(ul,{className:R,onClick:V,children:[(0,Y.jsx)(nh,{className:`size-4`}),`Add action`]})]})]})]}):I.length>0?(0,Y.jsxs)(go,{highlightItemOnHover:!1,open:d.imports,onOpenChange:e=>f({scripts:!1,imports:e}),children:[(0,Y.jsxs)(Oo,{render:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,"aria-label":`Project actions`}),children:[(0,Y.jsx)(nh,{className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:`Add action`}),(0,Y.jsx)(ca,{className:`size-3.5`})]}),(0,Y.jsxs)(ds,{align:`end`,children:[ee,(0,Y.jsxs)(ul,{className:R,onClick:V,children:[(0,Y.jsx)(nh,{className:`size-4`}),`Add action`]})]})]}):(0,Y.jsxs)(bu,{children:[(0,Y.jsxs)(cu,{render:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,"aria-label":`Add action`,onClick:V}),children:[(0,Y.jsx)(nh,{className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,children:`Add action`})]}),(0,Y.jsx)(pr,{side:`top`,children:`Add action`})]}),(0,Y.jsx)(VC,{onOpenChange:e=>{m(e),e||S(!1)},onOpenChangeComplete:e=>{e||(u(null),g(``),v(``),b(`play`),w(!1),E(``),O(``),A(!1),M(null))},open:p,children:(0,Y.jsxs)(UC,{children:[(0,Y.jsxs)(WC,{children:[(0,Y.jsx)(KC,{children:L?`Edit Action`:`Add Action`}),(0,Y.jsx)(qC,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,Y.jsx)(JC,{children:(0,Y.jsxs)(`form`,{id:c,className:`space-y-4`,onSubmit:B,children:[(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-name`,children:`Name`}),(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Y.jsxs)(oD,{onOpenChange:S,open:x,children:[(0,Y.jsx)(sD,{render:(0,Y.jsx)(hc,{type:`button`,variant:`outline`,className:`size-9 shrink-0 hover:bg-popover active:bg-popover data-pressed:bg-popover data-pressed:shadow-xs/5 data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:border-transparent dark:bg-white/[0.035] dark:data-pressed:before:shadow-none`,"aria-label":`Choose icon`}),children:(0,Y.jsx)(p9,{icon:y,className:`size-4.5`})}),(0,Y.jsx)(cD,{align:`start`,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:Jrt.map(e=>(0,Y.jsxs)(`button`,{type:`button`,className:`relative flex flex-col items-center gap-2 rounded-md border px-2 py-2 text-xs dark:border-transparent ${e.id===y?`border-primary/70 bg-primary/10 dark:ring-1 dark:ring-primary/30`:`border-border/70 hover:bg-accent/60 dark:bg-white/[0.035]`}`,onClick:()=>{b(e.id),S(!1)},children:[(0,Y.jsx)(p9,{icon:e.id,className:`size-4`}),(0,Y.jsx)(`span`,{children:e.label})]},e.id))})})]}),(0,Y.jsx)(xS,{id:`script-name`,autoFocus:!0,placeholder:`Test`,value:h,onChange:e=>g(e.target.value)})]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,Y.jsx)(xS,{id:`script-keybinding`,placeholder:`Press shortcut`,value:T,readOnly:!0,onKeyDown:z}),(0,Y.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Press a shortcut. Use `,(0,Y.jsx)(`code`,{children:`Backspace`}),` to clear.`]})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-command`,children:`Command`}),(0,Y.jsx)(El,{id:`script-command`,placeholder:`bun test`,value:_,onChange:e=>v(e.target.value)})]}),(0,Y.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,Y.jsx)(kw,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,Y.jsx)(xS,{id:`script-preview-url`,placeholder:`http://localhost:5173`,value:D,onChange:e=>O(e.target.value)}),(0,Y.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Open this URL in the in-app preview when this action runs.`})]}),(0,Y.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035]`,children:[(0,Y.jsx)(`span`,{children:`Run automatically on worktree creation`}),(0,Y.jsx)(mM,{checked:C,onCheckedChange:e=>w(!!e)})]}),(0,Y.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035] ${D.trim().length===0?`opacity-60`:``}`,children:[(0,Y.jsx)(`span`,{children:`Open preview automatically when this action runs`}),(0,Y.jsx)(mM,{checked:k,disabled:D.trim().length===0,onCheckedChange:e=>A(!!e)})]}),j&&(0,Y.jsx)(`p`,{className:`text-sm text-destructive`,children:j})]})}),(0,Y.jsxs)(GC,{className:`dark:border-transparent dark:bg-transparent`,children:[L&&(0,Y.jsx)(hc,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,onClick:()=>P(!0),children:`Delete`}),(0,Y.jsx)(hc,{type:`button`,variant:`outline`,onClick:()=>{m(!1)},children:`Cancel`}),(0,Y.jsx)(hc,{form:c,type:`submit`,children:L?`Save changes`:`Save action`})]})]})}),(0,Y.jsx)(SP,{open:N,onOpenChange:P,children:(0,Y.jsxs)(CP,{children:[(0,Y.jsxs)(wP,{children:[(0,Y.jsxs)(EP,{children:[`Delete action "`,h,`"?`]}),(0,Y.jsx)(DP,{children:`This action cannot be undone.`})]}),(0,Y.jsxs)(TP,{children:[(0,Y.jsx)(OP,{render:(0,Y.jsx)(hc,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(hc,{variant:`destructive`,onClick:U,children:`Delete action`})]})]})})]})}var m9=(e,t)=>{let n=(0,X.c)(7),r=(0,J.useId)(),i;if(n[0]!==t||n[1]!==r||n[2]!==e){let a;n[4]!==r||n[5]!==e?(a=(t,n)=>`${r}-${e}-${String.fromCharCode(97+n)}`,n[4]=r,n[5]=e,n[6]=a):a=n[6],i=Array.from({length:t},a),n[0]=t,n[1]=r,n[2]=e,n[3]=i}else i=n[3];return i},Zrt=e=>{let t=(0,X.c)(23),[n,r]=m9(`aqua`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.25`,stopColor:`#7256FF`}),a=(0,Y.jsx)(`stop`,{offset:`.73`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#00D886`}),c=(0,Y.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`7.671`,x2:`61.125`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124L21 64c1.181-.019 2.531-.786 3.3-1.683l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.746 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.003-3.961c0-2.187.334-2.778 1.003-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.917-1.014c1.443 0 2.739.338 3.907 1.013a7.3 7.3 0 0 1 2.75 2.787q.996 1.774.996 3.961c0 2.187-.332 2.778-.997 3.96a7.3 7.3 0 0 1-2.749 2.788q-1.752 1.013-3.907 1.013c-1.436 0-2.75-.338-3.917-1.013m6.308-2.23q1.06-.67 1.661-1.854.6-1.185.6-2.664t-.6-2.664a4.6 4.6 0 0 0-1.661-1.854q-1.061-.67-2.39-.67t-2.396.67a4.6 4.6 0 0 0-1.672 1.854q-.605 1.185-.605 2.664t.605 2.664 1.672 1.854q1.067.67 2.396.67 1.33 0 2.39-.67m-2.16 6.034a2.67 2.67 0 0 1-1.126-1.077q-.391-.696-.391-1.64l-.01-1.94h2.743v1.811q0 .332.129.573.128.242.37.365.24.123.574.123h1.833v2.165h-2.412q-.975 0-1.71-.38M38.233 16.992h3.173l5.563 15.006h-2.947l-1.212-3.483h-5.842l-1.136 3.483H32.82zm3.805 9.261-2.025-5.723-.225-.954-.215.954-1.908 5.723z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},Qrt=e=>{let t=(0,X.c)(23),[n,r]=m9(`clion`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.29`,stopColor:`#009AE5`}),a=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),c=(0,Y.jsx)(`stop`,{offset:`.54`,stopColor:`#009AE5`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.393`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#FF2D90`,d:`M58 16.453V4.194A4.125 4.125 0 0 0 53.81.07L43.003.008c-1.18.019-2.535.781-3.304 1.678L6.993 39.844c-.64.748-.993 1.7-.993 2.684v11.35a4.125 4.125 0 0 0 4.125 4.125h11.003c1.19 0 2.321-.514 3.105-1.409L56.979 19.17A4.12 4.12 0 0 0 58 16.453`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.747 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96a7.3 7.3 0 0 1 2.744-2.787q1.747-1.013 3.901-1.014 1.823 0 3.345.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.355 2.793h-3.065a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.431-.95 4.9 4.9 0 0 0-1.822-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664a4.9 4.9 0 0 0 1.822-.332 4.02 4.02 0 0 0 2.326-2.38h3.065a6.44 6.44 0 0 1-1.355 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.345.675-2.154 0-3.901-1.013zM37.33 16.992v12.37h7.117v2.636H34.414V16.992z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},$rt=e=>{let t=(0,X.c)(23),[n,r]=m9(`datagrip`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.28`,stopColor:`#7256FF`}),a=(0,Y.jsx)(`stop`,{offset:`.66`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#FF43F2`}),c=(0,Y.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.125 4.125 0 0 0 53.9 0H36.234c-.806 0-1.593.236-2.267.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#FF43F2`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19L64 43c-.018-1.181-.785-2.531-1.682-3.3L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M35.426 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.333-2.778.997-3.96s1.58-2.112 2.744-2.787q1.747-1.013 3.902-1.014 1.746 0 3.221.622a6.9 6.9 0 0 1 2.487 1.747 6.36 6.36 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.927-1.228q-.585-.52-1.367-.803c-.782-.283-1.082-.284-1.683-.284q-1.329 0-2.401.664a4.6 4.6 0 0 0-1.678 1.828q-.605 1.163-.605 2.62c0 1.457.202 1.846.605 2.621a4.6 4.6 0 0 0 1.678 1.828q1.072.664 2.401.664 1.233 0 2.235-.461t1.592-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.356v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.625 2.525q-1.668.921-3.736.921c-1.38 0-2.737-.337-3.902-1.013z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},eit=e=>{let t=(0,X.c)(23),[n,r]=m9(`dataspell`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.28`,stopColor:`#007DFE`}),a=(0,Y.jsx)(`stop`,{offset:`.73`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.32`,stopColor:`#F0EB18`}),c=(0,Y.jsx)(`stop`,{offset:`.55`,stopColor:`#007DFE`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.875`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#F0EB18`,d:`M58 16.45V4.191A4.125 4.125 0 0 0 53.81.067L43 0c-1.181.019-2.531.786-3.3 1.683L6.993 39.84c-.64.748-.993 1.7-.993 2.685v11.349A4.125 4.125 0 0 0 10.125 58h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.45`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M34.713 31.664q-1.26-.59-1.973-1.65t-.734-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.334-.251q.574-.252.89-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.511 0 1.933.186 2.733.558s1.424.888 1.871 1.549q.67.99.68 2.277h-2.926q0-.546-.289-.98c-.289-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.29.96 0 .621.403 1.028.402.407 1.098.579l2.552.557q1.103.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.481.917.482 1.999 0 1.329-.702 2.385-.702 1.054-1.967 1.656-1.265.6-2.894.6t-2.889-.59`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},tit=e=>{let t=(0,X.c)(23),[n,r]=m9(`goland`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.24`,stopColor:`#00D886`}),a=(0,Y.jsx)(`stop`,{offset:`.51`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.27`,stopColor:`#007DFE`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#D249FC`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.13 4.13 0 0 0-1.44-3.066L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.124 4.124 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M19.748 31.243a7.3 7.3 0 0 1-2.743-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96s1.58-2.112 2.743-2.787q1.747-1.013 3.902-1.014 1.747 0 3.222.622a6.9 6.9 0 0 1 2.486 1.747 6.4 6.4 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.926-1.228q-.584-.52-1.367-.803c-.783-.283-1.083-.284-1.683-.284q-1.33 0-2.402.664a4.6 4.6 0 0 0-1.677 1.828q-.606 1.163-.606 2.62c0 1.457.202 1.846.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664 1.232 0 2.235-.461t1.591-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.357v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.626 2.525q-1.666.921-3.736.921c-2.07 0-2.737-.337-3.902-1.013zM36.271 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.002-3.961c0-2.187.333-2.778 1.002-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.918-1.014c1.443 0 2.738.338 3.907 1.013a7.3 7.3 0 0 1 2.749 2.787q.996 1.774.997 3.961c0 2.187-.333 2.778-.997 3.96s-1.581 2.113-2.75 2.788q-1.752 1.013-3.906 1.013c-1.437 0-2.75-.338-3.918-1.013m6.308-2.23q1.062-.67 1.662-1.854t.6-2.664-.6-2.664-1.662-1.854-2.39-.67-2.395.67a4.6 4.6 0 0 0-1.672 1.854q-.606 1.185-.606 2.664t.606 2.664 1.672 1.854 2.395.67q1.33 0 2.39-.67M33 44H17v3h16z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},nit=e=>{let t=(0,X.c)(23),[n,r]=m9(`intellij-idea`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.1`,stopColor:`#FC801D`}),a=(0,Y.jsx)(`stop`,{offset:`.59`,stopColor:`#FE2857`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`-.391`,x2:`24.392`,y1:`7.671`,y2:`61.126`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.21`,stopColor:`#FE2857`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#007EFF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.336`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.191a4.125 4.125 0 0 0-4.124 4.19l.176 11.044a4.13 4.13 0 0 0 1.44 3.066l38.159 32.707c.747.64 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.19-.514-2.321-1.41-3.105L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M14.988 6H4.125A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.185A4.125 4.125 0 0 0 9.573 64h15.398a4.125 4.125 0 0 0 4.125-4.127L29.09 41.37c0-.426-.066-.849-.195-1.254l-9.98-31.245A4.13 4.13 0 0 0 14.988 6z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M59.876 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.943a4.1 4.1 0 0 0-.325 1.638l.15 18.329A4.125 4.125 0 0 0 10.101 64h17.666c.806 0 1.593-.236 2.266-.678l32.11-21.109A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.876 0`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17 29.383h2.98v-9.775H17v-2.616h8.843v2.616h-2.98v9.775h2.98V32H17zM27.643 29.298h2.154a2.4 2.4 0 0 0 1.163-.279q.51-.279.788-.788.279-.51.279-1.163V16.992h2.926v10.28q0 1.35-.622 2.427a4.45 4.45 0 0 1-1.715 1.688q-1.092.612-2.454.611h-2.519z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},rit=e=>{let t=(0,X.c)(23),[n,r]=m9(`phpstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.16`,stopColor:`#D249FC`}),a=(0,Y.jsx)(`stop`,{offset:`.55`,stopColor:`#FF2D90`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`4.067`,x2:`62.664`,y1:`4.326`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#D249FC`,d:`M58 16.446V4.187A4.125 4.125 0 0 0 53.81.063L42.765.239A4.13 4.13 0 0 0 39.7 1.68L6.993 39.837c-.64.748-.993 1.7-.993 2.685v11.35a4.125 4.125 0 0 0 4.125 4.124h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.446`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.323v4.47h3.323q.74 0 1.291-.273M32.572 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.611.278 1.404.278c.53 0 .952-.083 1.335-.251q.572-.252.89-.702c.317-.45.315-.643.315-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.647-.59q-1.073-.234-1.866-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.665-1.023 1.854-1.597 1.19-.573 2.702-.573c1.512 0 1.933.186 2.733.558q1.2.558 1.87 1.549t.681 2.277h-2.926q0-.546-.29-.98a1.9 1.9 0 0 0-.82-.676 2.9 2.9 0 0 0-1.216-.24q-.687 0-1.206.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.551.557q1.104.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.482.917.482 1.999 0 1.329-.701 2.385-.703 1.054-1.967 1.656-1.264.6-2.895.6-1.63 0-2.888-.59`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},iit=e=>{let t=(0,X.c)(23),[n,r]=m9(`pycharm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.1`,stopColor:`#00D886`}),a=(0,Y.jsx)(`stop`,{offset:`.59`,stopColor:`#F0EB18`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.3`,stopColor:`#F0EB18`}),c=(0,Y.jsx)(`stop`,{offset:`.7`,stopColor:`#00C4F4`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.933`,x2:`1.337`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.13 4.13 0 0 0 3.066-1.44l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.324v4.47h3.324q.74 0 1.291-.273M33.713 31.243a7.3 7.3 0 0 1-2.744-2.787q-.996-1.774-.996-3.961c0-2.187.332-2.778.996-3.96a7.3 7.3 0 0 1 2.744-2.787q1.748-1.013 3.902-1.014 1.823 0 3.344.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.356 2.793h-3.066a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.43-.95 4.9 4.9 0 0 0-1.823-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664.986 0 1.822-.332a4.02 4.02 0 0 0 2.326-2.38h3.066a6.44 6.44 0 0 1-1.356 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.344.675-2.154 0-3.902-1.013z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},ait=e=>{let t=(0,X.c)(23),[n,r]=m9(`rider`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.21`,stopColor:`#007DFE`}),a=(0,Y.jsx)(`stop`,{offset:`.55`,stopColor:`#FFB700`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.23`,stopColor:`#FFB700`}),c=(0,Y.jsx)(`stop`,{offset:`.73`,stopColor:`#FF0A67`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#007DFE`,d:`M47.55 58h12.258a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.12 4.12 0 0 0-1.44-3.066L24.158 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h5.713q2.133 0 3.822.965a6.9 6.9 0 0 1 2.641 2.674q.954 1.71.954 3.864t-.953 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.822.964h-5.713zm8.028 11.876q1.008-.6 1.555-1.72t.547-2.653q0-1.534-.547-2.653-.547-1.12-1.555-1.721-1.008-.6-2.347-.6h-2.755v9.947h2.755q1.34 0 2.347-.6`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},oit=e=>{let t=(0,X.c)(23),[n,r]=m9(`rubymine`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.29`,stopColor:`#FF2358`}),a=(0,Y.jsx)(`stop`,{offset:`.75`,stopColor:`#7256FF`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.337`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.29`,stopColor:`#FF8100`}),c=(0,Y.jsx)(`stop`,{offset:`.56`,stopColor:`#FF2358`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`-.391`,x2:`24.393`,y1:`7.671`,y2:`61.125`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,Y.jsx)(`path`,{fill:d,d:`M59.875 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.942a4.1 4.1 0 0 0-.325 1.639l.15 18.328A4.125 4.125 0 0 0 10.101 64h17.666c.805 0 1.593-.235 2.266-.678l32.109-21.108A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.875 0`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,Y.jsx)(`path`,{fill:p,d:`M14.987 6H4.126A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.184A4.125 4.125 0 0 0 9.572 64H24.97a4.125 4.125 0 0 0 4.125-4.126l-.004-18.504c0-.426-.067-.85-.196-1.254L18.917 8.87A4.13 4.13 0 0 0 14.987 6z`}),t[13]=p,t[14]=m);let h,g,_;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.19a4.125 4.125 0 0 0-4.124 4.19L0 21c.019 1.181.786 2.531 1.683 3.3l38.158 32.706c.748.641 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.189-.514-2.32-1.41-3.104L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h6.442q1.575 0 2.776.579t1.849 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.658 1.068-1.875 1.651-1.216.584-2.824.584h-3.43v5.67h-2.926zm7.54 6.63q.552-.274.852-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.631 1.763h3.194L29.05 32h-3.355zM31.633 16.992h4.073l3.087 9.85.257 1.287.225-1.286 2.98-9.85h4.138v15.005h-2.894V21.29l.043-.782-3.494 11.49h-2.123l-3.451-11.415.043.707v10.708h-2.883V16.992z`}),t[15]=h,t[16]=g,t[17]=_):(h=t[15],g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,_]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=v):v=t[22],v},sit=e=>{let t=(0,X.c)(23),[n,r]=m9(`rustrover`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.08`,stopColor:`#00D886`}),a=(0,Y.jsx)(`stop`,{offset:`.46`,stopColor:`#FFAB00`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.125`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.19`,stopColor:`#FFAB00`}),c=(0,Y.jsx)(`stop`,{offset:`.83`,stopColor:`#FF004C`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h6.442q1.575 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.659 1.068-1.875 1.651-1.217.584-2.824.584h-3.43v5.67h-2.927zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L43.651 32h-3.355z`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},cit=e=>{let t=(0,X.c)(23),[n,r]=m9(`webstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`stop`,{offset:`.22`,stopColor:`#F0EB18`}),a=(0,Y.jsx)(`stop`,{offset:`.59`,stopColor:`#00C4F4`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,Y.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`stop`,{offset:`.19`,stopColor:`#00C4F4`}),c=(0,Y.jsx)(`stop`,{offset:`.83`,stopColor:`#007DFE`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,Y.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.337`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,Y.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`path`,{fill:`#F0EB18`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,Y.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,Y.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,_;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),_=(0,Y.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM19.051 16.992l2.423 10.955 2.583-10.955h2.958l2.701 10.955 2.348-10.955h2.97l-3.645 15.006h-3.334l-2.53-10.9-2.561 10.9H19.64l-3.623-15.006zM38.662 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.335-.251q.573-.252.889-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.008 0 1.934.186 2.734.558q1.2.558 1.87 1.549t.68 2.277h-2.925q0-.546-.29-.98c-.29-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.55.557q1.105.226 1.968.852a4.45 4.45 0 0 1 1.345 1.544 4.2 4.2 0 0 1 .482 1.999q0 1.329-.702 2.385-.702 1.054-1.966 1.656-1.266.6-2.894.6-1.63 0-2.889-.59`}),t[16]=g,t[17]=_):(g=t[16],_=t[17]);let v;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(v=(0,Y.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,_]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=v):v=t[22],v},lit=(e,t)=>{let n=[{label:`Cursor`,Icon:UE,value:`cursor`,kind:`brand`},{label:`Trae`,Icon:Che,value:`trae`,kind:`brand`},{label:`Kiro`,Icon:whe,value:`kiro`,kind:`brand`},{label:`VS Code`,Icon:The,value:`vscode`,kind:`brand`},{label:`VS Code Insiders`,Icon:Ehe,value:`vscode-insiders`,kind:`brand`},{label:`VSCodium`,Icon:Dhe,value:`vscodium`,kind:`brand`},{label:`Zed`,Icon:Ohe,value:`zed`,kind:`brand`},{label:`Antigravity`,Icon:jhe,value:`antigravity`,kind:`brand`},{label:`IntelliJ IDEA`,Icon:nit,value:`idea`,kind:`brand`},{label:`Aqua`,Icon:Zrt,value:`aqua`,kind:`brand`},{label:`CLion`,Icon:Qrt,value:`clion`,kind:`brand`},{label:`DataGrip`,Icon:$rt,value:`datagrip`,kind:`brand`},{label:`DataSpell`,Icon:eit,value:`dataspell`,kind:`brand`},{label:`GoLand`,Icon:tit,value:`goland`,kind:`brand`},{label:`PhpStorm`,Icon:rit,value:`phpstorm`,kind:`brand`},{label:`PyCharm`,Icon:iit,value:`pycharm`,kind:`brand`},{label:`Rider`,Icon:ait,value:`rider`,kind:`brand`},{label:`RubyMine`,Icon:oit,value:`rubymine`,kind:`brand`},{label:`RustRover`,Icon:sit,value:`rustrover`,kind:`brand`},{label:`WebStorm`,Icon:cit,value:`webstorm`,kind:`brand`},{label:mt(e)?`Finder`:Yt(e)?`Explorer`:`Files`,Icon:vte,value:`file-manager`,kind:`generic`}],r=new Set(t);return n.filter(e=>r.has(e.value))};function uit(e){return q(e===`brand`?`text-foreground opacity-100`:`text-muted-foreground`)}var dit=(0,J.memo)(function(e){let t=(0,X.c)(59),{environmentId:n,keybindings:r,availableEditors:i,openInCwd:a,compact:o,enableShortcut:s}=e,c=o===void 0?!1:o,l=s===void 0?!0:s,u=pe(My.openInEditor,`open in editor`),[d,f]=E_e(i),p;t[0]===i?p=t[1]:(p=lit(navigator.platform,i),t[0]=i,t[1]=p);let m=p,h=m.find(e=>{let{value:t}=e;return t===d})??null,g;t[2]!==n||t[3]!==a||t[4]!==u||t[5]!==d||t[6]!==f?(g=e=>{if(!a)return;let t=e??d;if(!t)return;let r=u({environmentId:n,input:{cwd:a,editor:t}});return f(t),r},t[2]=n,t[3]=a,t[4]=u,t[5]=d,t[6]=f,t[7]=g):g=t[7];let _=g,v;t[8]===r?v=t[9]:(v=jh(r,`editor.openFavorite`),t[8]=r,t[9]=v);let y=v,b,x;t[10]!==l||t[11]!==n||t[12]!==r||t[13]!==a||t[14]!==u||t[15]!==d?(b=()=>{if(!l)return;let e=e=>{lne(e,r)&&a&&d&&(e.preventDefault(),u({environmentId:n,input:{cwd:a,editor:d}}))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[l,n,r,a,u,d],t[10]=l,t[11]=n,t[12]=r,t[13]=a,t[14]=u,t[15]=d,t[16]=b,t[17]=x):(b=t[16],x=t[17]),(0,J.useEffect)(b,x);let S=FP,C=hc,w=c?`Open file in preferred editor`:void 0,T=!d||!a,E;t[18]!==_||t[19]!==d?(E=()=>_(d),t[18]=_,t[19]=d,t[20]=E):E=t[20];let D=h?.Icon&&(0,Y.jsx)(h.Icon,{"aria-hidden":`true`,className:q(`size-3.5`,uit(h.kind))}),O=c?`sr-only`:`sr-only @3xl/header-actions:not-sr-only @3xl/header-actions:ml-0.5`,k;t[21]===O?k=t[22]:(k=(0,Y.jsx)(`span`,{className:O,children:`Open`}),t[21]=O,t[22]=k);let A;t[23]!==C||t[24]!==w||t[25]!==T||t[26]!==E||t[27]!==D||t[28]!==k?(A=(0,Y.jsxs)(C,{"aria-label":w,size:`xs`,variant:`outline`,disabled:T,onClick:E,children:[D,k]}),t[23]=C,t[24]=w,t[25]=T,t[26]=E,t[27]=D,t[28]=k,t[29]=A):A=t[29];let j;t[30]===c?j=t[31]:(j=(0,Y.jsx)(IP,{...c?{}:{className:`hidden @3xl/header-actions:block`}}),t[30]=c,t[31]=j);let M=c?`Choose editor`:`Copy options`,N;t[32]===M?N=t[33]:(N=(0,Y.jsx)(hc,{"aria-label":M,size:`icon-xs`,variant:`outline`}),t[32]=M,t[33]=N);let P;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Y.jsx)(ca,{"aria-hidden":`true`,className:`size-4`}),t[34]=P):P=t[34];let F;t[35]===N?F=t[36]:(F=(0,Y.jsx)(Oo,{render:N,children:P}),t[35]=N,t[36]=F);let I;t[37]===m.length?I=t[38]:(I=m.length===0&&(0,Y.jsx)(ul,{disabled:!0,children:`No installed editors found`}),t[37]=m.length,t[38]=I);let L;if(t[39]!==y||t[40]!==_||t[41]!==m||t[42]!==d){let e;t[44]!==y||t[45]!==_||t[46]!==d?(e=e=>{let{label:t,Icon:n,value:r,kind:i}=e;return(0,Y.jsxs)(ul,{onClick:()=>_(r),children:[(0,Y.jsx)(n,{"aria-hidden":`true`,className:uit(i)}),t,r===d&&y&&(0,Y.jsx)(Ka,{children:y})]},r)},t[44]=y,t[45]=_,t[46]=d,t[47]=e):e=t[47],L=m.map(e),t[39]=y,t[40]=_,t[41]=m,t[42]=d,t[43]=L}else L=t[43];let R;t[48]!==I||t[49]!==L?(R=(0,Y.jsxs)(ds,{align:`end`,children:[I,L]}),t[48]=I,t[49]=L,t[50]=R):R=t[50];let z;t[51]!==F||t[52]!==R?(z=(0,Y.jsxs)(go,{children:[F,R]}),t[51]=F,t[52]=R,t[53]=z):z=t[53];let B;return t[54]!==S||t[55]!==A||t[56]!==j||t[57]!==z?(B=(0,Y.jsxs)(S,{"aria-label":`Open in editor`,children:[A,j,z]}),t[54]=S,t[55]=A,t[56]=j,t[57]=z,t[58]=B):B=t[58],B}),fit=Tu(Aa),pit=new or(k(e=>{let t=e.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g,(e,t)=>t?e:``);return t=t.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g,(e,t)=>t?e:``),t=t.replace(/,(\s*[}\]])/g,`$1`),fit(t).pipe(ts(Or),Uo(e=>e.issue))}),Ze());ei().compose(Ze({space:2}));var mit=(e=>tc.pipe(B(e,pit)))(Pr),hit=``,git=qa(ac(!1)).pipe(ao(`project-file-query:empty`));function h9(e,t,n){return Fy.optimisticFile({environmentId:e,cwd:t,relativePath:n})}function _it(e,t){return Fy.listEntries({environmentId:e,input:{cwd:t}})}function vit(e,t,n){return Fy.readFile({environmentId:e,input:{cwd:t,relativePath:n??hit}})}function yit(e,t,n,r){Il.set(h9(e,t,n),{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function bit(e,t,n){return Il.get(h9(e,t,n))?.data??null}function xit(e,t,n,r){let i=h9(e,t,n),a=Il.get(i);if(a?.data.contents!==r)return!1;let o=vit(e,t,n),s={...a,confirmedAgainst:Il.get(o)};return Il.set(i,s),Il.refresh(o),Pt(Il,o,{reportDefect:!1,reportFailure:!1}).then(e=>{e._tag===`Success`&&Il.get(i)===s&&Il.set(i,null)}),!0}function Sit(e){if(e._tag!==`Failure`)return null;let t=oi(e.cause);return t instanceof Error?t.message:`Workspace query failed.`}function Cit(e,t){let n=(0,X.c)(14),r;n[0]!==t||n[1]!==e?(r=_it(e,t),n[0]=t,n[1]=e,n[2]=r):r=n[2];let i=r,a=Kt(i),o=je(i),s;n[3]===o?s=n[4]:(s=()=>o(),n[3]=o,n[4]=s);let c=s,l;n[5]===a?l=n[6]:(l=Fu(ua(a)),n[5]=a,n[6]=l);let u;n[7]===a?u=n[8]:(u=Sit(a),n[7]=a,n[8]=u);let d;return n[9]!==c||n[10]!==a.waiting||n[11]!==l||n[12]!==u?(d={data:l,error:u,isPending:a.waiting,refresh:c},n[9]=c,n[10]=a.waiting,n[11]=l,n[12]=u,n[13]=d):d=n[13],d}function wit(e,t,n,r){let i=(0,X.c)(20),a=r===void 0?!0:r,o;i[0]!==t||i[1]!==a||i[2]!==e||i[3]!==n?(o=a?vit(e,t,n):git,i[0]=t,i[1]=a,i[2]=e,i[3]=n,i[4]=o):o=i[4];let s=o,c=Kt(s),l=je(s),u;i[5]===l?u=i[6]:(u=()=>l(),i[5]=l,i[6]=u);let d=u,f;i[7]===c?f=i[8]:(f=Fu(ua(c)),i[7]=c,i[8]=f);let p=f,m=n??hit,h;i[9]!==t||i[10]!==e||i[11]!==m?(h=h9(e,t,m),i[9]=t,i[10]=e,i[11]=m,i[12]=h):h=i[12];let g=Kt(h),_=(n===null?null:g)?.data??p,v;i[13]===c?v=i[14]:(v=Sit(c),i[13]=c,i[14]=v);let y;return i[15]!==d||i[16]!==c.waiting||i[17]!==_||i[18]!==v?(y={data:_,error:v,isPending:c.waiting,refresh:d},i[15]=d,i[16]=c.waiting,i[17]=_,i[18]=v,i[19]=y):y=i[19],y}var Tit=vr(mit),g9=[];function Eit(e,t){let n=(0,X.c)(3),r=wit(e,t??``,Se,t!==null),i=r.data&&!r.data.truncated?r.data.contents:null,a;bb0:{if(i===null){a=g9;break bb0}let e,t;if(n[0]===i?(e=n[1],t=n[2]):(e=Tit(i),t=Ai(e),n[0]=i,n[1]=e,n[2]=t),t){a=g9;break bb0}a=e.value.scripts??g9}return a}var Dit=e=>`${e} actions`;function Oit(e){return!!e.activeProjectName&&e.primaryEnvironmentId!==null&&e.activeThreadEnvironmentId===e.primaryEnvironmentId}var kit=(0,J.memo)(function(e){let t=(0,X.c)(101),{activeThreadEnvironmentId:n,activeThreadTitle:r,activeProjectName:i,activeProjectCwd:a,openInCwd:o,activeProjectScripts:s,preferredScriptId:c,keybindings:l,availableEditors:u,rightPanelOpen:d,pinningSupported:f,pinned:p,settled:m,snoozed:h,settlementSupported:g,snoozeSupported:_,titleRegenerationSupported:v,titleRegenerationPending:y,onTogglePin:b,onThreadAction:x,onNewThreadInProject:S,onRunProjectScript:C,onAddProjectScript:w,onUpdateProjectScript:T,onDeleteProjectScript:E}=e,D=hs(),O=Eit(n,s?a:null),k;t[0]!==i||t[1]!==n||t[2]!==D?(k=Oit({activeProjectName:i,activeThreadEnvironmentId:n,primaryEnvironmentId:D}),t[0]=i,t[1]=n,t[2]=D,t[3]=k):k=t[3];let A=k,j,M,N,P,F,I,L,R,z,B,V,H,U;if(t[4]!==a||t[5]!==i||t[6]!==n||t[7]!==r||t[8]!==S||t[9]!==x||t[10]!==b||t[11]!==p||t[12]!==f||t[13]!==m||t[14]!==g||t[15]!==_||t[16]!==h||t[17]!==y||t[18]!==v){N=gD({pinningSupported:f,pinned:p,settled:m,snoozed:h,settlementSupported:g,snoozeSupported:_,titleRegenerationSupported:v,titleRegenerationPending:y}),F=`@container/header-actions flex min-w-0 flex-1 items-center gap-2 sm:gap-3`,U=`flex min-w-0 flex-1 items-center gap-2 overflow-hidden sm:gap-3`,t[32]!==a||t[33]!==i||t[34]!==n||t[35]!==S?(P=i?(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-2`,children:[(0,Y.jsxs)(bu,{children:[(0,Y.jsxs)(cu,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":`New thread in ${i}`,onClick:S,className:`inline-flex min-w-0 cursor-pointer items-center gap-1.5 rounded-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring`}),children:[(0,Y.jsx)(A_,{environmentId:n,cwd:a??``,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`max-w-40 truncate text-sm font-medium`,children:i})]}),(0,Y.jsxs)(pr,{side:`top`,children:[`New thread in `,i]})]}),(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground/40`,children:`/`})]}):null,t[32]=a,t[33]=i,t[34]=n,t[35]=S,t[36]=P):P=t[36],M=go;let e;t[37]===r?e=t[38]:(e=Dit(r),t[37]=r,t[38]=e);let o;t[39]===e?o=t[40]:(o=(0,Y.jsx)(Oo,{render:(0,Y.jsx)(`button`,{type:`button`,"aria-label":e,className:`min-w-0 flex-1 cursor-pointer truncate rounded-sm text-left text-sm font-medium text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring`})}),t[39]=e,t[40]=o);let s;t[41]!==r||t[42]!==o?(s=(0,Y.jsx)(cu,{render:o,children:r}),t[41]=r,t[42]=o,t[43]=s):s=t[43];let c;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(pr,{side:`top`,children:`Thread actions`}),t[44]=c):c=t[44],t[45]===s?H=t[46]:(H=(0,Y.jsxs)(bu,{children:[s,c]}),t[45]=s,t[46]=H),j=ds,I=`start`,L=N.rename?(0,Y.jsxs)(ul,{onClick:()=>x(`rename`),children:[(0,Y.jsx)(Rte,{}),`Rename thread`]}):null,R=N.regenerateTitle?(0,Y.jsx)(ul,{disabled:N.regenerateTitle.disabled,onClick:()=>x(`regenerate-title`),children:N.regenerateTitle.label}):null,z=N.copy?(0,Y.jsxs)(ul,{onClick:()=>x(`copy`),children:[(0,Y.jsx)(Mm,{}),`Copy thread link`]}):null,B=N.pinAction?(0,Y.jsxs)(ul,{onClick:b,children:[p?(0,Y.jsx)(eh,{}):(0,Y.jsx)(th,{}),p?`Unpin thread`:`Pin thread`]}):null;let l;t[47]===x?l=t[48]:(l=e=>(0,Y.jsx)(ul,{onClick:()=>x(e.id),children:e.label},e.id),t[47]=x,t[48]=l),V=N.lifecycleActions.map(l),t[4]=a,t[5]=i,t[6]=n,t[7]=r,t[8]=S,t[9]=x,t[10]=b,t[11]=p,t[12]=f,t[13]=m,t[14]=g,t[15]=_,t[16]=h,t[17]=y,t[18]=v,t[19]=j,t[20]=M,t[21]=N,t[22]=P,t[23]=F,t[24]=I,t[25]=L,t[26]=R,t[27]=z,t[28]=B,t[29]=V,t[30]=H,t[31]=U}else j=t[19],M=t[20],N=t[21],P=t[22],F=t[23],I=t[24],L=t[25],R=t[26],z=t[27],B=t[28],V=t[29],H=t[30],U=t[31];let W;t[49]!==N.destructiveAction.id||t[50]!==x?(W=()=>x(N.destructiveAction.id),t[49]=N.destructiveAction.id,t[50]=x,t[51]=W):W=t[51];let ee=N.destructiveAction.id===`delete`?`destructive`:`default`,G;t[52]===N.destructiveAction.id?G=t[53]:(G=N.destructiveAction.id===`delete`?(0,Y.jsx)(_h,{}):(0,Y.jsx)(vm,{}),t[52]=N.destructiveAction.id,t[53]=G);let te;t[54]!==N.destructiveAction.label||t[55]!==W||t[56]!==ee||t[57]!==G?(te=(0,Y.jsxs)(ul,{onClick:W,variant:ee,children:[G,N.destructiveAction.label]}),t[54]=N.destructiveAction.label,t[55]=W,t[56]=ee,t[57]=G,t[58]=te):te=t[58];let ne;t[59]!==j||t[60]!==te||t[61]!==I||t[62]!==L||t[63]!==R||t[64]!==z||t[65]!==B||t[66]!==V?(ne=(0,Y.jsxs)(j,{align:I,children:[L,R,z,B,V,te]}),t[59]=j,t[60]=te,t[61]=I,t[62]=L,t[63]=R,t[64]=z,t[65]=B,t[66]=V,t[67]=ne):ne=t[67];let re;t[68]!==M||t[69]!==ne||t[70]!==H?(re=(0,Y.jsxs)(M,{children:[H,ne]}),t[68]=M,t[69]=ne,t[70]=H,t[71]=re):re=t[71];let ie;t[72]!==P||t[73]!==re||t[74]!==U?(ie=(0,Y.jsxs)(`div`,{className:U,children:[P,re]}),t[72]=P,t[73]=re,t[74]=U,t[75]=ie):ie=t[75];let ae=d?`pr-0`:`pr-16`,oe;t[76]===ae?oe=t[77]:(oe=q(`flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3`,ae),t[76]=ae,t[77]=oe);let se;t[78]!==s||t[79]!==O||t[80]!==l||t[81]!==w||t[82]!==E||t[83]!==C||t[84]!==T||t[85]!==c?(se=s&&(0,Y.jsx)(Xrt,{scripts:s,fileScripts:O,keybindings:l,preferredScriptId:c,onRunScript:C,onAddScript:w,onUpdateScript:T,onDeleteScript:E}),t[78]=s,t[79]=O,t[80]=l,t[81]=w,t[82]=E,t[83]=C,t[84]=T,t[85]=c,t[86]=se):se=t[86];let ce;t[87]!==n||t[88]!==u||t[89]!==l||t[90]!==o||t[91]!==A?(ce=A&&(0,Y.jsx)(dit,{environmentId:n,keybindings:l,availableEditors:u,openInCwd:o}),t[87]=n,t[88]=u,t[89]=l,t[90]=o,t[91]=A,t[92]=ce):ce=t[92];let le;t[93]!==oe||t[94]!==se||t[95]!==ce?(le=(0,Y.jsxs)(`div`,{"data-chat-header-actions":!0,className:oe,children:[se,ce]}),t[93]=oe,t[94]=se,t[95]=ce,t[96]=le):le=t[96];let ue;return t[97]!==F||t[98]!==ie||t[99]!==le?(ue=(0,Y.jsxs)(`div`,{className:F,children:[ie,le]}),t[97]=F,t[98]=ie,t[99]=le,t[100]=ue):ue=t[100],ue}),Ait=(0,J.memo)(function(e){let t=(0,X.c)(23),{terminalAvailable:n,terminalOpen:r,terminalShortcutLabel:i,rightPanelAvailable:a,rightPanelOpen:o,rightPanelShortcutLabel:s,onToggleTerminal:c,onToggleRightPanel:l}=e,u=!n,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(Nte,{className:`size-3.5`}),t[0]=d):d=t[0];let f;t[1]!==c||t[2]!==u||t[3]!==r?(f=(0,Y.jsx)(cu,{render:(0,Y.jsx)(AN,{className:`shrink-0 [-webkit-app-region:no-drag]`,pressed:r,onPressedChange:c,"aria-label":`Toggle terminal drawer`,variant:`ghost`,size:`sm`,disabled:u,children:d})}),t[1]=c,t[2]=u,t[3]=r,t[4]=f):f=t[4];let p=n?`Toggle terminal drawer${i?` (${i})`:``}`:`Terminal drawer is unavailable`,m;t[5]===p?m=t[6]:(m=(0,Y.jsx)(pr,{side:`bottom`,children:p}),t[5]=p,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,Y.jsxs)(bu,{children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g=!a,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Y.jsx)(Ite,{className:`size-3.5`}),t[10]=_):_=t[10];let v;t[11]!==l||t[12]!==o||t[13]!==g?(v=(0,Y.jsx)(cu,{render:(0,Y.jsx)(AN,{className:`shrink-0 [-webkit-app-region:no-drag]`,pressed:o,onPressedChange:l,"aria-label":`Toggle right panel`,variant:`ghost`,size:`sm`,disabled:g,children:_})}),t[11]=l,t[12]=o,t[13]=g,t[14]=v):v=t[14];let y=a?`Toggle right panel${s?` (${s})`:``}`:`Right panel is unavailable`,b;t[15]===y?b=t[16]:(b=(0,Y.jsx)(pr,{side:`bottom`,children:y}),t[15]=y,t[16]=b);let x;t[17]!==b||t[18]!==v?(x=(0,Y.jsxs)(bu,{children:[v,b]}),t[17]=b,t[18]=v,t[19]=x):x=t[19];let S;return t[20]!==x||t[21]!==h?(S=(0,Y.jsxs)(`div`,{className:`flex h-full shrink-0 items-center gap-1 [-webkit-app-region:no-drag]`,"data-panel-layout-controls":!0,children:[h,x]}),t[20]=x,t[21]=h,t[22]=S):S=t[22],S}),jit=(0,J.memo)(function(e){let t=(0,X.c)(12),{maximized:n,onToggle:r}=e,i=n?`Restore panel size`:`Maximize panel`,a;t[0]===n?a=t[1]:(a=n?(0,Y.jsx)(jte,{className:`size-3.5`}):(0,Y.jsx)(kte,{className:`size-3.5`}),t[0]=n,t[1]=a);let o;t[2]!==i||t[3]!==n||t[4]!==r||t[5]!==a?(o=(0,Y.jsx)(cu,{render:(0,Y.jsx)(AN,{className:`shrink-0 [-webkit-app-region:no-drag]`,pressed:n,onPressedChange:r,"aria-label":i,variant:`ghost`,size:`sm`,children:a})}),t[2]=i,t[3]=n,t[4]=r,t[5]=a,t[6]=o):o=t[6];let s;t[7]===i?s=t[8]:(s=(0,Y.jsx)(pr,{side:`bottom`,children:i}),t[7]=i,t[8]=s);let c;return t[9]!==o||t[10]!==s?(c=(0,Y.jsxs)(bu,{children:[o,s]}),t[9]=o,t[10]=s,t[11]=c):c=t[11],c});function Mit(){let e=(0,X.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=q(`border-b border-border px-3 transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none sm:px-5`,`workspace-topbar`,vN),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(`header`,{"data-tauri-drag-region":`deep`,className:t,children:(0,Y.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,Y.jsx)(`span`,{className:`text-sm font-medium text-foreground md:text-muted-foreground/60`,children:`No active thread`})})}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(_C,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground`,children:(0,Y.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden bg-background`,children:[n,(0,Y.jsx)(CN,{className:`flex-1`,children:(0,Y.jsx)(`div`,{className:`w-full max-w-lg px-8 py-12`,children:(0,Y.jsxs)(wN,{className:`max-w-none`,children:[(0,Y.jsx)(DN,{className:`text-foreground text-xl`,children:`Pick a thread to continue`}),(0,Y.jsx)(ON,{className:`mt-2 text-sm text-muted-foreground/78`,children:`Select an existing thread or create a new one to get started.`})]})})})]})}),e[2]=r):r=e[2],r}function Nit(e){return!e||e.catalogueState===`checking`||e.status===`ready`||e.status===`disabled`?null:[e.instanceId,e.status,e.auth.status,e.message??``].join(`\0`)}function Pit(e,t){let n=Nit(e);return n!==null&&n!==t}var Fit=(0,J.memo)(function(e){let t=(0,X.c)(21),{onDismiss:n,status:r}=e;if(!r||r.catalogueState===`checking`||r.status===`ready`||r.status===`disabled`)return null;let i;t[0]!==r.displayName||t[1]!==r.driver?(i=r.displayName?.trim()||Ma(r.driver),t[0]=r.displayName,t[1]=r.driver,t[2]=i):i=t[2];let a=i,o=r.status===`error`&&r.auth.status===`unauthenticated`,s=o?`${a} is unauthenticated`:`${a} provider status`,c=o?`Sign in via the CLI to authenticate again.`:r.message??(r.status===`error`?`${a} provider is unavailable.`:`${a} provider has limited availability.`),l=r.status===`warning`?`border-warning/32 bg-warning/4 [&_svg]:text-warning`:`border-destructive/32 bg-destructive/4 text-destructive-foreground [&_svg]:text-destructive`,u;t[3]===l?u=t[4]:(u=q(`relative inline-flex items-center gap-3 rounded-xl border py-3 ps-3.5 pe-10 text-card-foreground text-sm`,l),t[3]=l,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(Gm,{className:`size-4 shrink-0`,"aria-hidden":!0}),t[5]=d):d=t[5];let f;t[6]===s?f=t[7]:(f=(0,Y.jsx)(`div`,{className:`font-medium`,children:s}),t[6]=s,t[7]=f);let p;t[8]===c?p=t[9]:(p=(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`div`,{className:`line-clamp-3 text-muted-foreground`,children:c})}),(0,Y.jsx)(pr,{side:`top`,className:`max-w-96 whitespace-pre-wrap`,children:c})]}),t[8]=c,t[9]=p);let m;t[10]!==f||t[11]!==p?(m=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12];let h=`Dismiss ${a} provider ${r.status}`,g;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(Zo,{"aria-hidden":!0,className:`size-3.5`}),t[13]=g):g=t[13];let _;t[14]!==n||t[15]!==h?(_=(0,Y.jsx)(`button`,{type:`button`,"aria-label":h,className:`absolute top-2 right-2 inline-flex size-6 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-foreground/8 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,onClick:n,children:g}),t[14]=n,t[15]=h,t[16]=_):_=t[16];let v;return t[17]!==_||t[18]!==u||t[19]!==m?(v=(0,Y.jsx)(`div`,{className:`pointer-events-auto mx-auto w-fit max-w-[calc(100%-2rem)] pt-3`,children:(0,Y.jsxs)(`div`,{className:u,role:`alert`,children:[d,m,_]})}),t[17]=_,t[18]=u,t[19]=m,t[20]=v):v=t[20],v}),Iit=(0,J.memo)(function(e){let t=(0,X.c)(9),{error:n,onDismiss:r}=e;if(!n)return null;let i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(km,{}),t[0]=i):i=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Y.jsx)(`div`,{className:`line-clamp-3`}),t[1]=a):a=t[1];let o;t[2]===n?o=t[3]:(o=(0,Y.jsx)(LC,{children:(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:a,children:n}),(0,Y.jsx)(pr,{side:`top`,className:`max-w-96 whitespace-pre-wrap`,children:n})]})}),t[2]=n,t[3]=o);let s;t[4]===r?s=t[5]:(s=r&&(0,Y.jsx)(RC,{children:(0,Y.jsx)(hc,{variant:`ghost`,size:`icon-xs`,"aria-label":`Dismiss error`,onClick:r,children:(0,Y.jsx)(Zo,{className:`text-destructive`})})}),t[4]=r,t[5]=s);let c;return t[6]!==o||t[7]!==s?(c=(0,Y.jsx)(`div`,{className:`mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3`,children:(0,Y.jsxs)(FC,{variant:`error`,children:[i,o,s]})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}),_9=220,Lit={opacity:0,transform:`translate3d(0, 4rem, 0)`},Rit={opacity:0,transform:`translate3d(0, 7rem, 0)`},zit={opacity:1,transform:`none`},Bit={transition:`transform ${_9}ms ease-in, opacity ${_9}ms ease-in`};function Vit(e){let t=(0,X.c)(45),{className:n,items:r}=e,[i,a]=(0,J.useState)(null),o=(0,J.useRef)(null),s;t[0]!==r||t[1]!==i?(s=i!==null&&r.some(e=>e.id===i)?i:null,t[0]=r,t[1]=i,t[2]=s):s=t[2];let c=s,l,u;if(t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>()=>{o.current&&clearTimeout(o.current)},u=[],t[3]=l,t[4]=u):(l=t[3],u=t[4]),(0,J.useEffect)(l,u),r.length===0)return null;let d=r[0];if(!d)return null;let f,p,m,h,g;if(t[5]!==n||t[6]!==c||t[7]!==d||t[8]!==r){let e=r.slice(1),i=e.length>0,s=i&&c!==d.id,l;t[14]===c?l=t[15]:(l=e=>{!e.onDismiss||c||(a(e.id),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{o.current=null,e.onDismiss?.()},_9))},t[14]=c,t[15]=l);let u=l;t[16]===n?g=t[17]:(g=q(`group/banner-stack mx-auto mb-2 max-w-3xl`,n),t[16]=n,t[17]=g);let _=i?`group-hover/banner-stack:z-50 group-focus-within/banner-stack:z-50`:null;t[18]===_?f=t[19]:(f=q(`relative flex flex-col-reverse`,_),t[18]=_,t[19]=f),t[20]===s?p=t[21]:(p=s?(0,Y.jsx)(`div`,{className:q(`pointer-events-none absolute inset-x-0 -top-3 z-0 mx-auto h-3 rounded-t-xl`,`border border-b-0 border-warning/24 bg-background/96 shadow-[0_6px_18px_rgba(0,0,0,0.06)]`,`transition-opacity duration-150 ease-out`,`group-hover/banner-stack:opacity-0 group-focus-within/banner-stack:opacity-0`),style:{width:`96%`},"aria-hidden":`true`}):null,t[20]=s,t[21]=p);let v=c===d.id?`pointer-events-none`:null,y;t[22]===v?y=t[23]:(y=q(`relative z-10`,v),t[22]=v,t[23]=y);let b=c===d.id?Lit:zit,x;t[24]===b?x=t[25]:(x={...Bit,...b},t[24]=b,t[25]=x);let S=c===d.id,C;t[26]!==d||t[27]!==u?(C=()=>u(d),t[26]=d,t[27]=u,t[28]=C):C=t[28];let w;t[29]!==d||t[30]!==S||t[31]!==C?(w=(0,Y.jsx)(Hit,{item:d,exiting:S,onDismissRequest:C}),t[29]=d,t[30]=S,t[31]=C,t[32]=w):w=t[32],t[33]!==y||t[34]!==x||t[35]!==w?(m=(0,Y.jsx)(`div`,{className:y,style:x,children:w}),t[33]=y,t[34]=x,t[35]=w,t[36]=m):m=t[36],h=i?(0,Y.jsx)(`div`,{"data-composer-banner-stack-expanded-items":`true`,className:q(`relative z-20 grid grid-rows-[0fr] transition-[grid-template-rows] duration-150 ease-out`,`group-hover/banner-stack:grid-rows-[1fr] group-focus-within/banner-stack:grid-rows-[1fr]`),children:(0,Y.jsx)(`div`,{className:`min-h-0 overflow-hidden`,children:(0,Y.jsx)(`div`,{className:q(`invisible pointer-events-none space-y-2 pb-2 opacity-0`,`translate-y-1 transform-gpu transition-[opacity,transform] duration-150 ease-out will-change-[opacity,transform]`,`group-hover/banner-stack:visible group-hover/banner-stack:pointer-events-auto group-hover/banner-stack:translate-y-0 group-hover/banner-stack:opacity-100`,`group-focus-within/banner-stack:visible group-focus-within/banner-stack:pointer-events-auto group-focus-within/banner-stack:translate-y-0 group-focus-within/banner-stack:opacity-100`),children:e.map(e=>(0,Y.jsx)(`div`,{className:q(c===e.id?`pointer-events-none`:null),style:{...Bit,...c===e.id?Rit:zit},children:(0,Y.jsx)(Hit,{item:e,exiting:c===e.id,onDismissRequest:()=>u(e)})},e.id))})})}):null,t[5]=n,t[6]=c,t[7]=d,t[8]=r,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g}else f=t[9],p=t[10],m=t[11],h=t[12],g=t[13];let _;t[37]!==f||t[38]!==p||t[39]!==m||t[40]!==h?(_=(0,Y.jsxs)(`div`,{className:f,children:[p,m,h]}),t[37]=f,t[38]=p,t[39]=m,t[40]=h,t[41]=_):_=t[41];let v;return t[42]!==g||t[43]!==_?(v=(0,Y.jsx)(`div`,{className:g,children:_}),t[42]=g,t[43]=_,t[44]=v):v=t[44],v}function Hit(e){let t=(0,X.c)(21),{item:n,exiting:r,onDismissRequest:i}=e,a=n.onDismiss&&!n.actions,o=n.variant,s;t[0]===n.className?s=t[1]:(s=q(`alert-glass`,n.className),t[0]=n.className,t[1]=s);let c;t[2]===n.title?c=t[3]:(c=(0,Y.jsx)(IC,{children:n.title}),t[2]=n.title,t[3]=c);let l;t[4]===n.description?l=t[5]:(l=n.description?(0,Y.jsx)(LC,{children:n.description}):null,t[4]=n.description,t[5]=l);let u;t[6]!==a||t[7]!==r||t[8]!==n.actionClassName||t[9]!==n.actions||t[10]!==n.dismissLabel||t[11]!==n.onDismiss||t[12]!==i?(u=n.actions||n.onDismiss?(0,Y.jsxs)(RC,{className:q(n.actionClassName,a?`max-sm:col-start-3 max-sm:row-start-1 max-sm:mt-0 max-sm:self-start`:void 0),children:[n.actions,n.onDismiss?(0,Y.jsx)(hc,{size:`icon-xs`,variant:`ghost`,"aria-label":n.dismissLabel??`Dismiss warning`,disabled:r,onClick:i,children:(0,Y.jsx)(Zo,{className:`size-3.5`})}):null]}):null,t[6]=a,t[7]=r,t[8]=n.actionClassName,t[9]=n.actions,t[10]=n.dismissLabel,t[11]=n.onDismiss,t[12]=i,t[13]=u):u=t[13];let d;return t[14]!==n.icon||t[15]!==n.variant||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(d=(0,Y.jsxs)(FC,{variant:o,className:s,"data-variant":n.variant,children:[n.icon,c,l,u]}),t[14]=n.icon,t[15]=n.variant,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=d):d=t[20],d}var Uit=`t3-draft-hero-transition`,Wit=`cubic-bezier(0.4, 0, 0.2, 1)`,Git=`t3-mobile-composer`,Kit=`t3-mobile-draft-headline`,v9=null;async function qit(){let e=v9;if(typeof document>`u`||typeof document.getAnimations!=`function`){await e;return}let t=document.getAnimations().filter(e=>e.id===Uit);await Promise.all([e,...t.map(async e=>{try{await e.finished}catch{}})])}async function Jit(e){if(typeof document>`u`||typeof window>`u`){await e();return}let t=document,n=window.matchMedia?.(`(max-width: 639px)`).matches??!1,r=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1;if(!n||r||!t.startViewTransition){await e();return}let i=!1,a=async()=>{i||(i=!0,await e())},o=null;t.documentElement.dataset.mobileComposerRouteTransition=`true`;try{let e=t.startViewTransition(a);o=e.finished.catch(()=>void 0),v9=o;try{await e.finished}catch{await a()}}catch{await a()}finally{v9===o&&(v9=null),delete t.documentElement.dataset.mobileComposerRouteTransition}}function Yit(e){let t=(0,X.c)(8),n;t[0]===e?n=t[1]:(n=t=>{t||e.onClose()},t[0]=e,t[1]=n);let r;t[2]===e.children?r=t[3]:(r=(0,Y.jsx)(iC,{side:`right`,showCloseButton:!1,keepMounted:!0,className:sje,children:e.children}),t[2]=e.children,t[3]=r);let i;return t[4]!==e.open||t[5]!==n||t[6]!==r?(i=(0,Y.jsx)(rC,{open:e.open,onOpenChange:n,children:r}),t[4]=e.open,t[5]=n,t[6]=r,t[7]=i):i=t[7],i}var Xit=`[User attached one or more images without additional text. Respond using the conversation context and the attached image(s).]`,Zit=[],Qit=[],$it=[],eat={};function tat(e){let t=(0,X.c)(7),n=(0,J.useRef)(null),r=(0,J.useRef)(null),i=(0,J.useRef)(e),a=(0,J.useRef)(null),o=(0,J.useRef)(null),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=e=>{n.current=e},t[0]=s):s=t[0];let c=s,l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{r.current=e},t[1]=l):l=t[1];let u=l,d;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>{a.current=r.current?.getBoundingClientRect()??null},t[2]=d):d=t[2];let f=d,p,m;t[3]===e?(p=t[4],m=t[5]):(p=()=>{let t=n.current,s=r.current?.getBoundingClientRect()??null,c=i.current!==e,l=typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,u=typeof document<`u`&&document.documentElement.dataset.mobileComposerRouteTransition===`true`;o.current?.cancel(),o.current=null;let d=a.current;if(c&&!l&&!u&&t&&d&&s&&typeof t.animate==`function`){let e=d.left-s.left,n=d.top-s.top;if(Math.abs(e)>=.5||Math.abs(n)>=.5){let r=t.animate([{transform:`translate3d(${e}px, ${n}px, 0)`},{transform:`translate3d(0, 0, 0)`}],{duration:180,easing:Wit});r.id=Uit,o.current=r,r.finished.catch(nat).then(()=>{o.current===r&&(o.current=null)})}}i.current=e,a.current=s},m=[e],t[3]=e,t[4]=p,t[5]=m),(0,J.useLayoutEffect)(p,m);let h;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=[c,u,f],t[6]=h):h=t[6],h}function nat(){}var rat=(0,J.lazy)(()=>K(()=>import(`./PreviewPanel-D1RgBgdC.js`).then(e=>({default:e.PreviewPanel})),__vite__mapDeps([102,1,103]))),iat=(0,J.lazy)(()=>K(()=>import(`./DiffPanel-DRLb5V2O.js`),__vite__mapDeps([104,1,103,105]))),aat=(0,J.lazy)(()=>K(()=>import(`./FilePreviewPanel-CNxX4J5k.js`),__vite__mapDeps([106,1,105]))),y9=new Set,oat=[`input`,`textarea`,`select`,`[contenteditable="true"]`,`[contenteditable="plaintext-only"]`,`[role="textbox"]`].join(`,`),sat=[`button`,`a[href]`,`summary`,`[role="button"]`,`[role="checkbox"]`,`[role="menuitem"]`,`[role="option"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`].join(`,`),cat=[`[data-slot="dialog"]`,`[data-slot="menu-popup"]`,`[data-slot="select-popup"]`,`[data-slot="popover-popup"]`,`[data-slot="combobox-popup"]`,`[data-slot="autocomplete-popup"]`].join(`,`);function lat(e,t){let n=e.composedPath();return n.length===0&&e.target&&n.push(e.target),n.some(e=>e instanceof Element&&e.closest(t))}function uat(e){return!(e.defaultPrevented||e.isComposing||e.metaKey||e.ctrlKey||e.altKey||e.key.length!==1||lat(e,oat)||lat(e,sat)||document.querySelector(cat))}function b9(e){let t=Ns(H(e.models,e.model,e.provider),e.effort);return Mr(e.text,t)}var dat=120,fat=30;function pat(e){let t=(0,X.c)(20),[n,r]=(0,J.useState)(null),i;t[0]===e.activeThread?.messages?i=t[1]:(i=e.activeThread?.messages.findLast(mat)?.id??null,t[0]=e.activeThread?.messages,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{r(null)},t[2]=o):o=t[2];let s=o;e.activeThread?.session;let c=e.activeThread?.session??null,l=e.activePendingApproval!==null,u=e.activePendingUserInput!==null,d;t[3]!==e.activeLatestTurn||t[4]!==e.phase||t[5]!==e.threadError||t[6]!==a||t[7]!==n||t[8]!==c||t[9]!==l||t[10]!==u?(d=S6e({localDispatch:n,phase:e.phase,latestTurn:e.activeLatestTurn,latestUserMessageId:a,session:c,hasPendingApproval:l,hasPendingUserInput:u,threadError:e.threadError}),t[3]=e.activeLatestTurn,t[4]=e.phase,t[5]=e.threadError,t[6]=a,t[7]=n,t[8]=c,t[9]=l,t[10]=u,t[11]=d):d=t[11];let f=d,p=f?null:n,m;t[12]!==e.activeThread||t[13]!==f?(m=t=>{let n=!!t?.preparingWorktree;r(r=>{let i=f?null:r;return i?i.preparingWorktree===n?i:{...i,preparingWorktree:n}:x6e(e.activeThread,t)})},t[12]=e.activeThread,t[13]=f,t[14]=m):m=t[14];let h=m,g=p?.startedAt??null,_=p?.preparingWorktree??!1,v=p!==null,y;return t[15]!==h||t[16]!==g||t[17]!==_||t[18]!==v?(y={beginLocalDispatch:h,resetLocalDispatch:s,localDispatchStartedAt:g,isPreparingWorktree:_,isSendBusy:v},t[15]=h,t[16]=g,t[17]=_,t[18]=v,t[19]=y):y=t[19],y}function mat(e){return e.role===`user`}function hat(e,t){if(e.length!==t.length)return!1;if(e.length===0)return!0;let n=e.toSorted((e,t)=>e.localeCompare(t)),r=t.toSorted((e,t)=>e.localeCompare(t));for(let e=0;e<n.length;e+=1)if(n[e]!==r[e])return!1;return!0}function gat(e,t){if(e.length>=t.length||t.length===0)return!1;let n=new Set(t);for(let t of e)if(!n.has(t))return!1;return!0}var _at=(0,J.memo)(function(e){let t=(0,X.c)(121),{threadRef:n,threadId:r,visible:i,launchContext:a,focusRequestId:o,splitShortcutLabel:s,splitVerticalShortcutLabel:c,newShortcutLabel:l,closeShortcutLabel:u,keybindings:d,onAddTerminalContext:f}=e,p=pe(eg.open,`terminal open`),m=pe(eg.write,`terminal write`),h=pe(eg.close,`terminal close`),g=Xy(n),_;t[0]===n?_=t[1]:(_=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=_);let v=ki(_),y;t[2]!==v||t[3]!==g?(y=g?Vu(g.environmentId,g.projectId):v?Vu(v.environmentId,v.projectId):null,t[2]=v,t[3]=g,t[4]=y):y=t[4];let b=qy(y),x;t[5]===n?x=t[6]:(x=e=>vb(e.terminalUiStateByThreadKey,n),t[5]=n,t[6]=x);let S=xb(x),C;t[7]!==r||t[8]!==n.environmentId?(C={environmentId:n.environmentId,threadId:r},t[7]=r,t[8]=n.environmentId,t[9]=C):C=t[9];let w=tg(C),T;t[10]===n?T=t[11]:(T=e=>Mu(e.byThreadKey,n).surfaces,t[10]=n,t[11]=T);let E=Ta(T),D;t[12]===E?D=t[13]:(D=new Set(E.flatMap(Sat)),t[12]=E,t[13]=D);let O=D,k;if(t[14]!==w||t[15]!==O){let e;t[17]===O?e=t[18]:(e=e=>!O.has(e.target.terminalId),t[17]=O,t[18]=e),k=w.filter(e),t[14]=w,t[15]=O,t[16]=k}else k=t[16];let A=k,j;if(t[19]!==A){j=new Map;for(let e of A)j.set(e.target.terminalId,wF(e.target.terminalId,e.state.summary));t[19]=A,t[20]=j}else j=t[20];let M=j,N;if(t[21]!==A||t[22]!==a||t[23]!==b){bb0:{let e=new Map;if(!b){N=e;break bb0}for(let t of A){let n=t.state.summary;if(!n)continue;let r=a===null?n.worktreePath:a.worktreePath;e.set(t.target.terminalId,{cwd:a?.cwd??n.cwd,worktreePath:r,runtimeEnv:xF({project:{cwd:b.workspaceRoot},worktreePath:r})})}N=e}t[21]=A,t[22]=a,t[23]=b,t[24]=N}else N=t[24];let P=N,F;t[25]===A?F=t[26]:(F=A.map(Cat),t[25]=A,t[26]=F);let I=F,L=xb(wat),R=xb(Tat),z=xb(Eat),B=xb(Dat),V=xb(Oat),H=xb(kat),U=xb(Aat),W,ee;t[27]!==U||t[28]!==I||t[29]!==S.terminalIds||t[30]!==n?(W=()=>{hat(I,S.terminalIds)||gat(I,S.terminalIds)||U(n,I)},ee=[U,I,S.terminalIds,n],t[27]=U,t[28]=I,t[29]=S.terminalIds,t[30]=n,t[31]=W,t[32]=ee):(W=t[31],ee=t[32]),(0,J.useEffect)(W,ee);let[G,te]=(0,J.useState)(0),ne=g?.worktreePath??v?.worktreePath??null,re;bb1:{if(a!==null){re=a.worktreePath;break bb1}re=ne}let ie=re,ae;t[33]!==ie||t[34]!==a?.cwd||t[35]!==b?(ae=()=>a?.cwd??(b?bF({project:{cwd:b.workspaceRoot},worktreePath:ie}):null),t[33]=ie,t[34]=a?.cwd,t[35]=b,t[36]=ae):ae=t[36],a?.cwd;let oe;t[37]===ae?oe=t[38]:(oe=ae(),t[37]=ae,t[38]=oe);let se=oe,ce;t[39]!==ie||t[40]!==b?(ce=b?xF({project:{cwd:b.workspaceRoot},worktreePath:ie}):{},t[39]=ie,t[40]=b,t[41]=ce):ce=t[41];let le=ce,ue;t[42]===i?ue=t[43]:(ue=()=>{i&&te(jat)},t[42]=i,t[43]=ue);let de=ue,fe;t[44]!==L||t[45]!==n?(fe=e=>{L(n,e)},t[44]=L,t[45]=n,t[46]=fe):fe=t[46];let me=fe,he;t[47]!==de||t[48]!==se||t[49]!==ie||t[50]!==p||t[51]!==le||t[52]!==I||t[53]!==R||t[54]!==r||t[55]!==n?(he=()=>{if(!se)return;let e=TF(I);R(n,e),de(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:se,...ie==null?{}:{worktreePath:ie},env:le}})},t[47]=de,t[48]=se,t[49]=ie,t[50]=p,t[51]=le,t[52]=I,t[53]=R,t[54]=r,t[55]=n,t[56]=he):he=t[56];let ge=he,_e;t[57]!==de||t[58]!==se||t[59]!==ie||t[60]!==p||t[61]!==le||t[62]!==I||t[63]!==z||t[64]!==r||t[65]!==n?(_e=()=>{if(!se)return;let e=TF(I);z(n,e),de(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:se,...ie==null?{}:{worktreePath:ie},env:le}})},t[57]=de,t[58]=se,t[59]=ie,t[60]=p,t[61]=le,t[62]=I,t[63]=z,t[64]=r,t[65]=n,t[66]=_e):_e=t[66];let ve=_e,ye;t[67]!==de||t[68]!==se||t[69]!==ie||t[70]!==p||t[71]!==le||t[72]!==I||t[73]!==B||t[74]!==r||t[75]!==n?(ye=()=>{if(!se)return;let e=TF(I);B(n,e),de(),p({environmentId:n.environmentId,input:{threadId:r,terminalId:e,cwd:se,...ie==null?{}:{worktreePath:ie},env:le}})},t[67]=de,t[68]=se,t[69]=ie,t[70]=p,t[71]=le,t[72]=I,t[73]=B,t[74]=r,t[75]=n,t[76]=ye):ye=t[76];let be=ye,xe;t[77]!==de||t[78]!==V||t[79]!==n?(xe=e=>{V(n,e),de()},t[77]=de,t[78]=V,t[79]=n,t[80]=xe):xe=t[80];let Se=xe,Ce;t[81]!==de||t[82]!==h||t[83]!==H||t[84]!==r||t[85]!==n||t[86]!==m?(Ce=e=>{let t=()=>m({environmentId:n.environmentId,input:{threadId:r,terminalId:e,data:`exit
|
|
580
580
|
`}});(async()=>{let i=await h({environmentId:n.environmentId,input:{threadId:r,terminalId:e,deleteHistory:!0}});i._tag===`Failure`&&!Ct(i)&&await t()})(),H(n,e),de()},t[81]=de,t[82]=h,t[83]=H,t[84]=r,t[85]=n,t[86]=m,t[87]=Ce):Ce=t[87];let we=Ce,K;t[88]!==f||t[89]!==i?(K=e=>{i&&f(e)},t[88]=f,t[89]=i,t[90]=K):K=t[90];let Te=K;if(!b||!S.terminalOpen||!se)return null;let Ee=i?void 0:`hidden`,De=o+G+ +!!i,Oe=i?s:void 0,ke=i?c:void 0,Ae=i?l:void 0,je=i?u:void 0,Me;t[91]!==Se||t[92]!==we||t[93]!==be||t[94]!==se||t[95]!==ie||t[96]!==Te||t[97]!==d||t[98]!==le||t[99]!==me||t[100]!==ge||t[101]!==ve||t[102]!==De||t[103]!==Oe||t[104]!==ke||t[105]!==Ae||t[106]!==je||t[107]!==M||t[108]!==P||t[109]!==S.activeTerminalGroupId||t[110]!==S.activeTerminalId||t[111]!==S.terminalGroups||t[112]!==S.terminalHeight||t[113]!==S.terminalIds||t[114]!==r||t[115]!==n||t[116]!==i?(Me=(0,Y.jsx)(G0,{threadRef:n,threadId:r,cwd:se,worktreePath:ie,runtimeEnv:le,visible:i,height:S.terminalHeight,terminalIds:S.terminalIds,activeTerminalId:S.activeTerminalId,terminalGroups:S.terminalGroups,activeTerminalGroupId:S.activeTerminalGroupId,focusRequestId:De,onSplitTerminal:ge,onSplitTerminalVertical:ve,onNewTerminal:be,splitShortcutLabel:Oe,splitVerticalShortcutLabel:ke,newShortcutLabel:Ae,closeShortcutLabel:je,keybindings:d,onActiveTerminalChange:Se,onCloseTerminal:we,onHeightChange:me,onAddTerminalContext:Te,terminalLabelsById:M,terminalLaunchLocationsById:P}),t[91]=Se,t[92]=we,t[93]=be,t[94]=se,t[95]=ie,t[96]=Te,t[97]=d,t[98]=le,t[99]=me,t[100]=ge,t[101]=ve,t[102]=De,t[103]=Oe,t[104]=ke,t[105]=Ae,t[106]=je,t[107]=M,t[108]=P,t[109]=S.activeTerminalGroupId,t[110]=S.activeTerminalId,t[111]=S.terminalGroups,t[112]=S.terminalHeight,t[113]=S.terminalIds,t[114]=r,t[115]=n,t[116]=i,t[117]=Me):Me=t[117];let Ne;return t[118]!==Ee||t[119]!==Me?(Ne=(0,Y.jsx)(`div`,{className:Ee,children:Me}),t[118]=Ee,t[119]=Me,t[120]=Ne):Ne=t[120],Ne}),vat=(0,J.memo)(function(e){let t=(0,X.c)(60),{threadRef:n,surface:r,launchContext:i,focusRequestId:a,keybindings:o,onAddTerminalContext:s,onSplitTerminal:c,onSplitTerminalVertical:l,onNewTerminal:u,onActiveTerminalChange:d,onCloseTerminal:f,splitShortcutLabel:p,splitVerticalShortcutLabel:m,newShortcutLabel:h,closeShortcutLabel:g}=e,_=Xy(n),v;t[0]===n?v=t[1]:(v=e=>e.getDraftThreadByRef(n),t[0]=n,t[1]=v);let y=ki(v),b;t[2]!==y||t[3]!==_?(b=_?Vu(_.environmentId,_.projectId):y?Vu(y.environmentId,y.projectId):null,t[2]=y,t[3]=_,t[4]=b):b=t[4];let x=qy(b),S;t[5]!==n.environmentId||t[6]!==n.threadId?(S={environmentId:n.environmentId,threadId:n.threadId},t[5]=n.environmentId,t[6]=n.threadId,t[7]=S):S=t[7];let C=tg(S),w=_?.worktreePath??y?.worktreePath??null,T;t[8]!==C||t[9]!==r.activeTerminalId?(T=C.find(e=>e.target.terminalId===r.activeTerminalId)?.state.summary??null,t[8]=C,t[9]=r.activeTerminalId,t[10]=T):T=t[10];let E=T,D=i?.worktreePath??E?.worktreePath??w;E?.cwd,i?.cwd;let O;t[11]!==E?.cwd||t[12]!==i?.cwd||t[13]!==x||t[14]!==D?(O=i?.cwd??E?.cwd??(x?bF({project:{cwd:x.workspaceRoot},worktreePath:D}):null),t[11]=E?.cwd,t[12]=i?.cwd,t[13]=x,t[14]=D,t[15]=O):O=t[15];let k=O,A;t[16]!==x||t[17]!==D?(A=x?xF({project:{cwd:x.workspaceRoot},worktreePath:D}):{},t[16]=x,t[17]=D,t[18]=A):A=t[18];let j=A,M;if(t[19]!==C||t[20]!==r.terminalIds){M=new Map;for(let e of r.terminalIds){let t=C.find(t=>t.target.terminalId===e)?.state.summary??null;M.set(e,wF(e,t))}t[19]=C,t[20]=r.terminalIds,t[21]=M}else M=t[21];let N=M,P;t[22]!==C||t[23]!==i?.cwd||t[24]!==i?.worktreePath||t[25]!==x||t[26]!==r.terminalIds||t[27]!==w?(P=()=>{let e=new Map;for(let t of r.terminalIds){let n=C.find(e=>e.target.terminalId===t)?.state.summary??null,r=i?.worktreePath??n?.worktreePath??w,a=i?.cwd??n?.cwd??(x?bF({project:{cwd:x.workspaceRoot},worktreePath:r}):null);!a||!x||e.set(t,{cwd:a,worktreePath:r,runtimeEnv:xF({project:{cwd:x.workspaceRoot},worktreePath:r})})}return e},t[22]=C,t[23]=i?.cwd,t[24]=i?.worktreePath,t[25]=x,t[26]=r.terminalIds,t[27]=w,t[28]=P):P=t[28],i?.cwd,i?.worktreePath;let F;t[29]===P?F=t[30]:(F=P(),t[29]=P,t[30]=F);let I=F;if(!x||!k)return null;let L;t[31]===r.splitDirection?L=t[32]:(L=r.splitDirection===`vertical`?{splitDirection:`vertical`}:{},t[31]=r.splitDirection,t[32]=L);let R;t[33]!==r.id||t[34]!==r.terminalIds||t[35]!==L?(R=[{id:r.id,terminalIds:r.terminalIds,...L}],t[33]=r.id,t[34]=r.terminalIds,t[35]=L,t[36]=R):R=t[36];let z;return t[37]!==g||t[38]!==k||t[39]!==a||t[40]!==o||t[41]!==h||t[42]!==d||t[43]!==s||t[44]!==f||t[45]!==u||t[46]!==c||t[47]!==l||t[48]!==j||t[49]!==p||t[50]!==m||t[51]!==r.activeTerminalId||t[52]!==r.id||t[53]!==r.terminalIds||t[54]!==R||t[55]!==N||t[56]!==I||t[57]!==n||t[58]!==D?(z=(0,Y.jsx)(G0,{mode:`panel`,threadRef:n,threadId:n.threadId,cwd:k,worktreePath:D,runtimeEnv:j,height:0,terminalIds:r.terminalIds,activeTerminalId:r.activeTerminalId,terminalGroups:R,activeTerminalGroupId:r.id,focusRequestId:a,onSplitTerminal:c,onSplitTerminalVertical:l,onNewTerminal:u,splitShortcutLabel:p,splitVerticalShortcutLabel:m,newShortcutLabel:h,closeShortcutLabel:g,onActiveTerminalChange:d,onCloseTerminal:f,onHeightChange:Mat,onAddTerminalContext:s,terminalLabelsById:N,terminalLaunchLocationsById:I,keybindings:o}),t[37]=g,t[38]=k,t[39]=a,t[40]=o,t[41]=h,t[42]=d,t[43]=s,t[44]=f,t[45]=u,t[46]=c,t[47]=l,t[48]=j,t[49]=p,t[50]=m,t[51]=r.activeTerminalId,t[52]=r.id,t[53]=r.terminalIds,t[54]=R,t[55]=N,t[56]=I,t[57]=n,t[58]=D,t[59]=z):z=t[59],z});function yat(e){return e instanceof Error?e.message:`An error occurred.`}function bat(e){let{environmentId:t,threadId:n,routeKind:r,onDiffPanelOpen:i,reserveTitleBarControlInset:a=!0,forceExpandedMobileComposer:o=!1}=e,s=r===`draft`?e.draftId:null,c=dx(),l=(0,J.useMemo)(()=>Pa(t,n),[t,n]),d=(0,J.useMemo)(()=>Sr(l),[l]),p=pe(Fy.update,{reportFailure:!1}),m=pe(eg.open,`terminal open`),h=pe(eg.write,`terminal write`),g=pe(eg.close,`terminal close`),_=pe(Ly.create,{reportFailure:!1}),v=pe(Ly.delete,{reportFailure:!1}),y=pe(Ly.archive,{reportFailure:!1}),b=pe(Ly.settle,{reportFailure:!1}),x=pe(Ly.snooze,{reportFailure:!1}),S=pe(Ly.updateMetadata,{reportFailure:!1}),C=pe(Ox.switchRef,{reportFailure:!1}),T=pe(Ly.setRuntimeMode,{reportFailure:!1}),E=pe(Ly.setInteractionMode,{reportFailure:!1}),D=pe(Ly.startTurn,{reportFailure:!1}),O=pe(Ly.interruptTurn,{reportFailure:!1}),k=pe(Ly.retryTurn,{reportFailure:!1}),A=pe(Ly.respondToApproval,{reportFailure:!1}),j=pe(Ly.respondToUserInput,{reportFailure:!1}),M=pe(Ly.rejectUserInput,{reportFailure:!1}),N=pe(Ly.revertCheckpoint,{reportFailure:!1}),P=pe(Sb.open,{reportFailure:!1}),F=pe(Sb.close,`preview close`),{environments:I}=Ds(),L=f(),R=pe(ji.retryNow,{reportFailure:!1}),z=(0,J.useMemo)(()=>new Map(I.map(e=>[e.environmentId,e])),[I]),B=r===`server`?l:e.draftId,V=Xy(l),H=Ag(e=>e.markThreadVisited),U=Ag(e=>e.threadLastVisitedAtById[d]),W=Dne(t),G=Kt(si),te=ki(e=>e.setStickyModelSelection),ne=W.timestampFormat,re=W.autoOpenPlanSidebar,ie=Vp(),{resolvedTheme:ae}=lO(),oe=ki(e=>e.getComposerDraft(B)?.runtimeMode??null),se=ki(e=>e.getComposerDraft(B)?.interactionMode??null),ce=ki(e=>e.getComposerDraft(B)?.activeProvider??null),le=ki(e=>e.setPrompt),ue=ki(e=>e.addImages),de=ki(e=>e.setTerminalContexts),fe=ki(e=>e.setElementContexts),me=ki(e=>e.setPreviewAnnotations),he=ki(e=>e.setReviewComments),ge=ki(e=>e.setModelSelection),_e=ki(e=>e.setRuntimeMode),ve=ki(e=>e.setInteractionMode),ye=ki(e=>e.clearComposerContent),xe=ki(e=>e.setDraftThreadContext),Se=ki(e=>r===`server`?e.getDraftSessionByRef(l):s?e.getDraftSession(s):null),Ce=(0,J.useRef)(``),we=(0,J.useRef)([]),K=(0,J.useRef)([]),Te=(0,J.useRef)([]),Ee=(0,J.useRef)(null),De=MD()??Ee,[Oe,ke]=(0,J.useState)(!1),[Ae,je]=(0,J.useState)(null),[Me,Ne]=(0,J.useState)([]),Pe=(0,J.useRef)(Me);Pe.current=Me;let[Fe,Ie]=(0,J.useState)({}),[Le,Re]=(0,J.useState)({}),[ze,Be]=(0,J.useState)(!1),[Ve,He]=(0,J.useState)(!1),[Ue,We]=(0,J.useState)(null),[Ge,Ke]=(0,J.useState)([]),[qe,Je]=(0,J.useState)([]),[Ye,Xe]=(0,J.useState)({}),[Ze,Qe]=(0,J.useState)({}),$e=lC(oje),et=(0,J.useRef)(null),tt=(0,J.useRef)(!1),[rt,it]=(0,J.useState)(0),[at,ot]=(0,J.useState)(null),[st,ct]=(0,J.useState)({}),[lt,ut]=(0,J.useState)(null),[dt,ft]=(0,J.useState)(),[pt,mt]=(0,J.useState)({}),[ht,gt]=Rn(i6e,{},a6e),_t=(0,J.useRef)(null),[vt,yt]=(0,J.useState)(null),[bt,xt]=(0,J.useState)(0),St=(0,J.useRef)(!0),wt=(0,J.useRef)({}),Tt=(0,J.useRef)({}),Et=(0,J.useRef)(!1),Dt=(0,J.useRef)({});(0,J.useLayoutEffect)(()=>{if(!vt)return;let e=()=>{let e=Math.ceil(vt.getBoundingClientRect().height);e<=0||xt(t=>t===e?t:e)};if(e(),typeof ResizeObserver>`u`)return;let t=new ResizeObserver(e);return t.observe(vt),()=>t.disconnect()},[vt]);let Ot=xb(e=>vb(e.terminalUiStateByThreadKey,l)),kt=xb(Gs(e=>Object.entries(e.terminalUiStateByThreadKey).flatMap(([e,t])=>t.terminalOpen?[e]:[]))),At=xb(e=>e.setTerminalOpen),jt=xb(e=>e.ensureTerminal),Mt=xb(e=>e.splitTerminal),Nt=xb(e=>e.splitTerminalVertical),Pt=xb(e=>e.newTerminal),Ft=xb(e=>e.setActiveTerminal),It=xb(e=>e.closeTerminal),Lt=Uy(),Rt=(0,J.useMemo)(()=>Lt.map(Sr),[Lt]),Bt=ki(e=>e.draftThreadsByThreadKey),Vt=(0,J.useMemo)(()=>Object.values(Bt).map(e=>Sr(Pa(e.environmentId,e.threadId))),[Bt]),[Ht,Ut]=(0,J.useState)([]),Wt=(0,J.useMemo)(()=>Ht.flatMap(e=>{let t=au(e);return t?[{key:e,threadRef:t}]:[]}),[Ht]),Gt=qy(Se?Vu(Se.environmentId,Se.projectId):null),qt=V?null:(s?Fe[s]?.message:null)??null,Jt=Le[d]?.message??null;(0,J.useEffect)(()=>{if(!V||!s)return;let e=Fe[s];e!==void 0&&(Ie(e=>{if(e[s]===void 0)return e;let t={...e};return delete t[s],t}),Re(t=>{let n=t[d];return n!==void 0&&(n.at>e.at||n.message===e.message)?t:{...t,[d]:e}}))},[s,Fe,d,V]);let Yt=(0,J.useMemo)(()=>Se?c6e(n,Se,Gt?.defaultModelSelection??sr):void 0,[Se,Gt?.defaultModelSelection,n]),Xt=V!==null,Qt=Xt?V:Yt,$t=Xt?Jt??V?.session?.lastError??null:qt,en=oe??Qt?.runtimeMode??`full-access`,tn=se??Qt?.interactionMode??`default`,nn=!Xt&&Yt!==void 0,rn=Qt?.id??null,an=ng({environmentId:Qt?.environmentId??null,threadId:rn}),on=tg({environmentId:Qt?.environmentId??null,threadId:rn}),sn=(0,J.useMemo)(()=>rn===null?[]:on.filter(e=>e.target.threadId===rn),[rn,on]),cn=(0,J.useMemo)(()=>sn.map(e=>e.target.terminalId),[sn]),ln=(0,J.useMemo)(()=>[...new Set([...cn,...Ot.terminalIds])],[cn,Ot.terminalIds]),un=(0,J.useMemo)(()=>{let e=new Map;for(let t of sn)e.set(t.target.terminalId,wF(t.target.terminalId,t.state.summary));return e},[sn]),dn=(0,J.useMemo)(()=>Qt?Pa(Qt.environmentId,Qt.id):null,[Qt]),fn=dn?Sr(dn):null,[pn,mn]=(0,J.useState)({threadKey:fn,messageId:null});pn.threadKey!==fn&&mn({threadKey:fn,messageId:null});let gn=pn.messageId,_n=Ta(e=>ta(e.byThreadKey,dn)),vn=_n===`diff`,yn=Ta(e=>Mu(e.byThreadKey,dn)),bn=Ta(e=>Xl(e.byThreadKey,dn)),xn=bn?.kind===`file`?bn:null,Sn=Wb(dn),Cn=iI(e=>aI(e.byThreadKey,dn)),wn=(0,J.useMemo)(()=>new Set(yn.surfaces.flatMap(e=>e.kind===`terminal`?e.terminalIds:[])),[yn.surfaces]),Tn=_n===`preview`&&Yb(),En=yn.isOpen,Dn=En&&!$e,On=Dn&&Ue===d,kn=En&&!$e;(0,J.useEffect)(()=>{dn&&Ta.getState().reconcileBrowserSurfaces(dn,Object.keys(Sn.sessions))},[Sn.sessions,dn]),(0,J.useEffect)(()=>{if(!dn||!Cn)return;let e=!!Sn.sessions[Cn.tabId],t=Tn&&bn?.kind===`preview`&&bn.resourceId===Cn.tabId;(!e||t)&&iI.getState().close(dn)},[Cn,Sn.sessions,bn,dn,Tn]);let An=_n===`plan`,Mn=(0,J.useMemo)(()=>{let e=new Set([...Rt,...Vt]);return kt.filter(t=>e.has(t))},[Vt,kt,Rt]),Nn=Qt?.latestTurn??null,Pn=(0,J.useMemo)(()=>{let e=Nn?.sourceProposedPlan?.threadId;return!Qt||!e||e===Qt.id?null:Pa(Qt.environmentId,e)},[Nn?.sourceProposedPlan?.threadId,Qt]),Fn=bse(Pn),In=(0,J.useMemo)(()=>{if(!Qt)return[];let e=[{id:Qt.id,proposedPlans:Qt.proposedPlans}];return Pn&&e.push({id:Pn.threadId,proposedPlans:Fn}),e},[Qt,Pn,Fn]);(0,J.useEffect)(()=>{Ut(e=>{let t=u6e({currentThreadIds:e,openThreadIds:Mn,activeThreadId:fn,activeThreadTerminalOpen:!!(fn&&Ot.terminalOpen),maxHiddenThreadCount:10});return e.length===t.length&&e.every((e,n)=>e===t[n])?e:t})},[fn,Mn,Ot.terminalOpen]);let Ln=Bg(Nn,Qt?.session??null),zn=Qt?Vu(Qt.environmentId,Qt.projectId):null,Bn=qy(zn),Vn=(0,J.useCallback)(()=>{o6e(zn,c)},[zn,c]),Hn=Zt(Qt?Ny.stateAtom(Qt.environmentId):null).data?.snapshot._tag===`Some`,Un=Bn?`${Bn.environmentId}:${Bn.workspaceRoot}`:null,[Wn,Gn]=(0,J.useState)(()=>new Map),Kn=Un?Wn.get(Un)??y9:y9,qn=(0,J.useCallback)((e,t)=>{Un&&Gn(n=>{let r=n.get(Un)??y9,i=`file:${e}`;if(r.has(i)===t)return n;let a=new Set(r);t?a.add(i):a.delete(i);let o=new Map(n);return a.size===0?o.delete(Un):o.set(Un,a),o})},[Un]),Jn=(0,J.useMemo)(()=>bje(Bn?.scripts),[Bn?.scripts]);(0,J.useEffect)(()=>{!dn||!Hn||Ta.getState().reconcileFileSurfaces(dn,Bn!==null)},[Hn,Bn,dn]);let Yn=Wy(),Zn=L?.environmentId??null,Qn=Qt==null?null:z.get(Qt.environmentId)??null,$n=Qn?.connection.phase??`available`,er=Qn!==null&&$n!==`connected`,tr=Qn?.label??null,nr=(0,J.useMemo)(()=>!er||!tr||!Qn?null:{environmentId:Qn.environmentId,label:tr,connection:Qn.connection},[Qn,er,tr]),rr=(0,J.useCallback)(async e=>{let t=await R(e);if(t._tag===`Failure`&&!Ct(t)){let e=Xn(t);uS.add(lS({type:`error`,title:`Could not reconnect environment`,description:e instanceof Error?e.message:`Failed to reconnect.`}))}},[R]),ir=tx(W),ar=(0,J.useMemo)(()=>{if(!Bn)return[];let e=sx(Bn,ir),t=Yn.filter(t=>sx(t,ir)===e),n=new Set,r=[];for(let e of t){if(n.has(e.environmentId))continue;n.add(e.environmentId);let t=e.environmentId===Zn,i=z.get(e.environmentId)?.label??e.environmentId;r.push({environmentId:e.environmentId,projectId:e.id,label:i,isPrimary:t})}return r.sort((e,t)=>e.isPrimary===t.isPrimary?e.label.localeCompare(t.label):e.isPrimary?-1:1),r},[Bn,Yn,ir,Zn,z]),or=ar.length>1;(0,J.useEffect)(()=>{if(!V?.id)return;let e=Date.parse(V.updatedAt);if(Number.isNaN(e))return;let t=U?Date.parse(U):NaN;!Number.isNaN(t)&&t>=e||H(Sr(Pa(V.environmentId,V.id)),V.updatedAt)},[U,H,V?.environmentId,V?.id,V?.updatedAt]);let cr=ce??null,lr=Qt?.modelSelection.instanceId??Bn?.defaultModelSelection?.instanceId??null,ur=y6e({thread:Qt,selectedProvider:cr,threadProvider:lr}),dr=Qt?Qn?.serverConfig??null:L?.serverConfig??null,mr=zP(dr),hr=mr&&Qt?ake(Qt.environmentId,mr):null,[gr,_r]=(0,J.useState)(null),vr=hr===gr||ske(hr),br=mr!==null&&hr!==null&&!vr,xr=I.length>1&&Qt?`${z.get(Qt.environmentId)?.label??dr?.environment.label??Qt.environmentId} server`:`server`,Cr=mr&&Qt?Qt.environmentId:null,wr=BP(dr),Tr=(0,J.useMemo)(()=>{let e=[];if(nr){let t=nr.connection,n=t.phase===`connecting`||t.phase===`reconnecting`;e.push({id:`environment-unavailable:${nr.environmentId}`,variant:t.phase===`error`?`error`:`warning`,icon:(0,Y.jsx)(Ute,{}),title:`${nr.label}: ${ee(t)}`,description:t.error??`Reconnect this environment before sending messages or running actions.`,actions:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(hc,{size:`xs`,disabled:n,onClick:()=>void rr(nr.environmentId),children:n?`Reconnecting...`:`Reconnect`}),(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,onClick:()=>void ie({to:`/settings/connections`}),children:`Connections`})]})})}return br&&mr&&hr&&Cr&&e.push({id:`version-mismatch:${hr}`,variant:`warning`,icon:(0,Y.jsx)(vh,{}),title:`Client and server versions differ`,description:(0,Y.jsxs)(Y.Fragment,{children:[`Client `,mr.clientVersion,` is connected to `,xr,` `,mr.serverVersion,`.`,` `,ike(wr,xr)]}),actions:wr===`desktop-managed`?void 0:(0,Y.jsx)(ZP,{environmentId:Cr,serverLabel:xr,selfUpdate:wr,targetVersion:mr.clientVersion}),dismissLabel:`Dismiss version mismatch warning`,onDismiss:()=>{cke(hr),_r(hr)}}),e},[nr,rr,ie,_r,br,mr,hr,Cr,wr,xr]),Er=dr?.providers??Qit,Dr=hu(Er,cr??lr),Or=ur??Dr,kr=rie(Qt?.session??null),Ar=Qt?.activities??Zit,Mr=(0,J.useMemo)(()=>Dre(Ar),[Ar]),Nr=(0,J.useMemo)(()=>xre(Ar),[Ar]),Pr=(0,J.useMemo)(()=>Cre(Ar),[Ar]),Fr=Pr[0]??null,Ir=(0,J.useMemo)(()=>Fr?Ye[Fr.requestId]??eat:eat,[Fr,Ye]),Lr=Fr?Ze[Fr.requestId]??0:0,Rr=(0,J.useMemo)(()=>Fr?KF(Fr.questions,Ir,Lr):null,[Ir,Lr,Fr]),zr=(0,J.useMemo)(()=>Fr?GF(Fr.questions,Ir):null,[Ir,Fr]),Br=Fr?qe.includes(Fr.requestId):!1,Vr=(0,J.useMemo)(()=>Ln?Ug(Qt?.proposedPlans??[],Nn?.turnId??null):null,[Nn?.turnId,Qt?.proposedPlans,Ln]),Hr=(0,J.useMemo)(()=>Tre({threads:In,latestTurn:Nn,latestTurnSettled:Ln,threadId:Qt?.id??null}),[Nn,Qt?.id,Ln,In]),Ur=(0,J.useMemo)(()=>wre(Ar,Nn?.turnId??void 0),[Nn?.turnId,Ar]),Wr=Hr||tn===`plan`?`Plan`:`Tasks`,Gr=Pr.length===0&&tn===`plan`&&Ln&&Ere(Vr),Kr=Nr[0]??null,{beginLocalDispatch:qr,resetLocalDispatch:Jr,localDispatchStartedAt:Yr,isPreparingWorktree:Xr,isSendBusy:Zr}=pat({activeThread:Qt,activeLatestTurn:Nn,phase:kr,activePendingApproval:Kr?.requestId??null,activePendingUserInput:Fr?.requestId??null,threadError:$t}),Qr=kr===`running`||Zr||ze||Ve,$r=yre(Nn,Qt?.session??null,Yr);(0,J.useEffect)(()=>{wt.current=st},[st]);let ei=(0,J.useCallback)((e,t)=>{delete Tt.current[e];let n=t??wt.current[e]??[];ct(t=>{if(!(e in t))return t;let n={...t};return delete n[e],wt.current=n,n});for(let e of n)X0(e)},[]),ti=(0,J.useCallback)(()=>{Tt.current={};for(let e of Object.values(wt.current))for(let t of e)X0(t);wt.current={},ct({})},[]);(0,J.useEffect)(()=>()=>{ti();for(let e of Pe.current)Z0(e)},[ti]);let ni=(0,J.useCallback)((e,t)=>{if(t.length===0)return;let n=wt.current[e]??[],r=new Set(t);for(let e of n)r.has(e)||X0(e);ct(n=>{let r={...n,[e]:t};return wt.current=r,r})},[]),ri=Qt?.messages,ii=(0,J.useMemo)(()=>{let e=new Set;for(let t of ri??[])for(let n of t.attachments??[])e.add(n.id);return[...e]},[ri]),oi=Fie(t,(0,J.useMemo)(()=>ii.map(e=>({_tag:`attachment`,attachmentId:e})),[ii])),ci=(0,J.useMemo)(()=>new Map(ii.flatMap((e,t)=>{let n=oi[t];return n?[[e,n]]:[]})),[ii,oi]),li=(0,J.useMemo)(()=>ri?ri.map(e=>!e.attachments||e.attachments.length===0?e:{...e,attachments:e.attachments.map(e=>{let t=ci.get(e.id);return t?{...e,previewUrl:t}:e})}):[],[ci,ri]);(0,J.useEffect)(()=>{if(typeof Image>`u`||li.length===0)return;let e=[],t=new Map(li.filter(e=>e.role===`user`).map(e=>[String(e.id),e]));for(let[n,r]of Object.entries(st)){if(Tt.current[n])continue;let i=t.get(n);if(!i?.attachments||i.attachments.length===0)continue;let a=i.attachments.flatMap(e=>e.type===`image`&&e.previewUrl?[e.previewUrl]:[]);if(a.length===0||a.length!==r.length||a.some(e=>e.startsWith(`blob:`)))continue;Tt.current[n]=!0;let o=!1,s=[];Promise.all(a.map(e=>new Promise((t,r)=>{let i=new Image;s.push(i),i.addEventListener(`load`,()=>t(),{once:!0}),i.addEventListener(`error`,()=>r(Error(`Failed to load server preview for ${n}.`)),{once:!0}),i.src=e}))).then(()=>{o||ei(n,r)}).catch(()=>{o||delete Tt.current[n]}),e.push(()=>{o=!0,delete Tt.current[n];for(let e of s)e.src=``})}return()=>{for(let t of e)t()}},[st,ei,li]);let ui=(0,J.useMemo)(()=>{let e=li,t=Object.keys(st).length===0?e:e.map(e=>{if(e.role!==`user`||!e.attachments||e.attachments.length===0)return e;let t=st[e.id];if(!t||t.length===0)return e;let n=!1,r=0,i=e.attachments.map(e=>{if(e.type!==`image`)return e;let i=t[r];return r+=1,!i||e.previewUrl===i?e:(n=!0,{...e,previewUrl:i})});return n?{...e,attachments:i}:e});if(Me.length===0)return t;let n=new Set(t.map(e=>e.id)),r=Me.filter(e=>!n.has(e.id));return r.length===0?t:[...t,...r]},[st,li,Me]),di=(0,J.useMemo)(()=>tie(ui,Qt?.proposedPlans??[],Mr),[Qt?.proposedPlans,ui,Mr]),[fi,pi]=(0,J.useState)(null),mi=fn!==null&&fi===fn,hi=nn&&di.length===0&&!Qr&&!mi,[gi,_i,vi]=tat(hi),{turnDiffSummaries:yi,inferredCheckpointTurnCountByTurnId:bi}=$F(Qt),xi=(0,J.useMemo)(()=>{let e=new Map;for(let t of yi)t.assistantMessageId&&e.set(t.assistantMessageId,t);return e},[yi]),Si=(0,J.useMemo)(()=>{let e=new Map;for(let t=0;t<di.length;t+=1){let n=di[t];if(!(!n||n.kind!==`message`||n.message.role!==`user`))for(let r=t+1;r<di.length;r+=1){let t=di[r];if(!t||t.kind!==`message`)continue;if(t.message.role===`user`)break;let i=xi.get(t.message.id);if(!i)continue;let a=i.checkpointTurnCount??bi[i.turnId];if(typeof a!=`number`)break;e.set(n.message.id,Math.max(0,a-1));break}}return e},[bi,di,xi]),Ci=Bn?bF({project:{cwd:Bn.workspaceRoot},worktreePath:Qt?.worktreePath??null}):null,wi=Qt?.worktreePath??Ci,Ti=Zt(wi===null?null:Ox.status({environmentId:t,input:{cwd:wi}})),Ei=Kt(w),Di=Kt(zt),Oi=Er.find(e=>e.instanceId===cr)?.instanceId??null??Qt?.session?.providerInstanceId??Qt?.modelSelection.instanceId??Bn?.defaultModelSelection?.instanceId??null,Ai=(0,J.useMemo)(()=>{if(Oi)return Er.find(e=>e.instanceId===Oi)??null;let e=Bl(Or);return Er.find(t=>t.instanceId===e)??null},[Oi,Er,Or]),Mi=Nit(Ai),[Ni,Pi]=(0,J.useState)(null);(0,J.useEffect)(()=>{Mi===null&&Ni!==null&&Pi(null)},[Ni,Mi]);let Fi=Pit(Ai,Ni)?Ai:null,Ii=!!$t||Fi!==null,Li=Bn?.workspaceRoot??null,zi=Qt?.worktreePath??null,Bi=zi??Li??void 0,Vi=at?.threadId===rn?at:null,Hi=Ti.data?.isRepo??!0,Ui=Hi&&Bn!==null,Wi=Ti.data?.hasWorkingTreeChanges===!0?`unstaged`:`branch`,Gi=Ti.data?`resolved`:`pending`,Ki=(0,J.useMemo)(()=>({context:{terminalFocus:!0,terminalOpen:!!Ot.terminalOpen}}),[Ot.terminalOpen]),qi=(0,J.useMemo)(()=>jh(Ei,`terminal.split`,Ki),[Ei,Ki]),Ji=(0,J.useMemo)(()=>jh(Ei,`terminal.splitVertical`,Ki),[Ei,Ki]),Yi=(0,J.useMemo)(()=>jh(Ei,`terminal.new`,Ki),[Ei,Ki]),Zi=(0,J.useMemo)(()=>jh(Ei,`terminal.close`,Ki),[Ei,Ki]),Qi=(0,J.useCallback)(()=>{Xt&&(vn||i?.(),dn&&Ta.getState().toggle(dn,`diff`))},[dn,vn,Xt,i]),$i=!!(Qt&&(Qt.messages.length>0||Qt.session!==null&&Qt.session.status!==`stopped`)),ea=(0,J.useCallback)(e=>{if($i||!s)return;let t=ar.find(t=>t.environmentId===e);t&&xe(s,{projectRef:Vu(t.environmentId,t.projectId)})},[s,$i,ar,xe]),na=((Ot.terminalGroups.find(e=>e.id===Ot.activeTerminalGroupId)??Ot.terminalGroups.find(e=>e.terminalIds.includes(Ot.activeTerminalId))??null)?.terminalIds.length??0)>=4,ra=(0,J.useCallback)((e,t)=>{if(!e)return;let n=hne(t),r={message:n,at:Date.now()};if(V&&e===l.threadId&&V.environmentId===l.environmentId&&V.id===e){Re(e=>(e[d]?.message??null)===n?e:{...e,[d]:r});return}let i=s??e;Ie(e=>(e[i]?.message??null)===n?e:{...e,[i]:r})},[s,d,l,V]),ia=(0,J.useCallback)(()=>{De.current?.focusAtEnd()},[De]),aa=(0,J.useCallback)(()=>{window.requestAnimationFrame(()=>{ia()})},[ia]),oa=(0,J.useCallback)(e=>{De.current?.addTerminalContext(e)},[De]),la=(0,J.useCallback)(e=>{dn&&At(dn,e)},[dn,At]),ua=(0,J.useCallback)(()=>{if(!dn)return;let e=!Ot.terminalOpen;if(e&&Ot.terminalIds.length===0){if(!rn||!Bn)return;let e=Ci??Bn.workspaceRoot;if(!e)return;let n=TF([...ln,...wn]);jt(dn,n,{open:!0}),m({environmentId:t,input:{threadId:rn,terminalId:n,cwd:e,...zi==null?{}:{worktreePath:zi},env:xF({project:{cwd:Bn.workspaceRoot},worktreePath:zi})}});return}la(e)},[ln,Bn,rn,dn,zi,t,Ci,m,wn,la,jt,Ot.terminalIds.length,Ot.terminalOpen]),da=(0,J.useCallback)((e=`horizontal`)=>{if(!dn||na||!rn||!Bn)return;let n=Ci??Bn.workspaceRoot;if(!n)return;let r=TF(ln);e===`vertical`?Nt(dn,r):Mt(dn,r),it(e=>e+1),m({environmentId:t,input:{threadId:rn,terminalId:r,cwd:n,...zi==null?{}:{worktreePath:zi},env:xF({project:{cwd:Bn.workspaceRoot},worktreePath:zi})}})},[Bn,ln,rn,dn,m,zi,t,Ci,na,Mt,Nt]),fa=(0,J.useCallback)(()=>{if(!dn||!rn||!Bn)return;let e=Ci??Bn.workspaceRoot;if(!e)return;let n=TF(ln);Pt(dn,n),it(e=>e+1),m({environmentId:t,input:{threadId:rn,terminalId:n,cwd:e,...zi==null?{}:{worktreePath:zi},env:xF({project:{cwd:Bn.workspaceRoot},worktreePath:zi})}})},[Bn,ln,rn,dn,m,zi,t,Ci,Pt]),pa=(0,J.useCallback)(e=>{if(!rn||!dn)return;let n=()=>h({environmentId:t,input:{threadId:rn,terminalId:e,data:`exit
|
|
581
581
|
`}});(async()=>{let r=await g({environmentId:t,input:{threadId:rn,terminalId:e,deleteHistory:!0}});r._tag===`Failure`&&!Ct(r)&&await n()})(),It(dn,e),it(e=>e+1)},[rn,dn,g,t,It,h]),ma=(0,J.useCallback)(async(e,n)=>{if(!rn||!Bn||!Qt)return;n?.rememberAsLastInvoked!==!1&>(t=>t[Bn.id]===e.id?t:{...t,[Bn.id]:e.id});let r=n?.cwd??Ci??Bn.workspaceRoot,i=Ot.activeTerminalId||ln[0]||`term-1`,a=an.includes(i),o=!!n?.preferNewTerminal||a,s=n?.worktreePath??Qt.worktreePath??null;if(ot({threadId:rn,cwd:r,worktreePath:s}),la(!0),!dn)return;it(e=>e+1);let c=xF({project:{cwd:Bn.workspaceRoot},worktreePath:s,...n?.env?{extraEnv:n.env}:{}}),l=o?TF(ln):i,u=o?{threadId:rn,terminalId:l,cwd:r,...s===null?{}:{worktreePath:s},env:c,cols:dat,rows:fat}:{threadId:rn,terminalId:l,cwd:r,...s===null?{}:{worktreePath:s},env:c};o?Pt(dn,l):Ft(dn,l);let d=await m({environmentId:t,input:u});if(d._tag===`Failure`){if(!Ct(d)){let t=Xn(d);ra(rn,t instanceof Error?t.message:`Failed to run script "${e.name}".`)}return}let f=await h({environmentId:t,input:{threadId:rn,terminalId:l,data:`${e.command}\r`}});if(f._tag===`Failure`&&!Ct(f)){let t=Xn(f);ra(rn,t instanceof Error?t.message:`Failed to run script "${e.name}".`)}},[Bn,Qt,rn,dn,Ci,la,ra,Pt,Ft,gt,t,m,ln,an,Ot.activeTerminalId,h]),ha=(0,J.useCallback)(async e=>Ri(await p({environmentId:t,input:{projectId:e.projectId,scripts:e.nextScripts}}),()=>void 0),[t,p]),ga=(0,J.useCallback)(async e=>{if(!Bn)return Vo(void 0);let t=J0(e.name,Bn.scripts.map(e=>e.id)),n=K0(t,e),r=e.runOnWorktreeCreate?[...Bn.scripts.map(e=>e.runOnWorktreeCreate?{...e,runOnWorktreeCreate:!1}:e),n]:[...Bn.scripts,n];return ha({projectId:Bn.id,projectCwd:Bn.workspaceRoot,previousScripts:Bn.scripts,nextScripts:r,keybinding:e.keybinding,keybindingCommand:q0(t)})},[Bn,ha]),_a=(0,J.useCallback)(async(e,t)=>{if(!Bn)return Vo(void 0);let n=Bn.scripts.find(t=>t.id===e);if(!n)return ko(fr(Error(`Script not found.`)));let r=K0(n.id,t),i=Bn.scripts.map(n=>n.id===e?r:t.runOnWorktreeCreate?{...n,runOnWorktreeCreate:!1}:n);return ha({projectId:Bn.id,projectCwd:Bn.workspaceRoot,previousScripts:Bn.scripts,nextScripts:i,keybinding:t.keybinding,keybindingCommand:q0(e)})},[Bn,ha]),va=(0,J.useCallback)(async e=>{if(!Bn)return Vo(void 0);let t=Bn.scripts.filter(t=>t.id!==e),n=Bn.scripts.find(t=>t.id===e)?.name,r=await ha({projectId:Bn.id,projectCwd:Bn.workspaceRoot,previousScripts:Bn.scripts,nextScripts:t,keybinding:null,keybindingCommand:q0(e)});if(r._tag===`Success`)uS.add({type:`success`,title:`Deleted action "${n??`Unknown`}"`});else if(!Ct(r)){let e=Xn(r);uS.add(lS({type:`error`,title:`Could not delete action`,description:e instanceof Error?e.message:`An unexpected error occurred.`}))}return r},[Bn,ha]),ya=(0,J.useCallback)(e=>{e!==en&&(_e(B,e),nn&&xe(B,{runtimeMode:e}),aa())},[nn,en,aa,B,_e,xe]),ba=(0,J.useCallback)(e=>{e!==tn&&(ve(B,e),nn&&xe(B,{interactionMode:e}),aa())},[tn,nn,aa,B,ve,xe]),xa=(0,J.useCallback)(()=>{ba(tn===`plan`?`default`:`plan`)},[ba,tn]),Sa=(0,J.useCallback)(()=>{et.current=Ur?.turnId??Hr?.turnId??`__dismissed__`},[Ur?.turnId,Hr?.turnId]),Ca=(0,J.useCallback)(()=>{dn&&(An?Sa():et.current=null,Ta.getState().toggle(dn,`plan`))},[dn,Sa,An]),wa=(0,J.useCallback)(()=>{dn&&(We(null),Ta.getState().close(dn),Sa())},[dn,Sa]),Ea=(0,J.useCallback)(()=>{dn&&cje({threadRef:dn,openPreview:P})},[dn,P]),Da=(0,J.useCallback)(()=>{!dn||!Xt||!Hi||(An&&Sa(),Ta.getState().open(dn,`diff`),i?.())},[dn,Sa,Hi,Xt,i,An]),Oa=(0,J.useCallback)(()=>{!dn||!Bn||Ta.getState().open(dn,`files`)},[Bn,dn]),ka=(0,J.useCallback)(e=>{!dn||!Bn||Ta.getState().openFile(dn,e)},[Bn,dn]),Aa=(0,J.useCallback)(()=>{if(!dn||!Yb())return;if(Tn){Ta.getState().close(dn);return}let e=Sn.activeTabId;e?Ta.getState().openBrowser(dn,e):Ea()},[Sn.activeTabId,dn,Ea,Tn]),ja=(0,J.useCallback)(()=>{dn&&(We(null),Ta.getState().close(dn))},[dn]),Ma=(0,J.useCallback)(()=>{if(!dn||!rn||!Bn)return;let e=Ci??Bn.workspaceRoot,t=TF([...ln,...wn]);Ta.getState().openTerminal(dn,t),it(e=>e+1),m({environmentId:dn.environmentId,input:{threadId:rn,terminalId:t,cwd:e,...zi==null?{}:{worktreePath:zi},env:xF({project:{cwd:Bn.workspaceRoot},worktreePath:zi})}})},[ln,Bn,rn,dn,zi,Ci,m,wn]),Na=(0,J.useCallback)((e=`horizontal`)=>{if(!dn||!rn||!Bn||bn?.kind!==`terminal`||bn.terminalIds.length>=4)return;let t=TF([...ln,...wn]),n=Ci??Bn.workspaceRoot;Ta.getState().splitTerminal(dn,bn.id,t,e),it(e=>e+1),m({environmentId:dn.environmentId,input:{threadId:rn,terminalId:t,cwd:n,...zi==null?{}:{worktreePath:zi},env:xF({project:{cwd:Bn.workspaceRoot},worktreePath:zi})}})},[ln,Bn,bn,rn,dn,zi,Ci,m,wn]),Fa=(0,J.useCallback)(()=>{Na(`vertical`)},[Na]),Ia=(0,J.useCallback)(e=>{!dn||bn?.kind!==`terminal`||(Ta.getState().activateTerminal(dn,bn.id,e),it(e=>e+1))},[bn,dn]),La=(0,J.useCallback)(e=>{!dn||bn?.kind!==`terminal`||(g({environmentId:dn.environmentId,input:{threadId:dn.threadId,terminalId:e,deleteHistory:!0}}),It(dn,e),Ta.getState().closeTerminal(dn,bn.id,e),it(e=>e+1))},[bn,dn,g,It]),Ra=(0,J.useCallback)(e=>{dn&&(e.kind===`plan`?et.current=null:An&&Sa(),Ta.getState().activateSurface(dn,e.id),e.kind===`preview`&&e.resourceId&&Qse(dn,e.resourceId),e.kind===`terminal`&&it(e=>e+1),e.kind===`diff`&&!vn&&i?.())},[dn,vn,Sa,i,An]),za=(0,J.useCallback)(()=>{if(dn){if(En){An?wa():ja();return}Ta.getState().toggleVisibility(dn)}},[dn,wa,ja,An,En]),Ba=(0,J.useCallback)(()=>{Dn&&We(e=>e===d?null:d)},[Dn,d]),Va=(0,J.useCallback)(e=>{if(dn){e.some(e=>e.kind===`plan`)&&Sa();for(let t of e)if(t.kind===`preview`&&t.resourceId&&lje({closePreview:F,snapshot:Sn.sessions[t.resourceId]??null,tabId:t.resourceId,threadRef:dn}),t.kind===`terminal`)for(let e of t.terminalIds)It(dn,e),g({environmentId:dn.environmentId,input:{threadId:dn.threadId,terminalId:e,deleteHistory:!0}})}},[dn,Sn.sessions,F,g,Sa,It]),Ha=(0,J.useCallback)(()=>{if(!dn)return;let e=Xl(Ta.getState().byThreadKey,dn);e?.kind===`preview`&&e.resourceId&&Qse(dn,e.resourceId)},[dn]),Ua=(0,J.useCallback)(e=>{dn&&(Va([e]),Ta.getState().closeSurface(dn,e.id),Ha())},[dn,Va,Ha]),Ga=(0,J.useCallback)(e=>{if(!dn)return;let t=yn.surfaces.filter(t=>t.id!==e.id);Va(t),Ta.getState().closeOtherSurfaces(dn,e.id),Ha()},[dn,Va,yn.surfaces,Ha]),Ka=(0,J.useCallback)(e=>{if(!dn)return;let t=yn.surfaces.findIndex(t=>t.id===e.id);if(t<0)return;let n=yn.surfaces.slice(t+1);Va(n),Ta.getState().closeSurfacesToRight(dn,e.id),Ha()},[dn,Va,yn.surfaces,Ha]),qa=(0,J.useCallback)(()=>{dn&&(Va(yn.surfaces),Ta.getState().closeAllSurfaces(dn))},[dn,Va,yn.surfaces]),Ja=(0,J.useCallback)(e=>{if(typeof window>`u`||!navigator.clipboard?.writeText){uS.add(lS({type:`error`,title:`Failed to copy path`,description:`Clipboard API unavailable.`}));return}navigator.clipboard.writeText(e).then(()=>{uS.add({type:`success`,title:`Path copied`,description:e})},e=>{uS.add(lS({type:`error`,title:`Failed to copy path`,description:e instanceof Error?e.message:`An error occurred.`}))})},[]);(0,J.useEffect)(()=>SN(e=>{e===`toggle-panel`&&Aa()}),[Aa]);let Ya=(0,J.useCallback)(async e=>{if(!V)return Vo(void 0);let n=Vo(void 0),r=s6e({currentModelSelection:V.modelSelection,...e.modelSelection?{nextModelSelection:e.modelSelection}:{},currentBranch:V.branch,...e.branch?{nextBranch:e.branch}:{}});return r&&(n=Ri(await S({environmentId:t,input:{threadId:e.threadId,...r}}),()=>void 0),n._tag===`Failure`)||e.runtimeMode!==V.runtimeMode&&(n=Ri(await T({environmentId:t,input:{threadId:e.threadId,runtimeMode:e.runtimeMode,createdAt:e.createdAt}}),()=>void 0),n._tag===`Failure`)||e.interactionMode!==V.interactionMode&&(n=Ri(await E({environmentId:t,input:{threadId:e.threadId,interactionMode:e.interactionMode,createdAt:e.createdAt}}),()=>void 0)),n},[t,V,E,T,S]),Xa=(0,J.useRef)(new Wa(()=>ke(!0),{wait:150})),Za=(0,J.useRef)(`following-end`),Qa=(0,J.useRef)(null),$a=(0,J.useRef)(null),eo=(0,J.useRef)(null),to=(0,J.useRef)(null),no=(0,J.useRef)(0),ro=(0,J.useRef)(0),io=(0,J.useRef)(null),ao=(0,J.useRef)(null),oo=(0,J.useCallback)(()=>{no.current+=1,Za.current=`free-scrolling`,ro.current=null,Qa.current=null,$a.current=null,eo.current=null,to.current=null,io.current=null,ao.current!==null&&(cancelAnimationFrame(ao.current),ao.current=null)},[]),so=(0,J.useRef)(oo);(0,J.useEffect)(()=>{so.current=oo},[oo]);let co=(0,J.useCallback)(e=>{let t=e??_t.current,n=to.current,r=t?.getState();return!t||!r||n===null?null:ZAe({state:r,anchorIndex:n,composerOverlayHeight:bt,anchorOffset:16})},[bt]),lo=(0,J.useCallback)(e=>{let t=e??_t.current,n=t?.getState();if(!t||!n||n.data.length===0)return!1;let r=n.data.length-1,i=n.positionAtIndex(r),a=n.sizeAtIndex(r);return typeof i!=`number`||typeof a!=`number`||!Number.isFinite(i)||!Number.isFinite(a)?!1:i+Math.max(1,a)>Math.max(0,(n.scrollLength??0)-bt-16)},[bt]),uo=(0,J.useCallback)((e=!1)=>{St.current=!0,Za.current=`following-end`,ro.current=no.current,Qa.current=null,to.current=null,Xa.current.cancel(),ke(!1),_t.current?.scrollToEnd?.({animated:e})},[]);(0,J.useEffect)(()=>{let e=null,t=requestAnimationFrame(()=>{let t=_t.current?.getScrollableNode();if(!t)return;let n=()=>{so.current()};t.addEventListener(`wheel`,n,{passive:!0}),t.addEventListener(`touchmove`,n,{passive:!0}),t.addEventListener(`pointerdown`,n,{passive:!0}),e=()=>{t.removeEventListener(`wheel`,n),t.removeEventListener(`touchmove`,n),t.removeEventListener(`pointerdown`,n)}});return()=>{cancelAnimationFrame(t),e?.()}},[Qt?.id]);let fo=(0,J.useCallback)((e,t)=>{if(Qa.current===e&&(Qa.current=null),to.current=t,$a.current===e)return;$a.current=e,eo.current=null;let n=r=>{requestAnimationFrame(()=>{if($a.current!==e)return;let i=_t.current;if(!i){r>0&&n(r-1);return}let a=i.getScrollableNode(),o=!1,s=()=>{if(o||(o=!0,window.clearTimeout(c),a.removeEventListener(`scrollend`,s),$a.current!==e))return;let t=i.getState().scroll;i.scrollToOffset({offset:t,animated:!1}),eo.current=e},c=window.setTimeout(s,750);a.addEventListener(`scrollend`,s,{once:!0}),i.scrollToIndex({index:t,animated:!0,viewPosition:0,viewOffset:16})})};requestAnimationFrame(()=>n(12))},[]),po=(0,J.useCallback)(e=>{if(eo.current!==e||ro.current===no.current)return;let t=_t.current?.getState().scroll;t!==void 0&&(io.current===null&&(io.current={messageId:e,offset:t,userScrollGeneration:no.current}),ao.current===null&&(ao.current=requestAnimationFrame(()=>{ao.current=null;let e=io.current;if(io.current=null,e&&eo.current===e.messageId&&e.userScrollGeneration===no.current){let t=_t.current,n=t?.getState().scroll;typeof n==`number`&&Math.abs(n-e.offset)<=2&&t?.scrollToOffset({offset:e.offset,animated:!1})}})))},[]),mo=(0,J.useCallback)(e=>{if(!e&&ro.current===no.current){Xa.current.cancel(),ke(!1);return}St.current!==e&&(St.current=e,e?(Za.current=`following-end`,ro.current=no.current,Xa.current.cancel(),ke(!1)):(Za.current=`free-scrolling`,ro.current=null,Xa.current.maybeExecute()))},[]);(0,J.useEffect)(()=>{if(!Qt?.id||ro.current!==no.current)return;let e=null,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{if(ro.current!==no.current||Qa.current!==null||$a.current!==null&&eo.current!==$a.current)return;let e=_t.current;if(e){if(Za.current===`anchoring-new-turn`){let t=co(e);if(!t||t.scrollDeltaToRevealEnd<=1)return;let n=e.getState().scroll+t.scrollDeltaToRevealEnd;e.scrollToOffset({offset:n,animated:!1});return}Za.current===`following-end`&&lo(e)&&e.scrollToEnd?.({animated:!1})}})});return()=>{cancelAnimationFrame(t),e!==null&&cancelAnimationFrame(e)}},[Qt?.id,di,co,lo]),(0,J.useEffect)(()=>{St.current=!0,Za.current=`following-end`,ro.current=no.current,Qa.current=null,$a.current=null,eo.current=null,to.current=null,Xa.current.cancel(),ke(!1),tt.current&&(tt.current=!1,dn&&Ta.getState().open(dn,`plan`)),et.current=null},[Qt?.id]),(0,J.useEffect)(()=>{if(!re||!Ur||An)return;let e=Nn?.turnId??null;if(e&&Ur.turnId!==e)return;let t=Ur.turnId??Hr?.turnId??`__dismissed__`;et.current!==t&&dn&&Ta.getState().open(dn,`plan`)},[Ur,Nn?.turnId,dn,re,An,Hr?.turnId]),(0,J.useEffect)(()=>{He(!1)},[Qt?.id]),(0,J.useEffect)(()=>{if(!Qt?.id||Ot.terminalOpen)return;let e=window.requestAnimationFrame(()=>{ia()});return()=>{window.cancelAnimationFrame(e)}},[Qt?.id,ia,Ot.terminalOpen]),(0,J.useEffect)(()=>{if(!Qt?.id||Qt.messages.length===0)return;let e=new Set(Qt.messages.map(e=>e.id)),t=Me.filter(t=>e.has(t.id));if(t.length===0)return;let n=window.setTimeout(()=>{Ne(t=>t.filter(t=>!e.has(t.id)))},0);for(let e of t){let t=f6e(e);if(t.length>0){ni(e.id,t);continue}Z0(e)}return()=>{window.clearTimeout(n)}},[Qt?.id,Qt?.messages,ni,Me]),(0,J.useEffect)(()=>{Ne(e=>{for(let t of e)Z0(t);return[]}),Jr(),je(null)},[s,Jr,n]);let ho=(0,J.useCallback)(()=>{je(null)},[]),go=Qt?.worktreePath??null,_o=PE({activeWorktreePath:go,hasServerThread:Xt,draftThreadEnvMode:nn?Se?.envMode:void 0}),vo=!!(Xt&&Qt&&Qt.messages.length===0&&Qt.worktreePath===null&&!$i),yo=vo?lt??Se?.envMode??_o:_o,bo=vo&&dt!==void 0?dt:Qt?.branch??null,xo=nn?Se?.startFromOrigin??!1:vo?pt[Qt?.id??``]??G.newWorktreesStartFromOrigin:!1,So=p6e({requestedEnvMode:yo,isGitRepo:Hi}),Co=(0,J.useMemo)(()=>Xt?FE({effectiveEnvMode:yo,activeWorktreePath:go,activeThreadBranch:bo,currentGitBranch:Ti.data?.refName??null}):null,[bo,go,yo,Ti.data?.refName,Xt]),wo=Jy(Xt?dn:null),To=qh(e=>e.sidebarAutoSettleAfterDays),Eo=S_({threadBranch:Qt?.branch??null,gitStatus:Ti.data??null}),Do=dr?.environment.capabilities.threadSettlement===!0,Oo=dr?.environment.capabilities.threadSnooze===!0,Ao=dr?.environment.capabilities.threadPinning===!0,jo=dr?.environment.capabilities.threadTitleRegeneration===!0,Mo=Gy(),No=wo?.pinnedAt!=null,Po=pe(Ly.pin,{reportFailure:!1}),Fo=pe(Ly.unpin,{reportFailure:!1}),Io=(0,J.useCallback)(async()=>{if(!dn||!Ao)return;let e=No?await Fo({environmentId:dn.environmentId,input:{threadId:dn.threadId}}):await Po({environmentId:dn.environmentId,input:{threadId:dn.threadId,orderKey:hD(Mo.filter(e=>e.pinnedAt!=null))}});if(e._tag===`Failure`&&!Ct(e)){let t=Xn(e);uS.add(lS({type:`error`,title:No?`Failed to unpin thread`:`Failed to pin thread`,description:t instanceof Error?t.message:`An error occurred.`}))}},[No,dn,Mo,Po,Ao,Fo]),Lo=kE(),Ro=wo!==null&&Oo&&Sx(wo,{now:new Date().toISOString()}),[zo,Bo]=(0,J.useState)(0);(0,J.useEffect)(()=>{if(!Ro)return;let e=Date.parse(wo?.snoozedUntil??``);if(!Number.isFinite(e))return;let t=window.setTimeout(()=>Bo(e=>e+1),Math.min(Math.max(0,e-Date.now())+50,2147483647));return()=>window.clearTimeout(t)},[wo?.snoozedUntil,Ro,zo]);let Ho=(0,J.useMemo)(()=>wo===null||!Do?!1:Cx(wo,{now:`${Lo}:00.000Z`,autoSettleAfterDays:To,changeRequestState:Eo?.state??null}),[Eo?.state,wo,To,Lo,Do]),Uo=pe(Ly.unsettle,{reportFailure:!1}),[Wo,Go]=(0,J.useState)(null),Ko=Wo!==null&&Wo===fn,qo=(0,J.useCallback)(async()=>{if(!dn)return;let e=Sr(dn);Go(e);try{let e=await Uo({environmentId:dn.environmentId,input:{threadId:dn.threadId,reason:`user`}});if(e._tag===`Failure`&&!Ct(e)){let t=Xn(e);uS.add(lS({type:`error`,title:`Failed to un-settle thread`,description:t instanceof Error?t.message:`An error occurred.`}))}}finally{Go(t=>t===e?null:t)}},[dn,Uo]),Jo=pe(Ly.unsnooze,{reportFailure:!1}),[Yo,Xo]=(0,J.useState)(null),Zo=Yo!==null&&Yo===fn,Qo=(0,J.useCallback)(async()=>{if(!dn)return;let e=Sr(dn);Xo(e);try{let e=await Jo({environmentId:dn.environmentId,input:{threadId:dn.threadId,reason:`user`}});if(e._tag===`Failure`&&!Ct(e)){let t=Xn(e);uS.add(lS({type:`error`,title:`Failed to wake thread`,description:t instanceof Error?t.message:`An error occurred.`}))}}finally{Xo(t=>t===e?null:t)}},[dn,Jo]),$o=(0,J.useCallback)(async e=>{if(dn){if(e===`copy`){await navigator.clipboard.writeText(window.location.href);return}if(e===`rename`){let e=window.prompt(`Rename thread`,Qt?.title??``)?.trim();e&&await S({environmentId:dn.environmentId,input:{threadId:dn.threadId,title:e}});return}if(e===`regenerate-title`){if(Qt?.titleRegeneration!=null)return;let e=await S({environmentId:dn.environmentId,input:{threadId:dn.threadId,regenerateTitle:!0}});if(e._tag===`Failure`&&!Ct(e)){let t=Xn(e);uS.add(lS({type:`error`,title:`Failed to regenerate thread title`,description:t instanceof Error?t.message:`An error occurred.`}))}return}if(e===`unsettle`)return void qo();if(e===`unsnooze`)return void Qo();if(e===`settle`){await b({environmentId:dn.environmentId,input:{threadId:dn.threadId}});return}if(e===`snooze`){await x({environmentId:dn.environmentId,input:{threadId:dn.threadId,snoozedUntil:new Date(Date.now()+864e5).toISOString()}});return}if(e===`archive`){await y({environmentId:dn.environmentId,input:{threadId:dn.threadId}});return}window.confirm(`Delete thread "${Qt?.title??`this thread`}"?`)&&await v({environmentId:dn.environmentId,input:{threadId:dn.threadId}})}},[Qt?.title,dn,y,v,Qo,qo,b,x,S]),[es,ts]=(0,J.useState)(!1),[ns,rs]=(0,J.useState)(!1),[is,as]=(0,J.useState)(null),[,os]=(0,J.useState)(0),ss=ki(e=>{let t=e.getComposerDraft(B);return!!(t&&(t.prompt.trim().length>0||t.images.length>0||t.terminalContexts.length>0||t.elementContexts.length>0||t.previewAnnotations.length>0||t.reviewComments.length>0))}),cs=h6e(Qt?.id??null,Co),ls=g6e({hasMismatch:Co!==null,isDismissed:v6e(cs),composerHasContent:ss,wasShownForCurrentMismatch:is!==null&&is===cs});(0,J.useEffect)(()=>{as(e=>ls?cs:e!==null&&e!==cs?null:e)},[cs,ls]);let us=(0,J.useCallback)(async()=>{if(!Li||!Qt||!Co||es)return;ts(!0);let e=await C({environmentId:t,input:{cwd:Li,refName:Co.threadBranch}});if(e._tag===`Failure`){ts(!1),Ct(e)||uS.add(lS({type:`error`,title:`Failed to switch checkout`,description:yat(Xn(e))}));return}let n=e.value.refName??Co.threadBranch;if(n!==Qt.branch){let e=await S({environmentId:t,input:{threadId:Qt.id,branch:n,worktreePath:null}});if(e._tag===`Failure`){ts(!1),Ct(e)||uS.add(lS({type:`error`,title:`Checkout switched, but the thread could not be updated`,description:yat(Xn(e))})),Ti.refresh();return}}Ti.refresh(),ts(!1),aa()},[Li,Qt,t,Ti,es,Co,aa,C,S]),ds=(0,J.useMemo)(()=>{if(!Ro&&!Ho)return null;let e=Ro;return{id:`thread-${e?`snoozed`:`settled`}:${Qt?.id??`unknown`}`,variant:`info`,icon:e?(0,Y.jsx)(_m,{}):(0,Y.jsx)(Am,{}),title:`This thread is ${e?`snoozed`:`settled`}`,description:e?`Sending a message wakes it and moves it back to Active in the sidebar.`:`Sending a message moves it back to Active in the sidebar.`,actions:(0,Y.jsx)(hc,{size:`xs`,variant:`outline`,disabled:e?Zo:Ko,onClick:()=>void(e?Qo():qo()),children:e?Zo?`Waking...`:`Wake now`:Ko?`Un-settling...`:`Un-settle`})}},[Qt?.id,Ho,Ro,Qo,qo,Zo,Ko]),fs=(0,J.useCallback)(()=>{if(Ti.data?.hasWorkingTreeChanges){rs(!0);return}us()},[Ti.data?.hasWorkingTreeChanges,us]),ps=(0,J.useMemo)(()=>{let e=ds===null?[]:[ds];return!Co||!ls||!cs?[...Tr,...e]:[...Tr,{id:`branch-mismatch:${cs}`,variant:`info`,icon:(0,Y.jsx)(Um,{}),title:(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-baseline gap-1.5`,children:[(0,Y.jsx)(`span`,{className:`shrink-0 font-normal text-muted-foreground`,children:`Branch changed — was`}),(0,Y.jsxs)(bu,{children:[(0,Y.jsx)(cu,{render:(0,Y.jsx)(`code`,{className:`min-w-0 truncate font-medium text-foreground`,children:Co.threadBranch})}),(0,Y.jsxs)(pr,{side:`top`,className:`max-w-80`,children:[`This thread last ran on `,Co.threadBranch,`. Sending will continue on `,Co.currentBranch,`.`]})]})]}),className:`dark:shadow-none`,actions:(0,Y.jsx)(hc,{size:`xs`,variant:`ghost`,disabled:es,onClick:fs,children:es?`Restoring...`:`Restore branch`}),dismissLabel:`Dismiss branch change notice`,onDismiss:()=>{_6e(cs),os(e=>e+1)}},...e]},[cs,fs,es,Co,ds,ls,Tr]);(0,J.useEffect)(()=>{ut(null),ft(void 0)},[Qt?.id]),(0,J.useEffect)(()=>{vo||(ut(null),ft(void 0))},[vo]),(0,J.useEffect)(()=>{if(!rn){ot(null);return}ot(e=>!e||e.threadId===rn?e:null)},[rn]),(0,J.useEffect)(()=>{!rn||!Li||ot(e=>!e||e.threadId!==rn?e:bF({project:{cwd:Li},worktreePath:zi})===e.cwd&&(zi??null)===e.worktreePath?null:e)},[Li,rn,zi]),(0,J.useEffect)(()=>{Ot.terminalOpen||ot(e=>e?.threadId===rn?null:e)},[rn,Ot.terminalOpen]),(0,J.useEffect)(()=>{if(!fn)return;let e=Dt.current[fn]??!1,t=!!Ot.terminalOpen;if(!e&&t){Dt.current[fn]=t,it(e=>e+1);return}else if(e&&!t){Dt.current[fn]=t;let e=window.requestAnimationFrame(()=>{ia()});return()=>{window.cancelAnimationFrame(e)}}Dt.current[fn]=t},[fn,ia,Ot.terminalOpen]),(0,J.useEffect)(()=>{let e=e=>{if(!rn||aT())return;let t=Ay();if(e.defaultPrevented&&t===null)return;let n={terminalFocus:t!==null,terminalOpen:!!Ot.terminalOpen,modelPickerOpen:De.current?.isModelPickerOpen()??!1};if(!n.terminalFocus&&!n.modelPickerOpen&&uat(e)&&De.current?.insertTextAtEnd(e.key)){e.preventDefault(),e.stopPropagation();return}let r=kh(e,Ei,{context:n});if(!r)return;if(r===`terminal.toggle`){e.preventDefault(),e.stopPropagation(),ua();return}if(r===`rightPanel.toggle`){e.preventDefault(),e.stopPropagation(),za();return}if(r===`terminal.split`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Na();return}Ot.terminalOpen||la(!0),da();return}if(r===`terminal.splitVertical`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Na(`vertical`);return}Ot.terminalOpen||la(!0),da(`vertical`);return}if(r===`terminal.close`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`&&bn?.kind===`terminal`){La(bn.activeTerminalId);return}if(!Ot.terminalOpen)return;pa(Ot.activeTerminalId);return}if(r===`terminal.new`){if(e.preventDefault(),e.stopPropagation(),t===`right-panel`){Ma();return}Ot.terminalOpen||la(!0),fa();return}if(r===`diff.toggle`){e.preventDefault(),e.stopPropagation(),Qi();return}if(r===`modelPicker.toggle`){e.preventDefault(),e.stopPropagation(),De.current?.toggleModelPicker();return}let i=J3e(r);if(!i||!Bn)return;let a=Bn.scripts.find(e=>e.id===i);a&&(e.preventDefault(),e.stopPropagation(),ma(a))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[Bn,bn,Ma,Ot.terminalOpen,Ot.activeTerminalId,rn,pa,La,fa,la,ma,da,Na,Ei,Qi,za,ua,De]);let ms=(0,J.useCallback)(async e=>{let n=jn();if(!n||!Qt||Ve)return;if(er&&tr){ra(Qt.id,`Reconnect ${tr} before reverting checkpoints.`);return}if(kr===`running`||Zr||ze){ra(Qt.id,`Interrupt the current turn before reverting checkpoints.`);return}if(!await n.dialogs.confirm([`Revert this thread to checkpoint ${e}?`,`This will discard newer messages and turn diffs in this thread.`,`This action cannot be undone.`].join(`
|
|
582
582
|
`)))return;He(!0),ra(Qt.id,null);let r=await N({environmentId:t,input:{threadId:Qt.id,turnCount:e}});if(r._tag===`Failure`&&!Ct(r)){let e=Xn(r);ra(Qt.id,e instanceof Error?e.message:`Failed to revert thread state.`)}He(!1)},[Qt,er,tr,t,ze,Ve,Zr,kr,N,ra]),hs=async e=>{if(e?.preventDefault(),!Qt||Zr||ze||er||Et.current)return;if(Rr){Cs();return}let n=De.current?.getSendContext();if(!n?.providerAvailable)return;let{images:r,terminalContexts:i,elementContexts:a,previewAnnotations:o,reviewComments:s,selectedProvider:c,selectedModel:l,selectedProviderModels:d,selectedPromptEffort:f,selectedModelSelection:p}=n,m=Ce.current,{trimmedPrompt:h,sendableTerminalContexts:g,expiredTerminalContextCount:_,hasSendableContent:v}=$0({prompt:m,imageCount:r.length,terminalContexts:i,elementContextCount:a.length+o.length+s.length});if(Gr&&Vr){let e=ije({draftText:h,planMarkdown:Vr.planMarkdown});Ce.current=``,ye(B),De.current?.resetCursorState(),await Ts({text:e.text,interactionMode:e.interactionMode});return}let y=r.length===0&&g.length===0&&a.length===0&&o.length===0&&s.length===0?JAe(h):null;if(y){ba(y),Ce.current=``,ye(B),De.current?.resetCursorState();return}if(!v){if(_>0){let e=e2(_,`empty`);uS.add(lS({type:`warning`,title:e.title,description:e.description}))}return}if(!Bn){uS.add(lS({type:`warning`,title:`Choose a project first`,description:`This draft no longer points to an available project.`}));return}let b=Qt.id,x=!Xt||Qt.messages.length===0,C=x&&So===`worktree`&&!Qt.worktreePath?bo:null;if(x&&So===`worktree`&&!Qt.worktreePath&&!bo){ra(b,`Select a base branch before sending in New worktree mode.`);return}if(Et.current=!0,hi&&fn){let e,t=new Promise(t=>{e=t});Jit(()=>{(0,Up.flushSync)(()=>{vi(),pi(fn)}),e?.()}).catch(()=>e?.()),await t}qr({preparingWorktree:!!C});let w=[...r],T=[...g],E=[...a],O=[...o],k=[...s],A=yr(Lc(m,T),E),j=u(O.reduce((e,t)=>Q3e(e,t),A),k),M=ed(),N=new Date().toISOString(),P=b9({provider:c,model:l,models:d,effort:f,text:j||Xit}),F=Promise.all(w.map(async e=>({type:`image`,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,dataUrl:await Q0(e.file)}))),I=w.map(e=>({type:`image`,id:e.id,name:e.name,mimeType:e.mimeType,sizeBytes:e.sizeBytes,previewUrl:e.previewUrl}));if(St.current=!0,Za.current=`anchoring-new-turn`,ro.current=no.current,Qa.current=M,to.current=null,Xa.current.cancel(),ke(!1),mn({threadKey:Sr(Pa(Qt.environmentId,b)),messageId:M}),Ne(e=>[...e,{id:M,role:`user`,text:P,...I.length>0?{attachments:I}:{},turnId:null,createdAt:N,updatedAt:N,streaming:!1}]),ra(b,null),_>0){let e=e2(_,`omitted`);uS.add(lS({type:`warning`,title:e.title,description:e.description}))}Ce.current=``,ye(B),De.current?.resetCursorState();let L=null;if(w.length>0){let e=w[0];e&&(L=e.name)}let R=h;R||=L?`Image: ${L}`:T.length>0?sa(T[0]):E.length>0?jr(E[0]):`New thread`;let z=SF(R),V=be(p.instanceId,l||Bn.defaultModelSelection?.model||`gpt-5.6-sol`,p.options),H=null;if(x&&Xt){let e=await S({environmentId:t,input:{threadId:b,title:z}});e._tag===`Failure`&&(H=e)}if(H===null&&Xt){let e=await Ya({threadId:b,createdAt:N,...l?{modelSelection:p}:{},...Co?{branch:Co.currentBranch}:{},runtimeMode:en,interactionMode:tn});e._tag===`Failure`&&(H=e)}let U=await Xi(()=>F);H===null&&U._tag===`Failure`&&(H=U);let W=!1;if(H===null&&U._tag===`Success`){let e=nn||C?{...nn?{createThread:{projectId:Bn.id,title:z,modelSelection:V,runtimeMode:en,interactionMode:tn,branch:bo,worktreePath:Qt.worktreePath,createdAt:Qt.createdAt}}:{},...C?{prepareWorktree:{projectCwd:Bn.workspaceRoot,baseBranch:C,branch:Ece(nt),...xo?{startFromOrigin:!0}:{}},runSetupScript:!0}:{}}:void 0;qr({preparingWorktree:!1});let n=await D({environmentId:t,input:{threadId:b,message:{messageId:M,role:`user`,text:P,attachments:U.value},modelSelection:p,titleSeed:z,runtimeMode:en,interactionMode:tn,...e?{bootstrap:e}:{},createdAt:N}});n._tag===`Failure`?H=n:W=!0}if(H!==null){if(Ce.current.length===0&&we.current.length===0&&K.current.length===0&&Te.current.length===0&&(ki.getState().getComposerDraft(B)?.previewAnnotations.length??0)===0&&(ki.getState().getComposerDraft(B)?.reviewComments.length??0)===0){Ne(e=>{let t=e.filter(e=>e.id===M);for(let e of t)Z0(e);let n=e.filter(e=>e.id!==M);return n.length===e.length?e:n}),Ce.current=m;let e=w.map(m6e);we.current=e,K.current=T,Te.current=E,le(B,m),ue(B,e),de(B,T),fe(B,E),me(B,O),he(B,k),De.current?.resetCursorState({cursor:BF(m,m.length),prompt:m,detectTrigger:!0})}if(!Ct(H)){let e=Xn(H);ra(b,e instanceof Error?e.message:`Failed to send message.`)}}Et.current=!1,W||(pi(e=>e===fn?null:e),Jr())},gs=async()=>{if(!Qt)return;let e=await O({environmentId:t,input:l6e(Qt)});if(e._tag===`Failure`&&!Ct(e)){let t=Xn(e);ra(Qt.id,t instanceof Error?t.message:`Failed to interrupt the current turn.`)}},_s=(0,J.useCallback)(async(e,n)=>{if(!rn)return;Ke(t=>t.includes(e)?t:[...t,e]);let r=await A({environmentId:t,input:{threadId:rn,requestId:e,decision:n}});if(r._tag===`Failure`&&!Ct(r)){let e=Xn(r);ra(rn,e instanceof Error?e.message:`Failed to submit approval decision.`)}return Ke(t=>t.filter(t=>t!==e)),r},[rn,t,A,ra]),vs=(0,J.useCallback)(async(e,n)=>{if(!rn)return;Je(t=>t.includes(e)?t:[...t,e]);let r=await j({environmentId:t,input:{threadId:rn,requestId:e,answers:n}});if(r._tag===`Failure`&&!Ct(r)){let e=Xn(r);ra(rn,e instanceof Error?e.message:`Failed to submit user input.`)}return Je(t=>t.filter(t=>t!==e)),r},[rn,t,j,ra]),ys=(0,J.useCallback)(async e=>{if(!rn)return;Je(t=>t.includes(e)?t:[...t,e]);let n=await M({environmentId:t,input:{threadId:rn,requestId:e}});if(n._tag===`Failure`&&!Ct(n)){let e=Xn(n);ra(rn,e instanceof Error?e.message:`Failed to reject user input.`)}Je(t=>t.filter(t=>t!==e))},[rn,t,M,ra]),bs=(0,J.useCallback)(e=>{Fr&&Qe(t=>({...t,[Fr.requestId]:e}))},[Fr]),xs=(0,J.useCallback)((e,t)=>{Fr&&(Xe(n=>{let r=(Rr?.activeQuestion?.id===e?Rr.activeQuestion:void 0)??Fr.questions.find(t=>t.id===e);return r?{...n,[Fr.requestId]:{...n[Fr.requestId],[e]:eje(r,n[Fr.requestId]?.[e],t)}}:n}),Ce.current=``,De.current?.resetCursorState({cursor:0}))},[Rr?.activeQuestion,Fr,De]),Ss=(0,J.useCallback)((e,t,n,r,i)=>{if(!Fr)return;Ce.current=t,Xe(n=>({...n,[Fr.requestId]:{...n[Fr.requestId],[e]:$Ae(n[Fr.requestId]?.[e],t)}}));let a=De.current?.readSnapshot();(a?.value!==t||a.cursor!==n||a.expandedCursor!==r)&&De.current?.focusAt(n)},[Fr,De]),Cs=(0,J.useCallback)(()=>{if(!(!Fr||!Rr)){if(Rr.isLastQuestion){zr&&vs(Fr.requestId,zr);return}bs(Rr.questionIndex+1)}},[Rr,zr,Fr,vs,bs]),ws=(0,J.useCallback)(()=>{Rr&&bs(Math.max(Rr.questionIndex-1,0))},[Rr,bs]),Ts=(0,J.useCallback)(async({text:e,interactionMode:n})=>{if(!Qt||!Xt||Zr||ze||Et.current)return;let r=e.trim();if(!r)return;let i=De.current?.getSendContext();if(!i?.providerAvailable)return;let{selectedProvider:a,selectedModel:o,selectedProviderModels:s,selectedPromptEffort:c,selectedModelSelection:l}=i,u=Qt.id,d=ed(),f=new Date().toISOString(),p=b9({provider:a,model:o,models:s,effort:c,text:r});Et.current=!0,qr({preparingWorktree:!1}),ra(u,null),St.current=!0,Za.current=`anchoring-new-turn`,ro.current=no.current,Qa.current=d,to.current=null,Xa.current.cancel(),ke(!1),mn({threadKey:Sr(Pa(Qt.environmentId,u)),messageId:d}),Ne(e=>[...e,{id:d,role:`user`,text:p,turnId:null,createdAt:f,updatedAt:f,streaming:!1}]);let m=await Ya({threadId:u,createdAt:f,modelSelection:l,...Co?{branch:Co.currentBranch}:{},runtimeMode:en,interactionMode:n}),h=m._tag===`Failure`?m:null;if(h===null){ve(Pa(Qt.environmentId,u),n);let e=await D({environmentId:t,input:{threadId:u,message:{messageId:d,role:`user`,text:p,attachments:[]},modelSelection:l,titleSeed:Qt.title,runtimeMode:en,interactionMode:n,...n==="default"&&Vr?{sourceProposedPlan:{threadId:Qt.id,planId:Vr.id}}:{},createdAt:f}});h=e._tag===`Failure`?e:null}if(h===null){n==="default"&&re&&(et.current=null,dn&&Ta.getState().open(dn,`plan`)),Et.current=!1;return}if(Ne(e=>e.filter(e=>e.id!==d)),!Ct(h)){let e=Xn(h);ra(u,e instanceof Error?e.message:`Failed to send plan follow-up.`)}Et.current=!1,Jr()},[Qt,Vr,qr,ze,Zr,Xt,Co,Ya,Jr,en,ve,ra,D,re,t,De]),Es=(0,J.useCallback)(async()=>{if(!Qt||!Bn||!Vr||!Xt||Zr||ze||er||Et.current)return;let e=De.current?.getSendContext();if(!e?.providerAvailable)return;let{selectedProvider:n,selectedModel:r,selectedProviderModels:i,selectedPromptEffort:a,selectedModelSelection:o}=e,s=new Date().toISOString(),c=ai(),l=Vr.planMarkdown,u=b9({provider:n,model:r,models:i,effort:a,text:YF(l)}),d=SF(aje(l)),f=o;Et.current=!0,qr({preparingWorktree:!1});let p=()=>{Et.current=!1,Jr()},m=await _({environmentId:t,input:{threadId:c,projectId:Bn.id,title:d,modelSelection:f,runtimeMode:en,interactionMode:`default`,branch:bo,worktreePath:Qt.worktreePath,createdAt:s}}),h=m._tag===`Failure`?m:null;if(h===null){let e=await D({environmentId:t,input:{threadId:c,message:{messageId:ed(),role:`user`,text:u,attachments:[]},modelSelection:o,titleSeed:d,runtimeMode:en,interactionMode:`default`,sourceProposedPlan:{threadId:Qt.id,planId:Vr.id},createdAt:s}});h=e._tag===`Failure`?e:null}if(h===null){let e=await Xi(()=>b6e(Pa(Qt.environmentId,c)));h=e._tag===`Failure`?e:null}if(h===null){tt.current=re;let e=await Xi(()=>ie({to:`/$environmentId/$threadId`,params:{environmentId:Qt.environmentId,threadId:c}}));h=e._tag===`Failure`?e:null}if(h!==null){let e=await v({environmentId:t,input:{threadId:c}});if(e._tag===`Failure`&&!Ct(e)&&console.warn(`Failed to clean up implementation thread after start failure.`,Xn(e)),!Ct(h)){let e=Xn(h);uS.add(lS({type:`error`,title:`Could not start implementation thread`,description:e instanceof Error?e.message:`An error occurred while creating the new thread.`}))}}p()},[Bn,Vr,bo,Qt,qr,er,_,v,ze,Zr,Xt,ie,Jr,en,D,re,t,De]),Os=(0,J.useCallback)((e,t)=>{if(!Qt)return null;let n=r2({providers:Er,hasStartedSession:Qt.session!==null,currentModelSelection:Qt.modelSelection,currentProviderInstanceId:Qt.session?.providerInstanceId??null,nextModelSelection:{instanceId:e,model:t}});return n?`${n.description} Start a new thread to use this model.`:null},[Qt,Er]),ks=(0,J.useCallback)((e,t)=>{if(!Qt)return;let n=Er.find(t=>t.instanceId===e),r=n?.driver??null;if(ur!==null&&r!==null&&r!==ur){aa();return}if(ur!==null&&Qt.session?.providerInstanceId){let e=Er.find(e=>e.instanceId===Qt.session?.providerInstanceId);if(e?.continuation?.groupKey&&n?.continuation?.groupKey&&e.continuation.groupKey!==n.continuation.groupKey){aa();return}}let i=hn(e,W,Er,t);if(!i){aa();return}let a={instanceId:e,model:i},o=r2({providers:Er,hasStartedSession:Qt.session!==null,currentModelSelection:Qt.modelSelection,currentProviderInstanceId:Qt.session?.providerInstanceId??null,nextModelSelection:a});if(o){uS.add({type:`warning`,title:o.title,description:o.description}),aa();return}ge(Pa(Qt.environmentId,Qt.id),a),te(a),aa()},[Qt,ur,aa,ge,te,Er,W]),As=(0,J.useCallback)(e=>{if(vo){ut(e),aa();return}nn&&xe(B,{envMode:e,startFromOrigin:cx({envMode:e,newWorktreesStartFromOrigin:G.newWorktreesStartFromOrigin}),...e===`worktree`&&Se?.worktreePath?{worktreePath:null}:{}}),aa()},[vo,B,Se?.worktreePath,nn,G.newWorktreesStartFromOrigin,ut,aa,xe]),js=e=>{if(vo&&Qt){mt(t=>t[Qt.id]===e?t:{...t,[Qt.id]:e});return}nn&&xe(B,{startFromOrigin:e})},Ms=(0,J.useCallback)(e=>{je(e)},[]),Ns=(0,J.useCallback)((e,t)=>{!Xt||!dn||(DF.getState().selectTurn(dn,e,t),Ta.getState().open(dn,`diff`),i?.())},[dn,Xt,i]),Ps=(0,J.useRef)(Si);Ps.current=Si;let Fs=(0,J.useRef)(ms);Fs.current=ms;let Is=(0,J.useCallback)(e=>{let t=Ps.current.get(e);typeof t==`number`&&Fs.current(t)},[]);if(!Qt)return(0,Y.jsx)(Mit,{});let Ls=(0,Y.jsx)(Ait,{terminalAvailable:Bn!==null,terminalOpen:Ot.terminalOpen,terminalShortcutLabel:jh(Ei,`terminal.toggle`),rightPanelAvailable:Bn!==null,rightPanelOpen:En,rightPanelShortcutLabel:jh(Ei,`rightPanel.toggle`),onToggleTerminal:ua,onToggleRightPanel:za}),Rs=(0,Y.jsxs)(`div`,{className:`workspace-titlebar-controls z-50 gap-1 [-webkit-app-region:no-drag]`,children:[En&&!$e?(0,Y.jsx)(jit,{maximized:On,onToggle:Ba}):null,Ls]}),zs=dn?bn?.kind===`preview`?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(rat,{mode:`embedded`,threadRef:dn,tabId:bn.resourceId,configuredUrls:Jn,visible:!0})}):bn?.kind===`terminal`?(0,Y.jsx)(vat,{threadRef:dn,surface:bn,launchContext:Vi??null,focusRequestId:rt,keybindings:Ei,onAddTerminalContext:oa,onSplitTerminal:Na,onSplitTerminalVertical:Fa,onNewTerminal:Ma,onActiveTerminalChange:Ia,onCloseTerminal:La,splitShortcutLabel:qi??void 0,splitVerticalShortcutLabel:Ji??void 0,newShortcutLabel:Yi??void 0,closeShortcutLabel:Zi??void 0}):bn?.kind===`diff`?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(iat,{mode:`embedded`,composerDraftTarget:B,initialGitScope:Wi},`${fn}:${Gi}`)}):bn?.kind===`plan`?(0,Y.jsx)(K1e,{activePlan:Ur,activeProposedPlan:Hr,label:Wr,environmentId:t,threadRef:dn,markdownCwd:Ci??void 0,workspaceRoot:Bi,timestampFormat:ne,mode:`embedded`}):(bn?.kind===`files`||bn?.kind===`file`)&&Bn&&Bi?(0,Y.jsx)(J.Suspense,{fallback:null,children:(0,Y.jsx)(aat,{environmentId:Bn.environmentId,cwd:Bi,projectName:Bn.title,threadRef:dn,composerDraftTarget:B,keybindings:Ei,availableEditors:Di,relativePath:bn.kind===`file`?bn.relativePath:null,revealLine:xn?.revealLine??null,revealRequestId:xn?.revealRequestId??0,onOpenFile:ka,onPendingChange:qn},`${Bn.environmentId}:${Bi}`)}):null:null;return(0,Y.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 overflow-hidden bg-background`,children:[En&&!$e?Rs:null,(0,Y.jsxs)(`div`,{className:q(`flex min-h-0 min-w-0 flex-col overflow-x-hidden`,On?`w-0 flex-none`:`flex-1`),"data-chat-column-maximized-away":On?`true`:`false`,children:[(0,Y.jsxs)(`header`,{"data-chat-header":!0,"data-tauri-drag-region":`deep`,className:q(`bg-background transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none`,`workspace-topbar pl-[calc(env(safe-area-inset-left)+0.75rem)] pr-[calc(env(safe-area-inset-right)+0.75rem)] sm:pl-[calc(env(safe-area-inset-left)+1.25rem)] sm:pr-[calc(env(safe-area-inset-right)+1.25rem)]`,a&&!kn&&`desktop-shell:pr-[var(--workspace-native-controls-inset)]`,vN),children:[En?null:Rs,(0,Y.jsx)(kit,{activeThreadEnvironmentId:Qt.environmentId,activeThreadTitle:Qt.title,activeProjectName:Bn?.title,activeProjectCwd:Bn?.workspaceRoot??null,openInCwd:Ci,activeProjectScripts:Bn?.scripts,preferredScriptId:Bn?ht[Bn.id]??null:null,keybindings:Ei,availableEditors:Di,rightPanelOpen:En,pinningSupported:Ao,pinned:No,settled:Ho,snoozed:Ro,settlementSupported:Do,snoozeSupported:Oo,titleRegenerationSupported:jo,titleRegenerationPending:Qt.titleRegeneration!=null,onTogglePin:Io,onThreadAction:$o,onNewThreadInProject:Vn,onRunProjectScript:ma,onAddProjectScript:ga,onUpdateProjectScript:_a,onDeleteProjectScript:va})]}),(0,Y.jsx)(Iit,{error:$t,onDismiss:()=>ra(Qt.id,null)}),(0,Y.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1`,children:(0,Y.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,Y.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 top-0 z-20`,children:(0,Y.jsx)(Fit,{status:Fi,onDismiss:()=>Pi(Mi)})}),(0,Y.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,Y.jsx)(Mnt,{isWorking:Qr,activeTurnInProgress:Qr||!Ln,activeTurnStartedAt:$r,listRef:_t,timelineEntries:di,latestTurn:Nn,runningTurnId:Qt.session?.status===`running`?Qt.session.activeTurnId:null,turnDiffSummaryByAssistantMessageId:xi,activeThreadEnvironmentId:Qt.environmentId,routeThreadKey:d,onOpenTurnDiff:Ns,revertTurnCountByUserMessageId:Si,onRevertUserMessage:Is,onRetryQueuedTurn:()=>{k({environmentId:t,input:{threadId:Qt.id}})},isRevertingCheckpoint:Ve,onImageExpand:Ms,markdownCwd:Ci??void 0,resolvedTheme:ae,timestampFormat:ne,workspaceRoot:Bi,skills:Ai?.skills??$it,anchorMessageId:gn,onAnchorReady:fo,onAnchorSizeChanged:po,contentInsetEndAdjustment:bt,onIsAtEndChange:mo,onManualNavigation:oo,hideEmptyPlaceholder:hi,topFadeEnabled:!Ii},Qt.id),Oe&&(0,Y.jsx)(`div`,{className:`pointer-events-none absolute left-1/2 z-30 flex -translate-x-1/2 justify-center py-1.5`,style:{bottom:bt+4},children:(0,Y.jsxs)(`button`,{type:`button`,"aria-label":`Scroll to end`,title:`Scroll to end`,onClick:()=>uo(!0),className:`pointer-events-auto flex items-center gap-1.5 rounded-full border border-border/60 bg-card px-3 py-1 text-muted-foreground text-xs shadow-sm transition-colors hover:border-border hover:text-foreground hover:cursor-pointer`,children:[(0,Y.jsx)(ca,{className:`size-3.5`}),`Scroll to end`]})})]}),(0,Y.jsx)(`div`,{ref:yt,"data-chat-composer-overlay":`true`,className:hi?`pointer-events-none absolute inset-0 z-20 flex items-center`:`pointer-events-none absolute inset-x-0 bottom-0 z-20 pt-1.5 sm:pt-2`,children:(0,Y.jsx)(`div`,{ref:gi,className:`chat-composer-horizontal-inset w-full`,children:(0,Y.jsxs)(`div`,{className:`pointer-events-auto relative z-10`,children:[hi?(0,Y.jsxs)(`div`,{className:`absolute inset-x-0 bottom-full z-0`,children:[(0,Y.jsx)(`div`,{className:`pb-8`,style:o?{viewTransitionName:Kit}:void 0,children:(0,Y.jsx)(Ett,{activeProjectRef:zn,activeProjectTitle:Bn?.title??null})}),(0,Y.jsx)(Vit,{className:`relative z-0`,items:ps})]}):(0,Y.jsx)(Vit,{className:`relative z-0`,items:ps}),(0,Y.jsxs)(`div`,{className:`relative`,style:o?{viewTransitionName:Git}:void 0,children:[(0,Y.jsxs)(`div`,{className:q(`chat-composer-glass-shell relative mx-auto w-full max-w-3xl`,Ui&&`chat-composer-glass-shell-with-context`),children:[(0,Y.jsx)(`div`,{className:`chat-composer-glass-host relative z-10 w-full rounded-[22px]`,children:(0,Y.jsx)(`div`,{ref:_i,className:`relative z-10`,children:(0,Y.jsx)(wtt,{composerRef:De,composerDraftTarget:B,environmentId:t,routeKind:r,routeThreadRef:l,draftId:s,activeThreadId:rn,activeThreadEnvironmentId:Qt?.environmentId,activeThread:Qt,isServerThread:Xt,isLocalDraftThread:nn,forceExpandedOnMobile:o&&hi,projectSelectionRequired:nn&&Bn===null,phase:kr,isConnecting:ze,isSendBusy:Zr,isPreparingWorktree:Xr,environmentUnavailable:nr,activePendingApproval:Kr,pendingApprovals:Nr,pendingUserInputs:Pr,activePendingProgress:Rr,activePendingResolvedAnswers:zr,activePendingIsResponding:Br,activePendingDraftAnswers:Ir,activePendingQuestionIndex:Lr,respondingRequestIds:Ge,showPlanFollowUpPrompt:Gr,activeProposedPlan:Vr,activePlan:Ur,sidebarProposedPlan:Hr,planSidebarLabel:Wr,planSidebarOpen:An,runtimeMode:en,interactionMode:tn,lockedProvider:ur,providerStatuses:Er,activeProjectDefaultModelSelection:Bn?.defaultModelSelection,activeThreadModelSelection:Qt?.modelSelection,activeThreadActivities:Qt?.activities,resolvedTheme:ae,settings:W,keybindings:Ei,terminalOpen:!!Ot.terminalOpen,gitCwd:Ci,promptRef:Ce,composerImagesRef:we,composerTerminalContextsRef:K,composerElementContextsRef:Te,onSend:hs,onInterrupt:gs,onImplementPlanInNewThread:Es,onRespondToApproval:_s,onSelectActivePendingUserInputOption:xs,onAdvanceActivePendingUserInput:Cs,onRejectActivePendingUserInput:ys,onPreviousActivePendingUserInputQuestion:ws,onChangeActivePendingUserInputCustomAnswer:Ss,onProviderModelSelect:ks,getModelDisabledReason:Os,toggleInteractionMode:xa,handleRuntimeModeChange:ya,handleInteractionModeChange:ba,togglePlanSidebar:Ca,focusComposer:ia,scheduleComposerFocus:aa,setThreadError:ra,onExpandImage:Ms})})}),(0,Y.jsx)(`div`,{className:`min-h-0`,children:(0,Y.jsx)(`div`,{"data-terminal-open":Ot.terminalOpen?`true`:void 0,className:`relative z-0`,children:Ui&&(0,Y.jsx)(`div`,{className:`pointer-events-auto`,children:(0,Y.jsx)(dUe,{environmentId:Qt.environmentId,threadId:Qt.id,...r===`draft`&&s?{draftId:s}:{},onEnvModeChange:As,startFromOrigin:xo,onStartFromOriginChange:js,...vo?{effectiveEnvModeOverride:yo}:{},...vo?{activeThreadBranchOverride:bo,onActiveThreadBranchOverrideChange:ft}:{},envLocked:$i,onComposerFocusRequest:aa,...or?{onEnvironmentChange:ea}:{},availableEnvironments:ar})})})})]}),(0,Y.jsx)(`div`,{"aria-hidden":!0,className:`h-[calc(env(safe-area-inset-bottom)+1rem)] sm:h-[calc(env(safe-area-inset-bottom)+1.25rem)]`})]})]})})}),dn&&Cn?(0,Y.jsx)(mje,{threadRef:dn,tabId:Cn.tabId,bottomInset:hi?0:bt},`${fn}:${Cn.tabId}`):null,(0,Y.jsx)(SP,{open:ns,onOpenChange:rs,children:(0,Y.jsxs)(CP,{children:[(0,Y.jsxs)(wP,{children:[(0,Y.jsxs)(EP,{children:[`Switch to`,` `,(0,Y.jsx)(`code`,{className:`font-medium`,children:Co?.threadBranch??``}),`?`]}),(0,Y.jsx)(DP,{children:`You have uncommitted changes. They'll carry over to the other branch, or block the switch if they conflict.`})]}),(0,Y.jsxs)(TP,{children:[(0,Y.jsx)(OP,{render:(0,Y.jsx)(hc,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(hc,{variant:`default`,onClick:()=>{rs(!1),us()},children:`Switch branch`})]})]})})]})}),Wt.map(({key:e,threadRef:t})=>(0,Y.jsx)(_at,{threadRef:t,threadId:t.threadId,visible:e===fn&&Ot.terminalOpen,launchContext:e===fn?Vi??null:null,focusRequestId:e===fn?rt:0,splitShortcutLabel:qi??void 0,splitVerticalShortcutLabel:Ji??void 0,newShortcutLabel:Yi??void 0,closeShortcutLabel:Zi??void 0,keybindings:Ei,onAddTerminalContext:oa},e))]}),!$e&&En&&dn?(0,Y.jsx)(AI,{mode:`inline`,maximized:On,surfaces:yn.surfaces,activeSurfaceId:bn?.id??null,pendingSurfaceIds:Kn,previewSessions:Sn.sessions,terminalLabelsById:un,onActivate:Ra,onCloseSurface:Ua,onCloseOtherSurfaces:Ga,onCloseSurfacesToRight:Ka,onCloseAllSurfaces:qa,onCopyFilePath:Ja,onAddBrowser:Ea,onAddTerminal:Ma,onAddDiff:Da,onAddFiles:Oa,browserAvailable:Yb(),diffAvailable:Xt&&Hi,filesAvailable:Bn!==null,children:zs}):null,$e&&En&&dn?(0,Y.jsx)(Yit,{open:!0,onClose:An?wa:ja,children:(0,Y.jsx)(AI,{mode:`sheet`,layoutControls:Ls,surfaces:yn.surfaces,activeSurfaceId:bn?.id??null,pendingSurfaceIds:Kn,previewSessions:Sn.sessions,terminalLabelsById:un,onActivate:Ra,onCloseSurface:Ua,onCloseOtherSurfaces:Ga,onCloseSurfacesToRight:Ka,onCloseAllSurfaces:qa,onCopyFilePath:Ja,onAddBrowser:Ea,onAddTerminal:Ma,onAddDiff:Da,onAddFiles:Oa,browserAvailable:Yb(),diffAvailable:Xt&&Hi,filesAvailable:Bn!==null,children:zs})}):null,Ae&&(0,Y.jsx)(Mtt,{preview:Ae,onClose:ho},`${Ae.images[Ae.index]?.src??`image`}:${Ae.index}`)]})}function xat(e){let t=(0,X.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Y.jsx)(OW,{children:(0,Y.jsx)(bat,{...e})}),t[0]=e,t[1]=n),n}function Sat(e){return e.kind===`terminal`?e.terminalIds:[]}function Cat(e){return e.target.terminalId}function wat(e){return e.setTerminalHeight}function Tat(e){return e.splitTerminal}function Eat(e){return e.splitTerminalVertical}function Dat(e){return e.newTerminal}function Oat(e){return e.setActiveTerminal}function kat(e){return e.closeTerminal}function Aat(e){return e.reconcileTerminalIds}function jat(e){return e+1}function Mat(){}function Nat(){let e=(0,X.c)(26),t=Vp(),{draftId:n}=Pat.useParams(),r;e[0]===n?r=e[1]:(r=_i.make(n),e[0]=n,e[1]=r);let i=r,a;e[2]===i?a=e[3]:(a=e=>e.getDraftSession(i),e[2]=i,e[3]=a);let o=ki(a),s=Uy(),c;e[4]!==o||e[5]!==s?(c=o?s.find(e=>e.environmentId===o.environmentId&&e.threadId===o.threadId)??null:null,e[4]=o,e[5]=s,e[6]=c):c=e[6];let l=c,u=o?.promotedTo??l,d=n2(Xy(u))?u:null,f;e[7]!==o?.promotedTo||e[8]!==l?(f=()=>{!l||o?.promotedTo||Vi(l)},e[7]=o?.promotedTo,e[8]=l,e[9]=f):f=e[9];let p=o?.promotedTo,m;e[10]!==l||e[11]!==p?(m=[p,l],e[10]=l,e[11]=p,e[12]=m):m=e[12],(0,J.useEffect)(f,m);let h,g;e[13]!==d||e[14]!==t?(h=()=>{if(!d)return;let e=!1;return qit().then(()=>{e||t({to:`/$environmentId/$threadId`,params:bo(d),replace:!0})}),()=>{e=!0}},g=[d,t],e[13]=d,e[14]=t,e[15]=h,e[16]=g):(h=e[15],g=e[16]),(0,J.useEffect)(h,g);let _,v;if(e[17]!==d||e[18]!==o||e[19]!==t?(_=()=>{o||d||t({to:`/`,replace:!0})},v=[d,o,t],e[17]=d,e[18]=o,e[19]=t,e[20]=_,e[21]=v):(_=e[20],v=e[21]),(0,J.useEffect)(_,v),!o)return null;let y;return e[22]!==i||e[23]!==o.environmentId||e[24]!==o.threadId?(y=(0,Y.jsx)(_C,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,Y.jsx)(xat,{draftId:i,environmentId:o.environmentId,threadId:o.threadId,routeKind:`draft`,forceExpandedMobileComposer:!0})}),e[22]=i,e[23]=o.environmentId,e[24]=o.threadId,e[25]=y):y=e[25],y}var Pat=Jp(`/_chat/draft/$draftId`)({component:Nat});function Fat(){let e=(0,X.c)(32),t=Vp(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:Iat},e[0]=n):n=e[0];let r=Lat.useParams(n),i;e[1]===r?i=e[2]:(i=r===null?null:Ny.stateAtom(r.environmentId),e[1]=r,e[2]=i);let a=Zt(i),o=Jy(r),s=Yy(r),c=yse(r),l=_se(r?.environmentId??null),u=a.data?.snapshot._tag===`Some`,d=l.length>0,f;e[3]===r?f=e[4]:(f=e=>r?e.getDraftThreadByRef(r)!==null:!1,e[3]=r,e[4]=f);let p=ki(f),m;e[5]===r?m=e[6]:(m=e=>r?e.getDraftThreadByRef(r):null,e[5]=r,e[6]=m);let h=ki(m),g;e[7]===r?g=e[8]:(g=e=>r?e.hasDraftThreadsInEnvironment(r.environmentId):!1,e[7]=r,e[8]=g);let _=ki(g),v=o!==null,y=s!==null,b=c===`deleted`,x;e[9]!==u||e[10]!==p||e[11]!==v||e[12]!==y||e[13]!==b?(x=Wo({bootstrapComplete:u,serverThreadShellExists:v,serverThreadDetailExists:y,serverThreadDetailDeleted:b,draftThreadExists:p}),e[9]=u,e[10]=p,e[11]=v,e[12]=y,e[13]=b,e[14]=x):x=e[14];let S=x,C;e[15]===s?C=e[16]:(C=n2(s),e[15]=s,e[16]=C);let w=C,T=d||_,E,D;e[17]!==u||e[18]!==T||e[19]!==t||e[20]!==S||e[21]!==r?(E=()=>{!r||!u||S===`missing`&&T&&t({to:`/`,replace:!0})},D=[u,T,t,S,r],e[17]=u,e[18]=T,e[19]=t,e[20]=S,e[21]=r,e[22]=E,e[23]=D):(E=e[22],D=e[23]),(0,J.useEffect)(E,D);let O,k;if(e[24]!==h||e[25]!==w||e[26]!==r?(O=()=>{!r||!w||!h||$c(r)},k=[h,w,r],e[24]=h,e[25]=w,e[26]=r,e[27]=O,e[28]=k):(O=e[27],k=e[28]),(0,J.useEffect)(O,k),!r||S!==`ready`)return null;let A;return e[29]!==r.environmentId||e[30]!==r.threadId?(A=(0,Y.jsx)(_C,{className:`h-svh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground md:h-dvh`,children:(0,Y.jsx)(xat,{environmentId:r.environmentId,threadId:r.threadId,routeKind:`server`})}),e[29]=r.environmentId,e[30]=r.threadId,e[31]=A):A=e[31],A}function Iat(e){return Xs(e)}var Lat=Jp(`/_chat/$environmentId/$threadId`)({component:Fat}),Rat=Xye.update({id:`/usage`,path:`/usage`,getParentRoute:()=>GO}),x9=ZEe.update({id:`/settings`,path:`/settings`,getParentRoute:()=>GO}),zat=yN.update({id:`/pair`,path:`/pair`,getParentRoute:()=>GO}),S9=fDe.update({id:`/_chat`,getParentRoute:()=>GO}),Bat=yDe.update({id:`/`,path:`/`,getParentRoute:()=>S9}),Vat=xDe.update({id:`/providers`,path:`/providers`,getParentRoute:()=>x9}),Hat=JDe.update({id:`/keybindings`,path:`/keybindings`,getParentRoute:()=>x9}),Uat=XDe.update({id:`/general`,path:`/general`,getParentRoute:()=>x9}),Wat=xOe.update({id:`/diagnostics`,path:`/diagnostics`,getParentRoute:()=>x9}),Gat=SAe.update({id:`/connections`,path:`/connections`,getParentRoute:()=>x9}),Kat=kAe.update({id:`/beta`,path:`/beta`,getParentRoute:()=>x9}),qat=AAe.update({id:`/archived`,path:`/archived`,getParentRoute:()=>x9}),Jat=Pat.update({id:`/draft/$draftId`,path:`/draft/$draftId`,getParentRoute:()=>S9}),Yat={ChatIndexRoute:Bat,ChatEnvironmentIdThreadIdRoute:Lat.update({id:`/$environmentId/$threadId`,path:`/$environmentId/$threadId`,getParentRoute:()=>S9}),ChatDraftDraftIdRoute:Jat},Xat=S9._addFileChildren(Yat),Zat={SettingsArchivedRoute:qat,SettingsBetaRoute:Kat,SettingsConnectionsRoute:Gat,SettingsDiagnosticsRoute:Wat,SettingsGeneralRoute:Uat,SettingsKeybindingsRoute:Hat,SettingsProvidersRoute:Vat},Qat={ChatRoute:Xat,PairRoute:zat,SettingsRoute:x9._addFileChildren(Zat),UsageRoute:Rat},$at=GO._addFileChildren(Qat)._addFileTypes();function eot(e){return Dee({routeTree:$at,history:e,context:{}})}var tot=typeof window<`u`&&(window.desktopBridge!==void 0||window.nativeApi!==void 0),C9=(e,t,n)=>e.getPropertyValue(t).trim()||n;function not(){let e=document.documentElement,t=getComputedStyle(e);return{colorScheme:e.classList.contains(`dark`)?`dark`:`light`,radius:C9(t,`--radius`,`0.625rem`),background:C9(t,`--background`,`white`),foreground:C9(t,`--foreground`,`oklch(0.269 0 0)`),popover:C9(t,`--popover`,`white`),popoverForeground:C9(t,`--popover-foreground`,`oklch(0.269 0 0)`),primary:C9(t,`--primary`,`oklch(0.488 0.217 264)`),primaryForeground:C9(t,`--primary-foreground`,`white`),muted:C9(t,`--muted`,`rgb(0 0 0 / 4%)`),mutedForeground:C9(t,`--muted-foreground`,`oklch(0.556 0 0)`),accent:C9(t,`--accent`,`rgb(0 0 0 / 4%)`),accentForeground:C9(t,`--accent-foreground`,`oklch(0.269 0 0)`),border:C9(t,`--border`,`rgb(0 0 0 / 8%)`),input:C9(t,`--input`,`rgb(0 0 0 / 10%)`),ring:C9(t,`--ring`,`oklch(0.488 0.217 264)`),fontSans:C9(t,`--font-sans`,t.fontFamily||`system-ui, sans-serif`),fontMono:C9(t,`--font-mono`,`ui-monospace, monospace`)}}var w9=Eo()(e=>({byTabId:{},apply:t=>e(e=>({byTabId:{...e.byTabId,[t.tabId]:t}})),clear:t=>e(e=>{if(!(t in e.byTabId))return e;let{[t]:n,...r}=e.byTabId;return{byTabId:r}})}));function rot(e){let t=(0,X.c)(7),{threadRef:n,tabId:r,runtimeTabId:i}=e,a=w9(iot),o=pe(Sb.reportStatus,`preview status report`),s=(0,J.useRef)(null),c=(0,J.useRef)(null),l=(0,J.useRef)(null),u,d;t[0]!==a||t[1]!==o||t[2]!==i||t[3]!==r||t[4]!==n?(u=()=>{if(!(!oI||typeof window>`u`))return s.current=null,c.current=null,l.current=null,oI.onStateChange((e,t)=>{if(e!==i)return;aot(l.current,t.navStatus)&&a(i),l.current=t.navStatus,Yse(n,r,oot(t));let u=sot({threadId:n.threadId,tabId:r,state:t,lastReportedUrl:s.current,lastReportedKind:c.current});u&&(s.current=u.lastReportedUrl,c.current=u.lastReportedKind,o({environmentId:n.environmentId,input:u.input}))})},d=[oI,a,o,i,r,n],t[0]=a,t[1]=o,t[2]=i,t[3]=r,t[4]=n,t[5]=u,t[6]=d):(u=t[5],d=t[6]),(0,J.useEffect)(u,d)}function iot(e){return e.clear}function aot(e,t){return e?t.kind===`Loading`&&e.kind!==`Loading`?!0:t.kind===`Idle`||e.kind===`Idle`?!1:t.url!==e.url:!1}function oot(e){return{hasWebContents:e.webContentsId!==null,canGoBack:e.canGoBack,canGoForward:e.canGoForward,loading:e.navStatus.kind===`Loading`,zoomFactor:e.zoomFactor,pictureInPicture:e.pictureInPicture,colorScheme:e.colorScheme,controller:e.controller}}function sot(e){let{threadId:t,tabId:n,state:r,lastReportedUrl:i,lastReportedKind:a}=e,o=r.navStatus;if(o.kind===`Idle`||o.kind!==`LoadFailed`&&o.kind===a&&o.url===i)return null;let s={threadId:t,tabId:n,canGoBack:r.canGoBack,canGoForward:r.canGoForward};return o.kind===`LoadFailed`?{input:{...s,navStatus:{_tag:`LoadFailed`,url:o.url,title:o.title,code:o.code,description:o.description}},lastReportedUrl:o.url,lastReportedKind:`LoadFailed`}:{input:{...s,navStatus:{_tag:o.kind,url:o.url,title:o.title}},lastReportedUrl:o.url,lastReportedKind:o.kind}}var T9=e=>e._tag===`fill`?`fill`:`${e._tag}:${e.width}:${e.height}:${e._tag===`preset`?e.presetId:``}`,E9=e=>Number.isFinite(e)&&e>0?e:1;function cot(e,t,n=1){if(e._tag!==`fill`)return e;let r=E9(n);return t?{_tag:`freeform`,width:Math.max(1,Math.round(t.width/t.scale/r)),height:Math.max(1,Math.round(t.height/t.scale/r))}:{_tag:`freeform`,width:1280,height:800}}function D9(e){return{width:Math.max(1,e.width-20),height:Math.max(1,e.height-32-10)}}function O9(e,t,n=1){let r=Math.max(1,Math.round(e.width)),i=Math.max(1,Math.round(e.height));if(t._tag===`fill`)return{canvasWidth:r,canvasHeight:i,viewportX:0,viewportY:0,viewportWidth:r,viewportHeight:i,viewportScale:1,fillsPanel:!0};let a=E9(n),o=t.width*a,s=t.height*a,c=Math.min(1,r/o,i/s),l=o*c,u=s*c;return{canvasWidth:r,canvasHeight:i,viewportX:Math.max(0,Math.round((r-l)/2)),viewportY:Math.max(0,Math.round((i-u)/2)),viewportWidth:l,viewportHeight:u,viewportScale:c,fillsPanel:!1}}function lot(e,t,n=1){let r=O9(D9(e),t,n);return{...r,canvasWidth:Math.max(1,Math.round(e.width)),canvasHeight:Math.max(1,Math.round(e.height)),viewportX:r.viewportX+10,viewportY:r.viewportY+32}}var uot=e=>Math.min(Tt,Math.max(240,e)),dot=e=>e!==void 0&&Number.isFinite(e)&&e>0;function fot(e,t,n){if(n===`width`){let n=Math.ceil(Math.max(240,240*t)),r=Math.floor(Math.min(Tt,Tt*t,Math.sqrt(Qc*t))),i=Math.min(r,Math.max(n,Math.round(e))),a=Math.round(i/t);for(;i*a>8294400&&i>n;)--i,a=Math.round(i/t);return{width:i,height:a}}let r=Math.ceil(Math.max(240,240/t)),i=Math.floor(Math.min(Tt,Tt/t,Math.sqrt(Qc/t))),a=Math.min(i,Math.max(r,Math.round(e))),o=Math.round(a*t);for(;o*a>8294400&&a>r;)--a,o=Math.round(a*t);return{width:o,height:a}}function k9(e,t,n=1,r=`southeast`,i){let a=E9(n),o=r.includes(`east`)?t.x:r.includes(`west`)?-t.x:0,s=r.includes(`south`)?t.y:r.includes(`north`)?-t.y:0,c=e.width+o/a,l=e.height+s/a;if(dot(i)){let t=o!==0||r===`east`||r===`west`,n=s!==0||r===`north`||r===`south`,a=t&&!n?`width`:n&&!t?`height`:Math.abs(c-e.width)/e.width>=Math.abs(l-e.height)/e.height?`width`:`height`;return fot(a===`width`?c:l,i,a)}let u=uot(Math.round(c)),d=uot(Math.round(l));return u*d<=8294400||(Math.abs(o)>=Math.abs(s)?u=Math.max(240,Math.floor(Qc/d)):d=Math.max(240,Math.floor(Qc/u))),{width:u,height:d}}var pot=(e,t,n)=>{let r=(e<n?(n+e)/2:e)+t;return r<=n?r*2-n:r},mot=(e,t,n)=>{if(e>n){let r=e-n;return t<=r?e-t:n-(t-r)*2}let r=(n-e)/2+t;return r>=0?n-r*2:n-r};function hot(e,t,n,r=1,i=`southeast`,a){let o=E9(r),s=e.width*o,c=e.height*o,l=i.includes(`east`)?pot(s,t.x,n.width):i.includes(`west`)?mot(s,t.x,n.width):s,u=i.includes(`south`)?pot(c,t.y,n.height):i.includes(`north`)?mot(c,t.y,n.height):c,d=l-s,f=u-c;return k9(e,{x:i.includes(`west`)?-d:d,y:i.includes(`north`)?-f:f},o,i,a)}function got(e,t=1){let n=D9(e),r=E9(t);return k9({width:n.width/r,height:n.height/r},{x:0,y:0})}var _ot={"iphone-se":{label:`iPhone SE`,category:`Phone`,detail:`375 × 667`,width:375,height:667},"iphone-xr":{label:`iPhone XR`,category:`Phone`,detail:`414 × 896`,width:414,height:896},"iphone-12-pro":{label:`iPhone 12 Pro`,category:`Phone`,detail:`390 × 844`,width:390,height:844},"iphone-14-pro-max":{label:`iPhone 14 Pro Max`,category:`Phone`,detail:`430 × 932`,width:430,height:932},"pixel-7":{label:`Pixel 7`,category:`Phone`,detail:`412 × 915`,width:412,height:915},"samsung-galaxy-s8-plus":{label:`Samsung Galaxy S8+`,category:`Phone`,detail:`360 × 740`,width:360,height:740},"samsung-galaxy-s20-ultra":{label:`Samsung Galaxy S20 Ultra`,category:`Phone`,detail:`412 × 915`,width:412,height:915},"ipad-mini":{label:`iPad Mini`,category:`Tablet`,detail:`768 × 1024`,width:768,height:1024},"ipad-air":{label:`iPad Air`,category:`Tablet`,detail:`820 × 1180`,width:820,height:1180},"ipad-pro":{label:`iPad Pro`,category:`Tablet`,detail:`1024 × 1366`,width:1024,height:1366},"surface-pro-7":{label:`Surface Pro 7`,category:`Tablet`,detail:`912 × 1368`,width:912,height:1368},"surface-duo":{label:`Surface Duo`,category:`Phone`,detail:`540 × 720`,width:540,height:720},"galaxy-z-fold-5":{label:`Galaxy Z Fold 5`,category:`Phone`,detail:`344 × 882`,width:344,height:882},"asus-zenbook-fold":{label:`Asus Zenbook Fold`,category:`Tablet`,detail:`853 × 1280`,width:853,height:1280},"samsung-galaxy-a51-71":{label:`Samsung Galaxy A51/71`,category:`Phone`,detail:`412 × 914`,width:412,height:914},"nest-hub":{label:`Nest Hub`,category:`Tablet`,detail:`1024 × 600`,width:1024,height:600},"nest-hub-max":{label:`Nest Hub Max`,category:`Tablet`,detail:`1280 × 800`,width:1280,height:800}},A9=Bi.map(e=>({id:e,..._ot[e]}));function vot(e){if(e.mode===`fill`)return{_tag:`fill`};if(e.mode===`preset`&&e.preset!==void 0){let t=A9.find(t=>t.id===e.preset);if(!t)throw Error(`Unknown preview viewport preset: ${e.preset}`);let n=e.orientation===`landscape`,r=e.orientation===`portrait`,i=t.height>=t.width,a=n&&i||r&&!i;return{_tag:`preset`,width:a?t.height:t.width,height:a?t.width:t.height,presetId:t.id}}if(e.width===void 0||e.height===void 0)throw Error(`Custom preview viewport requires width and height`);return{_tag:`freeform`,width:e.width,height:e.height}}async function yot(e,t,n,r){await n(e),r(t)}var j9=`responsive`,bot=[{value:j9,label:`Responsive`},...A9.map(e=>({value:e.id,label:e.label}))];function xot(){let e=(0,X.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,Y.jsx)(`rect`,{x:`7.25`,y:`7.25`,width:`9.5`,height:`9.5`,rx:`1.4`,transform:`rotate(-45 12 12)`}),(0,Y.jsx)(`path`,{d:`M12.5 2a10 10 0 0 1 8.4 5.4`}),(0,Y.jsx)(`path`,{d:`M20.8 3.5v4h-4`}),(0,Y.jsx)(`path`,{d:`M11.5 22a10 10 0 0 1-8.4-5.4`}),(0,Y.jsx)(`path`,{d:`M3.2 20.5v-4h4`})]}),e[0]=t):t=e[0],t}function Sot(e){let t=(0,X.c)(125),{setting:n,width:r,aspectRatio:i,onAspectRatioChange:a,onChange:o}=e,[s,c]=(0,J.useState)(!1),[l,u]=(0,J.useState)(null),d;t[0]!==l||t[1]!==n.height||t[2]!==n.width?(d=l??{width:String(n.width),height:String(n.height)},t[0]=l,t[1]=n.height,t[2]=n.width,t[3]=d):d=t[3];let f=d,p=n._tag===`preset`&&A9.some(e=>e.id===n.presetId)?n.presetId:j9,m=Number(f.width),h=Number(f.height),g;t[4]!==h||t[5]!==m?(g=Number.isInteger(m)&&Number.isInteger(h)&&m>=240&&m<=3840&&h>=240&&h<=3840&&m*h<=8294400,t[4]=h,t[5]=m,t[6]=g):g=t[6];let _=g,v;t[7]!==i||t[8]!==a||t[9]!==o?(v=(e,t)=>{let n=t===void 0?i:t;c(!0),yot(e,n,o,a).then(()=>{c(!1),u(null)},()=>c(!1))},t[7]=i,t[8]=a,t[9]=o,t[10]=v):v=t[10];let y=v,b;t[11]!==y||t[12]!==h||t[13]!==_||t[14]!==m||t[15]!==n.height||t[16]!==n.width?(b=()=>{if(!_||m===n.width&&h===n.height){u(null);return}y({_tag:`freeform`,width:m,height:h})},t[11]=y,t[12]=h,t[13]=_,t[14]=m,t[15]=n.height,t[16]=n.width,t[17]=b):b=t[17];let x=b,S;t[18]!==i||t[19]!==n?(S=(e,t)=>{u(r=>{let a={width:e===`width`?t:r?.width??String(n.width),height:e===`height`?t:r?.height??String(n.height)},o=Number(t);if(i===null||!Number.isInteger(o)||o<240||o>3840)return a;let s=k9(n,e===`width`?{x:o-n.width,y:0}:{x:0,y:o-n.height},1,e===`width`?`east`:`south`,i);return{width:String(s.width),height:String(s.height)}})},t[18]=i,t[19]=n,t[20]=S):S=t[20];let C=S,w;t[21]!==y||t[22]!==i||t[23]!==n._tag||t[24]!==n.height||t[25]!==n.width?(w=e=>{if(!e)return;if(e===j9){if(n._tag===`freeform`)return;y({_tag:`freeform`,width:n.width,height:n.height});return}let t=A9.find(t=>t.id===e);t&&y(vot({mode:`preset`,preset:t.id}),i===null?null:t.width/t.height)},t[21]=y,t[22]=i,t[23]=n._tag,t[24]=n.height,t[25]=n.width,t[26]=w):w=t[26];let T=w,E;t[27]!==y||t[28]!==i||t[29]!==h||t[30]!==_||t[31]!==m||t[32]!==n?(E=()=>{let e=_&&(m!==n.width||h!==n.height)?{_tag:`freeform`,width:m,height:h}:n;y({...e,width:e.height,height:e.width},i===null?null:1/i)},t[27]=y,t[28]=i,t[29]=h,t[30]=_,t[31]=m,t[32]=n,t[33]=E):E=t[33];let D=E,O;t[34]!==i||t[35]!==h||t[36]!==m||t[37]!==a?(O=()=>{a(i===null?m/h:null)},t[34]=i,t[35]=h,t[36]=m,t[37]=a,t[38]=O):O=t[38];let k=O,A;t[39]===r?A=t[40]:(A={width:r,height:32},t[39]=r,t[40]=A);let j;t[41]===x?j=t[42]:(j=e=>{let t=e.relatedTarget;if(t instanceof Node&&e.currentTarget.contains(t))return;let n=e.target;t instanceof HTMLElement&&t.closest(`[data-slot="select-positioner"]`)||n instanceof HTMLElement&&n.closest(`[data-slot="select-positioner"]`)||x()},t[41]=x,t[42]=j);let M;t[43]===r?M=t[44]:(M=r>=560?(0,Y.jsx)(`span`,{className:`mr-0.5 shrink-0 text-[11px] font-medium text-muted-foreground`,children:`Dimensions`}):null,t[43]=r,t[44]=M);let N=r>=440?`w-36`:`w-24`,P;t[45]===N?P=t[46]:(P=q(`shrink-0 justify-between px-1.5 font-medium`,N),t[45]=N,t[46]=P);let F;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Y.jsx)(Xw,{}),t[47]=F):F=t[47];let I;t[48]===P?I=t[49]:(I=(0,Y.jsx)(Yw,{variant:`ghost`,size:`xs`,className:P,"aria-label":`Browser device preset`,children:F}),t[48]=P,t[49]=I);let L;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Y.jsx)(Qw,{value:j9,children:`Responsive`}),t[50]=L):L=t[50];let R;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,Y.jsxs)(Zw,{align:`start`,alignItemWithTrigger:!1,className:`min-w-64`,children:[L,(0,Y.jsxs)($w,{children:[(0,Y.jsx)(eT,{children:`Standard`}),A9.map(wot)]})]}),t[51]=R):R=t[51];let z;t[52]!==s||t[53]!==T||t[54]!==p||t[55]!==I?(z=(0,Y.jsxs)(Jw,{modal:!1,value:p,onValueChange:T,items:bot,disabled:s,children:[I,R]}),t[52]=s,t[53]=T,t[54]=p,t[55]=I,t[56]=z):z=t[56];let B;t[57]===x?B=t[58]:(B=e=>{e.preventDefault(),x()},t[57]=x,t[58]=B);let V=f.width,H;t[59]!==n.height||t[60]!==n.width?(H=()=>u(e=>e??{width:String(n.width),height:String(n.height)}),t[59]=n.height,t[60]=n.width,t[61]=H):H=t[61];let U;t[62]===C?U=t[63]:(U=e=>C(`width`,e.target.value),t[62]=C,t[63]=U);let W=!_,ee=r>=360?`w-14`:`w-11`,G;t[64]===ee?G=t[65]:(G=q(`h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]`,ee),t[64]=ee,t[65]=G);let te;t[66]!==s||t[67]!==f.width||t[68]!==H||t[69]!==U||t[70]!==W||t[71]!==G?(te=(0,Y.jsx)(xS,{nativeInput:!0,type:`number`,inputMode:`numeric`,size:`sm`,min:240,max:Tt,value:V,disabled:s,onFocus:H,onChange:U,"aria-label":`Viewport width`,"aria-invalid":W,className:G}),t[66]=s,t[67]=f.width,t[68]=H,t[69]=U,t[70]=W,t[71]=G,t[72]=te):te=t[72];let ne;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`×`}),t[73]=ne):ne=t[73];let re=f.height,ie;t[74]!==n.height||t[75]!==n.width?(ie=()=>u(e=>e??{width:String(n.width),height:String(n.height)}),t[74]=n.height,t[75]=n.width,t[76]=ie):ie=t[76];let ae;t[77]===C?ae=t[78]:(ae=e=>C(`height`,e.target.value),t[77]=C,t[78]=ae);let oe=!_,se=r>=360?`w-14`:`w-11`,ce;t[79]===se?ce=t[80]:(ce=q(`h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]`,se),t[79]=se,t[80]=ce);let le;t[81]!==s||t[82]!==f.height||t[83]!==ie||t[84]!==ae||t[85]!==oe||t[86]!==ce?(le=(0,Y.jsx)(xS,{nativeInput:!0,type:`number`,inputMode:`numeric`,size:`sm`,min:240,max:Tt,value:re,disabled:s,onFocus:ie,onChange:ae,"aria-label":`Viewport height`,"aria-invalid":oe,className:ce}),t[81]=s,t[82]=f.height,t[83]=ie,t[84]=ae,t[85]=oe,t[86]=ce,t[87]=le):le=t[87];let ue;t[88]!==B||t[89]!==te||t[90]!==le?(ue=(0,Y.jsxs)(`form`,{className:`m-0 flex min-w-0 shrink-0 items-center gap-0.5 border-0 p-0`,"aria-label":`Viewport dimensions`,onSubmit:B,children:[te,ne,le]}),t[88]=B,t[89]=te,t[90]=le,t[91]=ue):ue=t[91];let de=i===null?`Lock viewport aspect ratio`:`Unlock viewport aspect ratio`,fe=i!==null,pe=i===null?`Lock aspect ratio`:`Unlock aspect ratio`,me=i!==null&&`bg-accent text-foreground`,he;t[92]===me?he=t[93]:(he=q(me),t[92]=me,t[93]=he);let ge=s||!_,_e=i!==null&&`text-foreground`,ve;t[94]===_e?ve=t[95]:(ve=q(_e),t[94]=_e,t[95]=ve);let ye;t[96]===ve?ye=t[97]:(ye=(0,Y.jsx)(wte,{className:ve}),t[96]=ve,t[97]=ye);let be;t[98]!==de||t[99]!==fe||t[100]!==pe||t[101]!==he||t[102]!==ge||t[103]!==ye||t[104]!==k?(be=(0,Y.jsx)(hc,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":de,"aria-pressed":fe,title:pe,className:he,disabled:ge,onPointerDown:Cot,onClick:k,children:ye}),t[98]=de,t[99]=fe,t[100]=pe,t[101]=he,t[102]=ge,t[103]=ye,t[104]=k,t[105]=be):be=t[105];let xe;t[106]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,Y.jsx)(xot,{}),t[106]=xe):xe=t[106];let Se;t[107]!==s||t[108]!==D?(Se=(0,Y.jsx)(hc,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":`Rotate viewport`,disabled:s,onClick:D,children:xe}),t[107]=s,t[108]=D,t[109]=Se):Se=t[109];let Ce;t[110]===y?Ce=t[111]:(Ce=()=>{y({_tag:`fill`},null)},t[110]=y,t[111]=Ce);let we;t[112]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,Y.jsx)(Zo,{}),t[112]=we):we=t[112];let K;t[113]!==s||t[114]!==Ce?(K=(0,Y.jsx)(hc,{variant:`ghost`,size:`icon-xs`,type:`button`,"aria-label":`Close device toolbar`,className:`sticky right-0 ml-auto bg-background/95`,disabled:s,onClick:Ce,children:we}),t[113]=s,t[114]=Ce,t[115]=K):K=t[115];let Te;return t[116]!==j||t[117]!==M||t[118]!==z||t[119]!==ue||t[120]!==be||t[121]!==Se||t[122]!==K||t[123]!==A?(Te=(0,Y.jsxs)(`div`,{className:`sticky left-0 top-0 z-50 flex items-center gap-0.5 overflow-x-auto border-b border-border/70 bg-background/95 px-1.5 shadow-xs backdrop-blur-md [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,style:A,role:`toolbar`,"aria-label":`Browser device toolbar`,"data-browser-device-toolbar":!0,onBlur:j,children:[M,z,ue,be,Se,K]}),t[116]=j,t[117]=M,t[118]=z,t[119]=ue,t[120]=be,t[121]=Se,t[122]=K,t[123]=A,t[124]=Te):Te=t[124],Te}function Cot(e){return e.preventDefault()}function wot(e){return(0,Y.jsx)(Qw,{value:e.id,children:(0,Y.jsxs)(`span`,{className:`flex w-full items-center justify-between gap-5`,children:[(0,Y.jsx)(`span`,{children:e.label}),(0,Y.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:e.detail})]})},e.id)}var Tot=`group absolute z-20 touch-none border-0 bg-transparent p-0 outline-none before:absolute before:-inset-1 before:content-[''] focus-visible:bg-foreground/[0.04]`,Eot=`pointer-events-none absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center text-muted-foreground/55 transition-colors duration-150 group-hover:text-foreground/85 group-focus-visible:text-foreground group-active:text-foreground`;function M9(e){let t=(0,X.c)(27),{direction:n,label:r,kind:i,cursorClassName:a,style:o,active:s,mirrorCorner:c,onPointerDown:l,onKeyDown:u}=e,d=c===void 0?!1:c,f=`${r}. Use arrow keys to resize.`,p=i===`corner`&&`z-30`,m;t[0]!==a||t[1]!==p?(m=q(Tot,p,a),t[0]=a,t[1]=p,t[2]=m):m=t[2];let h;t[3]!==n||t[4]!==l?(h=e=>l(n,e),t[3]=n,t[4]=l,t[5]=h):h=t[5];let g;t[6]!==n||t[7]!==u?(g=e=>u(n,e),t[6]=n,t[7]=u,t[8]=g):g=t[8];let _=i===`vertical`&&`h-8 w-1.5`,v=i===`horizontal`&&`h-1.5 w-8`,y=i===`corner`&&`size-3`,b=s&&`text-foreground`,x;t[9]!==_||t[10]!==v||t[11]!==y||t[12]!==b?(x=q(Eot,_,v,y,b),t[9]=_,t[10]=v,t[11]=y,t[12]=b,t[13]=x):x=t[13];let S;t[14]!==i||t[15]!==d?(S=i===`vertical`?(0,Y.jsxs)(`span`,{className:`flex gap-px`,"aria-hidden":`true`,children:[(0,Y.jsx)(`span`,{className:`h-6 w-px rounded-full bg-current`}),(0,Y.jsx)(`span`,{className:`h-6 w-px rounded-full bg-current`})]}):i===`horizontal`?(0,Y.jsxs)(`span`,{className:`flex flex-col gap-px`,"aria-hidden":`true`,children:[(0,Y.jsx)(`span`,{className:`h-px w-6 rounded-full bg-current`}),(0,Y.jsx)(`span`,{className:`h-px w-6 rounded-full bg-current`})]}):(0,Y.jsxs)(`span`,{className:q(`relative block size-3`,d&&`-scale-x-100`),"aria-hidden":`true`,children:[(0,Y.jsx)(`span`,{className:`absolute bottom-[3px] left-0 h-px w-3 -rotate-45 rounded-full bg-current`}),(0,Y.jsx)(`span`,{className:`absolute bottom-0 left-[5px] h-px w-2 -rotate-45 rounded-full bg-current`})]}),t[14]=i,t[15]=d,t[16]=S):S=t[16];let C;t[17]!==x||t[18]!==S?(C=(0,Y.jsx)(`span`,{className:x,children:S}),t[17]=x,t[18]=S,t[19]=C):C=t[19];let w;return t[20]!==o||t[21]!==f||t[22]!==C||t[23]!==m||t[24]!==h||t[25]!==g?(w=(0,Y.jsx)(`button`,{type:`button`,"aria-label":f,className:m,style:o,onPointerDown:h,onKeyDown:g,children:C}),t[20]=o,t[21]=f,t[22]=C,t[23]=m,t[24]=h,t[25]=g,t[26]=w):w=t[26],w}function Dot(e){let t=(0,X.c)(53),{layout:n,activeDirection:r,onPointerDown:i,onKeyDown:a}=e,o=n.viewportX,s=n.viewportY,c=o+n.viewportWidth,l=s+n.viewportHeight,u;t[0]!==r||t[1]!==a||t[2]!==i?(u={activeDirection:r,onPointerDown:i,onKeyDown:a},t[0]=r,t[1]=a,t[2]=i,t[3]=u):u=t[3];let d=u,f=o-10,p;t[4]!==n.viewportHeight||t[5]!==f||t[6]!==s?(p={left:f,top:s,width:10,height:n.viewportHeight},t[4]=n.viewportHeight,t[5]=f,t[6]=s,t[7]=p):p=t[7];let m=d.activeDirection===`west`,h;t[8]!==d.onKeyDown||t[9]!==d.onPointerDown||t[10]!==p||t[11]!==m?(h=(0,Y.jsx)(M9,{direction:`west`,label:`Resize browser viewport from left edge`,kind:`vertical`,cursorClassName:`cursor-ew-resize`,style:p,active:m,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[8]=d.onKeyDown,t[9]=d.onPointerDown,t[10]=p,t[11]=m,t[12]=h):h=t[12];let g;t[13]!==n.viewportHeight||t[14]!==c||t[15]!==s?(g={left:c,top:s,width:10,height:n.viewportHeight},t[13]=n.viewportHeight,t[14]=c,t[15]=s,t[16]=g):g=t[16];let _=d.activeDirection===`east`,v;t[17]!==d.onKeyDown||t[18]!==d.onPointerDown||t[19]!==g||t[20]!==_?(v=(0,Y.jsx)(M9,{direction:`east`,label:`Resize browser viewport from right edge`,kind:`vertical`,cursorClassName:`cursor-ew-resize`,style:g,active:_,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[17]=d.onKeyDown,t[18]=d.onPointerDown,t[19]=g,t[20]=_,t[21]=v):v=t[21];let y;t[22]!==l||t[23]!==n.viewportWidth||t[24]!==o?(y={left:o,top:l,width:n.viewportWidth,height:10},t[22]=l,t[23]=n.viewportWidth,t[24]=o,t[25]=y):y=t[25];let b=d.activeDirection===`south`,x;t[26]!==d.onKeyDown||t[27]!==d.onPointerDown||t[28]!==b||t[29]!==y?(x=(0,Y.jsx)(M9,{direction:`south`,label:`Resize browser viewport from bottom edge`,kind:`horizontal`,cursorClassName:`cursor-ns-resize`,style:y,active:b,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[26]=d.onKeyDown,t[27]=d.onPointerDown,t[28]=b,t[29]=y,t[30]=x):x=t[30];let S=o-10,C;t[31]!==l||t[32]!==S?(C={left:S,top:l,width:10,height:10},t[31]=l,t[32]=S,t[33]=C):C=t[33];let w=d.activeDirection===`southwest`,T;t[34]!==d.onKeyDown||t[35]!==d.onPointerDown||t[36]!==C||t[37]!==w?(T=(0,Y.jsx)(M9,{direction:`southwest`,label:`Resize browser viewport from bottom-left corner`,kind:`corner`,cursorClassName:`cursor-nesw-resize`,style:C,active:w,mirrorCorner:!0,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[34]=d.onKeyDown,t[35]=d.onPointerDown,t[36]=C,t[37]=w,t[38]=T):T=t[38];let E;t[39]!==l||t[40]!==c?(E={left:c,top:l,width:10,height:10},t[39]=l,t[40]=c,t[41]=E):E=t[41];let D=d.activeDirection===`southeast`,O;t[42]!==d.onKeyDown||t[43]!==d.onPointerDown||t[44]!==E||t[45]!==D?(O=(0,Y.jsx)(M9,{direction:`southeast`,label:`Resize browser viewport from bottom-right corner`,kind:`corner`,cursorClassName:`cursor-nwse-resize`,style:E,active:D,onPointerDown:d.onPointerDown,onKeyDown:d.onKeyDown}),t[42]=d.onKeyDown,t[43]=d.onPointerDown,t[44]=E,t[45]=D,t[46]=O):O=t[46];let k;return t[47]!==x||t[48]!==T||t[49]!==O||t[50]!==h||t[51]!==v?(k=(0,Y.jsxs)(Y.Fragment,{children:[h,v,x,T,O]}),t[47]=x,t[48]=T,t[49]=O,t[50]=h,t[51]=v,t[52]=k):k=t[52],k}var Oot=class extends Lo()(`BrowserRecordingUnavailableError`,{tabId:tc}){get message(){return`Browser recording is unavailable for tab ${this.tabId}.`}},kot=class extends Lo()(`BrowserRecordingConflictError`,{requestedTabId:tc,activeTabId:tc}){get message(){return`Cannot record tab ${this.requestedTabId} while tab ${this.activeTabId} is already being recorded.`}},Aot=class extends Lo()(`BrowserRecordingCanvasUnavailableError`,{tabId:tc,width:To,height:To}){get message(){return`Browser recording canvas ${this.width}x${this.height} is unavailable for tab ${this.tabId}.`}},N9=class extends Lo()(`BrowserRecordingOperationError`,{operation:Wl([`initialize-media-recorder`,`subscribe-frames`,`start-media-recorder`,`start-screencast`,`stop-screencast`,`wait-first-frame`,`wait-startup`,`stop-media-recorder`,`save-artifact`,`cleanup`]),tabId:tc,cause:yl()}){get message(){return`Browser recording operation ${this.operation} failed for tab ${this.tabId}.`}},jot=ve(N9),P9=qa({tabIds:new Set}).pipe(Cl,ao(`preview:active-browser-recording-tabs`));function Mot(){return Kt(P9).tabIds}var F9=new Map,I9=null,Not=5e3,Pot=5e3;function Fot(e){return Array.from(F9.values()).flatMap(t=>t.threadRef?.environmentId===e.environmentId&&t.threadRef.threadId===e.threadId?[{runtimeTabId:t.tabId,serverTabId:t.serverTabId}]:[])}function Iot(e,t){return Fot(e).find(e=>e.serverTabId===t)?.runtimeTabId??null}var Lot=()=>[`video/mp4;codecs=avc1.42E01E`,`video/webm;codecs=vp9`,`video/webm`].find(e=>MediaRecorder.isTypeSupported(e))??`video/webm`,Rot=e=>{let t=F9.get(e.tabId);if(!t||!Number.isFinite(e.width)||!Number.isFinite(e.height)||e.width<=0||e.height<=0)return;let n=Math.max(1,Math.round(e.width)),r=Math.max(1,Math.round(e.height));t.frameSizeEstablished||(t.canvas.width=n,t.canvas.height=r,t.frameSizeEstablished=!0,t.settleFirstFrameSize(`frame`));let i=++t.frameSequence,a=new Image;a.addEventListener(`load`,()=>{if(F9.get(e.tabId)!==t||i<=t.lastDrawnFrameSequence)return;t.lastDrawnFrameSequence=i;let o=Math.min(t.canvas.width/n,t.canvas.height/r),s=n*o,c=r*o,l=(t.canvas.width-s)/2,u=(t.canvas.height-c)/2;t.context.fillStyle=`#000000`,t.context.fillRect(0,0,t.canvas.width,t.canvas.height),t.context.drawImage(a,l,u,s,c)},{once:!0}),a.src=`data:image/jpeg;base64,${e.data}`},L9=async e=>{if(!e||e.state===`inactive`)return;let t=new Promise(t=>e.addEventListener(`stop`,()=>t(),{once:!0}));e.stop(),await t},R9=e=>{F9.get(e.tabId)===e&&(e.settleFirstFrameSize(`cancelled`),F9.delete(e.tabId),F9.size===0&&(I9?.(),I9=null),Il.set(P9,{tabIds:new Set(F9.keys())}))},z9=async(e,t)=>{let n=[];try{await e.recording.stopScreencast(t.tabId)}catch(e){n.push(e)}try{await L9(t.recorder)}catch(e){n.push(e)}finally{R9(t)}if(n.length!==0)return n.length===1?n[0]:AggregateError(n,`Browser recording startup cleanup failed for tab ${t.tabId}.`,{cause:n[0]})},B9=(e,t=Error(`Browser recording startup was cancelled for tab ${e.tabId}.`))=>new N9({operation:`start-screencast`,tabId:e.tabId,cause:t}),zot=e=>F9.get(e.tabId)===e&&e.lifecycle.phase===`starting`,Bot=async e=>{if(e.frameSizeEstablished)return!0;let t=null,n=await Promise.race([e.firstFrameSize,new Promise(e=>{t=setTimeout(()=>e(`timeout`),Pot)})]);return t!==null&&clearTimeout(t),n===`frame`},Vot=async e=>{let t=null;try{await Promise.race([e.startupSettled,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`Browser recording startup did not settle for tab ${e.tabId}.`))},Not)})])}catch(t){throw new N9({operation:`wait-startup`,tabId:e.tabId,cause:t})}finally{t!==null&&clearTimeout(t)}},Hot=e=>jot(e)&&e.operation===`wait-startup`;async function Uot(e,t=null,n=e){let r=oI;if(!r)throw new Oot({tabId:e});let i=F9.get(e);if(i){if(i.lifecycle.phase===`recording`)return i.startedAt;throw new kot({requestedTabId:e,activeTabId:i.tabId})}let a=t===null?null:Iot(t,n);if(a!==null)throw new kot({requestedTabId:e,activeTabId:a});let o=eI.getState().byTabId[e],s=o?.content??o?.rect,c=document.createElement(`canvas`);c.width=Math.max(1,s?.width??1280),c.height=Math.max(1,s?.height??800);let l=c.getContext(`2d`,{alpha:!1});if(!l)throw new Aot({tabId:e,width:c.width,height:c.height});let u=new Date().toISOString(),d=[],f,p=new Promise(e=>{f=e}),m,h={tabId:e,serverTabId:n,threadRef:t,canvas:c,context:l,chunks:d,startedAt:u,startupSettled:p,firstFrameSize:new Promise(e=>{m=e}),settleFirstFrameSize:e=>m?.(e),recorder:null,mimeType:null,frameSizeEstablished:!1,frameSequence:0,lastDrawnFrameSequence:0,lifecycle:{phase:`starting`}};F9.set(e,h);try{try{I9??=r.recording.onFrame(Rot)}catch(t){throw R9(h),new N9({operation:`subscribe-frames`,tabId:e,cause:t})}try{await r.recording.startScreencast(e)}catch(t){throw zot(h)?(R9(h),new N9({operation:`start-screencast`,tabId:e,cause:t})):B9(h,t)}let t=async()=>{if(F9.get(e)!==h){try{await r.recording.stopScreencast(e)}catch(t){throw B9(h,AggregateError([Error(`Browser recording startup was cancelled for tab ${e}.`),t],`Browser recording startup cancellation failed for tab ${e}.`,{cause:t}))}throw B9(h)}};await t();let n=await Bot(h);if(await t(),!n){let t=Error(`No valid recording frame arrived for tab ${e}.`),n=await z9(r,h);throw new N9({operation:`wait-first-frame`,tabId:e,cause:n===void 0?t:AggregateError([t,n],`Browser recording frame wait and cleanup failed for tab ${e}.`,{cause:t})})}let i,a;try{i=Lot(),a=new MediaRecorder(c.captureStream(12),{mimeType:i,videoBitsPerSecond:4e6}),h.mimeType=i,h.recorder=a,a.addEventListener(`dataavailable`,e=>{e.data.size>0&&d.push(e.data)})}catch(t){let n=await z9(r,h);throw new N9({operation:`initialize-media-recorder`,tabId:e,cause:n===void 0?t:AggregateError([t,n],`Browser recording initialization and cleanup failed for tab ${e}.`,{cause:t})})}try{a.start(1e3)}catch(t){let n=await z9(r,h);throw new N9({operation:`start-media-recorder`,tabId:e,cause:n===void 0?t:AggregateError([t,n],`Browser media recorder start and cleanup failed for tab ${e}.`,{cause:t})})}return h.lifecycle.phase===`starting`&&(h.lifecycle={phase:`recording`}),Il.set(P9,{tabIds:new Set(F9.keys())}),u}finally{f?.()}}var Wot=async(e,t)=>{let{tabId:n}=t,r;try{await Vot(t);try{await e.recording.stopScreencast(n)}catch(e){throw new N9({operation:`stop-screencast`,tabId:n,cause:e})}if(!t.recorder||!t.mimeType)r={_tag:`Success`,artifact:null};else{try{await L9(t.recorder)}catch(e){throw new N9({operation:`stop-media-recorder`,tabId:n,cause:e})}try{let i=new Blob(t.chunks,{type:t.mimeType});r={_tag:`Success`,artifact:await e.recording.save(n,t.mimeType,new Uint8Array(await i.arrayBuffer()))}}catch(e){throw new N9({operation:`save-artifact`,tabId:n,cause:e})}}}catch(e){r={_tag:`Failure`,error:e}}if(r._tag===`Failure`&&Hot(r.error))throw r.error;let i;try{await L9(t.recorder)}catch(e){i=new N9({operation:`stop-media-recorder`,tabId:n,cause:e})}finally{R9(t)}if(r._tag===`Failure`)throw i?new N9({operation:`cleanup`,tabId:n,cause:AggregateError([r.error,i],`Browser recording stop and cleanup failed for tab ${n}.`,{cause:r.error})}):r.error;if(i)throw i;return r.artifact},Got=async(e,t)=>{try{return await e.recording.stopScreencast(t.tabId).catch(()=>void 0),await L9(t.recorder).catch(()=>void 0),null}finally{R9(t)}};function V9(e){let t=oI,n=F9.get(e);if(!t||!n)return Promise.resolve(null);if(n.lifecycle.phase===`stopping`)return n.lifecycle.stopPromise;let r=Promise.resolve().then(()=>Wot(t,n)).catch(e=>{if(Hot(e)&&F9.get(n.tabId)===n){let e=n.startupSettled.then(()=>Got(t,n));n.lifecycle={phase:`stopping`,stopPromise:e},e.catch(()=>void 0)}throw e});return n.lifecycle={phase:`stopping`,stopPromise:r},r}var H9=new Map,U9=new Map,Kot=(e,t)=>{let n=U9.get(e),r=n?n.catch(()=>void 0).then(t):Promise.resolve(t());return U9.set(e,r),r.finally(()=>{U9.get(e)===r&&U9.delete(e)}).catch(()=>void 0),r};function qot(e){let t=H9.get(e)??{references:0,closeTimer:null,ready:Kot(e,()=>oI?.createTab(e))};return t.closeTimer!==null&&window.clearTimeout(t.closeTimer),t.references+=1,t.closeTimer=null,H9.set(e,t),{ready:t.ready,release:()=>{let t=H9.get(e);t&&(t.references=Math.max(0,t.references-1),!(t.references>0)&&(t.closeTimer=window.setTimeout(()=>{let t=H9.get(e);!t||t.references>0||(H9.delete(e),Kot(e,async()=>{await V9(e).catch(()=>null),await oI?.closeTab(e)}).catch(()=>void 0))},0)))}}}var Jot=-1e5;function Yot(e){let{active:t,cornerRadius:n=0,hiddenSize:r,rect:i}=e;return t&&i?{left:i.x,top:i.y,width:i.width,height:i.height,zIndex:30,pointerEvents:`auto`,...n>0?{borderRadius:n}:{}}:{left:Jot,top:Jot,width:r.width,height:r.height,zIndex:-1,pointerEvents:`none`,visibility:`visible`}}var Xot=5*6e4,Zot=10*6e4,Qot=class extends Lo()(`PreviewWebviewBridgeUnavailableError`,{environmentId:tc}){get message(){return`Desktop preview configuration is unavailable for environment "${this.environmentId}".`}},$ot=class extends Lo()(`PreviewWebviewConfigLoadError`,{environmentId:tc,cause:yl()}){get message(){return`Failed to load desktop preview configuration for environment "${this.environmentId}".`}};Lu([Qot,$ot]);var est=(e,t=oI)=>t===null?Ll(new Qot({environmentId:e})):An({try:()=>t.getPreviewConfig(e),catch:t=>new $ot({environmentId:e,cause:t})}),tst=Oc(e=>qa(est(e)).pipe(ql({staleTime:Xot,revalidateOnMount:!0}),qs(Zot),ao(`preview:webview-config:${e}`)));function nst(e){let t=(0,X.c)(4),n;t[0]===e?n=t[1]:(n=tst(e),t[0]=e,t[1]=n);let r=Kt(n),i;return t[2]===r?i=t[3]:(i=Fu(ua(r)),t[2]=r,t[3]=i),i}var rst=15e3,ist=class extends Error{tabId;name=`BrowserViewportCommitTimeoutError`;constructor(e){super(`Timed out committing the browser viewport for tab ${e}`),this.tabId=e}},W9=new Map,G9=new Map,ast=(e,t)=>{let n=(G9.get(e)??Promise.resolve()).catch(()=>void 0).then(()=>({operation:Promise.resolve().then(t)})),r=n.then(({operation:e})=>e),i=r.then(()=>void 0);G9.set(e,i);let a=()=>{G9.get(e)===i&&G9.delete(e)};return i.then(a,a),{started:n,execution:r}};function K9(e,t){return ast(e,t).execution}var ost=(e,t)=>{let n,r=new Promise((t,r)=>{n=setTimeout(()=>r(new ist(e)),rst)});return Promise.race([t,r]).finally(()=>{n!==void 0&&clearTimeout(n)})};function sst(e,t){return W9.set(e,t),()=>{W9.get(e)===t&&W9.delete(e)}}function q9(e,t){let{started:n}=ast(e,()=>{let n=W9.get(e);return n?n(t):Promise.reject(Error(`No visible browser viewport handler for tab ${e}`))});return n.then(({operation:t})=>ost(e,t))}var cst=150;function lst(e){let{tabId:t,viewport:n,zoomFactor:r,containerSize:i,deviceToolbarVisible:a,aspectRatio:o}=e,s=(0,J.useRef)(null),c=(0,J.useRef)(0),l=(0,J.useRef)(null),u=(0,J.useRef)(null),[d,f]=(0,J.useState)(null),p=T9(n),m=(0,J.useRef)(p);m.current=p;let h=d?.sourceKey===p?d:null,g=h?{_tag:`freeform`,width:h.width,height:h.height}:n,_=Number.isFinite(r)&&r>0?r:1,v=a?D9(i):i,y=a&&g._tag!==`fill`?lot(i,g,r):O9(i,g,r);(0,J.useEffect)(()=>()=>{c.current+=1,s.current?.(),l.current!==null&&clearTimeout(l.current),l.current=null,u.current=null},[]),(0,J.useEffect)(()=>{let e=u.current;!e||e.sourceKey===p||(l.current!==null&&(clearTimeout(l.current),l.current=null),u.current=null)},[p]);let b=(0,J.useCallback)(e=>(c.current+=1,s.current?.(),l.current!==null&&(clearTimeout(l.current),l.current=null),u.current=null,f(null),q9(t,e)),[t]),x=()=>f(null),S=e=>{let n=++c.current,r=()=>{c.current===n&&x()};q9(t,e).then(r,r)};return{activeDrag:h,commitViewportChange:b,effectiveViewport:g,handleResizeKeyDown:(e,t)=>{if(g._tag===`fill`)return;let n=e.includes(`east`)||e.includes(`west`),i=e.includes(`north`)||e.includes(`south`),a=(t.shiftKey?50:10)*_,s=t.key===`ArrowLeft`&&n?{x:-a,y:0}:t.key===`ArrowRight`&&n?{x:a,y:0}:t.key===`ArrowUp`&&i?{x:0,y:-a}:t.key===`ArrowDown`&&i?{x:0,y:a}:null;if(!s)return;t.preventDefault(),t.stopPropagation();let c=u.current,d=c?.sourceKey===p?c:g,h=k9(d,s,r,e,o??void 0);if(h.width===d.width&&h.height===d.height)return;let v={sourceKey:p,...h,direction:e};u.current=v,f(v),l.current!==null&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null;let e=u.current;!e||e.sourceKey!==m.current||(u.current=null,S({_tag:`freeform`,width:e.width,height:e.height}))},cst)},handleResizePointerDown:(e,t)=>{if(g._tag===`fill`)return;t.preventDefault(),t.stopPropagation(),l.current!==null&&(clearTimeout(l.current),l.current=null),u.current=null,s.current?.(),c.current+=1;let n=t.pointerId,r=t.currentTarget,i=t.clientX,a=t.clientY,d=g.width,h=g.height,b=_*y.viewportScale,C={width:d,height:h};f({sourceKey:p,width:d,height:h,direction:e});try{r.setPointerCapture(n)}catch{}let w=()=>m.current!==p,T=t=>{if(t.pointerId!==n)return;if(w()){E(),c.current+=1,x();return}t.preventDefault();let{width:r,height:s}=hot({width:d,height:h},{x:t.clientX-i,y:t.clientY-a},v,b,e,o??void 0);C={width:r,height:s},f({sourceKey:p,width:r,height:s,direction:e})};function E(){window.removeEventListener(`pointermove`,T),window.removeEventListener(`pointerup`,D),window.removeEventListener(`pointercancel`,O),s.current=null;try{r.releasePointerCapture(n)}catch{}}function D(e){if(e.pointerId===n){if(E(),w()||C.width===d&&C.height===h){x();return}S({_tag:`freeform`,width:C.width,height:C.height})}}function O(e){e.pointerId===n&&(E(),c.current+=1,x())}s.current=E,window.addEventListener(`pointermove`,T,{passive:!1}),window.addEventListener(`pointerup`,D),window.addEventListener(`pointercancel`,O)},layout:y}}var ust={attempts:0,windowStartedAt:null};function dst(e,t){let n=e.windowStartedAt===null||t-e.windowStartedAt>=3e4,r=n?0:e.attempts;if(r>=3)return null;let i=r+1;return{delayMs:250*2**r,state:{attempts:i,windowStartedAt:n?t:e.windowStartedAt}}}function fst(e){let{threadRef:t,tabId:n,runtimeTabId:r,initialUrl:i,viewport:a,zoomFactor:o}=e,s=nst(t.environmentId),[c]=(0,J.useState)(()=>i??`about:blank`),l=(0,J.useRef)(null),u=(0,J.useRef)(null),d=(0,J.useRef)(null),f=(0,J.useRef)(ust),[p,m]=(0,J.useState)(!1),h=eI(Gs(e=>{let t=e.byTabId[r];return{content:t?.content??null,cornerRadius:t?.cornerRadius??0,fitSourceContent:t?.fitSourceContent??!1,fittedSourceContent:t?.fittedSourceContent??null,rect:uje(e.byTabId,r),visible:t?.visible??!1}}));rot({threadRef:t,tabId:n,runtimeTabId:r}),(0,J.useEffect)(()=>{f.current=ust;let e=qot(r);return l.current=e,()=>{l.current===e&&(l.current=null),e.release()}},[r]);let[g,_]=(0,J.useState)(0),[v,y]=(0,J.useState)(c),b=(0,J.useRef)(i);(0,J.useEffect)(()=>{b.current=i},[i]);let x=(0,J.useCallback)(e=>{d.current=e,e&&!e.hasAttribute(`allowpopups`)&&e.setAttribute(`allowpopups`,`true`)},[]);(0,J.useEffect)(()=>{let e=d.current,t=oI;if(!e||!s||!t)return;let n=!1,i=null,a=()=>{let i=l.current;i&&(async()=>{try{if(await i.ready,n||d.current!==e)return;let a=e.getWebContentsId();Number.isInteger(a)&&a>0&&await t.registerWebview(r,a)}catch{}})()},o=()=>{if(n||i!==null)return;let e=dst(f.current,Date.now());e&&(f.current=e.state,i=setTimeout(()=>{i=null,n||(y(b.current??c),_(e=>e+1))},e.delayMs))};return e.addEventListener(`did-attach`,a),e.addEventListener(`dom-ready`,a),e.addEventListener(`render-process-gone`,o),a(),()=>{n=!0,i!==null&&clearTimeout(i),e.removeEventListener(`did-attach`,a),e.removeEventListener(`dom-ready`,a),e.removeEventListener(`render-process-gone`,o)}},[s,c,r,g]);let S=h.visible&&h.rect!==null,C=h.rect,w=Number.isFinite(o)&&o>0?o:1,T=a._tag===`fill`?null:a.width,E=a._tag===`fill`?null:a.height,D=T===null||E===null?null:T/E,O=p&&D!==null?D:null,k=(0,J.useCallback)(e=>{m(e!==null)},[]),A=h.content?{width:h.content.width/h.content.scale,height:h.content.height/h.content.scale}:null,j=a._tag===`fill`?{width:A?.width??C?.width??1280,height:A?.height??C?.height??800}:{width:a.width*w,height:a.height*w},M=S&&C?C:j,N=S&&a._tag!==`fill`&&!h.fitSourceContent,{activeDrag:P,commitViewportChange:F,effectiveViewport:I,handleResizeKeyDown:L,handleResizePointerDown:R,layout:z}=lst({tabId:r,viewport:a,zoomFactor:o,containerSize:M,deviceToolbarVisible:N,aspectRatio:O}),B=h.fitSourceContent&&C?cot(a,h.fittedSourceContent,w):null,V=B&&C?O9(C,B,w):z,H=(0,J.useCallback)(()=>{let e=u.current;e&&eI.getState().presentContent(r,{x:V.viewportX,y:V.viewportY,width:V.viewportWidth,height:V.viewportHeight,scale:V.viewportScale,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop})},[V,r]);return(0,J.useEffect)(()=>{let e=window.requestAnimationFrame(H);return()=>window.cancelAnimationFrame(e)},[H]),(0,J.useEffect)(()=>{let e=u.current;e&&e.scrollTo({left:0,top:0})},[r,a._tag,E,T]),s?(0,Y.jsx)(`div`,{ref:u,className:`fixed overflow-hidden bg-muted/35`,style:{...Yot({active:S,cornerRadius:h.cornerRadius,rect:C,hiddenSize:j}),overscrollBehavior:`contain`},onScroll:H,"data-preview-viewport":r,children:(0,Y.jsxs)(`div`,{className:`relative`,style:{width:V.canvasWidth,height:V.canvasHeight},children:[N&&I._tag!==`fill`?(0,Y.jsx)(Sot,{setting:I,width:Math.max(1,Math.round(M.width)),aspectRatio:O,onAspectRatioChange:k,onChange:F}):null,(0,Y.jsx)(`webview`,{ref:x,src:g===0?c:v,partition:s.partition,webpreferences:s.webPreferences,...s.preloadUrl?{preload:s.preloadUrl}:{},"data-preview-tab":r,"data-preview-server-tab":n,"data-preview-viewport-mode":I._tag,"data-preview-viewport-key":T9(I),"data-preview-css-width":B?B.width:I._tag===`fill`?Math.max(1,Math.round(V.viewportWidth/w)):I.width,"data-preview-css-height":B?B.height:I._tag===`fill`?Math.max(1,Math.round(V.viewportHeight/w)):I.height,"aria-hidden":S?void 0:!0,className:q(`absolute flex overflow-hidden bg-background`,S&&!V.fillsPanel&&`ring-1 ring-border/70 shadow-sm`),style:{left:V.viewportX,top:V.viewportY,width:V.viewportWidth/V.viewportScale,height:V.viewportHeight/V.viewportScale,transform:V.viewportScale<1?`scale(${V.viewportScale})`:void 0,transformOrigin:`top left`}},g),S&&I._tag!==`fill`&&!B?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Dot,{layout:V,activeDirection:P?.direction??null,onPointerDown:R,onKeyDown:L}),P?(0,Y.jsxs)(`div`,{className:`pointer-events-none absolute z-40 -translate-x-1/2 rounded-md border border-border/80 bg-background/95 px-2 py-1 text-[11px] font-medium tabular-nums text-foreground shadow-md backdrop-blur-sm`,style:{left:V.viewportX+V.viewportWidth/2,top:V.viewportY+10},"aria-hidden":`true`,children:[P.width,` × `,P.height]}):null]}):null]})}):null}function pst(){let e=(0,X.c)(7),{resolvedTheme:t}=lO(),n=Kse(),r;e[0]===n?r=e[1]:(r=Object.entries(n).flatMap(vst),e[0]=n,e[1]=r);let i=r,a;e[2]===t?a=e[3]:(a=[t],e[2]=t,e[3]=a),(0,J.useEffect)(_st,a);let o;if(e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],e[4]=o):o=e[4],(0,J.useEffect)(hst,o),!tot)return null;let s;return e[5]===i?s=e[6]:(s=(0,Y.jsx)(`div`,{className:`contents`,"data-electron-browser-host":!0,children:i.map(mst)}),e[5]=i,e[6]=s),s}function mst(e){let{threadRef:t,snapshot:n,runtimeTabId:r,zoomFactor:i}=e,a=n.navStatus._tag===`Idle`?null:n.navStatus.url;return(0,Y.jsx)(fst,{threadRef:t,tabId:n.tabId,runtimeTabId:r,initialUrl:a,viewport:n.viewport??It,zoomFactor:i},r)}function hst(){let e=window.desktopBridge?.preview;if(e)return e.onPointerEvent(gst)}function gst(e){w9.getState().apply(e)}function _st(){let e=window.desktopBridge?.preview;if(!e)return;let t=``,n=()=>{let n=not(),r=JSON.stringify(n);r!==t&&(t=r,e.setAnnotationTheme(n).catch(()=>{t=``}))},r=window.requestAnimationFrame(n),i=new MutationObserver(n);i.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`style`]});let a=new MutationObserver(n);return a.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),()=>{window.cancelAnimationFrame(r),i.disconnect(),a.disconnect()}}function vst(e){let[t,n]=e,r=au(t);return r?Object.values(n.sessions).map(e=>({threadRef:r,snapshot:e,runtimeTabId:rI(r,n.serverEpoch,e.tabId),zoomFactor:n.desktopByTabId[e.tabId]?.zoomFactor??1})):[]}function yst(){let e=(0,X.c)(1);if(!rm)return null;let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(bst,{}),e[0]=t):t=e[0],t}function bst(){let e=(0,X.c)(9),t=wst(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(J9,{label:`Minimise`,onClick:Cst,children:(0,Y.jsx)(`path`,{d:`M2.5 8h11`})}),e[0]=n):n=e[0];let r=t?`Restore`:`Maximise`,i;e[1]===t?i=e[2]:(i=t?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`path`,{d:`M4.5 6.5h7v7h-7z`}),(0,Y.jsx)(`path`,{d:`M6.5 4.5h7v7h-2`})]}):(0,Y.jsx)(`path`,{d:`M4.5 4.5h9v9h-9z`}),e[1]=t,e[2]=i);let a;e[3]!==r||e[4]!==i?(a=(0,Y.jsx)(J9,{label:r,onClick:Sst,children:i}),e[3]=r,e[4]=i,e[5]=a):a=e[5];let o;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(J9,{label:`Close`,onClick:xst,destructive:!0,children:(0,Y.jsx)(`path`,{d:`M4.75 4.75l8.5 8.5m0-8.5l-8.5 8.5`})}),e[6]=o):o=e[6];let s;return e[7]===a?s=e[8]:(s=(0,Y.jsxs)(`div`,{className:`fixed top-0 right-0 z-[1000] flex`,"data-desktop-window-controls":!0,"data-tauri-drag-region":`false`,children:[n,a,o]}),e[7]=a,e[8]=s),s}function xst(){am(`close`)}function Sst(){am(`toggle_maximize`)}function Cst(){am(`minimize`)}function J9(e){let t=(0,X.c)(7),{label:n,onClick:r,destructive:i,children:a}=e,o=i!==void 0&&i?`desktop-window-control desktop-window-control-close`:`desktop-window-control`,s;t[0]===a?s=t[1]:(s=(0,Y.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 18 18`,fill:`none`,stroke:`currentColor`,strokeWidth:`1`,shapeRendering:`crispEdges`,"aria-hidden":`true`,children:a}),t[0]=a,t[1]=s);let c;return t[2]!==n||t[3]!==r||t[4]!==o||t[5]!==s?(c=(0,Y.jsx)(`button`,{type:`button`,"aria-label":n,title:n,onClick:r,className:o,children:s}),t[2]=n,t[3]=r,t[4]=o,t[5]=s,t[6]=c):c=t[6],c}function wst(){let e=(0,X.c)(2),[t,n]=(0,J.useState)(!1),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=!0,t=()=>{Mee().then(t=>{e&&n(t)})};return t(),window.addEventListener(`resize`,t),()=>{e=!1,window.removeEventListener(`resize`,t)}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,J.useEffect)(r,i),t}function Tst(e,t,n){return n===void 0?t!==null&&e.has(t)?t:e.size===1?e.values().next().value??null:null:e.has(n)?n:null}var Est=class extends Lo()(`PreviewAutomationOverlayTimeoutError`,{requestId:cs,environmentId:Ml,threadId:sl,timeoutMs:Ws}){get responseTag(){return`PreviewAutomationTimeoutError`}get message(){return`Preview webview for request ${this.requestId} on environment ${this.environmentId} thread ${this.threadId} did not register within ${this.timeoutMs}ms.`}},Dst=class extends Lo()(`PreviewAutomationNavigationTimeoutError`,{requestId:cs,environmentId:Ml,threadId:sl,tabId:Oi,readiness:Wl([`domContentLoaded`,`load`]),timeoutMs:Ws}){get responseTag(){return`PreviewAutomationTimeoutError`}get message(){return`Preview navigation for request ${this.requestId} on environment ${this.environmentId} thread ${this.threadId} tab ${this.tabId} did not reach ${this.readiness} readiness within ${this.timeoutMs}ms.`}},Ost=class extends Lo()(`PreviewAutomationViewportTimeoutError`,{requestId:cs,environmentId:Ml,threadId:sl,tabId:Oi,timeoutMs:Ws}){get responseTag(){return`PreviewAutomationTimeoutError`}get message(){return`Preview viewport for request ${this.requestId} on environment ${this.environmentId} thread ${this.threadId} tab ${this.tabId} was not rendered within ${this.timeoutMs}ms.`}},Y9=class extends Lo()(`PreviewAutomationTargetUnavailableError`,{requestId:cs,operation:Ue,environmentId:Ml,threadId:sl,tabId:no(Oi),bridgeAvailable:Tc}){get responseTag(){return`PreviewAutomationTabNotFoundError`}get message(){return`Preview automation target for ${this.operation} request ${this.requestId} is unavailable on environment ${this.environmentId} thread ${this.threadId} (tab ${this.tabId??`unassigned`}, bridge ${this.bridgeAvailable?`available`:`unavailable`}).`}},kst=class extends Lo()(`PreviewAutomationRecordingNotActiveError`,{requestId:cs,environmentId:Ml,threadId:sl,tabId:no(Oi)}){get responseTag(){return`PreviewAutomationExecutionError`}get message(){return`Preview automation request ${this.requestId} found no active recording for tab ${this.tabId??`unassigned`} on environment ${this.environmentId} thread ${this.threadId}.`}},Ast=class extends Lo()(`PreviewAutomationTargetNotEditableHostError`,{requestId:cs,operation:Ue,environmentId:Ml,threadId:sl,tabId:no(Oi),selectorKind:Tn(Wl([`focused-element`,`locator`,`selector`])),selectorLength:Tn(Ws.check(oe(0)))}){get responseTag(){return`PreviewAutomationTargetNotEditableError`}get message(){return`Preview automation ${this.operation} request ${this.requestId} requires an editable target in tab ${this.tabId??`unassigned`}.`}},jst=e=>{if(typeof e!=`object`||!e||!(`_tag`in e)||e._tag!==`PreviewAutomationTargetNotEditableError`)return null;let t=`selectorKind`in e&&(e.selectorKind===`focused-element`||e.selectorKind===`locator`||e.selectorKind===`selector`)?e.selectorKind:void 0,n=`selectorLength`in e&&typeof e.selectorLength==`number`&&Number.isInteger(e.selectorLength)&&e.selectorLength>=0?e.selectorLength:void 0;return{...t===void 0?{}:{selectorKind:t},...n===void 0?{}:{selectorLength:n}}},X9=class e extends Lo()(`PreviewAutomationOperationError`,{requestId:cs,operation:Ue,environmentId:Ml,threadId:sl,tabId:no(Oi),cause:yl()}){static fromCause(t){if(Mst(t.cause))return t.cause;let n=jst(t.cause);return n?new Ast({requestId:t.requestId,operation:t.operation,environmentId:t.environmentId,threadId:t.threadId,tabId:t.tabId,...n}):new e(t)}get responseTag(){return`PreviewAutomationExecutionError`}get message(){return`Preview automation ${this.operation} request ${this.requestId} failed on environment ${this.environmentId} thread ${this.threadId} (tab ${this.tabId??`unassigned`}).`}},Mst=ve(Lu([Est,Dst,Ost,Y9,kst,Ast,X9]));function Nst(e){let t=Object.fromEntries(Object.entries(e).filter(([e])=>e!==`_tag`&&e!==`cause`&&e!==`name`&&e!==`message`&&e!==`stack`));return{_tag:e.responseTag,message:e.message,...Object.keys(t).length===0?{}:{detail:t}}}var Pst={_tag:`freeform`,width:1280,height:800};function Fst(e){return e.open??e.show??!0}function Ist(e,t){return e.url!==void 0||t.navStatus._tag!==`Idle`}function Lst(e,t){let n=t.viewport??It;return!e&&n._tag===`fill`?Pst:null}function Z9(e,t,n,r){let i=Gb(e);if(i.sessions[t]&&fje(e,i.serverEpoch,t,n))return i;throw new Y9({requestId:r.requestId,operation:r.operation,environmentId:e.environmentId,threadId:e.threadId,tabId:t,bridgeAvailable:!!oI})}async function Rst(e,t,n,r,i,a,o){let s=a??`load`;if(!oI||(Z9(e,n,r,{operation:i,requestId:t}),s===`none`))return;let c=Date.now()+o;for(;Date.now()<=c;){if(Z9(e,n,r,{operation:i,requestId:t}),s===`domContentLoaded`){let e=await oI.automation.evaluate(r,{expression:`document.readyState`});if(e===`interactive`||e===`complete`)return}else{let e=await oI.automation.status(r);if(e.available&&!e.loading)return}await new Promise(e=>window.setTimeout(e,50))}throw new Dst({requestId:t,environmentId:e.environmentId,threadId:e.threadId,tabId:n,readiness:s,timeoutMs:o})}function zst(e,t){return Nst(X9.fromCause({...t,cause:e}))}function Bst(e){return qa(t=>{t.mount(e.connectionAtom),t.mount(e.requestHandlerAtom);let n=!1,r=null,i=!1,a=null,o=0,s=n=>{if(!$o(n))return;let o=n.value;if(o.type===`connected`)r=o.connectionId,i=!0;else if(r===null)r=o.connectionId;else if(r!==o.connectionId){if(i)return;r=o.connectionId}if(a!==o.connectionId&&(a=o.connectionId,t.set(e.connectionAtom,o.connectionId)),o.type===`connected`)return;let s=o.request;t.once(e.requestHandlerAtom).handle(s).then(t=>e.respond({clientId:e.clientId,connectionId:o.connectionId,requestId:s.requestId,ok:!0,...t===void 0?{}:{result:t}}),t=>e.respond({clientId:e.clientId,connectionId:o.connectionId,requestId:s.requestId,ok:!1,error:zst(t,{requestId:s.requestId,operation:s.operation,environmentId:e.environmentId,threadId:s.threadId,tabId:s.tabId??null})}))};t.addFinalizer(()=>{n=!0});let c=t.once(e.requestsAtom);$o(c)&&(r=c.value.connectionId,i=c.value.type===`connected`,c.value.type===`connected`&&(a=c.value.connectionId,t.set(e.connectionAtom,c.value.connectionId))),t.subscribe(e.requestsAtom,e=>{o+=1,s(e)}),queueMicrotask(()=>{let e=$o(c)&&c.value.connectionId===r&&c.value.connectionId!==a;!n&&(o===0||e)&&s(c)})}).pipe(qs(0),ao(e.label))}function Vst(){let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return`preview-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}function Hst(e,t){return Object.keys(e.sessions).length===0||t===void 0||e.sessions[t]===void 0}function Ust(e,t){let n=t?e.sessions[t]??null:e.snapshot;return{tabId:n?.tabId??null,snapshot:n}}function Wst(e,t,n){return n?t===void 0?e.snapshot?.tabId??null:e.sessions[t]?.tabId??null:null}function Gst(e){let{setting:t,appliedSettingKey:n,declaredViewport:r,renderedViewport:i}=e;if(n!==T9(t)||r===null||i===null)return!1;let a=t._tag===`fill`?r:{width:t.width,height:t.height};return t._tag!==`fill`&&(r.width!==a.width||r.height!==a.height)?!1:Math.abs(i.width-a.width)<=1&&Math.abs(i.height-a.height)<=1}function Kst(e,t,n,r,i){let a=T9(t);return i===r&&T9(n)===a&&T9(e)!==a}var qst=500,Jst=async e=>{let t=Date.now()+qst;for(;Date.now()<=t;){if(eI.getState().byTabId[e]?.visible)return;await new Promise(e=>window.setTimeout(e,16))}},Yst=async(e,t,n,r,i,a)=>{let o=Date.now()+a;for(;Date.now()<=o;){if(Z9(e,n,r,{operation:i,requestId:t}).desktopByTabId[n]&&oI&&(await oI.automation.status(r)).available)return;await new Promise(e=>window.setTimeout(e,50))}throw new Est({requestId:t,environmentId:e.environmentId,threadId:e.threadId,timeoutMs:a})},Xst=e=>Array.from(document.querySelectorAll(`webview[data-preview-tab]`)).find(t=>t.getAttribute(`data-preview-tab`)===e)??null,Zst=async e=>{let t=await e.executeJavaScript(`({ width: window.innerWidth, height: window.innerHeight })`);if(typeof t!=`object`||!t)return null;let{width:n,height:r}=t;return typeof n==`number`&&Number.isInteger(n)&&n>0&&typeof r==`number`&&Number.isInteger(r)&&r>0?{width:n,height:r}:null},Qst=async e=>{let t=Xst(e);return t?await Zst(t):null},$st=e=>{let t=Number(e?.getAttribute(`data-preview-css-width`)),n=Number(e?.getAttribute(`data-preview-css-height`));return Number.isInteger(t)&&t>0&&Number.isInteger(n)&&n>0?{width:t,height:n}:null},ect=async(e,t,n,r,i,a)=>{let o=Date.now()+i;for(;Date.now()<=o;){Z9(e,t,n,a);try{let e=Xst(n),t=e?.getAttribute(`data-preview-viewport-key`)??null,i=$st(e),a=e?await Zst(e):null;if(a&&Gst({setting:r,appliedSettingKey:t,declaredViewport:i,renderedViewport:a}))return a}catch{}await new Promise(e=>window.setTimeout(e,50))}throw new Ost({...a,tabId:t,timeoutMs:i})},Q9=async(e,t)=>{let n=Gb(e),{snapshot:r,tabId:i}=Ust(n,t),a=i?rI(e,n.serverEpoch,i):null,o=a?eI.getState().byTabId[a]?.visible??!1:!1,s=r?r.viewport??It:void 0,c=a?await Qst(a).catch(()=>null):null,l={...s===void 0?{}:{viewportSetting:s},...c===null?{}:{viewport:c}};if(a&&i&&oI&&n.desktopByTabId[i])return{...await oI.automation.status(a),tabId:i,visible:o,...l};let u=r?.navStatus;return{available:!!oI?.automation,visible:o,tabId:i,url:u&&u._tag!==`Idle`?u.url:null,title:u&&u._tag!==`Idle`?u.title:null,loading:u?._tag===`Loading`,...l}},$9=e=>{throw Xn(e)},tct=e=>{throw e};function nct(){let e=(0,X.c)(4),{environments:t}=Ds();if(!oI?.automation)return null;let n;e[0]===t?n=e[1]:(n=t.map(rct),e[0]=t,e[1]=n);let r;return e[2]===n?r=e[3]:(r=(0,Y.jsx)(Y.Fragment,{children:n}),e[2]=n,e[3]=r),r}function rct(e){return(0,Y.jsx)(ict,{environmentId:e.environmentId},e.environmentId)}function ict(e){let{environmentId:t}=e,n=(0,J.useContext)(cr),[r]=(0,J.useState)(Vst),i=(0,J.useMemo)(()=>({clientId:r,environmentId:t,supportedOperations:[...gi]}),[r,t]),a=Sb.automationRequests({environmentId:t,input:i}),o=DX(Sb.list,{reportFailure:!1}),s=pe(Sb.open,{reportFailure:!1}),c=pe(Sb.resize,{reportFailure:!1}),l=pe(Sb.respondToAutomation,`preview automation response`),u=pe(Sb.focusAutomationHost,`preview automation host focus`),[d]=(0,J.useState)(()=>qa(null)),f=Kt(d),p=(0,J.useCallback)(async e=>{let r={environmentId:t,threadId:e.threadId},i=e.tabId??null;try{let a=Gb(r);if(Hst(a,e.tabId)){let i={environmentId:t,input:{threadId:e.threadId}};n.refresh(Sb.list(i));let s=await o(i);if(s._tag===`Failure`)return $9(s);Jse(r,s.value),a=Gb(r)}i=e.tabId??a.snapshot?.tabId??null;let l={requestId:e.requestId,operation:e.operation,environmentId:t,threadId:e.threadId,tabId:i,bridgeAvailable:!!oI},u=async()=>{let t=oI,n=i;if(!t||!n)throw new Y9(l);let a=Gb(r),o=rI(r,a.serverEpoch,n);return await Yst(r,e.requestId,n,o,e.operation,e.timeoutMs),{bridge:t,tabId:n,runtimeTabId:o}};switch(e.operation){case`status`:return await Q9(r,i);case`open`:{let n=e.input,o=n.url?Pb(t,{kind:`url`,url:n.url}).resolvedUrl:void 0,l=Wst(a,e.tabId,n.reuseExistingTab??!0),u=l?a.sessions[l]??a.snapshot??void 0:void 0,d=l!==null;if(i=l,!l){let n=await s({environmentId:t,input:{threadId:e.threadId,...o?{url:o}:{}}});if(n._tag===`Failure`)return $9(n);let a=n.value;Kb(r,a),l=a.tabId,u=a,i=l}let f=rI(r,Gb(r).serverEpoch,l);if(u){let n=Lst(d,u);if(n){let i=await K9(f,async()=>(Z9(r,l,f,e),await c({environmentId:t,input:{threadId:e.threadId,tabId:l,viewport:n}})));if(i._tag===`Failure`)return $9(i);u=i.value,qb(r,i.value)}}let p=Fst(n);return p&&iI.getState().open(r,l),u&&Ist(n,u)&&await Yst(r,e.requestId,l,f,e.operation,e.timeoutMs),p&&await Jst(f),d&&o&&oI&&(Z9(r,l,f,e),await oI.navigate(f,o),await Rst(r,e.requestId,l,f,e.operation,`load`,e.timeoutMs)),await Q9(r,l)}case`navigate`:{let n=await u(),i=e.input,a=Pb(t,i.target??{kind:`url`,url:i.url});return await n.bridge.navigate(n.runtimeTabId,a.resolvedUrl),await Rst(r,e.requestId,n.tabId,n.runtimeTabId,e.operation,i.readiness??`load`,i.timeoutMs??e.timeoutMs),await Q9(r,n.tabId)}case`resize`:{let n=await u(),i=e.input,a=vot(i),o=await K9(n.runtimeTabId,async()=>{let i=Z9(r,n.tabId,n.runtimeTabId,e),o=i.sessions[n.tabId]?.viewport??It,s=await c({environmentId:t,input:{threadId:e.threadId,tabId:n.tabId,viewport:a}});return s._tag===`Failure`?$9(s):(qb(r,s.value),{previousSetting:o,serverEpoch:i.serverEpoch})}),s;try{s=await ect(r,n.tabId,n.runtimeTabId,a,i.timeoutMs??e.timeoutMs,{requestId:e.requestId,operation:e.operation,environmentId:t,threadId:e.threadId})}catch(i){throw await K9(n.runtimeTabId,async()=>{let i=Gb(r),s=i.sessions[n.tabId]?.viewport??It;if(Kst(o.previousSetting,a,s,o.serverEpoch,i.serverEpoch)){let i=await c({environmentId:t,input:{threadId:e.threadId,tabId:n.tabId,viewport:o.previousSetting}});i._tag!==`Failure`&&qb(r,i.value)}}),i}return{tabId:n.tabId,setting:a,viewport:s}}case`setColorScheme`:{let t=await u(),n=e.input;return await t.bridge.setColorScheme(t.runtimeTabId,n.colorScheme),{tabId:t.tabId,colorScheme:n.colorScheme}}case`snapshot`:{let e=await u();return await e.bridge.automation.snapshot(e.runtimeTabId)}case`click`:{let t=await u();return await t.bridge.automation.click(t.runtimeTabId,e.input)}case`type`:{let t=await u();return await t.bridge.automation.type(t.runtimeTabId,e.input)}case`press`:{let t=await u();return await t.bridge.automation.press(t.runtimeTabId,e.input)}case`scroll`:{let t=await u();return await t.bridge.automation.scroll(t.runtimeTabId,e.input)}case`evaluate`:{let t=await u();return await t.bridge.automation.evaluate(t.runtimeTabId,e.input)}case`waitFor`:{let t=await u();return await t.bridge.automation.waitFor(t.runtimeTabId,e.input)}case`recordingStart`:{let e=await u(),t=await Uot(e.runtimeTabId,r,e.tabId);return{tabId:e.tabId,recording:!0,startedAt:t}}case`recordingStop`:{let n=Fot(r),a=Tst(new Set(n.map(e=>e.serverTabId)),i,e.tabIdExplicit?e.tabId:void 0);i=a??i;let o=n.find(e=>e.serverTabId===a)?.runtimeTabId??null,s=o?await V9(o):null;return!s||!a?tct(new kst({requestId:e.requestId,environmentId:t,threadId:e.threadId,tabId:i})):{...s,tabId:a}}}}catch(n){throw X9.fromCause({requestId:e.requestId,operation:e.operation,environmentId:t,threadId:e.threadId,tabId:i,cause:n})}},[t,o,s,n,c]),[m]=(0,J.useState)(()=>qa({handle:p})),h=dt(m);return(0,J.useEffect)(()=>{h({handle:p})},[p,h]),Kt((0,J.useMemo)(()=>Bst({requestsAtom:a,clientId:r,connectionAtom:d,environmentId:t,requestHandlerAtom:m,respond:e=>l({environmentId:t,input:e}),label:`preview:automation-host:${t}:${r}`}),[r,d,a,m,l,t])),(0,J.useEffect)(()=>{let e=()=>{f&&u({environmentId:t,input:{clientId:r,environmentId:t,connectionId:f,focused:document.hasFocus()}})};return e(),window.addEventListener(`focus`,e),window.addEventListener(`blur`,e),()=>{window.removeEventListener(`focus`,e),window.removeEventListener(`blur`,e)}},[r,f,t,u]),null}function act(e){let t=(0,X.c)(7),{router:n}=e,r;t[0]===n?r=t[1]:(r=(0,Y.jsx)(Aee,{router:n}),t[0]=n,t[1]=r);let i,a,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(nct,{}),a=(0,Y.jsx)(pst,{}),o=(0,Y.jsx)(yst,{}),t[2]=i,t[3]=a,t[4]=o):(i=t[2],a=t[3],o=t[4]);let s;return t[5]===r?s=t[6]:(s=(0,Y.jsxs)(vo,{children:[r,i,a,o]}),t[5]=r,t[6]=s),s}var oct=eot(Ff());rm&&document.documentElement.classList.add(`desktop-shell`),jee.createRoot(document.getElementById(`root`)).render((0,Y.jsx)(J.StrictMode,{children:(0,Y.jsx)(act,{router:oct})}));export{aU as $,qse as $n,UI as $t,xW as A,DN as An,Wm as Ar,oV as At,SU as B,Jj as Bn,XI as Bt,mX as C,PAe as Cn,rh as Cr,kV as Ct,wW as D,CN as Dn,Ym as Dr,cV as Dt,qHe as E,kN as En,Zm as Er,uV as Et,MHe as F,Zj as Fn,bm as Fr,cBe as Ft,hU as G,RS as Gn,uNe as Gt,bU as H,HD as Hn,JI as Ht,dW as I,qj as In,$B as It,dU as J,uS as Jn,pNe as Jt,pU as K,xS as Kn,LI as Kt,sW as L,Xj as Ln,Vz as Lt,zHe as M,bM as Mn,Pm as Mr,nV as Mt,_W as N,mM as Nn,Om as Nr,tV as Nt,JHe as O,ON as On,Jm as Or,hBe as Ot,fW as P,Kj as Pn,Em as Pr,eV as Pt,oU as Q,Xb as Qn,HI as Qt,wU as R,qCe as Rn,BL as Rt,DX as S,$F as Sn,ih as Sr,FV as St,OW as T,AN as Tn,$m as Tr,dV as Tt,yU as U,MD as Un,qI as Ut,xU as V,lO as Vn,YI as Vt,vU as W,aC as Wn,KI as Wt,cU as X,aS as Xn,mNe as Xt,lU as Y,lS as Yn,WI as Yt,sU as Z,Ox as Zn,RI as Zt,Y0 as _,aI as _n,qh as _r,jH as _t,V9 as a,zI as an,Wb as ar,$H as at,OX as b,nI as bn,oh as br,wH as bt,w9 as c,MI as cn,Eb as cr,VH as ct,yit as d,_I as dn,Sb as dr,LH as dt,rNe as en,Yb as er,iU as et,Cit as f,gI as fn,qy as fr,zH as ft,C6e as g,oI as gn,D_ as gr,lVe as gt,i2 as h,yje as hn,O_ as hr,NH as ht,Uot as i,FI as in,qb as ir,eU as it,EW as j,SN as jn,Im as jr,aV as jt,TW as k,EN as kn,Km as kr,gBe as kt,xit as l,SI as ln,Ob as lr,IH as lt,dit as m,dI as mn,Fy as mr,PH as mt,sst as n,GI as nn,Jse as nr,nU as nt,Mot as o,BI as on,Vse as or,QH as ot,wit as p,RMe as pn,Xy as pr,FH as pt,fU as q,gS as qn,fNe as qt,Iot as r,II as rn,Jb as rr,tU as rt,got as s,jI as sn,Fb as sr,BH as st,q9 as t,NI as tn,Gb as tr,rU as tt,bit as u,yI as un,wb as ur,RH as ut,e6e as v,iI as vn,_h as vr,DH as vt,rUe as w,DF as wn,nh as wr,fV as wt,jX as x,eI as xn,ah as xr,PV as xt,qX as y,rI as yn,gh as yr,EH as yt,CU as z,Yj as zn,_R as zt};
|
|
583
|
-
//# sourceMappingURL=index-
|
|
583
|
+
//# sourceMappingURL=index-c0OLJn1C.js.map
|